vendor-es2015.js 6.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778447794478044781447824478344784447854478644787447884478944790447914479244793447944479544796447974479844799448004480144802448034480444805448064480744808448094481044811448124481344814448154481644817448184481944820448214482244823448244482544826448274482844829448304483144832448334483444835448364483744838448394484044841448424484344844448454484644847448484484944850448514485244853448544485544856448574485844859448604486144862448634486444865448664486744868448694487044871448724487344874448754487644877448784487944880448814488244883448844488544886448874488844889448904489144892448934489444895448964489744898448994490044901449024490344904449054490644907449084490944910449114491244913449144491544916449174491844919449204492144922449234492444925449264492744928449294493044931449324493344934449354493644937449384493944940449414494244943449444494544946449474494844949449504495144952449534495444955449564495744958449594496044961449624496344964449654496644967449684496944970449714497244973449744497544976449774497844979449804498144982449834498444985449864498744988449894499044991449924499344994449954499644997449984499945000450014500245003450044500545006450074500845009450104501145012450134501445015450164501745018450194502045021450224502345024450254502645027450284502945030450314503245033450344503545036450374503845039450404504145042450434504445045450464504745048450494505045051450524505345054450554505645057450584505945060450614506245063450644506545066450674506845069450704507145072450734507445075450764507745078450794508045081450824508345084450854508645087450884508945090450914509245093450944509545096450974509845099451004510145102451034510445105451064510745108451094511045111451124511345114451154511645117451184511945120451214512245123451244512545126451274512845129451304513145132451334513445135451364513745138451394514045141451424514345144451454514645147451484514945150451514515245153451544515545156451574515845159451604516145162451634516445165451664516745168451694517045171451724517345174451754517645177451784517945180451814518245183451844518545186451874518845189451904519145192451934519445195451964519745198451994520045201452024520345204452054520645207452084520945210452114521245213452144521545216452174521845219452204522145222452234522445225452264522745228452294523045231452324523345234452354523645237452384523945240452414524245243452444524545246452474524845249452504525145252452534525445255452564525745258452594526045261452624526345264452654526645267452684526945270452714527245273452744527545276452774527845279452804528145282452834528445285452864528745288452894529045291452924529345294452954529645297452984529945300453014530245303453044530545306453074530845309453104531145312453134531445315453164531745318453194532045321453224532345324453254532645327453284532945330453314533245333453344533545336453374533845339453404534145342453434534445345453464534745348453494535045351453524535345354453554535645357453584535945360453614536245363453644536545366453674536845369453704537145372453734537445375453764537745378453794538045381453824538345384453854538645387453884538945390453914539245393453944539545396453974539845399454004540145402454034540445405454064540745408454094541045411454124541345414454154541645417454184541945420454214542245423454244542545426454274542845429454304543145432454334543445435454364543745438454394544045441454424544345444454454544645447454484544945450454514545245453454544545545456454574545845459454604546145462454634546445465454664546745468454694547045471454724547345474454754547645477454784547945480454814548245483454844548545486454874548845489454904549145492454934549445495454964549745498454994550045501455024550345504455054550645507455084550945510455114551245513455144551545516455174551845519455204552145522455234552445525455264552745528455294553045531455324553345534455354553645537455384553945540455414554245543455444554545546455474554845549455504555145552455534555445555455564555745558455594556045561455624556345564455654556645567455684556945570455714557245573455744557545576455774557845579455804558145582455834558445585455864558745588455894559045591455924559345594455954559645597455984559945600456014560245603456044560545606456074560845609456104561145612456134561445615456164561745618456194562045621456224562345624456254562645627456284562945630456314563245633456344563545636456374563845639456404564145642456434564445645456464564745648456494565045651456524565345654456554565645657456584565945660456614566245663456644566545666456674566845669456704567145672456734567445675456764567745678456794568045681456824568345684456854568645687456884568945690456914569245693456944569545696456974569845699457004570145702457034570445705457064570745708457094571045711457124571345714457154571645717457184571945720457214572245723457244572545726457274572845729457304573145732457334573445735457364573745738457394574045741457424574345744457454574645747457484574945750457514575245753457544575545756457574575845759457604576145762457634576445765457664576745768457694577045771457724577345774457754577645777457784577945780457814578245783457844578545786457874578845789457904579145792457934579445795457964579745798457994580045801458024580345804458054580645807458084580945810458114581245813458144581545816458174581845819458204582145822458234582445825458264582745828458294583045831458324583345834458354583645837458384583945840458414584245843458444584545846458474584845849458504585145852458534585445855458564585745858458594586045861458624586345864458654586645867458684586945870458714587245873458744587545876458774587845879458804588145882458834588445885458864588745888458894589045891458924589345894458954589645897458984589945900459014590245903459044590545906459074590845909459104591145912459134591445915459164591745918459194592045921459224592345924459254592645927459284592945930459314593245933459344593545936459374593845939459404594145942459434594445945459464594745948459494595045951459524595345954459554595645957459584595945960459614596245963459644596545966459674596845969459704597145972459734597445975459764597745978459794598045981459824598345984459854598645987459884598945990459914599245993459944599545996459974599845999460004600146002460034600446005460064600746008460094601046011460124601346014460154601646017460184601946020460214602246023460244602546026460274602846029460304603146032460334603446035460364603746038460394604046041460424604346044460454604646047460484604946050460514605246053460544605546056460574605846059460604606146062460634606446065460664606746068460694607046071460724607346074460754607646077460784607946080460814608246083460844608546086460874608846089460904609146092460934609446095460964609746098460994610046101461024610346104461054610646107461084610946110461114611246113461144611546116461174611846119461204612146122461234612446125461264612746128461294613046131461324613346134461354613646137461384613946140461414614246143461444614546146461474614846149461504615146152461534615446155461564615746158461594616046161461624616346164461654616646167461684616946170461714617246173461744617546176461774617846179461804618146182461834618446185461864618746188461894619046191461924619346194461954619646197461984619946200462014620246203462044620546206462074620846209462104621146212462134621446215462164621746218462194622046221462224622346224462254622646227462284622946230462314623246233462344623546236462374623846239462404624146242462434624446245462464624746248462494625046251462524625346254462554625646257462584625946260462614626246263462644626546266462674626846269462704627146272462734627446275462764627746278462794628046281462824628346284462854628646287462884628946290462914629246293462944629546296462974629846299463004630146302463034630446305463064630746308463094631046311463124631346314463154631646317463184631946320463214632246323463244632546326463274632846329463304633146332463334633446335463364633746338463394634046341463424634346344463454634646347463484634946350463514635246353463544635546356463574635846359463604636146362463634636446365463664636746368463694637046371463724637346374463754637646377463784637946380463814638246383463844638546386463874638846389463904639146392463934639446395463964639746398463994640046401464024640346404464054640646407464084640946410464114641246413464144641546416464174641846419464204642146422464234642446425464264642746428464294643046431464324643346434464354643646437464384643946440464414644246443464444644546446464474644846449464504645146452464534645446455464564645746458464594646046461464624646346464464654646646467464684646946470464714647246473464744647546476464774647846479464804648146482464834648446485464864648746488464894649046491464924649346494464954649646497464984649946500465014650246503465044650546506465074650846509465104651146512465134651446515465164651746518465194652046521465224652346524465254652646527465284652946530465314653246533465344653546536465374653846539465404654146542465434654446545465464654746548465494655046551465524655346554465554655646557465584655946560465614656246563465644656546566465674656846569465704657146572465734657446575465764657746578465794658046581465824658346584465854658646587465884658946590465914659246593465944659546596465974659846599466004660146602466034660446605466064660746608466094661046611466124661346614466154661646617466184661946620466214662246623466244662546626466274662846629466304663146632466334663446635466364663746638466394664046641466424664346644466454664646647466484664946650466514665246653466544665546656466574665846659466604666146662466634666446665466664666746668466694667046671466724667346674466754667646677466784667946680466814668246683466844668546686466874668846689466904669146692466934669446695466964669746698466994670046701467024670346704467054670646707467084670946710467114671246713467144671546716467174671846719467204672146722467234672446725467264672746728467294673046731467324673346734467354673646737467384673946740467414674246743467444674546746467474674846749467504675146752467534675446755467564675746758467594676046761467624676346764467654676646767467684676946770467714677246773467744677546776467774677846779467804678146782467834678446785467864678746788467894679046791467924679346794467954679646797467984679946800468014680246803468044680546806468074680846809468104681146812468134681446815468164681746818468194682046821468224682346824468254682646827468284682946830468314683246833468344683546836468374683846839468404684146842468434684446845468464684746848468494685046851468524685346854468554685646857468584685946860468614686246863468644686546866468674686846869468704687146872468734687446875468764687746878468794688046881468824688346884468854688646887468884688946890468914689246893468944689546896468974689846899469004690146902469034690446905469064690746908469094691046911469124691346914469154691646917469184691946920469214692246923469244692546926469274692846929469304693146932469334693446935469364693746938469394694046941469424694346944469454694646947469484694946950469514695246953469544695546956469574695846959469604696146962469634696446965469664696746968469694697046971469724697346974469754697646977469784697946980469814698246983469844698546986469874698846989469904699146992469934699446995469964699746998469994700047001470024700347004470054700647007470084700947010470114701247013470144701547016470174701847019470204702147022470234702447025470264702747028470294703047031470324703347034470354703647037470384703947040470414704247043470444704547046470474704847049470504705147052470534705447055470564705747058470594706047061470624706347064470654706647067470684706947070470714707247073470744707547076470774707847079470804708147082470834708447085470864708747088470894709047091470924709347094470954709647097470984709947100471014710247103471044710547106471074710847109471104711147112471134711447115471164711747118471194712047121471224712347124471254712647127471284712947130471314713247133471344713547136471374713847139471404714147142471434714447145471464714747148471494715047151471524715347154471554715647157471584715947160471614716247163471644716547166471674716847169471704717147172471734717447175471764717747178471794718047181471824718347184471854718647187471884718947190471914719247193471944719547196471974719847199472004720147202472034720447205472064720747208472094721047211472124721347214472154721647217472184721947220472214722247223472244722547226472274722847229472304723147232472334723447235472364723747238472394724047241472424724347244472454724647247472484724947250472514725247253472544725547256472574725847259472604726147262472634726447265472664726747268472694727047271472724727347274472754727647277472784727947280472814728247283472844728547286472874728847289472904729147292472934729447295472964729747298472994730047301473024730347304473054730647307473084730947310473114731247313473144731547316473174731847319473204732147322473234732447325473264732747328473294733047331473324733347334473354733647337473384733947340473414734247343473444734547346473474734847349473504735147352473534735447355473564735747358473594736047361473624736347364473654736647367473684736947370473714737247373473744737547376473774737847379473804738147382473834738447385473864738747388473894739047391473924739347394473954739647397473984739947400474014740247403474044740547406474074740847409474104741147412474134741447415474164741747418474194742047421474224742347424474254742647427474284742947430474314743247433474344743547436474374743847439474404744147442474434744447445474464744747448474494745047451474524745347454474554745647457474584745947460474614746247463474644746547466474674746847469474704747147472474734747447475474764747747478474794748047481474824748347484474854748647487474884748947490474914749247493474944749547496474974749847499475004750147502475034750447505475064750747508475094751047511475124751347514475154751647517475184751947520475214752247523475244752547526475274752847529475304753147532475334753447535475364753747538475394754047541475424754347544475454754647547475484754947550475514755247553475544755547556475574755847559475604756147562475634756447565475664756747568475694757047571475724757347574475754757647577475784757947580475814758247583475844758547586475874758847589475904759147592475934759447595475964759747598475994760047601476024760347604476054760647607476084760947610476114761247613476144761547616476174761847619476204762147622476234762447625476264762747628476294763047631476324763347634476354763647637476384763947640476414764247643476444764547646476474764847649476504765147652476534765447655476564765747658476594766047661476624766347664476654766647667476684766947670476714767247673476744767547676476774767847679476804768147682476834768447685476864768747688476894769047691476924769347694476954769647697476984769947700477014770247703477044770547706477074770847709477104771147712477134771447715477164771747718477194772047721477224772347724477254772647727477284772947730477314773247733477344773547736477374773847739477404774147742477434774447745477464774747748477494775047751477524775347754477554775647757477584775947760477614776247763477644776547766477674776847769477704777147772477734777447775477764777747778477794778047781477824778347784477854778647787477884778947790477914779247793477944779547796477974779847799478004780147802478034780447805478064780747808478094781047811478124781347814478154781647817478184781947820478214782247823478244782547826478274782847829478304783147832478334783447835478364783747838478394784047841478424784347844478454784647847478484784947850478514785247853478544785547856478574785847859478604786147862478634786447865478664786747868478694787047871478724787347874478754787647877478784787947880478814788247883478844788547886478874788847889478904789147892478934789447895478964789747898478994790047901479024790347904479054790647907479084790947910479114791247913479144791547916479174791847919479204792147922479234792447925479264792747928479294793047931479324793347934479354793647937479384793947940479414794247943479444794547946479474794847949479504795147952479534795447955479564795747958479594796047961479624796347964479654796647967479684796947970479714797247973479744797547976479774797847979479804798147982479834798447985479864798747988479894799047991479924799347994479954799647997479984799948000480014800248003480044800548006480074800848009480104801148012480134801448015480164801748018480194802048021480224802348024480254802648027480284802948030480314803248033480344803548036480374803848039480404804148042480434804448045480464804748048480494805048051480524805348054480554805648057480584805948060480614806248063480644806548066480674806848069480704807148072480734807448075480764807748078480794808048081480824808348084480854808648087480884808948090480914809248093480944809548096480974809848099481004810148102481034810448105481064810748108481094811048111481124811348114481154811648117481184811948120481214812248123481244812548126481274812848129481304813148132481334813448135481364813748138481394814048141481424814348144481454814648147481484814948150481514815248153481544815548156481574815848159481604816148162481634816448165481664816748168481694817048171481724817348174481754817648177481784817948180481814818248183481844818548186481874818848189481904819148192481934819448195481964819748198481994820048201482024820348204482054820648207482084820948210482114821248213482144821548216482174821848219482204822148222482234822448225482264822748228482294823048231482324823348234482354823648237482384823948240482414824248243482444824548246482474824848249482504825148252482534825448255482564825748258482594826048261482624826348264482654826648267482684826948270482714827248273482744827548276482774827848279482804828148282482834828448285482864828748288482894829048291482924829348294482954829648297482984829948300483014830248303483044830548306483074830848309483104831148312483134831448315483164831748318483194832048321483224832348324483254832648327483284832948330483314833248333483344833548336483374833848339483404834148342483434834448345483464834748348483494835048351483524835348354483554835648357483584835948360483614836248363483644836548366483674836848369483704837148372483734837448375483764837748378483794838048381483824838348384483854838648387483884838948390483914839248393483944839548396483974839848399484004840148402484034840448405484064840748408484094841048411484124841348414484154841648417484184841948420484214842248423484244842548426484274842848429484304843148432484334843448435484364843748438484394844048441484424844348444484454844648447484484844948450484514845248453484544845548456484574845848459484604846148462484634846448465484664846748468484694847048471484724847348474484754847648477484784847948480484814848248483484844848548486484874848848489484904849148492484934849448495484964849748498484994850048501485024850348504485054850648507485084850948510485114851248513485144851548516485174851848519485204852148522485234852448525485264852748528485294853048531485324853348534485354853648537485384853948540485414854248543485444854548546485474854848549485504855148552485534855448555485564855748558485594856048561485624856348564485654856648567485684856948570485714857248573485744857548576485774857848579485804858148582485834858448585485864858748588485894859048591485924859348594485954859648597485984859948600486014860248603486044860548606486074860848609486104861148612486134861448615486164861748618486194862048621486224862348624486254862648627486284862948630486314863248633486344863548636486374863848639486404864148642486434864448645486464864748648486494865048651486524865348654486554865648657486584865948660486614866248663486644866548666486674866848669486704867148672486734867448675486764867748678486794868048681486824868348684486854868648687486884868948690486914869248693486944869548696486974869848699487004870148702487034870448705487064870748708487094871048711487124871348714487154871648717487184871948720487214872248723487244872548726487274872848729487304873148732487334873448735487364873748738487394874048741487424874348744487454874648747487484874948750487514875248753487544875548756487574875848759487604876148762487634876448765487664876748768487694877048771487724877348774487754877648777487784877948780487814878248783487844878548786487874878848789487904879148792487934879448795487964879748798487994880048801488024880348804488054880648807488084880948810488114881248813488144881548816488174881848819488204882148822488234882448825488264882748828488294883048831488324883348834488354883648837488384883948840488414884248843488444884548846488474884848849488504885148852488534885448855488564885748858488594886048861488624886348864488654886648867488684886948870488714887248873488744887548876488774887848879488804888148882488834888448885488864888748888488894889048891488924889348894488954889648897488984889948900489014890248903489044890548906489074890848909489104891148912489134891448915489164891748918489194892048921489224892348924489254892648927489284892948930489314893248933489344893548936489374893848939489404894148942489434894448945489464894748948489494895048951489524895348954489554895648957489584895948960489614896248963489644896548966489674896848969489704897148972489734897448975489764897748978489794898048981489824898348984489854898648987489884898948990489914899248993489944899548996489974899848999490004900149002490034900449005490064900749008490094901049011490124901349014490154901649017490184901949020490214902249023490244902549026490274902849029490304903149032490334903449035490364903749038490394904049041490424904349044490454904649047490484904949050490514905249053490544905549056490574905849059490604906149062490634906449065490664906749068490694907049071490724907349074490754907649077490784907949080490814908249083490844908549086490874908849089490904909149092490934909449095490964909749098490994910049101491024910349104491054910649107491084910949110491114911249113491144911549116491174911849119491204912149122491234912449125491264912749128491294913049131491324913349134491354913649137491384913949140491414914249143491444914549146491474914849149491504915149152491534915449155491564915749158491594916049161491624916349164491654916649167491684916949170491714917249173491744917549176491774917849179491804918149182491834918449185491864918749188491894919049191491924919349194491954919649197491984919949200492014920249203492044920549206492074920849209492104921149212492134921449215492164921749218492194922049221492224922349224492254922649227492284922949230492314923249233492344923549236492374923849239492404924149242492434924449245492464924749248492494925049251492524925349254492554925649257492584925949260492614926249263492644926549266492674926849269492704927149272492734927449275492764927749278492794928049281492824928349284492854928649287492884928949290492914929249293492944929549296492974929849299493004930149302493034930449305493064930749308493094931049311493124931349314493154931649317493184931949320493214932249323493244932549326493274932849329493304933149332493334933449335493364933749338493394934049341493424934349344493454934649347493484934949350493514935249353493544935549356493574935849359493604936149362493634936449365493664936749368493694937049371493724937349374493754937649377493784937949380493814938249383493844938549386493874938849389493904939149392493934939449395493964939749398493994940049401494024940349404494054940649407494084940949410494114941249413494144941549416494174941849419494204942149422494234942449425494264942749428494294943049431494324943349434494354943649437494384943949440494414944249443494444944549446494474944849449494504945149452494534945449455494564945749458494594946049461494624946349464494654946649467494684946949470494714947249473494744947549476494774947849479494804948149482494834948449485494864948749488494894949049491494924949349494494954949649497494984949949500495014950249503495044950549506495074950849509495104951149512495134951449515495164951749518495194952049521495224952349524495254952649527495284952949530495314953249533495344953549536495374953849539495404954149542495434954449545495464954749548495494955049551495524955349554495554955649557495584955949560495614956249563495644956549566495674956849569495704957149572495734957449575495764957749578495794958049581495824958349584495854958649587495884958949590495914959249593495944959549596495974959849599496004960149602496034960449605496064960749608496094961049611496124961349614496154961649617496184961949620496214962249623496244962549626496274962849629496304963149632496334963449635496364963749638496394964049641496424964349644496454964649647496484964949650496514965249653496544965549656496574965849659496604966149662496634966449665496664966749668496694967049671496724967349674496754967649677496784967949680496814968249683496844968549686496874968849689496904969149692496934969449695496964969749698496994970049701497024970349704497054970649707497084970949710497114971249713497144971549716497174971849719497204972149722497234972449725497264972749728497294973049731497324973349734497354973649737497384973949740497414974249743497444974549746497474974849749497504975149752497534975449755497564975749758497594976049761497624976349764497654976649767497684976949770497714977249773497744977549776497774977849779497804978149782497834978449785497864978749788497894979049791497924979349794497954979649797497984979949800498014980249803498044980549806498074980849809498104981149812498134981449815498164981749818498194982049821498224982349824498254982649827498284982949830498314983249833498344983549836498374983849839498404984149842498434984449845498464984749848498494985049851498524985349854498554985649857498584985949860498614986249863498644986549866498674986849869498704987149872498734987449875498764987749878498794988049881498824988349884498854988649887498884988949890498914989249893498944989549896498974989849899499004990149902499034990449905499064990749908499094991049911499124991349914499154991649917499184991949920499214992249923499244992549926499274992849929499304993149932499334993449935499364993749938499394994049941499424994349944499454994649947499484994949950499514995249953499544995549956499574995849959499604996149962499634996449965499664996749968499694997049971499724997349974499754997649977499784997949980499814998249983499844998549986499874998849989499904999149992499934999449995499964999749998499995000050001500025000350004500055000650007500085000950010500115001250013500145001550016500175001850019500205002150022500235002450025500265002750028500295003050031500325003350034500355003650037500385003950040500415004250043500445004550046500475004850049500505005150052500535005450055500565005750058500595006050061500625006350064500655006650067500685006950070500715007250073500745007550076500775007850079500805008150082500835008450085500865008750088500895009050091500925009350094500955009650097500985009950100501015010250103501045010550106501075010850109501105011150112501135011450115501165011750118501195012050121501225012350124501255012650127501285012950130501315013250133501345013550136501375013850139501405014150142501435014450145501465014750148501495015050151501525015350154501555015650157501585015950160501615016250163501645016550166501675016850169501705017150172501735017450175501765017750178501795018050181501825018350184501855018650187501885018950190501915019250193501945019550196501975019850199502005020150202502035020450205502065020750208502095021050211502125021350214502155021650217502185021950220502215022250223502245022550226502275022850229502305023150232502335023450235502365023750238502395024050241502425024350244502455024650247502485024950250502515025250253502545025550256502575025850259502605026150262502635026450265502665026750268502695027050271502725027350274502755027650277502785027950280502815028250283502845028550286502875028850289502905029150292502935029450295502965029750298502995030050301503025030350304503055030650307503085030950310503115031250313503145031550316503175031850319503205032150322503235032450325503265032750328503295033050331503325033350334503355033650337503385033950340503415034250343503445034550346503475034850349503505035150352503535035450355503565035750358503595036050361503625036350364503655036650367503685036950370503715037250373503745037550376503775037850379503805038150382503835038450385503865038750388503895039050391503925039350394503955039650397503985039950400504015040250403504045040550406504075040850409504105041150412504135041450415504165041750418504195042050421504225042350424504255042650427504285042950430504315043250433504345043550436504375043850439504405044150442504435044450445504465044750448504495045050451504525045350454504555045650457504585045950460504615046250463504645046550466504675046850469504705047150472504735047450475504765047750478504795048050481504825048350484504855048650487504885048950490504915049250493504945049550496504975049850499505005050150502505035050450505505065050750508505095051050511505125051350514505155051650517505185051950520505215052250523505245052550526505275052850529505305053150532505335053450535505365053750538505395054050541505425054350544505455054650547505485054950550505515055250553505545055550556505575055850559505605056150562505635056450565505665056750568505695057050571505725057350574505755057650577505785057950580505815058250583505845058550586505875058850589505905059150592505935059450595505965059750598505995060050601506025060350604506055060650607506085060950610506115061250613506145061550616506175061850619506205062150622506235062450625506265062750628506295063050631506325063350634506355063650637506385063950640506415064250643506445064550646506475064850649506505065150652506535065450655506565065750658506595066050661506625066350664506655066650667506685066950670506715067250673506745067550676506775067850679506805068150682506835068450685506865068750688506895069050691506925069350694506955069650697506985069950700507015070250703507045070550706507075070850709507105071150712507135071450715507165071750718507195072050721507225072350724507255072650727507285072950730507315073250733507345073550736507375073850739507405074150742507435074450745507465074750748507495075050751507525075350754507555075650757507585075950760507615076250763507645076550766507675076850769507705077150772507735077450775507765077750778507795078050781507825078350784507855078650787507885078950790507915079250793507945079550796507975079850799508005080150802508035080450805508065080750808508095081050811508125081350814508155081650817508185081950820508215082250823508245082550826508275082850829508305083150832508335083450835508365083750838508395084050841508425084350844508455084650847508485084950850508515085250853508545085550856508575085850859508605086150862508635086450865508665086750868508695087050871508725087350874508755087650877508785087950880508815088250883508845088550886508875088850889508905089150892508935089450895508965089750898508995090050901509025090350904509055090650907509085090950910509115091250913509145091550916509175091850919509205092150922509235092450925509265092750928509295093050931509325093350934509355093650937509385093950940509415094250943509445094550946509475094850949509505095150952509535095450955509565095750958509595096050961509625096350964509655096650967509685096950970509715097250973509745097550976509775097850979509805098150982509835098450985509865098750988509895099050991509925099350994509955099650997509985099951000510015100251003510045100551006510075100851009510105101151012510135101451015510165101751018510195102051021510225102351024510255102651027510285102951030510315103251033510345103551036510375103851039510405104151042510435104451045510465104751048510495105051051510525105351054510555105651057510585105951060510615106251063510645106551066510675106851069510705107151072510735107451075510765107751078510795108051081510825108351084510855108651087510885108951090510915109251093510945109551096510975109851099511005110151102511035110451105511065110751108511095111051111511125111351114511155111651117511185111951120511215112251123511245112551126511275112851129511305113151132511335113451135511365113751138511395114051141511425114351144511455114651147511485114951150511515115251153511545115551156511575115851159511605116151162511635116451165511665116751168511695117051171511725117351174511755117651177511785117951180511815118251183511845118551186511875118851189511905119151192511935119451195511965119751198511995120051201512025120351204512055120651207512085120951210512115121251213512145121551216512175121851219512205122151222512235122451225512265122751228512295123051231512325123351234512355123651237512385123951240512415124251243512445124551246512475124851249512505125151252512535125451255512565125751258512595126051261512625126351264512655126651267512685126951270512715127251273512745127551276512775127851279512805128151282512835128451285512865128751288512895129051291512925129351294512955129651297512985129951300513015130251303513045130551306513075130851309513105131151312513135131451315513165131751318513195132051321513225132351324513255132651327513285132951330513315133251333513345133551336513375133851339513405134151342513435134451345513465134751348513495135051351513525135351354513555135651357513585135951360513615136251363513645136551366513675136851369513705137151372513735137451375513765137751378513795138051381513825138351384513855138651387513885138951390513915139251393513945139551396513975139851399514005140151402514035140451405514065140751408514095141051411514125141351414514155141651417514185141951420514215142251423514245142551426514275142851429514305143151432514335143451435514365143751438514395144051441514425144351444514455144651447514485144951450514515145251453514545145551456514575145851459514605146151462514635146451465514665146751468514695147051471514725147351474514755147651477514785147951480514815148251483514845148551486514875148851489514905149151492514935149451495514965149751498514995150051501515025150351504515055150651507515085150951510515115151251513515145151551516515175151851519515205152151522515235152451525515265152751528515295153051531515325153351534515355153651537515385153951540515415154251543515445154551546515475154851549515505155151552515535155451555515565155751558515595156051561515625156351564515655156651567515685156951570515715157251573515745157551576515775157851579515805158151582515835158451585515865158751588515895159051591515925159351594515955159651597515985159951600516015160251603516045160551606516075160851609516105161151612516135161451615516165161751618516195162051621516225162351624516255162651627516285162951630516315163251633516345163551636516375163851639516405164151642516435164451645516465164751648516495165051651516525165351654516555165651657516585165951660516615166251663516645166551666516675166851669516705167151672516735167451675516765167751678516795168051681516825168351684516855168651687516885168951690516915169251693516945169551696516975169851699517005170151702517035170451705517065170751708517095171051711517125171351714517155171651717517185171951720517215172251723517245172551726517275172851729517305173151732517335173451735517365173751738517395174051741517425174351744517455174651747517485174951750517515175251753517545175551756517575175851759517605176151762517635176451765517665176751768517695177051771517725177351774517755177651777517785177951780517815178251783517845178551786517875178851789517905179151792517935179451795517965179751798517995180051801518025180351804518055180651807518085180951810518115181251813518145181551816518175181851819518205182151822518235182451825518265182751828518295183051831518325183351834518355183651837518385183951840518415184251843518445184551846518475184851849518505185151852518535185451855518565185751858518595186051861518625186351864518655186651867518685186951870518715187251873518745187551876518775187851879518805188151882518835188451885518865188751888518895189051891518925189351894518955189651897518985189951900519015190251903519045190551906519075190851909519105191151912519135191451915519165191751918519195192051921519225192351924519255192651927519285192951930519315193251933519345193551936519375193851939519405194151942519435194451945519465194751948519495195051951519525195351954519555195651957519585195951960519615196251963519645196551966519675196851969519705197151972519735197451975519765197751978519795198051981519825198351984519855198651987519885198951990519915199251993519945199551996519975199851999520005200152002520035200452005520065200752008520095201052011520125201352014520155201652017520185201952020520215202252023520245202552026520275202852029520305203152032520335203452035520365203752038520395204052041520425204352044520455204652047520485204952050520515205252053520545205552056520575205852059520605206152062520635206452065520665206752068520695207052071520725207352074520755207652077520785207952080520815208252083520845208552086520875208852089520905209152092520935209452095520965209752098520995210052101521025210352104521055210652107521085210952110521115211252113521145211552116521175211852119521205212152122521235212452125521265212752128521295213052131521325213352134521355213652137521385213952140521415214252143521445214552146521475214852149521505215152152521535215452155521565215752158521595216052161521625216352164521655216652167521685216952170521715217252173521745217552176521775217852179521805218152182521835218452185521865218752188521895219052191521925219352194521955219652197521985219952200522015220252203522045220552206522075220852209522105221152212522135221452215522165221752218522195222052221522225222352224522255222652227522285222952230522315223252233522345223552236522375223852239522405224152242522435224452245522465224752248522495225052251522525225352254522555225652257522585225952260522615226252263522645226552266522675226852269522705227152272522735227452275522765227752278522795228052281522825228352284522855228652287522885228952290522915229252293522945229552296522975229852299523005230152302523035230452305523065230752308523095231052311523125231352314523155231652317523185231952320523215232252323523245232552326523275232852329523305233152332523335233452335523365233752338523395234052341523425234352344523455234652347523485234952350523515235252353523545235552356523575235852359523605236152362523635236452365523665236752368523695237052371523725237352374523755237652377523785237952380523815238252383523845238552386523875238852389523905239152392523935239452395523965239752398523995240052401524025240352404524055240652407524085240952410524115241252413524145241552416524175241852419524205242152422524235242452425524265242752428524295243052431524325243352434524355243652437524385243952440524415244252443524445244552446524475244852449524505245152452524535245452455524565245752458524595246052461524625246352464524655246652467524685246952470524715247252473524745247552476524775247852479524805248152482524835248452485524865248752488524895249052491524925249352494524955249652497524985249952500525015250252503525045250552506525075250852509525105251152512525135251452515525165251752518525195252052521525225252352524525255252652527525285252952530525315253252533525345253552536525375253852539525405254152542525435254452545525465254752548525495255052551525525255352554525555255652557525585255952560525615256252563525645256552566525675256852569525705257152572525735257452575525765257752578525795258052581525825258352584525855258652587525885258952590525915259252593525945259552596525975259852599526005260152602526035260452605526065260752608526095261052611526125261352614526155261652617526185261952620526215262252623526245262552626526275262852629526305263152632526335263452635526365263752638526395264052641526425264352644526455264652647526485264952650526515265252653526545265552656526575265852659526605266152662526635266452665526665266752668526695267052671526725267352674526755267652677526785267952680526815268252683526845268552686526875268852689526905269152692526935269452695526965269752698526995270052701527025270352704527055270652707527085270952710527115271252713527145271552716527175271852719527205272152722527235272452725527265272752728527295273052731527325273352734527355273652737527385273952740527415274252743527445274552746527475274852749527505275152752527535275452755527565275752758527595276052761527625276352764527655276652767527685276952770527715277252773527745277552776527775277852779527805278152782527835278452785527865278752788527895279052791527925279352794527955279652797527985279952800528015280252803528045280552806528075280852809528105281152812528135281452815528165281752818528195282052821528225282352824528255282652827528285282952830528315283252833528345283552836528375283852839528405284152842528435284452845528465284752848528495285052851528525285352854528555285652857528585285952860528615286252863528645286552866528675286852869528705287152872528735287452875528765287752878528795288052881528825288352884528855288652887528885288952890528915289252893528945289552896528975289852899529005290152902529035290452905529065290752908529095291052911529125291352914529155291652917529185291952920529215292252923529245292552926529275292852929529305293152932529335293452935529365293752938529395294052941529425294352944529455294652947529485294952950529515295252953529545295552956529575295852959529605296152962529635296452965529665296752968529695297052971529725297352974529755297652977529785297952980529815298252983529845298552986529875298852989529905299152992529935299452995529965299752998529995300053001530025300353004530055300653007530085300953010530115301253013530145301553016530175301853019530205302153022530235302453025530265302753028530295303053031530325303353034530355303653037530385303953040530415304253043530445304553046530475304853049530505305153052530535305453055530565305753058530595306053061530625306353064530655306653067530685306953070530715307253073530745307553076530775307853079530805308153082530835308453085530865308753088530895309053091530925309353094530955309653097530985309953100531015310253103531045310553106531075310853109531105311153112531135311453115531165311753118531195312053121531225312353124531255312653127531285312953130531315313253133531345313553136531375313853139531405314153142531435314453145531465314753148531495315053151531525315353154531555315653157531585315953160531615316253163531645316553166531675316853169531705317153172531735317453175531765317753178531795318053181531825318353184531855318653187531885318953190531915319253193531945319553196531975319853199532005320153202532035320453205532065320753208532095321053211532125321353214532155321653217532185321953220532215322253223532245322553226532275322853229532305323153232532335323453235532365323753238532395324053241532425324353244532455324653247532485324953250532515325253253532545325553256532575325853259532605326153262532635326453265532665326753268532695327053271532725327353274532755327653277532785327953280532815328253283532845328553286532875328853289532905329153292532935329453295532965329753298532995330053301533025330353304533055330653307533085330953310533115331253313533145331553316533175331853319533205332153322533235332453325533265332753328533295333053331533325333353334533355333653337533385333953340533415334253343533445334553346533475334853349533505335153352533535335453355533565335753358533595336053361533625336353364533655336653367533685336953370533715337253373533745337553376533775337853379533805338153382533835338453385533865338753388533895339053391533925339353394533955339653397533985339953400534015340253403534045340553406534075340853409534105341153412534135341453415534165341753418534195342053421534225342353424534255342653427534285342953430534315343253433534345343553436534375343853439534405344153442534435344453445534465344753448534495345053451534525345353454534555345653457534585345953460534615346253463534645346553466534675346853469534705347153472534735347453475534765347753478534795348053481534825348353484534855348653487534885348953490534915349253493534945349553496534975349853499535005350153502535035350453505535065350753508535095351053511535125351353514535155351653517535185351953520535215352253523535245352553526535275352853529535305353153532535335353453535535365353753538535395354053541535425354353544535455354653547535485354953550535515355253553535545355553556535575355853559535605356153562535635356453565535665356753568535695357053571535725357353574535755357653577535785357953580535815358253583535845358553586535875358853589535905359153592535935359453595535965359753598535995360053601536025360353604536055360653607536085360953610536115361253613536145361553616536175361853619536205362153622536235362453625536265362753628536295363053631536325363353634536355363653637536385363953640536415364253643536445364553646536475364853649536505365153652536535365453655536565365753658536595366053661536625366353664536655366653667536685366953670536715367253673536745367553676536775367853679536805368153682536835368453685536865368753688536895369053691536925369353694536955369653697536985369953700537015370253703537045370553706537075370853709537105371153712537135371453715537165371753718537195372053721537225372353724537255372653727537285372953730537315373253733537345373553736537375373853739537405374153742537435374453745537465374753748537495375053751537525375353754537555375653757537585375953760537615376253763537645376553766537675376853769537705377153772537735377453775537765377753778537795378053781537825378353784537855378653787537885378953790537915379253793537945379553796537975379853799538005380153802538035380453805538065380753808538095381053811538125381353814538155381653817538185381953820538215382253823538245382553826538275382853829538305383153832538335383453835538365383753838538395384053841538425384353844538455384653847538485384953850538515385253853538545385553856538575385853859538605386153862538635386453865538665386753868538695387053871538725387353874538755387653877538785387953880538815388253883538845388553886538875388853889538905389153892538935389453895538965389753898538995390053901539025390353904539055390653907539085390953910539115391253913539145391553916539175391853919539205392153922539235392453925539265392753928539295393053931539325393353934539355393653937539385393953940539415394253943539445394553946539475394853949539505395153952539535395453955539565395753958539595396053961539625396353964539655396653967539685396953970539715397253973539745397553976539775397853979539805398153982539835398453985539865398753988539895399053991539925399353994539955399653997539985399954000540015400254003540045400554006540075400854009540105401154012540135401454015540165401754018540195402054021540225402354024540255402654027540285402954030540315403254033540345403554036540375403854039540405404154042540435404454045540465404754048540495405054051540525405354054540555405654057540585405954060540615406254063540645406554066540675406854069540705407154072540735407454075540765407754078540795408054081540825408354084540855408654087540885408954090540915409254093540945409554096540975409854099541005410154102541035410454105541065410754108541095411054111541125411354114541155411654117541185411954120541215412254123541245412554126541275412854129541305413154132541335413454135541365413754138541395414054141541425414354144541455414654147541485414954150541515415254153541545415554156541575415854159541605416154162541635416454165541665416754168541695417054171541725417354174541755417654177541785417954180541815418254183541845418554186541875418854189541905419154192541935419454195541965419754198541995420054201542025420354204542055420654207542085420954210542115421254213542145421554216542175421854219542205422154222542235422454225542265422754228542295423054231542325423354234542355423654237542385423954240542415424254243542445424554246542475424854249542505425154252542535425454255542565425754258542595426054261542625426354264542655426654267542685426954270542715427254273542745427554276542775427854279542805428154282542835428454285542865428754288542895429054291542925429354294542955429654297542985429954300543015430254303543045430554306543075430854309543105431154312543135431454315543165431754318543195432054321543225432354324543255432654327543285432954330543315433254333543345433554336543375433854339543405434154342543435434454345543465434754348543495435054351543525435354354543555435654357543585435954360543615436254363543645436554366543675436854369543705437154372543735437454375543765437754378543795438054381543825438354384543855438654387543885438954390543915439254393543945439554396543975439854399544005440154402544035440454405544065440754408544095441054411544125441354414544155441654417544185441954420544215442254423544245442554426544275442854429544305443154432544335443454435544365443754438544395444054441544425444354444544455444654447544485444954450544515445254453544545445554456544575445854459544605446154462544635446454465544665446754468544695447054471544725447354474544755447654477544785447954480544815448254483544845448554486544875448854489544905449154492544935449454495544965449754498544995450054501545025450354504545055450654507545085450954510545115451254513545145451554516545175451854519545205452154522545235452454525545265452754528545295453054531545325453354534545355453654537545385453954540545415454254543545445454554546545475454854549545505455154552545535455454555545565455754558545595456054561545625456354564545655456654567545685456954570545715457254573545745457554576545775457854579545805458154582545835458454585545865458754588545895459054591545925459354594545955459654597545985459954600546015460254603546045460554606546075460854609546105461154612546135461454615546165461754618546195462054621546225462354624546255462654627546285462954630546315463254633546345463554636546375463854639546405464154642546435464454645546465464754648546495465054651546525465354654546555465654657546585465954660546615466254663546645466554666546675466854669546705467154672546735467454675546765467754678546795468054681546825468354684546855468654687546885468954690546915469254693546945469554696546975469854699547005470154702547035470454705547065470754708547095471054711547125471354714547155471654717547185471954720547215472254723547245472554726547275472854729547305473154732547335473454735547365473754738547395474054741547425474354744547455474654747547485474954750547515475254753547545475554756547575475854759547605476154762547635476454765547665476754768547695477054771547725477354774547755477654777547785477954780547815478254783547845478554786547875478854789547905479154792547935479454795547965479754798547995480054801548025480354804548055480654807548085480954810548115481254813548145481554816548175481854819548205482154822548235482454825548265482754828548295483054831548325483354834548355483654837548385483954840548415484254843548445484554846548475484854849548505485154852548535485454855548565485754858548595486054861548625486354864548655486654867548685486954870548715487254873548745487554876548775487854879548805488154882548835488454885548865488754888548895489054891548925489354894548955489654897548985489954900549015490254903549045490554906549075490854909549105491154912549135491454915549165491754918549195492054921549225492354924549255492654927549285492954930549315493254933549345493554936549375493854939549405494154942549435494454945549465494754948549495495054951549525495354954549555495654957549585495954960549615496254963549645496554966549675496854969549705497154972549735497454975549765497754978549795498054981549825498354984549855498654987549885498954990549915499254993549945499554996549975499854999550005500155002550035500455005550065500755008550095501055011550125501355014550155501655017550185501955020550215502255023550245502555026550275502855029550305503155032550335503455035550365503755038550395504055041550425504355044550455504655047550485504955050550515505255053550545505555056550575505855059550605506155062550635506455065550665506755068550695507055071550725507355074550755507655077550785507955080550815508255083550845508555086550875508855089550905509155092550935509455095550965509755098550995510055101551025510355104551055510655107551085510955110551115511255113551145511555116551175511855119551205512155122551235512455125551265512755128551295513055131551325513355134551355513655137551385513955140551415514255143551445514555146551475514855149551505515155152551535515455155551565515755158551595516055161551625516355164551655516655167551685516955170551715517255173551745517555176551775517855179551805518155182551835518455185551865518755188551895519055191551925519355194551955519655197551985519955200552015520255203552045520555206552075520855209552105521155212552135521455215552165521755218552195522055221552225522355224552255522655227552285522955230552315523255233552345523555236552375523855239552405524155242552435524455245552465524755248552495525055251552525525355254552555525655257552585525955260552615526255263552645526555266552675526855269552705527155272552735527455275552765527755278552795528055281552825528355284552855528655287552885528955290552915529255293552945529555296552975529855299553005530155302553035530455305553065530755308553095531055311553125531355314553155531655317553185531955320553215532255323553245532555326553275532855329553305533155332553335533455335553365533755338553395534055341553425534355344553455534655347553485534955350553515535255353553545535555356553575535855359553605536155362553635536455365553665536755368553695537055371553725537355374553755537655377553785537955380553815538255383553845538555386553875538855389553905539155392553935539455395553965539755398553995540055401554025540355404554055540655407554085540955410554115541255413554145541555416554175541855419554205542155422554235542455425554265542755428554295543055431554325543355434554355543655437554385543955440554415544255443554445544555446554475544855449554505545155452554535545455455554565545755458554595546055461554625546355464554655546655467554685546955470554715547255473554745547555476554775547855479554805548155482554835548455485554865548755488554895549055491554925549355494554955549655497554985549955500555015550255503555045550555506555075550855509555105551155512555135551455515555165551755518555195552055521555225552355524555255552655527555285552955530555315553255533555345553555536555375553855539555405554155542555435554455545555465554755548555495555055551555525555355554555555555655557555585555955560555615556255563555645556555566555675556855569555705557155572555735557455575555765557755578555795558055581555825558355584555855558655587555885558955590555915559255593555945559555596555975559855599556005560155602556035560455605556065560755608556095561055611556125561355614556155561655617556185561955620556215562255623556245562555626556275562855629556305563155632556335563455635556365563755638556395564055641556425564355644556455564655647556485564955650556515565255653556545565555656556575565855659556605566155662556635566455665556665566755668556695567055671556725567355674556755567655677556785567955680556815568255683556845568555686556875568855689556905569155692556935569455695556965569755698556995570055701557025570355704557055570655707557085570955710557115571255713557145571555716557175571855719557205572155722557235572455725557265572755728557295573055731557325573355734557355573655737557385573955740557415574255743557445574555746557475574855749557505575155752557535575455755557565575755758557595576055761557625576355764557655576655767557685576955770557715577255773557745577555776557775577855779557805578155782557835578455785557865578755788557895579055791557925579355794557955579655797557985579955800558015580255803558045580555806558075580855809558105581155812558135581455815558165581755818558195582055821558225582355824558255582655827558285582955830558315583255833558345583555836558375583855839558405584155842558435584455845558465584755848558495585055851558525585355854558555585655857558585585955860558615586255863558645586555866558675586855869558705587155872558735587455875558765587755878558795588055881558825588355884558855588655887558885588955890558915589255893558945589555896558975589855899559005590155902559035590455905559065590755908559095591055911559125591355914559155591655917559185591955920559215592255923559245592555926559275592855929559305593155932559335593455935559365593755938559395594055941559425594355944559455594655947559485594955950559515595255953559545595555956559575595855959559605596155962559635596455965559665596755968559695597055971559725597355974559755597655977559785597955980559815598255983559845598555986559875598855989559905599155992559935599455995559965599755998559995600056001560025600356004560055600656007560085600956010560115601256013560145601556016560175601856019560205602156022560235602456025560265602756028560295603056031560325603356034560355603656037560385603956040560415604256043560445604556046560475604856049560505605156052560535605456055560565605756058560595606056061560625606356064560655606656067560685606956070560715607256073560745607556076560775607856079560805608156082560835608456085560865608756088560895609056091560925609356094560955609656097560985609956100561015610256103561045610556106561075610856109561105611156112561135611456115561165611756118561195612056121561225612356124561255612656127561285612956130561315613256133561345613556136561375613856139561405614156142561435614456145561465614756148561495615056151561525615356154561555615656157561585615956160561615616256163561645616556166561675616856169561705617156172561735617456175561765617756178561795618056181561825618356184561855618656187561885618956190561915619256193561945619556196561975619856199562005620156202562035620456205562065620756208562095621056211562125621356214562155621656217562185621956220562215622256223562245622556226562275622856229562305623156232562335623456235562365623756238562395624056241562425624356244562455624656247562485624956250562515625256253562545625556256562575625856259562605626156262562635626456265562665626756268562695627056271562725627356274562755627656277562785627956280562815628256283562845628556286562875628856289562905629156292562935629456295562965629756298562995630056301563025630356304563055630656307563085630956310563115631256313563145631556316563175631856319563205632156322563235632456325563265632756328563295633056331563325633356334563355633656337563385633956340563415634256343563445634556346563475634856349563505635156352563535635456355563565635756358563595636056361563625636356364563655636656367563685636956370563715637256373563745637556376563775637856379563805638156382563835638456385563865638756388563895639056391563925639356394563955639656397563985639956400564015640256403564045640556406564075640856409564105641156412564135641456415564165641756418564195642056421564225642356424564255642656427564285642956430564315643256433564345643556436564375643856439564405644156442564435644456445564465644756448564495645056451564525645356454564555645656457564585645956460564615646256463564645646556466564675646856469564705647156472564735647456475564765647756478564795648056481564825648356484564855648656487564885648956490564915649256493564945649556496564975649856499565005650156502565035650456505565065650756508565095651056511565125651356514565155651656517565185651956520565215652256523565245652556526565275652856529565305653156532565335653456535565365653756538565395654056541565425654356544565455654656547565485654956550565515655256553565545655556556565575655856559565605656156562565635656456565565665656756568565695657056571565725657356574565755657656577565785657956580565815658256583565845658556586565875658856589565905659156592565935659456595565965659756598565995660056601566025660356604566055660656607566085660956610566115661256613566145661556616566175661856619566205662156622566235662456625566265662756628566295663056631566325663356634566355663656637566385663956640566415664256643566445664556646566475664856649566505665156652566535665456655566565665756658566595666056661566625666356664566655666656667566685666956670566715667256673566745667556676566775667856679566805668156682566835668456685566865668756688566895669056691566925669356694566955669656697566985669956700567015670256703567045670556706567075670856709567105671156712567135671456715567165671756718567195672056721567225672356724567255672656727567285672956730567315673256733567345673556736567375673856739567405674156742567435674456745567465674756748567495675056751567525675356754567555675656757567585675956760567615676256763567645676556766567675676856769567705677156772567735677456775567765677756778567795678056781567825678356784567855678656787567885678956790567915679256793567945679556796567975679856799568005680156802568035680456805568065680756808568095681056811568125681356814568155681656817568185681956820568215682256823568245682556826568275682856829568305683156832568335683456835568365683756838568395684056841568425684356844568455684656847568485684956850568515685256853568545685556856568575685856859568605686156862568635686456865568665686756868568695687056871568725687356874568755687656877568785687956880568815688256883568845688556886568875688856889568905689156892568935689456895568965689756898568995690056901569025690356904569055690656907569085690956910569115691256913569145691556916569175691856919569205692156922569235692456925569265692756928569295693056931569325693356934569355693656937569385693956940569415694256943569445694556946569475694856949569505695156952569535695456955569565695756958569595696056961569625696356964569655696656967569685696956970569715697256973569745697556976569775697856979569805698156982569835698456985569865698756988569895699056991569925699356994569955699656997569985699957000570015700257003570045700557006570075700857009570105701157012570135701457015570165701757018570195702057021570225702357024570255702657027570285702957030570315703257033570345703557036570375703857039570405704157042570435704457045570465704757048570495705057051570525705357054570555705657057570585705957060570615706257063570645706557066570675706857069570705707157072570735707457075570765707757078570795708057081570825708357084570855708657087570885708957090570915709257093570945709557096570975709857099571005710157102571035710457105571065710757108571095711057111571125711357114571155711657117571185711957120571215712257123571245712557126571275712857129571305713157132571335713457135571365713757138571395714057141571425714357144571455714657147571485714957150571515715257153571545715557156571575715857159571605716157162571635716457165571665716757168571695717057171571725717357174571755717657177571785717957180571815718257183571845718557186571875718857189571905719157192571935719457195571965719757198571995720057201572025720357204572055720657207572085720957210572115721257213572145721557216572175721857219572205722157222572235722457225572265722757228572295723057231572325723357234572355723657237572385723957240572415724257243572445724557246572475724857249572505725157252572535725457255572565725757258572595726057261572625726357264572655726657267572685726957270572715727257273572745727557276572775727857279572805728157282572835728457285572865728757288572895729057291572925729357294572955729657297572985729957300573015730257303573045730557306573075730857309573105731157312573135731457315573165731757318573195732057321573225732357324573255732657327573285732957330573315733257333573345733557336573375733857339573405734157342573435734457345573465734757348573495735057351573525735357354573555735657357573585735957360573615736257363573645736557366573675736857369573705737157372573735737457375573765737757378573795738057381573825738357384573855738657387573885738957390573915739257393573945739557396573975739857399574005740157402574035740457405574065740757408574095741057411574125741357414574155741657417574185741957420574215742257423574245742557426574275742857429574305743157432574335743457435574365743757438574395744057441574425744357444574455744657447574485744957450574515745257453574545745557456574575745857459574605746157462574635746457465574665746757468574695747057471574725747357474574755747657477574785747957480574815748257483574845748557486574875748857489574905749157492574935749457495574965749757498574995750057501575025750357504575055750657507575085750957510575115751257513575145751557516575175751857519575205752157522575235752457525575265752757528575295753057531575325753357534575355753657537575385753957540575415754257543575445754557546575475754857549575505755157552575535755457555575565755757558575595756057561575625756357564575655756657567575685756957570575715757257573575745757557576575775757857579575805758157582575835758457585575865758757588575895759057591575925759357594575955759657597575985759957600576015760257603576045760557606576075760857609576105761157612576135761457615576165761757618576195762057621576225762357624576255762657627576285762957630576315763257633576345763557636576375763857639576405764157642576435764457645576465764757648576495765057651576525765357654576555765657657576585765957660576615766257663576645766557666576675766857669576705767157672576735767457675576765767757678576795768057681576825768357684576855768657687576885768957690576915769257693576945769557696576975769857699577005770157702577035770457705577065770757708577095771057711577125771357714577155771657717577185771957720577215772257723577245772557726577275772857729577305773157732577335773457735577365773757738577395774057741577425774357744577455774657747577485774957750577515775257753577545775557756577575775857759577605776157762577635776457765577665776757768577695777057771577725777357774577755777657777577785777957780577815778257783577845778557786577875778857789577905779157792577935779457795577965779757798577995780057801578025780357804578055780657807578085780957810578115781257813578145781557816578175781857819578205782157822578235782457825578265782757828578295783057831578325783357834578355783657837578385783957840578415784257843578445784557846578475784857849578505785157852578535785457855578565785757858578595786057861578625786357864578655786657867578685786957870578715787257873578745787557876578775787857879578805788157882578835788457885578865788757888578895789057891578925789357894578955789657897578985789957900579015790257903579045790557906579075790857909579105791157912579135791457915579165791757918579195792057921579225792357924579255792657927579285792957930579315793257933579345793557936579375793857939579405794157942579435794457945579465794757948579495795057951579525795357954579555795657957579585795957960579615796257963579645796557966579675796857969579705797157972579735797457975579765797757978579795798057981579825798357984579855798657987579885798957990579915799257993579945799557996579975799857999580005800158002580035800458005580065800758008580095801058011580125801358014580155801658017580185801958020580215802258023580245802558026580275802858029580305803158032580335803458035580365803758038580395804058041580425804358044580455804658047580485804958050580515805258053580545805558056580575805858059580605806158062580635806458065580665806758068580695807058071580725807358074580755807658077580785807958080580815808258083580845808558086580875808858089580905809158092580935809458095580965809758098580995810058101581025810358104581055810658107581085810958110581115811258113581145811558116581175811858119581205812158122581235812458125581265812758128581295813058131581325813358134581355813658137581385813958140581415814258143581445814558146581475814858149581505815158152581535815458155581565815758158581595816058161581625816358164581655816658167581685816958170581715817258173581745817558176581775817858179581805818158182581835818458185581865818758188581895819058191581925819358194581955819658197581985819958200582015820258203582045820558206582075820858209582105821158212582135821458215582165821758218582195822058221582225822358224582255822658227582285822958230582315823258233582345823558236582375823858239582405824158242582435824458245582465824758248582495825058251582525825358254582555825658257582585825958260582615826258263582645826558266582675826858269582705827158272582735827458275582765827758278582795828058281582825828358284582855828658287582885828958290582915829258293582945829558296582975829858299583005830158302583035830458305583065830758308583095831058311583125831358314583155831658317583185831958320583215832258323583245832558326583275832858329583305833158332583335833458335583365833758338583395834058341583425834358344583455834658347583485834958350583515835258353583545835558356583575835858359583605836158362583635836458365583665836758368583695837058371583725837358374583755837658377583785837958380583815838258383583845838558386583875838858389583905839158392583935839458395583965839758398583995840058401584025840358404584055840658407584085840958410584115841258413584145841558416584175841858419584205842158422584235842458425584265842758428584295843058431584325843358434584355843658437584385843958440584415844258443584445844558446584475844858449584505845158452584535845458455584565845758458584595846058461584625846358464584655846658467584685846958470584715847258473584745847558476584775847858479584805848158482584835848458485584865848758488584895849058491584925849358494584955849658497584985849958500585015850258503585045850558506585075850858509585105851158512585135851458515585165851758518585195852058521585225852358524585255852658527585285852958530585315853258533585345853558536585375853858539585405854158542585435854458545585465854758548585495855058551585525855358554585555855658557585585855958560585615856258563585645856558566585675856858569585705857158572585735857458575585765857758578585795858058581585825858358584585855858658587585885858958590585915859258593585945859558596585975859858599586005860158602586035860458605586065860758608586095861058611586125861358614586155861658617586185861958620586215862258623586245862558626586275862858629586305863158632586335863458635586365863758638586395864058641586425864358644586455864658647586485864958650586515865258653586545865558656586575865858659586605866158662586635866458665586665866758668586695867058671586725867358674586755867658677586785867958680586815868258683586845868558686586875868858689586905869158692586935869458695586965869758698586995870058701587025870358704587055870658707587085870958710587115871258713587145871558716587175871858719587205872158722587235872458725587265872758728587295873058731587325873358734587355873658737587385873958740587415874258743587445874558746587475874858749587505875158752587535875458755587565875758758587595876058761587625876358764587655876658767587685876958770587715877258773587745877558776587775877858779587805878158782587835878458785587865878758788587895879058791587925879358794587955879658797587985879958800588015880258803588045880558806588075880858809588105881158812588135881458815588165881758818588195882058821588225882358824588255882658827588285882958830588315883258833588345883558836588375883858839588405884158842588435884458845588465884758848588495885058851588525885358854588555885658857588585885958860588615886258863588645886558866588675886858869588705887158872588735887458875588765887758878588795888058881588825888358884588855888658887588885888958890588915889258893588945889558896588975889858899589005890158902589035890458905589065890758908589095891058911589125891358914589155891658917589185891958920589215892258923589245892558926589275892858929589305893158932589335893458935589365893758938589395894058941589425894358944589455894658947589485894958950589515895258953589545895558956589575895858959589605896158962589635896458965589665896758968589695897058971589725897358974589755897658977589785897958980589815898258983589845898558986589875898858989589905899158992589935899458995589965899758998589995900059001590025900359004590055900659007590085900959010590115901259013590145901559016590175901859019590205902159022590235902459025590265902759028590295903059031590325903359034590355903659037590385903959040590415904259043590445904559046590475904859049590505905159052590535905459055590565905759058590595906059061590625906359064590655906659067590685906959070590715907259073590745907559076590775907859079590805908159082590835908459085590865908759088590895909059091590925909359094590955909659097590985909959100591015910259103591045910559106591075910859109591105911159112591135911459115591165911759118591195912059121591225912359124591255912659127591285912959130591315913259133591345913559136591375913859139591405914159142591435914459145591465914759148591495915059151591525915359154591555915659157591585915959160591615916259163591645916559166591675916859169591705917159172591735917459175591765917759178591795918059181591825918359184591855918659187591885918959190591915919259193591945919559196591975919859199592005920159202592035920459205592065920759208592095921059211592125921359214592155921659217592185921959220592215922259223592245922559226592275922859229592305923159232592335923459235592365923759238592395924059241592425924359244592455924659247592485924959250592515925259253592545925559256592575925859259592605926159262592635926459265592665926759268592695927059271592725927359274592755927659277592785927959280592815928259283592845928559286592875928859289592905929159292592935929459295592965929759298592995930059301593025930359304593055930659307593085930959310593115931259313593145931559316593175931859319593205932159322593235932459325593265932759328593295933059331593325933359334593355933659337593385933959340593415934259343593445934559346593475934859349593505935159352593535935459355593565935759358593595936059361593625936359364593655936659367593685936959370593715937259373593745937559376593775937859379593805938159382593835938459385593865938759388593895939059391593925939359394593955939659397593985939959400594015940259403594045940559406594075940859409594105941159412594135941459415594165941759418594195942059421594225942359424594255942659427594285942959430594315943259433594345943559436594375943859439594405944159442594435944459445594465944759448594495945059451594525945359454594555945659457594585945959460594615946259463594645946559466594675946859469594705947159472594735947459475594765947759478594795948059481594825948359484594855948659487594885948959490594915949259493594945949559496594975949859499595005950159502595035950459505595065950759508595095951059511595125951359514595155951659517595185951959520595215952259523595245952559526595275952859529595305953159532595335953459535595365953759538595395954059541595425954359544595455954659547595485954959550595515955259553595545955559556595575955859559595605956159562595635956459565595665956759568595695957059571595725957359574595755957659577595785957959580595815958259583595845958559586595875958859589595905959159592595935959459595595965959759598595995960059601596025960359604596055960659607596085960959610596115961259613596145961559616596175961859619596205962159622596235962459625596265962759628596295963059631596325963359634596355963659637596385963959640596415964259643596445964559646596475964859649596505965159652596535965459655596565965759658596595966059661596625966359664596655966659667596685966959670596715967259673596745967559676596775967859679596805968159682596835968459685596865968759688596895969059691596925969359694596955969659697596985969959700597015970259703597045970559706597075970859709597105971159712597135971459715597165971759718597195972059721597225972359724597255972659727597285972959730597315973259733597345973559736597375973859739597405974159742597435974459745597465974759748597495975059751597525975359754597555975659757597585975959760597615976259763597645976559766597675976859769597705977159772597735977459775597765977759778597795978059781597825978359784597855978659787597885978959790597915979259793597945979559796597975979859799598005980159802598035980459805598065980759808598095981059811598125981359814598155981659817598185981959820598215982259823598245982559826598275982859829598305983159832598335983459835598365983759838598395984059841598425984359844598455984659847598485984959850598515985259853598545985559856598575985859859598605986159862598635986459865598665986759868598695987059871598725987359874598755987659877598785987959880598815988259883598845988559886598875988859889598905989159892598935989459895598965989759898598995990059901599025990359904599055990659907599085990959910599115991259913599145991559916599175991859919599205992159922599235992459925599265992759928599295993059931599325993359934599355993659937599385993959940599415994259943599445994559946599475994859949599505995159952599535995459955599565995759958599595996059961599625996359964599655996659967599685996959970599715997259973599745997559976599775997859979599805998159982599835998459985599865998759988599895999059991599925999359994599955999659997599985999960000600016000260003600046000560006600076000860009600106001160012600136001460015600166001760018600196002060021600226002360024600256002660027600286002960030600316003260033600346003560036600376003860039600406004160042600436004460045600466004760048600496005060051600526005360054600556005660057600586005960060600616006260063600646006560066600676006860069600706007160072600736007460075600766007760078600796008060081600826008360084600856008660087600886008960090600916009260093600946009560096600976009860099601006010160102601036010460105601066010760108601096011060111601126011360114601156011660117601186011960120601216012260123601246012560126601276012860129601306013160132601336013460135601366013760138601396014060141601426014360144601456014660147601486014960150601516015260153601546015560156601576015860159601606016160162601636016460165601666016760168601696017060171601726017360174601756017660177601786017960180601816018260183601846018560186601876018860189601906019160192601936019460195601966019760198601996020060201602026020360204602056020660207602086020960210602116021260213602146021560216602176021860219602206022160222602236022460225602266022760228602296023060231602326023360234602356023660237602386023960240602416024260243602446024560246602476024860249602506025160252602536025460255602566025760258602596026060261602626026360264602656026660267602686026960270602716027260273602746027560276602776027860279602806028160282602836028460285602866028760288602896029060291602926029360294602956029660297602986029960300603016030260303603046030560306603076030860309603106031160312603136031460315603166031760318603196032060321603226032360324603256032660327603286032960330603316033260333603346033560336603376033860339603406034160342603436034460345603466034760348603496035060351603526035360354603556035660357603586035960360603616036260363603646036560366603676036860369603706037160372603736037460375603766037760378603796038060381603826038360384603856038660387603886038960390603916039260393603946039560396603976039860399604006040160402604036040460405604066040760408604096041060411604126041360414604156041660417604186041960420604216042260423604246042560426604276042860429604306043160432604336043460435604366043760438604396044060441604426044360444604456044660447604486044960450604516045260453604546045560456604576045860459604606046160462604636046460465604666046760468604696047060471604726047360474604756047660477604786047960480604816048260483604846048560486604876048860489604906049160492604936049460495604966049760498604996050060501605026050360504605056050660507605086050960510605116051260513605146051560516605176051860519605206052160522605236052460525605266052760528605296053060531605326053360534605356053660537605386053960540605416054260543605446054560546605476054860549605506055160552605536055460555605566055760558605596056060561605626056360564605656056660567605686056960570605716057260573605746057560576605776057860579605806058160582605836058460585605866058760588605896059060591605926059360594605956059660597605986059960600606016060260603606046060560606606076060860609606106061160612606136061460615606166061760618606196062060621606226062360624606256062660627606286062960630606316063260633606346063560636606376063860639606406064160642606436064460645606466064760648606496065060651606526065360654606556065660657606586065960660606616066260663606646066560666606676066860669606706067160672606736067460675606766067760678606796068060681606826068360684606856068660687606886068960690606916069260693606946069560696606976069860699607006070160702607036070460705607066070760708607096071060711607126071360714607156071660717607186071960720607216072260723607246072560726607276072860729607306073160732607336073460735607366073760738607396074060741607426074360744607456074660747607486074960750607516075260753607546075560756607576075860759607606076160762607636076460765607666076760768607696077060771607726077360774607756077660777607786077960780607816078260783607846078560786607876078860789607906079160792607936079460795607966079760798607996080060801608026080360804608056080660807608086080960810608116081260813608146081560816608176081860819608206082160822608236082460825608266082760828608296083060831608326083360834608356083660837608386083960840608416084260843608446084560846608476084860849608506085160852608536085460855608566085760858608596086060861608626086360864608656086660867608686086960870608716087260873608746087560876608776087860879608806088160882608836088460885608866088760888608896089060891608926089360894608956089660897608986089960900609016090260903609046090560906609076090860909609106091160912609136091460915609166091760918609196092060921609226092360924609256092660927609286092960930609316093260933609346093560936609376093860939609406094160942609436094460945609466094760948609496095060951609526095360954609556095660957609586095960960609616096260963609646096560966609676096860969609706097160972609736097460975609766097760978609796098060981609826098360984609856098660987609886098960990609916099260993609946099560996609976099860999610006100161002610036100461005610066100761008610096101061011610126101361014610156101661017610186101961020610216102261023610246102561026610276102861029610306103161032610336103461035610366103761038610396104061041610426104361044610456104661047610486104961050610516105261053610546105561056610576105861059610606106161062610636106461065610666106761068610696107061071610726107361074610756107661077610786107961080610816108261083610846108561086610876108861089610906109161092610936109461095610966109761098610996110061101611026110361104611056110661107611086110961110611116111261113611146111561116611176111861119611206112161122611236112461125611266112761128611296113061131611326113361134611356113661137611386113961140611416114261143611446114561146611476114861149611506115161152611536115461155611566115761158611596116061161611626116361164611656116661167611686116961170611716117261173611746117561176611776117861179611806118161182611836118461185611866118761188611896119061191611926119361194611956119661197611986119961200612016120261203612046120561206612076120861209612106121161212612136121461215612166121761218612196122061221612226122361224612256122661227612286122961230612316123261233612346123561236612376123861239612406124161242612436124461245612466124761248612496125061251612526125361254612556125661257612586125961260612616126261263612646126561266612676126861269612706127161272612736127461275612766127761278612796128061281612826128361284612856128661287612886128961290612916129261293612946129561296612976129861299613006130161302613036130461305613066130761308613096131061311613126131361314613156131661317613186131961320613216132261323613246132561326613276132861329613306133161332613336133461335613366133761338613396134061341613426134361344613456134661347613486134961350613516135261353613546135561356613576135861359613606136161362613636136461365613666136761368613696137061371613726137361374613756137661377613786137961380613816138261383613846138561386613876138861389613906139161392613936139461395613966139761398613996140061401614026140361404614056140661407614086140961410614116141261413614146141561416614176141861419614206142161422614236142461425614266142761428614296143061431614326143361434614356143661437614386143961440614416144261443614446144561446614476144861449614506145161452614536145461455614566145761458614596146061461614626146361464614656146661467614686146961470614716147261473614746147561476614776147861479614806148161482614836148461485614866148761488614896149061491614926149361494614956149661497614986149961500615016150261503615046150561506615076150861509615106151161512615136151461515615166151761518615196152061521615226152361524615256152661527615286152961530615316153261533615346153561536615376153861539615406154161542615436154461545615466154761548615496155061551615526155361554615556155661557615586155961560615616156261563615646156561566615676156861569615706157161572615736157461575615766157761578615796158061581615826158361584615856158661587615886158961590615916159261593615946159561596615976159861599616006160161602616036160461605616066160761608616096161061611616126161361614616156161661617616186161961620616216162261623616246162561626616276162861629616306163161632616336163461635616366163761638616396164061641616426164361644616456164661647616486164961650616516165261653616546165561656616576165861659616606166161662616636166461665616666166761668616696167061671616726167361674616756167661677616786167961680616816168261683616846168561686616876168861689616906169161692616936169461695616966169761698616996170061701617026170361704617056170661707617086170961710617116171261713617146171561716617176171861719617206172161722617236172461725617266172761728617296173061731617326173361734617356173661737617386173961740617416174261743617446174561746617476174861749617506175161752617536175461755617566175761758617596176061761617626176361764617656176661767617686176961770617716177261773617746177561776617776177861779617806178161782617836178461785617866178761788617896179061791617926179361794617956179661797617986179961800618016180261803618046180561806618076180861809618106181161812618136181461815618166181761818618196182061821618226182361824618256182661827618286182961830618316183261833618346183561836618376183861839618406184161842618436184461845618466184761848618496185061851618526185361854618556185661857618586185961860618616186261863618646186561866618676186861869618706187161872618736187461875618766187761878618796188061881618826188361884618856188661887618886188961890618916189261893618946189561896618976189861899619006190161902619036190461905619066190761908619096191061911619126191361914619156191661917619186191961920619216192261923619246192561926619276192861929619306193161932619336193461935619366193761938619396194061941619426194361944619456194661947619486194961950619516195261953619546195561956619576195861959619606196161962619636196461965619666196761968619696197061971619726197361974619756197661977619786197961980619816198261983619846198561986619876198861989619906199161992619936199461995619966199761998619996200062001620026200362004620056200662007620086200962010620116201262013620146201562016620176201862019620206202162022620236202462025620266202762028620296203062031620326203362034620356203662037620386203962040620416204262043620446204562046620476204862049620506205162052620536205462055620566205762058620596206062061620626206362064620656206662067620686206962070620716207262073620746207562076620776207862079620806208162082620836208462085620866208762088620896209062091620926209362094620956209662097620986209962100621016210262103621046210562106621076210862109621106211162112621136211462115621166211762118621196212062121621226212362124621256212662127621286212962130621316213262133621346213562136621376213862139621406214162142621436214462145621466214762148621496215062151621526215362154621556215662157621586215962160621616216262163621646216562166621676216862169621706217162172621736217462175621766217762178621796218062181621826218362184621856218662187621886218962190621916219262193621946219562196621976219862199622006220162202622036220462205622066220762208622096221062211622126221362214622156221662217622186221962220622216222262223622246222562226622276222862229622306223162232622336223462235622366223762238622396224062241622426224362244622456224662247622486224962250622516225262253622546225562256622576225862259622606226162262622636226462265622666226762268622696227062271622726227362274622756227662277622786227962280622816228262283622846228562286622876228862289622906229162292622936229462295622966229762298622996230062301623026230362304623056230662307623086230962310623116231262313623146231562316623176231862319623206232162322623236232462325623266232762328623296233062331623326233362334623356233662337623386233962340623416234262343623446234562346623476234862349623506235162352623536235462355623566235762358623596236062361623626236362364623656236662367623686236962370623716237262373623746237562376623776237862379623806238162382623836238462385623866238762388623896239062391623926239362394623956239662397623986239962400624016240262403624046240562406624076240862409624106241162412624136241462415624166241762418624196242062421624226242362424624256242662427624286242962430624316243262433624346243562436624376243862439624406244162442624436244462445624466244762448624496245062451624526245362454624556245662457624586245962460624616246262463624646246562466624676246862469624706247162472624736247462475624766247762478624796248062481624826248362484624856248662487624886248962490624916249262493624946249562496624976249862499625006250162502625036250462505625066250762508625096251062511625126251362514625156251662517625186251962520625216252262523625246252562526625276252862529625306253162532625336253462535625366253762538625396254062541625426254362544625456254662547625486254962550625516255262553625546255562556625576255862559625606256162562625636256462565625666256762568625696257062571625726257362574625756257662577625786257962580625816258262583625846258562586625876258862589625906259162592625936259462595625966259762598625996260062601626026260362604626056260662607626086260962610626116261262613626146261562616626176261862619626206262162622626236262462625626266262762628626296263062631626326263362634626356263662637626386263962640626416264262643626446264562646626476264862649626506265162652626536265462655626566265762658626596266062661626626266362664626656266662667626686266962670626716267262673626746267562676626776267862679626806268162682626836268462685626866268762688626896269062691626926269362694626956269662697626986269962700627016270262703627046270562706627076270862709627106271162712627136271462715627166271762718627196272062721627226272362724627256272662727627286272962730627316273262733627346273562736627376273862739627406274162742627436274462745627466274762748627496275062751627526275362754627556275662757627586275962760627616276262763627646276562766627676276862769627706277162772627736277462775627766277762778627796278062781627826278362784627856278662787627886278962790627916279262793627946279562796627976279862799628006280162802628036280462805628066280762808628096281062811628126281362814628156281662817628186281962820628216282262823628246282562826628276282862829628306283162832628336283462835628366283762838628396284062841628426284362844628456284662847628486284962850628516285262853628546285562856628576285862859628606286162862628636286462865628666286762868628696287062871628726287362874628756287662877628786287962880628816288262883628846288562886628876288862889628906289162892628936289462895628966289762898628996290062901629026290362904629056290662907629086290962910629116291262913629146291562916629176291862919629206292162922629236292462925629266292762928629296293062931629326293362934629356293662937629386293962940629416294262943629446294562946629476294862949629506295162952629536295462955629566295762958629596296062961629626296362964629656296662967629686296962970629716297262973629746297562976629776297862979629806298162982629836298462985629866298762988629896299062991629926299362994629956299662997629986299963000630016300263003630046300563006630076300863009630106301163012630136301463015630166301763018630196302063021630226302363024630256302663027630286302963030630316303263033630346303563036630376303863039630406304163042630436304463045630466304763048630496305063051630526305363054630556305663057630586305963060630616306263063630646306563066630676306863069630706307163072630736307463075630766307763078630796308063081630826308363084630856308663087630886308963090630916309263093630946309563096630976309863099631006310163102631036310463105631066310763108631096311063111631126311363114631156311663117631186311963120631216312263123631246312563126631276312863129631306313163132631336313463135631366313763138631396314063141631426314363144631456314663147631486314963150631516315263153631546315563156631576315863159631606316163162631636316463165631666316763168631696317063171631726317363174631756317663177631786317963180631816318263183631846318563186631876318863189631906319163192631936319463195631966319763198631996320063201632026320363204632056320663207632086320963210632116321263213632146321563216632176321863219632206322163222632236322463225632266322763228632296323063231632326323363234632356323663237632386323963240632416324263243632446324563246632476324863249632506325163252632536325463255632566325763258632596326063261632626326363264632656326663267632686326963270632716327263273632746327563276632776327863279632806328163282632836328463285632866328763288632896329063291632926329363294632956329663297632986329963300633016330263303633046330563306633076330863309633106331163312633136331463315633166331763318633196332063321633226332363324633256332663327633286332963330633316333263333633346333563336633376333863339633406334163342633436334463345633466334763348633496335063351633526335363354633556335663357633586335963360633616336263363633646336563366633676336863369633706337163372633736337463375633766337763378633796338063381633826338363384633856338663387633886338963390633916339263393633946339563396633976339863399634006340163402634036340463405634066340763408634096341063411634126341363414634156341663417634186341963420634216342263423634246342563426634276342863429634306343163432634336343463435634366343763438634396344063441634426344363444634456344663447634486344963450634516345263453634546345563456634576345863459634606346163462634636346463465634666346763468634696347063471634726347363474634756347663477634786347963480634816348263483634846348563486634876348863489634906349163492634936349463495634966349763498634996350063501635026350363504635056350663507635086350963510635116351263513635146351563516635176351863519635206352163522635236352463525635266352763528635296353063531635326353363534635356353663537635386353963540635416354263543635446354563546635476354863549635506355163552635536355463555635566355763558635596356063561635626356363564635656356663567635686356963570635716357263573635746357563576635776357863579635806358163582635836358463585635866358763588635896359063591635926359363594635956359663597635986359963600636016360263603636046360563606636076360863609636106361163612636136361463615636166361763618636196362063621636226362363624636256362663627636286362963630636316363263633636346363563636636376363863639636406364163642636436364463645636466364763648636496365063651636526365363654636556365663657636586365963660636616366263663636646366563666636676366863669636706367163672636736367463675636766367763678636796368063681636826368363684636856368663687636886368963690636916369263693636946369563696636976369863699637006370163702637036370463705637066370763708637096371063711637126371363714637156371663717637186371963720637216372263723637246372563726637276372863729637306373163732637336373463735637366373763738637396374063741637426374363744637456374663747637486374963750637516375263753637546375563756637576375863759637606376163762637636376463765637666376763768637696377063771637726377363774637756377663777637786377963780637816378263783637846378563786637876378863789637906379163792637936379463795637966379763798637996380063801638026380363804638056380663807638086380963810638116381263813638146381563816638176381863819638206382163822638236382463825638266382763828638296383063831638326383363834638356383663837638386383963840638416384263843638446384563846638476384863849638506385163852638536385463855638566385763858638596386063861638626386363864638656386663867638686386963870638716387263873638746387563876638776387863879638806388163882638836388463885638866388763888638896389063891638926389363894638956389663897638986389963900639016390263903639046390563906639076390863909639106391163912639136391463915639166391763918639196392063921639226392363924639256392663927639286392963930639316393263933639346393563936639376393863939639406394163942639436394463945639466394763948639496395063951639526395363954639556395663957639586395963960639616396263963639646396563966639676396863969639706397163972639736397463975639766397763978639796398063981639826398363984639856398663987639886398963990639916399263993639946399563996639976399863999640006400164002640036400464005640066400764008640096401064011640126401364014640156401664017640186401964020640216402264023640246402564026640276402864029640306403164032640336403464035640366403764038640396404064041640426404364044640456404664047640486404964050640516405264053640546405564056640576405864059640606406164062640636406464065640666406764068640696407064071640726407364074640756407664077640786407964080640816408264083640846408564086640876408864089640906409164092640936409464095640966409764098640996410064101641026410364104641056410664107641086410964110641116411264113641146411564116641176411864119641206412164122641236412464125641266412764128641296413064131641326413364134641356413664137641386413964140641416414264143641446414564146641476414864149641506415164152641536415464155641566415764158641596416064161641626416364164641656416664167641686416964170641716417264173641746417564176641776417864179641806418164182641836418464185641866418764188641896419064191641926419364194641956419664197641986419964200642016420264203642046420564206642076420864209642106421164212642136421464215642166421764218642196422064221642226422364224642256422664227642286422964230642316423264233642346423564236642376423864239642406424164242642436424464245642466424764248642496425064251642526425364254642556425664257642586425964260642616426264263642646426564266642676426864269642706427164272642736427464275642766427764278642796428064281642826428364284642856428664287642886428964290642916429264293642946429564296642976429864299643006430164302643036430464305643066430764308643096431064311643126431364314643156431664317643186431964320643216432264323643246432564326643276432864329643306433164332643336433464335643366433764338643396434064341643426434364344643456434664347643486434964350643516435264353643546435564356643576435864359643606436164362643636436464365643666436764368643696437064371643726437364374643756437664377643786437964380643816438264383643846438564386643876438864389643906439164392643936439464395643966439764398643996440064401644026440364404644056440664407644086440964410644116441264413644146441564416644176441864419644206442164422644236442464425644266442764428644296443064431644326443364434644356443664437644386443964440644416444264443644446444564446644476444864449644506445164452644536445464455644566445764458644596446064461644626446364464644656446664467644686446964470644716447264473644746447564476644776447864479644806448164482644836448464485644866448764488644896449064491644926449364494644956449664497644986449964500645016450264503645046450564506645076450864509645106451164512645136451464515645166451764518645196452064521645226452364524645256452664527645286452964530645316453264533645346453564536645376453864539645406454164542645436454464545645466454764548645496455064551645526455364554645556455664557645586455964560645616456264563645646456564566645676456864569645706457164572645736457464575645766457764578645796458064581645826458364584645856458664587645886458964590645916459264593645946459564596645976459864599646006460164602646036460464605646066460764608646096461064611646126461364614646156461664617646186461964620646216462264623646246462564626646276462864629646306463164632646336463464635646366463764638646396464064641646426464364644646456464664647646486464964650646516465264653646546465564656646576465864659646606466164662646636466464665646666466764668646696467064671646726467364674646756467664677646786467964680646816468264683646846468564686646876468864689646906469164692646936469464695646966469764698646996470064701647026470364704647056470664707647086470964710647116471264713647146471564716647176471864719647206472164722647236472464725647266472764728647296473064731647326473364734647356473664737647386473964740647416474264743647446474564746647476474864749647506475164752647536475464755647566475764758647596476064761647626476364764647656476664767647686476964770647716477264773647746477564776647776477864779647806478164782647836478464785647866478764788647896479064791647926479364794647956479664797647986479964800648016480264803648046480564806648076480864809648106481164812648136481464815648166481764818648196482064821648226482364824648256482664827648286482964830648316483264833648346483564836648376483864839648406484164842648436484464845648466484764848648496485064851648526485364854648556485664857648586485964860648616486264863648646486564866648676486864869648706487164872648736487464875648766487764878648796488064881648826488364884648856488664887648886488964890648916489264893648946489564896648976489864899649006490164902649036490464905649066490764908649096491064911649126491364914649156491664917649186491964920649216492264923649246492564926649276492864929649306493164932649336493464935649366493764938649396494064941649426494364944649456494664947649486494964950649516495264953649546495564956649576495864959649606496164962649636496464965649666496764968649696497064971649726497364974649756497664977649786497964980649816498264983649846498564986649876498864989649906499164992649936499464995649966499764998649996500065001650026500365004650056500665007650086500965010650116501265013650146501565016650176501865019650206502165022650236502465025650266502765028650296503065031650326503365034650356503665037650386503965040650416504265043650446504565046650476504865049650506505165052650536505465055650566505765058650596506065061650626506365064650656506665067650686506965070650716507265073650746507565076650776507865079650806508165082650836508465085650866508765088650896509065091650926509365094650956509665097650986509965100651016510265103651046510565106651076510865109651106511165112651136511465115651166511765118651196512065121651226512365124651256512665127651286512965130651316513265133651346513565136651376513865139651406514165142651436514465145651466514765148651496515065151651526515365154651556515665157651586515965160651616516265163651646516565166651676516865169651706517165172651736517465175651766517765178651796518065181651826518365184651856518665187651886518965190651916519265193651946519565196651976519865199652006520165202652036520465205652066520765208652096521065211652126521365214652156521665217652186521965220652216522265223652246522565226652276522865229652306523165232652336523465235652366523765238652396524065241652426524365244652456524665247652486524965250652516525265253652546525565256652576525865259652606526165262652636526465265652666526765268652696527065271652726527365274652756527665277652786527965280652816528265283652846528565286652876528865289652906529165292652936529465295652966529765298652996530065301653026530365304653056530665307653086530965310653116531265313653146531565316653176531865319653206532165322653236532465325653266532765328653296533065331653326533365334653356533665337653386533965340653416534265343653446534565346653476534865349653506535165352653536535465355653566535765358653596536065361653626536365364653656536665367653686536965370653716537265373653746537565376653776537865379653806538165382653836538465385653866538765388653896539065391653926539365394653956539665397653986539965400654016540265403654046540565406654076540865409654106541165412654136541465415654166541765418654196542065421654226542365424654256542665427654286542965430654316543265433654346543565436654376543865439654406544165442654436544465445654466544765448654496545065451654526545365454654556545665457654586545965460654616546265463654646546565466654676546865469654706547165472654736547465475654766547765478654796548065481654826548365484654856548665487654886548965490654916549265493654946549565496654976549865499655006550165502655036550465505655066550765508655096551065511655126551365514655156551665517655186551965520655216552265523655246552565526655276552865529655306553165532655336553465535655366553765538655396554065541655426554365544655456554665547655486554965550655516555265553655546555565556655576555865559655606556165562655636556465565655666556765568655696557065571655726557365574655756557665577655786557965580655816558265583655846558565586655876558865589655906559165592655936559465595655966559765598655996560065601656026560365604656056560665607656086560965610656116561265613656146561565616656176561865619656206562165622656236562465625656266562765628656296563065631656326563365634656356563665637656386563965640656416564265643656446564565646656476564865649656506565165652656536565465655656566565765658656596566065661656626566365664656656566665667656686566965670656716567265673656746567565676656776567865679656806568165682656836568465685656866568765688656896569065691656926569365694656956569665697656986569965700657016570265703657046570565706657076570865709657106571165712657136571465715657166571765718657196572065721657226572365724657256572665727657286572965730657316573265733657346573565736657376573865739657406574165742657436574465745657466574765748657496575065751657526575365754657556575665757657586575965760657616576265763657646576565766657676576865769657706577165772657736577465775657766577765778657796578065781657826578365784657856578665787657886578965790657916579265793657946579565796657976579865799658006580165802658036580465805658066580765808658096581065811658126581365814658156581665817658186581965820658216582265823658246582565826658276582865829658306583165832658336583465835658366583765838658396584065841658426584365844658456584665847658486584965850658516585265853658546585565856658576585865859658606586165862658636586465865658666586765868658696587065871658726587365874658756587665877658786587965880658816588265883658846588565886658876588865889658906589165892658936589465895658966589765898658996590065901659026590365904659056590665907659086590965910659116591265913659146591565916659176591865919659206592165922659236592465925659266592765928659296593065931659326593365934659356593665937659386593965940659416594265943659446594565946659476594865949659506595165952659536595465955659566595765958659596596065961659626596365964659656596665967659686596965970659716597265973659746597565976659776597865979659806598165982659836598465985659866598765988659896599065991659926599365994659956599665997659986599966000660016600266003660046600566006660076600866009660106601166012660136601466015660166601766018660196602066021660226602366024660256602666027660286602966030660316603266033660346603566036660376603866039660406604166042660436604466045660466604766048660496605066051660526605366054660556605666057660586605966060660616606266063660646606566066660676606866069660706607166072660736607466075660766607766078660796608066081660826608366084660856608666087660886608966090660916609266093660946609566096660976609866099661006610166102661036610466105661066610766108661096611066111661126611366114661156611666117661186611966120661216612266123661246612566126661276612866129661306613166132661336613466135661366613766138661396614066141661426614366144661456614666147661486614966150661516615266153661546615566156661576615866159661606616166162661636616466165661666616766168661696617066171661726617366174661756617666177661786617966180661816618266183661846618566186661876618866189661906619166192661936619466195661966619766198661996620066201662026620366204662056620666207662086620966210662116621266213662146621566216662176621866219662206622166222662236622466225662266622766228662296623066231662326623366234662356623666237662386623966240662416624266243662446624566246662476624866249662506625166252662536625466255662566625766258662596626066261662626626366264662656626666267662686626966270662716627266273662746627566276662776627866279662806628166282662836628466285662866628766288662896629066291662926629366294662956629666297662986629966300663016630266303663046630566306663076630866309663106631166312663136631466315663166631766318663196632066321663226632366324663256632666327663286632966330663316633266333663346633566336663376633866339663406634166342663436634466345663466634766348663496635066351663526635366354663556635666357663586635966360663616636266363663646636566366663676636866369663706637166372663736637466375663766637766378663796638066381663826638366384663856638666387663886638966390663916639266393663946639566396663976639866399664006640166402664036640466405664066640766408664096641066411664126641366414664156641666417664186641966420664216642266423664246642566426664276642866429664306643166432664336643466435664366643766438664396644066441664426644366444664456644666447664486644966450664516645266453664546645566456664576645866459664606646166462664636646466465664666646766468664696647066471664726647366474664756647666477664786647966480664816648266483664846648566486664876648866489664906649166492664936649466495664966649766498664996650066501665026650366504665056650666507665086650966510665116651266513665146651566516665176651866519665206652166522665236652466525665266652766528665296653066531665326653366534665356653666537665386653966540665416654266543665446654566546665476654866549665506655166552665536655466555665566655766558665596656066561665626656366564665656656666567665686656966570665716657266573665746657566576665776657866579665806658166582665836658466585665866658766588665896659066591665926659366594665956659666597665986659966600666016660266603666046660566606666076660866609666106661166612666136661466615666166661766618666196662066621666226662366624666256662666627666286662966630666316663266633666346663566636666376663866639666406664166642666436664466645666466664766648666496665066651666526665366654666556665666657666586665966660666616666266663666646666566666666676666866669666706667166672666736667466675666766667766678666796668066681666826668366684666856668666687666886668966690666916669266693666946669566696666976669866699667006670166702667036670466705667066670766708667096671066711667126671366714667156671666717667186671966720667216672266723667246672566726667276672866729667306673166732667336673466735667366673766738667396674066741667426674366744667456674666747667486674966750667516675266753667546675566756667576675866759667606676166762667636676466765667666676766768667696677066771667726677366774667756677666777667786677966780667816678266783667846678566786667876678866789667906679166792667936679466795667966679766798667996680066801668026680366804668056680666807668086680966810668116681266813668146681566816668176681866819668206682166822668236682466825668266682766828668296683066831668326683366834668356683666837668386683966840668416684266843668446684566846668476684866849668506685166852668536685466855668566685766858668596686066861668626686366864668656686666867668686686966870668716687266873668746687566876668776687866879668806688166882668836688466885668866688766888668896689066891668926689366894668956689666897668986689966900669016690266903669046690566906669076690866909669106691166912669136691466915669166691766918669196692066921669226692366924669256692666927669286692966930669316693266933669346693566936669376693866939669406694166942669436694466945669466694766948669496695066951669526695366954669556695666957669586695966960669616696266963669646696566966669676696866969669706697166972669736697466975669766697766978669796698066981669826698366984669856698666987669886698966990669916699266993669946699566996669976699866999670006700167002670036700467005670066700767008670096701067011670126701367014670156701667017670186701967020670216702267023670246702567026670276702867029670306703167032670336703467035670366703767038670396704067041670426704367044670456704667047670486704967050670516705267053670546705567056670576705867059670606706167062670636706467065670666706767068670696707067071670726707367074670756707667077670786707967080670816708267083670846708567086670876708867089670906709167092670936709467095670966709767098670996710067101671026710367104671056710667107671086710967110671116711267113671146711567116671176711867119671206712167122671236712467125671266712767128671296713067131671326713367134671356713667137671386713967140671416714267143671446714567146671476714867149671506715167152671536715467155671566715767158671596716067161671626716367164671656716667167671686716967170671716717267173671746717567176671776717867179671806718167182671836718467185671866718767188671896719067191671926719367194671956719667197671986719967200672016720267203672046720567206672076720867209672106721167212672136721467215672166721767218672196722067221672226722367224672256722667227672286722967230672316723267233672346723567236672376723867239672406724167242672436724467245672466724767248672496725067251672526725367254672556725667257672586725967260672616726267263672646726567266672676726867269672706727167272672736727467275672766727767278672796728067281672826728367284672856728667287672886728967290672916729267293672946729567296672976729867299673006730167302673036730467305673066730767308673096731067311673126731367314673156731667317673186731967320673216732267323673246732567326673276732867329673306733167332673336733467335673366733767338673396734067341673426734367344673456734667347673486734967350673516735267353673546735567356673576735867359673606736167362673636736467365673666736767368673696737067371673726737367374673756737667377673786737967380673816738267383673846738567386673876738867389673906739167392673936739467395673966739767398673996740067401674026740367404674056740667407674086740967410674116741267413674146741567416674176741867419674206742167422674236742467425674266742767428674296743067431674326743367434674356743667437674386743967440674416744267443674446744567446674476744867449674506745167452674536745467455674566745767458674596746067461674626746367464674656746667467674686746967470674716747267473674746747567476674776747867479674806748167482674836748467485674866748767488674896749067491674926749367494674956749667497674986749967500675016750267503675046750567506675076750867509675106751167512675136751467515675166751767518675196752067521675226752367524675256752667527675286752967530675316753267533675346753567536675376753867539675406754167542675436754467545675466754767548675496755067551675526755367554675556755667557675586755967560675616756267563675646756567566675676756867569675706757167572675736757467575675766757767578675796758067581675826758367584675856758667587675886758967590675916759267593675946759567596675976759867599676006760167602676036760467605676066760767608676096761067611676126761367614676156761667617676186761967620676216762267623676246762567626676276762867629676306763167632676336763467635676366763767638676396764067641676426764367644676456764667647676486764967650676516765267653676546765567656676576765867659676606766167662676636766467665676666766767668676696767067671676726767367674676756767667677676786767967680676816768267683676846768567686676876768867689676906769167692676936769467695676966769767698676996770067701677026770367704677056770667707677086770967710677116771267713677146771567716677176771867719677206772167722677236772467725677266772767728677296773067731677326773367734677356773667737677386773967740677416774267743677446774567746677476774867749677506775167752677536775467755677566775767758677596776067761677626776367764677656776667767677686776967770677716777267773677746777567776677776777867779677806778167782677836778467785677866778767788677896779067791677926779367794677956779667797677986779967800678016780267803678046780567806678076780867809678106781167812678136781467815678166781767818678196782067821678226782367824678256782667827678286782967830678316783267833678346783567836678376783867839678406784167842678436784467845678466784767848678496785067851678526785367854678556785667857678586785967860678616786267863678646786567866678676786867869678706787167872678736787467875678766787767878678796788067881678826788367884678856788667887678886788967890678916789267893678946789567896678976789867899679006790167902679036790467905679066790767908679096791067911679126791367914679156791667917679186791967920679216792267923679246792567926679276792867929679306793167932679336793467935679366793767938679396794067941679426794367944679456794667947679486794967950679516795267953679546795567956679576795867959679606796167962679636796467965679666796767968679696797067971679726797367974679756797667977679786797967980679816798267983679846798567986679876798867989679906799167992679936799467995679966799767998679996800068001680026800368004680056800668007680086800968010680116801268013680146801568016680176801868019680206802168022680236802468025680266802768028680296803068031680326803368034680356803668037680386803968040680416804268043680446804568046680476804868049680506805168052680536805468055680566805768058680596806068061680626806368064680656806668067680686806968070680716807268073680746807568076680776807868079680806808168082680836808468085680866808768088680896809068091680926809368094680956809668097680986809968100681016810268103681046810568106681076810868109681106811168112681136811468115681166811768118681196812068121681226812368124681256812668127681286812968130681316813268133681346813568136681376813868139681406814168142681436814468145681466814768148681496815068151681526815368154681556815668157681586815968160681616816268163681646816568166681676816868169681706817168172681736817468175681766817768178681796818068181681826818368184681856818668187681886818968190681916819268193681946819568196681976819868199682006820168202682036820468205682066820768208682096821068211682126821368214682156821668217682186821968220682216822268223682246822568226682276822868229682306823168232682336823468235682366823768238682396824068241682426824368244682456824668247682486824968250682516825268253682546825568256682576825868259682606826168262682636826468265682666826768268682696827068271682726827368274682756827668277682786827968280682816828268283682846828568286682876828868289682906829168292682936829468295682966829768298682996830068301683026830368304683056830668307683086830968310683116831268313683146831568316683176831868319683206832168322683236832468325683266832768328683296833068331683326833368334683356833668337683386833968340683416834268343683446834568346683476834868349683506835168352683536835468355683566835768358683596836068361683626836368364683656836668367683686836968370683716837268373683746837568376683776837868379683806838168382683836838468385683866838768388683896839068391683926839368394683956839668397683986839968400684016840268403684046840568406684076840868409684106841168412684136841468415684166841768418684196842068421684226842368424684256842668427684286842968430684316843268433684346843568436684376843868439684406844168442684436844468445684466844768448684496845068451684526845368454684556845668457684586845968460684616846268463684646846568466684676846868469684706847168472684736847468475684766847768478684796848068481684826848368484684856848668487684886848968490684916849268493684946849568496684976849868499685006850168502685036850468505685066850768508685096851068511685126851368514685156851668517685186851968520685216852268523685246852568526685276852868529685306853168532685336853468535685366853768538685396854068541685426854368544685456854668547685486854968550685516855268553685546855568556685576855868559685606856168562685636856468565685666856768568685696857068571685726857368574685756857668577685786857968580685816858268583685846858568586685876858868589685906859168592685936859468595685966859768598685996860068601686026860368604686056860668607686086860968610686116861268613686146861568616686176861868619686206862168622686236862468625686266862768628686296863068631686326863368634686356863668637686386863968640686416864268643686446864568646686476864868649686506865168652686536865468655686566865768658686596866068661686626866368664686656866668667686686866968670686716867268673686746867568676686776867868679686806868168682686836868468685686866868768688686896869068691686926869368694686956869668697686986869968700687016870268703687046870568706687076870868709687106871168712687136871468715687166871768718687196872068721687226872368724687256872668727687286872968730687316873268733687346873568736687376873868739687406874168742687436874468745687466874768748687496875068751687526875368754687556875668757687586875968760687616876268763687646876568766687676876868769687706877168772687736877468775687766877768778687796878068781687826878368784687856878668787687886878968790687916879268793687946879568796687976879868799688006880168802688036880468805688066880768808688096881068811688126881368814688156881668817688186881968820688216882268823688246882568826688276882868829688306883168832688336883468835688366883768838688396884068841688426884368844688456884668847688486884968850688516885268853688546885568856688576885868859688606886168862688636886468865688666886768868688696887068871688726887368874688756887668877688786887968880688816888268883688846888568886688876888868889688906889168892688936889468895688966889768898688996890068901689026890368904689056890668907689086890968910689116891268913689146891568916689176891868919689206892168922689236892468925689266892768928689296893068931689326893368934689356893668937689386893968940689416894268943689446894568946689476894868949689506895168952689536895468955689566895768958689596896068961689626896368964689656896668967689686896968970689716897268973689746897568976689776897868979689806898168982689836898468985689866898768988689896899068991689926899368994689956899668997689986899969000690016900269003690046900569006690076900869009690106901169012690136901469015690166901769018690196902069021690226902369024690256902669027690286902969030690316903269033690346903569036690376903869039690406904169042690436904469045690466904769048690496905069051690526905369054690556905669057690586905969060690616906269063690646906569066690676906869069690706907169072690736907469075690766907769078690796908069081690826908369084690856908669087690886908969090690916909269093690946909569096690976909869099691006910169102691036910469105691066910769108691096911069111691126911369114691156911669117691186911969120691216912269123691246912569126691276912869129691306913169132691336913469135691366913769138691396914069141691426914369144691456914669147691486914969150691516915269153691546915569156691576915869159691606916169162691636916469165691666916769168691696917069171691726917369174691756917669177691786917969180691816918269183691846918569186691876918869189691906919169192691936919469195691966919769198691996920069201692026920369204692056920669207692086920969210692116921269213692146921569216692176921869219692206922169222692236922469225692266922769228692296923069231692326923369234692356923669237692386923969240692416924269243692446924569246692476924869249692506925169252692536925469255692566925769258692596926069261692626926369264692656926669267692686926969270692716927269273692746927569276692776927869279692806928169282692836928469285692866928769288692896929069291692926929369294692956929669297692986929969300693016930269303693046930569306693076930869309693106931169312693136931469315693166931769318693196932069321693226932369324693256932669327693286932969330693316933269333693346933569336693376933869339693406934169342693436934469345693466934769348693496935069351693526935369354693556935669357693586935969360693616936269363693646936569366693676936869369693706937169372693736937469375693766937769378693796938069381693826938369384693856938669387693886938969390693916939269393693946939569396693976939869399694006940169402694036940469405694066940769408694096941069411694126941369414694156941669417694186941969420694216942269423694246942569426694276942869429694306943169432694336943469435694366943769438694396944069441694426944369444694456944669447694486944969450694516945269453694546945569456694576945869459694606946169462694636946469465694666946769468694696947069471694726947369474694756947669477694786947969480694816948269483694846948569486694876948869489694906949169492694936949469495694966949769498694996950069501695026950369504695056950669507695086950969510695116951269513695146951569516695176951869519695206952169522695236952469525695266952769528695296953069531695326953369534695356953669537695386953969540695416954269543695446954569546695476954869549695506955169552695536955469555695566955769558695596956069561695626956369564695656956669567695686956969570695716957269573695746957569576695776957869579695806958169582695836958469585695866958769588695896959069591695926959369594695956959669597695986959969600696016960269603696046960569606696076960869609696106961169612696136961469615696166961769618696196962069621696226962369624696256962669627696286962969630696316963269633696346963569636696376963869639696406964169642696436964469645696466964769648696496965069651696526965369654696556965669657696586965969660696616966269663696646966569666696676966869669696706967169672696736967469675696766967769678696796968069681696826968369684696856968669687696886968969690696916969269693696946969569696696976969869699697006970169702697036970469705697066970769708697096971069711697126971369714697156971669717697186971969720697216972269723697246972569726697276972869729697306973169732697336973469735697366973769738697396974069741697426974369744697456974669747697486974969750697516975269753697546975569756697576975869759697606976169762697636976469765697666976769768697696977069771697726977369774697756977669777697786977969780697816978269783697846978569786697876978869789697906979169792697936979469795697966979769798697996980069801698026980369804698056980669807698086980969810698116981269813698146981569816698176981869819698206982169822698236982469825698266982769828698296983069831698326983369834698356983669837698386983969840698416984269843698446984569846698476984869849698506985169852698536985469855698566985769858698596986069861698626986369864698656986669867698686986969870698716987269873698746987569876698776987869879698806988169882698836988469885698866988769888698896989069891698926989369894698956989669897698986989969900699016990269903699046990569906699076990869909699106991169912699136991469915699166991769918699196992069921699226992369924699256992669927699286992969930699316993269933699346993569936699376993869939699406994169942699436994469945699466994769948699496995069951699526995369954699556995669957699586995969960699616996269963699646996569966699676996869969699706997169972699736997469975699766997769978699796998069981699826998369984699856998669987699886998969990699916999269993699946999569996699976999869999700007000170002700037000470005700067000770008700097001070011700127001370014700157001670017700187001970020700217002270023700247002570026700277002870029700307003170032700337003470035700367003770038700397004070041700427004370044700457004670047700487004970050700517005270053700547005570056700577005870059700607006170062700637006470065700667006770068700697007070071700727007370074700757007670077700787007970080700817008270083700847008570086700877008870089700907009170092700937009470095700967009770098700997010070101701027010370104701057010670107701087010970110701117011270113701147011570116701177011870119701207012170122701237012470125701267012770128701297013070131701327013370134701357013670137701387013970140701417014270143701447014570146701477014870149701507015170152701537015470155701567015770158701597016070161701627016370164701657016670167701687016970170701717017270173701747017570176701777017870179701807018170182701837018470185701867018770188701897019070191701927019370194701957019670197701987019970200702017020270203702047020570206702077020870209702107021170212702137021470215702167021770218702197022070221702227022370224702257022670227702287022970230702317023270233702347023570236702377023870239702407024170242702437024470245702467024770248702497025070251702527025370254702557025670257702587025970260702617026270263702647026570266702677026870269702707027170272702737027470275702767027770278702797028070281702827028370284702857028670287702887028970290702917029270293702947029570296702977029870299703007030170302703037030470305703067030770308703097031070311703127031370314703157031670317703187031970320703217032270323703247032570326703277032870329703307033170332703337033470335703367033770338703397034070341703427034370344703457034670347703487034970350703517035270353703547035570356703577035870359703607036170362703637036470365703667036770368703697037070371703727037370374703757037670377703787037970380703817038270383703847038570386703877038870389703907039170392703937039470395703967039770398703997040070401704027040370404704057040670407704087040970410704117041270413704147041570416704177041870419704207042170422704237042470425704267042770428704297043070431704327043370434704357043670437704387043970440704417044270443704447044570446704477044870449704507045170452704537045470455704567045770458704597046070461704627046370464704657046670467704687046970470704717047270473704747047570476704777047870479704807048170482704837048470485704867048770488704897049070491704927049370494704957049670497704987049970500705017050270503705047050570506705077050870509705107051170512705137051470515705167051770518705197052070521705227052370524705257052670527705287052970530705317053270533705347053570536705377053870539705407054170542705437054470545705467054770548705497055070551705527055370554705557055670557705587055970560705617056270563705647056570566705677056870569705707057170572705737057470575705767057770578705797058070581705827058370584705857058670587705887058970590705917059270593705947059570596705977059870599706007060170602706037060470605706067060770608706097061070611706127061370614706157061670617706187061970620706217062270623706247062570626706277062870629706307063170632706337063470635706367063770638706397064070641706427064370644706457064670647706487064970650706517065270653706547065570656706577065870659706607066170662706637066470665706667066770668706697067070671706727067370674706757067670677706787067970680706817068270683706847068570686706877068870689706907069170692706937069470695706967069770698706997070070701707027070370704707057070670707707087070970710707117071270713707147071570716707177071870719707207072170722707237072470725707267072770728707297073070731707327073370734707357073670737707387073970740707417074270743707447074570746707477074870749707507075170752707537075470755707567075770758707597076070761707627076370764707657076670767707687076970770707717077270773707747077570776707777077870779707807078170782707837078470785707867078770788707897079070791707927079370794707957079670797707987079970800708017080270803708047080570806708077080870809708107081170812708137081470815708167081770818708197082070821708227082370824708257082670827708287082970830708317083270833708347083570836708377083870839708407084170842708437084470845708467084770848708497085070851708527085370854708557085670857708587085970860708617086270863708647086570866708677086870869708707087170872708737087470875708767087770878708797088070881708827088370884708857088670887708887088970890708917089270893708947089570896708977089870899709007090170902709037090470905709067090770908709097091070911709127091370914709157091670917709187091970920709217092270923709247092570926709277092870929709307093170932709337093470935709367093770938709397094070941709427094370944709457094670947709487094970950709517095270953709547095570956709577095870959709607096170962709637096470965709667096770968709697097070971709727097370974709757097670977709787097970980709817098270983709847098570986709877098870989709907099170992709937099470995709967099770998709997100071001710027100371004710057100671007710087100971010710117101271013710147101571016710177101871019710207102171022710237102471025710267102771028710297103071031710327103371034710357103671037710387103971040710417104271043710447104571046710477104871049710507105171052710537105471055710567105771058710597106071061710627106371064710657106671067710687106971070710717107271073710747107571076710777107871079710807108171082710837108471085710867108771088710897109071091710927109371094710957109671097710987109971100711017110271103711047110571106711077110871109711107111171112711137111471115711167111771118711197112071121711227112371124711257112671127711287112971130711317113271133711347113571136711377113871139711407114171142711437114471145711467114771148711497115071151711527115371154711557115671157711587115971160711617116271163711647116571166711677116871169711707117171172711737117471175711767117771178711797118071181711827118371184711857118671187711887118971190711917119271193711947119571196711977119871199712007120171202712037120471205712067120771208712097121071211712127121371214712157121671217712187121971220712217122271223712247122571226712277122871229712307123171232712337123471235712367123771238712397124071241712427124371244712457124671247712487124971250712517125271253712547125571256712577125871259712607126171262712637126471265712667126771268712697127071271712727127371274712757127671277712787127971280712817128271283712847128571286712877128871289712907129171292712937129471295712967129771298712997130071301713027130371304713057130671307713087130971310713117131271313713147131571316713177131871319713207132171322713237132471325713267132771328713297133071331713327133371334713357133671337713387133971340713417134271343713447134571346713477134871349713507135171352713537135471355713567135771358713597136071361713627136371364713657136671367713687136971370713717137271373713747137571376713777137871379713807138171382713837138471385713867138771388713897139071391713927139371394713957139671397713987139971400714017140271403714047140571406714077140871409714107141171412714137141471415714167141771418714197142071421714227142371424714257142671427714287142971430714317143271433714347143571436714377143871439714407144171442714437144471445714467144771448714497145071451714527145371454714557145671457714587145971460714617146271463714647146571466714677146871469714707147171472714737147471475714767147771478714797148071481714827148371484714857148671487714887148971490714917149271493714947149571496714977149871499715007150171502715037150471505715067150771508715097151071511715127151371514715157151671517715187151971520715217152271523715247152571526715277152871529715307153171532715337153471535715367153771538715397154071541715427154371544715457154671547715487154971550715517155271553715547155571556715577155871559715607156171562715637156471565715667156771568715697157071571715727157371574715757157671577715787157971580715817158271583715847158571586715877158871589715907159171592715937159471595715967159771598715997160071601716027160371604716057160671607716087160971610716117161271613716147161571616716177161871619716207162171622716237162471625716267162771628716297163071631716327163371634716357163671637716387163971640716417164271643716447164571646716477164871649716507165171652716537165471655716567165771658716597166071661716627166371664716657166671667716687166971670716717167271673716747167571676716777167871679716807168171682716837168471685716867168771688716897169071691716927169371694716957169671697716987169971700717017170271703717047170571706717077170871709717107171171712717137171471715717167171771718717197172071721717227172371724717257172671727717287172971730717317173271733717347173571736717377173871739717407174171742717437174471745717467174771748717497175071751717527175371754717557175671757717587175971760717617176271763717647176571766717677176871769717707177171772717737177471775717767177771778717797178071781717827178371784717857178671787717887178971790717917179271793717947179571796717977179871799718007180171802718037180471805718067180771808718097181071811718127181371814718157181671817718187181971820718217182271823718247182571826718277182871829718307183171832718337183471835718367183771838718397184071841718427184371844718457184671847718487184971850718517185271853718547185571856718577185871859718607186171862718637186471865718667186771868718697187071871718727187371874718757187671877718787187971880718817188271883718847188571886718877188871889718907189171892718937189471895718967189771898718997190071901719027190371904719057190671907719087190971910719117191271913719147191571916719177191871919719207192171922719237192471925719267192771928719297193071931719327193371934719357193671937719387193971940719417194271943719447194571946719477194871949719507195171952719537195471955719567195771958719597196071961719627196371964719657196671967719687196971970719717197271973719747197571976719777197871979719807198171982719837198471985719867198771988719897199071991719927199371994719957199671997719987199972000720017200272003720047200572006720077200872009720107201172012720137201472015720167201772018720197202072021720227202372024720257202672027720287202972030720317203272033720347203572036720377203872039720407204172042720437204472045720467204772048720497205072051720527205372054720557205672057720587205972060720617206272063720647206572066720677206872069720707207172072720737207472075720767207772078720797208072081720827208372084720857208672087720887208972090720917209272093720947209572096720977209872099721007210172102721037210472105721067210772108721097211072111721127211372114721157211672117721187211972120721217212272123721247212572126721277212872129721307213172132721337213472135721367213772138721397214072141721427214372144721457214672147721487214972150721517215272153721547215572156721577215872159721607216172162721637216472165721667216772168721697217072171721727217372174721757217672177721787217972180721817218272183721847218572186721877218872189721907219172192721937219472195721967219772198721997220072201722027220372204722057220672207722087220972210722117221272213722147221572216722177221872219722207222172222722237222472225722267222772228722297223072231722327223372234722357223672237722387223972240722417224272243722447224572246722477224872249722507225172252722537225472255722567225772258722597226072261722627226372264722657226672267722687226972270722717227272273722747227572276722777227872279722807228172282722837228472285722867228772288722897229072291722927229372294722957229672297722987229972300723017230272303723047230572306723077230872309723107231172312723137231472315723167231772318723197232072321723227232372324723257232672327723287232972330723317233272333723347233572336723377233872339723407234172342723437234472345723467234772348723497235072351723527235372354723557235672357723587235972360723617236272363723647236572366723677236872369723707237172372723737237472375723767237772378723797238072381723827238372384723857238672387723887238972390723917239272393723947239572396723977239872399724007240172402724037240472405724067240772408724097241072411724127241372414724157241672417724187241972420724217242272423724247242572426724277242872429724307243172432724337243472435724367243772438724397244072441724427244372444724457244672447724487244972450724517245272453724547245572456724577245872459724607246172462724637246472465724667246772468724697247072471724727247372474724757247672477724787247972480724817248272483724847248572486724877248872489724907249172492724937249472495724967249772498724997250072501725027250372504725057250672507725087250972510725117251272513725147251572516725177251872519725207252172522725237252472525725267252772528725297253072531725327253372534725357253672537725387253972540725417254272543725447254572546725477254872549725507255172552725537255472555725567255772558725597256072561725627256372564725657256672567725687256972570725717257272573725747257572576725777257872579725807258172582725837258472585725867258772588725897259072591725927259372594725957259672597725987259972600726017260272603726047260572606726077260872609726107261172612726137261472615726167261772618726197262072621726227262372624726257262672627726287262972630726317263272633726347263572636726377263872639726407264172642726437264472645726467264772648726497265072651726527265372654726557265672657726587265972660726617266272663726647266572666726677266872669726707267172672726737267472675726767267772678726797268072681726827268372684726857268672687726887268972690726917269272693726947269572696726977269872699727007270172702727037270472705727067270772708727097271072711727127271372714727157271672717727187271972720727217272272723727247272572726727277272872729727307273172732727337273472735727367273772738727397274072741727427274372744727457274672747727487274972750727517275272753727547275572756727577275872759727607276172762727637276472765727667276772768727697277072771727727277372774727757277672777727787277972780727817278272783727847278572786727877278872789727907279172792727937279472795727967279772798727997280072801728027280372804728057280672807728087280972810728117281272813728147281572816728177281872819728207282172822728237282472825728267282772828728297283072831728327283372834728357283672837728387283972840728417284272843728447284572846728477284872849728507285172852728537285472855728567285772858728597286072861728627286372864728657286672867728687286972870728717287272873728747287572876728777287872879728807288172882728837288472885728867288772888728897289072891728927289372894728957289672897728987289972900729017290272903729047290572906729077290872909729107291172912729137291472915729167291772918729197292072921729227292372924729257292672927729287292972930729317293272933729347293572936729377293872939729407294172942729437294472945729467294772948729497295072951729527295372954729557295672957729587295972960729617296272963729647296572966729677296872969729707297172972729737297472975729767297772978729797298072981729827298372984729857298672987729887298972990729917299272993729947299572996729977299872999730007300173002730037300473005730067300773008730097301073011730127301373014730157301673017730187301973020730217302273023730247302573026730277302873029730307303173032730337303473035730367303773038730397304073041730427304373044730457304673047730487304973050730517305273053730547305573056730577305873059730607306173062730637306473065730667306773068730697307073071730727307373074730757307673077730787307973080730817308273083730847308573086730877308873089730907309173092730937309473095730967309773098730997310073101731027310373104731057310673107731087310973110731117311273113731147311573116731177311873119731207312173122731237312473125731267312773128731297313073131731327313373134731357313673137731387313973140731417314273143731447314573146731477314873149731507315173152731537315473155731567315773158731597316073161731627316373164731657316673167731687316973170731717317273173731747317573176731777317873179731807318173182731837318473185731867318773188731897319073191731927319373194731957319673197731987319973200732017320273203732047320573206732077320873209732107321173212732137321473215732167321773218732197322073221732227322373224732257322673227732287322973230732317323273233732347323573236732377323873239732407324173242732437324473245732467324773248732497325073251732527325373254732557325673257732587325973260732617326273263732647326573266732677326873269732707327173272732737327473275732767327773278732797328073281732827328373284732857328673287732887328973290732917329273293732947329573296732977329873299733007330173302733037330473305733067330773308733097331073311733127331373314733157331673317733187331973320733217332273323733247332573326733277332873329733307333173332733337333473335733367333773338733397334073341733427334373344733457334673347733487334973350733517335273353733547335573356733577335873359733607336173362733637336473365733667336773368733697337073371733727337373374733757337673377733787337973380733817338273383733847338573386733877338873389733907339173392733937339473395733967339773398733997340073401734027340373404734057340673407734087340973410734117341273413734147341573416734177341873419734207342173422734237342473425734267342773428734297343073431734327343373434734357343673437734387343973440734417344273443734447344573446734477344873449734507345173452734537345473455734567345773458734597346073461734627346373464734657346673467734687346973470734717347273473734747347573476734777347873479734807348173482734837348473485734867348773488734897349073491734927349373494734957349673497734987349973500735017350273503735047350573506735077350873509735107351173512735137351473515735167351773518735197352073521735227352373524735257352673527735287352973530735317353273533735347353573536735377353873539735407354173542735437354473545735467354773548735497355073551735527355373554735557355673557735587355973560735617356273563735647356573566735677356873569735707357173572735737357473575735767357773578735797358073581735827358373584735857358673587735887358973590735917359273593735947359573596735977359873599736007360173602736037360473605736067360773608736097361073611736127361373614736157361673617736187361973620736217362273623736247362573626736277362873629736307363173632736337363473635736367363773638736397364073641736427364373644736457364673647736487364973650736517365273653736547365573656736577365873659736607366173662736637366473665736667366773668736697367073671736727367373674736757367673677736787367973680736817368273683736847368573686736877368873689736907369173692736937369473695736967369773698736997370073701737027370373704737057370673707737087370973710737117371273713737147371573716737177371873719737207372173722737237372473725737267372773728737297373073731737327373373734737357373673737737387373973740737417374273743737447374573746737477374873749737507375173752737537375473755737567375773758737597376073761737627376373764737657376673767737687376973770737717377273773737747377573776737777377873779737807378173782737837378473785737867378773788737897379073791737927379373794737957379673797737987379973800738017380273803738047380573806738077380873809738107381173812738137381473815738167381773818738197382073821738227382373824738257382673827738287382973830738317383273833738347383573836738377383873839738407384173842738437384473845738467384773848738497385073851738527385373854738557385673857738587385973860738617386273863738647386573866738677386873869738707387173872738737387473875738767387773878738797388073881738827388373884738857388673887738887388973890738917389273893738947389573896738977389873899739007390173902739037390473905739067390773908739097391073911739127391373914739157391673917739187391973920739217392273923739247392573926739277392873929739307393173932739337393473935739367393773938739397394073941739427394373944739457394673947739487394973950739517395273953739547395573956739577395873959739607396173962739637396473965739667396773968739697397073971739727397373974739757397673977739787397973980739817398273983739847398573986739877398873989739907399173992739937399473995739967399773998739997400074001740027400374004740057400674007740087400974010740117401274013740147401574016740177401874019740207402174022740237402474025740267402774028740297403074031740327403374034740357403674037740387403974040740417404274043740447404574046740477404874049740507405174052740537405474055740567405774058740597406074061740627406374064740657406674067740687406974070740717407274073740747407574076740777407874079740807408174082740837408474085740867408774088740897409074091740927409374094740957409674097740987409974100741017410274103741047410574106741077410874109741107411174112741137411474115741167411774118741197412074121741227412374124741257412674127741287412974130741317413274133741347413574136741377413874139741407414174142741437414474145741467414774148741497415074151741527415374154741557415674157741587415974160741617416274163741647416574166741677416874169741707417174172741737417474175741767417774178741797418074181741827418374184741857418674187741887418974190741917419274193741947419574196741977419874199742007420174202742037420474205742067420774208742097421074211742127421374214742157421674217742187421974220742217422274223742247422574226742277422874229742307423174232742337423474235742367423774238742397424074241742427424374244742457424674247742487424974250742517425274253742547425574256742577425874259742607426174262742637426474265742667426774268742697427074271742727427374274742757427674277742787427974280742817428274283742847428574286742877428874289742907429174292742937429474295742967429774298742997430074301743027430374304743057430674307743087430974310743117431274313743147431574316743177431874319743207432174322743237432474325743267432774328743297433074331743327433374334743357433674337743387433974340743417434274343743447434574346743477434874349743507435174352743537435474355743567435774358743597436074361743627436374364743657436674367743687436974370743717437274373743747437574376743777437874379743807438174382743837438474385743867438774388743897439074391743927439374394743957439674397743987439974400744017440274403744047440574406744077440874409744107441174412744137441474415744167441774418744197442074421744227442374424744257442674427744287442974430744317443274433744347443574436744377443874439744407444174442744437444474445744467444774448744497445074451744527445374454744557445674457744587445974460744617446274463744647446574466744677446874469744707447174472744737447474475744767447774478744797448074481744827448374484744857448674487744887448974490744917449274493744947449574496744977449874499745007450174502745037450474505745067450774508745097451074511745127451374514745157451674517745187451974520745217452274523745247452574526745277452874529745307453174532745337453474535745367453774538745397454074541745427454374544745457454674547745487454974550745517455274553745547455574556745577455874559745607456174562745637456474565745667456774568745697457074571745727457374574745757457674577745787457974580745817458274583745847458574586745877458874589745907459174592745937459474595745967459774598745997460074601746027460374604746057460674607746087460974610746117461274613746147461574616746177461874619746207462174622746237462474625746267462774628746297463074631746327463374634746357463674637746387463974640746417464274643746447464574646746477464874649746507465174652746537465474655746567465774658746597466074661746627466374664746657466674667746687466974670746717467274673746747467574676746777467874679746807468174682746837468474685746867468774688746897469074691746927469374694746957469674697746987469974700747017470274703747047470574706747077470874709747107471174712747137471474715747167471774718747197472074721747227472374724747257472674727747287472974730747317473274733747347473574736747377473874739747407474174742747437474474745747467474774748747497475074751747527475374754747557475674757747587475974760747617476274763747647476574766747677476874769747707477174772747737477474775747767477774778747797478074781747827478374784747857478674787747887478974790747917479274793747947479574796747977479874799748007480174802748037480474805748067480774808748097481074811748127481374814748157481674817748187481974820748217482274823748247482574826748277482874829748307483174832748337483474835748367483774838748397484074841748427484374844748457484674847748487484974850748517485274853748547485574856748577485874859748607486174862748637486474865748667486774868748697487074871748727487374874748757487674877748787487974880748817488274883748847488574886748877488874889748907489174892748937489474895748967489774898748997490074901749027490374904749057490674907749087490974910749117491274913749147491574916749177491874919749207492174922749237492474925749267492774928749297493074931749327493374934749357493674937749387493974940749417494274943749447494574946749477494874949749507495174952749537495474955749567495774958749597496074961749627496374964749657496674967749687496974970749717497274973749747497574976749777497874979749807498174982749837498474985749867498774988749897499074991749927499374994749957499674997749987499975000750017500275003750047500575006750077500875009750107501175012750137501475015750167501775018750197502075021750227502375024750257502675027750287502975030750317503275033750347503575036750377503875039750407504175042750437504475045750467504775048750497505075051750527505375054750557505675057750587505975060750617506275063750647506575066750677506875069750707507175072750737507475075750767507775078750797508075081750827508375084750857508675087750887508975090750917509275093750947509575096750977509875099751007510175102751037510475105751067510775108751097511075111751127511375114751157511675117751187511975120751217512275123751247512575126751277512875129751307513175132751337513475135751367513775138751397514075141751427514375144751457514675147751487514975150751517515275153751547515575156751577515875159751607516175162751637516475165751667516775168751697517075171751727517375174751757517675177751787517975180751817518275183751847518575186751877518875189751907519175192751937519475195751967519775198751997520075201752027520375204752057520675207752087520975210752117521275213752147521575216752177521875219752207522175222752237522475225752267522775228752297523075231752327523375234752357523675237752387523975240752417524275243752447524575246752477524875249752507525175252752537525475255752567525775258752597526075261752627526375264752657526675267752687526975270752717527275273752747527575276752777527875279752807528175282752837528475285752867528775288752897529075291752927529375294752957529675297752987529975300753017530275303753047530575306753077530875309753107531175312753137531475315753167531775318753197532075321753227532375324753257532675327753287532975330753317533275333753347533575336753377533875339753407534175342753437534475345753467534775348753497535075351753527535375354753557535675357753587535975360753617536275363753647536575366753677536875369753707537175372753737537475375753767537775378753797538075381753827538375384753857538675387753887538975390753917539275393753947539575396753977539875399754007540175402754037540475405754067540775408754097541075411754127541375414754157541675417754187541975420754217542275423754247542575426754277542875429754307543175432754337543475435754367543775438754397544075441754427544375444754457544675447754487544975450754517545275453754547545575456754577545875459754607546175462754637546475465754667546775468754697547075471754727547375474754757547675477754787547975480754817548275483754847548575486754877548875489754907549175492754937549475495754967549775498754997550075501755027550375504755057550675507755087550975510755117551275513755147551575516755177551875519755207552175522755237552475525755267552775528755297553075531755327553375534755357553675537755387553975540755417554275543755447554575546755477554875549755507555175552755537555475555755567555775558755597556075561755627556375564755657556675567755687556975570755717557275573755747557575576755777557875579755807558175582755837558475585755867558775588755897559075591755927559375594755957559675597755987559975600756017560275603756047560575606756077560875609756107561175612756137561475615756167561775618756197562075621756227562375624756257562675627756287562975630756317563275633756347563575636756377563875639756407564175642756437564475645756467564775648756497565075651756527565375654756557565675657756587565975660756617566275663756647566575666756677566875669756707567175672756737567475675756767567775678756797568075681756827568375684756857568675687756887568975690756917569275693756947569575696756977569875699757007570175702757037570475705757067570775708757097571075711757127571375714757157571675717757187571975720757217572275723757247572575726757277572875729757307573175732757337573475735757367573775738757397574075741757427574375744757457574675747757487574975750757517575275753757547575575756757577575875759757607576175762757637576475765757667576775768757697577075771757727577375774757757577675777757787577975780757817578275783757847578575786757877578875789757907579175792757937579475795757967579775798757997580075801758027580375804758057580675807758087580975810758117581275813758147581575816758177581875819758207582175822758237582475825758267582775828758297583075831758327583375834758357583675837758387583975840758417584275843758447584575846758477584875849758507585175852758537585475855758567585775858758597586075861758627586375864758657586675867758687586975870758717587275873758747587575876758777587875879758807588175882758837588475885758867588775888758897589075891758927589375894758957589675897758987589975900759017590275903759047590575906759077590875909759107591175912759137591475915759167591775918759197592075921759227592375924759257592675927759287592975930759317593275933759347593575936759377593875939759407594175942759437594475945759467594775948759497595075951759527595375954759557595675957759587595975960759617596275963759647596575966759677596875969759707597175972759737597475975759767597775978759797598075981759827598375984759857598675987759887598975990759917599275993759947599575996759977599875999760007600176002760037600476005760067600776008760097601076011760127601376014760157601676017760187601976020760217602276023760247602576026760277602876029760307603176032760337603476035760367603776038760397604076041760427604376044760457604676047760487604976050760517605276053760547605576056760577605876059760607606176062760637606476065760667606776068760697607076071760727607376074760757607676077760787607976080760817608276083760847608576086760877608876089760907609176092760937609476095760967609776098760997610076101761027610376104761057610676107761087610976110761117611276113761147611576116761177611876119761207612176122761237612476125761267612776128761297613076131761327613376134761357613676137761387613976140761417614276143761447614576146761477614876149761507615176152761537615476155761567615776158761597616076161761627616376164761657616676167761687616976170761717617276173761747617576176761777617876179761807618176182761837618476185761867618776188761897619076191761927619376194761957619676197761987619976200762017620276203762047620576206762077620876209762107621176212762137621476215762167621776218762197622076221762227622376224762257622676227762287622976230762317623276233762347623576236762377623876239762407624176242762437624476245762467624776248762497625076251762527625376254762557625676257762587625976260762617626276263762647626576266762677626876269762707627176272762737627476275762767627776278762797628076281762827628376284762857628676287762887628976290762917629276293762947629576296762977629876299763007630176302763037630476305763067630776308763097631076311763127631376314763157631676317763187631976320763217632276323763247632576326763277632876329763307633176332763337633476335763367633776338763397634076341763427634376344763457634676347763487634976350763517635276353763547635576356763577635876359763607636176362763637636476365763667636776368763697637076371763727637376374763757637676377763787637976380763817638276383763847638576386763877638876389763907639176392763937639476395763967639776398763997640076401764027640376404764057640676407764087640976410764117641276413764147641576416764177641876419764207642176422764237642476425764267642776428764297643076431764327643376434764357643676437764387643976440764417644276443764447644576446764477644876449764507645176452764537645476455764567645776458764597646076461764627646376464764657646676467764687646976470764717647276473764747647576476764777647876479764807648176482764837648476485764867648776488764897649076491764927649376494764957649676497764987649976500765017650276503765047650576506765077650876509765107651176512765137651476515765167651776518765197652076521765227652376524765257652676527765287652976530765317653276533765347653576536765377653876539765407654176542765437654476545765467654776548765497655076551765527655376554765557655676557765587655976560765617656276563765647656576566765677656876569765707657176572765737657476575765767657776578765797658076581765827658376584765857658676587765887658976590765917659276593765947659576596765977659876599766007660176602766037660476605766067660776608766097661076611766127661376614766157661676617766187661976620766217662276623766247662576626766277662876629766307663176632766337663476635766367663776638766397664076641766427664376644766457664676647766487664976650766517665276653766547665576656766577665876659766607666176662766637666476665766667666776668766697667076671766727667376674766757667676677766787667976680766817668276683766847668576686766877668876689766907669176692766937669476695766967669776698766997670076701767027670376704767057670676707767087670976710767117671276713767147671576716767177671876719767207672176722767237672476725767267672776728767297673076731767327673376734767357673676737767387673976740767417674276743767447674576746767477674876749767507675176752767537675476755767567675776758767597676076761767627676376764767657676676767767687676976770767717677276773767747677576776767777677876779767807678176782767837678476785767867678776788767897679076791767927679376794767957679676797767987679976800768017680276803768047680576806768077680876809768107681176812768137681476815768167681776818768197682076821768227682376824768257682676827768287682976830768317683276833768347683576836768377683876839768407684176842768437684476845768467684776848768497685076851768527685376854768557685676857768587685976860768617686276863768647686576866768677686876869768707687176872768737687476875768767687776878768797688076881768827688376884768857688676887768887688976890768917689276893768947689576896768977689876899769007690176902769037690476905769067690776908769097691076911769127691376914769157691676917769187691976920769217692276923769247692576926769277692876929769307693176932769337693476935769367693776938769397694076941769427694376944769457694676947769487694976950769517695276953769547695576956769577695876959769607696176962769637696476965769667696776968769697697076971769727697376974769757697676977769787697976980769817698276983769847698576986769877698876989769907699176992769937699476995769967699776998769997700077001770027700377004770057700677007770087700977010770117701277013770147701577016770177701877019770207702177022770237702477025770267702777028770297703077031770327703377034770357703677037770387703977040770417704277043770447704577046770477704877049770507705177052770537705477055770567705777058770597706077061770627706377064770657706677067770687706977070770717707277073770747707577076770777707877079770807708177082770837708477085770867708777088770897709077091770927709377094770957709677097770987709977100771017710277103771047710577106771077710877109771107711177112771137711477115771167711777118771197712077121771227712377124771257712677127771287712977130771317713277133771347713577136771377713877139771407714177142771437714477145771467714777148771497715077151771527715377154771557715677157771587715977160771617716277163771647716577166771677716877169771707717177172771737717477175771767717777178771797718077181771827718377184771857718677187771887718977190771917719277193771947719577196771977719877199772007720177202772037720477205772067720777208772097721077211772127721377214772157721677217772187721977220772217722277223772247722577226772277722877229772307723177232772337723477235772367723777238772397724077241772427724377244772457724677247772487724977250772517725277253772547725577256772577725877259772607726177262772637726477265772667726777268772697727077271772727727377274772757727677277772787727977280772817728277283772847728577286772877728877289772907729177292772937729477295772967729777298772997730077301773027730377304773057730677307773087730977310773117731277313773147731577316773177731877319773207732177322773237732477325773267732777328773297733077331773327733377334773357733677337773387733977340773417734277343773447734577346773477734877349773507735177352773537735477355773567735777358773597736077361773627736377364773657736677367773687736977370773717737277373773747737577376773777737877379773807738177382773837738477385773867738777388773897739077391773927739377394773957739677397773987739977400774017740277403774047740577406774077740877409774107741177412774137741477415774167741777418774197742077421774227742377424774257742677427774287742977430774317743277433774347743577436774377743877439774407744177442774437744477445774467744777448774497745077451774527745377454774557745677457774587745977460774617746277463774647746577466774677746877469774707747177472774737747477475774767747777478774797748077481774827748377484774857748677487774887748977490774917749277493774947749577496774977749877499775007750177502775037750477505775067750777508775097751077511775127751377514775157751677517775187751977520775217752277523775247752577526775277752877529775307753177532775337753477535775367753777538775397754077541775427754377544775457754677547775487754977550775517755277553775547755577556775577755877559775607756177562775637756477565775667756777568775697757077571775727757377574775757757677577775787757977580775817758277583775847758577586775877758877589775907759177592775937759477595775967759777598775997760077601776027760377604776057760677607776087760977610776117761277613776147761577616776177761877619776207762177622776237762477625776267762777628776297763077631776327763377634776357763677637776387763977640776417764277643776447764577646776477764877649776507765177652776537765477655776567765777658776597766077661776627766377664776657766677667776687766977670776717767277673776747767577676776777767877679776807768177682776837768477685776867768777688776897769077691776927769377694776957769677697776987769977700777017770277703777047770577706777077770877709777107771177712777137771477715777167771777718777197772077721777227772377724777257772677727777287772977730777317773277733777347773577736777377773877739777407774177742777437774477745777467774777748777497775077751777527775377754777557775677757777587775977760777617776277763777647776577766777677776877769777707777177772777737777477775777767777777778777797778077781777827778377784777857778677787777887778977790777917779277793777947779577796777977779877799778007780177802778037780477805778067780777808778097781077811778127781377814778157781677817778187781977820778217782277823778247782577826778277782877829778307783177832778337783477835778367783777838778397784077841778427784377844778457784677847778487784977850778517785277853778547785577856778577785877859778607786177862778637786477865778667786777868778697787077871778727787377874778757787677877778787787977880778817788277883778847788577886778877788877889778907789177892778937789477895778967789777898778997790077901779027790377904779057790677907779087790977910779117791277913779147791577916779177791877919779207792177922779237792477925779267792777928779297793077931779327793377934779357793677937779387793977940779417794277943779447794577946779477794877949779507795177952779537795477955779567795777958779597796077961779627796377964779657796677967779687796977970779717797277973779747797577976779777797877979779807798177982779837798477985779867798777988779897799077991779927799377994779957799677997779987799978000780017800278003780047800578006780077800878009780107801178012780137801478015780167801778018780197802078021780227802378024780257802678027780287802978030780317803278033780347803578036780377803878039780407804178042780437804478045780467804778048780497805078051780527805378054780557805678057780587805978060780617806278063780647806578066780677806878069780707807178072780737807478075780767807778078780797808078081780827808378084780857808678087780887808978090780917809278093780947809578096780977809878099781007810178102781037810478105781067810778108781097811078111781127811378114781157811678117781187811978120781217812278123781247812578126781277812878129781307813178132781337813478135781367813778138781397814078141781427814378144781457814678147781487814978150781517815278153781547815578156781577815878159781607816178162781637816478165781667816778168781697817078171781727817378174781757817678177781787817978180781817818278183781847818578186781877818878189781907819178192781937819478195781967819778198781997820078201782027820378204782057820678207782087820978210782117821278213782147821578216782177821878219782207822178222782237822478225782267822778228782297823078231782327823378234782357823678237782387823978240782417824278243782447824578246782477824878249782507825178252782537825478255782567825778258782597826078261782627826378264782657826678267782687826978270782717827278273782747827578276782777827878279782807828178282782837828478285782867828778288782897829078291782927829378294782957829678297782987829978300783017830278303783047830578306783077830878309783107831178312783137831478315783167831778318783197832078321783227832378324783257832678327783287832978330783317833278333783347833578336783377833878339783407834178342783437834478345783467834778348783497835078351783527835378354783557835678357783587835978360783617836278363783647836578366783677836878369783707837178372783737837478375783767837778378783797838078381783827838378384783857838678387783887838978390783917839278393783947839578396783977839878399784007840178402784037840478405784067840778408784097841078411784127841378414784157841678417784187841978420784217842278423784247842578426784277842878429784307843178432784337843478435784367843778438784397844078441784427844378444784457844678447784487844978450784517845278453784547845578456784577845878459784607846178462784637846478465784667846778468784697847078471784727847378474784757847678477784787847978480784817848278483784847848578486784877848878489784907849178492784937849478495784967849778498784997850078501785027850378504785057850678507785087850978510785117851278513785147851578516785177851878519785207852178522785237852478525785267852778528785297853078531785327853378534785357853678537785387853978540785417854278543785447854578546785477854878549785507855178552785537855478555785567855778558785597856078561785627856378564785657856678567785687856978570785717857278573785747857578576785777857878579785807858178582785837858478585785867858778588785897859078591785927859378594785957859678597785987859978600786017860278603786047860578606786077860878609786107861178612786137861478615786167861778618786197862078621786227862378624786257862678627786287862978630786317863278633786347863578636786377863878639786407864178642786437864478645786467864778648786497865078651786527865378654786557865678657786587865978660786617866278663786647866578666786677866878669786707867178672786737867478675786767867778678786797868078681786827868378684786857868678687786887868978690786917869278693786947869578696786977869878699787007870178702787037870478705787067870778708787097871078711787127871378714787157871678717787187871978720787217872278723787247872578726787277872878729787307873178732787337873478735787367873778738787397874078741787427874378744787457874678747787487874978750787517875278753787547875578756787577875878759787607876178762787637876478765787667876778768787697877078771787727877378774787757877678777787787877978780787817878278783787847878578786787877878878789787907879178792787937879478795787967879778798787997880078801788027880378804788057880678807788087880978810788117881278813788147881578816788177881878819788207882178822788237882478825788267882778828788297883078831788327883378834788357883678837788387883978840788417884278843788447884578846788477884878849788507885178852788537885478855788567885778858788597886078861788627886378864788657886678867788687886978870788717887278873788747887578876788777887878879788807888178882788837888478885788867888778888788897889078891788927889378894788957889678897788987889978900789017890278903789047890578906789077890878909789107891178912789137891478915789167891778918789197892078921789227892378924789257892678927789287892978930789317893278933789347893578936789377893878939789407894178942789437894478945789467894778948789497895078951789527895378954789557895678957789587895978960789617896278963789647896578966789677896878969789707897178972789737897478975789767897778978789797898078981789827898378984789857898678987789887898978990789917899278993789947899578996789977899878999790007900179002790037900479005790067900779008790097901079011790127901379014790157901679017790187901979020790217902279023790247902579026790277902879029790307903179032790337903479035790367903779038790397904079041790427904379044790457904679047790487904979050790517905279053790547905579056790577905879059790607906179062790637906479065790667906779068790697907079071790727907379074790757907679077790787907979080790817908279083790847908579086790877908879089790907909179092790937909479095790967909779098790997910079101791027910379104791057910679107791087910979110791117911279113791147911579116791177911879119791207912179122791237912479125791267912779128791297913079131791327913379134791357913679137791387913979140791417914279143791447914579146791477914879149791507915179152791537915479155791567915779158791597916079161791627916379164791657916679167791687916979170791717917279173791747917579176791777917879179791807918179182791837918479185791867918779188791897919079191791927919379194791957919679197791987919979200792017920279203792047920579206792077920879209792107921179212792137921479215792167921779218792197922079221792227922379224792257922679227792287922979230792317923279233792347923579236792377923879239792407924179242792437924479245792467924779248792497925079251792527925379254792557925679257792587925979260792617926279263792647926579266792677926879269792707927179272792737927479275792767927779278792797928079281792827928379284792857928679287792887928979290792917929279293792947929579296792977929879299793007930179302793037930479305793067930779308793097931079311793127931379314793157931679317793187931979320793217932279323793247932579326793277932879329793307933179332793337933479335793367933779338793397934079341793427934379344793457934679347793487934979350793517935279353793547935579356793577935879359793607936179362793637936479365793667936779368793697937079371793727937379374793757937679377793787937979380793817938279383793847938579386793877938879389793907939179392793937939479395793967939779398793997940079401794027940379404794057940679407794087940979410794117941279413794147941579416794177941879419794207942179422794237942479425794267942779428794297943079431794327943379434794357943679437794387943979440794417944279443794447944579446794477944879449794507945179452794537945479455794567945779458794597946079461794627946379464794657946679467794687946979470794717947279473794747947579476794777947879479794807948179482794837948479485794867948779488794897949079491794927949379494794957949679497794987949979500795017950279503795047950579506795077950879509795107951179512795137951479515795167951779518795197952079521795227952379524795257952679527795287952979530795317953279533795347953579536795377953879539795407954179542795437954479545795467954779548795497955079551795527955379554795557955679557795587955979560795617956279563795647956579566795677956879569795707957179572795737957479575795767957779578795797958079581795827958379584795857958679587795887958979590795917959279593795947959579596795977959879599796007960179602796037960479605796067960779608796097961079611796127961379614796157961679617796187961979620796217962279623796247962579626796277962879629796307963179632796337963479635796367963779638796397964079641796427964379644796457964679647796487964979650796517965279653796547965579656796577965879659796607966179662796637966479665796667966779668796697967079671796727967379674796757967679677796787967979680796817968279683796847968579686796877968879689796907969179692796937969479695796967969779698796997970079701797027970379704797057970679707797087970979710797117971279713797147971579716797177971879719797207972179722797237972479725797267972779728797297973079731797327973379734797357973679737797387973979740797417974279743797447974579746797477974879749797507975179752797537975479755797567975779758797597976079761797627976379764797657976679767797687976979770797717977279773797747977579776797777977879779797807978179782797837978479785797867978779788797897979079791797927979379794797957979679797797987979979800798017980279803798047980579806798077980879809798107981179812798137981479815798167981779818798197982079821798227982379824798257982679827798287982979830798317983279833798347983579836798377983879839798407984179842798437984479845798467984779848798497985079851798527985379854798557985679857798587985979860798617986279863798647986579866798677986879869798707987179872798737987479875798767987779878798797988079881798827988379884798857988679887798887988979890798917989279893798947989579896798977989879899799007990179902799037990479905799067990779908799097991079911799127991379914799157991679917799187991979920799217992279923799247992579926799277992879929799307993179932799337993479935799367993779938799397994079941799427994379944799457994679947799487994979950799517995279953799547995579956799577995879959799607996179962799637996479965799667996779968799697997079971799727997379974799757997679977799787997979980799817998279983799847998579986799877998879989799907999179992799937999479995799967999779998799998000080001800028000380004800058000680007800088000980010800118001280013800148001580016800178001880019800208002180022800238002480025800268002780028800298003080031800328003380034800358003680037800388003980040800418004280043800448004580046800478004880049800508005180052800538005480055800568005780058800598006080061800628006380064800658006680067800688006980070800718007280073800748007580076800778007880079800808008180082800838008480085800868008780088800898009080091800928009380094800958009680097800988009980100801018010280103801048010580106801078010880109801108011180112801138011480115801168011780118801198012080121801228012380124801258012680127801288012980130801318013280133801348013580136801378013880139801408014180142801438014480145801468014780148801498015080151801528015380154801558015680157801588015980160801618016280163801648016580166801678016880169801708017180172801738017480175801768017780178801798018080181801828018380184801858018680187801888018980190801918019280193801948019580196801978019880199802008020180202802038020480205802068020780208802098021080211802128021380214802158021680217802188021980220802218022280223802248022580226802278022880229802308023180232802338023480235802368023780238802398024080241802428024380244802458024680247802488024980250802518025280253802548025580256802578025880259802608026180262802638026480265802668026780268802698027080271802728027380274802758027680277802788027980280802818028280283802848028580286802878028880289802908029180292802938029480295802968029780298802998030080301803028030380304803058030680307803088030980310803118031280313803148031580316803178031880319803208032180322803238032480325803268032780328803298033080331803328033380334803358033680337803388033980340803418034280343803448034580346803478034880349803508035180352803538035480355803568035780358803598036080361803628036380364803658036680367803688036980370803718037280373803748037580376803778037880379803808038180382803838038480385803868038780388803898039080391803928039380394803958039680397803988039980400804018040280403804048040580406804078040880409804108041180412804138041480415804168041780418804198042080421804228042380424804258042680427804288042980430804318043280433804348043580436804378043880439804408044180442804438044480445804468044780448804498045080451804528045380454804558045680457804588045980460804618046280463804648046580466804678046880469804708047180472804738047480475804768047780478804798048080481804828048380484804858048680487804888048980490804918049280493804948049580496804978049880499805008050180502805038050480505805068050780508805098051080511805128051380514805158051680517805188051980520805218052280523805248052580526805278052880529805308053180532805338053480535805368053780538805398054080541805428054380544805458054680547805488054980550805518055280553805548055580556805578055880559805608056180562805638056480565805668056780568805698057080571805728057380574805758057680577805788057980580805818058280583805848058580586805878058880589805908059180592805938059480595805968059780598805998060080601806028060380604806058060680607806088060980610806118061280613806148061580616806178061880619806208062180622806238062480625806268062780628806298063080631806328063380634806358063680637806388063980640806418064280643806448064580646806478064880649806508065180652806538065480655806568065780658806598066080661806628066380664806658066680667806688066980670806718067280673806748067580676806778067880679806808068180682806838068480685806868068780688806898069080691806928069380694806958069680697806988069980700807018070280703807048070580706807078070880709807108071180712807138071480715807168071780718807198072080721807228072380724807258072680727807288072980730807318073280733807348073580736807378073880739807408074180742807438074480745807468074780748807498075080751807528075380754807558075680757807588075980760807618076280763807648076580766807678076880769807708077180772807738077480775807768077780778807798078080781807828078380784807858078680787807888078980790807918079280793807948079580796807978079880799808008080180802808038080480805808068080780808808098081080811808128081380814808158081680817808188081980820808218082280823808248082580826808278082880829808308083180832808338083480835808368083780838808398084080841808428084380844808458084680847808488084980850808518085280853808548085580856808578085880859808608086180862808638086480865808668086780868808698087080871808728087380874808758087680877808788087980880808818088280883808848088580886808878088880889808908089180892808938089480895808968089780898808998090080901809028090380904809058090680907809088090980910809118091280913809148091580916809178091880919809208092180922809238092480925809268092780928809298093080931809328093380934809358093680937809388093980940809418094280943809448094580946809478094880949809508095180952809538095480955809568095780958809598096080961809628096380964809658096680967809688096980970809718097280973809748097580976809778097880979809808098180982809838098480985809868098780988809898099080991809928099380994809958099680997809988099981000810018100281003810048100581006810078100881009810108101181012810138101481015810168101781018810198102081021810228102381024810258102681027810288102981030810318103281033810348103581036810378103881039810408104181042810438104481045810468104781048810498105081051810528105381054810558105681057810588105981060810618106281063810648106581066810678106881069810708107181072810738107481075810768107781078810798108081081810828108381084810858108681087810888108981090810918109281093810948109581096810978109881099811008110181102811038110481105811068110781108811098111081111811128111381114811158111681117811188111981120811218112281123811248112581126811278112881129811308113181132811338113481135811368113781138811398114081141811428114381144811458114681147811488114981150811518115281153811548115581156811578115881159811608116181162811638116481165811668116781168811698117081171811728117381174811758117681177811788117981180811818118281183811848118581186811878118881189811908119181192811938119481195811968119781198811998120081201812028120381204812058120681207812088120981210812118121281213812148121581216812178121881219812208122181222812238122481225812268122781228812298123081231812328123381234812358123681237812388123981240812418124281243812448124581246812478124881249812508125181252812538125481255812568125781258812598126081261812628126381264812658126681267812688126981270812718127281273812748127581276812778127881279812808128181282812838128481285812868128781288812898129081291812928129381294812958129681297812988129981300813018130281303813048130581306813078130881309813108131181312813138131481315813168131781318813198132081321813228132381324813258132681327813288132981330813318133281333813348133581336813378133881339813408134181342813438134481345813468134781348813498135081351813528135381354813558135681357813588135981360813618136281363813648136581366813678136881369813708137181372813738137481375813768137781378813798138081381813828138381384813858138681387813888138981390813918139281393813948139581396813978139881399814008140181402814038140481405814068140781408814098141081411814128141381414814158141681417814188141981420814218142281423814248142581426814278142881429814308143181432814338143481435814368143781438814398144081441814428144381444814458144681447814488144981450814518145281453814548145581456814578145881459814608146181462814638146481465814668146781468814698147081471814728147381474814758147681477814788147981480814818148281483814848148581486814878148881489814908149181492814938149481495814968149781498814998150081501815028150381504815058150681507815088150981510815118151281513815148151581516815178151881519815208152181522815238152481525815268152781528815298153081531815328153381534815358153681537815388153981540815418154281543815448154581546815478154881549815508155181552815538155481555815568155781558815598156081561815628156381564815658156681567815688156981570815718157281573815748157581576815778157881579815808158181582815838158481585815868158781588815898159081591815928159381594815958159681597815988159981600816018160281603816048160581606816078160881609816108161181612816138161481615816168161781618816198162081621816228162381624816258162681627816288162981630816318163281633816348163581636816378163881639816408164181642816438164481645816468164781648816498165081651816528165381654816558165681657816588165981660816618166281663816648166581666816678166881669816708167181672816738167481675816768167781678816798168081681816828168381684816858168681687816888168981690816918169281693816948169581696816978169881699817008170181702817038170481705817068170781708817098171081711817128171381714817158171681717817188171981720817218172281723817248172581726817278172881729817308173181732817338173481735817368173781738817398174081741817428174381744817458174681747817488174981750817518175281753817548175581756817578175881759817608176181762817638176481765817668176781768817698177081771817728177381774817758177681777817788177981780817818178281783817848178581786817878178881789817908179181792817938179481795817968179781798817998180081801818028180381804818058180681807818088180981810818118181281813818148181581816818178181881819818208182181822818238182481825818268182781828818298183081831818328183381834818358183681837818388183981840818418184281843818448184581846818478184881849818508185181852818538185481855818568185781858818598186081861818628186381864818658186681867818688186981870818718187281873818748187581876818778187881879818808188181882818838188481885818868188781888818898189081891818928189381894818958189681897818988189981900819018190281903819048190581906819078190881909819108191181912819138191481915819168191781918819198192081921819228192381924819258192681927819288192981930819318193281933819348193581936819378193881939819408194181942819438194481945819468194781948819498195081951819528195381954819558195681957819588195981960819618196281963819648196581966819678196881969819708197181972819738197481975819768197781978819798198081981819828198381984819858198681987819888198981990819918199281993819948199581996819978199881999820008200182002820038200482005820068200782008820098201082011820128201382014820158201682017820188201982020820218202282023820248202582026820278202882029820308203182032820338203482035820368203782038820398204082041820428204382044820458204682047820488204982050820518205282053820548205582056820578205882059820608206182062820638206482065820668206782068820698207082071820728207382074820758207682077820788207982080820818208282083820848208582086820878208882089820908209182092820938209482095820968209782098820998210082101821028210382104821058210682107821088210982110821118211282113821148211582116821178211882119821208212182122821238212482125821268212782128821298213082131821328213382134821358213682137821388213982140821418214282143821448214582146821478214882149821508215182152821538215482155821568215782158821598216082161821628216382164821658216682167821688216982170821718217282173821748217582176821778217882179821808218182182821838218482185821868218782188821898219082191821928219382194821958219682197821988219982200822018220282203822048220582206822078220882209822108221182212822138221482215822168221782218822198222082221822228222382224822258222682227822288222982230822318223282233822348223582236822378223882239822408224182242822438224482245822468224782248822498225082251822528225382254822558225682257822588225982260822618226282263822648226582266822678226882269822708227182272822738227482275822768227782278822798228082281822828228382284822858228682287822888228982290822918229282293822948229582296822978229882299823008230182302823038230482305823068230782308823098231082311823128231382314823158231682317823188231982320823218232282323823248232582326823278232882329823308233182332823338233482335823368233782338823398234082341823428234382344823458234682347823488234982350823518235282353823548235582356823578235882359823608236182362823638236482365823668236782368823698237082371823728237382374823758237682377823788237982380823818238282383823848238582386823878238882389823908239182392823938239482395823968239782398823998240082401824028240382404824058240682407824088240982410824118241282413824148241582416824178241882419824208242182422824238242482425824268242782428824298243082431824328243382434824358243682437824388243982440824418244282443824448244582446824478244882449824508245182452824538245482455824568245782458824598246082461824628246382464824658246682467824688246982470824718247282473824748247582476824778247882479824808248182482824838248482485824868248782488824898249082491824928249382494824958249682497824988249982500825018250282503825048250582506825078250882509825108251182512825138251482515825168251782518825198252082521825228252382524825258252682527825288252982530825318253282533825348253582536825378253882539825408254182542825438254482545825468254782548825498255082551825528255382554825558255682557825588255982560825618256282563825648256582566825678256882569825708257182572825738257482575825768257782578825798258082581825828258382584825858258682587825888258982590825918259282593825948259582596825978259882599826008260182602826038260482605826068260782608826098261082611826128261382614826158261682617826188261982620826218262282623826248262582626826278262882629826308263182632826338263482635826368263782638826398264082641826428264382644826458264682647826488264982650826518265282653826548265582656826578265882659826608266182662826638266482665826668266782668826698267082671826728267382674826758267682677826788267982680826818268282683826848268582686826878268882689826908269182692826938269482695826968269782698826998270082701827028270382704827058270682707827088270982710827118271282713827148271582716827178271882719827208272182722827238272482725827268272782728827298273082731827328273382734827358273682737827388273982740827418274282743827448274582746827478274882749827508275182752827538275482755827568275782758827598276082761827628276382764827658276682767827688276982770827718277282773827748277582776827778277882779827808278182782827838278482785827868278782788827898279082791827928279382794827958279682797827988279982800828018280282803828048280582806828078280882809828108281182812828138281482815828168281782818828198282082821828228282382824828258282682827828288282982830828318283282833828348283582836828378283882839828408284182842828438284482845828468284782848828498285082851828528285382854828558285682857828588285982860828618286282863828648286582866828678286882869828708287182872828738287482875828768287782878828798288082881828828288382884828858288682887828888288982890828918289282893828948289582896828978289882899829008290182902829038290482905829068290782908829098291082911829128291382914829158291682917829188291982920829218292282923829248292582926829278292882929829308293182932829338293482935829368293782938829398294082941829428294382944829458294682947829488294982950829518295282953829548295582956829578295882959829608296182962829638296482965829668296782968829698297082971829728297382974829758297682977829788297982980829818298282983829848298582986829878298882989829908299182992829938299482995829968299782998829998300083001830028300383004830058300683007830088300983010830118301283013830148301583016830178301883019830208302183022830238302483025830268302783028830298303083031830328303383034830358303683037830388303983040830418304283043830448304583046830478304883049830508305183052830538305483055830568305783058830598306083061830628306383064830658306683067830688306983070830718307283073830748307583076830778307883079830808308183082830838308483085830868308783088830898309083091830928309383094830958309683097830988309983100831018310283103831048310583106831078310883109831108311183112831138311483115831168311783118831198312083121831228312383124831258312683127831288312983130831318313283133831348313583136831378313883139831408314183142831438314483145831468314783148831498315083151831528315383154831558315683157831588315983160831618316283163831648316583166831678316883169831708317183172831738317483175831768317783178831798318083181831828318383184831858318683187831888318983190831918319283193831948319583196831978319883199832008320183202832038320483205832068320783208832098321083211832128321383214832158321683217832188321983220832218322283223832248322583226832278322883229832308323183232832338323483235832368323783238832398324083241832428324383244832458324683247832488324983250832518325283253832548325583256832578325883259832608326183262832638326483265832668326783268832698327083271832728327383274832758327683277832788327983280832818328283283832848328583286832878328883289832908329183292832938329483295832968329783298832998330083301833028330383304833058330683307833088330983310833118331283313833148331583316833178331883319833208332183322833238332483325833268332783328833298333083331833328333383334833358333683337833388333983340833418334283343833448334583346833478334883349833508335183352833538335483355833568335783358833598336083361833628336383364833658336683367833688336983370833718337283373833748337583376833778337883379833808338183382833838338483385833868338783388833898339083391833928339383394833958339683397833988339983400834018340283403834048340583406834078340883409834108341183412834138341483415834168341783418834198342083421834228342383424834258342683427834288342983430834318343283433834348343583436834378343883439834408344183442834438344483445834468344783448834498345083451834528345383454834558345683457834588345983460834618346283463834648346583466834678346883469834708347183472834738347483475834768347783478834798348083481834828348383484834858348683487834888348983490834918349283493834948349583496834978349883499835008350183502835038350483505835068350783508835098351083511835128351383514835158351683517835188351983520835218352283523835248352583526835278352883529835308353183532835338353483535835368353783538835398354083541835428354383544835458354683547835488354983550835518355283553835548355583556835578355883559835608356183562835638356483565835668356783568835698357083571835728357383574835758357683577835788357983580835818358283583835848358583586835878358883589835908359183592835938359483595835968359783598835998360083601836028360383604836058360683607836088360983610836118361283613836148361583616836178361883619836208362183622836238362483625836268362783628836298363083631836328363383634836358363683637836388363983640836418364283643836448364583646836478364883649836508365183652836538365483655836568365783658836598366083661836628366383664836658366683667836688366983670836718367283673836748367583676836778367883679836808368183682836838368483685836868368783688836898369083691836928369383694836958369683697836988369983700837018370283703837048370583706837078370883709837108371183712837138371483715837168371783718837198372083721837228372383724837258372683727837288372983730837318373283733837348373583736837378373883739837408374183742837438374483745837468374783748837498375083751837528375383754837558375683757837588375983760837618376283763837648376583766837678376883769837708377183772837738377483775837768377783778837798378083781837828378383784837858378683787837888378983790837918379283793837948379583796837978379883799838008380183802838038380483805838068380783808838098381083811838128381383814838158381683817838188381983820838218382283823838248382583826838278382883829838308383183832838338383483835838368383783838838398384083841838428384383844838458384683847838488384983850838518385283853838548385583856838578385883859838608386183862838638386483865838668386783868838698387083871838728387383874838758387683877838788387983880838818388283883838848388583886838878388883889838908389183892838938389483895838968389783898838998390083901839028390383904839058390683907839088390983910839118391283913839148391583916839178391883919839208392183922839238392483925839268392783928839298393083931839328393383934839358393683937839388393983940839418394283943839448394583946839478394883949839508395183952839538395483955839568395783958839598396083961839628396383964839658396683967839688396983970839718397283973839748397583976839778397883979839808398183982839838398483985839868398783988839898399083991839928399383994839958399683997839988399984000840018400284003840048400584006840078400884009840108401184012840138401484015840168401784018840198402084021840228402384024840258402684027840288402984030840318403284033840348403584036840378403884039840408404184042840438404484045840468404784048840498405084051840528405384054840558405684057840588405984060840618406284063840648406584066840678406884069840708407184072840738407484075840768407784078840798408084081840828408384084840858408684087840888408984090840918409284093840948409584096840978409884099841008410184102841038410484105841068410784108841098411084111841128411384114841158411684117841188411984120841218412284123841248412584126841278412884129841308413184132841338413484135841368413784138841398414084141841428414384144841458414684147841488414984150841518415284153841548415584156841578415884159841608416184162841638416484165841668416784168841698417084171841728417384174841758417684177841788417984180841818418284183841848418584186841878418884189841908419184192841938419484195841968419784198841998420084201842028420384204842058420684207842088420984210842118421284213842148421584216842178421884219842208422184222842238422484225842268422784228842298423084231842328423384234842358423684237842388423984240842418424284243842448424584246842478424884249842508425184252842538425484255842568425784258842598426084261842628426384264842658426684267842688426984270842718427284273842748427584276842778427884279842808428184282842838428484285842868428784288842898429084291842928429384294842958429684297842988429984300843018430284303843048430584306843078430884309843108431184312843138431484315843168431784318843198432084321843228432384324843258432684327843288432984330843318433284333843348433584336843378433884339843408434184342843438434484345843468434784348843498435084351843528435384354843558435684357843588435984360843618436284363843648436584366843678436884369843708437184372843738437484375843768437784378843798438084381843828438384384843858438684387843888438984390843918439284393843948439584396843978439884399844008440184402844038440484405844068440784408844098441084411844128441384414844158441684417844188441984420844218442284423844248442584426844278442884429844308443184432844338443484435844368443784438844398444084441844428444384444844458444684447844488444984450844518445284453844548445584456844578445884459844608446184462844638446484465844668446784468844698447084471844728447384474844758447684477844788447984480844818448284483844848448584486844878448884489844908449184492844938449484495844968449784498844998450084501845028450384504845058450684507845088450984510845118451284513845148451584516845178451884519845208452184522845238452484525845268452784528845298453084531845328453384534845358453684537845388453984540845418454284543845448454584546845478454884549845508455184552845538455484555845568455784558845598456084561845628456384564845658456684567845688456984570845718457284573845748457584576845778457884579845808458184582845838458484585845868458784588845898459084591845928459384594845958459684597845988459984600846018460284603846048460584606846078460884609846108461184612846138461484615846168461784618846198462084621846228462384624846258462684627846288462984630846318463284633846348463584636846378463884639846408464184642846438464484645846468464784648846498465084651846528465384654846558465684657846588465984660846618466284663846648466584666846678466884669846708467184672846738467484675846768467784678846798468084681846828468384684846858468684687846888468984690846918469284693846948469584696846978469884699847008470184702847038470484705847068470784708847098471084711847128471384714847158471684717847188471984720847218472284723847248472584726847278472884729847308473184732847338473484735847368473784738847398474084741847428474384744847458474684747847488474984750847518475284753847548475584756847578475884759847608476184762847638476484765847668476784768847698477084771847728477384774847758477684777847788477984780847818478284783847848478584786847878478884789847908479184792847938479484795847968479784798847998480084801848028480384804848058480684807848088480984810848118481284813848148481584816848178481884819848208482184822848238482484825848268482784828848298483084831848328483384834848358483684837848388483984840848418484284843848448484584846848478484884849848508485184852848538485484855848568485784858848598486084861848628486384864848658486684867848688486984870848718487284873848748487584876848778487884879848808488184882848838488484885848868488784888848898489084891848928489384894848958489684897848988489984900849018490284903849048490584906849078490884909849108491184912849138491484915849168491784918849198492084921849228492384924849258492684927849288492984930849318493284933849348493584936849378493884939849408494184942849438494484945849468494784948849498495084951849528495384954849558495684957849588495984960849618496284963849648496584966849678496884969849708497184972849738497484975849768497784978849798498084981849828498384984849858498684987849888498984990849918499284993849948499584996849978499884999850008500185002850038500485005850068500785008850098501085011850128501385014850158501685017850188501985020850218502285023850248502585026850278502885029850308503185032850338503485035850368503785038850398504085041850428504385044850458504685047850488504985050850518505285053850548505585056850578505885059850608506185062850638506485065850668506785068850698507085071850728507385074850758507685077850788507985080850818508285083850848508585086850878508885089850908509185092850938509485095850968509785098850998510085101851028510385104851058510685107851088510985110851118511285113851148511585116851178511885119851208512185122851238512485125851268512785128851298513085131851328513385134851358513685137851388513985140851418514285143851448514585146851478514885149851508515185152851538515485155851568515785158851598516085161851628516385164851658516685167851688516985170851718517285173851748517585176851778517885179851808518185182851838518485185851868518785188851898519085191851928519385194851958519685197851988519985200852018520285203852048520585206852078520885209852108521185212852138521485215852168521785218852198522085221852228522385224852258522685227852288522985230852318523285233852348523585236852378523885239852408524185242852438524485245852468524785248852498525085251852528525385254852558525685257852588525985260852618526285263852648526585266852678526885269852708527185272852738527485275852768527785278852798528085281852828528385284852858528685287852888528985290852918529285293852948529585296852978529885299853008530185302853038530485305853068530785308853098531085311853128531385314853158531685317853188531985320853218532285323853248532585326853278532885329853308533185332853338533485335853368533785338853398534085341853428534385344853458534685347853488534985350853518535285353853548535585356853578535885359853608536185362853638536485365853668536785368853698537085371853728537385374853758537685377853788537985380853818538285383853848538585386853878538885389853908539185392853938539485395853968539785398853998540085401854028540385404854058540685407854088540985410854118541285413854148541585416854178541885419854208542185422854238542485425854268542785428854298543085431854328543385434854358543685437854388543985440854418544285443854448544585446854478544885449854508545185452854538545485455854568545785458854598546085461854628546385464854658546685467854688546985470854718547285473854748547585476854778547885479854808548185482854838548485485854868548785488854898549085491854928549385494854958549685497854988549985500855018550285503855048550585506855078550885509855108551185512855138551485515855168551785518855198552085521855228552385524855258552685527855288552985530855318553285533855348553585536855378553885539855408554185542855438554485545855468554785548855498555085551855528555385554855558555685557855588555985560855618556285563855648556585566855678556885569855708557185572855738557485575855768557785578855798558085581855828558385584855858558685587855888558985590855918559285593855948559585596855978559885599856008560185602856038560485605856068560785608856098561085611856128561385614856158561685617856188561985620856218562285623856248562585626856278562885629856308563185632856338563485635856368563785638856398564085641856428564385644856458564685647856488564985650856518565285653856548565585656856578565885659856608566185662856638566485665856668566785668856698567085671856728567385674856758567685677856788567985680856818568285683856848568585686856878568885689856908569185692856938569485695856968569785698856998570085701857028570385704857058570685707857088570985710857118571285713857148571585716857178571885719857208572185722857238572485725857268572785728857298573085731857328573385734857358573685737857388573985740857418574285743857448574585746857478574885749857508575185752857538575485755857568575785758857598576085761857628576385764857658576685767857688576985770857718577285773857748577585776857778577885779857808578185782857838578485785857868578785788857898579085791857928579385794857958579685797857988579985800858018580285803858048580585806858078580885809858108581185812858138581485815858168581785818858198582085821858228582385824858258582685827858288582985830858318583285833858348583585836858378583885839858408584185842858438584485845858468584785848858498585085851858528585385854858558585685857858588585985860858618586285863858648586585866858678586885869858708587185872858738587485875858768587785878858798588085881858828588385884858858588685887858888588985890858918589285893858948589585896858978589885899859008590185902859038590485905859068590785908859098591085911859128591385914859158591685917859188591985920859218592285923859248592585926859278592885929859308593185932859338593485935859368593785938859398594085941859428594385944859458594685947859488594985950859518595285953859548595585956859578595885959859608596185962859638596485965859668596785968859698597085971859728597385974859758597685977859788597985980859818598285983859848598585986859878598885989859908599185992859938599485995859968599785998859998600086001860028600386004860058600686007860088600986010860118601286013860148601586016860178601886019860208602186022860238602486025860268602786028860298603086031860328603386034860358603686037860388603986040860418604286043860448604586046860478604886049860508605186052860538605486055860568605786058860598606086061860628606386064860658606686067860688606986070860718607286073860748607586076860778607886079860808608186082860838608486085860868608786088860898609086091860928609386094860958609686097860988609986100861018610286103861048610586106861078610886109861108611186112861138611486115861168611786118861198612086121861228612386124861258612686127861288612986130861318613286133861348613586136861378613886139861408614186142861438614486145861468614786148861498615086151861528615386154861558615686157861588615986160861618616286163861648616586166861678616886169861708617186172861738617486175861768617786178861798618086181861828618386184861858618686187861888618986190861918619286193861948619586196861978619886199862008620186202862038620486205862068620786208862098621086211862128621386214862158621686217862188621986220862218622286223862248622586226862278622886229862308623186232862338623486235862368623786238862398624086241862428624386244862458624686247862488624986250862518625286253862548625586256862578625886259862608626186262862638626486265862668626786268862698627086271862728627386274862758627686277862788627986280862818628286283862848628586286862878628886289862908629186292862938629486295862968629786298862998630086301863028630386304863058630686307863088630986310863118631286313863148631586316863178631886319863208632186322863238632486325863268632786328863298633086331863328633386334863358633686337863388633986340863418634286343863448634586346863478634886349863508635186352863538635486355863568635786358863598636086361863628636386364863658636686367863688636986370863718637286373863748637586376863778637886379863808638186382863838638486385863868638786388863898639086391863928639386394863958639686397863988639986400864018640286403864048640586406864078640886409864108641186412864138641486415864168641786418864198642086421864228642386424864258642686427864288642986430864318643286433864348643586436864378643886439864408644186442864438644486445864468644786448864498645086451864528645386454864558645686457864588645986460864618646286463864648646586466864678646886469864708647186472864738647486475864768647786478864798648086481864828648386484864858648686487864888648986490864918649286493864948649586496864978649886499865008650186502865038650486505865068650786508865098651086511865128651386514865158651686517865188651986520865218652286523865248652586526865278652886529865308653186532865338653486535865368653786538865398654086541865428654386544865458654686547865488654986550865518655286553865548655586556865578655886559865608656186562865638656486565865668656786568865698657086571865728657386574865758657686577865788657986580865818658286583865848658586586865878658886589865908659186592865938659486595865968659786598865998660086601866028660386604866058660686607866088660986610866118661286613866148661586616866178661886619866208662186622866238662486625866268662786628866298663086631866328663386634866358663686637866388663986640866418664286643866448664586646866478664886649866508665186652866538665486655866568665786658866598666086661866628666386664866658666686667866688666986670866718667286673866748667586676866778667886679866808668186682866838668486685866868668786688866898669086691866928669386694866958669686697866988669986700867018670286703867048670586706867078670886709867108671186712867138671486715867168671786718867198672086721867228672386724867258672686727867288672986730867318673286733867348673586736867378673886739867408674186742867438674486745867468674786748867498675086751867528675386754867558675686757867588675986760867618676286763867648676586766867678676886769867708677186772867738677486775867768677786778867798678086781867828678386784867858678686787867888678986790867918679286793867948679586796867978679886799868008680186802868038680486805868068680786808868098681086811868128681386814868158681686817868188681986820868218682286823868248682586826868278682886829868308683186832868338683486835868368683786838868398684086841868428684386844868458684686847868488684986850868518685286853868548685586856868578685886859868608686186862868638686486865868668686786868868698687086871868728687386874868758687686877868788687986880868818688286883868848688586886868878688886889868908689186892868938689486895868968689786898868998690086901869028690386904869058690686907869088690986910869118691286913869148691586916869178691886919869208692186922869238692486925869268692786928869298693086931869328693386934869358693686937869388693986940869418694286943869448694586946869478694886949869508695186952869538695486955869568695786958869598696086961869628696386964869658696686967869688696986970869718697286973869748697586976869778697886979869808698186982869838698486985869868698786988869898699086991869928699386994869958699686997869988699987000870018700287003870048700587006870078700887009870108701187012870138701487015870168701787018870198702087021870228702387024870258702687027870288702987030870318703287033870348703587036870378703887039870408704187042870438704487045870468704787048870498705087051870528705387054870558705687057870588705987060870618706287063870648706587066870678706887069870708707187072870738707487075870768707787078870798708087081870828708387084870858708687087870888708987090870918709287093870948709587096870978709887099871008710187102871038710487105871068710787108871098711087111871128711387114871158711687117871188711987120871218712287123871248712587126871278712887129871308713187132871338713487135871368713787138871398714087141871428714387144871458714687147871488714987150871518715287153871548715587156871578715887159871608716187162871638716487165871668716787168871698717087171871728717387174871758717687177871788717987180871818718287183871848718587186871878718887189871908719187192871938719487195871968719787198871998720087201872028720387204872058720687207872088720987210872118721287213872148721587216872178721887219872208722187222872238722487225872268722787228872298723087231872328723387234872358723687237872388723987240872418724287243872448724587246872478724887249872508725187252872538725487255872568725787258872598726087261872628726387264872658726687267872688726987270872718727287273872748727587276872778727887279872808728187282872838728487285872868728787288872898729087291872928729387294872958729687297872988729987300873018730287303873048730587306873078730887309873108731187312873138731487315873168731787318873198732087321873228732387324873258732687327873288732987330873318733287333873348733587336873378733887339873408734187342873438734487345873468734787348873498735087351873528735387354873558735687357873588735987360873618736287363873648736587366873678736887369873708737187372873738737487375873768737787378873798738087381873828738387384873858738687387873888738987390873918739287393873948739587396873978739887399874008740187402874038740487405874068740787408874098741087411874128741387414874158741687417874188741987420874218742287423874248742587426874278742887429874308743187432874338743487435874368743787438874398744087441874428744387444874458744687447874488744987450874518745287453874548745587456874578745887459874608746187462874638746487465874668746787468874698747087471874728747387474874758747687477874788747987480874818748287483874848748587486874878748887489874908749187492874938749487495874968749787498874998750087501875028750387504875058750687507875088750987510875118751287513875148751587516875178751887519875208752187522875238752487525875268752787528875298753087531875328753387534875358753687537875388753987540875418754287543875448754587546875478754887549875508755187552875538755487555875568755787558875598756087561875628756387564875658756687567875688756987570875718757287573875748757587576875778757887579875808758187582875838758487585875868758787588875898759087591875928759387594875958759687597875988759987600876018760287603876048760587606876078760887609876108761187612876138761487615876168761787618876198762087621876228762387624876258762687627876288762987630876318763287633876348763587636876378763887639876408764187642876438764487645876468764787648876498765087651876528765387654876558765687657876588765987660876618766287663876648766587666876678766887669876708767187672876738767487675876768767787678876798768087681876828768387684876858768687687876888768987690876918769287693876948769587696876978769887699877008770187702877038770487705877068770787708877098771087711877128771387714877158771687717877188771987720877218772287723877248772587726877278772887729877308773187732877338773487735877368773787738877398774087741877428774387744877458774687747877488774987750877518775287753877548775587756877578775887759877608776187762877638776487765877668776787768877698777087771877728777387774877758777687777877788777987780877818778287783877848778587786877878778887789877908779187792877938779487795877968779787798877998780087801878028780387804878058780687807878088780987810878118781287813878148781587816878178781887819878208782187822878238782487825878268782787828878298783087831878328783387834878358783687837878388783987840878418784287843878448784587846878478784887849878508785187852878538785487855878568785787858878598786087861878628786387864878658786687867878688786987870878718787287873878748787587876878778787887879878808788187882878838788487885878868788787888878898789087891878928789387894878958789687897878988789987900879018790287903879048790587906879078790887909879108791187912879138791487915879168791787918879198792087921879228792387924879258792687927879288792987930879318793287933879348793587936879378793887939879408794187942879438794487945879468794787948879498795087951879528795387954879558795687957879588795987960879618796287963879648796587966879678796887969879708797187972879738797487975879768797787978879798798087981879828798387984879858798687987879888798987990879918799287993879948799587996879978799887999880008800188002880038800488005880068800788008880098801088011880128801388014880158801688017880188801988020880218802288023880248802588026880278802888029880308803188032880338803488035880368803788038880398804088041880428804388044880458804688047880488804988050880518805288053880548805588056880578805888059880608806188062880638806488065880668806788068880698807088071880728807388074880758807688077880788807988080880818808288083880848808588086880878808888089880908809188092880938809488095880968809788098880998810088101881028810388104881058810688107881088810988110881118811288113881148811588116881178811888119881208812188122881238812488125881268812788128881298813088131881328813388134881358813688137881388813988140881418814288143881448814588146881478814888149881508815188152881538815488155881568815788158881598816088161881628816388164881658816688167881688816988170881718817288173881748817588176881778817888179881808818188182881838818488185881868818788188881898819088191881928819388194881958819688197881988819988200882018820288203882048820588206882078820888209882108821188212882138821488215882168821788218882198822088221882228822388224882258822688227882288822988230882318823288233882348823588236882378823888239882408824188242882438824488245882468824788248882498825088251882528825388254882558825688257882588825988260882618826288263882648826588266882678826888269882708827188272882738827488275882768827788278882798828088281882828828388284882858828688287882888828988290882918829288293882948829588296882978829888299883008830188302883038830488305883068830788308883098831088311883128831388314883158831688317883188831988320883218832288323883248832588326883278832888329883308833188332883338833488335883368833788338883398834088341883428834388344883458834688347883488834988350883518835288353883548835588356883578835888359883608836188362883638836488365883668836788368883698837088371883728837388374883758837688377883788837988380883818838288383883848838588386883878838888389883908839188392883938839488395883968839788398883998840088401884028840388404884058840688407884088840988410884118841288413884148841588416884178841888419884208842188422884238842488425884268842788428884298843088431884328843388434884358843688437884388843988440884418844288443884448844588446884478844888449884508845188452884538845488455884568845788458884598846088461884628846388464884658846688467884688846988470884718847288473884748847588476884778847888479884808848188482884838848488485884868848788488884898849088491884928849388494884958849688497884988849988500885018850288503885048850588506885078850888509885108851188512885138851488515885168851788518885198852088521885228852388524885258852688527885288852988530885318853288533885348853588536885378853888539885408854188542885438854488545885468854788548885498855088551885528855388554885558855688557885588855988560885618856288563885648856588566885678856888569885708857188572885738857488575885768857788578885798858088581885828858388584885858858688587885888858988590885918859288593885948859588596885978859888599886008860188602886038860488605886068860788608886098861088611886128861388614886158861688617886188861988620886218862288623886248862588626886278862888629886308863188632886338863488635886368863788638886398864088641886428864388644886458864688647886488864988650886518865288653886548865588656886578865888659886608866188662886638866488665886668866788668886698867088671886728867388674886758867688677886788867988680886818868288683886848868588686886878868888689886908869188692886938869488695886968869788698886998870088701887028870388704887058870688707887088870988710887118871288713887148871588716887178871888719887208872188722887238872488725887268872788728887298873088731887328873388734887358873688737887388873988740887418874288743887448874588746887478874888749887508875188752887538875488755887568875788758887598876088761887628876388764887658876688767887688876988770887718877288773887748877588776887778877888779887808878188782887838878488785887868878788788887898879088791887928879388794887958879688797887988879988800888018880288803888048880588806888078880888809888108881188812888138881488815888168881788818888198882088821888228882388824888258882688827888288882988830888318883288833888348883588836888378883888839888408884188842888438884488845888468884788848888498885088851888528885388854888558885688857888588885988860888618886288863888648886588866888678886888869888708887188872888738887488875888768887788878888798888088881888828888388884888858888688887888888888988890888918889288893888948889588896888978889888899889008890188902889038890488905889068890788908889098891088911889128891388914889158891688917889188891988920889218892288923889248892588926889278892888929889308893188932889338893488935889368893788938889398894088941889428894388944889458894688947889488894988950889518895288953889548895588956889578895888959889608896188962889638896488965889668896788968889698897088971889728897388974889758897688977889788897988980889818898288983889848898588986889878898888989889908899188992889938899488995889968899788998889998900089001890028900389004890058900689007890088900989010890118901289013890148901589016890178901889019890208902189022890238902489025890268902789028890298903089031890328903389034890358903689037890388903989040890418904289043890448904589046890478904889049890508905189052890538905489055890568905789058890598906089061890628906389064890658906689067890688906989070890718907289073890748907589076890778907889079890808908189082890838908489085890868908789088890898909089091890928909389094890958909689097890988909989100891018910289103891048910589106891078910889109891108911189112891138911489115891168911789118891198912089121891228912389124891258912689127891288912989130891318913289133891348913589136891378913889139891408914189142891438914489145891468914789148891498915089151891528915389154891558915689157891588915989160891618916289163891648916589166891678916889169891708917189172891738917489175891768917789178891798918089181891828918389184891858918689187891888918989190891918919289193891948919589196891978919889199892008920189202892038920489205892068920789208892098921089211892128921389214892158921689217892188921989220892218922289223892248922589226892278922889229892308923189232892338923489235892368923789238892398924089241892428924389244892458924689247892488924989250892518925289253892548925589256892578925889259892608926189262892638926489265892668926789268892698927089271892728927389274892758927689277892788927989280892818928289283892848928589286892878928889289892908929189292892938929489295892968929789298892998930089301893028930389304893058930689307893088930989310893118931289313893148931589316893178931889319893208932189322893238932489325893268932789328893298933089331893328933389334893358933689337893388933989340893418934289343893448934589346893478934889349893508935189352893538935489355893568935789358893598936089361893628936389364893658936689367893688936989370893718937289373893748937589376893778937889379893808938189382893838938489385893868938789388893898939089391893928939389394893958939689397893988939989400894018940289403894048940589406894078940889409894108941189412894138941489415894168941789418894198942089421894228942389424894258942689427894288942989430894318943289433894348943589436894378943889439894408944189442894438944489445894468944789448894498945089451894528945389454894558945689457894588945989460894618946289463894648946589466894678946889469894708947189472894738947489475894768947789478894798948089481894828948389484894858948689487894888948989490894918949289493894948949589496894978949889499895008950189502895038950489505895068950789508895098951089511895128951389514895158951689517895188951989520895218952289523895248952589526895278952889529895308953189532895338953489535895368953789538895398954089541895428954389544895458954689547895488954989550895518955289553895548955589556895578955889559895608956189562895638956489565895668956789568895698957089571895728957389574895758957689577895788957989580895818958289583895848958589586895878958889589895908959189592895938959489595895968959789598895998960089601896028960389604896058960689607896088960989610896118961289613896148961589616896178961889619896208962189622896238962489625896268962789628896298963089631896328963389634896358963689637896388963989640896418964289643896448964589646896478964889649896508965189652896538965489655896568965789658896598966089661896628966389664896658966689667896688966989670896718967289673896748967589676896778967889679896808968189682896838968489685896868968789688896898969089691896928969389694896958969689697896988969989700897018970289703897048970589706897078970889709897108971189712897138971489715897168971789718897198972089721897228972389724897258972689727897288972989730897318973289733897348973589736897378973889739897408974189742897438974489745897468974789748897498975089751897528975389754897558975689757897588975989760897618976289763897648976589766897678976889769897708977189772897738977489775897768977789778897798978089781897828978389784897858978689787897888978989790897918979289793897948979589796897978979889799898008980189802898038980489805898068980789808898098981089811898128981389814898158981689817898188981989820898218982289823898248982589826898278982889829898308983189832898338983489835898368983789838898398984089841898428984389844898458984689847898488984989850898518985289853898548985589856898578985889859898608986189862898638986489865898668986789868898698987089871898728987389874898758987689877898788987989880898818988289883898848988589886898878988889889898908989189892898938989489895898968989789898898998990089901899028990389904899058990689907899088990989910899118991289913899148991589916899178991889919899208992189922899238992489925899268992789928899298993089931899328993389934899358993689937899388993989940899418994289943899448994589946899478994889949899508995189952899538995489955899568995789958899598996089961899628996389964899658996689967899688996989970899718997289973899748997589976899778997889979899808998189982899838998489985899868998789988899898999089991899928999389994899958999689997899988999990000900019000290003900049000590006900079000890009900109001190012900139001490015900169001790018900199002090021900229002390024900259002690027900289002990030900319003290033900349003590036900379003890039900409004190042900439004490045900469004790048900499005090051900529005390054900559005690057900589005990060900619006290063900649006590066900679006890069900709007190072900739007490075900769007790078900799008090081900829008390084900859008690087900889008990090900919009290093900949009590096900979009890099901009010190102901039010490105901069010790108901099011090111901129011390114901159011690117901189011990120901219012290123901249012590126901279012890129901309013190132901339013490135901369013790138901399014090141901429014390144901459014690147901489014990150901519015290153901549015590156901579015890159901609016190162901639016490165901669016790168901699017090171901729017390174901759017690177901789017990180901819018290183901849018590186901879018890189901909019190192901939019490195901969019790198901999020090201902029020390204902059020690207902089020990210902119021290213902149021590216902179021890219902209022190222902239022490225902269022790228902299023090231902329023390234902359023690237902389023990240902419024290243902449024590246902479024890249902509025190252902539025490255902569025790258902599026090261902629026390264902659026690267902689026990270902719027290273902749027590276902779027890279902809028190282902839028490285902869028790288902899029090291902929029390294902959029690297902989029990300903019030290303903049030590306903079030890309903109031190312903139031490315903169031790318903199032090321903229032390324903259032690327903289032990330903319033290333903349033590336903379033890339903409034190342903439034490345903469034790348903499035090351903529035390354903559035690357903589035990360903619036290363903649036590366903679036890369903709037190372903739037490375903769037790378903799038090381903829038390384903859038690387903889038990390903919039290393903949039590396903979039890399904009040190402904039040490405904069040790408904099041090411904129041390414904159041690417904189041990420904219042290423904249042590426904279042890429904309043190432904339043490435904369043790438904399044090441904429044390444904459044690447904489044990450904519045290453904549045590456904579045890459904609046190462904639046490465904669046790468904699047090471904729047390474904759047690477904789047990480904819048290483904849048590486904879048890489904909049190492904939049490495904969049790498904999050090501905029050390504905059050690507905089050990510905119051290513905149051590516905179051890519905209052190522905239052490525905269052790528905299053090531905329053390534905359053690537905389053990540905419054290543905449054590546905479054890549905509055190552905539055490555905569055790558905599056090561905629056390564905659056690567905689056990570905719057290573905749057590576905779057890579905809058190582905839058490585905869058790588905899059090591905929059390594905959059690597905989059990600906019060290603906049060590606906079060890609906109061190612906139061490615906169061790618906199062090621906229062390624906259062690627906289062990630906319063290633906349063590636906379063890639906409064190642906439064490645906469064790648906499065090651906529065390654906559065690657906589065990660906619066290663906649066590666906679066890669906709067190672906739067490675906769067790678906799068090681906829068390684906859068690687906889068990690906919069290693906949069590696906979069890699907009070190702907039070490705907069070790708907099071090711907129071390714907159071690717907189071990720907219072290723907249072590726907279072890729907309073190732907339073490735907369073790738907399074090741907429074390744907459074690747907489074990750907519075290753907549075590756907579075890759907609076190762907639076490765907669076790768907699077090771907729077390774907759077690777907789077990780907819078290783907849078590786907879078890789907909079190792907939079490795907969079790798907999080090801908029080390804908059080690807908089080990810908119081290813908149081590816908179081890819908209082190822908239082490825908269082790828908299083090831908329083390834908359083690837908389083990840908419084290843908449084590846908479084890849908509085190852908539085490855908569085790858908599086090861908629086390864908659086690867908689086990870908719087290873908749087590876908779087890879908809088190882908839088490885908869088790888908899089090891908929089390894908959089690897908989089990900909019090290903909049090590906909079090890909909109091190912909139091490915909169091790918909199092090921909229092390924909259092690927909289092990930909319093290933909349093590936909379093890939909409094190942909439094490945909469094790948909499095090951909529095390954909559095690957909589095990960909619096290963909649096590966909679096890969909709097190972909739097490975909769097790978909799098090981909829098390984909859098690987909889098990990909919099290993909949099590996909979099890999910009100191002910039100491005910069100791008910099101091011910129101391014910159101691017910189101991020910219102291023910249102591026910279102891029910309103191032910339103491035910369103791038910399104091041910429104391044910459104691047910489104991050910519105291053910549105591056910579105891059910609106191062910639106491065910669106791068910699107091071910729107391074910759107691077910789107991080910819108291083910849108591086910879108891089910909109191092910939109491095910969109791098910999110091101911029110391104911059110691107911089110991110911119111291113911149111591116911179111891119911209112191122911239112491125911269112791128911299113091131911329113391134911359113691137911389113991140911419114291143911449114591146911479114891149911509115191152911539115491155911569115791158911599116091161911629116391164911659116691167911689116991170911719117291173911749117591176911779117891179911809118191182911839118491185911869118791188911899119091191911929119391194911959119691197911989119991200912019120291203912049120591206912079120891209912109121191212912139121491215912169121791218912199122091221912229122391224912259122691227912289122991230912319123291233912349123591236912379123891239912409124191242912439124491245912469124791248912499125091251912529125391254912559125691257912589125991260912619126291263912649126591266912679126891269912709127191272912739127491275912769127791278912799128091281912829128391284912859128691287912889128991290912919129291293912949129591296912979129891299913009130191302913039130491305913069130791308913099131091311913129131391314913159131691317913189131991320913219132291323913249132591326913279132891329913309133191332913339133491335913369133791338913399134091341913429134391344913459134691347913489134991350913519135291353913549135591356913579135891359913609136191362913639136491365913669136791368913699137091371913729137391374913759137691377913789137991380913819138291383913849138591386913879138891389913909139191392913939139491395913969139791398913999140091401914029140391404914059140691407914089140991410914119141291413914149141591416914179141891419914209142191422914239142491425914269142791428914299143091431914329143391434914359143691437914389143991440914419144291443914449144591446914479144891449914509145191452914539145491455914569145791458914599146091461914629146391464914659146691467914689146991470914719147291473914749147591476914779147891479914809148191482914839148491485914869148791488914899149091491914929149391494914959149691497914989149991500915019150291503915049150591506915079150891509915109151191512915139151491515915169151791518915199152091521915229152391524915259152691527915289152991530915319153291533915349153591536915379153891539915409154191542915439154491545915469154791548915499155091551915529155391554915559155691557915589155991560915619156291563915649156591566915679156891569915709157191572915739157491575915769157791578915799158091581915829158391584915859158691587915889158991590915919159291593915949159591596915979159891599916009160191602916039160491605916069160791608916099161091611916129161391614916159161691617916189161991620916219162291623916249162591626916279162891629916309163191632916339163491635916369163791638916399164091641916429164391644916459164691647916489164991650916519165291653916549165591656916579165891659916609166191662916639166491665916669166791668916699167091671916729167391674916759167691677916789167991680916819168291683916849168591686916879168891689916909169191692916939169491695916969169791698916999170091701917029170391704917059170691707917089170991710917119171291713917149171591716917179171891719917209172191722917239172491725917269172791728917299173091731917329173391734917359173691737917389173991740917419174291743917449174591746917479174891749917509175191752917539175491755917569175791758917599176091761917629176391764917659176691767917689176991770917719177291773917749177591776917779177891779917809178191782917839178491785917869178791788917899179091791917929179391794917959179691797917989179991800918019180291803918049180591806918079180891809918109181191812918139181491815918169181791818918199182091821918229182391824918259182691827918289182991830918319183291833918349183591836918379183891839918409184191842918439184491845918469184791848918499185091851918529185391854918559185691857918589185991860918619186291863918649186591866918679186891869918709187191872918739187491875918769187791878918799188091881918829188391884918859188691887918889188991890918919189291893918949189591896918979189891899919009190191902919039190491905919069190791908919099191091911919129191391914919159191691917919189191991920919219192291923919249192591926919279192891929919309193191932919339193491935919369193791938919399194091941919429194391944919459194691947919489194991950919519195291953919549195591956919579195891959919609196191962919639196491965919669196791968919699197091971919729197391974919759197691977919789197991980919819198291983919849198591986919879198891989919909199191992919939199491995919969199791998919999200092001920029200392004920059200692007920089200992010920119201292013920149201592016920179201892019920209202192022920239202492025920269202792028920299203092031920329203392034920359203692037920389203992040920419204292043920449204592046920479204892049920509205192052920539205492055920569205792058920599206092061920629206392064920659206692067920689206992070920719207292073920749207592076920779207892079920809208192082920839208492085920869208792088920899209092091920929209392094920959209692097920989209992100921019210292103921049210592106921079210892109921109211192112921139211492115921169211792118921199212092121921229212392124921259212692127921289212992130921319213292133921349213592136921379213892139921409214192142921439214492145921469214792148921499215092151921529215392154921559215692157921589215992160921619216292163921649216592166921679216892169921709217192172921739217492175921769217792178921799218092181921829218392184921859218692187921889218992190921919219292193921949219592196921979219892199922009220192202922039220492205922069220792208922099221092211922129221392214922159221692217922189221992220922219222292223922249222592226922279222892229922309223192232922339223492235922369223792238922399224092241922429224392244922459224692247922489224992250922519225292253922549225592256922579225892259922609226192262922639226492265922669226792268922699227092271922729227392274922759227692277922789227992280922819228292283922849228592286922879228892289922909229192292922939229492295922969229792298922999230092301923029230392304923059230692307923089230992310923119231292313923149231592316923179231892319923209232192322923239232492325923269232792328923299233092331923329233392334923359233692337923389233992340923419234292343923449234592346923479234892349923509235192352923539235492355923569235792358923599236092361923629236392364923659236692367923689236992370923719237292373923749237592376923779237892379923809238192382923839238492385923869238792388923899239092391923929239392394923959239692397923989239992400924019240292403924049240592406924079240892409924109241192412924139241492415924169241792418924199242092421924229242392424924259242692427924289242992430924319243292433924349243592436924379243892439924409244192442924439244492445924469244792448924499245092451924529245392454924559245692457924589245992460924619246292463924649246592466924679246892469924709247192472924739247492475924769247792478924799248092481924829248392484924859248692487924889248992490924919249292493924949249592496924979249892499925009250192502925039250492505925069250792508925099251092511925129251392514925159251692517925189251992520925219252292523925249252592526925279252892529925309253192532925339253492535925369253792538925399254092541925429254392544925459254692547925489254992550925519255292553925549255592556925579255892559925609256192562925639256492565925669256792568925699257092571925729257392574925759257692577925789257992580925819258292583925849258592586925879258892589925909259192592925939259492595925969259792598925999260092601926029260392604926059260692607926089260992610926119261292613926149261592616926179261892619926209262192622926239262492625926269262792628926299263092631926329263392634926359263692637926389263992640926419264292643926449264592646926479264892649926509265192652926539265492655926569265792658926599266092661926629266392664926659266692667926689266992670926719267292673926749267592676926779267892679926809268192682926839268492685926869268792688926899269092691926929269392694926959269692697926989269992700927019270292703927049270592706927079270892709927109271192712927139271492715927169271792718927199272092721927229272392724927259272692727927289272992730927319273292733927349273592736927379273892739927409274192742927439274492745927469274792748927499275092751927529275392754927559275692757927589275992760927619276292763927649276592766927679276892769927709277192772927739277492775927769277792778927799278092781927829278392784927859278692787927889278992790927919279292793927949279592796927979279892799928009280192802928039280492805928069280792808928099281092811928129281392814928159281692817928189281992820928219282292823928249282592826928279282892829928309283192832928339283492835928369283792838928399284092841928429284392844928459284692847928489284992850928519285292853928549285592856928579285892859928609286192862928639286492865928669286792868928699287092871928729287392874928759287692877928789287992880928819288292883928849288592886928879288892889928909289192892928939289492895928969289792898928999290092901929029290392904929059290692907929089290992910929119291292913929149291592916929179291892919929209292192922929239292492925929269292792928929299293092931929329293392934929359293692937929389293992940929419294292943929449294592946929479294892949929509295192952929539295492955929569295792958929599296092961929629296392964929659296692967929689296992970929719297292973929749297592976929779297892979929809298192982929839298492985929869298792988929899299092991929929299392994929959299692997929989299993000930019300293003930049300593006930079300893009930109301193012930139301493015930169301793018930199302093021930229302393024930259302693027930289302993030930319303293033930349303593036930379303893039930409304193042930439304493045930469304793048930499305093051930529305393054930559305693057930589305993060930619306293063930649306593066930679306893069930709307193072930739307493075930769307793078930799308093081930829308393084930859308693087930889308993090930919309293093930949309593096930979309893099931009310193102931039310493105931069310793108931099311093111931129311393114931159311693117931189311993120931219312293123931249312593126931279312893129931309313193132931339313493135931369313793138931399314093141931429314393144931459314693147931489314993150931519315293153931549315593156931579315893159931609316193162931639316493165931669316793168931699317093171931729317393174931759317693177931789317993180931819318293183931849318593186931879318893189931909319193192931939319493195931969319793198931999320093201932029320393204932059320693207932089320993210932119321293213932149321593216932179321893219932209322193222932239322493225932269322793228932299323093231932329323393234932359323693237932389323993240932419324293243932449324593246932479324893249932509325193252932539325493255932569325793258932599326093261932629326393264932659326693267932689326993270932719327293273932749327593276932779327893279932809328193282932839328493285932869328793288932899329093291932929329393294932959329693297932989329993300933019330293303933049330593306933079330893309933109331193312933139331493315933169331793318933199332093321933229332393324933259332693327933289332993330933319333293333933349333593336933379333893339933409334193342933439334493345933469334793348933499335093351933529335393354933559335693357933589335993360933619336293363933649336593366933679336893369933709337193372933739337493375933769337793378933799338093381933829338393384933859338693387933889338993390933919339293393933949339593396933979339893399934009340193402934039340493405934069340793408934099341093411934129341393414934159341693417934189341993420934219342293423934249342593426934279342893429934309343193432934339343493435934369343793438934399344093441934429344393444934459344693447934489344993450934519345293453934549345593456934579345893459934609346193462934639346493465934669346793468934699347093471934729347393474934759347693477934789347993480934819348293483934849348593486934879348893489934909349193492934939349493495934969349793498934999350093501935029350393504935059350693507935089350993510935119351293513935149351593516935179351893519935209352193522935239352493525935269352793528935299353093531935329353393534935359353693537935389353993540935419354293543935449354593546935479354893549935509355193552935539355493555935569355793558935599356093561935629356393564935659356693567935689356993570935719357293573935749357593576935779357893579935809358193582935839358493585935869358793588935899359093591935929359393594935959359693597935989359993600936019360293603936049360593606936079360893609936109361193612936139361493615936169361793618936199362093621936229362393624936259362693627936289362993630936319363293633936349363593636936379363893639936409364193642936439364493645936469364793648936499365093651936529365393654936559365693657936589365993660936619366293663936649366593666936679366893669936709367193672936739367493675936769367793678936799368093681936829368393684936859368693687936889368993690936919369293693936949369593696936979369893699937009370193702937039370493705937069370793708937099371093711937129371393714937159371693717937189371993720937219372293723937249372593726937279372893729937309373193732937339373493735937369373793738937399374093741937429374393744937459374693747937489374993750937519375293753937549375593756937579375893759937609376193762937639376493765937669376793768937699377093771937729377393774937759377693777937789377993780937819378293783937849378593786937879378893789937909379193792937939379493795937969379793798937999380093801938029380393804938059380693807938089380993810938119381293813938149381593816938179381893819938209382193822938239382493825938269382793828938299383093831938329383393834938359383693837938389383993840938419384293843938449384593846938479384893849938509385193852938539385493855938569385793858938599386093861938629386393864938659386693867938689386993870938719387293873938749387593876938779387893879938809388193882938839388493885938869388793888938899389093891938929389393894938959389693897938989389993900939019390293903939049390593906939079390893909939109391193912939139391493915939169391793918939199392093921939229392393924939259392693927939289392993930939319393293933939349393593936939379393893939939409394193942939439394493945939469394793948939499395093951939529395393954939559395693957939589395993960939619396293963939649396593966939679396893969939709397193972939739397493975939769397793978939799398093981939829398393984939859398693987939889398993990939919399293993939949399593996939979399893999940009400194002940039400494005940069400794008940099401094011940129401394014940159401694017940189401994020940219402294023940249402594026940279402894029940309403194032940339403494035940369403794038940399404094041940429404394044940459404694047940489404994050940519405294053940549405594056940579405894059940609406194062940639406494065940669406794068940699407094071940729407394074940759407694077940789407994080940819408294083940849408594086940879408894089940909409194092940939409494095940969409794098940999410094101941029410394104941059410694107941089410994110941119411294113941149411594116941179411894119941209412194122941239412494125941269412794128941299413094131941329413394134941359413694137941389413994140941419414294143941449414594146941479414894149941509415194152941539415494155941569415794158941599416094161941629416394164941659416694167941689416994170941719417294173941749417594176941779417894179941809418194182941839418494185941869418794188941899419094191941929419394194941959419694197941989419994200942019420294203942049420594206942079420894209942109421194212942139421494215942169421794218942199422094221942229422394224942259422694227942289422994230942319423294233942349423594236942379423894239942409424194242942439424494245942469424794248942499425094251942529425394254942559425694257942589425994260942619426294263942649426594266942679426894269942709427194272942739427494275942769427794278942799428094281942829428394284942859428694287942889428994290942919429294293942949429594296942979429894299943009430194302943039430494305943069430794308943099431094311943129431394314943159431694317943189431994320943219432294323943249432594326943279432894329943309433194332943339433494335943369433794338943399434094341943429434394344943459434694347943489434994350943519435294353943549435594356943579435894359943609436194362943639436494365943669436794368943699437094371943729437394374943759437694377943789437994380943819438294383943849438594386943879438894389943909439194392943939439494395943969439794398943999440094401944029440394404944059440694407944089440994410944119441294413944149441594416944179441894419944209442194422944239442494425944269442794428944299443094431944329443394434944359443694437944389443994440944419444294443944449444594446944479444894449944509445194452944539445494455944569445794458944599446094461944629446394464944659446694467944689446994470944719447294473944749447594476944779447894479944809448194482944839448494485944869448794488944899449094491944929449394494944959449694497944989449994500945019450294503945049450594506945079450894509945109451194512945139451494515945169451794518945199452094521945229452394524945259452694527945289452994530945319453294533945349453594536945379453894539945409454194542945439454494545945469454794548945499455094551945529455394554945559455694557945589455994560945619456294563945649456594566945679456894569945709457194572945739457494575945769457794578945799458094581945829458394584945859458694587945889458994590945919459294593945949459594596945979459894599946009460194602946039460494605946069460794608946099461094611946129461394614946159461694617946189461994620946219462294623946249462594626946279462894629946309463194632946339463494635946369463794638946399464094641946429464394644946459464694647946489464994650946519465294653946549465594656946579465894659946609466194662946639466494665946669466794668946699467094671946729467394674946759467694677946789467994680946819468294683946849468594686946879468894689946909469194692946939469494695946969469794698946999470094701947029470394704947059470694707947089470994710947119471294713947149471594716947179471894719947209472194722947239472494725947269472794728947299473094731947329473394734947359473694737947389473994740947419474294743947449474594746947479474894749947509475194752947539475494755947569475794758947599476094761947629476394764947659476694767947689476994770947719477294773947749477594776947779477894779947809478194782947839478494785947869478794788947899479094791947929479394794947959479694797947989479994800948019480294803948049480594806948079480894809948109481194812948139481494815948169481794818948199482094821948229482394824948259482694827948289482994830948319483294833948349483594836948379483894839948409484194842948439484494845948469484794848948499485094851948529485394854948559485694857948589485994860948619486294863948649486594866948679486894869948709487194872948739487494875948769487794878948799488094881948829488394884948859488694887948889488994890948919489294893948949489594896948979489894899949009490194902949039490494905949069490794908949099491094911949129491394914949159491694917949189491994920949219492294923949249492594926949279492894929949309493194932949339493494935949369493794938949399494094941949429494394944949459494694947949489494994950949519495294953949549495594956949579495894959949609496194962949639496494965949669496794968949699497094971949729497394974949759497694977949789497994980949819498294983949849498594986949879498894989949909499194992949939499494995949969499794998949999500095001950029500395004950059500695007950089500995010950119501295013950149501595016950179501895019950209502195022950239502495025950269502795028950299503095031950329503395034950359503695037950389503995040950419504295043950449504595046950479504895049950509505195052950539505495055950569505795058950599506095061950629506395064950659506695067950689506995070950719507295073950749507595076950779507895079950809508195082950839508495085950869508795088950899509095091950929509395094950959509695097950989509995100951019510295103951049510595106951079510895109951109511195112951139511495115951169511795118951199512095121951229512395124951259512695127951289512995130951319513295133951349513595136951379513895139951409514195142951439514495145951469514795148951499515095151951529515395154951559515695157951589515995160951619516295163951649516595166951679516895169951709517195172951739517495175951769517795178951799518095181951829518395184951859518695187951889518995190951919519295193951949519595196951979519895199952009520195202952039520495205952069520795208952099521095211952129521395214952159521695217952189521995220952219522295223952249522595226952279522895229952309523195232952339523495235952369523795238952399524095241952429524395244952459524695247952489524995250952519525295253952549525595256952579525895259952609526195262952639526495265952669526795268952699527095271952729527395274952759527695277952789527995280952819528295283952849528595286952879528895289952909529195292952939529495295952969529795298952999530095301953029530395304953059530695307953089530995310953119531295313953149531595316953179531895319953209532195322953239532495325953269532795328953299533095331953329533395334953359533695337953389533995340953419534295343953449534595346953479534895349953509535195352953539535495355953569535795358953599536095361953629536395364953659536695367953689536995370953719537295373953749537595376953779537895379953809538195382953839538495385953869538795388953899539095391953929539395394953959539695397953989539995400954019540295403954049540595406954079540895409954109541195412954139541495415954169541795418954199542095421954229542395424954259542695427954289542995430954319543295433954349543595436954379543895439954409544195442954439544495445954469544795448954499545095451954529545395454954559545695457954589545995460954619546295463954649546595466954679546895469954709547195472954739547495475954769547795478954799548095481954829548395484954859548695487954889548995490954919549295493954949549595496954979549895499955009550195502955039550495505955069550795508955099551095511955129551395514955159551695517955189551995520955219552295523955249552595526955279552895529955309553195532955339553495535955369553795538955399554095541955429554395544955459554695547955489554995550955519555295553955549555595556955579555895559955609556195562955639556495565955669556795568955699557095571955729557395574955759557695577955789557995580955819558295583955849558595586955879558895589955909559195592955939559495595955969559795598955999560095601956029560395604956059560695607956089560995610956119561295613956149561595616956179561895619956209562195622956239562495625956269562795628956299563095631956329563395634956359563695637956389563995640956419564295643956449564595646956479564895649956509565195652956539565495655956569565795658956599566095661956629566395664956659566695667956689566995670956719567295673956749567595676956779567895679956809568195682956839568495685956869568795688956899569095691956929569395694956959569695697956989569995700957019570295703957049570595706957079570895709957109571195712957139571495715957169571795718957199572095721957229572395724957259572695727957289572995730957319573295733957349573595736957379573895739957409574195742957439574495745957469574795748957499575095751957529575395754957559575695757957589575995760957619576295763957649576595766957679576895769957709577195772957739577495775957769577795778957799578095781957829578395784957859578695787957889578995790957919579295793957949579595796957979579895799958009580195802958039580495805958069580795808958099581095811958129581395814958159581695817958189581995820958219582295823958249582595826958279582895829958309583195832958339583495835958369583795838958399584095841958429584395844958459584695847958489584995850958519585295853958549585595856958579585895859958609586195862958639586495865958669586795868958699587095871958729587395874958759587695877958789587995880958819588295883958849588595886958879588895889958909589195892958939589495895958969589795898958999590095901959029590395904959059590695907959089590995910959119591295913959149591595916959179591895919959209592195922959239592495925959269592795928959299593095931959329593395934959359593695937959389593995940959419594295943959449594595946959479594895949959509595195952959539595495955959569595795958959599596095961959629596395964959659596695967959689596995970959719597295973959749597595976959779597895979959809598195982959839598495985959869598795988959899599095991959929599395994959959599695997959989599996000960019600296003960049600596006960079600896009960109601196012960139601496015960169601796018960199602096021960229602396024960259602696027960289602996030960319603296033960349603596036960379603896039960409604196042960439604496045960469604796048960499605096051960529605396054960559605696057960589605996060960619606296063960649606596066960679606896069960709607196072960739607496075960769607796078960799608096081960829608396084960859608696087960889608996090960919609296093960949609596096960979609896099961009610196102961039610496105961069610796108961099611096111961129611396114961159611696117961189611996120961219612296123961249612596126961279612896129961309613196132961339613496135961369613796138961399614096141961429614396144961459614696147961489614996150961519615296153961549615596156961579615896159961609616196162961639616496165961669616796168961699617096171961729617396174961759617696177961789617996180961819618296183961849618596186961879618896189961909619196192961939619496195961969619796198961999620096201962029620396204962059620696207962089620996210962119621296213962149621596216962179621896219962209622196222962239622496225962269622796228962299623096231962329623396234962359623696237962389623996240962419624296243962449624596246962479624896249962509625196252962539625496255962569625796258962599626096261962629626396264962659626696267962689626996270962719627296273962749627596276962779627896279962809628196282962839628496285962869628796288962899629096291962929629396294962959629696297962989629996300963019630296303963049630596306963079630896309963109631196312963139631496315963169631796318963199632096321963229632396324963259632696327963289632996330963319633296333963349633596336963379633896339963409634196342963439634496345963469634796348963499635096351963529635396354963559635696357963589635996360963619636296363963649636596366963679636896369963709637196372963739637496375963769637796378963799638096381963829638396384963859638696387963889638996390963919639296393963949639596396963979639896399964009640196402964039640496405964069640796408964099641096411964129641396414964159641696417964189641996420964219642296423964249642596426964279642896429964309643196432964339643496435964369643796438964399644096441964429644396444964459644696447964489644996450964519645296453964549645596456964579645896459964609646196462964639646496465964669646796468964699647096471964729647396474964759647696477964789647996480964819648296483964849648596486964879648896489964909649196492964939649496495964969649796498964999650096501965029650396504965059650696507965089650996510965119651296513965149651596516965179651896519965209652196522965239652496525965269652796528965299653096531965329653396534965359653696537965389653996540965419654296543965449654596546965479654896549965509655196552965539655496555965569655796558965599656096561965629656396564965659656696567965689656996570965719657296573965749657596576965779657896579965809658196582965839658496585965869658796588965899659096591965929659396594965959659696597965989659996600966019660296603966049660596606966079660896609966109661196612966139661496615966169661796618966199662096621966229662396624966259662696627966289662996630966319663296633966349663596636966379663896639966409664196642966439664496645966469664796648966499665096651966529665396654966559665696657966589665996660966619666296663966649666596666966679666896669966709667196672966739667496675966769667796678966799668096681966829668396684966859668696687966889668996690966919669296693966949669596696966979669896699967009670196702967039670496705967069670796708967099671096711967129671396714967159671696717967189671996720967219672296723967249672596726967279672896729967309673196732967339673496735967369673796738967399674096741967429674396744967459674696747967489674996750967519675296753967549675596756967579675896759967609676196762967639676496765967669676796768967699677096771967729677396774967759677696777967789677996780967819678296783967849678596786967879678896789967909679196792967939679496795967969679796798967999680096801968029680396804968059680696807968089680996810968119681296813968149681596816968179681896819968209682196822968239682496825968269682796828968299683096831968329683396834968359683696837968389683996840968419684296843968449684596846968479684896849968509685196852968539685496855968569685796858968599686096861968629686396864968659686696867968689686996870968719687296873968749687596876968779687896879968809688196882968839688496885968869688796888968899689096891968929689396894968959689696897968989689996900969019690296903969049690596906969079690896909969109691196912969139691496915969169691796918969199692096921969229692396924969259692696927969289692996930969319693296933969349693596936969379693896939969409694196942969439694496945969469694796948969499695096951969529695396954969559695696957969589695996960969619696296963969649696596966969679696896969969709697196972969739697496975969769697796978969799698096981969829698396984969859698696987969889698996990969919699296993969949699596996969979699896999970009700197002970039700497005970069700797008970099701097011970129701397014970159701697017970189701997020970219702297023970249702597026970279702897029970309703197032970339703497035970369703797038970399704097041970429704397044970459704697047970489704997050970519705297053970549705597056970579705897059970609706197062970639706497065970669706797068970699707097071970729707397074970759707697077970789707997080970819708297083970849708597086970879708897089970909709197092970939709497095970969709797098970999710097101971029710397104971059710697107971089710997110971119711297113971149711597116971179711897119971209712197122971239712497125971269712797128971299713097131971329713397134971359713697137971389713997140971419714297143971449714597146971479714897149971509715197152971539715497155971569715797158971599716097161971629716397164971659716697167971689716997170971719717297173971749717597176971779717897179971809718197182971839718497185971869718797188971899719097191971929719397194971959719697197971989719997200972019720297203972049720597206972079720897209972109721197212972139721497215972169721797218972199722097221972229722397224972259722697227972289722997230972319723297233972349723597236972379723897239972409724197242972439724497245972469724797248972499725097251972529725397254972559725697257972589725997260972619726297263972649726597266972679726897269972709727197272972739727497275972769727797278972799728097281972829728397284972859728697287972889728997290972919729297293972949729597296972979729897299973009730197302973039730497305973069730797308973099731097311973129731397314973159731697317973189731997320973219732297323973249732597326973279732897329973309733197332973339733497335973369733797338973399734097341973429734397344973459734697347973489734997350973519735297353973549735597356973579735897359973609736197362973639736497365973669736797368973699737097371973729737397374973759737697377973789737997380973819738297383973849738597386973879738897389973909739197392973939739497395973969739797398973999740097401974029740397404974059740697407974089740997410974119741297413974149741597416974179741897419974209742197422974239742497425974269742797428974299743097431974329743397434974359743697437974389743997440974419744297443974449744597446974479744897449974509745197452974539745497455974569745797458974599746097461974629746397464974659746697467974689746997470974719747297473974749747597476974779747897479974809748197482974839748497485974869748797488974899749097491974929749397494974959749697497974989749997500975019750297503975049750597506975079750897509975109751197512975139751497515975169751797518975199752097521975229752397524975259752697527975289752997530975319753297533975349753597536975379753897539975409754197542975439754497545975469754797548975499755097551975529755397554975559755697557975589755997560975619756297563975649756597566975679756897569975709757197572975739757497575975769757797578975799758097581975829758397584975859758697587975889758997590975919759297593975949759597596975979759897599976009760197602976039760497605976069760797608976099761097611976129761397614976159761697617976189761997620976219762297623976249762597626976279762897629976309763197632976339763497635976369763797638976399764097641976429764397644976459764697647976489764997650976519765297653976549765597656976579765897659976609766197662976639766497665976669766797668976699767097671976729767397674976759767697677976789767997680976819768297683976849768597686976879768897689976909769197692976939769497695976969769797698976999770097701977029770397704977059770697707977089770997710977119771297713977149771597716977179771897719977209772197722977239772497725977269772797728977299773097731977329773397734977359773697737977389773997740977419774297743977449774597746977479774897749977509775197752977539775497755977569775797758977599776097761977629776397764977659776697767977689776997770977719777297773977749777597776977779777897779977809778197782977839778497785977869778797788977899779097791977929779397794977959779697797977989779997800978019780297803978049780597806978079780897809978109781197812978139781497815978169781797818978199782097821978229782397824978259782697827978289782997830978319783297833978349783597836978379783897839978409784197842978439784497845978469784797848978499785097851978529785397854978559785697857978589785997860978619786297863978649786597866978679786897869978709787197872978739787497875978769787797878978799788097881978829788397884978859788697887978889788997890978919789297893978949789597896978979789897899979009790197902979039790497905979069790797908979099791097911979129791397914979159791697917979189791997920979219792297923979249792597926979279792897929979309793197932979339793497935979369793797938979399794097941979429794397944979459794697947979489794997950979519795297953979549795597956979579795897959979609796197962979639796497965979669796797968979699797097971979729797397974979759797697977979789797997980979819798297983979849798597986979879798897989979909799197992979939799497995979969799797998979999800098001980029800398004980059800698007980089800998010980119801298013980149801598016980179801898019980209802198022980239802498025980269802798028980299803098031980329803398034980359803698037980389803998040980419804298043980449804598046980479804898049980509805198052980539805498055980569805798058980599806098061980629806398064980659806698067980689806998070980719807298073980749807598076980779807898079980809808198082980839808498085980869808798088980899809098091980929809398094980959809698097980989809998100981019810298103981049810598106981079810898109981109811198112981139811498115981169811798118981199812098121981229812398124981259812698127981289812998130981319813298133981349813598136981379813898139981409814198142981439814498145981469814798148981499815098151981529815398154981559815698157981589815998160981619816298163981649816598166981679816898169981709817198172981739817498175981769817798178981799818098181981829818398184981859818698187981889818998190981919819298193981949819598196981979819898199982009820198202982039820498205982069820798208982099821098211982129821398214982159821698217982189821998220982219822298223982249822598226982279822898229982309823198232982339823498235982369823798238982399824098241982429824398244982459824698247982489824998250982519825298253982549825598256982579825898259982609826198262982639826498265982669826798268982699827098271982729827398274982759827698277982789827998280982819828298283982849828598286982879828898289982909829198292982939829498295982969829798298982999830098301983029830398304983059830698307983089830998310983119831298313983149831598316983179831898319983209832198322983239832498325983269832798328983299833098331983329833398334983359833698337983389833998340983419834298343983449834598346983479834898349983509835198352983539835498355983569835798358983599836098361983629836398364983659836698367983689836998370983719837298373983749837598376983779837898379983809838198382983839838498385983869838798388983899839098391983929839398394983959839698397983989839998400984019840298403984049840598406984079840898409984109841198412984139841498415984169841798418984199842098421984229842398424984259842698427984289842998430984319843298433984349843598436984379843898439984409844198442984439844498445984469844798448984499845098451984529845398454984559845698457984589845998460984619846298463984649846598466984679846898469984709847198472984739847498475984769847798478984799848098481984829848398484984859848698487984889848998490984919849298493984949849598496984979849898499985009850198502985039850498505985069850798508985099851098511985129851398514985159851698517985189851998520985219852298523985249852598526985279852898529985309853198532985339853498535985369853798538985399854098541985429854398544985459854698547985489854998550985519855298553985549855598556985579855898559985609856198562985639856498565985669856798568985699857098571985729857398574985759857698577985789857998580985819858298583985849858598586985879858898589985909859198592985939859498595985969859798598985999860098601986029860398604986059860698607986089860998610986119861298613986149861598616986179861898619986209862198622986239862498625986269862798628986299863098631986329863398634986359863698637986389863998640986419864298643986449864598646986479864898649986509865198652986539865498655986569865798658986599866098661986629866398664986659866698667986689866998670986719867298673986749867598676986779867898679986809868198682986839868498685986869868798688986899869098691986929869398694986959869698697986989869998700987019870298703987049870598706987079870898709987109871198712987139871498715987169871798718987199872098721987229872398724987259872698727987289872998730987319873298733987349873598736987379873898739987409874198742987439874498745987469874798748987499875098751987529875398754987559875698757987589875998760987619876298763987649876598766987679876898769987709877198772987739877498775987769877798778987799878098781987829878398784987859878698787987889878998790987919879298793987949879598796987979879898799988009880198802988039880498805988069880798808988099881098811988129881398814988159881698817988189881998820988219882298823988249882598826988279882898829988309883198832988339883498835988369883798838988399884098841988429884398844988459884698847988489884998850988519885298853988549885598856988579885898859988609886198862988639886498865988669886798868988699887098871988729887398874988759887698877988789887998880988819888298883988849888598886988879888898889988909889198892988939889498895988969889798898988999890098901989029890398904989059890698907989089890998910989119891298913989149891598916989179891898919989209892198922989239892498925989269892798928989299893098931989329893398934989359893698937989389893998940989419894298943989449894598946989479894898949989509895198952989539895498955989569895798958989599896098961989629896398964989659896698967989689896998970989719897298973989749897598976989779897898979989809898198982989839898498985989869898798988989899899098991989929899398994989959899698997989989899999000990019900299003990049900599006990079900899009990109901199012990139901499015990169901799018990199902099021990229902399024990259902699027990289902999030990319903299033990349903599036990379903899039990409904199042990439904499045990469904799048990499905099051990529905399054990559905699057990589905999060990619906299063990649906599066990679906899069990709907199072990739907499075990769907799078990799908099081990829908399084990859908699087990889908999090990919909299093990949909599096990979909899099991009910199102991039910499105991069910799108991099911099111991129911399114991159911699117991189911999120991219912299123991249912599126991279912899129991309913199132991339913499135991369913799138991399914099141991429914399144991459914699147991489914999150991519915299153991549915599156991579915899159991609916199162991639916499165991669916799168991699917099171991729917399174991759917699177991789917999180991819918299183991849918599186991879918899189991909919199192991939919499195991969919799198991999920099201992029920399204992059920699207992089920999210992119921299213992149921599216992179921899219992209922199222992239922499225992269922799228992299923099231992329923399234992359923699237992389923999240992419924299243992449924599246992479924899249992509925199252992539925499255992569925799258992599926099261992629926399264992659926699267992689926999270992719927299273992749927599276992779927899279992809928199282992839928499285992869928799288992899929099291992929929399294992959929699297992989929999300993019930299303993049930599306993079930899309993109931199312993139931499315993169931799318993199932099321993229932399324993259932699327993289932999330993319933299333993349933599336993379933899339993409934199342993439934499345993469934799348993499935099351993529935399354993559935699357993589935999360993619936299363993649936599366993679936899369993709937199372993739937499375993769937799378993799938099381993829938399384993859938699387993889938999390993919939299393993949939599396993979939899399994009940199402994039940499405994069940799408994099941099411994129941399414994159941699417994189941999420994219942299423994249942599426994279942899429994309943199432994339943499435994369943799438994399944099441994429944399444994459944699447994489944999450994519945299453994549945599456994579945899459994609946199462994639946499465994669946799468994699947099471994729947399474994759947699477994789947999480994819948299483994849948599486994879948899489994909949199492994939949499495994969949799498994999950099501995029950399504995059950699507995089950999510995119951299513995149951599516995179951899519995209952199522995239952499525995269952799528995299953099531995329953399534995359953699537995389953999540995419954299543995449954599546995479954899549995509955199552995539955499555995569955799558995599956099561995629956399564995659956699567995689956999570995719957299573995749957599576995779957899579995809958199582995839958499585995869958799588995899959099591995929959399594995959959699597995989959999600996019960299603996049960599606996079960899609996109961199612996139961499615996169961799618996199962099621996229962399624996259962699627996289962999630996319963299633996349963599636996379963899639996409964199642996439964499645996469964799648996499965099651996529965399654996559965699657996589965999660996619966299663996649966599666996679966899669996709967199672996739967499675996769967799678996799968099681996829968399684996859968699687996889968999690996919969299693996949969599696996979969899699997009970199702997039970499705997069970799708997099971099711997129971399714997159971699717997189971999720997219972299723997249972599726997279972899729997309973199732997339973499735997369973799738997399974099741997429974399744997459974699747997489974999750997519975299753997549975599756997579975899759997609976199762997639976499765997669976799768997699977099771997729977399774997759977699777997789977999780997819978299783997849978599786997879978899789997909979199792997939979499795997969979799798997999980099801998029980399804998059980699807998089980999810998119981299813998149981599816998179981899819998209982199822998239982499825998269982799828998299983099831998329983399834998359983699837998389983999840998419984299843998449984599846998479984899849998509985199852998539985499855998569985799858998599986099861998629986399864998659986699867998689986999870998719987299873998749987599876998779987899879998809988199882998839988499885998869988799888998899989099891998929989399894998959989699897998989989999900999019990299903999049990599906999079990899909999109991199912999139991499915999169991799918999199992099921999229992399924999259992699927999289992999930999319993299933999349993599936999379993899939999409994199942999439994499945999469994799948999499995099951999529995399954999559995699957999589995999960999619996299963999649996599966999679996899969999709997199972999739997499975999769997799978999799998099981999829998399984999859998699987999889998999990999919999299993999949999599996999979999899999100000100001100002100003100004100005100006100007100008100009100010100011100012100013100014100015100016100017100018100019100020100021100022100023100024100025100026100027100028100029100030100031100032100033100034100035100036100037100038100039100040100041100042100043100044100045100046100047100048100049100050100051100052100053100054100055100056100057100058100059100060100061100062100063100064100065100066100067100068100069100070100071100072100073100074100075100076100077100078100079100080100081100082100083100084100085100086100087100088100089100090100091100092100093100094100095100096100097100098100099100100100101100102100103100104100105100106100107100108100109100110100111100112100113100114100115100116100117100118100119100120100121100122100123100124100125100126100127100128100129100130100131100132100133100134100135100136100137100138100139100140100141100142100143100144100145100146100147100148100149100150100151100152100153100154100155100156100157100158100159100160100161100162100163100164100165100166100167100168100169100170100171100172100173100174100175100176100177100178100179100180100181100182100183100184100185100186100187100188100189100190100191100192100193100194100195100196100197100198100199100200100201100202100203100204100205100206100207100208100209100210100211100212100213100214100215100216100217100218100219100220100221100222100223100224100225100226100227100228100229100230100231100232100233100234100235100236100237100238100239100240100241100242100243100244100245100246100247100248100249100250100251100252100253100254100255100256100257100258100259100260100261100262100263100264100265100266100267100268100269100270100271100272100273100274100275100276100277100278100279100280100281100282100283100284100285100286100287100288100289100290100291100292100293100294100295100296100297100298100299100300100301100302100303100304100305100306100307100308100309100310100311100312100313100314100315100316100317100318100319100320100321100322100323100324100325100326100327100328100329100330100331100332100333100334100335100336100337100338100339100340100341100342100343100344100345100346100347100348100349100350100351100352100353100354100355100356100357100358100359100360100361100362100363100364100365100366100367100368100369100370100371100372100373100374100375100376100377100378100379100380100381100382100383100384100385100386100387100388100389100390100391100392100393100394100395100396100397100398100399100400100401100402100403100404100405100406100407100408100409100410100411100412100413100414100415100416100417100418100419100420100421100422100423100424100425100426100427100428100429100430100431100432100433100434100435100436100437100438100439100440100441100442100443100444100445100446100447100448100449100450100451100452100453100454100455100456100457100458100459100460100461100462100463100464100465100466100467100468100469100470100471100472100473100474100475100476100477100478100479100480100481100482100483100484100485100486100487100488100489100490100491100492100493100494100495100496100497100498100499100500100501100502100503100504100505100506100507100508100509100510100511100512100513100514100515100516100517100518100519100520100521100522100523100524100525100526100527100528100529100530100531100532100533100534100535100536100537100538100539100540100541100542100543100544100545100546100547100548100549100550100551100552100553100554100555100556100557100558100559100560100561100562100563100564100565100566100567100568100569100570100571100572100573100574100575100576100577100578100579100580100581100582100583100584100585100586100587100588100589100590100591100592100593100594100595100596100597100598100599100600100601100602100603100604100605100606100607100608100609100610100611100612100613100614100615100616100617100618100619100620100621100622100623100624100625100626100627100628100629100630100631100632100633100634100635100636100637100638100639100640100641100642100643100644100645100646100647100648100649100650100651100652100653100654100655100656100657100658100659100660100661100662100663100664100665100666100667100668100669100670100671100672100673100674100675100676100677100678100679100680100681100682100683100684100685100686100687100688100689100690100691100692100693100694100695100696100697100698100699100700100701100702100703100704100705100706100707100708100709100710100711100712100713100714100715100716100717100718100719100720100721100722100723100724100725100726100727100728100729100730100731100732100733100734100735100736100737100738100739100740100741100742100743100744100745100746100747100748100749100750100751100752100753100754100755100756100757100758100759100760100761100762100763100764100765100766100767100768100769100770100771100772100773100774100775100776100777100778100779100780100781100782100783100784100785100786100787100788100789100790100791100792100793100794100795100796100797100798100799100800100801100802100803100804100805100806100807100808100809100810100811100812100813100814100815100816100817100818100819100820100821100822100823100824100825100826100827100828100829100830100831100832100833100834100835100836100837100838100839100840100841100842100843100844100845100846100847100848100849100850100851100852100853100854100855100856100857100858100859100860100861100862100863100864100865100866100867100868100869100870100871100872100873100874100875100876100877100878100879100880100881100882100883100884100885100886100887100888100889100890100891100892100893100894100895100896100897100898100899100900100901100902100903100904100905100906100907100908100909100910100911100912100913100914100915100916100917100918100919100920100921100922100923100924100925100926100927100928100929100930100931100932100933100934100935100936100937100938100939100940100941100942100943100944100945100946100947100948100949100950100951100952100953100954100955100956100957100958100959100960100961100962100963100964100965100966100967100968100969100970100971100972100973100974100975100976100977100978100979100980100981100982100983100984100985100986100987100988100989100990100991100992100993100994100995100996100997100998100999101000101001101002101003101004101005101006101007101008101009101010101011101012101013101014101015101016101017101018101019101020101021101022101023101024101025101026101027101028101029101030101031101032101033101034101035101036101037101038101039101040101041101042101043101044101045101046101047101048101049101050101051101052101053101054101055101056101057101058101059101060101061101062101063101064101065101066101067101068101069101070101071101072101073101074101075101076101077101078101079101080101081101082101083101084101085101086101087101088101089101090101091101092101093101094101095101096101097101098101099101100101101101102101103101104101105101106101107101108101109101110101111101112101113101114101115101116101117101118101119101120101121101122101123101124101125101126101127101128101129101130101131101132101133101134101135101136101137101138101139101140101141101142101143101144101145101146101147101148101149101150101151101152101153101154101155101156101157101158101159101160101161101162101163101164101165101166101167101168101169101170101171101172101173101174101175101176101177101178101179101180101181101182101183101184101185101186101187101188101189101190101191101192101193101194101195101196101197101198101199101200101201101202101203101204101205101206101207101208101209101210101211101212101213101214101215101216101217101218101219101220101221101222101223101224101225101226101227101228101229101230101231101232101233101234101235101236101237101238101239101240101241101242101243101244101245101246101247101248101249101250101251101252101253101254101255101256101257101258101259101260101261101262101263101264101265101266101267101268101269101270101271101272101273101274101275101276101277101278101279101280101281101282101283101284101285101286101287101288101289101290101291101292101293101294101295101296101297101298101299101300101301101302101303101304101305101306101307101308101309101310101311101312101313101314101315101316101317101318101319101320101321101322101323101324101325101326101327101328101329101330101331101332101333101334101335101336101337101338101339101340101341101342101343101344101345101346101347101348101349101350101351101352101353101354101355101356101357101358101359101360101361101362101363101364101365101366101367101368101369101370101371101372101373101374101375101376101377101378101379101380101381101382101383101384101385101386101387101388101389101390101391101392101393101394101395101396101397101398101399101400101401101402101403101404101405101406101407101408101409101410101411101412101413101414101415101416101417101418101419101420101421101422101423101424101425101426101427101428101429101430101431101432101433101434101435101436101437101438101439101440101441101442101443101444101445101446101447101448101449101450101451101452101453101454101455101456101457101458101459101460101461101462101463101464101465101466101467101468101469101470101471101472101473101474101475101476101477101478101479101480101481101482101483101484101485101486101487101488101489101490101491101492101493101494101495101496101497101498101499101500101501101502101503101504101505101506101507101508101509101510101511101512101513101514101515101516101517101518101519101520101521101522101523101524101525101526101527101528101529101530101531101532101533101534101535101536101537101538101539101540101541101542101543101544101545101546101547101548101549101550101551101552101553101554101555101556101557101558101559101560101561101562101563101564101565101566101567101568101569101570101571101572101573101574101575101576101577101578101579101580101581101582101583101584101585101586101587101588101589101590101591101592101593101594101595101596101597101598101599101600101601101602101603101604101605101606101607101608101609101610101611101612101613101614101615101616101617101618101619101620101621101622101623101624101625101626101627101628101629101630101631101632101633101634101635101636101637101638101639101640101641101642101643101644101645101646101647101648101649101650101651101652101653101654101655101656101657101658101659101660101661101662101663101664101665101666101667101668101669101670101671101672101673101674101675101676101677101678101679101680101681101682101683101684101685101686101687101688101689101690101691101692101693101694101695101696101697101698101699101700101701101702101703101704101705101706101707101708101709101710101711101712101713101714101715101716101717101718101719101720101721101722101723101724101725101726101727101728101729101730101731101732101733101734101735101736101737101738101739101740101741101742101743101744101745101746101747101748101749101750101751101752101753101754101755101756101757101758101759101760101761101762101763101764101765101766101767101768101769101770101771101772101773101774101775101776101777101778101779101780101781101782101783101784101785101786101787101788101789101790101791101792101793101794101795101796101797101798101799101800101801101802101803101804101805101806101807101808101809101810101811101812101813101814101815101816101817101818101819101820101821101822101823101824101825101826101827101828101829101830101831101832101833101834101835101836101837101838101839101840101841101842101843101844101845101846101847101848101849101850101851101852101853101854101855101856101857101858101859101860101861101862101863101864101865101866101867101868101869101870101871101872101873101874101875101876101877101878101879101880101881101882101883101884101885101886101887101888101889101890101891101892101893101894101895101896101897101898101899101900101901101902101903101904101905101906101907101908101909101910101911101912101913101914101915101916101917101918101919101920101921101922101923101924101925101926101927101928101929101930101931101932101933101934101935101936101937101938101939101940101941101942101943101944101945101946101947101948101949101950101951101952101953101954101955101956101957101958101959101960101961101962101963101964101965101966101967101968101969101970101971101972101973101974101975101976101977101978101979101980101981101982101983101984101985101986101987101988101989101990101991101992101993101994101995101996101997101998101999102000102001102002102003102004102005102006102007102008102009102010102011102012102013102014102015102016102017102018102019102020102021102022102023102024102025102026102027102028102029102030102031102032102033102034102035102036102037102038102039102040102041102042102043102044102045102046102047102048102049102050102051102052102053102054102055102056102057102058102059102060102061102062102063102064102065102066102067102068102069102070102071102072102073102074102075102076102077102078102079102080102081102082102083102084102085102086102087102088102089102090102091102092102093102094102095102096102097102098102099102100102101102102102103102104102105102106102107102108102109102110102111102112102113102114102115102116102117102118102119102120102121102122102123102124102125102126102127102128102129102130102131102132102133102134102135102136102137102138102139102140102141102142102143102144102145102146102147102148102149102150102151102152102153102154102155102156102157102158102159102160102161102162102163102164102165102166102167102168102169102170102171102172102173102174102175102176102177102178102179102180102181102182102183102184102185102186102187102188102189102190102191102192102193102194102195102196102197102198102199102200102201102202102203102204102205102206102207102208102209102210102211102212102213102214102215102216102217102218102219102220102221102222102223102224102225102226102227102228102229102230102231102232102233102234102235102236102237102238102239102240102241102242102243102244102245102246102247102248102249102250102251102252102253102254102255102256102257102258102259102260102261102262102263102264102265102266102267102268102269102270102271102272102273102274102275102276102277102278102279102280102281102282102283102284102285102286102287102288102289102290102291102292102293102294102295102296102297102298102299102300102301102302102303102304102305102306102307102308102309102310102311102312102313102314102315102316102317102318102319102320102321102322102323102324102325102326102327102328102329102330102331102332102333102334102335102336102337102338102339102340102341102342102343102344102345102346102347102348102349102350102351102352102353102354102355102356102357102358102359102360102361102362102363102364102365102366102367102368102369102370102371102372102373102374102375102376102377102378102379102380102381102382102383102384102385102386102387102388102389102390102391102392102393102394102395102396102397102398102399102400102401102402102403102404102405102406102407102408102409102410102411102412102413102414102415102416102417102418102419102420102421102422102423102424102425102426102427102428102429102430102431102432102433102434102435102436102437102438102439102440102441102442102443102444102445102446102447102448102449102450102451102452102453102454102455102456102457102458102459102460102461102462102463102464102465102466102467102468102469102470102471102472102473102474102475102476102477102478102479102480102481102482102483102484102485102486102487102488102489102490102491102492102493102494102495102496102497102498102499102500102501102502102503102504102505102506102507102508102509102510102511102512102513102514102515102516102517102518102519102520102521102522102523102524102525102526102527102528102529102530102531102532102533102534102535102536102537102538102539102540102541102542102543102544102545102546102547102548102549102550102551102552102553102554102555102556102557102558102559102560102561102562102563102564102565102566102567102568102569102570102571102572102573102574102575102576102577102578102579102580102581102582102583102584102585102586102587102588102589102590102591102592102593102594102595102596102597102598102599102600102601102602102603102604102605102606102607102608102609102610102611102612102613102614102615102616102617102618102619102620102621102622102623102624102625102626102627102628102629102630102631102632102633102634102635102636102637102638102639102640102641102642102643102644102645102646102647102648102649102650102651102652102653102654102655102656102657102658102659102660102661102662102663102664102665102666102667102668102669102670102671102672102673102674102675102676102677102678102679102680102681102682102683102684102685102686102687102688102689102690102691102692102693102694102695102696102697102698102699102700102701102702102703102704102705102706102707102708102709102710102711102712102713102714102715102716102717102718102719102720102721102722102723102724102725102726102727102728102729102730102731102732102733102734102735102736102737102738102739102740102741102742102743102744102745102746102747102748102749102750102751102752102753102754102755102756102757102758102759102760102761102762102763102764102765102766102767102768102769102770102771102772102773102774102775102776102777102778102779102780102781102782102783102784102785102786102787102788102789102790102791102792102793102794102795102796102797102798102799102800102801102802102803102804102805102806102807102808102809102810102811102812102813102814102815102816102817102818102819102820102821102822102823102824102825102826102827102828102829102830102831102832102833102834102835102836102837102838102839102840102841102842102843102844102845102846102847102848102849102850102851102852102853102854102855102856102857102858102859102860102861102862102863102864102865102866102867102868102869102870102871102872102873102874102875102876102877102878102879102880102881102882102883102884102885102886102887102888102889102890102891102892102893102894102895102896102897102898102899102900102901102902102903102904102905102906102907102908102909102910102911102912102913102914102915102916102917102918102919102920102921102922102923102924102925102926102927102928102929102930102931102932102933102934102935102936102937102938102939102940102941102942102943102944102945102946102947102948102949102950102951102952102953102954102955102956102957102958102959102960102961102962102963102964102965102966102967102968102969102970102971102972102973102974102975102976102977102978102979102980102981102982102983102984102985102986102987102988102989102990102991102992102993102994102995102996102997102998102999103000103001103002103003103004103005103006103007103008103009103010103011103012103013103014103015103016103017103018103019103020103021103022103023103024103025103026103027103028103029103030103031103032103033103034103035103036103037103038103039103040103041103042103043103044103045103046103047103048103049103050103051103052103053103054103055103056103057103058103059103060103061103062103063103064103065103066103067103068103069103070103071103072103073103074103075103076103077103078103079103080103081103082103083103084103085103086103087103088103089103090103091103092103093103094103095103096103097103098103099103100103101103102103103103104103105103106103107103108103109103110103111103112103113103114103115103116103117103118103119103120103121103122103123103124103125103126103127103128103129103130103131103132103133103134103135103136103137103138103139103140103141103142103143103144103145103146103147103148103149103150103151103152103153103154103155103156103157103158103159103160103161103162103163103164103165103166103167103168103169103170103171103172103173103174103175103176103177103178103179103180103181103182103183103184103185103186103187103188103189103190103191103192103193103194103195103196103197103198103199103200103201103202103203103204103205103206103207103208103209103210103211103212103213103214103215103216103217103218103219103220103221103222103223103224103225103226103227103228103229103230103231103232103233103234103235103236103237103238103239103240103241103242103243103244103245103246103247103248103249103250103251103252103253103254103255103256103257103258103259103260103261103262103263103264103265103266103267103268103269103270103271103272103273103274103275103276103277103278103279103280103281103282103283103284103285103286103287103288103289103290103291103292103293103294103295103296103297103298103299103300103301103302103303103304103305103306103307103308103309103310103311103312103313103314103315103316103317103318103319103320103321103322103323103324103325103326103327103328103329103330103331103332103333103334103335103336103337103338103339103340103341103342103343103344103345103346103347103348103349103350103351103352103353103354103355103356103357103358103359103360103361103362103363103364103365103366103367103368103369103370103371103372103373103374103375103376103377103378103379103380103381103382103383103384103385103386103387103388103389103390103391103392103393103394103395103396103397103398103399103400103401103402103403103404103405103406103407103408103409103410103411103412103413103414103415103416103417103418103419103420103421103422103423103424103425103426103427103428103429103430103431103432103433103434103435103436103437103438103439103440103441103442103443103444103445103446103447103448103449103450103451103452103453103454103455103456103457103458103459103460103461103462103463103464103465103466103467103468103469103470103471103472103473103474103475103476103477103478103479103480103481103482103483103484103485103486103487103488103489103490103491103492103493103494103495103496103497103498103499103500103501103502103503103504103505103506103507103508103509103510103511103512103513103514103515103516103517103518103519103520103521103522103523103524103525103526103527103528103529103530103531103532103533103534103535103536103537103538103539103540103541103542103543103544103545103546103547103548103549103550103551103552103553103554103555103556103557103558103559103560103561103562103563103564103565103566103567103568103569103570103571103572103573103574103575103576103577103578103579103580103581103582103583103584103585103586103587103588103589103590103591103592103593103594103595103596103597103598103599103600103601103602103603103604103605103606103607103608103609103610103611103612103613103614103615103616103617103618103619103620103621103622103623103624103625103626103627103628103629103630103631103632103633103634103635103636103637103638103639103640103641103642103643103644103645103646103647103648103649103650103651103652103653103654103655103656103657103658103659103660103661103662103663103664103665103666103667103668103669103670103671103672103673103674103675103676103677103678103679103680103681103682103683103684103685103686103687103688103689103690103691103692103693103694103695103696103697103698103699103700103701103702103703103704103705103706103707103708103709103710103711103712103713103714103715103716103717103718103719103720103721103722103723103724103725103726103727103728103729103730103731103732103733103734103735103736103737103738103739103740103741103742103743103744103745103746103747103748103749103750103751103752103753103754103755103756103757103758103759103760103761103762103763103764103765103766103767103768103769103770103771103772103773103774103775103776103777103778103779103780103781103782103783103784103785103786103787103788103789103790103791103792103793103794103795103796103797103798103799103800103801103802103803103804103805103806103807103808103809103810103811103812103813103814103815103816103817103818103819103820103821103822103823103824103825103826103827103828103829103830103831103832103833103834103835103836103837103838103839103840103841103842103843103844103845103846103847103848103849103850103851103852103853103854103855103856103857103858103859103860103861103862103863103864103865103866103867103868103869103870103871103872103873103874103875103876103877103878103879103880103881103882103883103884103885103886103887103888103889103890103891103892103893103894103895103896103897103898103899103900103901103902103903103904103905103906103907103908103909103910103911103912103913103914103915103916103917103918103919103920103921103922103923103924103925103926103927103928103929103930103931103932103933103934103935103936103937103938103939103940103941103942103943103944103945103946103947103948103949103950103951103952103953103954103955103956103957103958103959103960103961103962103963103964103965103966103967103968103969103970103971103972103973103974103975103976103977103978103979103980103981103982103983103984103985103986103987103988103989103990103991103992103993103994103995103996103997103998103999104000104001104002104003104004104005104006104007104008104009104010104011104012104013104014104015104016104017104018104019104020104021104022104023104024104025104026104027104028104029104030104031104032104033104034104035104036104037104038104039104040104041104042104043104044104045104046104047104048104049104050104051104052104053104054104055104056104057104058104059104060104061104062104063104064104065104066104067104068104069104070104071104072104073104074104075104076104077104078104079104080104081104082104083104084104085104086104087104088104089104090104091104092104093104094104095104096104097104098104099104100104101104102104103104104104105104106104107104108104109104110104111104112104113104114104115104116104117104118104119104120104121104122104123104124104125104126104127104128104129104130104131104132104133104134104135104136104137104138104139104140104141104142104143104144104145104146104147104148104149104150104151104152104153104154104155104156104157104158104159104160104161104162104163104164104165104166104167104168104169104170104171104172104173104174104175104176104177104178104179104180104181104182104183104184104185104186104187104188104189104190104191104192104193104194104195104196104197104198104199104200104201104202104203104204104205104206104207104208104209104210104211104212104213104214104215104216104217104218104219104220104221104222104223104224104225104226104227104228104229104230104231104232104233104234104235104236104237104238104239104240104241104242104243104244104245104246104247104248104249104250104251104252104253104254104255104256104257104258104259104260104261104262104263104264104265104266104267104268104269104270104271104272104273104274104275104276104277104278104279104280104281104282104283104284104285104286104287104288104289104290104291104292104293104294104295104296104297104298104299104300104301104302104303104304104305104306104307104308104309104310104311104312104313104314104315104316104317104318104319104320104321104322104323104324104325104326104327104328104329104330104331104332104333104334104335104336104337104338104339104340104341104342104343104344104345104346104347104348104349104350104351104352104353104354104355104356104357104358104359104360104361104362104363104364104365104366104367104368104369104370104371104372104373104374104375104376104377104378104379104380104381104382104383104384104385104386104387104388104389104390104391104392104393104394104395104396104397104398104399104400104401104402104403104404104405104406104407104408104409104410104411104412104413104414104415104416104417104418104419104420104421104422104423104424104425104426104427104428104429104430104431104432104433104434104435104436104437104438104439104440104441104442104443104444104445104446104447104448104449104450104451104452104453104454104455104456104457104458104459104460104461104462104463104464104465104466104467104468104469104470104471104472104473104474104475104476104477104478104479104480104481104482104483104484104485104486104487104488104489104490104491104492104493104494104495104496104497104498104499104500104501104502104503104504104505104506104507104508104509104510104511104512104513104514104515104516104517104518104519104520104521104522104523104524104525104526104527104528104529104530104531104532104533104534104535104536104537104538104539104540104541104542104543104544104545104546104547104548104549104550104551104552104553104554104555104556104557104558104559104560104561104562104563104564104565104566104567104568104569104570104571104572104573104574104575104576104577104578104579104580104581104582104583104584104585104586104587104588104589104590104591104592104593104594104595104596104597104598104599104600104601104602104603104604104605104606104607104608104609104610104611104612104613104614104615104616104617104618104619104620104621104622104623104624104625104626104627104628104629104630104631104632104633104634104635104636104637104638104639104640104641104642104643104644104645104646104647104648104649104650104651104652104653104654104655104656104657104658104659104660104661104662104663104664104665104666104667104668104669104670104671104672104673104674104675104676104677104678104679104680104681104682104683104684104685104686104687104688104689104690104691104692104693104694104695104696104697104698104699104700104701104702104703104704104705104706104707104708104709104710104711104712104713104714104715104716104717104718104719104720104721104722104723104724104725104726104727104728104729104730104731104732104733104734104735104736104737104738104739104740104741104742104743104744104745104746104747104748104749104750104751104752104753104754104755104756104757104758104759104760104761104762104763104764104765104766104767104768104769104770104771104772104773104774104775104776104777104778104779104780104781104782104783104784104785104786104787104788104789104790104791104792104793104794104795104796104797104798104799104800104801104802104803104804104805104806104807104808104809104810104811104812104813104814104815104816104817104818104819104820104821104822104823104824104825104826104827104828104829104830104831104832104833104834104835104836104837104838104839104840104841104842104843104844104845104846104847104848104849104850104851104852104853104854104855104856104857104858104859104860104861104862104863104864104865104866104867104868104869104870104871104872104873104874104875104876104877104878104879104880104881104882104883104884104885104886104887104888104889104890104891104892104893104894104895104896104897104898104899104900104901104902104903104904104905104906104907104908104909104910104911104912104913104914104915104916104917104918104919104920104921104922104923104924104925104926104927104928104929104930104931104932104933104934104935104936104937104938104939104940104941104942104943104944104945104946104947104948104949104950104951104952104953104954104955104956104957104958104959104960104961104962104963104964104965104966104967104968104969104970104971104972104973104974104975104976104977104978104979104980104981104982104983104984104985104986104987104988104989104990104991104992104993104994104995104996104997104998104999105000105001105002105003105004105005105006105007105008105009105010105011105012105013105014105015105016105017105018105019105020105021105022105023105024105025105026105027105028105029105030105031105032105033105034105035105036105037105038105039105040105041105042105043105044105045105046105047105048105049105050105051105052105053105054105055105056105057105058105059105060105061105062105063105064105065105066105067105068105069105070105071105072105073105074105075105076105077105078105079105080105081105082105083105084105085105086105087105088105089105090105091105092105093105094105095105096105097105098105099105100105101105102105103105104105105105106105107105108105109105110105111105112105113105114105115105116105117105118105119105120105121105122105123105124105125105126105127105128105129105130105131105132105133105134105135105136105137105138105139105140105141105142105143105144105145105146105147105148105149105150105151105152105153105154105155105156105157105158105159105160105161105162105163105164105165105166105167105168105169105170105171105172105173105174105175105176105177105178105179105180105181105182105183105184105185105186105187105188105189105190105191105192105193105194105195105196105197105198105199105200105201105202105203105204105205105206105207105208105209105210105211105212105213105214105215105216105217105218105219105220105221105222105223105224105225105226105227105228105229105230105231105232105233105234105235105236105237105238105239105240105241105242105243105244105245105246105247105248105249105250105251105252105253105254105255105256105257105258105259105260105261105262105263105264105265105266105267105268105269105270105271105272105273105274105275105276105277105278105279105280105281105282105283105284105285105286105287105288105289105290105291105292105293105294105295105296105297105298105299105300105301105302105303105304105305105306105307105308105309105310105311105312105313105314105315105316105317105318105319105320105321105322105323105324105325105326105327105328105329105330105331105332105333105334105335105336105337105338105339105340105341105342105343105344105345105346105347105348105349105350105351105352105353105354105355105356105357105358105359105360105361105362105363105364105365105366105367105368105369105370105371105372105373105374105375105376105377105378105379105380105381105382105383105384105385105386105387105388105389105390105391105392105393105394105395105396105397105398105399105400105401105402105403105404105405105406105407105408105409105410105411105412105413105414105415105416105417105418105419105420105421105422105423105424105425105426105427105428105429105430105431105432105433105434105435105436105437105438105439105440105441105442105443105444105445105446105447105448105449105450105451105452105453105454105455105456105457105458105459105460105461105462105463105464105465105466105467105468105469105470105471105472105473105474105475105476105477105478105479105480105481105482105483105484105485105486105487105488105489105490105491105492105493105494105495105496105497105498105499105500105501105502105503105504105505105506105507105508105509105510105511105512105513105514105515105516105517105518105519105520105521105522105523105524105525105526105527105528105529105530105531105532105533105534105535105536105537105538105539105540105541105542105543105544105545105546105547105548105549105550105551105552105553105554105555105556105557105558105559105560105561105562105563105564105565105566105567105568105569105570105571105572105573105574105575105576105577105578105579105580105581105582105583105584105585105586105587105588105589105590105591105592105593105594105595105596105597105598105599105600105601105602105603105604105605105606105607105608105609105610105611105612105613105614105615105616105617105618105619105620105621105622105623105624105625105626105627105628105629105630105631105632105633105634105635105636105637105638105639105640105641105642105643105644105645105646105647105648105649105650105651105652105653105654105655105656105657105658105659105660105661105662105663105664105665105666105667105668105669105670105671105672105673105674105675105676105677105678105679105680105681105682105683105684105685105686105687105688105689105690105691105692105693105694105695105696105697105698105699105700105701105702105703105704105705105706105707105708105709105710105711105712105713105714105715105716105717105718105719105720105721105722105723105724105725105726105727105728105729105730105731105732105733105734105735105736105737105738105739105740105741105742105743105744105745105746105747105748105749105750105751105752105753105754105755105756105757105758105759105760105761105762105763105764105765105766105767105768105769105770105771105772105773105774105775105776105777105778105779105780105781105782105783105784105785105786105787105788105789105790105791105792105793105794105795105796105797105798105799105800105801105802105803105804105805105806105807105808105809105810105811105812105813105814105815105816105817105818105819105820105821105822105823105824105825105826105827105828105829105830105831105832105833105834105835105836105837105838105839105840105841105842105843105844105845105846105847105848105849105850105851105852105853105854105855105856105857105858105859105860105861105862105863105864105865105866105867105868105869105870105871105872105873105874105875105876105877105878105879105880105881105882105883105884105885105886105887105888105889105890105891105892105893105894105895105896105897105898105899105900105901105902105903105904105905105906105907105908105909105910105911105912105913105914105915105916105917105918105919105920105921105922105923105924105925105926105927105928105929105930105931105932105933105934105935105936105937105938105939105940105941105942105943105944105945105946105947105948105949105950105951105952105953105954105955105956105957105958105959105960105961105962105963105964105965105966105967105968105969105970105971105972105973105974105975105976105977105978105979105980105981105982105983105984105985105986105987105988105989105990105991105992105993105994105995105996105997105998105999106000106001106002106003106004106005106006106007106008106009106010106011106012106013106014106015106016106017106018106019106020106021106022106023106024106025106026106027106028106029106030106031106032106033106034106035106036106037106038106039106040106041106042106043106044106045106046106047106048106049106050106051106052106053106054106055106056106057106058106059106060106061106062106063106064106065106066106067106068106069106070106071106072106073106074106075106076106077106078106079106080106081106082106083106084106085106086106087106088106089106090106091106092106093106094106095106096106097106098106099106100106101106102106103106104106105106106106107106108106109106110106111106112106113106114106115106116106117106118106119106120106121106122106123106124106125106126106127106128106129106130106131106132106133106134106135106136106137106138106139106140106141106142106143106144106145106146106147106148106149106150106151106152106153106154106155106156106157106158106159106160106161106162106163106164106165106166106167106168106169106170106171106172106173106174106175106176106177106178106179106180106181106182106183106184106185106186106187106188106189106190106191106192106193106194106195106196106197106198106199106200106201106202106203106204106205106206106207106208106209106210106211106212106213106214106215106216106217106218106219106220106221106222106223106224106225106226106227106228106229106230106231106232106233106234106235106236106237106238106239106240106241106242106243106244106245106246106247106248106249106250106251106252106253106254106255106256106257106258106259106260106261106262106263106264106265106266106267106268106269106270106271106272106273106274106275106276106277106278106279106280106281106282106283106284106285106286106287106288106289106290106291106292106293106294106295106296106297106298106299106300106301106302106303106304106305106306106307106308106309106310106311106312106313106314106315106316106317106318106319106320106321106322106323106324106325106326106327106328106329106330106331106332106333106334106335106336106337106338106339106340106341106342106343106344106345106346106347106348106349106350106351106352106353106354106355106356106357106358106359106360106361106362106363106364106365106366106367106368106369106370106371106372106373106374106375106376106377106378106379106380106381106382106383106384106385106386106387106388106389106390106391106392106393106394106395106396106397106398106399106400106401106402106403106404106405106406106407106408106409106410106411106412106413106414106415106416106417106418106419106420106421106422106423106424106425106426106427106428106429106430106431106432106433106434106435106436106437106438106439106440106441106442106443106444106445106446106447106448106449106450106451106452106453106454106455106456106457106458106459106460106461106462106463106464106465106466106467106468106469106470106471106472106473106474106475106476106477106478106479106480106481106482106483106484106485106486106487106488106489106490106491106492106493106494106495106496106497106498106499106500106501106502106503106504106505106506106507106508106509106510106511106512106513106514106515106516106517106518106519106520106521106522106523106524106525106526106527106528106529106530106531106532106533106534106535106536106537106538106539106540106541106542106543106544106545106546106547106548106549106550106551106552106553106554106555106556106557106558106559106560106561106562106563106564106565106566106567106568106569106570106571106572106573106574106575106576106577106578106579106580106581106582106583106584106585106586106587106588106589106590106591106592106593106594106595106596106597106598106599106600106601106602106603106604106605106606106607106608106609106610106611106612106613106614106615106616106617106618106619106620106621106622106623106624106625106626106627106628106629106630106631106632106633106634106635106636106637106638106639106640106641106642106643106644106645106646106647106648106649106650106651106652106653106654106655106656106657106658106659106660106661106662106663106664106665106666106667106668106669106670106671106672106673106674106675106676106677106678106679106680106681106682106683106684106685106686106687106688106689106690106691106692106693106694106695106696106697106698106699106700106701106702106703106704106705106706106707106708106709106710106711106712106713106714106715106716106717106718106719106720106721106722106723106724106725106726106727106728106729106730106731106732106733106734106735106736106737106738106739106740106741106742106743106744106745106746106747106748106749106750106751106752106753106754106755106756106757106758106759106760106761106762106763106764106765106766106767106768106769106770106771106772106773106774106775106776106777106778106779106780106781106782106783106784106785106786106787106788106789106790106791106792106793106794106795106796106797106798106799106800106801106802106803106804106805106806106807106808106809106810106811106812106813106814106815106816106817106818106819106820106821106822106823106824106825106826106827106828106829106830106831106832106833106834106835106836106837106838106839106840106841106842106843106844106845106846106847106848106849106850106851106852106853106854106855106856106857106858106859106860106861106862106863106864106865106866106867106868106869106870106871106872106873106874106875106876106877106878106879106880106881106882106883106884106885106886106887106888106889106890106891106892106893106894106895106896106897106898106899106900106901106902106903106904106905106906106907106908106909106910106911106912106913106914106915106916106917106918106919106920106921106922106923106924106925106926106927106928106929106930106931106932106933106934106935106936106937106938106939106940106941106942106943106944106945106946106947106948106949106950106951106952106953106954106955106956106957106958106959106960106961106962106963106964106965106966106967106968106969106970106971106972106973106974106975106976106977106978106979106980106981106982106983106984106985106986106987106988106989106990106991106992106993106994106995106996106997106998106999107000107001107002107003107004107005107006107007107008107009107010107011107012107013107014107015107016107017107018107019107020107021107022107023107024107025107026107027107028107029107030107031107032107033107034107035107036107037107038107039107040107041107042107043107044107045107046107047107048107049107050107051107052107053107054107055107056107057107058107059107060107061107062107063107064107065107066107067107068107069107070107071107072107073107074107075107076107077107078107079107080107081107082107083107084107085107086107087107088107089107090107091107092107093107094107095107096107097107098107099107100107101107102107103107104107105107106107107107108107109107110107111107112107113107114107115107116107117107118107119107120107121107122107123107124107125107126107127107128107129107130107131107132107133107134107135107136107137107138107139107140107141107142107143107144107145107146107147107148107149107150107151107152107153107154107155107156107157107158107159107160107161107162107163107164107165107166107167107168107169107170107171107172107173107174107175107176107177107178107179107180107181107182107183107184107185107186107187107188107189107190107191107192107193107194107195107196107197107198107199107200107201107202107203107204107205107206107207107208107209107210107211107212107213107214107215107216107217107218107219107220107221107222107223107224107225107226107227107228107229107230107231107232107233107234107235107236107237107238107239107240107241107242107243107244107245107246107247107248107249107250107251107252107253107254107255107256107257107258107259107260107261107262107263107264107265107266107267107268107269107270107271107272107273107274107275107276107277107278107279107280107281107282107283107284107285107286107287107288107289107290107291107292107293107294107295107296107297107298107299107300107301107302107303107304107305107306107307107308107309107310107311107312107313107314107315107316107317107318107319107320107321107322107323107324107325107326107327107328107329107330107331107332107333107334107335107336107337107338107339107340107341107342107343107344107345107346107347107348107349107350107351107352107353107354107355107356107357107358107359107360107361107362107363107364107365107366107367107368107369107370107371107372107373107374107375107376107377107378107379107380107381107382107383107384107385107386107387107388107389107390107391107392107393107394107395107396107397107398107399107400107401107402107403107404107405107406107407107408107409107410107411107412107413107414107415107416107417107418107419107420107421107422107423107424107425107426107427107428107429107430107431107432107433107434107435107436107437107438107439107440107441107442107443107444107445107446107447107448107449107450107451107452107453107454107455107456107457107458107459107460107461107462107463107464107465107466107467107468107469107470107471107472107473107474107475107476107477107478107479107480107481107482107483107484107485107486107487107488107489107490107491107492107493107494107495107496107497107498107499107500107501107502107503107504107505107506107507107508107509107510107511107512107513107514107515107516107517107518107519107520107521107522107523107524107525107526107527107528107529107530107531107532107533107534107535107536107537107538107539107540107541107542107543107544107545107546107547107548107549107550107551107552107553107554107555107556107557107558107559107560107561107562107563107564107565107566107567107568107569107570107571107572107573107574107575107576107577107578107579107580107581107582107583107584107585107586107587107588107589107590107591107592107593107594107595107596107597107598107599107600107601107602107603107604107605107606107607107608107609107610107611107612107613107614107615107616107617107618107619107620107621107622107623107624107625107626107627107628107629107630107631107632107633107634107635107636107637107638107639107640107641107642107643107644107645107646107647107648107649107650107651107652107653107654107655107656107657107658107659107660107661107662107663107664107665107666107667107668107669107670107671107672107673107674107675107676107677107678107679107680107681107682107683107684107685107686107687107688107689107690107691107692107693107694107695107696107697107698107699107700107701107702107703107704107705107706107707107708107709107710107711107712107713107714107715107716107717107718107719107720107721107722107723107724107725107726107727107728107729107730107731107732107733107734107735107736107737107738107739107740107741107742107743107744107745107746107747107748107749107750107751107752107753107754107755107756107757107758107759107760107761107762107763107764107765107766107767107768107769107770107771107772107773107774107775107776107777107778107779107780107781107782107783107784107785107786107787107788107789107790107791107792107793107794107795107796107797107798107799107800107801107802107803107804107805107806107807107808107809107810107811107812107813107814107815107816107817107818107819107820107821107822107823107824107825107826107827107828107829107830107831107832107833107834107835107836107837107838107839107840107841107842107843107844107845107846107847107848107849107850107851107852107853107854107855107856107857107858107859107860107861107862107863107864107865107866107867107868107869107870107871107872107873107874107875107876107877107878107879107880107881107882107883107884107885107886107887107888107889107890107891107892107893107894107895107896107897107898107899107900107901107902107903107904107905107906107907107908107909107910107911107912107913107914107915107916107917107918107919107920107921107922107923107924107925107926107927107928107929107930107931107932107933107934107935107936107937107938107939107940107941107942107943107944107945107946107947107948107949107950107951107952107953107954107955107956107957107958107959107960107961107962107963107964107965107966107967107968107969107970107971107972107973107974107975107976107977107978107979107980107981107982107983107984107985107986107987107988107989107990107991107992107993107994107995107996107997107998107999108000108001108002108003108004108005108006108007108008108009108010108011108012108013108014108015108016108017108018108019108020108021108022108023108024108025108026108027108028108029108030108031108032108033108034108035108036108037108038108039108040108041108042108043108044108045108046108047108048108049108050108051108052108053108054108055108056108057108058108059108060108061108062108063108064108065108066108067108068108069108070108071108072108073108074108075108076108077108078108079108080108081108082108083108084108085108086108087108088108089108090108091108092108093108094108095108096108097108098108099108100108101108102108103108104108105108106108107108108108109108110108111108112108113108114108115108116108117108118108119108120108121108122108123108124108125108126108127108128108129108130108131108132108133108134108135108136108137108138108139108140108141108142108143108144108145108146108147108148108149108150108151108152108153108154108155108156108157108158108159108160108161108162108163108164108165108166108167108168108169108170108171108172108173108174108175108176108177108178108179108180108181108182108183108184108185108186108187108188108189108190108191108192108193108194108195108196108197108198108199108200108201108202108203108204108205108206108207108208108209108210108211108212108213108214108215108216108217108218108219108220108221108222108223108224108225108226108227108228108229108230108231108232108233108234108235108236108237108238108239108240108241108242108243108244108245108246108247108248108249108250108251108252108253108254108255108256108257108258108259108260108261108262108263108264108265108266108267108268108269108270108271108272108273108274108275108276108277108278108279108280108281108282108283108284108285108286108287108288108289108290108291108292108293108294108295108296108297108298108299108300108301108302108303108304108305108306108307108308108309108310108311108312108313108314108315108316108317108318108319108320108321108322108323108324108325108326108327108328108329108330108331108332108333108334108335108336108337108338108339108340108341108342108343108344108345108346108347108348108349108350108351108352108353108354108355108356108357108358108359108360108361108362108363108364108365108366108367108368108369108370108371108372108373108374108375108376108377108378108379108380108381108382108383108384108385108386108387108388108389108390108391108392108393108394108395108396108397108398108399108400108401108402108403108404108405108406108407108408108409108410108411108412108413108414108415108416108417108418108419108420108421108422108423108424108425108426108427108428108429108430108431108432108433108434108435108436108437108438108439108440108441108442108443108444108445108446108447108448108449108450108451108452108453108454108455108456108457108458108459108460108461108462108463108464108465108466108467108468108469108470108471108472108473108474108475108476108477108478108479108480108481108482108483108484108485108486108487108488108489108490108491108492108493108494108495108496108497108498108499108500108501108502108503108504108505108506108507108508108509108510108511108512108513108514108515108516108517108518108519108520108521108522108523108524108525108526108527108528108529108530108531108532108533108534108535108536108537108538108539108540108541108542108543108544108545108546108547108548108549108550108551108552108553108554108555108556108557108558108559108560108561108562108563108564108565108566108567108568108569108570108571108572108573108574108575108576108577108578108579108580108581108582108583108584108585108586108587108588108589108590108591108592108593108594108595108596108597108598108599108600108601108602108603108604108605108606108607108608108609108610108611108612108613108614108615108616108617108618108619108620108621108622108623108624108625108626108627108628108629108630108631108632108633108634108635108636108637108638108639108640108641108642108643108644108645108646108647108648108649108650108651108652108653108654108655108656108657108658108659108660108661108662108663108664108665108666108667108668108669108670108671108672108673108674108675108676108677108678108679108680108681108682108683108684108685108686108687108688108689108690108691108692108693108694108695108696108697108698108699108700108701108702108703108704108705108706108707108708108709108710108711108712108713108714108715108716108717108718108719108720108721108722108723108724108725108726108727108728108729108730108731108732108733108734108735108736108737108738108739108740108741108742108743108744108745108746108747108748108749108750108751108752108753108754108755108756108757108758108759108760108761108762108763108764108765108766108767108768108769108770108771108772108773108774108775108776108777108778108779108780108781108782108783108784108785108786108787108788108789108790108791108792108793108794108795108796108797108798108799108800108801108802108803108804108805108806108807108808108809108810108811108812108813108814108815108816108817108818108819108820108821108822108823108824108825108826108827108828108829108830108831108832108833108834108835108836108837108838108839108840108841108842108843108844108845108846108847108848108849108850108851108852108853108854108855108856108857108858108859108860108861108862108863108864108865108866108867108868108869108870108871108872108873108874108875108876108877108878108879108880108881108882108883108884108885108886108887108888108889108890108891108892108893108894108895108896108897108898108899108900108901108902108903108904108905108906108907108908108909108910108911108912108913108914108915108916108917108918108919108920108921108922108923108924108925108926108927108928108929108930108931108932108933108934108935108936108937108938108939108940108941108942108943108944108945108946108947108948108949108950108951108952108953108954108955108956108957108958108959108960108961108962108963108964108965108966108967108968108969108970108971108972108973108974108975108976108977108978108979108980108981108982108983108984108985108986108987108988108989108990108991108992108993108994108995108996108997108998108999109000109001109002109003109004109005109006109007109008109009109010109011109012109013109014109015109016109017109018109019109020109021109022109023109024109025109026109027109028109029109030109031109032109033109034109035109036109037109038109039109040109041109042109043109044109045109046109047109048109049109050109051109052109053109054109055109056109057109058109059109060109061109062109063109064109065109066109067109068109069109070109071109072109073109074109075109076109077109078109079109080109081109082109083109084109085109086109087109088109089109090109091109092109093109094109095109096109097109098109099109100109101109102109103109104109105109106109107109108109109109110109111109112109113109114109115109116109117109118109119109120109121109122109123109124109125109126109127109128109129109130109131109132109133109134109135109136109137109138109139109140109141109142109143109144109145109146109147109148109149109150109151109152109153109154109155109156109157109158109159109160109161109162109163109164109165109166109167109168109169109170109171109172109173109174109175109176109177109178109179109180109181109182109183109184109185109186109187109188109189109190109191109192109193109194109195109196109197109198109199109200109201109202109203109204109205109206109207109208109209109210109211109212109213109214109215109216109217109218109219109220109221109222109223109224109225109226109227109228109229109230109231109232109233109234109235109236109237109238109239109240109241109242109243109244109245109246109247109248109249109250109251109252109253109254109255109256109257109258109259109260109261109262109263109264109265109266109267109268109269109270109271109272109273109274109275109276109277109278109279109280109281109282109283109284109285109286109287109288109289109290109291109292109293109294109295109296109297109298109299109300109301109302109303109304109305109306109307109308109309109310109311109312109313109314109315109316109317109318109319109320109321109322109323109324109325109326109327109328109329109330109331109332109333109334109335109336109337109338109339109340109341109342109343109344109345109346109347109348109349109350109351109352109353109354109355109356109357109358109359109360109361109362109363109364109365109366109367109368109369109370109371109372109373109374109375109376109377109378109379109380109381109382109383109384109385109386109387109388109389109390109391109392109393109394109395109396109397109398109399109400109401109402109403109404109405109406109407109408109409109410109411109412109413109414109415109416109417109418109419109420109421109422109423109424109425109426109427109428109429109430109431109432109433109434109435109436109437109438109439109440109441109442109443109444109445109446109447109448109449109450109451109452109453109454109455109456109457109458109459109460109461109462109463109464109465109466109467109468109469109470109471109472109473109474109475109476109477109478109479109480109481109482109483109484109485109486109487109488109489109490109491109492109493109494109495109496109497109498109499109500109501109502109503109504109505109506109507109508109509109510109511109512109513109514109515109516109517109518109519109520109521109522109523109524109525109526109527109528109529109530109531109532109533109534109535109536109537109538109539109540109541109542109543109544109545109546109547109548109549109550109551109552109553109554109555109556109557109558109559109560109561109562109563109564109565109566109567109568109569109570109571109572109573109574109575109576109577109578109579109580109581109582109583109584109585109586109587109588109589109590109591109592109593109594109595109596109597109598109599109600109601109602109603109604109605109606109607109608109609109610109611109612109613109614109615109616109617109618109619109620109621109622109623109624109625109626109627109628109629109630109631109632109633109634109635109636109637109638109639109640109641109642109643109644109645109646109647109648109649109650109651109652109653109654109655109656109657109658109659109660109661109662109663109664109665109666109667109668109669109670109671109672109673109674109675109676109677109678109679109680109681109682109683109684109685109686109687109688109689109690109691109692109693109694109695109696109697109698109699109700109701109702109703109704109705109706109707109708109709109710109711109712109713109714109715109716109717109718109719109720109721109722109723109724109725109726109727109728109729109730109731109732109733109734109735109736109737109738109739109740109741109742109743109744109745109746109747109748109749109750109751109752109753109754109755109756109757109758109759109760109761109762109763109764109765109766109767109768109769109770109771109772109773109774109775109776109777109778109779109780109781109782109783109784109785109786109787109788109789109790109791109792109793109794109795109796109797109798109799109800109801109802109803109804109805109806109807109808109809109810109811109812109813109814109815109816109817109818109819109820109821109822109823109824109825109826109827109828109829109830109831109832109833109834109835109836109837109838109839109840109841109842109843109844109845109846109847109848109849109850109851109852109853109854109855109856109857109858109859109860109861109862109863109864109865109866109867109868109869109870109871109872109873109874109875109876109877109878109879109880109881109882109883109884109885109886109887109888109889109890109891109892109893109894109895109896109897109898109899109900109901109902109903109904109905109906109907109908109909109910109911109912109913109914109915109916109917109918109919109920109921109922109923109924109925109926109927109928109929109930109931109932109933109934109935109936109937109938109939109940109941109942109943109944109945109946109947109948109949109950109951109952109953109954109955109956109957109958109959109960109961109962109963109964109965109966109967109968109969109970109971109972109973109974109975109976109977109978109979109980109981109982109983109984109985109986109987109988109989109990109991109992109993109994109995109996109997109998109999110000110001110002110003110004110005110006110007110008110009110010110011110012110013110014110015110016110017110018110019110020110021110022110023110024110025110026110027110028110029110030110031110032110033110034110035110036110037110038110039110040110041110042110043110044110045110046110047110048110049110050110051110052110053110054110055110056110057110058110059110060110061110062110063110064110065110066110067110068110069110070110071110072110073110074110075110076110077110078110079110080110081110082110083110084110085110086110087110088110089110090110091110092110093110094110095110096110097110098110099110100110101110102110103110104110105110106110107110108110109110110110111110112110113110114110115110116110117110118110119110120110121110122110123110124110125110126110127110128110129110130110131110132110133110134110135110136110137110138110139110140110141110142110143110144110145110146110147110148110149110150110151110152110153110154110155110156110157110158110159110160110161110162110163110164110165110166110167110168110169110170110171110172110173110174110175110176110177110178110179110180110181110182110183110184110185110186110187110188110189110190110191110192110193110194110195110196110197110198110199110200110201110202110203110204110205110206110207110208110209110210110211110212110213110214110215110216110217110218110219110220110221110222110223110224110225110226110227110228110229110230110231110232110233110234110235110236110237110238110239110240110241110242110243110244110245110246110247110248110249110250110251110252110253110254110255110256110257110258110259110260110261110262110263110264110265110266110267110268110269110270110271110272110273110274110275110276110277110278110279110280110281110282110283110284110285110286110287110288110289110290110291110292110293110294110295110296110297110298110299110300110301110302110303110304110305110306110307110308110309110310110311110312110313110314110315110316110317110318110319110320110321110322110323110324110325110326110327110328110329110330110331110332110333110334110335110336110337110338110339110340110341110342110343110344110345110346110347110348110349110350110351110352110353110354110355110356110357110358110359110360110361110362110363110364110365110366110367110368110369110370110371110372110373110374110375110376110377110378110379110380110381110382110383110384110385110386110387110388110389110390110391110392110393110394110395110396110397110398110399110400110401110402110403110404110405110406110407110408110409110410110411110412110413110414110415110416110417110418110419110420110421110422110423110424110425110426110427110428110429110430110431110432110433110434110435110436110437110438110439110440110441110442110443110444110445110446110447110448110449110450110451110452110453110454110455110456110457110458110459110460110461110462110463110464110465110466110467110468110469110470110471110472110473110474110475110476110477110478110479110480110481110482110483110484110485110486110487110488110489110490110491110492110493110494110495110496110497110498110499110500110501110502110503110504110505110506110507110508110509110510110511110512110513110514110515110516110517110518110519110520110521110522110523110524110525110526110527110528110529110530110531110532110533110534110535110536110537110538110539110540110541110542110543110544110545110546110547110548110549110550110551110552110553110554110555110556110557110558110559110560110561110562110563110564110565110566110567110568110569110570110571110572110573110574110575110576110577110578110579110580110581110582110583110584110585110586110587110588110589110590110591110592110593110594110595110596110597110598110599110600110601110602110603110604110605110606110607110608110609110610110611110612110613110614110615110616110617110618110619110620110621110622110623110624110625110626110627110628110629110630110631110632110633110634110635110636110637110638110639110640110641110642110643110644110645110646110647110648110649110650110651110652110653110654110655110656110657110658110659110660110661110662110663110664110665110666110667110668110669110670110671110672110673110674110675110676110677110678110679110680110681110682110683110684110685110686110687110688110689110690110691110692110693110694110695110696110697110698110699110700110701110702110703110704110705110706110707110708110709110710110711110712110713110714110715110716110717110718110719110720110721110722110723110724110725110726110727110728110729110730110731110732110733110734110735110736110737110738110739110740110741110742110743110744110745110746110747110748110749110750110751110752110753110754110755110756110757110758110759110760110761110762110763110764110765110766110767110768110769110770110771110772110773110774110775110776110777110778110779110780110781110782110783110784110785110786110787110788110789110790110791110792110793110794110795110796110797110798110799110800110801110802110803110804110805110806110807110808110809110810110811110812110813110814110815110816110817110818110819110820110821110822110823110824110825110826110827110828110829110830110831110832110833110834110835110836110837110838110839110840110841110842110843110844110845110846110847110848110849110850110851110852110853110854110855110856110857110858110859110860110861110862110863110864110865110866110867110868110869110870110871110872110873110874110875110876110877110878110879110880110881110882110883110884110885110886110887110888110889110890110891110892110893110894110895110896110897110898110899110900110901110902110903110904110905110906110907110908110909110910110911110912110913110914110915110916110917110918110919110920110921110922110923110924110925110926110927110928110929110930110931110932110933110934110935110936110937110938110939110940110941110942110943110944110945110946110947110948110949110950110951110952110953110954110955110956110957110958110959110960110961110962110963110964110965110966110967110968110969110970110971110972110973110974110975110976110977110978110979110980110981110982110983110984110985110986110987110988110989110990110991110992110993110994110995110996110997110998110999111000111001111002111003111004111005111006111007111008111009111010111011111012111013111014111015111016111017111018111019111020111021111022111023111024111025111026111027111028111029111030111031111032111033111034111035111036111037111038111039111040111041111042111043111044111045111046111047111048111049111050111051111052111053111054111055111056111057111058111059111060111061111062111063111064111065111066111067111068111069111070111071111072111073111074111075111076111077111078111079111080111081111082111083111084111085111086111087111088111089111090111091111092111093111094111095111096111097111098111099111100111101111102111103111104111105111106111107111108111109111110111111111112111113111114111115111116111117111118111119111120111121111122111123111124111125111126111127111128111129111130111131111132111133111134111135111136111137111138111139111140111141111142111143111144111145111146111147111148111149111150111151111152111153111154111155111156111157111158111159111160111161111162111163111164111165111166111167111168111169111170111171111172111173111174111175111176111177111178111179111180111181111182111183111184111185111186111187111188111189111190111191111192111193111194111195111196111197111198111199111200111201111202111203111204111205111206111207111208111209111210111211111212111213111214111215111216111217111218111219111220111221111222111223111224111225111226111227111228111229111230111231111232111233111234111235111236111237111238111239111240111241111242111243111244111245111246111247111248111249111250111251111252111253111254111255111256111257111258111259111260111261111262111263111264111265111266111267111268111269111270111271111272111273111274111275111276111277111278111279111280111281111282111283111284111285111286111287111288111289111290111291111292111293111294111295111296111297111298111299111300111301111302111303111304111305111306111307111308111309111310111311111312111313111314111315111316111317111318111319111320111321111322111323111324111325111326111327111328111329111330111331111332111333111334111335111336111337111338111339111340111341111342111343111344111345111346111347111348111349111350111351111352111353111354111355111356111357111358111359111360111361111362111363111364111365111366111367111368111369111370111371111372111373111374111375111376111377111378111379111380111381111382111383111384111385111386111387111388111389111390111391111392111393111394111395111396111397111398111399111400111401111402111403111404111405111406111407111408111409111410111411111412111413111414111415111416111417111418111419111420111421111422111423111424111425111426111427111428111429111430111431111432111433111434111435111436111437111438111439111440111441111442111443111444111445111446111447111448111449111450111451111452111453111454111455111456111457111458111459111460111461111462111463111464111465111466111467111468111469111470111471111472111473111474111475111476111477111478111479111480111481111482111483111484111485111486111487111488111489111490111491111492111493111494111495111496111497111498111499111500111501111502111503111504111505111506111507111508111509111510111511111512111513111514111515111516111517111518111519111520111521111522111523111524111525111526111527111528111529111530111531111532111533111534111535111536111537111538111539111540111541111542111543111544111545111546111547111548111549111550111551111552111553111554111555111556111557111558111559111560111561111562111563111564111565111566111567111568111569111570111571111572111573111574111575111576111577111578111579111580111581111582111583111584111585111586111587111588111589111590111591111592111593111594111595111596111597111598111599111600111601111602111603111604111605111606111607111608111609111610111611111612111613111614111615111616111617111618111619111620111621111622111623111624111625111626111627111628111629111630111631111632111633111634111635111636111637111638111639111640111641111642111643111644111645111646111647111648111649111650111651111652111653111654111655111656111657111658111659111660111661111662111663111664111665111666111667111668111669111670111671111672111673111674111675111676111677111678111679111680111681111682111683111684111685111686111687111688111689111690111691111692111693111694111695111696111697111698111699111700111701111702111703111704111705111706111707111708111709111710111711111712111713111714111715111716111717111718111719111720111721111722111723111724111725111726111727111728111729111730111731111732111733111734111735111736111737111738111739111740111741111742111743111744111745111746111747111748111749111750111751111752111753111754111755111756111757111758111759111760111761111762111763111764111765111766111767111768111769111770111771111772111773111774111775111776111777111778111779111780111781111782111783111784111785111786111787111788111789111790111791111792111793111794111795111796111797111798111799111800111801111802111803111804111805111806111807111808111809111810111811111812111813111814111815111816111817111818111819111820111821111822111823111824111825111826111827111828111829111830111831111832111833111834111835111836111837111838111839111840111841111842111843111844111845111846111847111848111849111850111851111852111853111854111855111856111857111858111859111860111861111862111863111864111865111866111867111868111869111870111871111872111873111874111875111876111877111878111879111880111881111882111883111884111885111886111887111888111889111890111891111892111893111894111895111896111897111898111899111900111901111902111903111904111905111906111907111908111909111910111911111912111913111914111915111916111917111918111919111920111921111922111923111924111925111926111927111928111929111930111931111932111933111934111935111936111937111938111939111940111941111942111943111944111945111946111947111948111949111950111951111952111953111954111955111956111957111958111959111960111961111962111963111964111965111966111967111968111969111970111971111972111973111974111975111976111977111978111979111980111981111982111983111984111985111986111987111988111989111990111991111992111993111994111995111996111997111998111999112000112001112002112003112004112005112006112007112008112009112010112011112012112013112014112015112016112017112018112019112020112021112022112023112024112025112026112027112028112029112030112031112032112033112034112035112036112037112038112039112040112041112042112043112044112045112046112047112048112049112050112051112052112053112054112055112056112057112058112059112060112061112062112063112064112065112066112067112068112069112070112071112072112073112074112075112076112077112078112079112080112081112082112083112084112085112086112087112088112089112090112091112092112093112094112095112096112097112098112099112100112101112102112103112104112105112106112107112108112109112110112111112112112113112114112115112116112117112118112119112120112121112122112123112124112125112126112127112128112129112130112131112132112133112134112135112136112137112138112139112140112141112142112143112144112145112146112147112148112149112150112151112152112153112154112155112156112157112158112159112160112161112162112163112164112165112166112167112168112169112170112171112172112173112174112175112176112177112178112179112180112181112182112183112184112185112186112187112188112189112190112191112192112193112194112195112196112197112198112199112200112201112202112203112204112205112206112207112208112209112210112211112212112213112214112215112216112217112218112219112220112221112222112223112224112225112226112227112228112229112230112231112232112233112234112235112236112237112238112239112240112241112242112243112244112245112246112247112248112249112250112251112252112253112254112255112256112257112258112259112260112261112262112263112264112265112266112267112268112269112270112271112272112273112274112275112276112277112278112279112280112281112282112283112284112285112286112287112288112289112290112291112292112293112294112295112296112297112298112299112300112301112302112303112304112305112306112307112308112309112310112311112312112313112314112315112316112317112318112319112320112321112322112323112324112325112326112327112328112329112330112331112332112333112334112335112336112337112338112339112340112341112342112343112344112345112346112347112348112349112350112351112352112353112354112355112356112357112358112359112360112361112362112363112364112365112366112367112368112369112370112371112372112373112374112375112376112377112378112379112380112381112382112383112384112385112386112387112388112389112390112391112392112393112394112395112396112397112398112399112400112401112402112403112404112405112406112407112408112409112410112411112412112413112414112415112416112417112418112419112420112421112422112423112424112425112426112427112428112429112430112431112432112433112434112435112436112437112438112439112440112441112442112443112444112445112446112447112448112449112450112451112452112453112454112455112456112457112458112459112460112461112462112463112464112465112466112467112468112469112470112471112472112473112474112475112476112477112478112479112480112481112482112483112484112485112486112487112488112489112490112491112492112493112494112495112496112497112498112499112500112501112502112503112504112505112506112507112508112509112510112511112512112513112514112515112516112517112518112519112520112521112522112523112524112525112526112527112528112529112530112531112532112533112534112535112536112537112538112539112540112541112542112543112544112545112546112547112548112549112550112551112552112553112554112555112556112557112558112559112560112561112562112563112564112565112566112567112568112569112570112571112572112573112574112575112576112577112578112579112580112581112582112583112584112585112586112587112588112589112590112591112592112593112594112595112596112597112598112599112600112601112602112603112604112605112606112607112608112609112610112611112612112613112614112615112616112617112618112619112620112621112622112623112624112625112626112627112628112629112630112631112632112633112634112635112636112637112638112639112640112641112642112643112644112645112646112647112648112649112650112651112652112653112654112655112656112657112658112659112660112661112662112663112664112665112666112667112668112669112670112671112672112673112674112675112676112677112678112679112680112681112682112683112684112685112686112687112688112689112690112691112692112693112694112695112696112697112698112699112700112701112702112703112704112705112706112707112708112709112710112711112712112713112714112715112716112717112718112719112720112721112722112723112724112725112726112727112728112729112730112731112732112733112734112735112736112737112738112739112740112741112742112743112744112745112746112747112748112749112750112751112752112753112754112755112756112757112758112759112760112761112762112763112764112765112766112767112768112769112770112771112772112773112774112775112776112777112778112779112780112781112782112783112784112785112786112787112788112789112790112791112792112793112794112795112796112797112798112799112800112801112802112803112804112805112806112807112808112809112810112811112812112813112814112815112816112817112818112819112820112821112822112823112824112825112826112827112828112829112830112831112832112833112834112835112836112837112838112839112840112841112842112843112844112845112846112847112848112849112850112851112852112853112854112855112856112857112858112859112860112861112862112863112864112865112866112867112868112869112870112871112872112873112874112875112876112877112878112879112880112881112882112883112884112885112886112887112888112889112890112891112892112893112894112895112896112897112898112899112900112901112902112903112904112905112906112907112908112909112910112911112912112913112914112915112916112917112918112919112920112921112922112923112924112925112926112927112928112929112930112931112932112933112934112935112936112937112938112939112940112941112942112943112944112945112946112947112948112949112950112951112952112953112954112955112956112957112958112959112960112961112962112963112964112965112966112967112968112969112970112971112972112973112974112975112976112977112978112979112980112981112982112983112984112985112986112987112988112989112990112991112992112993112994112995112996112997112998112999113000113001113002113003113004113005113006113007113008113009113010113011113012113013113014113015113016113017113018113019113020113021113022113023113024113025113026113027113028113029113030113031113032113033113034113035113036113037113038113039113040113041113042113043113044113045113046113047113048113049113050113051113052113053113054113055113056113057113058113059113060113061113062113063113064113065113066113067113068113069113070113071113072113073113074113075113076113077113078113079113080113081113082113083113084113085113086113087113088113089113090113091113092113093113094113095113096113097113098113099113100113101113102113103113104113105113106113107113108113109113110113111113112113113113114113115113116113117113118113119113120113121113122113123113124113125113126113127113128113129113130113131113132113133113134113135113136113137113138113139113140113141113142113143113144113145113146113147113148113149113150113151113152113153113154113155113156113157113158113159113160113161113162113163113164113165113166113167113168113169113170113171113172113173113174113175113176113177113178113179113180113181113182113183113184113185113186113187113188113189113190113191113192113193113194113195113196113197113198113199113200113201113202113203113204113205113206113207113208113209113210113211113212113213113214113215113216113217113218113219113220113221113222113223113224113225113226113227113228113229113230113231113232113233113234113235113236113237113238113239113240113241113242113243113244113245113246113247113248113249113250113251113252113253113254113255113256113257113258113259113260113261113262113263113264113265113266113267113268113269113270113271113272113273113274113275113276113277113278113279113280113281113282113283113284113285113286113287113288113289113290113291113292113293113294113295113296113297113298113299113300113301113302113303113304113305113306113307113308113309113310113311113312113313113314113315113316113317113318113319113320113321113322113323113324113325113326113327113328113329113330113331113332113333113334113335113336113337113338113339113340113341113342113343113344113345113346113347113348113349113350113351113352113353113354113355113356113357113358113359113360113361113362113363113364113365113366113367113368113369113370113371113372113373113374113375113376113377113378113379113380113381113382113383113384113385113386113387113388113389113390113391113392113393113394113395113396113397113398113399113400113401113402113403113404113405113406113407113408113409113410113411113412113413113414113415113416113417113418113419113420113421113422113423113424113425113426113427113428113429113430113431113432113433113434113435113436113437113438113439113440113441113442113443113444113445113446113447113448113449113450113451113452113453113454113455113456113457113458113459113460113461113462113463113464113465113466113467113468113469113470113471113472113473113474113475113476113477113478113479113480113481113482113483113484113485113486113487113488113489113490113491113492113493113494113495113496113497113498113499113500113501113502113503113504113505113506113507113508113509113510113511113512113513113514113515113516113517113518113519113520113521113522113523113524113525113526113527113528113529113530113531113532113533113534113535113536113537113538113539113540113541113542113543113544113545113546113547113548113549113550113551113552113553113554113555113556113557113558113559113560113561113562113563113564113565113566113567113568113569113570113571113572113573113574113575113576113577113578113579113580113581113582113583113584113585113586113587113588113589113590113591113592113593113594113595113596113597113598113599113600113601113602113603113604113605113606113607113608113609113610113611113612113613113614113615113616113617113618113619113620113621113622113623113624113625113626113627113628113629113630113631113632113633113634113635113636113637113638113639113640113641113642113643113644113645113646113647113648113649113650113651113652113653113654113655113656113657113658113659113660113661113662113663113664113665113666113667113668113669113670113671113672113673113674113675113676113677113678113679113680113681113682113683113684113685113686113687113688113689113690113691113692113693113694113695113696113697113698113699113700113701113702113703113704113705113706113707113708113709113710113711113712113713113714113715113716113717113718113719113720113721113722113723113724113725113726113727113728113729113730113731113732113733113734113735113736113737113738113739113740113741113742113743113744113745113746113747113748113749113750113751113752113753113754113755113756113757113758113759113760113761113762113763113764113765113766113767113768113769113770113771113772113773113774113775113776113777113778113779113780113781113782113783113784113785113786113787113788113789113790113791113792113793113794113795113796113797113798113799113800113801113802113803113804113805113806113807113808113809113810113811113812113813113814113815113816113817113818113819113820113821113822113823113824113825113826113827113828113829113830113831113832113833113834113835113836113837113838113839113840113841113842113843113844113845113846113847113848113849113850113851113852113853113854113855113856113857113858113859113860113861113862113863113864113865113866113867113868113869113870113871113872113873113874113875113876113877113878113879113880113881113882113883113884113885113886113887113888113889113890113891113892113893113894113895113896113897113898113899113900113901113902113903113904113905113906113907113908113909113910113911113912113913113914113915113916113917113918113919113920113921113922113923113924113925113926113927113928113929113930113931113932113933113934113935113936113937113938113939113940113941113942113943113944113945113946113947113948113949113950113951113952113953113954113955113956113957113958113959113960113961113962113963113964113965113966113967113968113969113970113971113972113973113974113975113976113977113978113979113980113981113982113983113984113985113986113987113988113989113990113991113992113993113994113995113996113997113998113999114000114001114002114003114004114005114006114007114008114009114010114011114012114013114014114015114016114017114018114019114020114021114022114023114024114025114026114027114028114029114030114031114032114033114034114035114036114037114038114039114040114041114042114043114044114045114046114047114048114049114050114051114052114053114054114055114056114057114058114059114060114061114062114063114064114065114066114067114068114069114070114071114072114073114074114075114076114077114078114079114080114081114082114083114084114085114086114087114088114089114090114091114092114093114094114095114096114097114098114099114100114101114102114103114104114105114106114107114108114109114110114111114112114113114114114115114116114117114118114119114120114121114122114123114124114125114126114127114128114129114130114131114132114133114134114135114136114137114138114139114140114141114142114143114144114145114146114147114148114149114150114151114152114153114154114155114156114157114158114159114160114161114162114163114164114165114166114167114168114169114170114171114172114173114174114175114176114177114178114179114180114181114182114183114184114185114186114187114188114189114190114191114192114193114194114195114196114197114198114199114200114201114202114203114204114205114206114207114208114209114210114211114212114213114214114215114216114217114218114219114220114221114222114223114224114225114226114227114228114229114230114231114232114233114234114235114236114237114238114239114240114241114242114243114244114245114246114247114248114249114250114251114252114253114254114255114256114257114258114259114260114261114262114263114264114265114266114267114268114269114270114271114272114273114274114275114276114277114278114279114280114281114282114283114284114285114286114287114288114289114290114291114292114293114294114295114296114297114298114299114300114301114302114303114304114305114306114307114308114309114310114311114312114313114314114315114316114317114318114319114320114321114322114323114324114325114326114327114328114329114330114331114332114333114334114335114336114337114338114339114340114341114342114343114344114345114346114347114348114349114350114351114352114353114354114355114356114357114358114359114360114361114362114363114364114365114366114367114368114369114370114371114372114373114374114375114376114377114378114379114380114381114382114383114384114385114386114387114388114389114390114391114392114393114394114395114396114397114398114399114400114401114402114403114404114405114406114407114408114409114410114411114412114413114414114415114416114417114418114419114420114421114422114423114424114425114426114427114428114429114430114431114432114433114434114435114436114437114438114439114440114441114442114443114444114445114446114447114448114449114450114451114452114453114454114455114456114457114458114459114460114461114462114463114464114465114466114467114468114469114470114471114472114473114474114475114476114477114478114479114480114481114482114483114484114485114486114487114488114489114490114491114492114493114494114495114496114497114498114499114500114501114502114503114504114505114506114507114508114509114510114511114512114513114514114515114516114517114518114519114520114521114522114523114524114525114526114527114528114529114530114531114532114533114534114535114536114537114538114539114540114541114542114543114544114545114546114547114548114549114550114551114552114553114554114555114556114557114558114559114560114561114562114563114564114565114566114567114568114569114570114571114572114573114574114575114576114577114578114579114580114581114582114583114584114585114586114587114588114589114590114591114592114593114594114595114596114597114598114599114600114601114602114603114604114605114606114607114608114609114610114611114612114613114614114615114616114617114618114619114620114621114622114623114624114625114626114627114628114629114630114631114632114633114634114635114636114637114638114639114640114641114642114643114644114645114646114647114648114649114650114651114652114653114654114655114656114657114658114659114660114661114662114663114664114665114666114667114668114669114670114671114672114673114674114675114676114677114678114679114680114681114682114683114684114685114686114687114688114689114690114691114692114693114694114695114696114697114698114699114700114701114702114703114704114705114706114707114708114709114710114711114712114713114714114715114716114717114718114719114720114721114722114723114724114725114726114727114728114729114730114731114732114733114734114735114736114737114738114739114740114741114742114743114744114745114746114747114748114749114750114751114752114753114754114755114756114757114758114759114760114761114762114763114764114765114766114767114768114769114770114771114772114773114774114775114776114777114778114779114780114781114782114783114784114785114786114787114788114789114790114791114792114793114794114795114796114797114798114799114800114801114802114803114804114805114806114807114808114809114810114811114812114813114814114815114816114817114818114819114820114821114822114823114824114825114826114827114828114829114830114831114832114833114834114835114836114837114838114839114840114841114842114843114844114845114846114847114848114849114850114851114852114853114854114855114856114857114858114859114860114861114862114863114864114865114866114867114868114869114870114871114872114873114874114875114876114877114878114879114880114881114882114883114884114885114886114887114888114889114890114891114892114893114894114895114896114897114898114899114900114901114902114903114904114905114906114907114908114909114910114911114912114913114914114915114916114917114918114919114920114921114922114923114924114925114926114927114928114929114930114931114932114933114934114935114936114937114938114939114940114941114942114943114944114945114946114947114948114949114950114951114952114953114954114955114956114957114958114959114960114961114962114963114964114965114966114967114968114969114970114971114972114973114974114975114976114977114978114979114980114981114982114983114984114985114986114987114988114989114990114991114992114993114994114995114996114997114998114999115000115001115002115003115004115005115006115007115008115009115010115011115012115013115014115015115016115017115018115019115020115021115022115023115024115025115026115027115028115029115030115031115032115033115034115035115036115037115038115039115040115041115042115043115044115045115046115047115048115049115050115051115052115053115054115055115056115057115058115059115060115061115062115063115064115065115066115067115068115069115070115071115072115073115074115075115076115077115078115079115080115081115082115083115084115085115086115087115088115089115090115091115092115093115094115095115096115097115098115099115100115101115102115103115104115105115106115107115108115109115110115111115112115113115114115115115116115117115118115119115120115121115122115123115124115125115126115127115128115129115130115131115132115133115134115135115136115137115138115139115140115141115142115143115144115145115146115147115148115149115150115151115152115153115154115155115156115157115158115159115160115161115162115163115164115165115166115167115168115169115170115171115172115173115174115175115176115177115178115179115180115181115182115183115184115185115186115187115188115189115190115191115192115193115194115195115196115197115198115199115200115201115202115203115204115205115206115207115208115209115210115211115212115213115214115215115216115217115218115219115220115221115222115223115224115225115226115227115228115229115230115231115232115233115234115235115236115237115238115239115240115241115242115243115244115245115246115247115248115249115250115251115252115253115254115255115256115257115258115259115260115261115262115263115264115265115266115267115268115269115270115271115272115273115274115275115276115277115278115279115280115281115282115283115284115285115286115287115288115289115290115291115292115293115294115295115296115297115298115299115300115301115302115303115304115305115306115307115308115309115310115311115312115313115314115315115316115317115318115319115320115321115322115323115324115325115326115327115328115329115330115331115332115333115334115335115336115337115338115339115340115341115342115343115344115345115346115347115348115349115350115351115352115353115354115355115356115357115358115359115360115361115362115363115364115365115366115367115368115369115370115371115372115373115374115375115376115377115378115379115380115381115382115383115384115385115386115387115388115389115390115391115392115393115394115395115396115397115398115399115400115401115402115403115404115405115406115407115408115409115410115411115412115413115414115415115416115417115418115419115420115421115422115423115424115425115426115427115428115429115430115431115432115433115434115435115436115437115438115439115440115441115442115443115444115445115446115447115448115449115450115451115452115453115454115455115456115457115458115459115460115461115462115463115464115465115466115467115468115469115470115471115472115473115474115475115476115477115478115479115480115481115482115483115484115485115486115487115488115489115490115491115492115493115494115495115496115497115498115499115500115501115502115503115504115505115506115507115508115509115510115511115512115513115514115515115516115517115518115519115520115521115522115523115524115525115526115527115528115529115530115531115532115533115534115535115536115537115538115539115540115541115542115543115544115545115546115547115548115549115550115551115552115553115554115555115556115557115558115559115560115561115562115563115564115565115566115567115568115569115570115571115572115573115574115575115576115577115578115579115580115581115582115583115584115585115586115587115588115589115590115591115592115593115594115595115596115597115598115599115600115601115602115603115604115605115606115607115608115609115610115611115612115613115614115615115616115617115618115619115620115621115622115623115624115625115626115627115628115629115630115631115632115633115634115635115636115637115638115639115640115641115642115643115644115645115646115647115648115649115650115651115652115653115654115655115656115657115658115659115660115661115662115663115664115665115666115667115668115669115670115671115672115673115674115675115676115677115678115679115680115681115682115683115684115685115686115687115688115689115690115691115692115693115694115695115696115697115698115699115700115701115702115703115704115705115706115707115708115709115710115711115712115713115714115715115716115717115718115719115720115721115722115723115724115725115726115727115728115729115730115731115732115733115734115735115736115737115738115739115740115741115742115743115744115745115746115747115748115749115750115751115752115753115754115755115756115757115758115759115760115761115762115763115764115765115766115767115768115769115770115771115772115773115774115775115776115777115778115779115780115781115782115783115784115785115786115787115788115789115790115791115792115793115794115795115796115797115798115799115800115801115802115803115804115805115806115807115808115809115810115811115812115813115814115815115816115817115818115819115820115821115822115823115824115825115826115827115828115829115830115831115832115833115834115835115836115837115838115839115840115841115842115843115844115845115846115847115848115849115850115851115852115853115854115855115856115857115858115859115860115861115862115863115864115865115866115867115868115869115870115871115872115873115874115875115876115877115878115879115880115881115882115883115884115885115886115887115888115889115890115891115892115893115894115895115896115897115898115899115900115901115902115903115904115905115906115907115908115909115910115911115912115913115914115915115916115917115918115919115920115921115922115923115924115925115926115927115928115929115930115931115932115933115934115935115936115937115938115939115940115941115942115943115944115945115946115947115948115949115950115951115952115953115954115955115956115957115958115959115960115961115962115963115964115965115966115967115968115969115970115971115972115973115974115975115976115977115978115979115980115981115982115983115984115985115986115987115988115989115990115991115992115993115994115995115996115997115998115999116000116001116002116003116004116005116006116007116008116009116010116011116012116013116014116015116016116017116018116019116020116021116022116023116024116025116026116027116028116029116030116031116032116033116034116035116036116037116038116039116040116041116042116043116044116045116046116047116048116049116050116051116052116053116054116055116056116057116058116059116060116061116062116063116064116065116066116067116068116069116070116071116072116073116074116075116076116077116078116079116080116081116082116083116084116085116086116087116088116089116090116091116092116093116094116095116096116097116098116099116100116101116102116103116104116105116106116107116108116109116110116111116112116113116114116115116116116117116118116119116120116121116122116123116124116125116126116127116128116129116130116131116132116133116134116135116136116137116138116139116140116141116142116143116144116145116146116147116148116149116150116151116152116153116154116155116156116157116158116159116160116161116162116163116164116165116166116167116168116169116170116171116172116173116174116175116176116177116178116179116180116181116182116183116184116185116186116187116188116189116190116191116192116193116194116195116196116197116198116199116200116201116202116203116204116205116206116207116208116209116210116211116212116213116214116215116216116217116218116219116220116221116222116223116224116225116226116227116228116229116230116231116232116233116234116235116236116237116238116239116240116241116242116243116244116245116246116247116248116249116250116251116252116253116254116255116256116257116258116259116260116261116262116263116264116265116266116267116268116269116270116271116272116273116274116275116276116277116278116279116280116281116282116283116284116285116286116287116288116289116290116291116292116293116294116295116296116297116298116299116300116301116302116303116304116305116306116307116308116309116310116311116312116313116314116315116316116317116318116319116320116321116322116323116324116325116326116327116328116329116330116331116332116333116334116335116336116337116338116339116340116341116342116343116344116345116346116347116348116349116350116351116352116353116354116355116356116357116358116359116360116361116362116363116364116365116366116367116368116369116370116371116372116373116374116375116376116377116378116379116380116381116382116383116384116385116386116387116388116389116390116391116392116393116394116395116396116397116398116399116400116401116402116403116404116405116406116407116408116409116410116411116412116413116414116415116416116417116418116419116420116421116422116423116424116425116426116427116428116429116430116431116432116433116434116435116436116437116438116439116440116441116442116443116444116445116446116447116448116449116450116451116452116453116454116455116456116457116458116459116460116461116462116463116464116465116466116467116468116469116470116471116472116473116474116475116476116477116478116479116480116481116482116483116484116485116486116487116488116489116490116491116492116493116494116495116496116497116498116499116500116501116502116503116504116505116506116507116508116509116510116511116512116513116514116515116516116517116518116519116520116521116522116523116524116525116526116527116528116529116530116531116532116533116534116535116536116537116538116539116540116541116542116543116544116545116546116547116548116549116550116551116552116553116554116555116556116557116558116559116560116561116562116563116564116565116566116567116568116569116570116571116572116573116574116575116576116577116578116579116580116581116582116583116584116585116586116587116588116589116590116591116592116593116594116595116596116597116598116599116600116601116602116603116604116605116606116607116608116609116610116611116612116613116614116615116616116617116618116619116620116621116622116623116624116625116626116627116628116629116630116631116632116633116634116635116636116637116638116639116640116641116642116643116644116645116646116647116648116649116650116651116652116653116654116655116656116657116658116659116660116661116662116663116664116665116666116667116668116669116670116671116672116673116674116675116676116677116678116679116680116681116682116683116684116685116686116687116688116689116690116691116692116693116694116695116696116697116698116699116700116701116702116703116704116705116706116707116708116709116710116711116712116713116714116715116716116717116718116719116720116721116722116723116724116725116726116727116728116729116730116731116732116733116734116735116736116737116738116739116740116741116742116743116744116745116746116747116748116749116750116751116752116753116754116755116756116757116758116759116760116761116762116763116764116765116766116767116768116769116770116771116772116773116774116775116776116777116778116779116780116781116782116783116784116785116786116787116788116789116790116791116792116793116794116795116796116797116798116799116800116801116802116803116804116805116806116807116808116809116810116811116812116813116814116815116816116817116818116819116820116821116822116823116824116825116826116827116828116829116830116831116832116833116834116835116836116837116838116839116840116841116842116843116844116845116846116847116848116849116850116851116852116853116854116855116856116857116858116859116860116861116862116863116864116865116866116867116868116869116870116871116872116873116874116875116876116877116878116879116880116881116882116883116884116885116886116887116888116889116890116891116892116893116894116895116896116897116898116899116900116901116902116903116904116905116906116907116908116909116910116911116912116913116914116915116916116917116918116919116920116921116922116923116924116925116926116927116928116929116930116931116932116933116934116935116936116937116938116939116940116941116942116943116944116945116946116947116948116949116950116951116952116953116954116955116956116957116958116959116960116961116962116963116964116965116966116967116968116969116970116971116972116973116974116975116976116977116978116979116980116981116982116983116984116985116986116987116988116989116990116991116992116993116994116995116996116997116998116999117000117001117002117003117004117005117006117007117008117009117010117011117012117013117014117015117016117017117018117019117020117021117022117023117024117025117026117027117028117029117030117031117032117033117034117035117036117037117038117039117040117041117042117043117044117045117046117047117048117049117050117051117052117053117054117055117056117057117058117059117060117061117062117063117064117065117066117067117068117069117070117071117072117073117074117075117076117077117078117079117080117081117082117083117084117085117086117087117088117089117090117091117092117093117094117095117096117097117098117099117100117101117102117103117104117105117106117107117108117109117110117111117112117113117114117115117116117117117118117119117120117121117122117123117124117125117126117127117128117129117130117131117132117133117134117135117136117137117138117139117140117141117142117143117144117145117146117147117148117149117150117151117152117153117154117155117156117157117158117159117160117161117162117163117164117165117166117167117168117169117170117171117172117173117174117175117176117177117178117179117180117181117182117183117184117185117186117187117188117189117190117191117192117193117194117195117196117197117198117199117200117201117202117203117204117205117206117207117208117209117210117211117212117213117214117215117216117217117218117219117220117221117222117223117224117225117226117227117228117229117230117231117232117233117234117235117236117237117238117239117240117241117242117243117244117245117246117247117248117249117250117251117252117253117254117255117256117257117258117259117260117261117262117263117264117265117266117267117268117269117270117271117272117273117274117275117276117277117278117279117280117281117282117283117284117285117286117287117288117289117290117291117292117293117294117295117296117297117298117299117300117301117302117303117304117305117306117307117308117309117310117311117312117313117314117315117316117317117318117319117320117321117322117323117324117325117326117327117328117329117330117331117332117333117334117335117336117337117338117339117340117341117342117343117344117345117346117347117348117349117350117351117352117353117354117355117356117357117358117359117360117361117362117363117364117365117366117367117368117369117370117371117372117373117374117375117376117377117378117379117380117381117382117383117384117385117386117387117388117389117390117391117392117393117394117395117396117397117398117399117400117401117402117403117404117405117406117407117408117409117410117411117412117413117414117415117416117417117418117419117420117421117422117423117424117425117426117427117428117429117430117431117432117433117434117435117436117437117438117439117440117441117442117443117444117445117446117447117448117449117450117451117452117453117454117455117456117457117458117459117460117461117462117463117464117465117466117467117468117469117470117471117472117473117474117475117476117477117478117479117480117481117482117483117484117485117486117487117488117489117490117491117492117493117494117495117496117497117498117499117500117501117502117503117504117505117506117507117508117509117510117511117512117513117514117515117516117517117518117519117520117521117522117523117524117525117526117527117528117529117530117531117532117533117534117535117536117537117538117539117540117541117542117543117544117545117546117547117548117549117550117551117552117553117554117555117556117557117558117559117560117561117562117563117564117565117566117567117568117569117570117571117572117573117574117575117576117577117578117579117580117581117582117583117584117585117586117587117588117589117590117591117592117593117594117595117596117597117598117599117600117601117602117603117604117605117606117607117608117609117610117611117612117613117614117615117616117617117618117619117620117621117622117623117624117625117626117627117628117629117630117631117632117633117634117635117636117637117638117639117640117641117642117643117644117645117646117647117648117649117650117651117652117653117654117655117656117657117658117659117660117661117662117663117664117665117666117667117668117669117670117671117672117673117674117675117676117677117678117679117680117681117682117683117684117685117686117687117688117689117690117691117692117693117694117695117696117697117698117699117700117701117702117703117704117705117706117707117708117709117710117711117712117713117714117715117716117717117718117719117720117721117722117723117724117725117726117727117728117729117730117731117732117733117734117735117736117737117738117739117740117741117742117743117744117745117746117747117748117749117750117751117752117753117754117755117756117757117758117759117760117761117762117763117764117765117766117767117768117769117770117771117772117773117774117775117776117777117778117779117780117781117782117783117784117785117786117787117788117789117790117791117792117793117794117795117796117797117798117799117800117801117802117803117804117805117806117807117808117809117810117811117812117813117814117815117816117817117818117819117820117821117822117823117824117825117826117827117828117829117830117831117832117833117834117835117836117837117838117839117840117841117842117843117844117845117846117847117848117849117850117851117852117853117854117855117856117857117858117859117860117861117862117863117864117865117866117867117868117869117870117871117872117873117874117875117876117877117878117879117880117881117882117883117884117885117886117887117888117889117890117891117892117893117894117895117896117897117898117899117900117901117902117903117904117905117906117907117908117909117910117911117912117913117914117915117916117917117918117919117920117921117922117923117924117925117926117927117928117929117930117931117932117933117934117935117936117937117938117939117940117941117942117943117944117945117946117947117948117949117950117951117952117953117954117955117956117957117958117959117960117961117962117963117964117965117966117967117968117969117970117971117972117973117974117975117976117977117978117979117980117981117982117983117984117985117986117987117988117989117990117991117992117993117994117995117996117997117998117999118000118001118002118003118004118005118006118007118008118009118010118011118012118013118014118015118016118017118018118019118020118021118022118023118024118025118026118027118028118029118030118031118032118033118034118035118036118037118038118039118040118041118042118043118044118045118046118047118048118049118050118051118052118053118054118055118056118057118058118059118060118061118062118063118064118065118066118067118068118069118070118071118072118073118074118075118076118077118078118079118080118081118082118083118084118085118086118087118088118089118090118091118092118093118094118095118096118097118098118099118100118101118102118103118104118105118106118107118108118109118110118111118112118113118114118115118116118117118118118119118120118121118122118123118124118125118126118127118128118129118130118131118132118133118134118135118136118137118138118139118140118141118142118143118144118145118146118147118148118149118150118151118152118153118154118155118156118157118158118159118160118161118162118163118164118165118166118167118168118169118170118171118172118173118174118175118176118177118178118179118180118181118182118183118184118185118186118187118188118189118190118191118192118193118194118195118196118197118198118199118200118201118202118203118204118205118206118207118208118209118210118211118212118213118214118215118216118217118218118219118220118221118222118223118224118225118226118227118228118229118230118231118232118233118234118235118236118237118238118239118240118241118242118243118244118245118246118247118248118249118250118251118252118253118254118255118256118257118258118259118260118261118262118263118264118265118266118267118268118269118270118271118272118273118274118275118276118277118278118279118280118281118282118283118284118285118286118287118288118289118290118291118292118293118294118295118296118297118298118299118300118301118302118303118304118305118306118307118308118309118310118311118312118313118314118315118316118317118318118319118320118321118322118323118324118325118326118327118328118329118330118331118332118333118334118335118336118337118338118339118340118341118342118343118344118345118346118347118348118349118350118351118352118353118354118355118356118357118358118359118360118361118362118363118364118365118366118367118368118369118370118371118372118373118374118375118376118377118378118379118380118381118382118383118384118385118386118387118388118389118390118391118392118393118394118395118396118397118398118399118400118401118402118403118404118405118406118407118408118409118410118411118412118413118414118415118416118417118418118419118420118421118422118423118424118425118426118427118428118429118430118431118432118433118434118435118436118437118438118439118440118441118442118443118444118445118446118447118448118449118450118451118452118453118454118455118456118457118458118459118460118461118462118463118464118465118466118467118468118469118470118471118472118473118474118475118476118477118478118479118480118481118482118483118484118485118486118487118488118489118490118491118492118493118494118495118496118497118498118499118500118501118502118503118504118505118506118507118508118509118510118511118512118513118514118515118516118517118518118519118520118521118522118523118524118525118526118527118528118529118530118531118532118533118534118535118536118537118538118539118540118541118542118543118544118545118546118547118548118549118550118551118552118553118554118555118556118557118558118559118560118561118562118563118564118565118566118567118568118569118570118571118572118573118574118575118576118577118578118579118580118581118582118583118584118585118586118587118588118589118590118591118592118593118594118595118596118597118598118599118600118601118602118603118604118605118606118607118608118609118610118611118612118613118614118615118616118617118618118619118620118621118622118623118624118625118626118627118628118629118630118631118632118633118634118635118636118637118638118639118640118641118642118643118644118645118646118647118648118649118650118651118652118653118654118655118656118657118658118659118660118661118662118663118664118665118666118667118668118669118670118671118672118673118674118675118676118677118678118679118680118681118682118683118684118685118686118687118688118689118690118691118692118693118694118695118696118697118698118699118700118701118702118703118704118705118706118707118708118709118710118711118712118713118714118715118716118717118718118719118720118721118722118723118724118725118726118727118728118729118730118731118732118733118734118735118736118737118738118739118740118741118742118743118744118745118746118747118748118749118750118751118752118753118754118755118756118757118758118759118760118761118762118763118764118765118766118767118768118769118770118771118772118773118774118775118776118777118778118779118780118781118782118783118784118785118786118787118788118789118790118791118792118793118794118795118796118797118798118799118800118801118802118803118804118805118806118807118808118809118810118811118812118813118814118815118816118817118818118819118820118821118822118823118824118825118826118827118828118829118830118831118832118833118834118835118836118837118838118839118840118841118842118843118844118845118846118847118848118849118850118851118852118853118854118855118856118857118858118859118860118861118862118863118864118865118866118867118868118869118870118871118872118873118874118875118876118877118878118879118880118881118882118883118884118885118886118887118888118889118890118891118892118893118894118895118896118897118898118899118900118901118902118903118904118905118906118907118908118909118910118911118912118913118914118915118916118917118918118919118920118921118922118923118924118925118926118927118928118929118930118931118932118933118934118935118936118937118938118939118940118941118942118943118944118945118946118947118948118949118950118951118952118953118954118955118956118957118958118959118960118961118962118963118964118965118966118967118968118969118970118971118972118973118974118975118976118977118978118979118980118981118982118983118984118985118986118987118988118989118990118991118992118993118994118995118996118997118998118999119000119001119002119003119004119005119006119007119008119009119010119011119012119013119014119015119016119017119018119019119020119021119022119023119024119025119026119027119028119029119030119031119032119033119034119035119036119037119038119039119040119041119042119043119044119045119046119047119048119049119050119051119052119053119054119055119056119057119058119059119060119061119062119063119064119065119066119067119068119069119070119071119072119073119074119075119076119077119078119079119080119081119082119083119084119085119086119087119088119089119090119091119092119093119094119095119096119097119098119099119100119101119102119103119104119105119106119107119108119109119110119111119112119113119114119115119116119117119118119119119120119121119122119123119124119125119126119127119128119129119130119131119132119133119134119135119136119137119138119139119140119141119142119143119144119145119146119147119148119149119150119151119152119153119154119155119156119157119158119159119160119161119162119163119164119165119166119167119168119169119170119171119172119173119174119175119176119177119178119179119180119181119182119183119184119185119186119187119188119189119190119191119192119193119194119195119196119197119198119199119200119201119202119203119204119205119206119207119208119209119210119211119212119213119214119215119216119217119218119219119220119221119222119223119224119225119226119227119228119229119230119231119232119233119234119235119236119237119238119239119240119241119242119243119244119245119246119247119248119249119250119251119252119253119254119255119256119257119258119259119260119261119262119263119264119265119266119267119268119269119270119271119272119273119274119275119276119277119278119279119280119281119282119283119284119285119286119287119288119289119290119291119292119293119294119295119296119297119298119299119300119301119302119303119304119305119306119307119308119309119310119311119312119313119314119315119316119317119318119319119320119321119322119323119324119325119326119327119328119329119330119331119332119333119334119335119336119337119338119339119340119341119342119343119344119345119346119347119348119349119350119351119352119353119354119355119356119357119358119359119360119361119362119363119364119365119366119367119368119369119370119371119372119373119374119375119376119377119378119379119380119381119382119383119384119385119386119387119388119389119390119391119392119393119394119395119396119397119398119399119400119401119402119403119404119405119406119407119408119409119410119411119412119413119414119415119416119417119418119419119420119421119422119423119424119425119426119427119428119429119430119431119432119433119434119435119436119437119438119439119440119441119442119443119444119445119446119447119448119449119450119451119452119453119454119455119456119457119458119459119460119461119462119463119464119465119466119467119468119469119470119471119472119473119474119475119476119477119478119479119480119481119482119483119484119485119486119487119488119489119490119491119492119493119494119495119496119497119498119499119500119501119502119503119504119505119506119507119508119509119510119511119512119513119514119515119516119517119518119519119520119521119522119523119524119525119526119527119528119529119530119531119532119533119534119535119536119537119538119539119540119541119542119543119544119545119546119547119548119549119550119551119552119553119554119555119556119557119558119559119560119561119562119563119564119565119566119567119568119569119570119571119572119573119574119575119576119577119578119579119580119581119582119583119584119585119586119587119588119589119590119591119592119593119594119595119596119597119598119599119600119601119602119603119604119605119606119607119608119609119610119611119612119613119614119615119616119617119618119619119620119621119622119623119624119625119626119627119628119629119630119631119632119633119634119635119636119637119638119639119640119641119642119643119644119645119646119647119648119649119650119651119652119653119654119655119656119657119658119659119660119661119662
  1. (window["webpackJsonp"] = window["webpackJsonp"] || []).push([["vendor"],{
  2. /***/ "/d8p":
  3. /*!*****************************************************************!*\
  4. !*** ./node_modules/rxjs/_esm2015/internal/operators/repeat.js ***!
  5. \*****************************************************************/
  6. /*! exports provided: repeat */
  7. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8. "use strict";
  9. __webpack_require__.r(__webpack_exports__);
  10. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repeat", function() { return repeat; });
  11. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  12. /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/empty */ "EY2u");
  13. function repeat(count = -1) {
  14. return (source) => {
  15. if (count === 0) {
  16. return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_1__["empty"])();
  17. }
  18. else if (count < 0) {
  19. return source.lift(new RepeatOperator(-1, source));
  20. }
  21. else {
  22. return source.lift(new RepeatOperator(count - 1, source));
  23. }
  24. };
  25. }
  26. class RepeatOperator {
  27. constructor(count, source) {
  28. this.count = count;
  29. this.source = source;
  30. }
  31. call(subscriber, source) {
  32. return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source));
  33. }
  34. }
  35. class RepeatSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  36. constructor(destination, count, source) {
  37. super(destination);
  38. this.count = count;
  39. this.source = source;
  40. }
  41. complete() {
  42. if (!this.isStopped) {
  43. const { source, count } = this;
  44. if (count === 0) {
  45. return super.complete();
  46. }
  47. else if (count > -1) {
  48. this.count = count - 1;
  49. }
  50. source.subscribe(this._unsubscribeAndRecycle());
  51. }
  52. }
  53. }
  54. //# sourceMappingURL=repeat.js.map
  55. /***/ }),
  56. /***/ "/uUt":
  57. /*!*******************************************************************************!*\
  58. !*** ./node_modules/rxjs/_esm2015/internal/operators/distinctUntilChanged.js ***!
  59. \*******************************************************************************/
  60. /*! exports provided: distinctUntilChanged */
  61. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  62. "use strict";
  63. __webpack_require__.r(__webpack_exports__);
  64. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinctUntilChanged", function() { return distinctUntilChanged; });
  65. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  66. function distinctUntilChanged(compare, keySelector) {
  67. return (source) => source.lift(new DistinctUntilChangedOperator(compare, keySelector));
  68. }
  69. class DistinctUntilChangedOperator {
  70. constructor(compare, keySelector) {
  71. this.compare = compare;
  72. this.keySelector = keySelector;
  73. }
  74. call(subscriber, source) {
  75. return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));
  76. }
  77. }
  78. class DistinctUntilChangedSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  79. constructor(destination, compare, keySelector) {
  80. super(destination);
  81. this.keySelector = keySelector;
  82. this.hasKey = false;
  83. if (typeof compare === 'function') {
  84. this.compare = compare;
  85. }
  86. }
  87. compare(x, y) {
  88. return x === y;
  89. }
  90. _next(value) {
  91. let key;
  92. try {
  93. const { keySelector } = this;
  94. key = keySelector ? keySelector(value) : value;
  95. }
  96. catch (err) {
  97. return this.destination.error(err);
  98. }
  99. let result = false;
  100. if (this.hasKey) {
  101. try {
  102. const { compare } = this;
  103. result = compare(this.key, key);
  104. }
  105. catch (err) {
  106. return this.destination.error(err);
  107. }
  108. }
  109. else {
  110. this.hasKey = true;
  111. }
  112. if (!result) {
  113. this.key = key;
  114. this.destination.next(value);
  115. }
  116. }
  117. }
  118. //# sourceMappingURL=distinctUntilChanged.js.map
  119. /***/ }),
  120. /***/ "02Lk":
  121. /*!*******************************************************************!*\
  122. !*** ./node_modules/rxjs/_esm2015/internal/operators/distinct.js ***!
  123. \*******************************************************************/
  124. /*! exports provided: distinct, DistinctSubscriber */
  125. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  126. "use strict";
  127. __webpack_require__.r(__webpack_exports__);
  128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinct", function() { return distinct; });
  129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DistinctSubscriber", function() { return DistinctSubscriber; });
  130. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  131. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  132. function distinct(keySelector, flushes) {
  133. return (source) => source.lift(new DistinctOperator(keySelector, flushes));
  134. }
  135. class DistinctOperator {
  136. constructor(keySelector, flushes) {
  137. this.keySelector = keySelector;
  138. this.flushes = flushes;
  139. }
  140. call(subscriber, source) {
  141. return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));
  142. }
  143. }
  144. class DistinctSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  145. constructor(destination, keySelector, flushes) {
  146. super(destination);
  147. this.keySelector = keySelector;
  148. this.values = new Set();
  149. if (flushes) {
  150. this.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, flushes));
  151. }
  152. }
  153. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  154. this.values.clear();
  155. }
  156. notifyError(error, innerSub) {
  157. this._error(error);
  158. }
  159. _next(value) {
  160. if (this.keySelector) {
  161. this._useKeySelector(value);
  162. }
  163. else {
  164. this._finalizeNext(value, value);
  165. }
  166. }
  167. _useKeySelector(value) {
  168. let key;
  169. const { destination } = this;
  170. try {
  171. key = this.keySelector(value);
  172. }
  173. catch (err) {
  174. destination.error(err);
  175. return;
  176. }
  177. this._finalizeNext(key, value);
  178. }
  179. _finalizeNext(key, value) {
  180. const { values } = this;
  181. if (!values.has(key)) {
  182. values.add(key);
  183. this.destination.next(value);
  184. }
  185. }
  186. }
  187. //# sourceMappingURL=distinct.js.map
  188. /***/ }),
  189. /***/ "04ZW":
  190. /*!****************************************************************************!*\
  191. !*** ./node_modules/rxjs/_esm2015/internal/observable/fromEventPattern.js ***!
  192. \****************************************************************************/
  193. /*! exports provided: fromEventPattern */
  194. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  195. "use strict";
  196. __webpack_require__.r(__webpack_exports__);
  197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromEventPattern", function() { return fromEventPattern; });
  198. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  199. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  200. /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isFunction */ "n6bG");
  201. /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operators/map */ "lJxs");
  202. function fromEventPattern(addHandler, removeHandler, resultSelector) {
  203. if (resultSelector) {
  204. return fromEventPattern(addHandler, removeHandler).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_3__["map"])(args => Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(args) ? resultSelector(...args) : resultSelector(args)));
  205. }
  206. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  207. const handler = (...e) => subscriber.next(e.length === 1 ? e[0] : e);
  208. let retValue;
  209. try {
  210. retValue = addHandler(handler);
  211. }
  212. catch (err) {
  213. subscriber.error(err);
  214. return undefined;
  215. }
  216. if (!Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(removeHandler)) {
  217. return undefined;
  218. }
  219. return () => removeHandler(handler, retValue);
  220. });
  221. }
  222. //# sourceMappingURL=fromEventPattern.js.map
  223. /***/ }),
  224. /***/ "05l1":
  225. /*!************************************************************************!*\
  226. !*** ./node_modules/rxjs/_esm2015/internal/operators/publishReplay.js ***!
  227. \************************************************************************/
  228. /*! exports provided: publishReplay */
  229. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  230. "use strict";
  231. __webpack_require__.r(__webpack_exports__);
  232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publishReplay", function() { return publishReplay; });
  233. /* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ReplaySubject */ "jtHE");
  234. /* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./multicast */ "oB13");
  235. function publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {
  236. if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {
  237. scheduler = selectorOrScheduler;
  238. }
  239. const selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;
  240. const subject = new _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__["ReplaySubject"](bufferSize, windowTime, scheduler);
  241. return (source) => Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(() => subject, selector)(source);
  242. }
  243. //# sourceMappingURL=publishReplay.js.map
  244. /***/ }),
  245. /***/ "0EQZ":
  246. /*!************************************************************************!*\
  247. !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/collections.js ***!
  248. \************************************************************************/
  249. /*! exports provided: ArrayDataSource, DataSource, SelectionModel, UniqueSelectionDispatcher, getMultipleValuesInSingleSelectionError, isDataSource */
  250. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  251. "use strict";
  252. __webpack_require__.r(__webpack_exports__);
  253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ArrayDataSource", function() { return ArrayDataSource; });
  254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DataSource", function() { return DataSource; });
  255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectionModel", function() { return SelectionModel; });
  256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UniqueSelectionDispatcher", function() { return UniqueSelectionDispatcher; });
  257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getMultipleValuesInSingleSelectionError", function() { return getMultipleValuesInSingleSelectionError; });
  258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDataSource", function() { return isDataSource; });
  259. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp");
  260. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
  261. /**
  262. * @fileoverview added by tsickle
  263. * Generated from: src/cdk/collections/data-source.ts
  264. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  265. */
  266. /**
  267. * @license
  268. * Copyright Google LLC All Rights Reserved.
  269. *
  270. * Use of this source code is governed by an MIT-style license that can be
  271. * found in the LICENSE file at https://angular.io/license
  272. */
  273. /**
  274. * @abstract
  275. * @template T
  276. */
  277. class DataSource {
  278. }
  279. if (false) {}
  280. /**
  281. * Checks whether an object is a data source.
  282. * @param {?} value
  283. * @return {?}
  284. */
  285. function isDataSource(value) {
  286. // Check if the value is a DataSource by observing if it has a connect function. Cannot
  287. // be checked as an `instanceof DataSource` since people could create their own sources
  288. // that match the interface, but don't extend DataSource.
  289. return value && typeof value.connect === 'function';
  290. }
  291. /**
  292. * @fileoverview added by tsickle
  293. * Generated from: src/cdk/collections/array-data-source.ts
  294. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  295. */
  296. /**
  297. * DataSource wrapper for a native array.
  298. * @template T
  299. */
  300. class ArrayDataSource extends DataSource {
  301. /**
  302. * @param {?} _data
  303. */
  304. constructor(_data) {
  305. super();
  306. this._data = _data;
  307. }
  308. /**
  309. * @return {?}
  310. */
  311. connect() {
  312. return Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["isObservable"])(this._data) ? this._data : Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["of"])(this._data);
  313. }
  314. /**
  315. * @return {?}
  316. */
  317. disconnect() { }
  318. }
  319. if (false) {}
  320. /**
  321. * @fileoverview added by tsickle
  322. * Generated from: src/cdk/collections/collection-viewer.ts
  323. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  324. */
  325. /**
  326. * @license
  327. * Copyright Google LLC All Rights Reserved.
  328. *
  329. * Use of this source code is governed by an MIT-style license that can be
  330. * found in the LICENSE file at https://angular.io/license
  331. */
  332. /**
  333. * Interface for any component that provides a view of some data collection and wants to provide
  334. * information regarding the view and any changes made.
  335. * @record
  336. */
  337. function CollectionViewer() { }
  338. if (false) {}
  339. /**
  340. * @fileoverview added by tsickle
  341. * Generated from: src/cdk/collections/selection-model.ts
  342. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  343. */
  344. /**
  345. * Class to be used to power selecting one or more options from a list.
  346. * @template T
  347. */
  348. class SelectionModel {
  349. /**
  350. * @param {?=} _multiple
  351. * @param {?=} initiallySelectedValues
  352. * @param {?=} _emitChanges
  353. */
  354. constructor(_multiple = false, initiallySelectedValues, _emitChanges = true) {
  355. this._multiple = _multiple;
  356. this._emitChanges = _emitChanges;
  357. /**
  358. * Currently-selected values.
  359. */
  360. this._selection = new Set();
  361. /**
  362. * Keeps track of the deselected options that haven't been emitted by the change event.
  363. */
  364. this._deselectedToEmit = [];
  365. /**
  366. * Keeps track of the selected options that haven't been emitted by the change event.
  367. */
  368. this._selectedToEmit = [];
  369. /**
  370. * Event emitted when the value has changed.
  371. */
  372. this.changed = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  373. if (initiallySelectedValues && initiallySelectedValues.length) {
  374. if (_multiple) {
  375. initiallySelectedValues.forEach((/**
  376. * @param {?} value
  377. * @return {?}
  378. */
  379. value => this._markSelected(value)));
  380. }
  381. else {
  382. this._markSelected(initiallySelectedValues[0]);
  383. }
  384. // Clear the array in order to avoid firing the change event for preselected values.
  385. this._selectedToEmit.length = 0;
  386. }
  387. }
  388. /**
  389. * Selected values.
  390. * @return {?}
  391. */
  392. get selected() {
  393. if (!this._selected) {
  394. this._selected = Array.from(this._selection.values());
  395. }
  396. return this._selected;
  397. }
  398. /**
  399. * Selects a value or an array of values.
  400. * @param {...?} values
  401. * @return {?}
  402. */
  403. select(...values) {
  404. this._verifyValueAssignment(values);
  405. values.forEach((/**
  406. * @param {?} value
  407. * @return {?}
  408. */
  409. value => this._markSelected(value)));
  410. this._emitChangeEvent();
  411. }
  412. /**
  413. * Deselects a value or an array of values.
  414. * @param {...?} values
  415. * @return {?}
  416. */
  417. deselect(...values) {
  418. this._verifyValueAssignment(values);
  419. values.forEach((/**
  420. * @param {?} value
  421. * @return {?}
  422. */
  423. value => this._unmarkSelected(value)));
  424. this._emitChangeEvent();
  425. }
  426. /**
  427. * Toggles a value between selected and deselected.
  428. * @param {?} value
  429. * @return {?}
  430. */
  431. toggle(value) {
  432. this.isSelected(value) ? this.deselect(value) : this.select(value);
  433. }
  434. /**
  435. * Clears all of the selected values.
  436. * @return {?}
  437. */
  438. clear() {
  439. this._unmarkAll();
  440. this._emitChangeEvent();
  441. }
  442. /**
  443. * Determines whether a value is selected.
  444. * @param {?} value
  445. * @return {?}
  446. */
  447. isSelected(value) {
  448. return this._selection.has(value);
  449. }
  450. /**
  451. * Determines whether the model does not have a value.
  452. * @return {?}
  453. */
  454. isEmpty() {
  455. return this._selection.size === 0;
  456. }
  457. /**
  458. * Determines whether the model has a value.
  459. * @return {?}
  460. */
  461. hasValue() {
  462. return !this.isEmpty();
  463. }
  464. /**
  465. * Sorts the selected values based on a predicate function.
  466. * @param {?=} predicate
  467. * @return {?}
  468. */
  469. sort(predicate) {
  470. if (this._multiple && this.selected) {
  471. (/** @type {?} */ (this._selected)).sort(predicate);
  472. }
  473. }
  474. /**
  475. * Gets whether multiple values can be selected.
  476. * @return {?}
  477. */
  478. isMultipleSelection() {
  479. return this._multiple;
  480. }
  481. /**
  482. * Emits a change event and clears the records of selected and deselected values.
  483. * @private
  484. * @return {?}
  485. */
  486. _emitChangeEvent() {
  487. // Clear the selected values so they can be re-cached.
  488. this._selected = null;
  489. if (this._selectedToEmit.length || this._deselectedToEmit.length) {
  490. this.changed.next({
  491. source: this,
  492. added: this._selectedToEmit,
  493. removed: this._deselectedToEmit
  494. });
  495. this._deselectedToEmit = [];
  496. this._selectedToEmit = [];
  497. }
  498. }
  499. /**
  500. * Selects a value.
  501. * @private
  502. * @param {?} value
  503. * @return {?}
  504. */
  505. _markSelected(value) {
  506. if (!this.isSelected(value)) {
  507. if (!this._multiple) {
  508. this._unmarkAll();
  509. }
  510. this._selection.add(value);
  511. if (this._emitChanges) {
  512. this._selectedToEmit.push(value);
  513. }
  514. }
  515. }
  516. /**
  517. * Deselects a value.
  518. * @private
  519. * @param {?} value
  520. * @return {?}
  521. */
  522. _unmarkSelected(value) {
  523. if (this.isSelected(value)) {
  524. this._selection.delete(value);
  525. if (this._emitChanges) {
  526. this._deselectedToEmit.push(value);
  527. }
  528. }
  529. }
  530. /**
  531. * Clears out the selected values.
  532. * @private
  533. * @return {?}
  534. */
  535. _unmarkAll() {
  536. if (!this.isEmpty()) {
  537. this._selection.forEach((/**
  538. * @param {?} value
  539. * @return {?}
  540. */
  541. value => this._unmarkSelected(value)));
  542. }
  543. }
  544. /**
  545. * Verifies the value assignment and throws an error if the specified value array is
  546. * including multiple values while the selection model is not supporting multiple values.
  547. * @private
  548. * @param {?} values
  549. * @return {?}
  550. */
  551. _verifyValueAssignment(values) {
  552. if (values.length > 1 && !this._multiple) {
  553. throw getMultipleValuesInSingleSelectionError();
  554. }
  555. }
  556. }
  557. if (false) {}
  558. /**
  559. * Event emitted when the value of a MatSelectionModel has changed.
  560. * \@docs-private
  561. * @record
  562. * @template T
  563. */
  564. function SelectionChange() { }
  565. if (false) {}
  566. /**
  567. * Returns an error that reports that multiple values are passed into a selection model
  568. * with a single value.
  569. * \@docs-private
  570. * @return {?}
  571. */
  572. function getMultipleValuesInSingleSelectionError() {
  573. return Error('Cannot pass multiple values into SelectionModel with single-value mode.');
  574. }
  575. /**
  576. * @fileoverview added by tsickle
  577. * Generated from: src/cdk/collections/unique-selection-dispatcher.ts
  578. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  579. */
  580. /**
  581. * Class to coordinate unique selection based on name.
  582. * Intended to be consumed as an Angular service.
  583. * This service is needed because native radio change events are only fired on the item currently
  584. * being selected, and we still need to uncheck the previous selection.
  585. *
  586. * This service does not *store* any IDs and names because they may change at any time, so it is
  587. * less error-prone if they are simply passed through when the events occur.
  588. */
  589. class UniqueSelectionDispatcher {
  590. constructor() {
  591. this._listeners = [];
  592. }
  593. /**
  594. * Notify other items that selection for the given name has been set.
  595. * @param {?} id ID of the item.
  596. * @param {?} name Name of the item.
  597. * @return {?}
  598. */
  599. notify(id, name) {
  600. for (let listener of this._listeners) {
  601. listener(id, name);
  602. }
  603. }
  604. /**
  605. * Listen for future changes to item selection.
  606. * @param {?} listener
  607. * @return {?} Function used to deregister listener
  608. */
  609. listen(listener) {
  610. this._listeners.push(listener);
  611. return (/**
  612. * @return {?}
  613. */
  614. () => {
  615. this._listeners = this._listeners.filter((/**
  616. * @param {?} registered
  617. * @return {?}
  618. */
  619. (registered) => {
  620. return listener !== registered;
  621. }));
  622. });
  623. }
  624. /**
  625. * @return {?}
  626. */
  627. ngOnDestroy() {
  628. this._listeners = [];
  629. }
  630. }
  631. UniqueSelectionDispatcher.ɵfac = function UniqueSelectionDispatcher_Factory(t) { return new (t || UniqueSelectionDispatcher)(); };
  632. /** @nocollapse */ UniqueSelectionDispatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: function UniqueSelectionDispatcher_Factory() { return new UniqueSelectionDispatcher(); }, token: UniqueSelectionDispatcher, providedIn: "root" });
  633. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](UniqueSelectionDispatcher, [{
  634. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  635. args: [{ providedIn: 'root' }]
  636. }], function () { return []; }, null); })();
  637. if (false) {}
  638. /**
  639. * @fileoverview added by tsickle
  640. * Generated from: src/cdk/collections/tree-adapter.ts
  641. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  642. */
  643. /**
  644. * @license
  645. * Copyright Google LLC All Rights Reserved.
  646. *
  647. * Use of this source code is governed by an MIT-style license that can be
  648. * found in the LICENSE file at https://angular.io/license
  649. */
  650. /**
  651. * Interface for a class that can flatten hierarchical structured data and re-expand the flattened
  652. * data back into its original structure. Should be used in conjunction with the cdk-tree.
  653. * @record
  654. * @template T
  655. */
  656. function TreeDataNodeFlattener() { }
  657. if (false) {}
  658. /**
  659. * @fileoverview added by tsickle
  660. * Generated from: src/cdk/collections/public-api.ts
  661. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  662. */
  663. /**
  664. * Generated bundle index. Do not edit.
  665. */
  666. //# sourceMappingURL=collections.js.map
  667. /***/ }),
  668. /***/ "0EUg":
  669. /*!********************************************************************!*\
  670. !*** ./node_modules/rxjs/_esm2015/internal/operators/concatAll.js ***!
  671. \********************************************************************/
  672. /*! exports provided: concatAll */
  673. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  674. "use strict";
  675. __webpack_require__.r(__webpack_exports__);
  676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatAll", function() { return concatAll; });
  677. /* harmony import */ var _mergeAll__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeAll */ "bHdf");
  678. function concatAll() {
  679. return Object(_mergeAll__WEBPACK_IMPORTED_MODULE_0__["mergeAll"])(1);
  680. }
  681. //# sourceMappingURL=concatAll.js.map
  682. /***/ }),
  683. /***/ "0Pi8":
  684. /*!******************************************************************!*\
  685. !*** ./node_modules/rxjs/_esm2015/internal/operators/endWith.js ***!
  686. \******************************************************************/
  687. /*! exports provided: endWith */
  688. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  689. "use strict";
  690. __webpack_require__.r(__webpack_exports__);
  691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "endWith", function() { return endWith; });
  692. /* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/concat */ "GyhO");
  693. /* harmony import */ var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/of */ "LRne");
  694. function endWith(...array) {
  695. return (source) => Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(source, Object(_observable_of__WEBPACK_IMPORTED_MODULE_1__["of"])(...array));
  696. }
  697. //# sourceMappingURL=endWith.js.map
  698. /***/ }),
  699. /***/ "128B":
  700. /*!*****************************************************************!*\
  701. !*** ./node_modules/rxjs/_esm2015/internal/operators/reduce.js ***!
  702. \*****************************************************************/
  703. /*! exports provided: reduce */
  704. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  705. "use strict";
  706. __webpack_require__.r(__webpack_exports__);
  707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "reduce", function() { return reduce; });
  708. /* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scan */ "Kqap");
  709. /* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./takeLast */ "BFxc");
  710. /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./defaultIfEmpty */ "xbPD");
  711. /* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/pipe */ "mCNh");
  712. function reduce(accumulator, seed) {
  713. if (arguments.length >= 2) {
  714. return function reduceOperatorFunctionWithSeed(source) {
  715. return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipe"])(Object(_scan__WEBPACK_IMPORTED_MODULE_0__["scan"])(accumulator, seed), Object(_takeLast__WEBPACK_IMPORTED_MODULE_1__["takeLast"])(1), Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_2__["defaultIfEmpty"])(seed))(source);
  716. };
  717. }
  718. return function reduceOperatorFunction(source) {
  719. return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipe"])(Object(_scan__WEBPACK_IMPORTED_MODULE_0__["scan"])((acc, value, index) => accumulator(acc, value, index + 1)), Object(_takeLast__WEBPACK_IMPORTED_MODULE_1__["takeLast"])(1))(source);
  720. };
  721. }
  722. //# sourceMappingURL=reduce.js.map
  723. /***/ }),
  724. /***/ "1G5W":
  725. /*!********************************************************************!*\
  726. !*** ./node_modules/rxjs/_esm2015/internal/operators/takeUntil.js ***!
  727. \********************************************************************/
  728. /*! exports provided: takeUntil */
  729. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  730. "use strict";
  731. __webpack_require__.r(__webpack_exports__);
  732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeUntil", function() { return takeUntil; });
  733. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  734. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  735. function takeUntil(notifier) {
  736. return (source) => source.lift(new TakeUntilOperator(notifier));
  737. }
  738. class TakeUntilOperator {
  739. constructor(notifier) {
  740. this.notifier = notifier;
  741. }
  742. call(subscriber, source) {
  743. const takeUntilSubscriber = new TakeUntilSubscriber(subscriber);
  744. const notifierSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(takeUntilSubscriber, this.notifier);
  745. if (notifierSubscription && !takeUntilSubscriber.seenValue) {
  746. takeUntilSubscriber.add(notifierSubscription);
  747. return source.subscribe(takeUntilSubscriber);
  748. }
  749. return takeUntilSubscriber;
  750. }
  751. }
  752. class TakeUntilSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  753. constructor(destination) {
  754. super(destination);
  755. this.seenValue = false;
  756. }
  757. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  758. this.seenValue = true;
  759. this.complete();
  760. }
  761. notifyComplete() {
  762. }
  763. }
  764. //# sourceMappingURL=takeUntil.js.map
  765. /***/ }),
  766. /***/ "1Ykd":
  767. /*!*********************************************************************!*\
  768. !*** ./node_modules/rxjs/_esm2015/internal/operators/sampleTime.js ***!
  769. \*********************************************************************/
  770. /*! exports provided: sampleTime */
  771. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  772. "use strict";
  773. __webpack_require__.r(__webpack_exports__);
  774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sampleTime", function() { return sampleTime; });
  775. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  776. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  777. function sampleTime(period, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"]) {
  778. return (source) => source.lift(new SampleTimeOperator(period, scheduler));
  779. }
  780. class SampleTimeOperator {
  781. constructor(period, scheduler) {
  782. this.period = period;
  783. this.scheduler = scheduler;
  784. }
  785. call(subscriber, source) {
  786. return source.subscribe(new SampleTimeSubscriber(subscriber, this.period, this.scheduler));
  787. }
  788. }
  789. class SampleTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  790. constructor(destination, period, scheduler) {
  791. super(destination);
  792. this.period = period;
  793. this.scheduler = scheduler;
  794. this.hasValue = false;
  795. this.add(scheduler.schedule(dispatchNotification, period, { subscriber: this, period }));
  796. }
  797. _next(value) {
  798. this.lastValue = value;
  799. this.hasValue = true;
  800. }
  801. notifyNext() {
  802. if (this.hasValue) {
  803. this.hasValue = false;
  804. this.destination.next(this.lastValue);
  805. }
  806. }
  807. }
  808. function dispatchNotification(state) {
  809. let { subscriber, period } = state;
  810. subscriber.notifyNext();
  811. this.schedule(state, period);
  812. }
  813. //# sourceMappingURL=sampleTime.js.map
  814. /***/ }),
  815. /***/ "1kSV":
  816. /*!***************************************************************************************!*\
  817. !*** ./node_modules/@ng-bootstrap/ng-bootstrap/__ivy_ngcc__/fesm2015/ng-bootstrap.js ***!
  818. \***************************************************************************************/
  819. /*! exports provided: ModalDismissReasons, NgbAccordion, NgbAccordionConfig, NgbAccordionModule, NgbActiveModal, NgbAlert, NgbAlertConfig, NgbAlertModule, NgbButtonLabel, NgbButtonsModule, NgbCalendar, NgbCalendarGregorian, NgbCalendarHebrew, NgbCalendarIslamicCivil, NgbCalendarIslamicUmalqura, NgbCalendarPersian, NgbCarousel, NgbCarouselConfig, NgbCarouselModule, NgbCheckBox, NgbCollapse, NgbCollapseConfig, NgbCollapseModule, NgbConfig, NgbDate, NgbDateAdapter, NgbDateNativeAdapter, NgbDateNativeUTCAdapter, NgbDateParserFormatter, NgbDatepicker, NgbDatepickerConfig, NgbDatepickerContent, NgbDatepickerI18n, NgbDatepickerI18nHebrew, NgbDatepickerKeyboardService, NgbDatepickerModule, NgbDatepickerMonth, NgbDropdown, NgbDropdownAnchor, NgbDropdownConfig, NgbDropdownItem, NgbDropdownMenu, NgbDropdownModule, NgbDropdownToggle, NgbHighlight, NgbInputDatepicker, NgbInputDatepickerConfig, NgbModal, NgbModalConfig, NgbModalModule, NgbModalRef, NgbModule, NgbNav, NgbNavConfig, NgbNavContent, NgbNavItem, NgbNavLink, NgbNavModule, NgbNavOutlet, NgbNavPane, NgbNavbar, NgbPagination, NgbPaginationConfig, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationModule, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious, NgbPanel, NgbPanelContent, NgbPanelHeader, NgbPanelTitle, NgbPanelToggle, NgbPopover, NgbPopoverConfig, NgbPopoverModule, NgbProgressbar, NgbProgressbarConfig, NgbProgressbarModule, NgbRadio, NgbRadioGroup, NgbRating, NgbRatingConfig, NgbRatingModule, NgbSlide, NgbSlideEventDirection, NgbSlideEventSource, NgbTimeAdapter, NgbTimepicker, NgbTimepickerConfig, NgbTimepickerI18n, NgbTimepickerModule, NgbToast, NgbToastConfig, NgbToastHeader, NgbToastModule, NgbTooltip, NgbTooltipConfig, NgbTooltipModule, NgbTypeahead, NgbTypeaheadConfig, NgbTypeaheadModule, ɵa, ɵb, ɵba, ɵbb, ɵbc, ɵc, ɵd, ɵe, ɵf, ɵg, ɵh, ɵi, ɵj, ɵk, ɵl, ɵm, ɵn, ɵo, ɵp, ɵq, ɵr, ɵs, ɵt, ɵu, ɵv, ɵw, ɵx, ɵy, ɵz */
  820. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  821. "use strict";
  822. __webpack_require__.r(__webpack_exports__);
  823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModalDismissReasons", function() { return ModalDismissReasons; });
  824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbAccordion", function() { return NgbAccordion; });
  825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbAccordionConfig", function() { return NgbAccordionConfig; });
  826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbAccordionModule", function() { return NgbAccordionModule; });
  827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbActiveModal", function() { return NgbActiveModal; });
  828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbAlert", function() { return NgbAlert; });
  829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbAlertConfig", function() { return NgbAlertConfig; });
  830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbAlertModule", function() { return NgbAlertModule; });
  831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbButtonLabel", function() { return NgbButtonLabel; });
  832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbButtonsModule", function() { return NgbButtonsModule; });
  833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCalendar", function() { return NgbCalendar; });
  834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCalendarGregorian", function() { return NgbCalendarGregorian; });
  835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCalendarHebrew", function() { return NgbCalendarHebrew; });
  836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCalendarIslamicCivil", function() { return NgbCalendarIslamicCivil; });
  837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCalendarIslamicUmalqura", function() { return NgbCalendarIslamicUmalqura; });
  838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCalendarPersian", function() { return NgbCalendarPersian; });
  839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCarousel", function() { return NgbCarousel; });
  840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCarouselConfig", function() { return NgbCarouselConfig; });
  841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCarouselModule", function() { return NgbCarouselModule; });
  842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCheckBox", function() { return NgbCheckBox; });
  843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCollapse", function() { return NgbCollapse; });
  844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCollapseConfig", function() { return NgbCollapseConfig; });
  845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbCollapseModule", function() { return NgbCollapseModule; });
  846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbConfig", function() { return NgbConfig; });
  847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDate", function() { return NgbDate; });
  848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDateAdapter", function() { return NgbDateAdapter; });
  849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDateNativeAdapter", function() { return NgbDateNativeAdapter; });
  850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDateNativeUTCAdapter", function() { return NgbDateNativeUTCAdapter; });
  851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDateParserFormatter", function() { return NgbDateParserFormatter; });
  852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDatepicker", function() { return NgbDatepicker; });
  853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDatepickerConfig", function() { return NgbDatepickerConfig; });
  854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDatepickerContent", function() { return NgbDatepickerContent; });
  855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDatepickerI18n", function() { return NgbDatepickerI18n; });
  856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDatepickerI18nHebrew", function() { return NgbDatepickerI18nHebrew; });
  857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDatepickerKeyboardService", function() { return NgbDatepickerKeyboardService; });
  858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDatepickerModule", function() { return NgbDatepickerModule; });
  859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDatepickerMonth", function() { return NgbDatepickerMonth; });
  860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDropdown", function() { return NgbDropdown; });
  861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDropdownAnchor", function() { return NgbDropdownAnchor; });
  862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDropdownConfig", function() { return NgbDropdownConfig; });
  863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDropdownItem", function() { return NgbDropdownItem; });
  864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDropdownMenu", function() { return NgbDropdownMenu; });
  865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDropdownModule", function() { return NgbDropdownModule; });
  866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbDropdownToggle", function() { return NgbDropdownToggle; });
  867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbHighlight", function() { return NgbHighlight; });
  868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbInputDatepicker", function() { return NgbInputDatepicker; });
  869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbInputDatepickerConfig", function() { return NgbInputDatepickerConfig; });
  870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbModal", function() { return NgbModal; });
  871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbModalConfig", function() { return NgbModalConfig; });
  872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbModalModule", function() { return NgbModalModule; });
  873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbModalRef", function() { return NgbModalRef; });
  874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbModule", function() { return NgbModule; });
  875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNav", function() { return NgbNav; });
  876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNavConfig", function() { return NgbNavConfig; });
  877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNavContent", function() { return NgbNavContent; });
  878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNavItem", function() { return NgbNavItem; });
  879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNavLink", function() { return NgbNavLink; });
  880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNavModule", function() { return NgbNavModule; });
  881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNavOutlet", function() { return NgbNavOutlet; });
  882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNavPane", function() { return NgbNavPane; });
  883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbNavbar", function() { return NgbNavbar; });
  884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPagination", function() { return NgbPagination; });
  885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPaginationConfig", function() { return NgbPaginationConfig; });
  886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPaginationEllipsis", function() { return NgbPaginationEllipsis; });
  887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPaginationFirst", function() { return NgbPaginationFirst; });
  888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPaginationLast", function() { return NgbPaginationLast; });
  889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPaginationModule", function() { return NgbPaginationModule; });
  890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPaginationNext", function() { return NgbPaginationNext; });
  891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPaginationNumber", function() { return NgbPaginationNumber; });
  892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPaginationPrevious", function() { return NgbPaginationPrevious; });
  893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPanel", function() { return NgbPanel; });
  894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPanelContent", function() { return NgbPanelContent; });
  895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPanelHeader", function() { return NgbPanelHeader; });
  896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPanelTitle", function() { return NgbPanelTitle; });
  897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPanelToggle", function() { return NgbPanelToggle; });
  898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPopover", function() { return NgbPopover; });
  899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPopoverConfig", function() { return NgbPopoverConfig; });
  900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbPopoverModule", function() { return NgbPopoverModule; });
  901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbProgressbar", function() { return NgbProgressbar; });
  902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbProgressbarConfig", function() { return NgbProgressbarConfig; });
  903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbProgressbarModule", function() { return NgbProgressbarModule; });
  904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbRadio", function() { return NgbRadio; });
  905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbRadioGroup", function() { return NgbRadioGroup; });
  906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbRating", function() { return NgbRating; });
  907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbRatingConfig", function() { return NgbRatingConfig; });
  908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbRatingModule", function() { return NgbRatingModule; });
  909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbSlide", function() { return NgbSlide; });
  910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbSlideEventDirection", function() { return NgbSlideEventDirection; });
  911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbSlideEventSource", function() { return NgbSlideEventSource; });
  912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTimeAdapter", function() { return NgbTimeAdapter; });
  913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTimepicker", function() { return NgbTimepicker; });
  914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTimepickerConfig", function() { return NgbTimepickerConfig; });
  915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTimepickerI18n", function() { return NgbTimepickerI18n; });
  916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTimepickerModule", function() { return NgbTimepickerModule; });
  917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbToast", function() { return NgbToast; });
  918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbToastConfig", function() { return NgbToastConfig; });
  919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbToastHeader", function() { return NgbToastHeader; });
  920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbToastModule", function() { return NgbToastModule; });
  921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTooltip", function() { return NgbTooltip; });
  922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTooltipConfig", function() { return NgbTooltipConfig; });
  923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTooltipModule", function() { return NgbTooltipModule; });
  924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTypeahead", function() { return NgbTypeahead; });
  925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTypeaheadConfig", function() { return NgbTypeaheadConfig; });
  926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgbTypeaheadModule", function() { return NgbTypeaheadModule; });
  927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵa", function() { return NGB_CAROUSEL_DIRECTIVES; });
  928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵb", function() { return NGB_DATEPICKER_VALUE_ACCESSOR; });
  929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵba", function() { return Live; });
  930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbb", function() { return NgbCalendarHijri; });
  931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbc", function() { return ContentRef; });
  932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵc", function() { return NGB_DATEPICKER_CALENDAR_FACTORY; });
  933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵd", function() { return NgbDatepickerDayView; });
  934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵe", function() { return NgbDatepickerNavigation; });
  935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵf", function() { return NgbDatepickerNavigationSelect; });
  936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵg", function() { return NGB_DATEPICKER_18N_FACTORY; });
  937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵh", function() { return NgbDatepickerI18nDefault; });
  938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵi", function() { return NGB_DATEPICKER_DATE_ADAPTER_FACTORY; });
  939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵj", function() { return NgbDateStructAdapter; });
  940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵk", function() { return NGB_DATEPICKER_PARSER_FORMATTER_FACTORY; });
  941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵl", function() { return NgbDateISOParserFormatter; });
  942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵm", function() { return NgbPopoverWindow; });
  943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵn", function() { return NGB_DATEPICKER_TIME_ADAPTER_FACTORY; });
  944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵo", function() { return NgbTimeStructAdapter; });
  945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵp", function() { return NGB_TIMEPICKER_I18N_FACTORY; });
  946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵq", function() { return NgbTimepickerI18nDefault; });
  947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵr", function() { return NgbTooltipWindow; });
  948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵs", function() { return NgbTypeaheadWindow; });
  949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵt", function() { return NgbDatepickerService; });
  950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵu", function() { return NgbModalBackdrop; });
  951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵv", function() { return NgbModalWindow; });
  952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵw", function() { return NgbModalStack; });
  953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵx", function() { return ScrollBar; });
  954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵy", function() { return ARIA_LIVE_DELAY; });
  955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵz", function() { return ARIA_LIVE_DELAY_FACTORY; });
  956. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  957. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
  958. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
  959. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  960. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
  961. function NgbAccordion_ng_template_0_ng_template_2_Template(rf, ctx) { }
  962. function NgbAccordion_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  963. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 3);
  964. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  965. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbAccordion_ng_template_0_ng_template_2_Template, 0, 0, "ng-template", 4);
  966. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  967. } if (rf & 2) {
  968. const panel_r3 = ctx.$implicit;
  969. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngbPanelToggle", panel_r3);
  970. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  971. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", panel_r3.title, "");
  972. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  973. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", panel_r3.titleTpl == null ? null : panel_r3.titleTpl.templateRef);
  974. } }
  975. function NgbAccordion_ng_template_2_ng_template_2_Template(rf, ctx) { }
  976. function NgbAccordion_ng_template_2_div_3_ng_template_2_Template(rf, ctx) { }
  977. function NgbAccordion_ng_template_2_div_3_Template(rf, ctx) { if (rf & 1) {
  978. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
  979. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 9);
  980. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbAccordion_ng_template_2_div_3_ng_template_2_Template, 0, 0, "ng-template", 4);
  981. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  982. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  983. } if (rf & 2) {
  984. const panel_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  985. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("id", panel_r5.id);
  986. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-labelledby", panel_r5.id + "-header");
  987. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  988. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (panel_r5.contentTpl == null ? null : panel_r5.contentTpl.templateRef) || null);
  989. } }
  990. const _c0 = function (a0, a1) { return { $implicit: a0, opened: a1 }; };
  991. function NgbAccordion_ng_template_2_Template(rf, ctx) { if (rf & 1) {
  992. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
  993. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 5);
  994. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbAccordion_ng_template_2_ng_template_2_Template, 0, 0, "ng-template", 6);
  995. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  996. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbAccordion_ng_template_2_div_3_Template, 3, 3, "div", 7);
  997. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  998. } if (rf & 2) {
  999. const panel_r5 = ctx.$implicit;
  1000. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1001. const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
  1002. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("card " + (panel_r5.cardClass || ""));
  1003. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1004. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("card-header " + (panel_r5.type ? "bg-" + panel_r5.type : ctx_r2.type ? "bg-" + ctx_r2.type : ""));
  1005. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate1"]("id", "", panel_r5.id, "-header");
  1006. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1007. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (panel_r5.headerTpl == null ? null : panel_r5.headerTpl.templateRef) || _r0)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](8, _c0, panel_r5, panel_r5.isOpen));
  1008. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1009. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r2.destroyOnHide || panel_r5.isOpen || panel_r5.transitionRunning);
  1010. } }
  1011. function NgbAlert_button_1_Template(rf, ctx) { if (rf & 1) {
  1012. const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1013. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 1);
  1014. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbAlert_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r2); const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r1.close(); });
  1015. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 2);
  1016. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "\u00D7");
  1017. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1018. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1019. } }
  1020. const _c5 = ["*"];
  1021. function NgbCarousel_li_1_Template(rf, ctx) { if (rf & 1) {
  1022. const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1023. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 6);
  1024. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbCarousel_li_1_Template_li_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r6); const slide_r4 = ctx.$implicit; const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r5.focus(); return ctx_r5.select(slide_r4.id, ctx_r5.NgbSlideEventSource.INDICATOR); });
  1025. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1026. } if (rf & 2) {
  1027. const slide_r4 = ctx.$implicit;
  1028. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1029. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("active", slide_r4.id === ctx_r0.activeId);
  1030. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-labelledby", "slide-" + slide_r4.id)("aria-controls", "slide-" + slide_r4.id)("aria-selected", slide_r4.id === ctx_r0.activeId);
  1031. } }
  1032. function NgbCarousel_div_3_ng_template_3_Template(rf, ctx) { }
  1033. function NgbCarousel_div_3_Template(rf, ctx) { if (rf & 1) {
  1034. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 7);
  1035. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 8);
  1036. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](2, 9);
  1037. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1038. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbCarousel_div_3_ng_template_3_Template, 0, 0, "ng-template", 10);
  1039. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1040. } if (rf & 2) {
  1041. const slide_r7 = ctx.$implicit;
  1042. const i_r8 = ctx.index;
  1043. const c_r9 = ctx.count;
  1044. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", "slide-" + slide_r7.id);
  1045. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  1046. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nExp"](i_r8 + 1)(c_r9);
  1047. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nApply"](2);
  1048. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1049. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", slide_r7.tplRef);
  1050. } }
  1051. function NgbCarousel_a_4_Template(rf, ctx) { if (rf & 1) {
  1052. const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1053. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 11);
  1054. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbCarousel_a_4_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.arrowLeft(); });
  1055. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 12);
  1056. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 8);
  1057. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](3, 13);
  1058. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1059. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1060. } }
  1061. function NgbCarousel_a_5_Template(rf, ctx) { if (rf & 1) {
  1062. const _r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1063. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 14);
  1064. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbCarousel_a_5_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r14); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r13.arrowRight(); });
  1065. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 15);
  1066. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 8);
  1067. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](3, 16);
  1068. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1069. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1070. } }
  1071. const _c12 = ["defaultDayTemplate"];
  1072. const _c13 = ["content"];
  1073. function NgbDatepicker_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  1074. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 7);
  1075. } if (rf & 2) {
  1076. const date_r8 = ctx.date;
  1077. const currentMonth_r9 = ctx.currentMonth;
  1078. const selected_r10 = ctx.selected;
  1079. const disabled_r11 = ctx.disabled;
  1080. const focused_r12 = ctx.focused;
  1081. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("date", date_r8)("currentMonth", currentMonth_r9)("selected", selected_r10)("disabled", disabled_r11)("focused", focused_r12);
  1082. } }
  1083. function NgbDatepicker_ng_template_2_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
  1084. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
  1085. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1086. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1087. } if (rf & 2) {
  1088. const month_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  1089. const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1090. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1091. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", ctx_r16.i18n.getMonthFullName(month_r14.number, month_r14.year), " ", ctx_r16.i18n.getYearNumerals(month_r14.year), " ");
  1092. } }
  1093. function NgbDatepicker_ng_template_2_div_0_Template(rf, ctx) { if (rf & 1) {
  1094. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
  1095. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbDatepicker_ng_template_2_div_0_div_1_Template, 2, 2, "div", 10);
  1096. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "ngb-datepicker-month", 11);
  1097. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1098. } if (rf & 2) {
  1099. const month_r14 = ctx.$implicit;
  1100. const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1101. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1102. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r13.navigation === "none" || ctx_r13.displayMonths > 1 && ctx_r13.navigation === "select");
  1103. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1104. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("month", month_r14.firstDate);
  1105. } }
  1106. function NgbDatepicker_ng_template_2_Template(rf, ctx) { if (rf & 1) {
  1107. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbDatepicker_ng_template_2_div_0_Template, 3, 2, "div", 8);
  1108. } if (rf & 2) {
  1109. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1110. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r3.model.months);
  1111. } }
  1112. function NgbDatepicker_ngb_datepicker_navigation_5_Template(rf, ctx) { if (rf & 1) {
  1113. const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1114. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ngb-datepicker-navigation", 13);
  1115. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("navigate", function NgbDatepicker_ngb_datepicker_navigation_5_Template_ngb_datepicker_navigation_navigate_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r18.onNavigateEvent($event); })("select", function NgbDatepicker_ngb_datepicker_navigation_5_Template_ngb_datepicker_navigation_select_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.onNavigateDateSelect($event); });
  1116. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1117. } if (rf & 2) {
  1118. const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1119. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("date", ctx_r4.model.firstDate)("months", ctx_r4.model.months)("disabled", ctx_r4.model.disabled)("showSelect", ctx_r4.model.navigation === "select")("prevDisabled", ctx_r4.model.prevDisabled)("nextDisabled", ctx_r4.model.nextDisabled)("selectBoxes", ctx_r4.model.selectBoxes);
  1120. } }
  1121. function NgbDatepicker_ng_template_8_Template(rf, ctx) { }
  1122. function NgbDatepicker_ng_template_9_Template(rf, ctx) { }
  1123. function NgbDatepickerMonth_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
  1124. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 5);
  1125. } }
  1126. function NgbDatepickerMonth_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
  1127. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 6);
  1128. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1129. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1130. } if (rf & 2) {
  1131. const w_r4 = ctx.$implicit;
  1132. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1133. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1134. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", ctx_r3.i18n.getWeekdayShortName(w_r4), " ");
  1135. } }
  1136. function NgbDatepickerMonth_div_0_Template(rf, ctx) { if (rf & 1) {
  1137. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
  1138. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbDatepickerMonth_div_0_div_1_Template, 1, 0, "div", 3);
  1139. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbDatepickerMonth_div_0_div_2_Template, 2, 1, "div", 4);
  1140. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1141. } if (rf & 2) {
  1142. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1143. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1144. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.datepicker.showWeekNumbers);
  1145. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1146. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.viewModel.weekdays);
  1147. } }
  1148. function NgbDatepickerMonth_ng_template_1_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
  1149. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
  1150. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1151. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1152. } if (rf & 2) {
  1153. const week_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2).$implicit;
  1154. const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1155. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1156. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r7.i18n.getWeekNumerals(week_r5.number));
  1157. } }
  1158. function NgbDatepickerMonth_ng_template_1_div_0_div_2_ng_template_1_ng_template_0_Template(rf, ctx) { }
  1159. function NgbDatepickerMonth_ng_template_1_div_0_div_2_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  1160. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbDatepickerMonth_ng_template_1_div_0_div_2_ng_template_1_ng_template_0_Template, 0, 0, "ng-template", 14);
  1161. } if (rf & 2) {
  1162. const day_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  1163. const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
  1164. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r11.datepicker.dayTemplate)("ngTemplateOutletContext", day_r10.context);
  1165. } }
  1166. function NgbDatepickerMonth_ng_template_1_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
  1167. const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1168. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
  1169. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbDatepickerMonth_ng_template_1_div_0_div_2_Template_div_click_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const day_r10 = ctx.$implicit; const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3); ctx_r14.doSelect(day_r10); return $event.preventDefault(); });
  1170. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbDatepickerMonth_ng_template_1_div_0_div_2_ng_template_1_Template, 1, 2, "ng-template", 13);
  1171. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1172. } if (rf & 2) {
  1173. const day_r10 = ctx.$implicit;
  1174. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", day_r10.context.disabled)("hidden", day_r10.hidden)("ngb-dp-today", day_r10.context.today);
  1175. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("tabindex", day_r10.tabindex);
  1176. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-label", day_r10.ariaLabel);
  1177. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1178. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !day_r10.hidden);
  1179. } }
  1180. function NgbDatepickerMonth_ng_template_1_div_0_Template(rf, ctx) { if (rf & 1) {
  1181. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
  1182. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbDatepickerMonth_ng_template_1_div_0_div_1_Template, 2, 1, "div", 9);
  1183. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbDatepickerMonth_ng_template_1_div_0_div_2_Template, 2, 9, "div", 10);
  1184. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1185. } if (rf & 2) {
  1186. const week_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  1187. const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1188. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1189. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r6.datepicker.showWeekNumbers);
  1190. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1191. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", week_r5.days);
  1192. } }
  1193. function NgbDatepickerMonth_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  1194. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbDatepickerMonth_ng_template_1_div_0_Template, 3, 2, "div", 7);
  1195. } if (rf & 2) {
  1196. const week_r5 = ctx.$implicit;
  1197. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !week_r5.collapsed);
  1198. } }
  1199. function NgbDatepickerNavigation_ngb_datepicker_navigation_select_3_Template(rf, ctx) { if (rf & 1) {
  1200. const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1201. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ngb-datepicker-navigation-select", 7);
  1202. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("select", function NgbDatepickerNavigation_ngb_datepicker_navigation_select_3_Template_ngb_datepicker_navigation_select_select_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r2.select.emit($event); });
  1203. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1204. } if (rf & 2) {
  1205. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1206. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("date", ctx_r0.date)("disabled", ctx_r0.disabled)("months", ctx_r0.selectBoxes.months)("years", ctx_r0.selectBoxes.years);
  1207. } }
  1208. function NgbDatepickerNavigation_4_ng_template_0_div_0_Template(rf, ctx) { if (rf & 1) {
  1209. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 0);
  1210. } }
  1211. function NgbDatepickerNavigation_4_ng_template_0_div_3_Template(rf, ctx) { if (rf & 1) {
  1212. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 0);
  1213. } }
  1214. function NgbDatepickerNavigation_4_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  1215. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbDatepickerNavigation_4_ng_template_0_div_0_Template, 1, 0, "div", 9);
  1216. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 10);
  1217. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
  1218. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1219. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbDatepickerNavigation_4_ng_template_0_div_3_Template, 1, 0, "div", 9);
  1220. } if (rf & 2) {
  1221. const month_r5 = ctx.$implicit;
  1222. const i_r6 = ctx.index;
  1223. const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1224. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r6 > 0);
  1225. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  1226. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" ", ctx_r4.i18n.getMonthFullName(month_r5.number, month_r5.year), " ", ctx_r4.i18n.getYearNumerals(month_r5.year), " ");
  1227. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1228. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", i_r6 !== ctx_r4.months.length - 1);
  1229. } }
  1230. function NgbDatepickerNavigation_4_Template(rf, ctx) { if (rf & 1) {
  1231. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbDatepickerNavigation_4_ng_template_0_Template, 4, 4, "ng-template", 8);
  1232. } if (rf & 2) {
  1233. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1234. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.months);
  1235. } }
  1236. const _c22 = ["ngbDatepickerDayView", ""];
  1237. const _c23 = ["month"];
  1238. const _c24 = ["year"];
  1239. function NgbDatepickerNavigationSelect_option_2_Template(rf, ctx) { if (rf & 1) {
  1240. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 5);
  1241. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1242. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1243. } if (rf & 2) {
  1244. const m_r4 = ctx.$implicit;
  1245. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1246. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", m_r4);
  1247. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-label", ctx_r1.i18n.getMonthFullName(m_r4, ctx_r1.date == null ? null : ctx_r1.date.year));
  1248. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1249. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r1.i18n.getMonthShortName(m_r4, ctx_r1.date == null ? null : ctx_r1.date.year));
  1250. } }
  1251. function NgbDatepickerNavigationSelect_option_5_Template(rf, ctx) { if (rf & 1) {
  1252. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "option", 5);
  1253. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1254. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1255. } if (rf & 2) {
  1256. const y_r5 = ctx.$implicit;
  1257. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1258. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", y_r5);
  1259. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1260. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r3.i18n.getYearNumerals(y_r5));
  1261. } }
  1262. const _c33 = ["dialog"];
  1263. const _c34 = ["ngbNavOutlet", ""];
  1264. function NgbNavOutlet_ng_template_0_div_0_ng_template_1_Template(rf, ctx) { }
  1265. const _c35 = function (a0) { return { $implicit: a0 }; };
  1266. function NgbNavOutlet_ng_template_0_div_0_Template(rf, ctx) { if (rf & 1) {
  1267. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 2);
  1268. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbNavOutlet_ng_template_0_div_0_ng_template_1_Template, 0, 0, "ng-template", 3);
  1269. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1270. } if (rf & 2) {
  1271. const item_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  1272. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1273. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("item", item_r1)("nav", ctx_r2.nav)("role", ctx_r2.paneRole);
  1274. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1275. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (item_r1.contentTpl == null ? null : item_r1.contentTpl.templateRef) || null)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](5, _c35, item_r1.active || ctx_r2.isPanelTransitioning(item_r1)));
  1276. } }
  1277. function NgbNavOutlet_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  1278. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbNavOutlet_ng_template_0_div_0_Template, 2, 7, "div", 1);
  1279. } if (rf & 2) {
  1280. const item_r1 = ctx.$implicit;
  1281. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1282. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", item_r1.isPanelInDom() || ctx_r0.isPanelTransitioning(item_r1));
  1283. } }
  1284. function NgbPagination_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  1285. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 8);
  1286. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 9);
  1287. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1288. } }
  1289. function NgbPagination_ng_template_2_Template(rf, ctx) { if (rf & 1) {
  1290. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 8);
  1291. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 10);
  1292. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1293. } }
  1294. function NgbPagination_ng_template_4_Template(rf, ctx) { if (rf & 1) {
  1295. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 8);
  1296. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 11);
  1297. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1298. } }
  1299. function NgbPagination_ng_template_6_Template(rf, ctx) { if (rf & 1) {
  1300. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 8);
  1301. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 12);
  1302. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1303. } }
  1304. function NgbPagination_ng_template_8_Template(rf, ctx) { if (rf & 1) {
  1305. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0, "...");
  1306. } }
  1307. function NgbPagination_ng_template_10_span_1_Template(rf, ctx) { if (rf & 1) {
  1308. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 14);
  1309. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "(current)");
  1310. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1311. } }
  1312. function NgbPagination_ng_template_10_Template(rf, ctx) { if (rf & 1) {
  1313. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
  1314. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbPagination_ng_template_10_span_1_Template, 2, 0, "span", 13);
  1315. } if (rf & 2) {
  1316. const page_r17 = ctx.$implicit;
  1317. const currentPage_r18 = ctx.currentPage;
  1318. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"](" ", page_r17, " ");
  1319. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1320. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", page_r17 === currentPage_r18);
  1321. } }
  1322. function NgbPagination_li_13_ng_template_2_Template(rf, ctx) { }
  1323. const _c46 = function (a0, a1) { return { disabled: a0, currentPage: a1 }; };
  1324. function NgbPagination_li_13_Template(rf, ctx) { if (rf & 1) {
  1325. const _r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1326. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
  1327. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 16);
  1328. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbPagination_li_13_Template_a_click_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r22); const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r21.selectPage(1); return $event.preventDefault(); });
  1329. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbPagination_li_13_ng_template_2_Template, 0, 0, "ng-template", 17);
  1330. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1331. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1332. } if (rf & 2) {
  1333. const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1334. const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
  1335. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", ctx_r12.previousDisabled());
  1336. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1337. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx_r12.previousDisabled() ? "-1" : null)("aria-disabled", ctx_r12.previousDisabled() ? "true" : null);
  1338. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1339. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (ctx_r12.tplFirst == null ? null : ctx_r12.tplFirst.templateRef) || _r0)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](6, _c46, ctx_r12.previousDisabled(), ctx_r12.page));
  1340. } }
  1341. function NgbPagination_li_14_ng_template_2_Template(rf, ctx) { }
  1342. const _c49 = function (a0) { return { disabled: a0 }; };
  1343. function NgbPagination_li_14_Template(rf, ctx) { if (rf & 1) {
  1344. const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1345. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
  1346. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 18);
  1347. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbPagination_li_14_Template_a_click_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r25); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r24.selectPage(ctx_r24.page - 1); return $event.preventDefault(); });
  1348. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbPagination_li_14_ng_template_2_Template, 0, 0, "ng-template", 17);
  1349. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1350. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1351. } if (rf & 2) {
  1352. const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1353. const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3);
  1354. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", ctx_r13.previousDisabled());
  1355. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1356. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx_r13.previousDisabled() ? "-1" : null)("aria-disabled", ctx_r13.previousDisabled() ? "true" : null);
  1357. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1358. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (ctx_r13.tplPrevious == null ? null : ctx_r13.tplPrevious.templateRef) || _r2)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](6, _c49, ctx_r13.previousDisabled()));
  1359. } }
  1360. function NgbPagination_li_15_a_1_ng_template_1_Template(rf, ctx) { }
  1361. const _c50 = function (a1) { return { disabled: true, currentPage: a1 }; };
  1362. function NgbPagination_li_15_a_1_Template(rf, ctx) { if (rf & 1) {
  1363. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 21);
  1364. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbPagination_li_15_a_1_ng_template_1_Template, 0, 0, "ng-template", 17);
  1365. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1366. } if (rf & 2) {
  1367. const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1368. const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](9);
  1369. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1370. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (ctx_r27.tplEllipsis == null ? null : ctx_r27.tplEllipsis.templateRef) || _r8)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c50, ctx_r27.page));
  1371. } }
  1372. function NgbPagination_li_15_a_2_ng_template_1_Template(rf, ctx) { }
  1373. const _c51 = function (a0, a1, a2) { return { disabled: a0, $implicit: a1, currentPage: a2 }; };
  1374. function NgbPagination_li_15_a_2_Template(rf, ctx) { if (rf & 1) {
  1375. const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1376. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "a", 22);
  1377. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbPagination_li_15_a_2_Template_a_click_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r33); const pageNumber_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r31.selectPage(pageNumber_r26); return $event.preventDefault(); });
  1378. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbPagination_li_15_a_2_ng_template_1_Template, 0, 0, "ng-template", 17);
  1379. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1380. } if (rf & 2) {
  1381. const pageNumber_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  1382. const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1383. const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](11);
  1384. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx_r28.disabled ? "-1" : null)("aria-disabled", ctx_r28.disabled ? "true" : null);
  1385. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1386. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (ctx_r28.tplNumber == null ? null : ctx_r28.tplNumber.templateRef) || _r10)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](4, _c51, ctx_r28.disabled, pageNumber_r26, ctx_r28.page));
  1387. } }
  1388. function NgbPagination_li_15_Template(rf, ctx) { if (rf & 1) {
  1389. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
  1390. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbPagination_li_15_a_1_Template, 2, 4, "a", 19);
  1391. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbPagination_li_15_a_2_Template, 2, 8, "a", 20);
  1392. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1393. } if (rf & 2) {
  1394. const pageNumber_r26 = ctx.$implicit;
  1395. const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1396. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("active", pageNumber_r26 === ctx_r14.page)("disabled", ctx_r14.isEllipsis(pageNumber_r26) || ctx_r14.disabled);
  1397. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-current", pageNumber_r26 === ctx_r14.page ? "page" : null);
  1398. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1399. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r14.isEllipsis(pageNumber_r26));
  1400. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1401. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r14.isEllipsis(pageNumber_r26));
  1402. } }
  1403. function NgbPagination_li_16_ng_template_2_Template(rf, ctx) { }
  1404. function NgbPagination_li_16_Template(rf, ctx) { if (rf & 1) {
  1405. const _r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1406. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
  1407. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 23);
  1408. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbPagination_li_16_Template_a_click_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r37); const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r36.selectPage(ctx_r36.page + 1); return $event.preventDefault(); });
  1409. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbPagination_li_16_ng_template_2_Template, 0, 0, "ng-template", 17);
  1410. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1411. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1412. } if (rf & 2) {
  1413. const ctx_r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1414. const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](5);
  1415. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", ctx_r15.nextDisabled());
  1416. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1417. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx_r15.nextDisabled() ? "-1" : null)("aria-disabled", ctx_r15.nextDisabled() ? "true" : null);
  1418. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1419. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (ctx_r15.tplNext == null ? null : ctx_r15.tplNext.templateRef) || _r4)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](6, _c46, ctx_r15.nextDisabled(), ctx_r15.page));
  1420. } }
  1421. function NgbPagination_li_17_ng_template_2_Template(rf, ctx) { }
  1422. function NgbPagination_li_17_Template(rf, ctx) { if (rf & 1) {
  1423. const _r40 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1424. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "li", 15);
  1425. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "a", 24);
  1426. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbPagination_li_17_Template_a_click_1_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r40); const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r39.selectPage(ctx_r39.pageCount); return $event.preventDefault(); });
  1427. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbPagination_li_17_ng_template_2_Template, 0, 0, "ng-template", 17);
  1428. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1429. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1430. } if (rf & 2) {
  1431. const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1432. const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](7);
  1433. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", ctx_r16.nextDisabled());
  1434. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1435. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("tabindex", ctx_r16.nextDisabled() ? "-1" : null)("aria-disabled", ctx_r16.nextDisabled() ? "true" : null);
  1436. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1437. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (ctx_r16.tplLast == null ? null : ctx_r16.tplLast.templateRef) || _r6)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](6, _c46, ctx_r16.nextDisabled(), ctx_r16.page));
  1438. } }
  1439. function NgbPopoverWindow_h3_1_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  1440. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
  1441. } if (rf & 2) {
  1442. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1443. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r2.title);
  1444. } }
  1445. function NgbPopoverWindow_h3_1_ng_template_3_Template(rf, ctx) { }
  1446. function NgbPopoverWindow_h3_1_Template(rf, ctx) { if (rf & 1) {
  1447. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "h3", 3);
  1448. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbPopoverWindow_h3_1_ng_template_1_Template, 1, 1, "ng-template", null, 4, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  1449. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbPopoverWindow_h3_1_ng_template_3_Template, 0, 0, "ng-template", 5);
  1450. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1451. } if (rf & 2) {
  1452. const _r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  1453. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1454. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  1455. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r0.isTitleTemplate() ? ctx_r0.title : _r1)("ngTemplateOutletContext", ctx_r0.context);
  1456. } }
  1457. function NgbProgressbar_span_1_Template(rf, ctx) { if (rf & 1) {
  1458. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
  1459. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 2);
  1460. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "percent");
  1461. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1462. } if (rf & 2) {
  1463. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1464. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  1465. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nExp"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 1, ctx_r0.getValue() / ctx_r0.max));
  1466. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nApply"](1);
  1467. } }
  1468. function NgbRating_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  1469. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
  1470. } if (rf & 2) {
  1471. const fill_r3 = ctx.fill;
  1472. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](fill_r3 === 100 ? "\u2605" : "\u2606");
  1473. } }
  1474. function NgbRating_ng_template_2_ng_template_3_Template(rf, ctx) { }
  1475. function NgbRating_ng_template_2_Template(rf, ctx) { if (rf & 1) {
  1476. const _r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1477. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 2);
  1478. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1479. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1480. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 3);
  1481. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mouseenter", function NgbRating_ng_template_2_Template_span_mouseenter_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const index_r4 = ctx.index; const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r6.enter(index_r4 + 1); })("click", function NgbRating_ng_template_2_Template_span_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r7); const index_r4 = ctx.index; const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.handleClick(index_r4 + 1); });
  1482. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbRating_ng_template_2_ng_template_3_Template, 0, 0, "ng-template", 4);
  1483. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1484. } if (rf & 2) {
  1485. const index_r4 = ctx.index;
  1486. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1487. const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
  1488. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1489. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("(", index_r4 < ctx_r2.nextRate ? "*" : " ", ")");
  1490. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1491. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("cursor", ctx_r2.isInteractive() ? "pointer" : "default");
  1492. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1493. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r2.starTemplate || ctx_r2.starTemplateFromContent || _r0)("ngTemplateOutletContext", ctx_r2.contexts[index_r4]);
  1494. } }
  1495. function NgbTimepicker_button_3_Template(rf, ctx) { if (rf & 1) {
  1496. const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1497. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 11);
  1498. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbTimepicker_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.changeHour(ctx_r8.hourStep); });
  1499. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 12);
  1500. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 13);
  1501. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](3, 14);
  1502. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1503. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1504. } if (rf & 2) {
  1505. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1506. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-sm", ctx_r0.isSmallSize)("btn-lg", ctx_r0.isLargeSize)("disabled", ctx_r0.disabled);
  1507. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r0.disabled);
  1508. } }
  1509. function NgbTimepicker_button_5_Template(rf, ctx) { if (rf & 1) {
  1510. const _r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1511. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 11);
  1512. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbTimepicker_button_5_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r11); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r10.changeHour(-ctx_r10.hourStep); });
  1513. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 15);
  1514. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 13);
  1515. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](3, 16);
  1516. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1517. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1518. } if (rf & 2) {
  1519. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1520. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-sm", ctx_r1.isSmallSize)("btn-lg", ctx_r1.isLargeSize)("disabled", ctx_r1.disabled);
  1521. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r1.disabled);
  1522. } }
  1523. function NgbTimepicker_button_9_Template(rf, ctx) { if (rf & 1) {
  1524. const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1525. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 11);
  1526. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbTimepicker_button_9_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r12.changeMinute(ctx_r12.minuteStep); });
  1527. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 12);
  1528. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 13);
  1529. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](3, 17);
  1530. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1531. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1532. } if (rf & 2) {
  1533. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1534. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-sm", ctx_r2.isSmallSize)("btn-lg", ctx_r2.isLargeSize)("disabled", ctx_r2.disabled);
  1535. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r2.disabled);
  1536. } }
  1537. function NgbTimepicker_button_11_Template(rf, ctx) { if (rf & 1) {
  1538. const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1539. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 11);
  1540. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbTimepicker_button_11_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.changeMinute(-ctx_r14.minuteStep); });
  1541. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 15);
  1542. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 13);
  1543. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](3, 18);
  1544. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1545. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1546. } if (rf & 2) {
  1547. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1548. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-sm", ctx_r3.isSmallSize)("btn-lg", ctx_r3.isLargeSize)("disabled", ctx_r3.disabled);
  1549. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r3.disabled);
  1550. } }
  1551. function NgbTimepicker_div_12_Template(rf, ctx) { if (rf & 1) {
  1552. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 5);
  1553. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, ":");
  1554. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1555. } }
  1556. function NgbTimepicker_div_13_button_1_Template(rf, ctx) { if (rf & 1) {
  1557. const _r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1558. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 11);
  1559. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbTimepicker_div_13_button_1_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r19); const ctx_r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r18.changeSecond(ctx_r18.secondStep); });
  1560. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 12);
  1561. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 13);
  1562. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](3, 21);
  1563. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1564. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1565. } if (rf & 2) {
  1566. const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1567. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-sm", ctx_r16.isSmallSize)("btn-lg", ctx_r16.isLargeSize)("disabled", ctx_r16.disabled);
  1568. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r16.disabled);
  1569. } }
  1570. function NgbTimepicker_div_13_button_3_Template(rf, ctx) { if (rf & 1) {
  1571. const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1572. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 11);
  1573. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbTimepicker_div_13_button_3_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r20.changeSecond(-ctx_r20.secondStep); });
  1574. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](1, "span", 15);
  1575. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "span", 13);
  1576. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](3, 22);
  1577. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1578. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1579. } if (rf & 2) {
  1580. const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1581. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-sm", ctx_r17.isSmallSize)("btn-lg", ctx_r17.isLargeSize)("disabled", ctx_r17.disabled);
  1582. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r17.disabled);
  1583. } }
  1584. function NgbTimepicker_div_13_Template(rf, ctx) { if (rf & 1) {
  1585. const _r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1586. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 19);
  1587. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbTimepicker_div_13_button_1_Template, 4, 7, "button", 3);
  1588. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "input", 20);
  1589. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function NgbTimepicker_div_13_Template_input_change_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r22.updateSecond($event.target.value); })("input", function NgbTimepicker_div_13_Template_input_input_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const ctx_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r24.formatInput($event.target); })("keydown.ArrowUp", function NgbTimepicker_div_13_Template_input_keydown_ArrowUp_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r25.changeSecond(ctx_r25.secondStep); return $event.preventDefault(); })("keydown.ArrowDown", function NgbTimepicker_div_13_Template_input_keydown_ArrowDown_2_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r23); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r26.changeSecond(-ctx_r26.secondStep); return $event.preventDefault(); });
  1590. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1591. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbTimepicker_div_13_button_3_Template, 4, 7, "button", 3);
  1592. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1593. } if (rf & 2) {
  1594. const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1595. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1596. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.spinners);
  1597. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1598. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("form-control-sm", ctx_r5.isSmallSize)("form-control-lg", ctx_r5.isLargeSize);
  1599. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx_r5.formatMinSec(ctx_r5.model == null ? null : ctx_r5.model.second))("readOnly", ctx_r5.readonlyInputs)("disabled", ctx_r5.disabled);
  1600. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1601. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.spinners);
  1602. } }
  1603. function NgbTimepicker_div_14_Template(rf, ctx) { if (rf & 1) {
  1604. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 5);
  1605. } }
  1606. function NgbTimepicker_div_15_ng_container_2_Template(rf, ctx) { if (rf & 1) {
  1607. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
  1608. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](1, 27);
  1609. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  1610. } if (rf & 2) {
  1611. const ctx_r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1612. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1613. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nExp"](ctx_r27.i18n.getAfternoonPeriod());
  1614. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nApply"](1);
  1615. } }
  1616. function NgbTimepicker_div_15_ng_template_3_Template(rf, ctx) { if (rf & 1) {
  1617. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18n"](0, 28);
  1618. } if (rf & 2) {
  1619. const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  1620. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nExp"](ctx_r29.i18n.getMorningPeriod());
  1621. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵi18nApply"](0);
  1622. } }
  1623. function NgbTimepicker_div_15_Template(rf, ctx) { if (rf & 1) {
  1624. const _r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1625. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 23);
  1626. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 24);
  1627. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbTimepicker_div_15_Template_button_click_1_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r31); const ctx_r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r30.toggleMeridian(); });
  1628. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbTimepicker_div_15_ng_container_2_Template, 2, 1, "ng-container", 25);
  1629. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbTimepicker_div_15_ng_template_3_Template, 1, 1, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  1630. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1631. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1632. } if (rf & 2) {
  1633. const _r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](4);
  1634. const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1635. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1636. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn-sm", ctx_r7.isSmallSize)("btn-lg", ctx_r7.isLargeSize)("disabled", ctx_r7.disabled);
  1637. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx_r7.disabled);
  1638. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1639. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r7.model && ctx_r7.model.hour >= 12)("ngIfElse", _r28);
  1640. } }
  1641. function NgbToast_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  1642. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "strong", 3);
  1643. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1644. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1645. } if (rf & 2) {
  1646. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1647. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1648. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r1.header);
  1649. } }
  1650. function NgbToast_ng_template_2_ng_template_1_Template(rf, ctx) { }
  1651. function NgbToast_ng_template_2_Template(rf, ctx) { if (rf & 1) {
  1652. const _r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1653. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 4);
  1654. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbToast_ng_template_2_ng_template_1_Template, 0, 0, "ng-template", 5);
  1655. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "button", 6);
  1656. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbToast_ng_template_2_Template_button_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r5); const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r4.hide(); });
  1657. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "span", 7);
  1658. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](4, "\u00D7");
  1659. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1660. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1661. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1662. } if (rf & 2) {
  1663. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1664. const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
  1665. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1666. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r2.contentHeaderTpl || _r0);
  1667. } }
  1668. function NgbHighlight_ng_template_0_span_0_Template(rf, ctx) { if (rf & 1) {
  1669. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
  1670. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  1671. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1672. } if (rf & 2) {
  1673. const part_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  1674. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1675. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](ctx_r3.highlightClass);
  1676. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1677. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](part_r1);
  1678. } }
  1679. function NgbHighlight_ng_template_0_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  1680. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
  1681. } if (rf & 2) {
  1682. const part_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  1683. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](part_r1);
  1684. } }
  1685. function NgbHighlight_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  1686. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbHighlight_ng_template_0_span_0_Template, 2, 3, "span", 1);
  1687. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbHighlight_ng_template_0_ng_template_1_Template, 1, 1, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  1688. } if (rf & 2) {
  1689. const isOdd_r2 = ctx.odd;
  1690. const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  1691. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", isOdd_r2)("ngIfElse", _r4);
  1692. } }
  1693. function NgbTypeaheadWindow_ng_template_0_Template(rf, ctx) { if (rf & 1) {
  1694. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "ngb-highlight", 2);
  1695. } if (rf & 2) {
  1696. const result_r3 = ctx.result;
  1697. const term_r4 = ctx.term;
  1698. const formatter_r5 = ctx.formatter;
  1699. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("result", formatter_r5(result_r3))("term", term_r4);
  1700. } }
  1701. function NgbTypeaheadWindow_ng_template_2_ng_template_1_Template(rf, ctx) { }
  1702. const _c88 = function (a0, a1, a2) { return { result: a0, term: a1, formatter: a2 }; };
  1703. function NgbTypeaheadWindow_ng_template_2_Template(rf, ctx) { if (rf & 1) {
  1704. const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  1705. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "button", 3);
  1706. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mouseenter", function NgbTypeaheadWindow_ng_template_2_Template_button_mouseenter_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const idx_r7 = ctx.index; const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r9.markActive(idx_r7); })("click", function NgbTypeaheadWindow_ng_template_2_Template_button_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r10); const result_r6 = ctx.$implicit; const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.select(result_r6); });
  1707. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbTypeaheadWindow_ng_template_2_ng_template_1_Template, 0, 0, "ng-template", 4);
  1708. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  1709. } if (rf & 2) {
  1710. const result_r6 = ctx.$implicit;
  1711. const idx_r7 = ctx.index;
  1712. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  1713. const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](1);
  1714. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("active", idx_r7 === ctx_r2.activeIdx);
  1715. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("id", ctx_r2.id + "-" + idx_r7);
  1716. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  1717. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r2.resultTemplate || _r0)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](5, _c88, result_r6, ctx_r2.term, ctx_r2.formatter));
  1718. } }
  1719. function toInteger(value) {
  1720. return parseInt(`${value}`, 10);
  1721. }
  1722. function toString(value) {
  1723. return (value !== undefined && value !== null) ? `${value}` : '';
  1724. }
  1725. function getValueInRange(value, max, min = 0) {
  1726. return Math.max(Math.min(value, max), min);
  1727. }
  1728. function isString(value) {
  1729. return typeof value === 'string';
  1730. }
  1731. function isNumber(value) {
  1732. return !isNaN(toInteger(value));
  1733. }
  1734. function isInteger(value) {
  1735. return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
  1736. }
  1737. function isDefined(value) {
  1738. return value !== undefined && value !== null;
  1739. }
  1740. function padNumber(value) {
  1741. if (isNumber(value)) {
  1742. return `0${value}`.slice(-2);
  1743. }
  1744. else {
  1745. return '';
  1746. }
  1747. }
  1748. function regExpEscape(text) {
  1749. return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
  1750. }
  1751. function hasClassName(element, className) {
  1752. return element && element.className && element.className.split &&
  1753. element.className.split(/\s+/).indexOf(className) >= 0;
  1754. }
  1755. if (typeof Element !== 'undefined' && !Element.prototype.closest) {
  1756. // Polyfill for ie10+
  1757. if (!Element.prototype.matches) {
  1758. // IE uses the non-standard name: msMatchesSelector
  1759. Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
  1760. }
  1761. Element.prototype.closest = function (s) {
  1762. let el = this;
  1763. if (!document.documentElement.contains(el)) {
  1764. return null;
  1765. }
  1766. do {
  1767. if (el.matches(s)) {
  1768. return el;
  1769. }
  1770. el = el.parentElement || el.parentNode;
  1771. } while (el !== null && el.nodeType === 1);
  1772. return null;
  1773. };
  1774. }
  1775. function closest(element, selector) {
  1776. if (!selector) {
  1777. return null;
  1778. }
  1779. /*
  1780. * In certain browsers (e.g. Edge 44.18362.449.0) HTMLDocument does
  1781. * not support `Element.prototype.closest`. To emulate the correct behaviour
  1782. * we return null when the method is missing.
  1783. *
  1784. * Note that in evergreen browsers `closest(document.documentElement, 'html')`
  1785. * will return the document element whilst in Edge null will be returned. This
  1786. * compromise was deemed good enough.
  1787. */
  1788. if (typeof element.closest === 'undefined') {
  1789. return null;
  1790. }
  1791. return element.closest(selector);
  1792. }
  1793. /**
  1794. * Force a browser reflow
  1795. * @param element element where to apply the reflow
  1796. */
  1797. function reflow(element) {
  1798. return (element || document.body).offsetHeight;
  1799. }
  1800. const environment = {
  1801. animation: true,
  1802. transitionTimerDelayMs: 5,
  1803. };
  1804. /**
  1805. * Global ng-bootstrap config
  1806. *
  1807. * @since 8.0.0
  1808. */
  1809. class NgbConfig {
  1810. constructor() {
  1811. this.animation = environment.animation;
  1812. }
  1813. }
  1814. NgbConfig.ɵfac = function NgbConfig_Factory(t) { return new (t || NgbConfig)(); };
  1815. NgbConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbConfig_Factory() { return new NgbConfig(); }, token: NgbConfig, providedIn: "root" });
  1816. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbConfig, [{
  1817. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  1818. args: [{ providedIn: 'root' }]
  1819. }], function () { return []; }, null); })();
  1820. /**
  1821. * A configuration service for the [NgbAccordion](#/components/accordion/api#NgbAccordion) component.
  1822. *
  1823. * You can inject this service, typically in your root component, and customize its properties
  1824. * to provide default values for all accordions used in the application.
  1825. */
  1826. class NgbAccordionConfig {
  1827. constructor(ngbConfig) {
  1828. this.closeOthers = false;
  1829. this.animation = ngbConfig.animation;
  1830. }
  1831. }
  1832. NgbAccordionConfig.ɵfac = function NgbAccordionConfig_Factory(t) { return new (t || NgbAccordionConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  1833. NgbAccordionConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbAccordionConfig_Factory() { return new NgbAccordionConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbAccordionConfig, providedIn: "root" });
  1834. NgbAccordionConfig.ctorParameters = () => [
  1835. { type: NgbConfig }
  1836. ];
  1837. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbAccordionConfig, [{
  1838. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  1839. args: [{ providedIn: 'root' }]
  1840. }], function () { return [{ type: NgbConfig }]; }, null); })();
  1841. function getTransitionDurationMs(element) {
  1842. const { transitionDelay, transitionDuration } = window.getComputedStyle(element);
  1843. const transitionDelaySec = parseFloat(transitionDelay);
  1844. const transitionDurationSec = parseFloat(transitionDuration);
  1845. return (transitionDelaySec + transitionDurationSec) * 1000;
  1846. }
  1847. const noopFn = () => { };
  1848. const ɵ0 = noopFn;
  1849. const { transitionTimerDelayMs } = environment;
  1850. const runningTransitions = new Map();
  1851. const ngbRunTransition = (element, startFn, options) => {
  1852. // Getting initial context from options
  1853. let context = options.context || {};
  1854. // Checking if there are already running transitions on the given element.
  1855. const running = runningTransitions.get(element);
  1856. if (running) {
  1857. switch (options.runningTransition) {
  1858. // If there is one running and we want for it to 'continue' to run, we have to cancel the new one.
  1859. // We're not emitting any values, but simply completing the observable (EMPTY).
  1860. case 'continue':
  1861. return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
  1862. // If there is one running and we want for it to 'stop', we have to complete the running one.
  1863. // We're simply completing the running one and not emitting any values and merging newly provided context
  1864. // with the one coming from currently running transition.
  1865. case 'stop':
  1866. running.transition$.complete();
  1867. context = Object.assign(running.context, context);
  1868. runningTransitions.delete(element);
  1869. }
  1870. }
  1871. // A reflow is required here, to be sure that everything is ready,
  1872. // Without reflow, the transition will not be started for some widgets, at initialization time
  1873. reflow(element);
  1874. const endFn = startFn(element, context) || noopFn;
  1875. // If 'prefer-reduced-motion' is enabled, the 'transition' will be set to 'none'.
  1876. // If animations are disabled, we have to emit a value and complete the observable
  1877. // In this case we have to call the end function, but can finish immediately by emitting a value,
  1878. // completing the observable and executing end functions synchronously.
  1879. if (!options.animation || window.getComputedStyle(element).transitionProperty === 'none') {
  1880. endFn();
  1881. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(undefined);
  1882. }
  1883. // Starting a new transition
  1884. const transition$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  1885. const stop$ = transition$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["endWith"])(true));
  1886. runningTransitions.set(element, { transition$, context });
  1887. const transitionDurationMs = getTransitionDurationMs(element);
  1888. // 1. We have to both listen for the 'transitionend' event and have a 'just-in-case' timer,
  1889. // because 'transitionend' event might not be fired in some browsers, if the transitioning
  1890. // element becomes invisible (ex. when scrolling, making browser tab inactive, etc.). The timer
  1891. // guarantees, that we'll release the DOM element and complete 'ngbRunTransition'.
  1892. // 2. We need to filter transition end events, because they might bubble from shorter transitions
  1893. // on inner DOM elements. We're only interested in the transition on the 'element' itself.
  1894. const transitionEnd$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(element, 'transitionend').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(stop$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(({ target }) => target === element));
  1895. const timer$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["timer"])(transitionDurationMs + transitionTimerDelayMs).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(stop$));
  1896. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["race"])(timer$, transitionEnd$).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(stop$)).subscribe(() => {
  1897. runningTransitions.delete(element);
  1898. endFn();
  1899. transition$.next();
  1900. transition$.complete();
  1901. });
  1902. return transition$.asObservable();
  1903. };
  1904. function measureCollapsingElementHeightPx(element) {
  1905. // SSR fix for without injecting the PlatformId
  1906. if (typeof navigator === 'undefined') {
  1907. return '0px';
  1908. }
  1909. const { classList } = element;
  1910. const hasShownClass = classList.contains('show');
  1911. if (!hasShownClass) {
  1912. classList.add('show');
  1913. }
  1914. element.style.height = '';
  1915. const height = element.getBoundingClientRect().height + 'px';
  1916. if (!hasShownClass) {
  1917. classList.remove('show');
  1918. }
  1919. return height;
  1920. }
  1921. const ngbCollapsingTransition = (element, context) => {
  1922. let { direction, maxHeight } = context;
  1923. const { classList } = element;
  1924. // No maxHeight -> running the transition for the first time
  1925. if (!maxHeight) {
  1926. maxHeight = measureCollapsingElementHeightPx(element);
  1927. context.maxHeight = maxHeight;
  1928. // Fix the height before starting the animation
  1929. element.style.height = direction !== 'show' ? maxHeight : '0px';
  1930. classList.remove('collapse');
  1931. classList.remove('collapsing');
  1932. classList.remove('show');
  1933. reflow(element);
  1934. // Start the animation
  1935. classList.add('collapsing');
  1936. }
  1937. // Start or revert the animation
  1938. element.style.height = direction === 'show' ? maxHeight : '0px';
  1939. return () => {
  1940. classList.remove('collapsing');
  1941. classList.add('collapse');
  1942. if (direction === 'show') {
  1943. classList.add('show');
  1944. }
  1945. else {
  1946. classList.remove('show');
  1947. }
  1948. element.style.height = '';
  1949. };
  1950. };
  1951. let nextId = 0;
  1952. /**
  1953. * A directive that wraps an accordion panel header with any HTML markup and a toggling button
  1954. * marked with [`NgbPanelToggle`](#/components/accordion/api#NgbPanelToggle).
  1955. * See the [header customization demo](#/components/accordion/examples#header) for more details.
  1956. *
  1957. * You can also use [`NgbPanelTitle`](#/components/accordion/api#NgbPanelTitle) to customize only the panel title.
  1958. *
  1959. * @since 4.1.0
  1960. */
  1961. class NgbPanelHeader {
  1962. constructor(templateRef) {
  1963. this.templateRef = templateRef;
  1964. }
  1965. }
  1966. NgbPanelHeader.ɵfac = function NgbPanelHeader_Factory(t) { return new (t || NgbPanelHeader)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  1967. NgbPanelHeader.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPanelHeader, selectors: [["ng-template", "ngbPanelHeader", ""]] });
  1968. NgbPanelHeader.ctorParameters = () => [
  1969. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  1970. ];
  1971. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPanelHeader, [{
  1972. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  1973. args: [{ selector: 'ng-template[ngbPanelHeader]' }]
  1974. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  1975. /**
  1976. * A directive that wraps only the panel title with HTML markup inside.
  1977. *
  1978. * You can also use [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader) to customize the full panel header.
  1979. */
  1980. class NgbPanelTitle {
  1981. constructor(templateRef) {
  1982. this.templateRef = templateRef;
  1983. }
  1984. }
  1985. NgbPanelTitle.ɵfac = function NgbPanelTitle_Factory(t) { return new (t || NgbPanelTitle)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  1986. NgbPanelTitle.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPanelTitle, selectors: [["ng-template", "ngbPanelTitle", ""]] });
  1987. NgbPanelTitle.ctorParameters = () => [
  1988. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  1989. ];
  1990. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPanelTitle, [{
  1991. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  1992. args: [{ selector: 'ng-template[ngbPanelTitle]' }]
  1993. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  1994. /**
  1995. * A directive that wraps the accordion panel content.
  1996. */
  1997. class NgbPanelContent {
  1998. constructor(templateRef) {
  1999. this.templateRef = templateRef;
  2000. }
  2001. }
  2002. NgbPanelContent.ɵfac = function NgbPanelContent_Factory(t) { return new (t || NgbPanelContent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  2003. NgbPanelContent.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPanelContent, selectors: [["ng-template", "ngbPanelContent", ""]] });
  2004. NgbPanelContent.ctorParameters = () => [
  2005. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  2006. ];
  2007. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPanelContent, [{
  2008. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  2009. args: [{ selector: 'ng-template[ngbPanelContent]' }]
  2010. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  2011. /**
  2012. * A directive that wraps an individual accordion panel with title and collapsible content.
  2013. */
  2014. class NgbPanel {
  2015. constructor() {
  2016. /**
  2017. * If `true`, the panel is disabled an can't be toggled.
  2018. */
  2019. this.disabled = false;
  2020. /**
  2021. * An optional id for the panel that must be unique on the page.
  2022. *
  2023. * If not provided, it will be auto-generated in the `ngb-panel-xxx` format.
  2024. */
  2025. this.id = `ngb-panel-${nextId++}`;
  2026. this.isOpen = false;
  2027. /* A flag to specified that the transition panel classes have been initialized */
  2028. this.initClassDone = false;
  2029. /* A flag to specified if the panel is currently being animated, to ensure its presence in the dom */
  2030. this.transitionRunning = false;
  2031. /**
  2032. * An event emitted when the panel is shown, after the transition. It has no payload.
  2033. *
  2034. * @since 8.0.0
  2035. */
  2036. this.shown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2037. /**
  2038. * An event emitted when the panel is hidden, after the transition. It has no payload.
  2039. *
  2040. * @since 8.0.0
  2041. */
  2042. this.hidden = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2043. }
  2044. ngAfterContentChecked() {
  2045. // We are using @ContentChildren instead of @ContentChild as in the Angular version being used
  2046. // only @ContentChildren allows us to specify the {descendants: false} option.
  2047. // Without {descendants: false} we are hitting bugs described in:
  2048. // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240
  2049. this.titleTpl = this.titleTpls.first;
  2050. this.headerTpl = this.headerTpls.first;
  2051. this.contentTpl = this.contentTpls.first;
  2052. }
  2053. }
  2054. NgbPanel.ɵfac = function NgbPanel_Factory(t) { return new (t || NgbPanel)(); };
  2055. NgbPanel.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPanel, selectors: [["ngb-panel"]], contentQueries: function NgbPanel_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  2056. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPanelTitle, false);
  2057. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPanelHeader, false);
  2058. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPanelContent, false);
  2059. } if (rf & 2) {
  2060. let _t;
  2061. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.titleTpls = _t);
  2062. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headerTpls = _t);
  2063. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.contentTpls = _t);
  2064. } }, inputs: { disabled: "disabled", id: "id", title: "title", type: "type", cardClass: "cardClass" }, outputs: { shown: "shown", hidden: "hidden" } });
  2065. NgbPanel.propDecorators = {
  2066. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2067. id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2068. title: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2069. type: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2070. cardClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2071. shown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  2072. hidden: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  2073. titleTpls: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgbPanelTitle, { descendants: false },] }],
  2074. headerTpls: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgbPanelHeader, { descendants: false },] }],
  2075. contentTpls: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgbPanelContent, { descendants: false },] }]
  2076. };
  2077. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPanel, [{
  2078. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  2079. args: [{ selector: 'ngb-panel' }]
  2080. }], function () { return []; }, { disabled: [{
  2081. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2082. }], id: [{
  2083. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2084. }], shown: [{
  2085. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2086. }], hidden: [{
  2087. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2088. }], title: [{
  2089. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2090. }], type: [{
  2091. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2092. }], cardClass: [{
  2093. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2094. }], titleTpls: [{
  2095. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  2096. args: [NgbPanelTitle, { descendants: false }]
  2097. }], headerTpls: [{
  2098. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  2099. args: [NgbPanelHeader, { descendants: false }]
  2100. }], contentTpls: [{
  2101. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  2102. args: [NgbPanelContent, { descendants: false }]
  2103. }] }); })();
  2104. /**
  2105. * Accordion is a collection of collapsible panels (bootstrap cards).
  2106. *
  2107. * It can ensure only one panel is opened at a time and allows to customize panel
  2108. * headers.
  2109. */
  2110. class NgbAccordion {
  2111. constructor(config, _element, _ngZone, _changeDetector) {
  2112. this._element = _element;
  2113. this._ngZone = _ngZone;
  2114. this._changeDetector = _changeDetector;
  2115. /**
  2116. * An array or comma separated strings of panel ids that should be opened **initially**.
  2117. *
  2118. * For subsequent changes use methods like `expand()`, `collapse()`, etc. and
  2119. * the `(panelChange)` event.
  2120. */
  2121. this.activeIds = [];
  2122. /**
  2123. * If `true`, panel content will be detached from DOM and not simply hidden when the panel is collapsed.
  2124. */
  2125. this.destroyOnHide = true;
  2126. /**
  2127. * Event emitted right before the panel toggle happens.
  2128. *
  2129. * See [NgbPanelChangeEvent](#/components/accordion/api#NgbPanelChangeEvent) for payload details.
  2130. */
  2131. this.panelChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2132. /**
  2133. * An event emitted when the expanding animation is finished on the panel. The payload is the panel id.
  2134. *
  2135. * @since 8.0.0
  2136. */
  2137. this.shown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2138. /**
  2139. * An event emitted when the collapsing animation is finished on the panel, and before the panel element is removed.
  2140. * The payload is the panel id.
  2141. *
  2142. * @since 8.0.0
  2143. */
  2144. this.hidden = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2145. this.animation = config.animation;
  2146. this.type = config.type;
  2147. this.closeOtherPanels = config.closeOthers;
  2148. }
  2149. /**
  2150. * Checks if a panel with a given id is expanded.
  2151. */
  2152. isExpanded(panelId) { return this.activeIds.indexOf(panelId) > -1; }
  2153. /**
  2154. * Expands a panel with a given id.
  2155. *
  2156. * Has no effect if the panel is already expanded or disabled.
  2157. */
  2158. expand(panelId) { this._changeOpenState(this._findPanelById(panelId), true); }
  2159. /**
  2160. * Expands all panels, if `[closeOthers]` is `false`.
  2161. *
  2162. * If `[closeOthers]` is `true`, it will expand the first panel, unless there is already a panel opened.
  2163. */
  2164. expandAll() {
  2165. if (this.closeOtherPanels) {
  2166. if (this.activeIds.length === 0 && this.panels.length) {
  2167. this._changeOpenState(this.panels.first, true);
  2168. }
  2169. }
  2170. else {
  2171. this.panels.forEach(panel => this._changeOpenState(panel, true));
  2172. }
  2173. }
  2174. /**
  2175. * Collapses a panel with the given id.
  2176. *
  2177. * Has no effect if the panel is already collapsed or disabled.
  2178. */
  2179. collapse(panelId) { this._changeOpenState(this._findPanelById(panelId), false); }
  2180. /**
  2181. * Collapses all opened panels.
  2182. */
  2183. collapseAll() {
  2184. this.panels.forEach((panel) => { this._changeOpenState(panel, false); });
  2185. }
  2186. /**
  2187. * Toggles a panel with the given id.
  2188. *
  2189. * Has no effect if the panel is disabled.
  2190. */
  2191. toggle(panelId) {
  2192. const panel = this._findPanelById(panelId);
  2193. if (panel) {
  2194. this._changeOpenState(panel, !panel.isOpen);
  2195. }
  2196. }
  2197. ngAfterContentChecked() {
  2198. // active id updates
  2199. if (isString(this.activeIds)) {
  2200. this.activeIds = this.activeIds.split(/\s*,\s*/);
  2201. }
  2202. // update panels open states
  2203. this.panels.forEach(panel => { panel.isOpen = !panel.disabled && this.activeIds.indexOf(panel.id) > -1; });
  2204. // closeOthers updates
  2205. if (this.activeIds.length > 1 && this.closeOtherPanels) {
  2206. this._closeOthers(this.activeIds[0], false);
  2207. this._updateActiveIds();
  2208. }
  2209. // Setup the initial classes here
  2210. this._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)).subscribe(() => {
  2211. this.panels.forEach(panel => {
  2212. const panelElement = this._getPanelElement(panel.id);
  2213. if (panelElement) {
  2214. if (!panel.initClassDone) {
  2215. panel.initClassDone = true;
  2216. const { classList } = panelElement;
  2217. classList.add('collapse');
  2218. if (panel.isOpen) {
  2219. classList.add('show');
  2220. }
  2221. }
  2222. }
  2223. else {
  2224. // Classes must be initialized next time it will be in the dom
  2225. panel.initClassDone = false;
  2226. }
  2227. });
  2228. });
  2229. }
  2230. _changeOpenState(panel, nextState) {
  2231. if (panel != null && !panel.disabled && panel.isOpen !== nextState) {
  2232. let defaultPrevented = false;
  2233. this.panelChange.emit({ panelId: panel.id, nextState: nextState, preventDefault: () => { defaultPrevented = true; } });
  2234. if (!defaultPrevented) {
  2235. panel.isOpen = nextState;
  2236. panel.transitionRunning = true;
  2237. if (nextState && this.closeOtherPanels) {
  2238. this._closeOthers(panel.id);
  2239. }
  2240. this._updateActiveIds();
  2241. this._runTransitions(this.animation);
  2242. }
  2243. }
  2244. }
  2245. _closeOthers(panelId, enableTransition = true) {
  2246. this.panels.forEach(panel => {
  2247. if (panel.id !== panelId && panel.isOpen) {
  2248. panel.isOpen = false;
  2249. panel.transitionRunning = enableTransition;
  2250. }
  2251. });
  2252. }
  2253. _findPanelById(panelId) { return this.panels.find(p => p.id === panelId) || null; }
  2254. _updateActiveIds() {
  2255. this.activeIds = this.panels.filter(panel => panel.isOpen && !panel.disabled).map(panel => panel.id);
  2256. }
  2257. _runTransitions(animation, emitEvent = true) {
  2258. // detectChanges is performed to ensure that all panels are in the dom (via transitionRunning = true)
  2259. // before starting the animation
  2260. this._changeDetector.detectChanges();
  2261. this.panels.forEach(panel => {
  2262. // When panel.transitionRunning is true, the transition needs to be started OR reversed,
  2263. // The direction (show or hide) is choosen by each panel.isOpen state
  2264. if (panel.transitionRunning) {
  2265. const panelElement = this._getPanelElement(panel.id);
  2266. ngbRunTransition(panelElement, ngbCollapsingTransition, {
  2267. animation,
  2268. runningTransition: 'stop',
  2269. context: { direction: panel.isOpen ? 'show' : 'hide' }
  2270. }).subscribe(() => {
  2271. panel.transitionRunning = false;
  2272. if (emitEvent) {
  2273. const { id } = panel;
  2274. if (panel.isOpen) {
  2275. panel.shown.emit();
  2276. this.shown.emit(id);
  2277. }
  2278. else {
  2279. panel.hidden.emit();
  2280. this.hidden.emit(id);
  2281. }
  2282. }
  2283. });
  2284. }
  2285. });
  2286. }
  2287. _getPanelElement(panelId) {
  2288. return this._element.nativeElement.querySelector('#' + panelId);
  2289. }
  2290. }
  2291. NgbAccordion.ɵfac = function NgbAccordion_Factory(t) { return new (t || NgbAccordion)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbAccordionConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); };
  2292. NgbAccordion.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbAccordion, selectors: [["ngb-accordion"]], contentQueries: function NgbAccordion_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  2293. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPanel, false);
  2294. } if (rf & 2) {
  2295. let _t;
  2296. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.panels = _t);
  2297. } }, hostAttrs: ["role", "tablist", 1, "accordion"], hostVars: 1, hostBindings: function NgbAccordion_HostBindings(rf, ctx) { if (rf & 2) {
  2298. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-multiselectable", !ctx.closeOtherPanels);
  2299. } }, inputs: { activeIds: "activeIds", destroyOnHide: "destroyOnHide", animation: "animation", type: "type", closeOtherPanels: ["closeOthers", "closeOtherPanels"] }, outputs: { panelChange: "panelChange", shown: "shown", hidden: "hidden" }, exportAs: ["ngbAccordion"], decls: 3, vars: 1, consts: [["ngbPanelHeader", ""], ["t", ""], ["ngFor", "", 3, "ngForOf"], [1, "btn", "btn-link", 3, "ngbPanelToggle"], [3, "ngTemplateOutlet"], ["role", "tab", 3, "id"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["role", "tabpanel", 3, "id", 4, "ngIf"], ["role", "tabpanel", 3, "id"], [1, "card-body"]], template: function NgbAccordion_Template(rf, ctx) { if (rf & 1) {
  2300. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbAccordion_ng_template_0_Template, 3, 3, "ng-template", 0, 1, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  2301. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbAccordion_ng_template_2_Template, 4, 11, "ng-template", 2);
  2302. } if (rf & 2) {
  2303. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  2304. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.panels);
  2305. } }, directives: function () { return [NgbPanelHeader, _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], NgbPanelToggle, _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"]]; }, encapsulation: 2 });
  2306. NgbAccordion.ctorParameters = () => [
  2307. { type: NgbAccordionConfig },
  2308. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  2309. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  2310. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  2311. ];
  2312. NgbAccordion.propDecorators = {
  2313. panels: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgbPanel,] }],
  2314. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2315. activeIds: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2316. closeOtherPanels: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['closeOthers',] }],
  2317. destroyOnHide: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2318. type: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2319. panelChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  2320. shown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  2321. hidden: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  2322. };
  2323. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbAccordion, [{
  2324. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  2325. args: [{
  2326. selector: 'ngb-accordion',
  2327. exportAs: 'ngbAccordion',
  2328. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  2329. host: { 'class': 'accordion', 'role': 'tablist', '[attr.aria-multiselectable]': '!closeOtherPanels' },
  2330. template: `
  2331. <ng-template #t ngbPanelHeader let-panel>
  2332. <button class="btn btn-link" [ngbPanelToggle]="panel">
  2333. {{panel.title}}<ng-template [ngTemplateOutlet]="panel.titleTpl?.templateRef"></ng-template>
  2334. </button>
  2335. </ng-template>
  2336. <ng-template ngFor let-panel [ngForOf]="panels">
  2337. <div [class]="'card ' + (panel.cardClass || '')">
  2338. <div role="tab" id="{{panel.id}}-header" [class]="'card-header ' + (panel.type ? 'bg-'+panel.type: type ? 'bg-'+type : '')">
  2339. <ng-template [ngTemplateOutlet]="panel.headerTpl?.templateRef || t"
  2340. [ngTemplateOutletContext]="{$implicit: panel, opened: panel.isOpen}"></ng-template>
  2341. </div>
  2342. <div id="{{panel.id}}" role="tabpanel" [attr.aria-labelledby]="panel.id + '-header'"
  2343. *ngIf="!destroyOnHide || panel.isOpen || panel.transitionRunning">
  2344. <div class="card-body">
  2345. <ng-template [ngTemplateOutlet]="panel.contentTpl?.templateRef || null"></ng-template>
  2346. </div>
  2347. </div>
  2348. </div>
  2349. </ng-template>
  2350. `
  2351. }]
  2352. }], function () { return [{ type: NgbAccordionConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, { activeIds: [{
  2353. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2354. }], destroyOnHide: [{
  2355. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2356. }], panelChange: [{
  2357. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2358. }], shown: [{
  2359. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2360. }], hidden: [{
  2361. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2362. }], animation: [{
  2363. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2364. }], type: [{
  2365. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2366. }], closeOtherPanels: [{
  2367. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  2368. args: ['closeOthers']
  2369. }], panels: [{
  2370. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  2371. args: [NgbPanel]
  2372. }] }); })();
  2373. /**
  2374. * A directive to put on a button that toggles panel opening and closing.
  2375. *
  2376. * To be used inside the [`NgbPanelHeader`](#/components/accordion/api#NgbPanelHeader)
  2377. *
  2378. * @since 4.1.0
  2379. */
  2380. class NgbPanelToggle {
  2381. constructor(accordion, panel) {
  2382. this.accordion = accordion;
  2383. this.panel = panel;
  2384. }
  2385. set ngbPanelToggle(panel) {
  2386. if (panel) {
  2387. this.panel = panel;
  2388. }
  2389. }
  2390. }
  2391. NgbPanelToggle.ɵfac = function NgbPanelToggle_Factory(t) { return new (t || NgbPanelToggle)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbAccordion), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbPanel, 9)); };
  2392. NgbPanelToggle.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPanelToggle, selectors: [["button", "ngbPanelToggle", ""]], hostAttrs: ["type", "button"], hostVars: 5, hostBindings: function NgbPanelToggle_HostBindings(rf, ctx) { if (rf & 1) {
  2393. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbPanelToggle_click_HostBindingHandler() { return ctx.accordion.toggle(ctx.panel.id); });
  2394. } if (rf & 2) {
  2395. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("disabled", ctx.panel.disabled);
  2396. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", ctx.panel.isOpen)("aria-controls", ctx.panel.id);
  2397. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("collapsed", !ctx.panel.isOpen);
  2398. } }, inputs: { ngbPanelToggle: "ngbPanelToggle" } });
  2399. NgbPanelToggle.ctorParameters = () => [
  2400. { type: NgbAccordion },
  2401. { type: NgbPanel, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }] }
  2402. ];
  2403. NgbPanelToggle.propDecorators = {
  2404. ngbPanelToggle: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  2405. };
  2406. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPanelToggle, [{
  2407. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  2408. args: [{
  2409. selector: 'button[ngbPanelToggle]',
  2410. host: {
  2411. 'type': 'button',
  2412. '[disabled]': 'panel.disabled',
  2413. '[class.collapsed]': '!panel.isOpen',
  2414. '[attr.aria-expanded]': 'panel.isOpen',
  2415. '[attr.aria-controls]': 'panel.id',
  2416. '(click)': 'accordion.toggle(panel.id)'
  2417. }
  2418. }]
  2419. }], function () { return [{ type: NgbAccordion }, { type: NgbPanel, decorators: [{
  2420. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  2421. }, {
  2422. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  2423. }] }]; }, { ngbPanelToggle: [{
  2424. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2425. }] }); })();
  2426. const NGB_ACCORDION_DIRECTIVES = [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle];
  2427. class NgbAccordionModule {
  2428. }
  2429. NgbAccordionModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbAccordionModule });
  2430. NgbAccordionModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbAccordionModule_Factory(t) { return new (t || NgbAccordionModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  2431. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbAccordionModule, { declarations: function () { return [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbAccordion, NgbPanel, NgbPanelTitle, NgbPanelContent, NgbPanelHeader, NgbPanelToggle]; } }); })();
  2432. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbAccordionModule, [{
  2433. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  2434. args: [{ declarations: NGB_ACCORDION_DIRECTIVES, exports: NGB_ACCORDION_DIRECTIVES, imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]] }]
  2435. }], null, null); })();
  2436. /**
  2437. * A configuration service for the [NgbAlert](#/components/alert/api#NgbAlert) component.
  2438. *
  2439. * You can inject this service, typically in your root component, and customize its properties
  2440. * to provide default values for all alerts used in the application.
  2441. */
  2442. class NgbAlertConfig {
  2443. constructor(ngbConfig) {
  2444. this.dismissible = true;
  2445. this.type = 'warning';
  2446. this.animation = ngbConfig.animation;
  2447. }
  2448. }
  2449. NgbAlertConfig.ɵfac = function NgbAlertConfig_Factory(t) { return new (t || NgbAlertConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  2450. NgbAlertConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbAlertConfig_Factory() { return new NgbAlertConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbAlertConfig, providedIn: "root" });
  2451. NgbAlertConfig.ctorParameters = () => [
  2452. { type: NgbConfig }
  2453. ];
  2454. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbAlertConfig, [{
  2455. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  2456. args: [{ providedIn: 'root' }]
  2457. }], function () { return [{ type: NgbConfig }]; }, null); })();
  2458. const ngbAlertFadingTransition = ({ classList }) => {
  2459. classList.remove('show');
  2460. };
  2461. /**
  2462. * Alert is a component to provide contextual feedback messages for user.
  2463. *
  2464. * It supports several alert types and can be dismissed.
  2465. */
  2466. class NgbAlert {
  2467. constructor(config, _renderer, _element) {
  2468. this._renderer = _renderer;
  2469. this._element = _element;
  2470. /**
  2471. * An event emitted when the close button is clicked. It has no payload and only relevant for dismissible alerts.
  2472. *
  2473. * @since 8.0.0
  2474. */
  2475. this.closed = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2476. this.dismissible = config.dismissible;
  2477. this.type = config.type;
  2478. this.animation = config.animation;
  2479. }
  2480. /**
  2481. * Triggers alert closing programmatically (same as clicking on the close button (×)).
  2482. *
  2483. * The returned observable will emit and be completed once the closing transition has finished.
  2484. * If the animations are turned off this happens synchronously.
  2485. *
  2486. * Alternatively you could listen or subscribe to the `(closed)` output
  2487. *
  2488. * @since 8.0.0
  2489. */
  2490. close() {
  2491. const transition = ngbRunTransition(this._element.nativeElement, ngbAlertFadingTransition, { animation: this.animation, runningTransition: 'continue' });
  2492. transition.subscribe(() => this.closed.emit());
  2493. return transition;
  2494. }
  2495. ngOnChanges(changes) {
  2496. const typeChange = changes['type'];
  2497. if (typeChange && !typeChange.firstChange) {
  2498. this._renderer.removeClass(this._element.nativeElement, `alert-${typeChange.previousValue}`);
  2499. this._renderer.addClass(this._element.nativeElement, `alert-${typeChange.currentValue}`);
  2500. }
  2501. }
  2502. ngOnInit() { this._renderer.addClass(this._element.nativeElement, `alert-${this.type}`); }
  2503. }
  2504. NgbAlert.ɵfac = function NgbAlert_Factory(t) { return new (t || NgbAlert)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbAlertConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  2505. NgbAlert.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbAlert, selectors: [["ngb-alert"]], hostAttrs: ["role", "alert", 1, "alert", "show"], hostVars: 4, hostBindings: function NgbAlert_HostBindings(rf, ctx) { if (rf & 2) {
  2506. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("fade", ctx.animation)("alert-dismissible", ctx.dismissible);
  2507. } }, inputs: { dismissible: "dismissible", type: "type", animation: "animation" }, outputs: { closed: "closed" }, exportAs: ["ngbAlert"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c5, decls: 2, vars: 1, consts: function () { let i18n_1; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  2508. const MSG_EXTERNAL_ngb_alert_close$$FESM2015_NG_BOOTSTRAP_JS_2 = goog.getMsg("Close");
  2509. i18n_1 = MSG_EXTERNAL_ngb_alert_close$$FESM2015_NG_BOOTSTRAP_JS_2;
  2510. }
  2511. else {
  2512. i18n_1 = $localize `:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;
  2513. } let i18n_3; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  2514. const MSG_EXTERNAL_ngb_alert_close$$FESM2015_NG_BOOTSTRAP_JS__4 = goog.getMsg("Close");
  2515. i18n_3 = MSG_EXTERNAL_ngb_alert_close$$FESM2015_NG_BOOTSTRAP_JS__4;
  2516. }
  2517. else {
  2518. i18n_3 = $localize `:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;
  2519. } return [["type", "button", "class", "close", "aria-label", i18n_1, 3, "click", 4, "ngIf"], ["type", "button", "aria-label", i18n_3, 1, "close", 3, "click"], ["aria-hidden", "true"]]; }, template: function NgbAlert_Template(rf, ctx) { if (rf & 1) {
  2520. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  2521. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);
  2522. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbAlert_button_1_Template, 3, 0, "button", 0);
  2523. } if (rf & 2) {
  2524. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  2525. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.dismissible);
  2526. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"]], styles: ["ngb-alert{display:block}"], encapsulation: 2, changeDetection: 0 });
  2527. NgbAlert.ctorParameters = () => [
  2528. { type: NgbAlertConfig },
  2529. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  2530. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  2531. ];
  2532. NgbAlert.propDecorators = {
  2533. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2534. dismissible: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2535. type: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2536. closed: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  2537. };
  2538. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbAlert, [{
  2539. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  2540. args: [{
  2541. selector: 'ngb-alert',
  2542. exportAs: 'ngbAlert',
  2543. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  2544. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  2545. host: { 'role': 'alert', 'class': 'alert show', '[class.fade]': 'animation', '[class.alert-dismissible]': 'dismissible' },
  2546. template: `
  2547. <ng-content></ng-content>
  2548. <button *ngIf="dismissible" type="button" class="close" aria-label="Close" i18n-aria-label="@@ngb.alert.close"
  2549. (click)="close()">
  2550. <span aria-hidden="true">&times;</span>
  2551. </button>
  2552. `,
  2553. styles: ["ngb-alert{display:block}"]
  2554. }]
  2555. }], function () { return [{ type: NgbAlertConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { closed: [{
  2556. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2557. }], dismissible: [{
  2558. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2559. }], type: [{
  2560. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2561. }], animation: [{
  2562. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2563. }] }); })();
  2564. class NgbAlertModule {
  2565. }
  2566. NgbAlertModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbAlertModule });
  2567. NgbAlertModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbAlertModule_Factory(t) { return new (t || NgbAlertModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  2568. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbAlertModule, { declarations: function () { return [NgbAlert]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbAlert]; } }); })();
  2569. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbAlertModule, [{
  2570. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  2571. args: [{ declarations: [NgbAlert], exports: [NgbAlert], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]], entryComponents: [NgbAlert] }]
  2572. }], null, null); })();
  2573. class NgbButtonLabel {
  2574. }
  2575. NgbButtonLabel.ɵfac = function NgbButtonLabel_Factory(t) { return new (t || NgbButtonLabel)(); };
  2576. NgbButtonLabel.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbButtonLabel, selectors: [["", "ngbButtonLabel", ""]], hostVars: 8, hostBindings: function NgbButtonLabel_HostBindings(rf, ctx) { if (rf & 2) {
  2577. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("btn", true)("active", ctx.active)("disabled", ctx.disabled)("focus", ctx.focused);
  2578. } } });
  2579. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbButtonLabel, [{
  2580. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  2581. args: [{
  2582. selector: '[ngbButtonLabel]',
  2583. host: { '[class.btn]': 'true', '[class.active]': 'active', '[class.disabled]': 'disabled', '[class.focus]': 'focused' }
  2584. }]
  2585. }], null, null); })();
  2586. const NGB_CHECKBOX_VALUE_ACCESSOR = {
  2587. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALUE_ACCESSOR"],
  2588. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbCheckBox),
  2589. multi: true
  2590. };
  2591. /**
  2592. * Allows to easily create Bootstrap-style checkbox buttons.
  2593. *
  2594. * Integrates with forms, so the value of a checked button is bound to the underlying form control
  2595. * either in a reactive or template-driven way.
  2596. */
  2597. class NgbCheckBox {
  2598. constructor(_label, _cd) {
  2599. this._label = _label;
  2600. this._cd = _cd;
  2601. /**
  2602. * If `true`, the checkbox button will be disabled
  2603. */
  2604. this.disabled = false;
  2605. /**
  2606. * The form control value when the checkbox is checked.
  2607. */
  2608. this.valueChecked = true;
  2609. /**
  2610. * The form control value when the checkbox is unchecked.
  2611. */
  2612. this.valueUnChecked = false;
  2613. this.onChange = (_) => { };
  2614. this.onTouched = () => { };
  2615. }
  2616. set focused(isFocused) {
  2617. this._label.focused = isFocused;
  2618. if (!isFocused) {
  2619. this.onTouched();
  2620. }
  2621. }
  2622. onInputChange($event) {
  2623. const modelToPropagate = $event.target.checked ? this.valueChecked : this.valueUnChecked;
  2624. this.onChange(modelToPropagate);
  2625. this.onTouched();
  2626. this.writeValue(modelToPropagate);
  2627. }
  2628. registerOnChange(fn) { this.onChange = fn; }
  2629. registerOnTouched(fn) { this.onTouched = fn; }
  2630. setDisabledState(isDisabled) {
  2631. this.disabled = isDisabled;
  2632. this._label.disabled = isDisabled;
  2633. }
  2634. writeValue(value) {
  2635. this.checked = value === this.valueChecked;
  2636. this._label.active = this.checked;
  2637. // label won't be updated, if it is inside the OnPush component when [ngModel] changes
  2638. this._cd.markForCheck();
  2639. }
  2640. }
  2641. NgbCheckBox.ɵfac = function NgbCheckBox_Factory(t) { return new (t || NgbCheckBox)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbButtonLabel), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); };
  2642. NgbCheckBox.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbCheckBox, selectors: [["", "ngbButton", "", "type", "checkbox"]], hostVars: 2, hostBindings: function NgbCheckBox_HostBindings(rf, ctx) { if (rf & 1) {
  2643. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function NgbCheckBox_change_HostBindingHandler($event) { return ctx.onInputChange($event); })("focus", function NgbCheckBox_focus_HostBindingHandler() { return ctx.focused = true; })("blur", function NgbCheckBox_blur_HostBindingHandler() { return ctx.focused = false; });
  2644. } if (rf & 2) {
  2645. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("checked", ctx.checked)("disabled", ctx.disabled);
  2646. } }, inputs: { disabled: "disabled", valueChecked: "valueChecked", valueUnChecked: "valueUnChecked" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NGB_CHECKBOX_VALUE_ACCESSOR])] });
  2647. NgbCheckBox.ctorParameters = () => [
  2648. { type: NgbButtonLabel },
  2649. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  2650. ];
  2651. NgbCheckBox.propDecorators = {
  2652. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2653. valueChecked: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2654. valueUnChecked: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  2655. };
  2656. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCheckBox, [{
  2657. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  2658. args: [{
  2659. selector: '[ngbButton][type=checkbox]',
  2660. host: {
  2661. '[checked]': 'checked',
  2662. '[disabled]': 'disabled',
  2663. '(change)': 'onInputChange($event)',
  2664. '(focus)': 'focused = true',
  2665. '(blur)': 'focused = false'
  2666. },
  2667. providers: [NGB_CHECKBOX_VALUE_ACCESSOR]
  2668. }]
  2669. }], function () { return [{ type: NgbButtonLabel }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, { disabled: [{
  2670. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2671. }], valueChecked: [{
  2672. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2673. }], valueUnChecked: [{
  2674. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2675. }] }); })();
  2676. const NGB_RADIO_VALUE_ACCESSOR = {
  2677. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALUE_ACCESSOR"],
  2678. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbRadioGroup),
  2679. multi: true
  2680. };
  2681. let nextId$1 = 0;
  2682. /**
  2683. * Allows to easily create Bootstrap-style radio buttons.
  2684. *
  2685. * Integrates with forms, so the value of a checked button is bound to the underlying form control
  2686. * either in a reactive or template-driven way.
  2687. */
  2688. class NgbRadioGroup {
  2689. constructor() {
  2690. this._radios = new Set();
  2691. this._value = null;
  2692. /**
  2693. * Name of the radio group applied to radio input elements.
  2694. *
  2695. * Will be applied to all radio input elements inside the group,
  2696. * unless [`NgbRadio`](#/components/buttons/api#NgbRadio)'s specify names themselves.
  2697. *
  2698. * If not provided, will be generated in the `ngb-radio-xx` format.
  2699. */
  2700. this.name = `ngb-radio-${nextId$1++}`;
  2701. this.onChange = (_) => { };
  2702. this.onTouched = () => { };
  2703. }
  2704. get disabled() { return this._disabled; }
  2705. set disabled(isDisabled) { this.setDisabledState(isDisabled); }
  2706. onRadioChange(radio) {
  2707. this.writeValue(radio.value);
  2708. this.onChange(radio.value);
  2709. }
  2710. onRadioValueUpdate() { this._updateRadiosValue(); }
  2711. register(radio) { this._radios.add(radio); }
  2712. registerOnChange(fn) { this.onChange = fn; }
  2713. registerOnTouched(fn) { this.onTouched = fn; }
  2714. setDisabledState(isDisabled) {
  2715. this._disabled = isDisabled;
  2716. this._updateRadiosDisabled();
  2717. }
  2718. unregister(radio) { this._radios.delete(radio); }
  2719. writeValue(value) {
  2720. this._value = value;
  2721. this._updateRadiosValue();
  2722. }
  2723. _updateRadiosValue() { this._radios.forEach((radio) => radio.updateValue(this._value)); }
  2724. _updateRadiosDisabled() { this._radios.forEach((radio) => radio.updateDisabled()); }
  2725. }
  2726. NgbRadioGroup.ɵfac = function NgbRadioGroup_Factory(t) { return new (t || NgbRadioGroup)(); };
  2727. NgbRadioGroup.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbRadioGroup, selectors: [["", "ngbRadioGroup", ""]], hostAttrs: ["role", "radiogroup"], inputs: { name: "name" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NGB_RADIO_VALUE_ACCESSOR])] });
  2728. NgbRadioGroup.propDecorators = {
  2729. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  2730. };
  2731. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbRadioGroup, [{
  2732. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  2733. args: [{ selector: '[ngbRadioGroup]', host: { 'role': 'radiogroup' }, providers: [NGB_RADIO_VALUE_ACCESSOR] }]
  2734. }], function () { return []; }, { name: [{
  2735. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2736. }] }); })();
  2737. /**
  2738. * A directive that marks an input of type "radio" as a part of the
  2739. * [`NgbRadioGroup`](#/components/buttons/api#NgbRadioGroup).
  2740. */
  2741. class NgbRadio {
  2742. constructor(_group, _label, _renderer, _element, _cd) {
  2743. this._group = _group;
  2744. this._label = _label;
  2745. this._renderer = _renderer;
  2746. this._element = _element;
  2747. this._cd = _cd;
  2748. this._value = null;
  2749. this._group.register(this);
  2750. this.updateDisabled();
  2751. }
  2752. /**
  2753. * The form control value when current radio button is checked.
  2754. */
  2755. set value(value) {
  2756. this._value = value;
  2757. const stringValue = value ? value.toString() : '';
  2758. this._renderer.setProperty(this._element.nativeElement, 'value', stringValue);
  2759. this._group.onRadioValueUpdate();
  2760. }
  2761. /**
  2762. * If `true`, current radio button will be disabled.
  2763. */
  2764. set disabled(isDisabled) {
  2765. this._disabled = isDisabled !== false;
  2766. this.updateDisabled();
  2767. }
  2768. set focused(isFocused) {
  2769. if (this._label) {
  2770. this._label.focused = isFocused;
  2771. }
  2772. if (!isFocused) {
  2773. this._group.onTouched();
  2774. }
  2775. }
  2776. get checked() { return this._checked; }
  2777. get disabled() { return this._group.disabled || this._disabled; }
  2778. get value() { return this._value; }
  2779. get nameAttr() { return this.name || this._group.name; }
  2780. ngOnDestroy() { this._group.unregister(this); }
  2781. onChange() { this._group.onRadioChange(this); }
  2782. updateValue(value) {
  2783. // label won't be updated, if it is inside the OnPush component when [ngModel] changes
  2784. if (this.value !== value) {
  2785. this._cd.markForCheck();
  2786. }
  2787. this._checked = this.value === value;
  2788. this._label.active = this._checked;
  2789. }
  2790. updateDisabled() { this._label.disabled = this.disabled; }
  2791. }
  2792. NgbRadio.ɵfac = function NgbRadio_Factory(t) { return new (t || NgbRadio)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbRadioGroup), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbButtonLabel), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); };
  2793. NgbRadio.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbRadio, selectors: [["", "ngbButton", "", "type", "radio"]], hostVars: 3, hostBindings: function NgbRadio_HostBindings(rf, ctx) { if (rf & 1) {
  2794. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function NgbRadio_change_HostBindingHandler() { return ctx.onChange(); })("focus", function NgbRadio_focus_HostBindingHandler() { return ctx.focused = true; })("blur", function NgbRadio_blur_HostBindingHandler() { return ctx.focused = false; });
  2795. } if (rf & 2) {
  2796. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("checked", ctx.checked)("disabled", ctx.disabled)("name", ctx.nameAttr);
  2797. } }, inputs: { value: "value", disabled: "disabled", name: "name" } });
  2798. NgbRadio.ctorParameters = () => [
  2799. { type: NgbRadioGroup },
  2800. { type: NgbButtonLabel },
  2801. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  2802. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  2803. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  2804. ];
  2805. NgbRadio.propDecorators = {
  2806. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2807. value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['value',] }],
  2808. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['disabled',] }]
  2809. };
  2810. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbRadio, [{
  2811. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  2812. args: [{
  2813. selector: '[ngbButton][type=radio]',
  2814. host: {
  2815. '[checked]': 'checked',
  2816. '[disabled]': 'disabled',
  2817. '[name]': 'nameAttr',
  2818. '(change)': 'onChange()',
  2819. '(focus)': 'focused = true',
  2820. '(blur)': 'focused = false'
  2821. }
  2822. }]
  2823. }], function () { return [{ type: NgbRadioGroup }, { type: NgbButtonLabel }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, { value: [{
  2824. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  2825. args: ['value']
  2826. }], disabled: [{
  2827. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  2828. args: ['disabled']
  2829. }], name: [{
  2830. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2831. }] }); })();
  2832. const NGB_BUTTON_DIRECTIVES = [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio];
  2833. class NgbButtonsModule {
  2834. }
  2835. NgbButtonsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbButtonsModule });
  2836. NgbButtonsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbButtonsModule_Factory(t) { return new (t || NgbButtonsModule)(); } });
  2837. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbButtonsModule, { declarations: [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio], exports: [NgbButtonLabel, NgbCheckBox, NgbRadioGroup, NgbRadio] }); })();
  2838. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbButtonsModule, [{
  2839. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  2840. args: [{ declarations: NGB_BUTTON_DIRECTIVES, exports: NGB_BUTTON_DIRECTIVES }]
  2841. }], null, null); })();
  2842. /**
  2843. * A configuration service for the [NgbCarousel](#/components/carousel/api#NgbCarousel) component.
  2844. *
  2845. * You can inject this service, typically in your root component, and customize its properties
  2846. * to provide default values for all carousels used in the application.
  2847. */
  2848. class NgbCarouselConfig {
  2849. constructor(ngbConfig) {
  2850. this.interval = 5000;
  2851. this.wrap = true;
  2852. this.keyboard = true;
  2853. this.pauseOnHover = true;
  2854. this.pauseOnFocus = true;
  2855. this.showNavigationArrows = true;
  2856. this.showNavigationIndicators = true;
  2857. this.animation = ngbConfig.animation;
  2858. }
  2859. }
  2860. NgbCarouselConfig.ɵfac = function NgbCarouselConfig_Factory(t) { return new (t || NgbCarouselConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  2861. NgbCarouselConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbCarouselConfig_Factory() { return new NgbCarouselConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbCarouselConfig, providedIn: "root" });
  2862. NgbCarouselConfig.ctorParameters = () => [
  2863. { type: NgbConfig }
  2864. ];
  2865. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCarouselConfig, [{
  2866. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  2867. args: [{ providedIn: 'root' }]
  2868. }], function () { return [{ type: NgbConfig }]; }, null); })();
  2869. /**
  2870. * Defines the carousel slide transition direction.
  2871. */
  2872. var NgbSlideEventDirection;
  2873. (function (NgbSlideEventDirection) {
  2874. NgbSlideEventDirection["LEFT"] = "left";
  2875. NgbSlideEventDirection["RIGHT"] = "right";
  2876. })(NgbSlideEventDirection || (NgbSlideEventDirection = {}));
  2877. const isAnimated = ({ classList }) => {
  2878. return classList.contains('carousel-item-left') || classList.contains('carousel-item-right');
  2879. };
  2880. const ɵ0$1 = isAnimated;
  2881. const removeDirectionClasses = ({ classList }) => {
  2882. classList.remove('carousel-item-left');
  2883. classList.remove('carousel-item-right');
  2884. };
  2885. const ɵ1 = removeDirectionClasses;
  2886. const removeClasses = ({ classList }) => {
  2887. removeDirectionClasses({ classList });
  2888. classList.remove('carousel-item-prev');
  2889. classList.remove('carousel-item-next');
  2890. };
  2891. const ɵ2 = removeClasses;
  2892. const ngbCarouselTransitionIn = (element, { direction }) => {
  2893. const { classList } = element;
  2894. if (isAnimated(element)) {
  2895. // Revert the transition
  2896. removeDirectionClasses(element);
  2897. }
  2898. else {
  2899. // For the 'in' transition, a 'pre-class' is applied to the element to ensure its visibility
  2900. classList.add('carousel-item-' + (direction === NgbSlideEventDirection.LEFT ? 'next' : 'prev'));
  2901. reflow(element);
  2902. classList.add('carousel-item-' + direction);
  2903. }
  2904. return () => {
  2905. removeClasses(element);
  2906. classList.add('active');
  2907. };
  2908. };
  2909. const ngbCarouselTransitionOut = (element, { direction }) => {
  2910. const { classList } = element;
  2911. // direction is left or right, depending on the way the slide goes out.
  2912. if (isAnimated(element)) {
  2913. // Revert the transition
  2914. removeDirectionClasses(element);
  2915. }
  2916. else {
  2917. classList.add('carousel-item-' + direction);
  2918. }
  2919. return () => {
  2920. removeClasses(element);
  2921. classList.remove('active');
  2922. };
  2923. };
  2924. let nextId$2 = 0;
  2925. /**
  2926. * A directive that wraps the individual carousel slide.
  2927. */
  2928. class NgbSlide {
  2929. constructor(tplRef) {
  2930. this.tplRef = tplRef;
  2931. /**
  2932. * Slide id that must be unique for the entire document.
  2933. *
  2934. * If not provided, will be generated in the `ngb-slide-xx` format.
  2935. */
  2936. this.id = `ngb-slide-${nextId$2++}`;
  2937. /**
  2938. * An event emitted when the slide transition is finished
  2939. *
  2940. * @since 8.0.0
  2941. */
  2942. this.slid = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2943. }
  2944. }
  2945. NgbSlide.ɵfac = function NgbSlide_Factory(t) { return new (t || NgbSlide)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  2946. NgbSlide.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbSlide, selectors: [["ng-template", "ngbSlide", ""]], inputs: { id: "id" }, outputs: { slid: "slid" } });
  2947. NgbSlide.ctorParameters = () => [
  2948. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  2949. ];
  2950. NgbSlide.propDecorators = {
  2951. id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  2952. slid: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  2953. };
  2954. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbSlide, [{
  2955. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  2956. args: [{ selector: 'ng-template[ngbSlide]' }]
  2957. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, { id: [{
  2958. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  2959. }], slid: [{
  2960. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  2961. }] }); })();
  2962. /**
  2963. * Carousel is a component to easily create and control slideshows.
  2964. *
  2965. * Allows to set intervals, change the way user interacts with the slides and provides a programmatic API.
  2966. */
  2967. class NgbCarousel {
  2968. constructor(config, _platformId, _ngZone, _cd, _container) {
  2969. this._platformId = _platformId;
  2970. this._ngZone = _ngZone;
  2971. this._cd = _cd;
  2972. this._container = _container;
  2973. this.NgbSlideEventSource = NgbSlideEventSource;
  2974. this._destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  2975. this._interval$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](0);
  2976. this._mouseHover$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](false);
  2977. this._focused$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](false);
  2978. this._pauseOnHover$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](false);
  2979. this._pauseOnFocus$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](false);
  2980. this._pause$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](false);
  2981. this._wrap$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](false);
  2982. /**
  2983. * An event emitted just before the slide transition starts.
  2984. *
  2985. * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details.
  2986. */
  2987. this.slide = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2988. /**
  2989. * An event emitted right after the slide transition is completed.
  2990. *
  2991. * See [`NgbSlideEvent`](#/components/carousel/api#NgbSlideEvent) for payload details.
  2992. *
  2993. * @since 8.0.0
  2994. */
  2995. this.slid = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  2996. /*
  2997. * Keep the ids of the panels currently transitionning
  2998. * in order to allow only the transition revertion
  2999. */
  3000. this._transitionIds = null;
  3001. this.animation = config.animation;
  3002. this.interval = config.interval;
  3003. this.wrap = config.wrap;
  3004. this.keyboard = config.keyboard;
  3005. this.pauseOnHover = config.pauseOnHover;
  3006. this.pauseOnFocus = config.pauseOnFocus;
  3007. this.showNavigationArrows = config.showNavigationArrows;
  3008. this.showNavigationIndicators = config.showNavigationIndicators;
  3009. }
  3010. /**
  3011. * Time in milliseconds before the next slide is shown.
  3012. */
  3013. set interval(value) {
  3014. this._interval$.next(value);
  3015. }
  3016. get interval() { return this._interval$.value; }
  3017. /**
  3018. * If `true`, will 'wrap' the carousel by switching from the last slide back to the first.
  3019. */
  3020. set wrap(value) {
  3021. this._wrap$.next(value);
  3022. }
  3023. get wrap() { return this._wrap$.value; }
  3024. /**
  3025. * If `true`, will pause slide switching when mouse cursor hovers the slide.
  3026. *
  3027. * @since 2.2.0
  3028. */
  3029. set pauseOnHover(value) {
  3030. this._pauseOnHover$.next(value);
  3031. }
  3032. get pauseOnHover() { return this._pauseOnHover$.value; }
  3033. /**
  3034. * If `true`, will pause slide switching when the focus is inside the carousel.
  3035. */
  3036. set pauseOnFocus(value) {
  3037. this._pauseOnFocus$.next(value);
  3038. }
  3039. get pauseOnFocus() { return this._pauseOnFocus$.value; }
  3040. set mouseHover(value) { this._mouseHover$.next(value); }
  3041. get mouseHover() { return this._mouseHover$.value; }
  3042. set focused(value) { this._focused$.next(value); }
  3043. get focused() { return this._focused$.value; }
  3044. arrowLeft() {
  3045. this.focus();
  3046. this.prev(NgbSlideEventSource.ARROW_LEFT);
  3047. }
  3048. arrowRight() {
  3049. this.focus();
  3050. this.next(NgbSlideEventSource.ARROW_RIGHT);
  3051. }
  3052. ngAfterContentInit() {
  3053. // setInterval() doesn't play well with SSR and protractor,
  3054. // so we should run it in the browser and outside Angular
  3055. if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this._platformId)) {
  3056. this._ngZone.runOutsideAngular(() => {
  3057. const hasNextSlide$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["combineLatest"])([
  3058. this.slide.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(slideEvent => slideEvent.current), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(this.activeId)),
  3059. this._wrap$, this.slides.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(null))
  3060. ])
  3061. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(([currentSlideId, wrap]) => {
  3062. const slideArr = this.slides.toArray();
  3063. const currentSlideIdx = this._getSlideIdxById(currentSlideId);
  3064. return wrap ? slideArr.length > 1 : currentSlideIdx < slideArr.length - 1;
  3065. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])());
  3066. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["combineLatest"])([
  3067. this._pause$, this._pauseOnHover$, this._mouseHover$, this._pauseOnFocus$, this._focused$, this._interval$,
  3068. hasNextSlide$
  3069. ])
  3070. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(([pause, pauseOnHover, mouseHover, pauseOnFocus, focused, interval, hasNextSlide]) => ((pause || (pauseOnHover && mouseHover) || (pauseOnFocus && focused) || !hasNextSlide) ?
  3071. 0 :
  3072. interval)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(interval => interval > 0 ? Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["timer"])(interval, interval) : rxjs__WEBPACK_IMPORTED_MODULE_2__["NEVER"]), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroy$))
  3073. .subscribe(() => this._ngZone.run(() => this.next(NgbSlideEventSource.TIMER)));
  3074. });
  3075. }
  3076. this.slides.changes.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroy$)).subscribe(() => this._cd.markForCheck());
  3077. }
  3078. ngAfterContentChecked() {
  3079. let activeSlide = this._getSlideById(this.activeId);
  3080. this.activeId = activeSlide ? activeSlide.id : (this.slides.length ? this.slides.first.id : '');
  3081. }
  3082. ngAfterViewInit() {
  3083. // Initialize the 'active' class (not managed by the template)
  3084. if (this.activeId) {
  3085. const element = this._getSlideElement(this.activeId);
  3086. if (element) {
  3087. element.classList.add('active');
  3088. }
  3089. }
  3090. }
  3091. ngOnDestroy() { this._destroy$.next(); }
  3092. /**
  3093. * Navigates to a slide with the specified identifier.
  3094. */
  3095. select(slideId, source) {
  3096. this._cycleToSelected(slideId, this._getSlideEventDirection(this.activeId, slideId), source);
  3097. }
  3098. /**
  3099. * Navigates to the previous slide.
  3100. */
  3101. prev(source) {
  3102. this._cycleToSelected(this._getPrevSlide(this.activeId), NgbSlideEventDirection.RIGHT, source);
  3103. }
  3104. /**
  3105. * Navigates to the next slide.
  3106. */
  3107. next(source) {
  3108. this._cycleToSelected(this._getNextSlide(this.activeId), NgbSlideEventDirection.LEFT, source);
  3109. }
  3110. /**
  3111. * Pauses cycling through the slides.
  3112. */
  3113. pause() { this._pause$.next(true); }
  3114. /**
  3115. * Restarts cycling through the slides from left to right.
  3116. */
  3117. cycle() { this._pause$.next(false); }
  3118. /**
  3119. * Set the focus on the carousel.
  3120. */
  3121. focus() { this._container.nativeElement.focus(); }
  3122. _cycleToSelected(slideIdx, direction, source) {
  3123. const transitionIds = this._transitionIds;
  3124. if (transitionIds && (transitionIds[0] !== slideIdx || transitionIds[1] !== this.activeId)) {
  3125. // Revert prevented
  3126. return;
  3127. }
  3128. let selectedSlide = this._getSlideById(slideIdx);
  3129. if (selectedSlide && selectedSlide.id !== this.activeId) {
  3130. this._transitionIds = [this.activeId, slideIdx];
  3131. this.slide.emit({ prev: this.activeId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source });
  3132. const options = {
  3133. animation: this.animation,
  3134. runningTransition: 'stop',
  3135. context: { direction },
  3136. };
  3137. const transitions = [];
  3138. const activeSlide = this._getSlideById(this.activeId);
  3139. if (activeSlide) {
  3140. const activeSlideTransition = ngbRunTransition(this._getSlideElement(activeSlide.id), ngbCarouselTransitionOut, options);
  3141. activeSlideTransition.subscribe(() => { activeSlide.slid.emit({ isShown: false, direction, source }); });
  3142. transitions.push(activeSlideTransition);
  3143. }
  3144. const previousId = this.activeId;
  3145. this.activeId = selectedSlide.id;
  3146. const nextSlide = this._getSlideById(this.activeId);
  3147. const transition = ngbRunTransition(this._getSlideElement(selectedSlide.id), ngbCarouselTransitionIn, options);
  3148. transition.subscribe(() => { nextSlide === null || nextSlide === void 0 ? void 0 : nextSlide.slid.emit({ isShown: true, direction, source }); });
  3149. transitions.push(transition);
  3150. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["zip"])(...transitions).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)).subscribe(() => {
  3151. this._transitionIds = null;
  3152. this.slid.emit({ prev: previousId, current: selectedSlide.id, direction: direction, paused: this._pause$.value, source });
  3153. });
  3154. }
  3155. // we get here after the interval fires or any external API call like next(), prev() or select()
  3156. this._cd.markForCheck();
  3157. }
  3158. _getSlideEventDirection(currentActiveSlideId, nextActiveSlideId) {
  3159. const currentActiveSlideIdx = this._getSlideIdxById(currentActiveSlideId);
  3160. const nextActiveSlideIdx = this._getSlideIdxById(nextActiveSlideId);
  3161. return currentActiveSlideIdx > nextActiveSlideIdx ? NgbSlideEventDirection.RIGHT : NgbSlideEventDirection.LEFT;
  3162. }
  3163. _getSlideById(slideId) {
  3164. return this.slides.find(slide => slide.id === slideId) || null;
  3165. }
  3166. _getSlideIdxById(slideId) {
  3167. const slide = this._getSlideById(slideId);
  3168. return slide != null ? this.slides.toArray().indexOf(slide) : -1;
  3169. }
  3170. _getNextSlide(currentSlideId) {
  3171. const slideArr = this.slides.toArray();
  3172. const currentSlideIdx = this._getSlideIdxById(currentSlideId);
  3173. const isLastSlide = currentSlideIdx === slideArr.length - 1;
  3174. return isLastSlide ? (this.wrap ? slideArr[0].id : slideArr[slideArr.length - 1].id) :
  3175. slideArr[currentSlideIdx + 1].id;
  3176. }
  3177. _getPrevSlide(currentSlideId) {
  3178. const slideArr = this.slides.toArray();
  3179. const currentSlideIdx = this._getSlideIdxById(currentSlideId);
  3180. const isFirstSlide = currentSlideIdx === 0;
  3181. return isFirstSlide ? (this.wrap ? slideArr[slideArr.length - 1].id : slideArr[0].id) :
  3182. slideArr[currentSlideIdx - 1].id;
  3183. }
  3184. _getSlideElement(slideId) {
  3185. return this._container.nativeElement.querySelector(`#slide-${slideId}`);
  3186. }
  3187. }
  3188. NgbCarousel.ɵfac = function NgbCarousel_Factory(t) { return new (t || NgbCarousel)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbCarouselConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  3189. NgbCarousel.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbCarousel, selectors: [["ngb-carousel"]], contentQueries: function NgbCarousel_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  3190. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbSlide, false);
  3191. } if (rf & 2) {
  3192. let _t;
  3193. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.slides = _t);
  3194. } }, hostAttrs: ["tabIndex", "0", 1, "carousel", "slide"], hostVars: 3, hostBindings: function NgbCarousel_HostBindings(rf, ctx) { if (rf & 1) {
  3195. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown.arrowLeft", function NgbCarousel_keydown_arrowLeft_HostBindingHandler() { return ctx.keyboard && ctx.arrowLeft(); })("keydown.arrowRight", function NgbCarousel_keydown_arrowRight_HostBindingHandler() { return ctx.keyboard && ctx.arrowRight(); })("mouseenter", function NgbCarousel_mouseenter_HostBindingHandler() { return ctx.mouseHover = true; })("mouseleave", function NgbCarousel_mouseleave_HostBindingHandler() { return ctx.mouseHover = false; })("focusin", function NgbCarousel_focusin_HostBindingHandler() { return ctx.focused = true; })("focusout", function NgbCarousel_focusout_HostBindingHandler() { return ctx.focused = false; });
  3196. } if (rf & 2) {
  3197. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-activedescendant", ctx.activeId);
  3198. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("display", "block");
  3199. } }, inputs: { animation: "animation", interval: "interval", wrap: "wrap", keyboard: "keyboard", pauseOnHover: "pauseOnHover", pauseOnFocus: "pauseOnFocus", showNavigationArrows: "showNavigationArrows", showNavigationIndicators: "showNavigationIndicators", activeId: "activeId" }, outputs: { slide: "slide", slid: "slid" }, exportAs: ["ngbCarousel"], decls: 6, vars: 6, consts: function () { let i18n_6; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  3200. /**
  3201. * @desc Currently selected slide number read by screen reader
  3202. */
  3203. const MSG_EXTERNAL_ngb_carousel_slide_number$$FESM2015_NG_BOOTSTRAP_JS__7 = goog.getMsg(" Slide {$interpolation} of {$interpolation_1} ", { "interpolation": "\uFFFD0\uFFFD", "interpolation_1": "\uFFFD1\uFFFD" });
  3204. i18n_6 = MSG_EXTERNAL_ngb_carousel_slide_number$$FESM2015_NG_BOOTSTRAP_JS__7;
  3205. }
  3206. else {
  3207. i18n_6 = $localize `:Currently selected slide number read by screen reader@@ngb.carousel.slide-number␟a65b1b49aa7dd8c4f3004da6a8c2241814dae621␟783273603869937627: Slide ${"\uFFFD0\uFFFD"}:INTERPOLATION: of ${"\uFFFD1\uFFFD"}:INTERPOLATION_1: `;
  3208. } let i18n_8; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  3209. const MSG_EXTERNAL_ngb_carousel_previous$$FESM2015_NG_BOOTSTRAP_JS__9 = goog.getMsg("Previous");
  3210. i18n_8 = MSG_EXTERNAL_ngb_carousel_previous$$FESM2015_NG_BOOTSTRAP_JS__9;
  3211. }
  3212. else {
  3213. i18n_8 = $localize `:@@ngb.carousel.previous␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`;
  3214. } let i18n_10; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  3215. const MSG_EXTERNAL_ngb_carousel_next$$FESM2015_NG_BOOTSTRAP_JS__11 = goog.getMsg("Next");
  3216. i18n_10 = MSG_EXTERNAL_ngb_carousel_next$$FESM2015_NG_BOOTSTRAP_JS__11;
  3217. }
  3218. else {
  3219. i18n_10 = $localize `:@@ngb.carousel.next␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`;
  3220. } return [["role", "tablist", 1, "carousel-indicators"], ["role", "tab", 3, "active", "click", 4, "ngFor", "ngForOf"], [1, "carousel-inner"], ["class", "carousel-item", "role", "tabpanel", 3, "id", 4, "ngFor", "ngForOf"], ["class", "carousel-control-prev", "role", "button", 3, "click", 4, "ngIf"], ["class", "carousel-control-next", "role", "button", 3, "click", 4, "ngIf"], ["role", "tab", 3, "click"], ["role", "tabpanel", 1, "carousel-item", 3, "id"], [1, "sr-only"], i18n_6, [3, "ngTemplateOutlet"], ["role", "button", 1, "carousel-control-prev", 3, "click"], ["aria-hidden", "true", 1, "carousel-control-prev-icon"], i18n_8, ["role", "button", 1, "carousel-control-next", 3, "click"], ["aria-hidden", "true", 1, "carousel-control-next-icon"], i18n_10]; }, template: function NgbCarousel_Template(rf, ctx) { if (rf & 1) {
  3221. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ol", 0);
  3222. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbCarousel_li_1_Template, 1, 5, "li", 1);
  3223. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3224. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  3225. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbCarousel_div_3_Template, 4, 4, "div", 3);
  3226. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  3227. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, NgbCarousel_a_4_Template, 4, 0, "a", 4);
  3228. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, NgbCarousel_a_5_Template, 4, 0, "a", 5);
  3229. } if (rf & 2) {
  3230. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("sr-only", !ctx.showNavigationIndicators);
  3231. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  3232. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.slides);
  3233. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  3234. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.slides);
  3235. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  3236. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showNavigationArrows);
  3237. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  3238. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showNavigationArrows);
  3239. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"]], encapsulation: 2, changeDetection: 0 });
  3240. NgbCarousel.ctorParameters = () => [
  3241. { type: NgbCarouselConfig },
  3242. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"],] }] },
  3243. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  3244. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  3245. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  3246. ];
  3247. NgbCarousel.propDecorators = {
  3248. slides: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgbSlide,] }],
  3249. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3250. activeId: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3251. interval: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3252. wrap: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3253. keyboard: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3254. pauseOnHover: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3255. pauseOnFocus: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3256. showNavigationArrows: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3257. showNavigationIndicators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3258. slide: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  3259. slid: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  3260. };
  3261. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCarousel, [{
  3262. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  3263. args: [{
  3264. selector: 'ngb-carousel',
  3265. exportAs: 'ngbCarousel',
  3266. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  3267. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  3268. host: {
  3269. 'class': 'carousel slide',
  3270. '[style.display]': '"block"',
  3271. 'tabIndex': '0',
  3272. '(keydown.arrowLeft)': 'keyboard && arrowLeft()',
  3273. '(keydown.arrowRight)': 'keyboard && arrowRight()',
  3274. '(mouseenter)': 'mouseHover = true',
  3275. '(mouseleave)': 'mouseHover = false',
  3276. '(focusin)': 'focused = true',
  3277. '(focusout)': 'focused = false',
  3278. '[attr.aria-activedescendant]': 'activeId'
  3279. },
  3280. template: `
  3281. <ol class="carousel-indicators" [class.sr-only]="!showNavigationIndicators" role="tablist">
  3282. <li *ngFor="let slide of slides" [class.active]="slide.id === activeId"
  3283. role="tab" [attr.aria-labelledby]="'slide-' + slide.id" [attr.aria-controls]="'slide-' + slide.id"
  3284. [attr.aria-selected]="slide.id === activeId"
  3285. (click)="focus();select(slide.id, NgbSlideEventSource.INDICATOR);"></li>
  3286. </ol>
  3287. <div class="carousel-inner">
  3288. <div *ngFor="let slide of slides; index as i; count as c" class="carousel-item" [id]="'slide-' + slide.id" role="tabpanel">
  3289. <span class="sr-only" i18n="Currently selected slide number read by screen reader@@ngb.carousel.slide-number">
  3290. Slide {{i + 1}} of {{c}}
  3291. </span>
  3292. <ng-template [ngTemplateOutlet]="slide.tplRef"></ng-template>
  3293. </div>
  3294. </div>
  3295. <a class="carousel-control-prev" role="button" (click)="arrowLeft()" *ngIf="showNavigationArrows">
  3296. <span class="carousel-control-prev-icon" aria-hidden="true"></span>
  3297. <span class="sr-only" i18n="@@ngb.carousel.previous">Previous</span>
  3298. </a>
  3299. <a class="carousel-control-next" role="button" (click)="arrowRight()" *ngIf="showNavigationArrows">
  3300. <span class="carousel-control-next-icon" aria-hidden="true"></span>
  3301. <span class="sr-only" i18n="@@ngb.carousel.next">Next</span>
  3302. </a>
  3303. `
  3304. }]
  3305. }], function () { return [{ type: NgbCarouselConfig }, { type: undefined, decorators: [{
  3306. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  3307. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
  3308. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { slide: [{
  3309. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  3310. }], slid: [{
  3311. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  3312. }], animation: [{
  3313. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3314. }], interval: [{
  3315. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3316. }], wrap: [{
  3317. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3318. }], keyboard: [{
  3319. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3320. }], pauseOnHover: [{
  3321. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3322. }], pauseOnFocus: [{
  3323. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3324. }], showNavigationArrows: [{
  3325. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3326. }], showNavigationIndicators: [{
  3327. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3328. }], activeId: [{
  3329. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3330. }], slides: [{
  3331. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  3332. args: [NgbSlide]
  3333. }] }); })();
  3334. var NgbSlideEventSource;
  3335. (function (NgbSlideEventSource) {
  3336. NgbSlideEventSource["TIMER"] = "timer";
  3337. NgbSlideEventSource["ARROW_LEFT"] = "arrowLeft";
  3338. NgbSlideEventSource["ARROW_RIGHT"] = "arrowRight";
  3339. NgbSlideEventSource["INDICATOR"] = "indicator";
  3340. })(NgbSlideEventSource || (NgbSlideEventSource = {}));
  3341. const NGB_CAROUSEL_DIRECTIVES = [NgbCarousel, NgbSlide];
  3342. class NgbCarouselModule {
  3343. }
  3344. NgbCarouselModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbCarouselModule });
  3345. NgbCarouselModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbCarouselModule_Factory(t) { return new (t || NgbCarouselModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  3346. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbCarouselModule, { declarations: function () { return [NgbCarousel, NgbSlide]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbCarousel, NgbSlide]; } }); })();
  3347. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCarouselModule, [{
  3348. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  3349. args: [{ declarations: NGB_CAROUSEL_DIRECTIVES, exports: NGB_CAROUSEL_DIRECTIVES, imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]] }]
  3350. }], null, null); })();
  3351. /**
  3352. * A configuration service for the [NgbCollapse](#/components/collapse/api#NgbCollapse) component.
  3353. *
  3354. * You can inject this service, typically in your root component, and customize its properties
  3355. * to provide default values for all collapses used in the application.
  3356. */
  3357. class NgbCollapseConfig {
  3358. constructor(ngbConfig) { this.animation = ngbConfig.animation; }
  3359. }
  3360. NgbCollapseConfig.ɵfac = function NgbCollapseConfig_Factory(t) { return new (t || NgbCollapseConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  3361. NgbCollapseConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbCollapseConfig_Factory() { return new NgbCollapseConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbCollapseConfig, providedIn: "root" });
  3362. NgbCollapseConfig.ctorParameters = () => [
  3363. { type: NgbConfig }
  3364. ];
  3365. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCollapseConfig, [{
  3366. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  3367. args: [{ providedIn: 'root' }]
  3368. }], function () { return [{ type: NgbConfig }]; }, null); })();
  3369. /**
  3370. * A directive to provide a simple way of hiding and showing elements on the page.
  3371. */
  3372. class NgbCollapse {
  3373. constructor(_element, config) {
  3374. this._element = _element;
  3375. /**
  3376. * If `true`, collapse will be animated.
  3377. *
  3378. * Animation is triggered only when clicked on triggering element
  3379. * or via the `.toggle()` function
  3380. *
  3381. * @since 8.0.0
  3382. */
  3383. this.animation = false;
  3384. /**
  3385. * If `true`, will collapse the element or show it otherwise.
  3386. */
  3387. this.collapsed = false;
  3388. this.ngbCollapseChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  3389. /**
  3390. * An event emitted when the collapse element is shown, after the transition. It has no payload.
  3391. *
  3392. * @since 8.0.0
  3393. */
  3394. this.shown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  3395. /**
  3396. * An event emitted when the collapse element is hidden, after the transition. It has no payload.
  3397. *
  3398. * @since 8.0.0
  3399. */
  3400. this.hidden = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  3401. this.animation = config.animation;
  3402. }
  3403. ngOnInit() {
  3404. this._element.nativeElement.classList.add('collapse');
  3405. this._runTransition(this.collapsed, false, false);
  3406. }
  3407. ngOnChanges({ collapsed }) {
  3408. if (!collapsed.firstChange) {
  3409. this._runTransition(this.collapsed, this.animation);
  3410. }
  3411. }
  3412. /**
  3413. * Triggers collapsing programmatically.
  3414. *
  3415. * If there is a collapsing transition running already, it will be reversed.
  3416. * If the animations are turned off this happens synchronously.
  3417. *
  3418. * @since 8.0.0
  3419. */
  3420. toggle(open = this.collapsed) {
  3421. this.collapsed = !open;
  3422. this.ngbCollapseChange.next(this.collapsed);
  3423. this._runTransition(this.collapsed, this.animation);
  3424. }
  3425. _runTransition(collapsed, animation, emitEvent = true) {
  3426. ngbRunTransition(this._element.nativeElement, ngbCollapsingTransition, {
  3427. animation,
  3428. runningTransition: 'stop',
  3429. context: { direction: collapsed ? 'hide' : 'show' }
  3430. }).subscribe(() => {
  3431. if (emitEvent) {
  3432. if (collapsed) {
  3433. this.hidden.emit();
  3434. }
  3435. else {
  3436. this.shown.emit();
  3437. }
  3438. }
  3439. });
  3440. }
  3441. }
  3442. NgbCollapse.ɵfac = function NgbCollapse_Factory(t) { return new (t || NgbCollapse)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbCollapseConfig)); };
  3443. NgbCollapse.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbCollapse, selectors: [["", "ngbCollapse", ""]], inputs: { animation: "animation", collapsed: ["ngbCollapse", "collapsed"] }, outputs: { ngbCollapseChange: "ngbCollapseChange", shown: "shown", hidden: "hidden" }, exportAs: ["ngbCollapse"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  3444. NgbCollapse.ctorParameters = () => [
  3445. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  3446. { type: NgbCollapseConfig }
  3447. ];
  3448. NgbCollapse.propDecorators = {
  3449. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  3450. collapsed: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngbCollapse',] }],
  3451. ngbCollapseChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  3452. shown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  3453. hidden: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  3454. };
  3455. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCollapse, [{
  3456. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  3457. args: [{ selector: '[ngbCollapse]', exportAs: 'ngbCollapse' }]
  3458. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: NgbCollapseConfig }]; }, { animation: [{
  3459. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  3460. }], collapsed: [{
  3461. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  3462. args: ['ngbCollapse']
  3463. }], ngbCollapseChange: [{
  3464. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  3465. }], shown: [{
  3466. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  3467. }], hidden: [{
  3468. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  3469. }] }); })();
  3470. class NgbCollapseModule {
  3471. }
  3472. NgbCollapseModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbCollapseModule });
  3473. NgbCollapseModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbCollapseModule_Factory(t) { return new (t || NgbCollapseModule)(); } });
  3474. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbCollapseModule, { declarations: [NgbCollapse], exports: [NgbCollapse] }); })();
  3475. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCollapseModule, [{
  3476. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  3477. args: [{ declarations: [NgbCollapse], exports: [NgbCollapse] }]
  3478. }], null, null); })();
  3479. /**
  3480. * A simple class that represents a date that datepicker also uses internally.
  3481. *
  3482. * It is the implementation of the `NgbDateStruct` interface that adds some convenience methods,
  3483. * like `.equals()`, `.before()`, etc.
  3484. *
  3485. * All datepicker APIs consume `NgbDateStruct`, but return `NgbDate`.
  3486. *
  3487. * In many cases it is simpler to manipulate these objects together with
  3488. * [`NgbCalendar`](#/components/datepicker/api#NgbCalendar) than native JS Dates.
  3489. *
  3490. * See the [date format overview](#/components/datepicker/overview#date-model) for more details.
  3491. *
  3492. * @since 3.0.0
  3493. */
  3494. class NgbDate {
  3495. constructor(year, month, day) {
  3496. this.year = isInteger(year) ? year : null;
  3497. this.month = isInteger(month) ? month : null;
  3498. this.day = isInteger(day) ? day : null;
  3499. }
  3500. /**
  3501. * A **static method** that creates a new date object from the `NgbDateStruct`,
  3502. *
  3503. * ex. `NgbDate.from({year: 2000, month: 5, day: 1})`.
  3504. *
  3505. * If the `date` is already of `NgbDate` type, the method will return the same object.
  3506. */
  3507. static from(date) {
  3508. if (date instanceof NgbDate) {
  3509. return date;
  3510. }
  3511. return date ? new NgbDate(date.year, date.month, date.day) : null;
  3512. }
  3513. /**
  3514. * Checks if the current date is equal to another date.
  3515. */
  3516. equals(other) {
  3517. return other != null && this.year === other.year && this.month === other.month && this.day === other.day;
  3518. }
  3519. /**
  3520. * Checks if the current date is before another date.
  3521. */
  3522. before(other) {
  3523. if (!other) {
  3524. return false;
  3525. }
  3526. if (this.year === other.year) {
  3527. if (this.month === other.month) {
  3528. return this.day === other.day ? false : this.day < other.day;
  3529. }
  3530. else {
  3531. return this.month < other.month;
  3532. }
  3533. }
  3534. else {
  3535. return this.year < other.year;
  3536. }
  3537. }
  3538. /**
  3539. * Checks if the current date is after another date.
  3540. */
  3541. after(other) {
  3542. if (!other) {
  3543. return false;
  3544. }
  3545. if (this.year === other.year) {
  3546. if (this.month === other.month) {
  3547. return this.day === other.day ? false : this.day > other.day;
  3548. }
  3549. else {
  3550. return this.month > other.month;
  3551. }
  3552. }
  3553. else {
  3554. return this.year > other.year;
  3555. }
  3556. }
  3557. }
  3558. function fromJSDate(jsDate) {
  3559. return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate());
  3560. }
  3561. function toJSDate(date) {
  3562. const jsDate = new Date(date.year, date.month - 1, date.day, 12);
  3563. // this is done avoid 30 -> 1930 conversion
  3564. if (!isNaN(jsDate.getTime())) {
  3565. jsDate.setFullYear(date.year);
  3566. }
  3567. return jsDate;
  3568. }
  3569. function NGB_DATEPICKER_CALENDAR_FACTORY() {
  3570. return new NgbCalendarGregorian();
  3571. }
  3572. /**
  3573. * A service that represents the calendar used by the datepicker.
  3574. *
  3575. * The default implementation uses the Gregorian calendar. You can inject it in your own
  3576. * implementations if necessary to simplify `NgbDate` calculations.
  3577. */
  3578. class NgbCalendar {
  3579. }
  3580. NgbCalendar.ɵfac = function NgbCalendar_Factory(t) { return new (t || NgbCalendar)(); };
  3581. NgbCalendar.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: NGB_DATEPICKER_CALENDAR_FACTORY, token: NgbCalendar, providedIn: "root" });
  3582. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCalendar, [{
  3583. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  3584. args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_CALENDAR_FACTORY }]
  3585. }], null, null); })();
  3586. class NgbCalendarGregorian extends NgbCalendar {
  3587. getDaysPerWeek() { return 7; }
  3588. getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }
  3589. getWeeksPerMonth() { return 6; }
  3590. getNext(date, period = 'd', number = 1) {
  3591. let jsDate = toJSDate(date);
  3592. let checkMonth = true;
  3593. let expectedMonth = jsDate.getMonth();
  3594. switch (period) {
  3595. case 'y':
  3596. jsDate.setFullYear(jsDate.getFullYear() + number);
  3597. break;
  3598. case 'm':
  3599. expectedMonth += number;
  3600. jsDate.setMonth(expectedMonth);
  3601. expectedMonth = expectedMonth % 12;
  3602. if (expectedMonth < 0) {
  3603. expectedMonth = expectedMonth + 12;
  3604. }
  3605. break;
  3606. case 'd':
  3607. jsDate.setDate(jsDate.getDate() + number);
  3608. checkMonth = false;
  3609. break;
  3610. default:
  3611. return date;
  3612. }
  3613. if (checkMonth && jsDate.getMonth() !== expectedMonth) {
  3614. // this means the destination month has less days than the initial month
  3615. // let's go back to the end of the previous month:
  3616. jsDate.setDate(0);
  3617. }
  3618. return fromJSDate(jsDate);
  3619. }
  3620. getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); }
  3621. getWeekday(date) {
  3622. let jsDate = toJSDate(date);
  3623. let day = jsDate.getDay();
  3624. // in JS Date Sun=0, in ISO 8601 Sun=7
  3625. return day === 0 ? 7 : day;
  3626. }
  3627. getWeekNumber(week, firstDayOfWeek) {
  3628. // in JS Date Sun=0, in ISO 8601 Sun=7
  3629. if (firstDayOfWeek === 7) {
  3630. firstDayOfWeek = 0;
  3631. }
  3632. const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;
  3633. let date = week[thursdayIndex];
  3634. const jsDate = toJSDate(date);
  3635. jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday
  3636. const time = jsDate.getTime();
  3637. jsDate.setMonth(0); // Compare with Jan 1
  3638. jsDate.setDate(1);
  3639. return Math.floor(Math.round((time - jsDate.getTime()) / 86400000) / 7) + 1;
  3640. }
  3641. getToday() { return fromJSDate(new Date()); }
  3642. isValid(date) {
  3643. if (!date || !isInteger(date.year) || !isInteger(date.month) || !isInteger(date.day)) {
  3644. return false;
  3645. }
  3646. // year 0 doesn't exist in Gregorian calendar
  3647. if (date.year === 0) {
  3648. return false;
  3649. }
  3650. const jsDate = toJSDate(date);
  3651. return !isNaN(jsDate.getTime()) && jsDate.getFullYear() === date.year && jsDate.getMonth() + 1 === date.month &&
  3652. jsDate.getDate() === date.day;
  3653. }
  3654. }
  3655. NgbCalendarGregorian.ɵfac = function NgbCalendarGregorian_Factory(t) { return ɵNgbCalendarGregorian_BaseFactory(t || NgbCalendarGregorian); };
  3656. NgbCalendarGregorian.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbCalendarGregorian, factory: NgbCalendarGregorian.ɵfac });
  3657. const ɵNgbCalendarGregorian_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbCalendarGregorian);
  3658. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCalendarGregorian, [{
  3659. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  3660. }], null, null); })();
  3661. function isChangedDate(prev, next) {
  3662. return !dateComparator(prev, next);
  3663. }
  3664. function isChangedMonth(prev, next) {
  3665. return !prev && !next ? false : !prev || !next ? true : prev.year !== next.year || prev.month !== next.month;
  3666. }
  3667. function dateComparator(prev, next) {
  3668. return (!prev && !next) || (!!prev && !!next && prev.equals(next));
  3669. }
  3670. function checkMinBeforeMax(minDate, maxDate) {
  3671. if (maxDate && minDate && maxDate.before(minDate)) {
  3672. throw new Error(`'maxDate' ${maxDate} should be greater than 'minDate' ${minDate}`);
  3673. }
  3674. }
  3675. function checkDateInRange(date, minDate, maxDate) {
  3676. if (date && minDate && date.before(minDate)) {
  3677. return minDate;
  3678. }
  3679. if (date && maxDate && date.after(maxDate)) {
  3680. return maxDate;
  3681. }
  3682. return date || null;
  3683. }
  3684. function isDateSelectable(date, state) {
  3685. const { minDate, maxDate, disabled, markDisabled } = state;
  3686. // clang-format off
  3687. return !(date === null ||
  3688. date === undefined ||
  3689. disabled ||
  3690. (markDisabled && markDisabled(date, { year: date.year, month: date.month })) ||
  3691. (minDate && date.before(minDate)) ||
  3692. (maxDate && date.after(maxDate)));
  3693. // clang-format on
  3694. }
  3695. function generateSelectBoxMonths(calendar, date, minDate, maxDate) {
  3696. if (!date) {
  3697. return [];
  3698. }
  3699. let months = calendar.getMonths(date.year);
  3700. if (minDate && date.year === minDate.year) {
  3701. const index = months.findIndex(month => month === minDate.month);
  3702. months = months.slice(index);
  3703. }
  3704. if (maxDate && date.year === maxDate.year) {
  3705. const index = months.findIndex(month => month === maxDate.month);
  3706. months = months.slice(0, index + 1);
  3707. }
  3708. return months;
  3709. }
  3710. function generateSelectBoxYears(date, minDate, maxDate) {
  3711. if (!date) {
  3712. return [];
  3713. }
  3714. const start = minDate ? Math.max(minDate.year, date.year - 500) : date.year - 10;
  3715. const end = maxDate ? Math.min(maxDate.year, date.year + 500) : date.year + 10;
  3716. const length = end - start + 1;
  3717. const numbers = Array(length);
  3718. for (let i = 0; i < length; i++) {
  3719. numbers[i] = start + i;
  3720. }
  3721. return numbers;
  3722. }
  3723. function nextMonthDisabled(calendar, date, maxDate) {
  3724. const nextDate = Object.assign(calendar.getNext(date, 'm'), { day: 1 });
  3725. return maxDate != null && nextDate.after(maxDate);
  3726. }
  3727. function prevMonthDisabled(calendar, date, minDate) {
  3728. const prevDate = Object.assign(calendar.getPrev(date, 'm'), { day: 1 });
  3729. return minDate != null && (prevDate.year === minDate.year && prevDate.month < minDate.month ||
  3730. prevDate.year < minDate.year && minDate.month === 1);
  3731. }
  3732. function buildMonths(calendar, date, state, i18n, force) {
  3733. const { displayMonths, months } = state;
  3734. // move old months to a temporary array
  3735. const monthsToReuse = months.splice(0, months.length);
  3736. // generate new first dates, nullify or reuse months
  3737. const firstDates = Array.from({ length: displayMonths }, (_, i) => {
  3738. const firstDate = Object.assign(calendar.getNext(date, 'm', i), { day: 1 });
  3739. months[i] = null;
  3740. if (!force) {
  3741. const reusedIndex = monthsToReuse.findIndex(month => month.firstDate.equals(firstDate));
  3742. // move reused month back to months
  3743. if (reusedIndex !== -1) {
  3744. months[i] = monthsToReuse.splice(reusedIndex, 1)[0];
  3745. }
  3746. }
  3747. return firstDate;
  3748. });
  3749. // rebuild nullified months
  3750. firstDates.forEach((firstDate, i) => {
  3751. if (months[i] === null) {
  3752. months[i] = buildMonth(calendar, firstDate, state, i18n, monthsToReuse.shift() || {});
  3753. }
  3754. });
  3755. return months;
  3756. }
  3757. function buildMonth(calendar, date, state, i18n, month = {}) {
  3758. const { dayTemplateData, minDate, maxDate, firstDayOfWeek, markDisabled, outsideDays } = state;
  3759. const calendarToday = calendar.getToday();
  3760. month.firstDate = null;
  3761. month.lastDate = null;
  3762. month.number = date.month;
  3763. month.year = date.year;
  3764. month.weeks = month.weeks || [];
  3765. month.weekdays = month.weekdays || [];
  3766. date = getFirstViewDate(calendar, date, firstDayOfWeek);
  3767. // month has weeks
  3768. for (let week = 0; week < calendar.getWeeksPerMonth(); week++) {
  3769. let weekObject = month.weeks[week];
  3770. if (!weekObject) {
  3771. weekObject = month.weeks[week] = { number: 0, days: [], collapsed: true };
  3772. }
  3773. const days = weekObject.days;
  3774. // week has days
  3775. for (let day = 0; day < calendar.getDaysPerWeek(); day++) {
  3776. if (week === 0) {
  3777. month.weekdays[day] = calendar.getWeekday(date);
  3778. }
  3779. const newDate = new NgbDate(date.year, date.month, date.day);
  3780. const nextDate = calendar.getNext(newDate);
  3781. const ariaLabel = i18n.getDayAriaLabel(newDate);
  3782. // marking date as disabled
  3783. let disabled = !!((minDate && newDate.before(minDate)) || (maxDate && newDate.after(maxDate)));
  3784. if (!disabled && markDisabled) {
  3785. disabled = markDisabled(newDate, { month: month.number, year: month.year });
  3786. }
  3787. // today
  3788. let today = newDate.equals(calendarToday);
  3789. // adding user-provided data to the context
  3790. let contextUserData = dayTemplateData ? dayTemplateData(newDate, { month: month.number, year: month.year }) : undefined;
  3791. // saving first date of the month
  3792. if (month.firstDate === null && newDate.month === month.number) {
  3793. month.firstDate = newDate;
  3794. }
  3795. // saving last date of the month
  3796. if (newDate.month === month.number && nextDate.month !== month.number) {
  3797. month.lastDate = newDate;
  3798. }
  3799. let dayObject = days[day];
  3800. if (!dayObject) {
  3801. dayObject = days[day] = {};
  3802. }
  3803. dayObject.date = newDate;
  3804. dayObject.context = Object.assign(dayObject.context || {}, {
  3805. $implicit: newDate,
  3806. date: newDate,
  3807. data: contextUserData,
  3808. currentMonth: month.number,
  3809. currentYear: month.year, disabled,
  3810. focused: false,
  3811. selected: false, today
  3812. });
  3813. dayObject.tabindex = -1;
  3814. dayObject.ariaLabel = ariaLabel;
  3815. dayObject.hidden = false;
  3816. date = nextDate;
  3817. }
  3818. weekObject.number = calendar.getWeekNumber(days.map(day => day.date), firstDayOfWeek);
  3819. // marking week as collapsed
  3820. weekObject.collapsed = outsideDays === 'collapsed' && days[0].date.month !== month.number &&
  3821. days[days.length - 1].date.month !== month.number;
  3822. }
  3823. return month;
  3824. }
  3825. function getFirstViewDate(calendar, date, firstDayOfWeek) {
  3826. const daysPerWeek = calendar.getDaysPerWeek();
  3827. const firstMonthDate = new NgbDate(date.year, date.month, 1);
  3828. const dayOfWeek = calendar.getWeekday(firstMonthDate) % daysPerWeek;
  3829. return calendar.getPrev(firstMonthDate, 'd', (daysPerWeek + dayOfWeek - firstDayOfWeek) % daysPerWeek);
  3830. }
  3831. function NGB_DATEPICKER_18N_FACTORY(locale) {
  3832. return new NgbDatepickerI18nDefault(locale);
  3833. }
  3834. /**
  3835. * A service supplying i18n data to the datepicker component.
  3836. *
  3837. * The default implementation of this service uses the Angular locale and registered locale data for
  3838. * weekdays and month names (as explained in the Angular i18n guide).
  3839. *
  3840. * It also provides a way to i18n data that depends on calendar calculations, like aria labels, day, week and year
  3841. * numerals. For other static labels the datepicker uses the default Angular i18n.
  3842. *
  3843. * See the [i18n demo](#/components/datepicker/examples#i18n) and
  3844. * [Hebrew calendar demo](#/components/datepicker/calendars#hebrew) on how to extend this class and define
  3845. * a custom provider for i18n.
  3846. */
  3847. class NgbDatepickerI18n {
  3848. /**
  3849. * Returns the textual representation of a day that is rendered in a day cell.
  3850. *
  3851. * @since 3.0.0
  3852. */
  3853. getDayNumerals(date) { return `${date.day}`; }
  3854. /**
  3855. * Returns the textual representation of a week number rendered by datepicker.
  3856. *
  3857. * @since 3.0.0
  3858. */
  3859. getWeekNumerals(weekNumber) { return `${weekNumber}`; }
  3860. /**
  3861. * Returns the textual representation of a year that is rendered in the datepicker year select box.
  3862. *
  3863. * @since 3.0.0
  3864. */
  3865. getYearNumerals(year) { return `${year}`; }
  3866. }
  3867. NgbDatepickerI18n.ɵfac = function NgbDatepickerI18n_Factory(t) { return new (t || NgbDatepickerI18n)(); };
  3868. NgbDatepickerI18n.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbDatepickerI18n_Factory() { return NGB_DATEPICKER_18N_FACTORY(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"])); }, token: NgbDatepickerI18n, providedIn: "root" });
  3869. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerI18n, [{
  3870. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  3871. args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_18N_FACTORY, deps: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]] }]
  3872. }], null, null); })();
  3873. class NgbDatepickerI18nDefault extends NgbDatepickerI18n {
  3874. constructor(_locale) {
  3875. super();
  3876. this._locale = _locale;
  3877. const weekdaysStartingOnSunday = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["getLocaleDayNames"])(_locale, _angular_common__WEBPACK_IMPORTED_MODULE_1__["FormStyle"].Standalone, _angular_common__WEBPACK_IMPORTED_MODULE_1__["TranslationWidth"].Short);
  3878. this._weekdaysShort = weekdaysStartingOnSunday.map((day, index) => weekdaysStartingOnSunday[(index + 1) % 7]);
  3879. this._monthsShort = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["getLocaleMonthNames"])(_locale, _angular_common__WEBPACK_IMPORTED_MODULE_1__["FormStyle"].Standalone, _angular_common__WEBPACK_IMPORTED_MODULE_1__["TranslationWidth"].Abbreviated);
  3880. this._monthsFull = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["getLocaleMonthNames"])(_locale, _angular_common__WEBPACK_IMPORTED_MODULE_1__["FormStyle"].Standalone, _angular_common__WEBPACK_IMPORTED_MODULE_1__["TranslationWidth"].Wide);
  3881. }
  3882. getWeekdayShortName(weekday) { return this._weekdaysShort[weekday - 1] || ''; }
  3883. getMonthShortName(month) { return this._monthsShort[month - 1] || ''; }
  3884. getMonthFullName(month) { return this._monthsFull[month - 1] || ''; }
  3885. getDayAriaLabel(date) {
  3886. const jsDate = new Date(date.year, date.month - 1, date.day);
  3887. return Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["formatDate"])(jsDate, 'fullDate', this._locale);
  3888. }
  3889. }
  3890. NgbDatepickerI18nDefault.ɵfac = function NgbDatepickerI18nDefault_Factory(t) { return new (t || NgbDatepickerI18nDefault)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"])); };
  3891. NgbDatepickerI18nDefault.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbDatepickerI18nDefault, factory: NgbDatepickerI18nDefault.ɵfac });
  3892. NgbDatepickerI18nDefault.ctorParameters = () => [
  3893. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"],] }] }
  3894. ];
  3895. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerI18nDefault, [{
  3896. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  3897. }], function () { return [{ type: String, decorators: [{
  3898. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  3899. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
  3900. }] }]; }, null); })();
  3901. class NgbDatepickerService {
  3902. constructor(_calendar, _i18n) {
  3903. this._calendar = _calendar;
  3904. this._i18n = _i18n;
  3905. this._VALIDATORS = {
  3906. dayTemplateData: (dayTemplateData) => {
  3907. if (this._state.dayTemplateData !== dayTemplateData) {
  3908. return { dayTemplateData };
  3909. }
  3910. },
  3911. displayMonths: (displayMonths) => {
  3912. displayMonths = toInteger(displayMonths);
  3913. if (isInteger(displayMonths) && displayMonths > 0 && this._state.displayMonths !== displayMonths) {
  3914. return { displayMonths };
  3915. }
  3916. },
  3917. disabled: (disabled) => {
  3918. if (this._state.disabled !== disabled) {
  3919. return { disabled };
  3920. }
  3921. },
  3922. firstDayOfWeek: (firstDayOfWeek) => {
  3923. firstDayOfWeek = toInteger(firstDayOfWeek);
  3924. if (isInteger(firstDayOfWeek) && firstDayOfWeek >= 0 && this._state.firstDayOfWeek !== firstDayOfWeek) {
  3925. return { firstDayOfWeek };
  3926. }
  3927. },
  3928. focusVisible: (focusVisible) => {
  3929. if (this._state.focusVisible !== focusVisible && !this._state.disabled) {
  3930. return { focusVisible };
  3931. }
  3932. },
  3933. markDisabled: (markDisabled) => {
  3934. if (this._state.markDisabled !== markDisabled) {
  3935. return { markDisabled };
  3936. }
  3937. },
  3938. maxDate: (date) => {
  3939. const maxDate = this.toValidDate(date, null);
  3940. if (isChangedDate(this._state.maxDate, maxDate)) {
  3941. return { maxDate };
  3942. }
  3943. },
  3944. minDate: (date) => {
  3945. const minDate = this.toValidDate(date, null);
  3946. if (isChangedDate(this._state.minDate, minDate)) {
  3947. return { minDate };
  3948. }
  3949. },
  3950. navigation: (navigation) => {
  3951. if (this._state.navigation !== navigation) {
  3952. return { navigation };
  3953. }
  3954. },
  3955. outsideDays: (outsideDays) => {
  3956. if (this._state.outsideDays !== outsideDays) {
  3957. return { outsideDays };
  3958. }
  3959. }
  3960. };
  3961. this._model$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  3962. this._dateSelect$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  3963. this._state = {
  3964. dayTemplateData: null,
  3965. markDisabled: null,
  3966. maxDate: null,
  3967. minDate: null,
  3968. disabled: false,
  3969. displayMonths: 1,
  3970. firstDate: null,
  3971. firstDayOfWeek: 1,
  3972. lastDate: null,
  3973. focusDate: null,
  3974. focusVisible: false,
  3975. months: [],
  3976. navigation: 'select',
  3977. outsideDays: 'visible',
  3978. prevDisabled: false,
  3979. nextDisabled: false,
  3980. selectedDate: null,
  3981. selectBoxes: { years: [], months: [] }
  3982. };
  3983. }
  3984. get model$() { return this._model$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(model => model.months.length > 0)); }
  3985. get dateSelect$() { return this._dateSelect$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(date => date !== null)); }
  3986. set(options) {
  3987. let patch = Object.keys(options)
  3988. .map(key => this._VALIDATORS[key](options[key]))
  3989. .reduce((obj, part) => (Object.assign(Object.assign({}, obj), part)), {});
  3990. if (Object.keys(patch).length > 0) {
  3991. this._nextState(patch);
  3992. }
  3993. }
  3994. focus(date) {
  3995. const focusedDate = this.toValidDate(date, null);
  3996. if (focusedDate != null && !this._state.disabled && isChangedDate(this._state.focusDate, focusedDate)) {
  3997. this._nextState({ focusDate: date });
  3998. }
  3999. }
  4000. focusSelect() {
  4001. if (isDateSelectable(this._state.focusDate, this._state)) {
  4002. this.select(this._state.focusDate, { emitEvent: true });
  4003. }
  4004. }
  4005. open(date) {
  4006. const firstDate = this.toValidDate(date, this._calendar.getToday());
  4007. if (firstDate != null && !this._state.disabled &&
  4008. (!this._state.firstDate || isChangedMonth(this._state.firstDate, firstDate))) {
  4009. this._nextState({ firstDate });
  4010. }
  4011. }
  4012. select(date, options = {}) {
  4013. const selectedDate = this.toValidDate(date, null);
  4014. if (selectedDate != null && !this._state.disabled) {
  4015. if (isChangedDate(this._state.selectedDate, selectedDate)) {
  4016. this._nextState({ selectedDate });
  4017. }
  4018. if (options.emitEvent && isDateSelectable(selectedDate, this._state)) {
  4019. this._dateSelect$.next(selectedDate);
  4020. }
  4021. }
  4022. }
  4023. toValidDate(date, defaultValue) {
  4024. const ngbDate = NgbDate.from(date);
  4025. if (defaultValue === undefined) {
  4026. defaultValue = this._calendar.getToday();
  4027. }
  4028. return this._calendar.isValid(ngbDate) ? ngbDate : defaultValue;
  4029. }
  4030. getMonth(struct) {
  4031. for (let month of this._state.months) {
  4032. if (struct.month === month.number && struct.year === month.year) {
  4033. return month;
  4034. }
  4035. }
  4036. throw new Error(`month ${struct.month} of year ${struct.year} not found`);
  4037. }
  4038. _nextState(patch) {
  4039. const newState = this._updateState(patch);
  4040. this._patchContexts(newState);
  4041. this._state = newState;
  4042. this._model$.next(this._state);
  4043. }
  4044. _patchContexts(state) {
  4045. const { months, displayMonths, selectedDate, focusDate, focusVisible, disabled, outsideDays } = state;
  4046. state.months.forEach(month => {
  4047. month.weeks.forEach(week => {
  4048. week.days.forEach(day => {
  4049. // patch focus flag
  4050. if (focusDate) {
  4051. day.context.focused = focusDate.equals(day.date) && focusVisible;
  4052. }
  4053. // calculating tabindex
  4054. day.tabindex =
  4055. !disabled && focusDate && day.date.equals(focusDate) && focusDate.month === month.number ? 0 : -1;
  4056. // override context disabled
  4057. if (disabled === true) {
  4058. day.context.disabled = true;
  4059. }
  4060. // patch selection flag
  4061. if (selectedDate !== undefined) {
  4062. day.context.selected = selectedDate !== null && selectedDate.equals(day.date);
  4063. }
  4064. // visibility
  4065. if (month.number !== day.date.month) {
  4066. day.hidden = outsideDays === 'hidden' || outsideDays === 'collapsed' ||
  4067. (displayMonths > 1 && day.date.after(months[0].firstDate) &&
  4068. day.date.before(months[displayMonths - 1].lastDate));
  4069. }
  4070. });
  4071. });
  4072. });
  4073. }
  4074. _updateState(patch) {
  4075. // patching fields
  4076. const state = Object.assign({}, this._state, patch);
  4077. let startDate = state.firstDate;
  4078. // min/max dates changed
  4079. if ('minDate' in patch || 'maxDate' in patch) {
  4080. checkMinBeforeMax(state.minDate, state.maxDate);
  4081. state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);
  4082. state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);
  4083. startDate = state.focusDate;
  4084. }
  4085. // disabled
  4086. if ('disabled' in patch) {
  4087. state.focusVisible = false;
  4088. }
  4089. // initial rebuild via 'select()'
  4090. if ('selectedDate' in patch && this._state.months.length === 0) {
  4091. startDate = state.selectedDate;
  4092. }
  4093. // terminate early if only focus visibility was changed
  4094. if ('focusVisible' in patch) {
  4095. return state;
  4096. }
  4097. // focus date changed
  4098. if ('focusDate' in patch) {
  4099. state.focusDate = checkDateInRange(state.focusDate, state.minDate, state.maxDate);
  4100. startDate = state.focusDate;
  4101. // nothing to rebuild if only focus changed and it is still visible
  4102. if (state.months.length !== 0 && state.focusDate && !state.focusDate.before(state.firstDate) &&
  4103. !state.focusDate.after(state.lastDate)) {
  4104. return state;
  4105. }
  4106. }
  4107. // first date changed
  4108. if ('firstDate' in patch) {
  4109. state.firstDate = checkDateInRange(state.firstDate, state.minDate, state.maxDate);
  4110. startDate = state.firstDate;
  4111. }
  4112. // rebuilding months
  4113. if (startDate) {
  4114. const forceRebuild = 'dayTemplateData' in patch || 'firstDayOfWeek' in patch || 'markDisabled' in patch ||
  4115. 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch || 'outsideDays' in patch;
  4116. const months = buildMonths(this._calendar, startDate, state, this._i18n, forceRebuild);
  4117. // updating months and boundary dates
  4118. state.months = months;
  4119. state.firstDate = months[0].firstDate;
  4120. state.lastDate = months[months.length - 1].lastDate;
  4121. // reset selected date if 'markDisabled' returns true
  4122. if ('selectedDate' in patch && !isDateSelectable(state.selectedDate, state)) {
  4123. state.selectedDate = null;
  4124. }
  4125. // adjusting focus after months were built
  4126. if ('firstDate' in patch) {
  4127. if (!state.focusDate || state.focusDate.before(state.firstDate) || state.focusDate.after(state.lastDate)) {
  4128. state.focusDate = startDate;
  4129. }
  4130. }
  4131. // adjusting months/years for the select box navigation
  4132. const yearChanged = !this._state.firstDate || this._state.firstDate.year !== state.firstDate.year;
  4133. const monthChanged = !this._state.firstDate || this._state.firstDate.month !== state.firstDate.month;
  4134. if (state.navigation === 'select') {
  4135. // years -> boundaries (min/max were changed)
  4136. if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.years.length === 0 || yearChanged) {
  4137. state.selectBoxes.years = generateSelectBoxYears(state.firstDate, state.minDate, state.maxDate);
  4138. }
  4139. // months -> when current year or boundaries change
  4140. if ('minDate' in patch || 'maxDate' in patch || state.selectBoxes.months.length === 0 || yearChanged) {
  4141. state.selectBoxes.months =
  4142. generateSelectBoxMonths(this._calendar, state.firstDate, state.minDate, state.maxDate);
  4143. }
  4144. }
  4145. else {
  4146. state.selectBoxes = { years: [], months: [] };
  4147. }
  4148. // updating navigation arrows -> boundaries change (min/max) or month/year changes
  4149. if ((state.navigation === 'arrows' || state.navigation === 'select') &&
  4150. (monthChanged || yearChanged || 'minDate' in patch || 'maxDate' in patch || 'disabled' in patch)) {
  4151. state.prevDisabled = state.disabled || prevMonthDisabled(this._calendar, state.firstDate, state.minDate);
  4152. state.nextDisabled = state.disabled || nextMonthDisabled(this._calendar, state.lastDate, state.maxDate);
  4153. }
  4154. }
  4155. return state;
  4156. }
  4157. }
  4158. NgbDatepickerService.ɵfac = function NgbDatepickerService_Factory(t) { return new (t || NgbDatepickerService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbCalendar), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbDatepickerI18n)); };
  4159. NgbDatepickerService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbDatepickerService, factory: NgbDatepickerService.ɵfac });
  4160. NgbDatepickerService.ctorParameters = () => [
  4161. { type: NgbCalendar },
  4162. { type: NgbDatepickerI18n }
  4163. ];
  4164. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerService, [{
  4165. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  4166. }], function () { return [{ type: NgbCalendar }, { type: NgbDatepickerI18n }]; }, null); })();
  4167. // clang-format on
  4168. var NavigationEvent;
  4169. (function (NavigationEvent) {
  4170. NavigationEvent[NavigationEvent["PREV"] = 0] = "PREV";
  4171. NavigationEvent[NavigationEvent["NEXT"] = 1] = "NEXT";
  4172. })(NavigationEvent || (NavigationEvent = {}));
  4173. /**
  4174. * A configuration service for the [`NgbDatepicker`](#/components/datepicker/api#NgbDatepicker) component.
  4175. *
  4176. * You can inject this service, typically in your root component, and customize the values of its properties in
  4177. * order to provide default values for all the datepickers used in the application.
  4178. */
  4179. class NgbDatepickerConfig {
  4180. constructor() {
  4181. this.displayMonths = 1;
  4182. this.firstDayOfWeek = 1;
  4183. this.navigation = 'select';
  4184. this.outsideDays = 'visible';
  4185. this.showWeekdays = true;
  4186. this.showWeekNumbers = false;
  4187. }
  4188. }
  4189. NgbDatepickerConfig.ɵfac = function NgbDatepickerConfig_Factory(t) { return new (t || NgbDatepickerConfig)(); };
  4190. NgbDatepickerConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbDatepickerConfig_Factory() { return new NgbDatepickerConfig(); }, token: NgbDatepickerConfig, providedIn: "root" });
  4191. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerConfig, [{
  4192. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  4193. args: [{ providedIn: 'root' }]
  4194. }], function () { return []; }, null); })();
  4195. function NGB_DATEPICKER_DATE_ADAPTER_FACTORY() {
  4196. return new NgbDateStructAdapter();
  4197. }
  4198. /**
  4199. * An abstract service that does the conversion between the internal datepicker `NgbDateStruct` model and
  4200. * any provided user date model `D`, ex. a string, a native date, etc.
  4201. *
  4202. * The adapter is used **only** for conversion when binding datepicker to a form control,
  4203. * ex. `[(ngModel)]="userDateModel"`. Here `userDateModel` can be of any type.
  4204. *
  4205. * The default datepicker implementation assumes we use `NgbDateStruct` as a user model.
  4206. *
  4207. * See the [date format overview](#/components/datepicker/overview#date-model) for more details
  4208. * and the [custom adapter demo](#/components/datepicker/examples#adapter) for an example.
  4209. */
  4210. class NgbDateAdapter {
  4211. }
  4212. NgbDateAdapter.ɵfac = function NgbDateAdapter_Factory(t) { return new (t || NgbDateAdapter)(); };
  4213. NgbDateAdapter.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY, token: NgbDateAdapter, providedIn: "root" });
  4214. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDateAdapter, [{
  4215. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  4216. args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_DATE_ADAPTER_FACTORY }]
  4217. }], null, null); })();
  4218. class NgbDateStructAdapter extends NgbDateAdapter {
  4219. /**
  4220. * Converts a NgbDateStruct value into NgbDateStruct value
  4221. */
  4222. fromModel(date) {
  4223. return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?
  4224. { year: date.year, month: date.month, day: date.day } :
  4225. null;
  4226. }
  4227. /**
  4228. * Converts a NgbDateStruct value into NgbDateStruct value
  4229. */
  4230. toModel(date) {
  4231. return (date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day)) ?
  4232. { year: date.year, month: date.month, day: date.day } :
  4233. null;
  4234. }
  4235. }
  4236. NgbDateStructAdapter.ɵfac = function NgbDateStructAdapter_Factory(t) { return ɵNgbDateStructAdapter_BaseFactory(t || NgbDateStructAdapter); };
  4237. NgbDateStructAdapter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbDateStructAdapter, factory: NgbDateStructAdapter.ɵfac });
  4238. const ɵNgbDateStructAdapter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbDateStructAdapter);
  4239. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDateStructAdapter, [{
  4240. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  4241. }], null, null); })();
  4242. const NGB_DATEPICKER_VALUE_ACCESSOR = {
  4243. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALUE_ACCESSOR"],
  4244. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDatepicker),
  4245. multi: true
  4246. };
  4247. /**
  4248. * A directive that marks the content template that customizes the way datepicker months are displayed
  4249. *
  4250. * @since 5.3.0
  4251. */
  4252. class NgbDatepickerContent {
  4253. constructor(templateRef) {
  4254. this.templateRef = templateRef;
  4255. }
  4256. }
  4257. NgbDatepickerContent.ɵfac = function NgbDatepickerContent_Factory(t) { return new (t || NgbDatepickerContent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  4258. NgbDatepickerContent.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbDatepickerContent, selectors: [["ng-template", "ngbDatepickerContent", ""]] });
  4259. NgbDatepickerContent.ctorParameters = () => [
  4260. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  4261. ];
  4262. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerContent, [{
  4263. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  4264. args: [{ selector: 'ng-template[ngbDatepickerContent]' }]
  4265. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  4266. /**
  4267. * A highly configurable component that helps you with selecting calendar dates.
  4268. *
  4269. * `NgbDatepicker` is meant to be displayed inline on a page or put inside a popup.
  4270. */
  4271. class NgbDatepicker {
  4272. constructor(_service, _calendar, i18n, config, cd, _elementRef, _ngbDateAdapter, _ngZone) {
  4273. this._service = _service;
  4274. this._calendar = _calendar;
  4275. this.i18n = i18n;
  4276. this._elementRef = _elementRef;
  4277. this._ngbDateAdapter = _ngbDateAdapter;
  4278. this._ngZone = _ngZone;
  4279. this._controlValue = null;
  4280. this._destroyed$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  4281. this._publicState = {};
  4282. /**
  4283. * An event emitted right before the navigation happens and displayed month changes.
  4284. *
  4285. * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.
  4286. */
  4287. this.navigate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  4288. /**
  4289. * An event emitted when user selects a date using keyboard or mouse.
  4290. *
  4291. * The payload of the event is currently selected `NgbDate`.
  4292. *
  4293. * @since 5.2.0
  4294. */
  4295. this.dateSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  4296. this.onChange = (_) => { };
  4297. this.onTouched = () => { };
  4298. ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',
  4299. 'maxDate', 'navigation', 'outsideDays', 'showWeekdays', 'showWeekNumbers', 'startDate']
  4300. .forEach(input => this[input] = config[input]);
  4301. _service.dateSelect$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroyed$)).subscribe(date => { this.dateSelect.emit(date); });
  4302. _service.model$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroyed$)).subscribe(model => {
  4303. const newDate = model.firstDate;
  4304. const oldDate = this.model ? this.model.firstDate : null;
  4305. // update public state
  4306. this._publicState = {
  4307. maxDate: model.maxDate,
  4308. minDate: model.minDate,
  4309. firstDate: model.firstDate,
  4310. lastDate: model.lastDate,
  4311. focusedDate: model.focusDate,
  4312. months: model.months.map(viewModel => viewModel.firstDate)
  4313. };
  4314. let navigationPrevented = false;
  4315. // emitting navigation event if the first month changes
  4316. if (!newDate.equals(oldDate)) {
  4317. this.navigate.emit({
  4318. current: oldDate ? { year: oldDate.year, month: oldDate.month } : null,
  4319. next: { year: newDate.year, month: newDate.month },
  4320. preventDefault: () => navigationPrevented = true
  4321. });
  4322. // can't prevent the very first navigation
  4323. if (navigationPrevented && oldDate !== null) {
  4324. this._service.open(oldDate);
  4325. return;
  4326. }
  4327. }
  4328. const newSelectedDate = model.selectedDate;
  4329. const newFocusedDate = model.focusDate;
  4330. const oldFocusedDate = this.model ? this.model.focusDate : null;
  4331. this.model = model;
  4332. // handling selection change
  4333. if (isChangedDate(newSelectedDate, this._controlValue)) {
  4334. this._controlValue = newSelectedDate;
  4335. this.onTouched();
  4336. this.onChange(this._ngbDateAdapter.toModel(newSelectedDate));
  4337. }
  4338. // handling focus change
  4339. if (isChangedDate(newFocusedDate, oldFocusedDate) && oldFocusedDate && model.focusVisible) {
  4340. this.focus();
  4341. }
  4342. cd.markForCheck();
  4343. });
  4344. }
  4345. /**
  4346. * Returns the readonly public state of the datepicker
  4347. *
  4348. * @since 5.2.0
  4349. */
  4350. get state() { return this._publicState; }
  4351. /**
  4352. * Returns the calendar service used in the specific datepicker instance.
  4353. *
  4354. * @since 5.3.0
  4355. */
  4356. get calendar() { return this._calendar; }
  4357. /**
  4358. * Focuses on given date.
  4359. */
  4360. focusDate(date) { this._service.focus(NgbDate.from(date)); }
  4361. /**
  4362. * Selects focused date.
  4363. */
  4364. focusSelect() { this._service.focusSelect(); }
  4365. focus() {
  4366. this._ngZone.onStable.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)).subscribe(() => {
  4367. const elementToFocus = this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');
  4368. if (elementToFocus) {
  4369. elementToFocus.focus();
  4370. }
  4371. });
  4372. }
  4373. /**
  4374. * Navigates to the provided date.
  4375. *
  4376. * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.
  4377. * If nothing or invalid date provided calendar will open current month.
  4378. *
  4379. * Use the `[startDate]` input as an alternative.
  4380. */
  4381. navigateTo(date) {
  4382. this._service.open(NgbDate.from(date ? date.day ? date : Object.assign(Object.assign({}, date), { day: 1 }) : null));
  4383. }
  4384. ngAfterViewInit() {
  4385. this._ngZone.runOutsideAngular(() => {
  4386. const focusIns$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(this._contentEl.nativeElement, 'focusin');
  4387. const focusOuts$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(this._contentEl.nativeElement, 'focusout');
  4388. const { nativeElement } = this._elementRef;
  4389. // we're changing 'focusVisible' only when entering or leaving months view
  4390. // and ignoring all focus events where both 'target' and 'related' target are day cells
  4391. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["merge"])(focusIns$, focusOuts$)
  4392. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(({ target, relatedTarget }) => !(hasClassName(target, 'ngb-dp-day') && hasClassName(relatedTarget, 'ngb-dp-day') &&
  4393. nativeElement.contains(target) && nativeElement.contains(relatedTarget))), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroyed$))
  4394. .subscribe(({ type }) => this._ngZone.run(() => this._service.set({ focusVisible: type === 'focusin' })));
  4395. });
  4396. }
  4397. ngOnDestroy() { this._destroyed$.next(); }
  4398. ngOnInit() {
  4399. if (this.model === undefined) {
  4400. const inputs = {};
  4401. ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',
  4402. 'outsideDays']
  4403. .forEach(name => inputs[name] = this[name]);
  4404. this._service.set(inputs);
  4405. this.navigateTo(this.startDate);
  4406. }
  4407. if (!this.dayTemplate) {
  4408. this.dayTemplate = this._defaultDayTemplate;
  4409. }
  4410. }
  4411. ngOnChanges(changes) {
  4412. const inputs = {};
  4413. ['dayTemplateData', 'displayMonths', 'markDisabled', 'firstDayOfWeek', 'navigation', 'minDate', 'maxDate',
  4414. 'outsideDays']
  4415. .filter(name => name in changes)
  4416. .forEach(name => inputs[name] = this[name]);
  4417. this._service.set(inputs);
  4418. if ('startDate' in changes) {
  4419. const { currentValue, previousValue } = changes.startDate;
  4420. if (isChangedMonth(previousValue, currentValue)) {
  4421. this.navigateTo(this.startDate);
  4422. }
  4423. }
  4424. }
  4425. onDateSelect(date) {
  4426. this._service.focus(date);
  4427. this._service.select(date, { emitEvent: true });
  4428. }
  4429. onNavigateDateSelect(date) { this._service.open(date); }
  4430. onNavigateEvent(event) {
  4431. switch (event) {
  4432. case NavigationEvent.PREV:
  4433. this._service.open(this._calendar.getPrev(this.model.firstDate, 'm', 1));
  4434. break;
  4435. case NavigationEvent.NEXT:
  4436. this._service.open(this._calendar.getNext(this.model.firstDate, 'm', 1));
  4437. break;
  4438. }
  4439. }
  4440. registerOnChange(fn) { this.onChange = fn; }
  4441. registerOnTouched(fn) { this.onTouched = fn; }
  4442. setDisabledState(disabled) { this._service.set({ disabled }); }
  4443. writeValue(value) {
  4444. this._controlValue = NgbDate.from(this._ngbDateAdapter.fromModel(value));
  4445. this._service.select(this._controlValue);
  4446. }
  4447. }
  4448. NgbDatepicker.ɵfac = function NgbDatepicker_Factory(t) { return new (t || NgbDatepicker)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbCalendar), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerI18n), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDateAdapter), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  4449. NgbDatepicker.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbDatepicker, selectors: [["ngb-datepicker"]], contentQueries: function NgbDatepicker_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  4450. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticContentQuery"](dirIndex, NgbDatepickerContent, true);
  4451. } if (rf & 2) {
  4452. let _t;
  4453. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.contentTemplate = _t.first);
  4454. } }, viewQuery: function NgbDatepicker_Query(rf, ctx) { if (rf & 1) {
  4455. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c12, true);
  4456. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c13, true);
  4457. } if (rf & 2) {
  4458. let _t;
  4459. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._defaultDayTemplate = _t.first);
  4460. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._contentEl = _t.first);
  4461. } }, inputs: { dayTemplate: "dayTemplate", dayTemplateData: "dayTemplateData", displayMonths: "displayMonths", firstDayOfWeek: "firstDayOfWeek", footerTemplate: "footerTemplate", markDisabled: "markDisabled", maxDate: "maxDate", minDate: "minDate", navigation: "navigation", outsideDays: "outsideDays", showWeekdays: "showWeekdays", showWeekNumbers: "showWeekNumbers", startDate: "startDate" }, outputs: { navigate: "navigate", dateSelect: "dateSelect" }, exportAs: ["ngbDatepicker"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 10, vars: 5, consts: [["defaultDayTemplate", ""], ["defaultContentTemplate", ""], [1, "ngb-dp-header"], [3, "date", "months", "disabled", "showSelect", "prevDisabled", "nextDisabled", "selectBoxes", "navigate", "select", 4, "ngIf"], [1, "ngb-dp-content"], ["content", ""], [3, "ngTemplateOutlet"], ["ngbDatepickerDayView", "", 3, "date", "currentMonth", "selected", "disabled", "focused"], ["class", "ngb-dp-month", 4, "ngFor", "ngForOf"], [1, "ngb-dp-month"], ["class", "ngb-dp-month-name", 4, "ngIf"], [3, "month"], [1, "ngb-dp-month-name"], [3, "date", "months", "disabled", "showSelect", "prevDisabled", "nextDisabled", "selectBoxes", "navigate", "select"]], template: function NgbDatepicker_Template(rf, ctx) { if (rf & 1) {
  4462. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbDatepicker_ng_template_0_Template, 1, 5, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  4463. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbDatepicker_ng_template_2_Template, 1, 1, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  4464. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "div", 2);
  4465. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, NgbDatepicker_ngb_datepicker_navigation_5_Template, 1, 7, "ngb-datepicker-navigation", 3);
  4466. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4467. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4, 5);
  4468. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, NgbDatepicker_ng_template_8_Template, 0, 0, "ng-template", 6);
  4469. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4470. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, NgbDatepicker_ng_template_9_Template, 0, 0, "ng-template", 6);
  4471. } if (rf & 2) {
  4472. const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](3);
  4473. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](5);
  4474. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.navigation !== "none");
  4475. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4476. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ngb-dp-months", !ctx.contentTemplate);
  4477. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  4478. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", (ctx.contentTemplate == null ? null : ctx.contentTemplate.templateRef) || _r2);
  4479. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4480. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx.footerTemplate);
  4481. } }, directives: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"], NgbDatepickerDayView, _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], NgbDatepickerMonth, NgbDatepickerNavigation]; }, styles: ["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{background-color:#f8f9fa;background-color:var(--light);border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{background-color:#f8f9fa;background-color:var(--light);font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"], encapsulation: 2, changeDetection: 0 });
  4482. NgbDatepicker.ctorParameters = () => [
  4483. { type: NgbDatepickerService },
  4484. { type: NgbCalendar },
  4485. { type: NgbDatepickerI18n },
  4486. { type: NgbDatepickerConfig },
  4487. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  4488. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  4489. { type: NgbDateAdapter },
  4490. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }
  4491. ];
  4492. NgbDatepicker.propDecorators = {
  4493. _defaultDayTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['defaultDayTemplate', { static: true },] }],
  4494. _contentEl: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['content', { static: true },] }],
  4495. contentTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbDatepickerContent, { static: true },] }],
  4496. dayTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4497. dayTemplateData: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4498. displayMonths: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4499. firstDayOfWeek: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4500. footerTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4501. markDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4502. maxDate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4503. minDate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4504. navigation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4505. outsideDays: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4506. showWeekdays: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4507. showWeekNumbers: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4508. startDate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4509. navigate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  4510. dateSelect: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  4511. };
  4512. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepicker, [{
  4513. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  4514. args: [{
  4515. exportAs: 'ngbDatepicker',
  4516. selector: 'ngb-datepicker',
  4517. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  4518. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  4519. template: `
  4520. <ng-template #defaultDayTemplate let-date="date" let-currentMonth="currentMonth" let-selected="selected"
  4521. let-disabled="disabled" let-focused="focused">
  4522. <div ngbDatepickerDayView
  4523. [date]="date"
  4524. [currentMonth]="currentMonth"
  4525. [selected]="selected"
  4526. [disabled]="disabled"
  4527. [focused]="focused">
  4528. </div>
  4529. </ng-template>
  4530. <ng-template #defaultContentTemplate>
  4531. <div *ngFor="let month of model.months; let i = index;" class="ngb-dp-month">
  4532. <div *ngIf="navigation === 'none' || (displayMonths > 1 && navigation === 'select')" class="ngb-dp-month-name">
  4533. {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}
  4534. </div>
  4535. <ngb-datepicker-month [month]="month.firstDate"></ngb-datepicker-month>
  4536. </div>
  4537. </ng-template>
  4538. <div class="ngb-dp-header">
  4539. <ngb-datepicker-navigation *ngIf="navigation !== 'none'"
  4540. [date]="model.firstDate!"
  4541. [months]="model.months"
  4542. [disabled]="model.disabled"
  4543. [showSelect]="model.navigation === 'select'"
  4544. [prevDisabled]="model.prevDisabled"
  4545. [nextDisabled]="model.nextDisabled"
  4546. [selectBoxes]="model.selectBoxes"
  4547. (navigate)="onNavigateEvent($event)"
  4548. (select)="onNavigateDateSelect($event)">
  4549. </ngb-datepicker-navigation>
  4550. </div>
  4551. <div class="ngb-dp-content" [class.ngb-dp-months]="!contentTemplate" #content>
  4552. <ng-template [ngTemplateOutlet]="contentTemplate?.templateRef || defaultContentTemplate"></ng-template>
  4553. </div>
  4554. <ng-template [ngTemplateOutlet]="footerTemplate"></ng-template>
  4555. `,
  4556. providers: [NGB_DATEPICKER_VALUE_ACCESSOR, NgbDatepickerService],
  4557. styles: ["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{background-color:#f8f9fa;background-color:var(--light);border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{background-color:#f8f9fa;background-color:var(--light);font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"]
  4558. }]
  4559. }], function () { return [{ type: NgbDatepickerService }, { type: NgbCalendar }, { type: NgbDatepickerI18n }, { type: NgbDatepickerConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: NgbDateAdapter }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }]; }, { navigate: [{
  4560. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  4561. }], dateSelect: [{
  4562. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  4563. }], dayTemplate: [{
  4564. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4565. }], _defaultDayTemplate: [{
  4566. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  4567. args: ['defaultDayTemplate', { static: true }]
  4568. }], _contentEl: [{
  4569. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  4570. args: ['content', { static: true }]
  4571. }], contentTemplate: [{
  4572. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  4573. args: [NgbDatepickerContent, { static: true }]
  4574. }], dayTemplateData: [{
  4575. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4576. }], displayMonths: [{
  4577. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4578. }], firstDayOfWeek: [{
  4579. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4580. }], footerTemplate: [{
  4581. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4582. }], markDisabled: [{
  4583. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4584. }], maxDate: [{
  4585. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4586. }], minDate: [{
  4587. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4588. }], navigation: [{
  4589. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4590. }], outsideDays: [{
  4591. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4592. }], showWeekdays: [{
  4593. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4594. }], showWeekNumbers: [{
  4595. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4596. }], startDate: [{
  4597. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4598. }] }); })();
  4599. var Key;
  4600. (function (Key) {
  4601. Key[Key["Tab"] = 9] = "Tab";
  4602. Key[Key["Enter"] = 13] = "Enter";
  4603. Key[Key["Escape"] = 27] = "Escape";
  4604. Key[Key["Space"] = 32] = "Space";
  4605. Key[Key["PageUp"] = 33] = "PageUp";
  4606. Key[Key["PageDown"] = 34] = "PageDown";
  4607. Key[Key["End"] = 35] = "End";
  4608. Key[Key["Home"] = 36] = "Home";
  4609. Key[Key["ArrowLeft"] = 37] = "ArrowLeft";
  4610. Key[Key["ArrowUp"] = 38] = "ArrowUp";
  4611. Key[Key["ArrowRight"] = 39] = "ArrowRight";
  4612. Key[Key["ArrowDown"] = 40] = "ArrowDown";
  4613. })(Key || (Key = {}));
  4614. /**
  4615. * A service that represents the keyboard navigation.
  4616. *
  4617. * Default keyboard shortcuts [are documented in the overview](#/components/datepicker/overview#keyboard-shortcuts)
  4618. *
  4619. * @since 5.2.0
  4620. */
  4621. class NgbDatepickerKeyboardService {
  4622. /**
  4623. * Processes a keyboard event.
  4624. */
  4625. processKey(event, datepicker) {
  4626. const { state, calendar } = datepicker;
  4627. // tslint:disable-next-line:deprecation
  4628. switch (event.which) {
  4629. case Key.PageUp:
  4630. datepicker.focusDate(calendar.getPrev(state.focusedDate, event.shiftKey ? 'y' : 'm', 1));
  4631. break;
  4632. case Key.PageDown:
  4633. datepicker.focusDate(calendar.getNext(state.focusedDate, event.shiftKey ? 'y' : 'm', 1));
  4634. break;
  4635. case Key.End:
  4636. datepicker.focusDate(event.shiftKey ? state.maxDate : state.lastDate);
  4637. break;
  4638. case Key.Home:
  4639. datepicker.focusDate(event.shiftKey ? state.minDate : state.firstDate);
  4640. break;
  4641. case Key.ArrowLeft:
  4642. datepicker.focusDate(calendar.getPrev(state.focusedDate, 'd', 1));
  4643. break;
  4644. case Key.ArrowUp:
  4645. datepicker.focusDate(calendar.getPrev(state.focusedDate, 'd', calendar.getDaysPerWeek()));
  4646. break;
  4647. case Key.ArrowRight:
  4648. datepicker.focusDate(calendar.getNext(state.focusedDate, 'd', 1));
  4649. break;
  4650. case Key.ArrowDown:
  4651. datepicker.focusDate(calendar.getNext(state.focusedDate, 'd', calendar.getDaysPerWeek()));
  4652. break;
  4653. case Key.Enter:
  4654. case Key.Space:
  4655. datepicker.focusSelect();
  4656. break;
  4657. default:
  4658. return;
  4659. }
  4660. event.preventDefault();
  4661. event.stopPropagation();
  4662. }
  4663. }
  4664. NgbDatepickerKeyboardService.ɵfac = function NgbDatepickerKeyboardService_Factory(t) { return new (t || NgbDatepickerKeyboardService)(); };
  4665. NgbDatepickerKeyboardService.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbDatepickerKeyboardService_Factory() { return new NgbDatepickerKeyboardService(); }, token: NgbDatepickerKeyboardService, providedIn: "root" });
  4666. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerKeyboardService, [{
  4667. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  4668. args: [{ providedIn: 'root' }]
  4669. }], null, null); })();
  4670. /**
  4671. * A component that renders one month including all the days, weekdays and week numbers. Can be used inside
  4672. * the `<ng-template ngbDatepickerMonths></ng-template>` when you want to customize months layout.
  4673. *
  4674. * For a usage example, see [custom month layout demo](#/components/datepicker/examples#custommonth)
  4675. *
  4676. * @since 5.3.0
  4677. */
  4678. class NgbDatepickerMonth {
  4679. constructor(i18n, datepicker, _keyboardService, _service) {
  4680. this.i18n = i18n;
  4681. this.datepicker = datepicker;
  4682. this._keyboardService = _keyboardService;
  4683. this._service = _service;
  4684. }
  4685. /**
  4686. * The first date of month to be rendered.
  4687. *
  4688. * This month must one of the months present in the
  4689. * [datepicker state](#/components/datepicker/api#NgbDatepickerState).
  4690. */
  4691. set month(month) {
  4692. this.viewModel = this._service.getMonth(month);
  4693. }
  4694. onKeyDown(event) { this._keyboardService.processKey(event, this.datepicker); }
  4695. doSelect(day) {
  4696. if (!day.context.disabled && !day.hidden) {
  4697. this.datepicker.onDateSelect(day.date);
  4698. }
  4699. }
  4700. }
  4701. NgbDatepickerMonth.ɵfac = function NgbDatepickerMonth_Factory(t) { return new (t || NgbDatepickerMonth)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerI18n), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepicker), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerKeyboardService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerService)); };
  4702. NgbDatepickerMonth.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbDatepickerMonth, selectors: [["ngb-datepicker-month"]], hostAttrs: ["role", "grid"], hostBindings: function NgbDatepickerMonth_HostBindings(rf, ctx) { if (rf & 1) {
  4703. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown", function NgbDatepickerMonth_keydown_HostBindingHandler($event) { return ctx.onKeyDown($event); });
  4704. } }, inputs: { month: "month" }, decls: 2, vars: 2, consts: [["class", "ngb-dp-week ngb-dp-weekdays", "role", "row", 4, "ngIf"], ["ngFor", "", 3, "ngForOf"], ["role", "row", 1, "ngb-dp-week", "ngb-dp-weekdays"], ["class", "ngb-dp-weekday ngb-dp-showweek", 4, "ngIf"], ["class", "ngb-dp-weekday small", "role", "columnheader", 4, "ngFor", "ngForOf"], [1, "ngb-dp-weekday", "ngb-dp-showweek"], ["role", "columnheader", 1, "ngb-dp-weekday", "small"], ["class", "ngb-dp-week", "role", "row", 4, "ngIf"], ["role", "row", 1, "ngb-dp-week"], ["class", "ngb-dp-week-number small text-muted", 4, "ngIf"], ["class", "ngb-dp-day", "role", "gridcell", 3, "disabled", "tabindex", "hidden", "ngb-dp-today", "click", 4, "ngFor", "ngForOf"], [1, "ngb-dp-week-number", "small", "text-muted"], ["role", "gridcell", 1, "ngb-dp-day", 3, "tabindex", "click"], [3, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function NgbDatepickerMonth_Template(rf, ctx) { if (rf & 1) {
  4705. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbDatepickerMonth_div_0_Template, 3, 2, "div", 0);
  4706. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbDatepickerMonth_ng_template_1_Template, 1, 1, "ng-template", 1);
  4707. } if (rf & 2) {
  4708. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.datepicker.showWeekdays);
  4709. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4710. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.viewModel.weeks);
  4711. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"]], styles: ["ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{font-style:italic;line-height:2rem;text-align:center}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{background-color:#f8f9fa;background-color:var(--light);border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{height:2rem;width:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex=\"0\"]{z-index:1}"], encapsulation: 2 });
  4712. NgbDatepickerMonth.ctorParameters = () => [
  4713. { type: NgbDatepickerI18n },
  4714. { type: NgbDatepicker },
  4715. { type: NgbDatepickerKeyboardService },
  4716. { type: NgbDatepickerService }
  4717. ];
  4718. NgbDatepickerMonth.propDecorators = {
  4719. month: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  4720. };
  4721. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerMonth, [{
  4722. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  4723. args: [{
  4724. selector: 'ngb-datepicker-month',
  4725. host: { 'role': 'grid', '(keydown)': 'onKeyDown($event)' },
  4726. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  4727. template: `
  4728. <div *ngIf="datepicker.showWeekdays" class="ngb-dp-week ngb-dp-weekdays" role="row">
  4729. <div *ngIf="datepicker.showWeekNumbers" class="ngb-dp-weekday ngb-dp-showweek"></div>
  4730. <div *ngFor="let w of viewModel.weekdays" class="ngb-dp-weekday small" role="columnheader">
  4731. {{ i18n.getWeekdayShortName(w) }}
  4732. </div>
  4733. </div>
  4734. <ng-template ngFor let-week [ngForOf]="viewModel.weeks">
  4735. <div *ngIf="!week.collapsed" class="ngb-dp-week" role="row">
  4736. <div *ngIf="datepicker.showWeekNumbers" class="ngb-dp-week-number small text-muted">{{ i18n.getWeekNumerals(week.number) }}</div>
  4737. <div *ngFor="let day of week.days" (click)="doSelect(day); $event.preventDefault()" class="ngb-dp-day" role="gridcell"
  4738. [class.disabled]="day.context.disabled"
  4739. [tabindex]="day.tabindex"
  4740. [class.hidden]="day.hidden"
  4741. [class.ngb-dp-today]="day.context.today"
  4742. [attr.aria-label]="day.ariaLabel">
  4743. <ng-template [ngIf]="!day.hidden">
  4744. <ng-template [ngTemplateOutlet]="datepicker.dayTemplate" [ngTemplateOutletContext]="day.context"></ng-template>
  4745. </ng-template>
  4746. </div>
  4747. </div>
  4748. </ng-template>
  4749. `,
  4750. styles: ["ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{font-style:italic;line-height:2rem;text-align:center}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{background-color:#f8f9fa;background-color:var(--light);border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{height:2rem;width:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex=\"0\"]{z-index:1}"]
  4751. }]
  4752. }], function () { return [{ type: NgbDatepickerI18n }, { type: NgbDatepicker }, { type: NgbDatepickerKeyboardService }, { type: NgbDatepickerService }]; }, { month: [{
  4753. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4754. }] }); })();
  4755. class NgbDatepickerNavigation {
  4756. constructor(i18n) {
  4757. this.i18n = i18n;
  4758. this.navigation = NavigationEvent;
  4759. this.months = [];
  4760. this.navigate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  4761. this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  4762. }
  4763. onClickPrev(event) {
  4764. event.currentTarget.focus();
  4765. this.navigate.emit(this.navigation.PREV);
  4766. }
  4767. onClickNext(event) {
  4768. event.currentTarget.focus();
  4769. this.navigate.emit(this.navigation.NEXT);
  4770. }
  4771. }
  4772. NgbDatepickerNavigation.ɵfac = function NgbDatepickerNavigation_Factory(t) { return new (t || NgbDatepickerNavigation)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerI18n)); };
  4773. NgbDatepickerNavigation.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbDatepickerNavigation, selectors: [["ngb-datepicker-navigation"]], inputs: { months: "months", date: "date", disabled: "disabled", showSelect: "showSelect", prevDisabled: "prevDisabled", nextDisabled: "nextDisabled", selectBoxes: "selectBoxes" }, outputs: { navigate: "navigate", select: "select" }, decls: 8, vars: 4, consts: function () { let i18n_14; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  4774. const MSG_EXTERNAL_ngb_datepicker_previous_month$$FESM2015_NG_BOOTSTRAP_JS_15 = goog.getMsg("Previous month");
  4775. i18n_14 = MSG_EXTERNAL_ngb_datepicker_previous_month$$FESM2015_NG_BOOTSTRAP_JS_15;
  4776. }
  4777. else {
  4778. i18n_14 = $localize `:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`;
  4779. } let i18n_16; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  4780. const MSG_EXTERNAL_ngb_datepicker_previous_month$$FESM2015_NG_BOOTSTRAP_JS_17 = goog.getMsg("Previous month");
  4781. i18n_16 = MSG_EXTERNAL_ngb_datepicker_previous_month$$FESM2015_NG_BOOTSTRAP_JS_17;
  4782. }
  4783. else {
  4784. i18n_16 = $localize `:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`;
  4785. } let i18n_18; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  4786. const MSG_EXTERNAL_ngb_datepicker_next_month$$FESM2015_NG_BOOTSTRAP_JS_19 = goog.getMsg("Next month");
  4787. i18n_18 = MSG_EXTERNAL_ngb_datepicker_next_month$$FESM2015_NG_BOOTSTRAP_JS_19;
  4788. }
  4789. else {
  4790. i18n_18 = $localize `:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`;
  4791. } let i18n_20; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  4792. const MSG_EXTERNAL_ngb_datepicker_next_month$$FESM2015_NG_BOOTSTRAP_JS_21 = goog.getMsg("Next month");
  4793. i18n_20 = MSG_EXTERNAL_ngb_datepicker_next_month$$FESM2015_NG_BOOTSTRAP_JS_21;
  4794. }
  4795. else {
  4796. i18n_20 = $localize `:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`;
  4797. } return [[1, "ngb-dp-arrow"], ["type", "button", "aria-label", i18n_14, "title", i18n_16, 1, "btn", "btn-link", "ngb-dp-arrow-btn", 3, "disabled", "click"], [1, "ngb-dp-navigation-chevron"], ["class", "ngb-dp-navigation-select", 3, "date", "disabled", "months", "years", "select", 4, "ngIf"], [4, "ngIf"], [1, "ngb-dp-arrow", "right"], ["type", "button", "aria-label", i18n_18, "title", i18n_20, 1, "btn", "btn-link", "ngb-dp-arrow-btn", 3, "disabled", "click"], [1, "ngb-dp-navigation-select", 3, "date", "disabled", "months", "years", "select"], ["ngFor", "", 3, "ngForOf"], ["class", "ngb-dp-arrow", 4, "ngIf"], [1, "ngb-dp-month-name"]]; }, template: function NgbDatepickerNavigation_Template(rf, ctx) { if (rf & 1) {
  4798. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  4799. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "button", 1);
  4800. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbDatepickerNavigation_Template_button_click_1_listener($event) { return ctx.onClickPrev($event); });
  4801. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 2);
  4802. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4803. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4804. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbDatepickerNavigation_ngb_datepicker_navigation_select_3_Template, 1, 4, "ngb-datepicker-navigation-select", 3);
  4805. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, NgbDatepickerNavigation_4_Template, 1, 1, undefined, 4);
  4806. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", 5);
  4807. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "button", 6);
  4808. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbDatepickerNavigation_Template_button_click_6_listener($event) { return ctx.onClickNext($event); });
  4809. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](7, "span", 2);
  4810. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4811. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  4812. } if (rf & 2) {
  4813. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4814. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.prevDisabled);
  4815. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  4816. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showSelect);
  4817. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  4818. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.showSelect);
  4819. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  4820. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.nextDisabled);
  4821. } }, directives: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], NgbDatepickerNavigationSelect, _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"]]; }, styles: ["ngb-datepicker-navigation{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.ngb-dp-navigation-chevron{-webkit-transform:rotate(-135deg);border-style:solid;border-width:.2em .2em 0 0;display:inline-block;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg);width:.75em}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);margin-left:.15em;margin-right:.25em;transform:rotate(45deg)}.ngb-dp-arrow{-ms-flex:1 1 auto;display:-ms-flexbox;display:flex;flex:1 1 auto;height:2rem;margin:0;padding-left:0;padding-right:0;width:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{background-color:transparent;border:none;margin:0 .5rem;padding:0 .25rem;z-index:1}.ngb-dp-arrow-btn:focus{outline-style:auto;outline-width:1px}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{-ms-flex:1 1 9rem;display:-ms-flexbox;display:flex;flex:1 1 9rem}"], encapsulation: 2, changeDetection: 0 });
  4822. NgbDatepickerNavigation.ctorParameters = () => [
  4823. { type: NgbDatepickerI18n }
  4824. ];
  4825. NgbDatepickerNavigation.propDecorators = {
  4826. date: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4827. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4828. months: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4829. showSelect: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4830. prevDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4831. nextDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4832. selectBoxes: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  4833. navigate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  4834. select: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  4835. };
  4836. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerNavigation, [{
  4837. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  4838. args: [{
  4839. selector: 'ngb-datepicker-navigation',
  4840. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  4841. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  4842. template: `
  4843. <div class="ngb-dp-arrow">
  4844. <button type="button" class="btn btn-link ngb-dp-arrow-btn" (click)="onClickPrev($event)" [disabled]="prevDisabled"
  4845. i18n-aria-label="@@ngb.datepicker.previous-month" aria-label="Previous month"
  4846. i18n-title="@@ngb.datepicker.previous-month" title="Previous month">
  4847. <span class="ngb-dp-navigation-chevron"></span>
  4848. </button>
  4849. </div>
  4850. <ngb-datepicker-navigation-select *ngIf="showSelect" class="ngb-dp-navigation-select"
  4851. [date]="date"
  4852. [disabled] = "disabled"
  4853. [months]="selectBoxes.months"
  4854. [years]="selectBoxes.years"
  4855. (select)="select.emit($event)">
  4856. </ngb-datepicker-navigation-select>
  4857. <ng-template *ngIf="!showSelect" ngFor let-month [ngForOf]="months" let-i="index">
  4858. <div class="ngb-dp-arrow" *ngIf="i > 0"></div>
  4859. <div class="ngb-dp-month-name">
  4860. {{ i18n.getMonthFullName(month.number, month.year) }} {{ i18n.getYearNumerals(month.year) }}
  4861. </div>
  4862. <div class="ngb-dp-arrow" *ngIf="i !== months.length - 1"></div>
  4863. </ng-template>
  4864. <div class="ngb-dp-arrow right">
  4865. <button type="button" class="btn btn-link ngb-dp-arrow-btn" (click)="onClickNext($event)" [disabled]="nextDisabled"
  4866. i18n-aria-label="@@ngb.datepicker.next-month" aria-label="Next month"
  4867. i18n-title="@@ngb.datepicker.next-month" title="Next month">
  4868. <span class="ngb-dp-navigation-chevron"></span>
  4869. </button>
  4870. </div>
  4871. `,
  4872. styles: ["ngb-datepicker-navigation{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.ngb-dp-navigation-chevron{-webkit-transform:rotate(-135deg);border-style:solid;border-width:.2em .2em 0 0;display:inline-block;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg);width:.75em}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);margin-left:.15em;margin-right:.25em;transform:rotate(45deg)}.ngb-dp-arrow{-ms-flex:1 1 auto;display:-ms-flexbox;display:flex;flex:1 1 auto;height:2rem;margin:0;padding-left:0;padding-right:0;width:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{background-color:transparent;border:none;margin:0 .5rem;padding:0 .25rem;z-index:1}.ngb-dp-arrow-btn:focus{outline-style:auto;outline-width:1px}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{-ms-flex:1 1 9rem;display:-ms-flexbox;display:flex;flex:1 1 9rem}"]
  4873. }]
  4874. }], function () { return [{ type: NgbDatepickerI18n }]; }, { months: [{
  4875. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4876. }], navigate: [{
  4877. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  4878. }], select: [{
  4879. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  4880. }], date: [{
  4881. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4882. }], disabled: [{
  4883. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4884. }], showSelect: [{
  4885. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4886. }], prevDisabled: [{
  4887. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4888. }], nextDisabled: [{
  4889. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4890. }], selectBoxes: [{
  4891. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  4892. }] }); })();
  4893. const isContainedIn = (element, array) => array ? array.some(item => item.contains(element)) : false;
  4894. const ɵ0$2 = isContainedIn;
  4895. const matchesSelectorIfAny = (element, selector) => !selector || closest(element, selector) != null;
  4896. const ɵ1$1 = matchesSelectorIfAny;
  4897. const ɵ2$1 = () => {
  4898. const isIOS = () => /iPad|iPhone|iPod/.test(navigator.userAgent) ||
  4899. (/Macintosh/.test(navigator.userAgent) && navigator.maxTouchPoints && navigator.maxTouchPoints > 2);
  4900. const isAndroid = () => /Android/.test(navigator.userAgent);
  4901. return typeof navigator !== 'undefined' ? !!navigator.userAgent && (isIOS() || isAndroid()) : false;
  4902. };
  4903. // we have to add a more significant delay to avoid re-opening when handling (click) on a toggling element
  4904. // TODO: use proper Angular platform detection when NgbAutoClose becomes a service and we can inject PLATFORM_ID
  4905. const isMobile = (ɵ2$1)();
  4906. // setting 'ngbAutoClose' synchronously on mobile results in immediate popup closing
  4907. // when tapping on the triggering element
  4908. const wrapAsyncForMobile = fn => isMobile ? () => setTimeout(() => fn(), 100) : fn;
  4909. const ɵ3 = wrapAsyncForMobile;
  4910. function ngbAutoClose(zone, document, type, close, closed$, insideElements, ignoreElements, insideSelector) {
  4911. // closing on ESC and outside clicks
  4912. if (type) {
  4913. zone.runOutsideAngular(wrapAsyncForMobile(() => {
  4914. const shouldCloseOnClick = (event) => {
  4915. const element = event.target;
  4916. if (event.button === 2 || isContainedIn(element, ignoreElements)) {
  4917. return false;
  4918. }
  4919. if (type === 'inside') {
  4920. return isContainedIn(element, insideElements) && matchesSelectorIfAny(element, insideSelector);
  4921. }
  4922. else if (type === 'outside') {
  4923. return !isContainedIn(element, insideElements);
  4924. }
  4925. else /* if (type === true) */ {
  4926. return matchesSelectorIfAny(element, insideSelector) || !isContainedIn(element, insideElements);
  4927. }
  4928. };
  4929. const escapes$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(document, 'keydown')
  4930. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(closed$),
  4931. // tslint:disable-next-line:deprecation
  4932. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(e => e.which === Key.Escape), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(e => e.preventDefault()));
  4933. // we have to pre-calculate 'shouldCloseOnClick' on 'mousedown',
  4934. // because on 'mouseup' DOM nodes might be detached
  4935. const mouseDowns$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(document, 'mousedown').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(shouldCloseOnClick), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(closed$));
  4936. const closeableClicks$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(document, 'mouseup')
  4937. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["withLatestFrom"])(mouseDowns$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(([_, shouldClose]) => shouldClose), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(0), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(closed$));
  4938. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["race"])([
  4939. escapes$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(_ => 0 /* ESCAPE */)), closeableClicks$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(_ => 1 /* CLICK */))
  4940. ]).subscribe((source) => zone.run(() => close(source)));
  4941. }));
  4942. }
  4943. }
  4944. const FOCUSABLE_ELEMENTS_SELECTOR = [
  4945. 'a[href]', 'button:not([disabled])', 'input:not([disabled]):not([type="hidden"])', 'select:not([disabled])',
  4946. 'textarea:not([disabled])', '[contenteditable]', '[tabindex]:not([tabindex="-1"])'
  4947. ].join(', ');
  4948. /**
  4949. * Returns first and last focusable elements inside of a given element based on specific CSS selector
  4950. */
  4951. function getFocusableBoundaryElements(element) {
  4952. const list = Array.from(element.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR))
  4953. .filter(el => el.tabIndex !== -1);
  4954. return [list[0], list[list.length - 1]];
  4955. }
  4956. /**
  4957. * Function that enforces browser focus to be trapped inside a DOM element.
  4958. *
  4959. * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element
  4960. *
  4961. * @param zone Angular zone
  4962. * @param element The element around which focus will be trapped inside
  4963. * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners
  4964. * and free internal resources
  4965. * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to
  4966. * false)
  4967. */
  4968. const ngbFocusTrap = (zone, element, stopFocusTrap$, refocusOnClick = false) => {
  4969. zone.runOutsideAngular(() => {
  4970. // last focused element
  4971. const lastFocusedElement$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(element, 'focusin').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(stopFocusTrap$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(e => e.target));
  4972. // 'tab' / 'shift+tab' stream
  4973. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(element, 'keydown')
  4974. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(stopFocusTrap$),
  4975. // tslint:disable:deprecation
  4976. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(e => e.which === Key.Tab),
  4977. // tslint:enable:deprecation
  4978. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["withLatestFrom"])(lastFocusedElement$))
  4979. .subscribe(([tabEvent, focusedElement]) => {
  4980. const [first, last] = getFocusableBoundaryElements(element);
  4981. if ((focusedElement === first || focusedElement === element) && tabEvent.shiftKey) {
  4982. last.focus();
  4983. tabEvent.preventDefault();
  4984. }
  4985. if (focusedElement === last && !tabEvent.shiftKey) {
  4986. first.focus();
  4987. tabEvent.preventDefault();
  4988. }
  4989. });
  4990. // inside click
  4991. if (refocusOnClick) {
  4992. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(element, 'click')
  4993. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(stopFocusTrap$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["withLatestFrom"])(lastFocusedElement$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(arr => arr[1]))
  4994. .subscribe(lastFocusedElement => lastFocusedElement.focus());
  4995. }
  4996. });
  4997. };
  4998. // previous version:
  4999. // https://github.com/angular-ui/bootstrap/blob/07c31d0731f7cb068a1932b8e01d2312b796b4ec/src/position/position.js
  5000. class Positioning {
  5001. getAllStyles(element) { return window.getComputedStyle(element); }
  5002. getStyle(element, prop) { return this.getAllStyles(element)[prop]; }
  5003. isStaticPositioned(element) {
  5004. return (this.getStyle(element, 'position') || 'static') === 'static';
  5005. }
  5006. offsetParent(element) {
  5007. let offsetParentEl = element.offsetParent || document.documentElement;
  5008. while (offsetParentEl && offsetParentEl !== document.documentElement && this.isStaticPositioned(offsetParentEl)) {
  5009. offsetParentEl = offsetParentEl.offsetParent;
  5010. }
  5011. return offsetParentEl || document.documentElement;
  5012. }
  5013. position(element, round = true) {
  5014. let elPosition;
  5015. let parentOffset = { width: 0, height: 0, top: 0, bottom: 0, left: 0, right: 0 };
  5016. if (this.getStyle(element, 'position') === 'fixed') {
  5017. elPosition = element.getBoundingClientRect();
  5018. elPosition = {
  5019. top: elPosition.top,
  5020. bottom: elPosition.bottom,
  5021. left: elPosition.left,
  5022. right: elPosition.right,
  5023. height: elPosition.height,
  5024. width: elPosition.width
  5025. };
  5026. }
  5027. else {
  5028. const offsetParentEl = this.offsetParent(element);
  5029. elPosition = this.offset(element, false);
  5030. if (offsetParentEl !== document.documentElement) {
  5031. parentOffset = this.offset(offsetParentEl, false);
  5032. }
  5033. parentOffset.top += offsetParentEl.clientTop;
  5034. parentOffset.left += offsetParentEl.clientLeft;
  5035. }
  5036. elPosition.top -= parentOffset.top;
  5037. elPosition.bottom -= parentOffset.top;
  5038. elPosition.left -= parentOffset.left;
  5039. elPosition.right -= parentOffset.left;
  5040. if (round) {
  5041. elPosition.top = Math.round(elPosition.top);
  5042. elPosition.bottom = Math.round(elPosition.bottom);
  5043. elPosition.left = Math.round(elPosition.left);
  5044. elPosition.right = Math.round(elPosition.right);
  5045. }
  5046. return elPosition;
  5047. }
  5048. offset(element, round = true) {
  5049. const elBcr = element.getBoundingClientRect();
  5050. const viewportOffset = {
  5051. top: window.pageYOffset - document.documentElement.clientTop,
  5052. left: window.pageXOffset - document.documentElement.clientLeft
  5053. };
  5054. let elOffset = {
  5055. height: elBcr.height || element.offsetHeight,
  5056. width: elBcr.width || element.offsetWidth,
  5057. top: elBcr.top + viewportOffset.top,
  5058. bottom: elBcr.bottom + viewportOffset.top,
  5059. left: elBcr.left + viewportOffset.left,
  5060. right: elBcr.right + viewportOffset.left
  5061. };
  5062. if (round) {
  5063. elOffset.height = Math.round(elOffset.height);
  5064. elOffset.width = Math.round(elOffset.width);
  5065. elOffset.top = Math.round(elOffset.top);
  5066. elOffset.bottom = Math.round(elOffset.bottom);
  5067. elOffset.left = Math.round(elOffset.left);
  5068. elOffset.right = Math.round(elOffset.right);
  5069. }
  5070. return elOffset;
  5071. }
  5072. /*
  5073. Return false if the element to position is outside the viewport
  5074. */
  5075. positionElements(hostElement, targetElement, placement, appendToBody) {
  5076. const [placementPrimary = 'top', placementSecondary = 'center'] = placement.split('-');
  5077. const hostElPosition = appendToBody ? this.offset(hostElement, false) : this.position(hostElement, false);
  5078. const targetElStyles = this.getAllStyles(targetElement);
  5079. const marginTop = parseFloat(targetElStyles.marginTop);
  5080. const marginBottom = parseFloat(targetElStyles.marginBottom);
  5081. const marginLeft = parseFloat(targetElStyles.marginLeft);
  5082. const marginRight = parseFloat(targetElStyles.marginRight);
  5083. let topPosition = 0;
  5084. let leftPosition = 0;
  5085. switch (placementPrimary) {
  5086. case 'top':
  5087. topPosition = (hostElPosition.top - (targetElement.offsetHeight + marginTop + marginBottom));
  5088. break;
  5089. case 'bottom':
  5090. topPosition = (hostElPosition.top + hostElPosition.height);
  5091. break;
  5092. case 'left':
  5093. leftPosition = (hostElPosition.left - (targetElement.offsetWidth + marginLeft + marginRight));
  5094. break;
  5095. case 'right':
  5096. leftPosition = (hostElPosition.left + hostElPosition.width);
  5097. break;
  5098. }
  5099. switch (placementSecondary) {
  5100. case 'top':
  5101. topPosition = hostElPosition.top;
  5102. break;
  5103. case 'bottom':
  5104. topPosition = hostElPosition.top + hostElPosition.height - targetElement.offsetHeight;
  5105. break;
  5106. case 'left':
  5107. leftPosition = hostElPosition.left;
  5108. break;
  5109. case 'right':
  5110. leftPosition = hostElPosition.left + hostElPosition.width - targetElement.offsetWidth;
  5111. break;
  5112. case 'center':
  5113. if (placementPrimary === 'top' || placementPrimary === 'bottom') {
  5114. leftPosition = (hostElPosition.left + hostElPosition.width / 2 - targetElement.offsetWidth / 2);
  5115. }
  5116. else {
  5117. topPosition = (hostElPosition.top + hostElPosition.height / 2 - targetElement.offsetHeight / 2);
  5118. }
  5119. break;
  5120. }
  5121. /// The translate3d/gpu acceleration render a blurry text on chrome, the next line is commented until a browser fix
  5122. // targetElement.style.transform = `translate3d(${Math.round(leftPosition)}px, ${Math.floor(topPosition)}px, 0px)`;
  5123. targetElement.style.transform = `translate(${Math.round(leftPosition)}px, ${Math.round(topPosition)}px)`;
  5124. // Check if the targetElement is inside the viewport
  5125. const targetElBCR = targetElement.getBoundingClientRect();
  5126. const html = document.documentElement;
  5127. const windowHeight = window.innerHeight || html.clientHeight;
  5128. const windowWidth = window.innerWidth || html.clientWidth;
  5129. return targetElBCR.left >= 0 && targetElBCR.top >= 0 && targetElBCR.right <= windowWidth &&
  5130. targetElBCR.bottom <= windowHeight;
  5131. }
  5132. }
  5133. const placementSeparator = /\s+/;
  5134. const positionService = new Positioning();
  5135. /*
  5136. * Accept the placement array and applies the appropriate placement dependent on the viewport.
  5137. * Returns the applied placement.
  5138. * In case of auto placement, placements are selected in order
  5139. * 'top', 'bottom', 'left', 'right',
  5140. * 'top-left', 'top-right',
  5141. * 'bottom-left', 'bottom-right',
  5142. * 'left-top', 'left-bottom',
  5143. * 'right-top', 'right-bottom'.
  5144. * */
  5145. function positionElements(hostElement, targetElement, placement, appendToBody, baseClass) {
  5146. let placementVals = Array.isArray(placement) ? placement : placement.split(placementSeparator);
  5147. const allowedPlacements = [
  5148. 'top', 'bottom', 'left', 'right', 'top-left', 'top-right', 'bottom-left', 'bottom-right', 'left-top', 'left-bottom',
  5149. 'right-top', 'right-bottom'
  5150. ];
  5151. const classList = targetElement.classList;
  5152. const addClassesToTarget = (targetPlacement) => {
  5153. const [primary, secondary] = targetPlacement.split('-');
  5154. const classes = [];
  5155. if (baseClass) {
  5156. classes.push(`${baseClass}-${primary}`);
  5157. if (secondary) {
  5158. classes.push(`${baseClass}-${primary}-${secondary}`);
  5159. }
  5160. classes.forEach((classname) => { classList.add(classname); });
  5161. }
  5162. return classes;
  5163. };
  5164. // Remove old placement classes to avoid issues
  5165. if (baseClass) {
  5166. allowedPlacements.forEach((placementToRemove) => { classList.remove(`${baseClass}-${placementToRemove}`); });
  5167. }
  5168. // replace auto placement with other placements
  5169. let hasAuto = placementVals.findIndex(val => val === 'auto');
  5170. if (hasAuto >= 0) {
  5171. allowedPlacements.forEach(function (obj) {
  5172. if (placementVals.find(val => val.search('^' + obj) !== -1) == null) {
  5173. placementVals.splice(hasAuto++, 1, obj);
  5174. }
  5175. });
  5176. }
  5177. // coordinates where to position
  5178. // Required for transform:
  5179. const style = targetElement.style;
  5180. style.position = 'absolute';
  5181. style.top = '0';
  5182. style.left = '0';
  5183. style['will-change'] = 'transform';
  5184. let testPlacement = null;
  5185. let isInViewport = false;
  5186. for (testPlacement of placementVals) {
  5187. let addedClasses = addClassesToTarget(testPlacement);
  5188. if (positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody)) {
  5189. isInViewport = true;
  5190. break;
  5191. }
  5192. // Remove the baseClasses for further calculation
  5193. if (baseClass) {
  5194. addedClasses.forEach((classname) => { classList.remove(classname); });
  5195. }
  5196. }
  5197. if (!isInViewport) {
  5198. // If nothing match, the first placement is the default one
  5199. testPlacement = placementVals[0];
  5200. addClassesToTarget(testPlacement);
  5201. positionService.positionElements(hostElement, targetElement, testPlacement, appendToBody);
  5202. }
  5203. return testPlacement;
  5204. }
  5205. function NGB_DATEPICKER_PARSER_FORMATTER_FACTORY() {
  5206. return new NgbDateISOParserFormatter();
  5207. }
  5208. /**
  5209. * An abstract service for parsing and formatting dates for the
  5210. * [`NgbInputDatepicker`](#/components/datepicker/api#NgbInputDatepicker) directive.
  5211. * Converts between the internal `NgbDateStruct` model presentation and a `string` that is displayed in the
  5212. * input element.
  5213. *
  5214. * When user types something in the input this service attempts to parse it into a `NgbDateStruct` object.
  5215. * And vice versa, when users selects a date in the calendar with the mouse, it must be displayed as a `string`
  5216. * in the input.
  5217. *
  5218. * Default implementation uses the ISO 8601 format, but you can provide another implementation via DI
  5219. * to use an alternative string format or a custom parsing logic.
  5220. *
  5221. * See the [date format overview](#/components/datepicker/overview#date-model) for more details.
  5222. */
  5223. class NgbDateParserFormatter {
  5224. }
  5225. NgbDateParserFormatter.ɵfac = function NgbDateParserFormatter_Factory(t) { return new (t || NgbDateParserFormatter)(); };
  5226. NgbDateParserFormatter.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY, token: NgbDateParserFormatter, providedIn: "root" });
  5227. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDateParserFormatter, [{
  5228. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  5229. args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_PARSER_FORMATTER_FACTORY }]
  5230. }], null, null); })();
  5231. class NgbDateISOParserFormatter extends NgbDateParserFormatter {
  5232. parse(value) {
  5233. if (value != null) {
  5234. const dateParts = value.trim().split('-');
  5235. if (dateParts.length === 1 && isNumber(dateParts[0])) {
  5236. return { year: toInteger(dateParts[0]), month: null, day: null };
  5237. }
  5238. else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) {
  5239. return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null };
  5240. }
  5241. else if (dateParts.length === 3 && isNumber(dateParts[0]) && isNumber(dateParts[1]) && isNumber(dateParts[2])) {
  5242. return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: toInteger(dateParts[2]) };
  5243. }
  5244. }
  5245. return null;
  5246. }
  5247. format(date) {
  5248. return date ?
  5249. `${date.year}-${isNumber(date.month) ? padNumber(date.month) : ''}-${isNumber(date.day) ? padNumber(date.day) : ''}` :
  5250. '';
  5251. }
  5252. }
  5253. NgbDateISOParserFormatter.ɵfac = function NgbDateISOParserFormatter_Factory(t) { return ɵNgbDateISOParserFormatter_BaseFactory(t || NgbDateISOParserFormatter); };
  5254. NgbDateISOParserFormatter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbDateISOParserFormatter, factory: NgbDateISOParserFormatter.ɵfac });
  5255. const ɵNgbDateISOParserFormatter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbDateISOParserFormatter);
  5256. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDateISOParserFormatter, [{
  5257. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  5258. }], null, null); })();
  5259. /**
  5260. * A configuration service for the [`NgbDatepickerInput`](#/components/datepicker/api#NgbDatepicker) component.
  5261. *
  5262. * You can inject this service, typically in your root component, and customize the values of its properties in
  5263. * order to provide default values for all the datepicker inputs used in the application.
  5264. *
  5265. * @since 5.2.0
  5266. */
  5267. class NgbInputDatepickerConfig extends NgbDatepickerConfig {
  5268. constructor() {
  5269. super(...arguments);
  5270. this.autoClose = true;
  5271. this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];
  5272. this.restoreFocus = true;
  5273. }
  5274. }
  5275. NgbInputDatepickerConfig.ɵfac = function NgbInputDatepickerConfig_Factory(t) { return ɵNgbInputDatepickerConfig_BaseFactory(t || NgbInputDatepickerConfig); };
  5276. NgbInputDatepickerConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbInputDatepickerConfig_Factory() { return new NgbInputDatepickerConfig(); }, token: NgbInputDatepickerConfig, providedIn: "root" });
  5277. const ɵNgbInputDatepickerConfig_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbInputDatepickerConfig);
  5278. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbInputDatepickerConfig, [{
  5279. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  5280. args: [{ providedIn: 'root' }]
  5281. }], null, null); })();
  5282. const NGB_DATEPICKER_VALUE_ACCESSOR$1 = {
  5283. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALUE_ACCESSOR"],
  5284. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbInputDatepicker),
  5285. multi: true
  5286. };
  5287. const NGB_DATEPICKER_VALIDATOR = {
  5288. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALIDATORS"],
  5289. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbInputDatepicker),
  5290. multi: true
  5291. };
  5292. /**
  5293. * A directive that allows to stick a datepicker popup to an input field.
  5294. *
  5295. * Manages interaction with the input field itself, does value formatting and provides forms integration.
  5296. */
  5297. class NgbInputDatepicker {
  5298. constructor(_parserFormatter, _elRef, _vcRef, _renderer, _cfr, _ngZone, _calendar, _dateAdapter, _document, _changeDetector, config) {
  5299. this._parserFormatter = _parserFormatter;
  5300. this._elRef = _elRef;
  5301. this._vcRef = _vcRef;
  5302. this._renderer = _renderer;
  5303. this._cfr = _cfr;
  5304. this._ngZone = _ngZone;
  5305. this._calendar = _calendar;
  5306. this._dateAdapter = _dateAdapter;
  5307. this._document = _document;
  5308. this._changeDetector = _changeDetector;
  5309. this._cRef = null;
  5310. this._disabled = false;
  5311. this._elWithFocus = null;
  5312. this._model = null;
  5313. /**
  5314. * An event emitted when user selects a date using keyboard or mouse.
  5315. *
  5316. * The payload of the event is currently selected `NgbDate`.
  5317. *
  5318. * @since 1.1.1
  5319. */
  5320. this.dateSelect = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  5321. /**
  5322. * Event emitted right after the navigation happens and displayed month changes.
  5323. *
  5324. * See [`NgbDatepickerNavigateEvent`](#/components/datepicker/api#NgbDatepickerNavigateEvent) for the payload info.
  5325. */
  5326. this.navigate = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  5327. /**
  5328. * An event fired after closing datepicker window.
  5329. *
  5330. * @since 4.2.0
  5331. */
  5332. this.closed = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  5333. this._onChange = (_) => { };
  5334. this._onTouched = () => { };
  5335. this._validatorChange = () => { };
  5336. ['autoClose', 'container', 'positionTarget', 'placement'].forEach(input => this[input] = config[input]);
  5337. this._zoneSubscription = _ngZone.onStable.subscribe(() => this._updatePopupPosition());
  5338. }
  5339. get disabled() {
  5340. return this._disabled;
  5341. }
  5342. set disabled(value) {
  5343. this._disabled = value === '' || (value && value !== 'false');
  5344. if (this.isOpen()) {
  5345. this._cRef.instance.setDisabledState(this._disabled);
  5346. }
  5347. }
  5348. registerOnChange(fn) { this._onChange = fn; }
  5349. registerOnTouched(fn) { this._onTouched = fn; }
  5350. registerOnValidatorChange(fn) { this._validatorChange = fn; }
  5351. setDisabledState(isDisabled) { this.disabled = isDisabled; }
  5352. validate(c) {
  5353. const { value } = c;
  5354. if (value != null) {
  5355. const ngbDate = this._fromDateStruct(this._dateAdapter.fromModel(value));
  5356. if (!ngbDate) {
  5357. return { 'ngbDate': { invalid: value } };
  5358. }
  5359. if (this.minDate && ngbDate.before(NgbDate.from(this.minDate))) {
  5360. return { 'ngbDate': { minDate: { minDate: this.minDate, actual: value } } };
  5361. }
  5362. if (this.maxDate && ngbDate.after(NgbDate.from(this.maxDate))) {
  5363. return { 'ngbDate': { maxDate: { maxDate: this.maxDate, actual: value } } };
  5364. }
  5365. }
  5366. return null;
  5367. }
  5368. writeValue(value) {
  5369. this._model = this._fromDateStruct(this._dateAdapter.fromModel(value));
  5370. this._writeModelValue(this._model);
  5371. }
  5372. manualDateChange(value, updateView = false) {
  5373. const inputValueChanged = value !== this._inputValue;
  5374. if (inputValueChanged) {
  5375. this._inputValue = value;
  5376. this._model = this._fromDateStruct(this._parserFormatter.parse(value));
  5377. }
  5378. if (inputValueChanged || !updateView) {
  5379. this._onChange(this._model ? this._dateAdapter.toModel(this._model) : (value === '' ? null : value));
  5380. }
  5381. if (updateView && this._model) {
  5382. this._writeModelValue(this._model);
  5383. }
  5384. }
  5385. isOpen() { return !!this._cRef; }
  5386. /**
  5387. * Opens the datepicker popup.
  5388. *
  5389. * If the related form control contains a valid date, the corresponding month will be opened.
  5390. */
  5391. open() {
  5392. if (!this.isOpen()) {
  5393. const cf = this._cfr.resolveComponentFactory(NgbDatepicker);
  5394. this._cRef = this._vcRef.createComponent(cf);
  5395. this._applyPopupStyling(this._cRef.location.nativeElement);
  5396. this._applyDatepickerInputs(this._cRef.instance);
  5397. this._subscribeForDatepickerOutputs(this._cRef.instance);
  5398. this._cRef.instance.ngOnInit();
  5399. this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model));
  5400. // date selection event handling
  5401. this._cRef.instance.registerOnChange((selectedDate) => {
  5402. this.writeValue(selectedDate);
  5403. this._onChange(selectedDate);
  5404. this._onTouched();
  5405. });
  5406. this._cRef.changeDetectorRef.detectChanges();
  5407. this._cRef.instance.setDisabledState(this.disabled);
  5408. if (this.container === 'body') {
  5409. this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement);
  5410. }
  5411. // focus handling
  5412. this._elWithFocus = this._document.activeElement;
  5413. ngbFocusTrap(this._ngZone, this._cRef.location.nativeElement, this.closed, true);
  5414. this._cRef.instance.focus();
  5415. ngbAutoClose(this._ngZone, this._document, this.autoClose, () => this.close(), this.closed, [], [this._elRef.nativeElement, this._cRef.location.nativeElement]);
  5416. }
  5417. }
  5418. /**
  5419. * Closes the datepicker popup.
  5420. */
  5421. close() {
  5422. if (this.isOpen()) {
  5423. this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView));
  5424. this._cRef = null;
  5425. this.closed.emit();
  5426. this._changeDetector.markForCheck();
  5427. // restore focus
  5428. let elementToFocus = this._elWithFocus;
  5429. if (isString(this.restoreFocus)) {
  5430. elementToFocus = this._document.querySelector(this.restoreFocus);
  5431. }
  5432. else if (this.restoreFocus !== undefined) {
  5433. elementToFocus = this.restoreFocus;
  5434. }
  5435. // in IE document.activeElement can contain an object without 'focus()' sometimes
  5436. if (elementToFocus && elementToFocus['focus']) {
  5437. elementToFocus.focus();
  5438. }
  5439. else {
  5440. this._document.body.focus();
  5441. }
  5442. }
  5443. }
  5444. /**
  5445. * Toggles the datepicker popup.
  5446. */
  5447. toggle() {
  5448. if (this.isOpen()) {
  5449. this.close();
  5450. }
  5451. else {
  5452. this.open();
  5453. }
  5454. }
  5455. /**
  5456. * Navigates to the provided date.
  5457. *
  5458. * With the default calendar we use ISO 8601: 'month' is 1=Jan ... 12=Dec.
  5459. * If nothing or invalid date provided calendar will open current month.
  5460. *
  5461. * Use the `[startDate]` input as an alternative.
  5462. */
  5463. navigateTo(date) {
  5464. if (this.isOpen()) {
  5465. this._cRef.instance.navigateTo(date);
  5466. }
  5467. }
  5468. onBlur() { this._onTouched(); }
  5469. onFocus() { this._elWithFocus = this._elRef.nativeElement; }
  5470. ngOnChanges(changes) {
  5471. if (changes['minDate'] || changes['maxDate']) {
  5472. this._validatorChange();
  5473. if (this.isOpen()) {
  5474. if (changes['minDate']) {
  5475. this._cRef.instance.minDate = this.minDate;
  5476. }
  5477. if (changes['maxDate']) {
  5478. this._cRef.instance.maxDate = this.maxDate;
  5479. }
  5480. this._cRef.instance.ngOnChanges(changes);
  5481. }
  5482. }
  5483. }
  5484. ngOnDestroy() {
  5485. this.close();
  5486. this._zoneSubscription.unsubscribe();
  5487. }
  5488. _applyDatepickerInputs(datepickerInstance) {
  5489. ['dayTemplate', 'dayTemplateData', 'displayMonths', 'firstDayOfWeek', 'footerTemplate', 'markDisabled', 'minDate',
  5490. 'maxDate', 'navigation', 'outsideDays', 'showNavigation', 'showWeekdays', 'showWeekNumbers']
  5491. .forEach((optionName) => {
  5492. if (this[optionName] !== undefined) {
  5493. datepickerInstance[optionName] = this[optionName];
  5494. }
  5495. });
  5496. datepickerInstance.startDate = this.startDate || this._model;
  5497. }
  5498. _applyPopupStyling(nativeElement) {
  5499. this._renderer.addClass(nativeElement, 'dropdown-menu');
  5500. this._renderer.addClass(nativeElement, 'show');
  5501. if (this.container === 'body') {
  5502. this._renderer.addClass(nativeElement, 'ngb-dp-body');
  5503. }
  5504. }
  5505. _subscribeForDatepickerOutputs(datepickerInstance) {
  5506. datepickerInstance.navigate.subscribe(navigateEvent => this.navigate.emit(navigateEvent));
  5507. datepickerInstance.dateSelect.subscribe(date => {
  5508. this.dateSelect.emit(date);
  5509. if (this.autoClose === true || this.autoClose === 'inside') {
  5510. this.close();
  5511. }
  5512. });
  5513. }
  5514. _writeModelValue(model) {
  5515. const value = this._parserFormatter.format(model);
  5516. this._inputValue = value;
  5517. this._renderer.setProperty(this._elRef.nativeElement, 'value', value);
  5518. if (this.isOpen()) {
  5519. this._cRef.instance.writeValue(this._dateAdapter.toModel(model));
  5520. this._onTouched();
  5521. }
  5522. }
  5523. _fromDateStruct(date) {
  5524. const ngbDate = date ? new NgbDate(date.year, date.month, date.day) : null;
  5525. return this._calendar.isValid(ngbDate) ? ngbDate : null;
  5526. }
  5527. _updatePopupPosition() {
  5528. if (!this._cRef) {
  5529. return;
  5530. }
  5531. let hostElement;
  5532. if (isString(this.positionTarget)) {
  5533. hostElement = this._document.querySelector(this.positionTarget);
  5534. }
  5535. else if (this.positionTarget instanceof HTMLElement) {
  5536. hostElement = this.positionTarget;
  5537. }
  5538. else {
  5539. hostElement = this._elRef.nativeElement;
  5540. }
  5541. if (this.positionTarget && !hostElement) {
  5542. throw new Error('ngbDatepicker could not find element declared in [positionTarget] to position against.');
  5543. }
  5544. positionElements(hostElement, this._cRef.location.nativeElement, this.placement, this.container === 'body');
  5545. }
  5546. }
  5547. NgbInputDatepicker.ɵfac = function NgbInputDatepicker_Factory(t) { return new (t || NgbInputDatepicker)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDateParserFormatter), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbCalendar), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDateAdapter), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbInputDatepickerConfig)); };
  5548. NgbInputDatepicker.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbInputDatepicker, selectors: [["input", "ngbDatepicker", ""]], hostVars: 1, hostBindings: function NgbInputDatepicker_HostBindings(rf, ctx) { if (rf & 1) {
  5549. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function NgbInputDatepicker_input_HostBindingHandler($event) { return ctx.manualDateChange($event.target.value); })("change", function NgbInputDatepicker_change_HostBindingHandler($event) { return ctx.manualDateChange($event.target.value, true); })("focus", function NgbInputDatepicker_focus_HostBindingHandler() { return ctx.onFocus(); })("blur", function NgbInputDatepicker_blur_HostBindingHandler() { return ctx.onBlur(); });
  5550. } if (rf & 2) {
  5551. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("disabled", ctx.disabled);
  5552. } }, inputs: { disabled: "disabled", autoClose: "autoClose", dayTemplate: "dayTemplate", dayTemplateData: "dayTemplateData", displayMonths: "displayMonths", firstDayOfWeek: "firstDayOfWeek", footerTemplate: "footerTemplate", markDisabled: "markDisabled", minDate: "minDate", maxDate: "maxDate", navigation: "navigation", outsideDays: "outsideDays", placement: "placement", restoreFocus: "restoreFocus", showWeekdays: "showWeekdays", showWeekNumbers: "showWeekNumbers", startDate: "startDate", container: "container", positionTarget: "positionTarget" }, outputs: { dateSelect: "dateSelect", navigate: "navigate", closed: "closed" }, exportAs: ["ngbDatepicker"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
  5553. NGB_DATEPICKER_VALUE_ACCESSOR$1, NGB_DATEPICKER_VALIDATOR,
  5554. { provide: NgbDatepickerConfig, useExisting: NgbInputDatepickerConfig }
  5555. ]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  5556. NgbInputDatepicker.ctorParameters = () => [
  5557. { type: NgbDateParserFormatter },
  5558. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  5559. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  5560. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  5561. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] },
  5562. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  5563. { type: NgbCalendar },
  5564. { type: NgbDateAdapter },
  5565. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] },
  5566. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  5567. { type: NgbInputDatepickerConfig }
  5568. ];
  5569. NgbInputDatepicker.propDecorators = {
  5570. autoClose: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5571. dayTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5572. dayTemplateData: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5573. displayMonths: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5574. firstDayOfWeek: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5575. footerTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5576. markDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5577. minDate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5578. maxDate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5579. navigation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5580. outsideDays: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5581. placement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5582. restoreFocus: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5583. showWeekdays: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5584. showWeekNumbers: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5585. startDate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5586. container: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5587. positionTarget: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5588. dateSelect: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  5589. navigate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  5590. closed: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  5591. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  5592. };
  5593. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbInputDatepicker, [{
  5594. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  5595. args: [{
  5596. selector: 'input[ngbDatepicker]',
  5597. exportAs: 'ngbDatepicker',
  5598. host: {
  5599. '(input)': 'manualDateChange($event.target.value)',
  5600. '(change)': 'manualDateChange($event.target.value, true)',
  5601. '(focus)': 'onFocus()',
  5602. '(blur)': 'onBlur()',
  5603. '[disabled]': 'disabled'
  5604. },
  5605. providers: [
  5606. NGB_DATEPICKER_VALUE_ACCESSOR$1, NGB_DATEPICKER_VALIDATOR,
  5607. { provide: NgbDatepickerConfig, useExisting: NgbInputDatepickerConfig }
  5608. ]
  5609. }]
  5610. }], function () { return [{ type: NgbDateParserFormatter }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: NgbCalendar }, { type: NgbDateAdapter }, { type: undefined, decorators: [{
  5611. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  5612. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  5613. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: NgbInputDatepickerConfig }]; }, { dateSelect: [{
  5614. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  5615. }], navigate: [{
  5616. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  5617. }], closed: [{
  5618. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  5619. }], disabled: [{
  5620. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5621. }], autoClose: [{
  5622. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5623. }], dayTemplate: [{
  5624. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5625. }], dayTemplateData: [{
  5626. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5627. }], displayMonths: [{
  5628. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5629. }], firstDayOfWeek: [{
  5630. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5631. }], footerTemplate: [{
  5632. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5633. }], markDisabled: [{
  5634. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5635. }], minDate: [{
  5636. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5637. }], maxDate: [{
  5638. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5639. }], navigation: [{
  5640. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5641. }], outsideDays: [{
  5642. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5643. }], placement: [{
  5644. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5645. }], restoreFocus: [{
  5646. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5647. }], showWeekdays: [{
  5648. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5649. }], showWeekNumbers: [{
  5650. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5651. }], startDate: [{
  5652. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5653. }], container: [{
  5654. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5655. }], positionTarget: [{
  5656. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5657. }] }); })();
  5658. class NgbDatepickerDayView {
  5659. constructor(i18n) {
  5660. this.i18n = i18n;
  5661. }
  5662. isMuted() { return !this.selected && (this.date.month !== this.currentMonth || this.disabled); }
  5663. }
  5664. NgbDatepickerDayView.ɵfac = function NgbDatepickerDayView_Factory(t) { return new (t || NgbDatepickerDayView)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerI18n)); };
  5665. NgbDatepickerDayView.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbDatepickerDayView, selectors: [["", "ngbDatepickerDayView", ""]], hostAttrs: [1, "btn-light"], hostVars: 10, hostBindings: function NgbDatepickerDayView_HostBindings(rf, ctx) { if (rf & 2) {
  5666. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("bg-primary", ctx.selected)("text-white", ctx.selected)("text-muted", ctx.isMuted())("outside", ctx.isMuted())("active", ctx.focused);
  5667. } }, inputs: { currentMonth: "currentMonth", date: "date", disabled: "disabled", focused: "focused", selected: "selected" }, attrs: _c22, decls: 1, vars: 1, template: function NgbDatepickerDayView_Template(rf, ctx) { if (rf & 1) {
  5668. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](0);
  5669. } if (rf & 2) {
  5670. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.i18n.getDayNumerals(ctx.date));
  5671. } }, styles: ["[ngbDatepickerDayView]{background:transparent;border-radius:.25rem;height:2rem;line-height:2rem;text-align:center;width:2rem}[ngbDatepickerDayView].outside{opacity:.5}"], encapsulation: 2, changeDetection: 0 });
  5672. NgbDatepickerDayView.ctorParameters = () => [
  5673. { type: NgbDatepickerI18n }
  5674. ];
  5675. NgbDatepickerDayView.propDecorators = {
  5676. currentMonth: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5677. date: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5678. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5679. focused: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5680. selected: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  5681. };
  5682. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerDayView, [{
  5683. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5684. args: [{
  5685. selector: '[ngbDatepickerDayView]',
  5686. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  5687. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  5688. host: {
  5689. 'class': 'btn-light',
  5690. '[class.bg-primary]': 'selected',
  5691. '[class.text-white]': 'selected',
  5692. '[class.text-muted]': 'isMuted()',
  5693. '[class.outside]': 'isMuted()',
  5694. '[class.active]': 'focused'
  5695. },
  5696. template: `{{ i18n.getDayNumerals(date) }}`,
  5697. styles: ["[ngbDatepickerDayView]{background:transparent;border-radius:.25rem;height:2rem;line-height:2rem;text-align:center;width:2rem}[ngbDatepickerDayView].outside{opacity:.5}"]
  5698. }]
  5699. }], function () { return [{ type: NgbDatepickerI18n }]; }, { currentMonth: [{
  5700. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5701. }], date: [{
  5702. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5703. }], disabled: [{
  5704. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5705. }], focused: [{
  5706. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5707. }], selected: [{
  5708. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5709. }] }); })();
  5710. class NgbDatepickerNavigationSelect {
  5711. constructor(i18n, _renderer) {
  5712. this.i18n = i18n;
  5713. this._renderer = _renderer;
  5714. this.select = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  5715. this._month = -1;
  5716. this._year = -1;
  5717. }
  5718. changeMonth(month) { this.select.emit(new NgbDate(this.date.year, toInteger(month), 1)); }
  5719. changeYear(year) { this.select.emit(new NgbDate(toInteger(year), this.date.month, 1)); }
  5720. ngAfterViewChecked() {
  5721. if (this.date) {
  5722. if (this.date.month !== this._month) {
  5723. this._month = this.date.month;
  5724. this._renderer.setProperty(this.monthSelect.nativeElement, 'value', this._month);
  5725. }
  5726. if (this.date.year !== this._year) {
  5727. this._year = this.date.year;
  5728. this._renderer.setProperty(this.yearSelect.nativeElement, 'value', this._year);
  5729. }
  5730. }
  5731. }
  5732. }
  5733. NgbDatepickerNavigationSelect.ɵfac = function NgbDatepickerNavigationSelect_Factory(t) { return new (t || NgbDatepickerNavigationSelect)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDatepickerI18n), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"])); };
  5734. NgbDatepickerNavigationSelect.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbDatepickerNavigationSelect, selectors: [["ngb-datepicker-navigation-select"]], viewQuery: function NgbDatepickerNavigationSelect_Query(rf, ctx) { if (rf & 1) {
  5735. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c23, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]);
  5736. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c24, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]);
  5737. } if (rf & 2) {
  5738. let _t;
  5739. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.monthSelect = _t.first);
  5740. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.yearSelect = _t.first);
  5741. } }, inputs: { date: "date", disabled: "disabled", months: "months", years: "years" }, outputs: { select: "select" }, decls: 6, vars: 4, consts: function () { let i18n_25; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  5742. const MSG_EXTERNAL_ngb_datepicker_select_month$$FESM2015_NG_BOOTSTRAP_JS_26 = goog.getMsg("Select month");
  5743. i18n_25 = MSG_EXTERNAL_ngb_datepicker_select_month$$FESM2015_NG_BOOTSTRAP_JS_26;
  5744. }
  5745. else {
  5746. i18n_25 = $localize `:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`;
  5747. } let i18n_27; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  5748. const MSG_EXTERNAL_ngb_datepicker_select_month$$FESM2015_NG_BOOTSTRAP_JS_28 = goog.getMsg("Select month");
  5749. i18n_27 = MSG_EXTERNAL_ngb_datepicker_select_month$$FESM2015_NG_BOOTSTRAP_JS_28;
  5750. }
  5751. else {
  5752. i18n_27 = $localize `:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`;
  5753. } let i18n_29; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  5754. const MSG_EXTERNAL_ngb_datepicker_select_year$$FESM2015_NG_BOOTSTRAP_JS_30 = goog.getMsg("Select year");
  5755. i18n_29 = MSG_EXTERNAL_ngb_datepicker_select_year$$FESM2015_NG_BOOTSTRAP_JS_30;
  5756. }
  5757. else {
  5758. i18n_29 = $localize `:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`;
  5759. } let i18n_31; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  5760. const MSG_EXTERNAL_ngb_datepicker_select_year$$FESM2015_NG_BOOTSTRAP_JS_32 = goog.getMsg("Select year");
  5761. i18n_31 = MSG_EXTERNAL_ngb_datepicker_select_year$$FESM2015_NG_BOOTSTRAP_JS_32;
  5762. }
  5763. else {
  5764. i18n_31 = $localize `:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`;
  5765. } return [["aria-label", i18n_25, "title", i18n_27, 1, "custom-select", 3, "disabled", "change"], ["month", ""], [3, "value", 4, "ngFor", "ngForOf"], ["aria-label", i18n_29, "title", i18n_31, 1, "custom-select", 3, "disabled", "change"], ["year", ""], [3, "value"]]; }, template: function NgbDatepickerNavigationSelect_Template(rf, ctx) { if (rf & 1) {
  5766. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "select", 0, 1);
  5767. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function NgbDatepickerNavigationSelect_Template_select_change_0_listener($event) { return ctx.changeMonth($event.target.value); });
  5768. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbDatepickerNavigationSelect_option_2_Template, 2, 3, "option", 2);
  5769. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5770. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "select", 3, 4);
  5771. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function NgbDatepickerNavigationSelect_Template_select_change_3_listener($event) { return ctx.changeYear($event.target.value); });
  5772. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, NgbDatepickerNavigationSelect_option_5_Template, 2, 2, "option", 2);
  5773. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  5774. } if (rf & 2) {
  5775. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disabled);
  5776. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  5777. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.months);
  5778. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  5779. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disabled);
  5780. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  5781. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.years);
  5782. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NgSelectOption"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["ɵangular_packages_forms_forms_x"]], styles: ["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;font-size:.875rem;height:1.85rem;padding:0 .5rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"], encapsulation: 2, changeDetection: 0 });
  5783. NgbDatepickerNavigationSelect.ctorParameters = () => [
  5784. { type: NgbDatepickerI18n },
  5785. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }
  5786. ];
  5787. NgbDatepickerNavigationSelect.propDecorators = {
  5788. date: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5789. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5790. months: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5791. years: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  5792. select: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  5793. monthSelect: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['month', { static: true, read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },] }],
  5794. yearSelect: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['year', { static: true, read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },] }]
  5795. };
  5796. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerNavigationSelect, [{
  5797. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  5798. args: [{
  5799. selector: 'ngb-datepicker-navigation-select',
  5800. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  5801. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  5802. template: `
  5803. <select #month
  5804. [disabled]="disabled"
  5805. class="custom-select"
  5806. i18n-aria-label="@@ngb.datepicker.select-month" aria-label="Select month"
  5807. i18n-title="@@ngb.datepicker.select-month" title="Select month"
  5808. (change)="changeMonth($any($event).target.value)">
  5809. <option *ngFor="let m of months" [attr.aria-label]="i18n.getMonthFullName(m, date?.year)"
  5810. [value]="m">{{ i18n.getMonthShortName(m, date?.year) }}</option>
  5811. </select><select #year
  5812. [disabled]="disabled"
  5813. class="custom-select"
  5814. i18n-aria-label="@@ngb.datepicker.select-year" aria-label="Select year"
  5815. i18n-title="@@ngb.datepicker.select-year" title="Select year"
  5816. (change)="changeYear($any($event).target.value)">
  5817. <option *ngFor="let y of years" [value]="y">{{ i18n.getYearNumerals(y) }}</option>
  5818. </select>
  5819. `,
  5820. styles: ["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;font-size:.875rem;height:1.85rem;padding:0 .5rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"]
  5821. }]
  5822. }], function () { return [{ type: NgbDatepickerI18n }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }]; }, { select: [{
  5823. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  5824. }], date: [{
  5825. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5826. }], disabled: [{
  5827. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5828. }], months: [{
  5829. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5830. }], years: [{
  5831. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  5832. }], monthSelect: [{
  5833. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  5834. args: ['month', { static: true, read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]
  5835. }], yearSelect: [{
  5836. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  5837. args: ['year', { static: true, read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]
  5838. }] }); })();
  5839. class NgbCalendarHijri extends NgbCalendar {
  5840. getDaysPerWeek() { return 7; }
  5841. getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }
  5842. getWeeksPerMonth() { return 6; }
  5843. getNext(date, period = 'd', number = 1) {
  5844. date = new NgbDate(date.year, date.month, date.day);
  5845. switch (period) {
  5846. case 'y':
  5847. date = this._setYear(date, date.year + number);
  5848. date.month = 1;
  5849. date.day = 1;
  5850. return date;
  5851. case 'm':
  5852. date = this._setMonth(date, date.month + number);
  5853. date.day = 1;
  5854. return date;
  5855. case 'd':
  5856. return this._setDay(date, date.day + number);
  5857. default:
  5858. return date;
  5859. }
  5860. }
  5861. getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); }
  5862. getWeekday(date) {
  5863. const day = this.toGregorian(date).getDay();
  5864. // in JS Date Sun=0, in ISO 8601 Sun=7
  5865. return day === 0 ? 7 : day;
  5866. }
  5867. getWeekNumber(week, firstDayOfWeek) {
  5868. // in JS Date Sun=0, in ISO 8601 Sun=7
  5869. if (firstDayOfWeek === 7) {
  5870. firstDayOfWeek = 0;
  5871. }
  5872. const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;
  5873. const date = week[thursdayIndex];
  5874. const jsDate = this.toGregorian(date);
  5875. jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday
  5876. const time = jsDate.getTime();
  5877. const MuhDate = this.toGregorian(new NgbDate(date.year, 1, 1)); // Compare with Muharram 1
  5878. return Math.floor(Math.round((time - MuhDate.getTime()) / 86400000) / 7) + 1;
  5879. }
  5880. getToday() { return this.fromGregorian(new Date()); }
  5881. isValid(date) {
  5882. return date != null && isNumber(date.year) && isNumber(date.month) && isNumber(date.day) &&
  5883. !isNaN(this.toGregorian(date).getTime());
  5884. }
  5885. _setDay(date, day) {
  5886. day = +day;
  5887. let mDays = this.getDaysPerMonth(date.month, date.year);
  5888. if (day <= 0) {
  5889. while (day <= 0) {
  5890. date = this._setMonth(date, date.month - 1);
  5891. mDays = this.getDaysPerMonth(date.month, date.year);
  5892. day += mDays;
  5893. }
  5894. }
  5895. else if (day > mDays) {
  5896. while (day > mDays) {
  5897. day -= mDays;
  5898. date = this._setMonth(date, date.month + 1);
  5899. mDays = this.getDaysPerMonth(date.month, date.year);
  5900. }
  5901. }
  5902. date.day = day;
  5903. return date;
  5904. }
  5905. _setMonth(date, month) {
  5906. month = +month;
  5907. date.year = date.year + Math.floor((month - 1) / 12);
  5908. date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;
  5909. return date;
  5910. }
  5911. _setYear(date, year) {
  5912. date.year = +year;
  5913. return date;
  5914. }
  5915. }
  5916. NgbCalendarHijri.ɵfac = function NgbCalendarHijri_Factory(t) { return ɵNgbCalendarHijri_BaseFactory(t || NgbCalendarHijri); };
  5917. NgbCalendarHijri.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbCalendarHijri, factory: NgbCalendarHijri.ɵfac });
  5918. const ɵNgbCalendarHijri_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbCalendarHijri);
  5919. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCalendarHijri, [{
  5920. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  5921. }], null, null); })();
  5922. /**
  5923. * Checks if islamic year is a leap year
  5924. */
  5925. function isIslamicLeapYear(hYear) {
  5926. return (14 + 11 * hYear) % 30 < 11;
  5927. }
  5928. /**
  5929. * Checks if gregorian years is a leap year
  5930. */
  5931. function isGregorianLeapYear(gDate) {
  5932. const year = gDate.getFullYear();
  5933. return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
  5934. }
  5935. /**
  5936. * Returns the start of Hijri Month.
  5937. * `hMonth` is 0 for Muharram, 1 for Safar, etc.
  5938. * `hYear` is any Hijri hYear.
  5939. */
  5940. function getIslamicMonthStart(hYear, hMonth) {
  5941. return Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30.0);
  5942. }
  5943. /**
  5944. * Returns the start of Hijri year.
  5945. * `year` is any Hijri year.
  5946. */
  5947. function getIslamicYearStart(year) {
  5948. return (year - 1) * 354 + Math.floor((3 + 11 * year) / 30.0);
  5949. }
  5950. function mod(a, b) {
  5951. return a - b * Math.floor(a / b);
  5952. }
  5953. /**
  5954. * The civil calendar is one type of Hijri calendars used in islamic countries.
  5955. * Uses a fixed cycle of alternating 29- and 30-day months,
  5956. * with a leap day added to the last month of 11 out of every 30 years.
  5957. * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types
  5958. * All the calculations here are based on the equations from "Calendrical Calculations" By Edward M. Reingold, Nachum
  5959. * Dershowitz.
  5960. */
  5961. const GREGORIAN_EPOCH = 1721425.5;
  5962. const ISLAMIC_EPOCH = 1948439.5;
  5963. class NgbCalendarIslamicCivil extends NgbCalendarHijri {
  5964. /**
  5965. * Returns the equivalent islamic(civil) date value for a give input Gregorian date.
  5966. * `gDate` is a JS Date to be converted to Hijri.
  5967. */
  5968. fromGregorian(gDate) {
  5969. const gYear = gDate.getFullYear(), gMonth = gDate.getMonth(), gDay = gDate.getDate();
  5970. let julianDay = GREGORIAN_EPOCH - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) +
  5971. -Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +
  5972. Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear(gDate) ? -1 : -2) + gDay);
  5973. julianDay = Math.floor(julianDay) + 0.5;
  5974. const days = julianDay - ISLAMIC_EPOCH;
  5975. const hYear = Math.floor((30 * days + 10646) / 10631.0);
  5976. let hMonth = Math.ceil((days - 29 - getIslamicYearStart(hYear)) / 29.5);
  5977. hMonth = Math.min(hMonth, 11);
  5978. const hDay = Math.ceil(days - getIslamicMonthStart(hYear, hMonth)) + 1;
  5979. return new NgbDate(hYear, hMonth + 1, hDay);
  5980. }
  5981. /**
  5982. * Returns the equivalent JS date value for a give input islamic(civil) date.
  5983. * `hDate` is an islamic(civil) date to be converted to Gregorian.
  5984. */
  5985. toGregorian(hDate) {
  5986. const hYear = hDate.year;
  5987. const hMonth = hDate.month - 1;
  5988. const hDay = hDate.day;
  5989. const julianDay = hDay + Math.ceil(29.5 * hMonth) + (hYear - 1) * 354 + Math.floor((3 + 11 * hYear) / 30) + ISLAMIC_EPOCH - 1;
  5990. const wjd = Math.floor(julianDay - 0.5) + 0.5, depoch = wjd - GREGORIAN_EPOCH, quadricent = Math.floor(depoch / 146097), dqc = mod(depoch, 146097), cent = Math.floor(dqc / 36524), dcent = mod(dqc, 36524), quad = Math.floor(dcent / 1461), dquad = mod(dcent, 1461), yindex = Math.floor(dquad / 365);
  5991. let year = quadricent * 400 + cent * 100 + quad * 4 + yindex;
  5992. if (!(cent === 4 || yindex === 4)) {
  5993. year++;
  5994. }
  5995. const gYearStart = GREGORIAN_EPOCH + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +
  5996. Math.floor((year - 1) / 400);
  5997. const yearday = wjd - gYearStart;
  5998. const tjd = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +
  5999. Math.floor((year - 1) / 400) + Math.floor(739 / 12 + (isGregorianLeapYear(new Date(year, 3, 1)) ? -1 : -2) + 1);
  6000. const leapadj = wjd < tjd ? 0 : isGregorianLeapYear(new Date(year, 3, 1)) ? 1 : 2;
  6001. const month = Math.floor(((yearday + leapadj) * 12 + 373) / 367);
  6002. const tjd2 = GREGORIAN_EPOCH - 1 + 365 * (year - 1) + Math.floor((year - 1) / 4) - Math.floor((year - 1) / 100) +
  6003. Math.floor((year - 1) / 400) +
  6004. Math.floor((367 * month - 362) / 12 + (month <= 2 ? 0 : isGregorianLeapYear(new Date(year, month - 1, 1)) ? -1 : -2) +
  6005. 1);
  6006. const day = wjd - tjd2 + 1;
  6007. return new Date(year, month - 1, day);
  6008. }
  6009. /**
  6010. * Returns the number of days in a specific Hijri month.
  6011. * `month` is 1 for Muharram, 2 for Safar, etc.
  6012. * `year` is any Hijri year.
  6013. */
  6014. getDaysPerMonth(month, year) {
  6015. year = year + Math.floor(month / 13);
  6016. month = ((month - 1) % 12) + 1;
  6017. let length = 29 + month % 2;
  6018. if (month === 12 && isIslamicLeapYear(year)) {
  6019. length++;
  6020. }
  6021. return length;
  6022. }
  6023. }
  6024. NgbCalendarIslamicCivil.ɵfac = function NgbCalendarIslamicCivil_Factory(t) { return ɵNgbCalendarIslamicCivil_BaseFactory(t || NgbCalendarIslamicCivil); };
  6025. NgbCalendarIslamicCivil.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbCalendarIslamicCivil, factory: NgbCalendarIslamicCivil.ɵfac });
  6026. const ɵNgbCalendarIslamicCivil_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbCalendarIslamicCivil);
  6027. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCalendarIslamicCivil, [{
  6028. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  6029. }], null, null); })();
  6030. /**
  6031. * Umalqura calendar is one type of Hijri calendars used in islamic countries.
  6032. * This Calendar is used by Saudi Arabia for administrative purpose.
  6033. * Unlike tabular calendars, the algorithm involves astronomical calculation, but it's still deterministic.
  6034. * http://cldr.unicode.org/development/development-process/design-proposals/islamic-calendar-types
  6035. */
  6036. const GREGORIAN_FIRST_DATE = new Date(1882, 10, 12);
  6037. const GREGORIAN_LAST_DATE = new Date(2174, 10, 25);
  6038. const HIJRI_BEGIN = 1300;
  6039. const HIJRI_END = 1600;
  6040. const ONE_DAY = 1000 * 60 * 60 * 24;
  6041. const MONTH_LENGTH = [
  6042. // 1300-1304
  6043. '101010101010', '110101010100', '111011001001', '011011010100', '011011101010',
  6044. // 1305-1309
  6045. '001101101100', '101010101101', '010101010101', '011010101001', '011110010010',
  6046. // 1310-1314
  6047. '101110101001', '010111010100', '101011011010', '010101011100', '110100101101',
  6048. // 1315-1319
  6049. '011010010101', '011101001010', '101101010100', '101101101010', '010110101101',
  6050. // 1320-1324
  6051. '010010101110', '101001001111', '010100010111', '011010001011', '011010100101',
  6052. // 1325-1329
  6053. '101011010101', '001011010110', '100101011011', '010010011101', '101001001101',
  6054. // 1330-1334
  6055. '110100100110', '110110010101', '010110101100', '100110110110', '001010111010',
  6056. // 1335-1339
  6057. '101001011011', '010100101011', '101010010101', '011011001010', '101011101001',
  6058. // 1340-1344
  6059. '001011110100', '100101110110', '001010110110', '100101010110', '101011001010',
  6060. // 1345-1349
  6061. '101110100100', '101111010010', '010111011001', '001011011100', '100101101101',
  6062. // 1350-1354
  6063. '010101001101', '101010100101', '101101010010', '101110100101', '010110110100',
  6064. // 1355-1359
  6065. '100110110110', '010101010111', '001010010111', '010101001011', '011010100011',
  6066. // 1360-1364
  6067. '011101010010', '101101100101', '010101101010', '101010101011', '010100101011',
  6068. // 1365-1369
  6069. '110010010101', '110101001010', '110110100101', '010111001010', '101011010110',
  6070. // 1370-1374
  6071. '100101010111', '010010101011', '100101001011', '101010100101', '101101010010',
  6072. // 1375-1379
  6073. '101101101010', '010101110101', '001001110110', '100010110111', '010001011011',
  6074. // 1380-1384
  6075. '010101010101', '010110101001', '010110110100', '100111011010', '010011011101',
  6076. // 1385-1389
  6077. '001001101110', '100100110110', '101010101010', '110101010100', '110110110010',
  6078. // 1390-1394
  6079. '010111010101', '001011011010', '100101011011', '010010101011', '101001010101',
  6080. // 1395-1399
  6081. '101101001001', '101101100100', '101101110001', '010110110100', '101010110101',
  6082. // 1400-1404
  6083. '101001010101', '110100100101', '111010010010', '111011001001', '011011010100',
  6084. // 1405-1409
  6085. '101011101001', '100101101011', '010010101011', '101010010011', '110101001001',
  6086. // 1410-1414
  6087. '110110100100', '110110110010', '101010111001', '010010111010', '101001011011',
  6088. // 1415-1419
  6089. '010100101011', '101010010101', '101100101010', '101101010101', '010101011100',
  6090. // 1420-1424
  6091. '010010111101', '001000111101', '100100011101', '101010010101', '101101001010',
  6092. // 1425-1429
  6093. '101101011010', '010101101101', '001010110110', '100100111011', '010010011011',
  6094. // 1430-1434
  6095. '011001010101', '011010101001', '011101010100', '101101101010', '010101101100',
  6096. // 1435-1439
  6097. '101010101101', '010101010101', '101100101001', '101110010010', '101110101001',
  6098. // 1440-1444
  6099. '010111010100', '101011011010', '010101011010', '101010101011', '010110010101',
  6100. // 1445-1449
  6101. '011101001001', '011101100100', '101110101010', '010110110101', '001010110110',
  6102. // 1450-1454
  6103. '101001010110', '111001001101', '101100100101', '101101010010', '101101101010',
  6104. // 1455-1459
  6105. '010110101101', '001010101110', '100100101111', '010010010111', '011001001011',
  6106. // 1460-1464
  6107. '011010100101', '011010101100', '101011010110', '010101011101', '010010011101',
  6108. // 1465-1469
  6109. '101001001101', '110100010110', '110110010101', '010110101010', '010110110101',
  6110. // 1470-1474
  6111. '001011011010', '100101011011', '010010101101', '010110010101', '011011001010',
  6112. // 1475-1479
  6113. '011011100100', '101011101010', '010011110101', '001010110110', '100101010110',
  6114. // 1480-1484
  6115. '101010101010', '101101010100', '101111010010', '010111011001', '001011101010',
  6116. // 1485-1489
  6117. '100101101101', '010010101101', '101010010101', '101101001010', '101110100101',
  6118. // 1490-1494
  6119. '010110110010', '100110110101', '010011010110', '101010010111', '010101000111',
  6120. // 1495-1499
  6121. '011010010011', '011101001001', '101101010101', '010101101010', '101001101011',
  6122. // 1500-1504
  6123. '010100101011', '101010001011', '110101000110', '110110100011', '010111001010',
  6124. // 1505-1509
  6125. '101011010110', '010011011011', '001001101011', '100101001011', '101010100101',
  6126. // 1510-1514
  6127. '101101010010', '101101101001', '010101110101', '000101110110', '100010110111',
  6128. // 1515-1519
  6129. '001001011011', '010100101011', '010101100101', '010110110100', '100111011010',
  6130. // 1520-1524
  6131. '010011101101', '000101101101', '100010110110', '101010100110', '110101010010',
  6132. // 1525-1529
  6133. '110110101001', '010111010100', '101011011010', '100101011011', '010010101011',
  6134. // 1530-1534
  6135. '011001010011', '011100101001', '011101100010', '101110101001', '010110110010',
  6136. // 1535-1539
  6137. '101010110101', '010101010101', '101100100101', '110110010010', '111011001001',
  6138. // 1540-1544
  6139. '011011010010', '101011101001', '010101101011', '010010101011', '101001010101',
  6140. // 1545-1549
  6141. '110100101001', '110101010100', '110110101010', '100110110101', '010010111010',
  6142. // 1550-1554
  6143. '101000111011', '010010011011', '101001001101', '101010101010', '101011010101',
  6144. // 1555-1559
  6145. '001011011010', '100101011101', '010001011110', '101000101110', '110010011010',
  6146. // 1560-1564
  6147. '110101010101', '011010110010', '011010111001', '010010111010', '101001011101',
  6148. // 1565-1569
  6149. '010100101101', '101010010101', '101101010010', '101110101000', '101110110100',
  6150. // 1570-1574
  6151. '010110111001', '001011011010', '100101011010', '101101001010', '110110100100',
  6152. // 1575-1579
  6153. '111011010001', '011011101000', '101101101010', '010101101101', '010100110101',
  6154. // 1580-1584
  6155. '011010010101', '110101001010', '110110101000', '110111010100', '011011011010',
  6156. // 1585-1589
  6157. '010101011011', '001010011101', '011000101011', '101100010101', '101101001010',
  6158. // 1590-1594
  6159. '101110010101', '010110101010', '101010101110', '100100101110', '110010001111',
  6160. // 1595-1599
  6161. '010100100111', '011010010101', '011010101010', '101011010110', '010101011101',
  6162. // 1600
  6163. '001010011101'
  6164. ];
  6165. function getDaysDiff(date1, date2) {
  6166. // Ignores the time part in date1 and date2:
  6167. const time1 = Date.UTC(date1.getFullYear(), date1.getMonth(), date1.getDate());
  6168. const time2 = Date.UTC(date2.getFullYear(), date2.getMonth(), date2.getDate());
  6169. const diff = Math.abs(time1 - time2);
  6170. return Math.round(diff / ONE_DAY);
  6171. }
  6172. class NgbCalendarIslamicUmalqura extends NgbCalendarIslamicCivil {
  6173. /**
  6174. * Returns the equivalent islamic(Umalqura) date value for a give input Gregorian date.
  6175. * `gdate` is s JS Date to be converted to Hijri.
  6176. */
  6177. fromGregorian(gDate) {
  6178. let hDay = 1, hMonth = 0, hYear = 1300;
  6179. let daysDiff = getDaysDiff(gDate, GREGORIAN_FIRST_DATE);
  6180. if (gDate.getTime() - GREGORIAN_FIRST_DATE.getTime() >= 0 && gDate.getTime() - GREGORIAN_LAST_DATE.getTime() <= 0) {
  6181. let year = 1300;
  6182. for (let i = 0; i < MONTH_LENGTH.length; i++, year++) {
  6183. for (let j = 0; j < 12; j++) {
  6184. let numOfDays = +MONTH_LENGTH[i][j] + 29;
  6185. if (daysDiff <= numOfDays) {
  6186. hDay = daysDiff + 1;
  6187. if (hDay > numOfDays) {
  6188. hDay = 1;
  6189. j++;
  6190. }
  6191. if (j > 11) {
  6192. j = 0;
  6193. year++;
  6194. }
  6195. hMonth = j;
  6196. hYear = year;
  6197. return new NgbDate(hYear, hMonth + 1, hDay);
  6198. }
  6199. daysDiff = daysDiff - numOfDays;
  6200. }
  6201. }
  6202. return null;
  6203. }
  6204. else {
  6205. return super.fromGregorian(gDate);
  6206. }
  6207. }
  6208. /**
  6209. * Converts the current Hijri date to Gregorian.
  6210. */
  6211. toGregorian(hDate) {
  6212. const hYear = hDate.year;
  6213. const hMonth = hDate.month - 1;
  6214. const hDay = hDate.day;
  6215. let gDate = new Date(GREGORIAN_FIRST_DATE);
  6216. let dayDiff = hDay - 1;
  6217. if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {
  6218. for (let y = 0; y < hYear - HIJRI_BEGIN; y++) {
  6219. for (let m = 0; m < 12; m++) {
  6220. dayDiff += +MONTH_LENGTH[y][m] + 29;
  6221. }
  6222. }
  6223. for (let m = 0; m < hMonth; m++) {
  6224. dayDiff += +MONTH_LENGTH[hYear - HIJRI_BEGIN][m] + 29;
  6225. }
  6226. gDate.setDate(GREGORIAN_FIRST_DATE.getDate() + dayDiff);
  6227. }
  6228. else {
  6229. gDate = super.toGregorian(hDate);
  6230. }
  6231. return gDate;
  6232. }
  6233. /**
  6234. * Returns the number of days in a specific Hijri hMonth.
  6235. * `hMonth` is 1 for Muharram, 2 for Safar, etc.
  6236. * `hYear` is any Hijri hYear.
  6237. */
  6238. getDaysPerMonth(hMonth, hYear) {
  6239. if (hYear >= HIJRI_BEGIN && hYear <= HIJRI_END) {
  6240. const pos = hYear - HIJRI_BEGIN;
  6241. return +MONTH_LENGTH[pos][hMonth - 1] + 29;
  6242. }
  6243. return super.getDaysPerMonth(hMonth, hYear);
  6244. }
  6245. }
  6246. NgbCalendarIslamicUmalqura.ɵfac = function NgbCalendarIslamicUmalqura_Factory(t) { return ɵNgbCalendarIslamicUmalqura_BaseFactory(t || NgbCalendarIslamicUmalqura); };
  6247. NgbCalendarIslamicUmalqura.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbCalendarIslamicUmalqura, factory: NgbCalendarIslamicUmalqura.ɵfac });
  6248. const ɵNgbCalendarIslamicUmalqura_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbCalendarIslamicUmalqura);
  6249. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCalendarIslamicUmalqura, [{
  6250. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  6251. }], null, null); })();
  6252. /**
  6253. * Returns the equivalent JS date value for a give input Jalali date.
  6254. * `jalaliDate` is an Jalali date to be converted to Gregorian.
  6255. */
  6256. function toGregorian(jalaliDate) {
  6257. let jdn = jalaliToJulian(jalaliDate.year, jalaliDate.month, jalaliDate.day);
  6258. let date = julianToGregorian(jdn);
  6259. date.setHours(6, 30, 3, 200);
  6260. return date;
  6261. }
  6262. /**
  6263. * Returns the equivalent jalali date value for a give input Gregorian date.
  6264. * `gdate` is a JS Date to be converted to jalali.
  6265. * utc to local
  6266. */
  6267. function fromGregorian(gdate) {
  6268. let g2d = gregorianToJulian(gdate.getFullYear(), gdate.getMonth() + 1, gdate.getDate());
  6269. return julianToJalali(g2d);
  6270. }
  6271. function setJalaliYear(date, yearValue) {
  6272. date.year = +yearValue;
  6273. return date;
  6274. }
  6275. function setJalaliMonth(date, month) {
  6276. month = +month;
  6277. date.year = date.year + Math.floor((month - 1) / 12);
  6278. date.month = Math.floor(((month - 1) % 12 + 12) % 12) + 1;
  6279. return date;
  6280. }
  6281. function setJalaliDay(date, day) {
  6282. let mDays = getDaysPerMonth(date.month, date.year);
  6283. if (day <= 0) {
  6284. while (day <= 0) {
  6285. date = setJalaliMonth(date, date.month - 1);
  6286. mDays = getDaysPerMonth(date.month, date.year);
  6287. day += mDays;
  6288. }
  6289. }
  6290. else if (day > mDays) {
  6291. while (day > mDays) {
  6292. day -= mDays;
  6293. date = setJalaliMonth(date, date.month + 1);
  6294. mDays = getDaysPerMonth(date.month, date.year);
  6295. }
  6296. }
  6297. date.day = day;
  6298. return date;
  6299. }
  6300. function mod$1(a, b) {
  6301. return a - b * Math.floor(a / b);
  6302. }
  6303. function div(a, b) {
  6304. return Math.trunc(a / b);
  6305. }
  6306. /*
  6307. This function determines if the Jalali (Persian) year is
  6308. leap (366-day long) or is the common year (365 days), and
  6309. finds the day in March (Gregorian calendar) of the first
  6310. day of the Jalali year (jalaliYear).
  6311. @param jalaliYear Jalali calendar year (-61 to 3177)
  6312. @return
  6313. leap: number of years since the last leap year (0 to 4)
  6314. gYear: Gregorian year of the beginning of Jalali year
  6315. march: the March day of Farvardin the 1st (1st day of jalaliYear)
  6316. @see: http://www.astro.uni.torun.pl/~kb/Papers/EMP/PersianC-EMP.htm
  6317. @see: http://www.fourmilab.ch/documents/calendar/
  6318. */
  6319. function jalCal(jalaliYear) {
  6320. // Jalali years starting the 33-year rule.
  6321. let breaks = [-61, 9, 38, 199, 426, 686, 756, 818, 1111, 1181, 1210, 1635, 2060, 2097, 2192, 2262, 2324, 2394, 2456, 3178];
  6322. const breaksLength = breaks.length;
  6323. const gYear = jalaliYear + 621;
  6324. let leapJ = -14;
  6325. let jp = breaks[0];
  6326. if (jalaliYear < jp || jalaliYear >= breaks[breaksLength - 1]) {
  6327. throw new Error('Invalid Jalali year ' + jalaliYear);
  6328. }
  6329. // Find the limiting years for the Jalali year jalaliYear.
  6330. let jump;
  6331. for (let i = 1; i < breaksLength; i += 1) {
  6332. const jm = breaks[i];
  6333. jump = jm - jp;
  6334. if (jalaliYear < jm) {
  6335. break;
  6336. }
  6337. leapJ = leapJ + div(jump, 33) * 8 + div(mod$1(jump, 33), 4);
  6338. jp = jm;
  6339. }
  6340. let n = jalaliYear - jp;
  6341. // Find the number of leap years from AD 621 to the beginning
  6342. // of the current Jalali year in the Persian calendar.
  6343. leapJ = leapJ + div(n, 33) * 8 + div(mod$1(n, 33) + 3, 4);
  6344. if (mod$1(jump, 33) === 4 && jump - n === 4) {
  6345. leapJ += 1;
  6346. }
  6347. // And the same in the Gregorian calendar (until the year gYear).
  6348. const leapG = div(gYear, 4) - div((div(gYear, 100) + 1) * 3, 4) - 150;
  6349. // Determine the Gregorian date of Farvardin the 1st.
  6350. const march = 20 + leapJ - leapG;
  6351. // Find how many years have passed since the last leap year.
  6352. if (jump - n < 6) {
  6353. n = n - jump + div(jump + 4, 33) * 33;
  6354. }
  6355. let leap = mod$1(mod$1(n + 1, 33) - 1, 4);
  6356. if (leap === -1) {
  6357. leap = 4;
  6358. }
  6359. return { leap: leap, gy: gYear, march: march };
  6360. }
  6361. /*
  6362. Calculates Gregorian and Julian calendar dates from the Julian Day number
  6363. (jdn) for the period since jdn=-34839655 (i.e. the year -100100 of both
  6364. calendars) to some millions years ahead of the present.
  6365. @param jdn Julian Day number
  6366. @return
  6367. gYear: Calendar year (years BC numbered 0, -1, -2, ...)
  6368. gMonth: Calendar month (1 to 12)
  6369. gDay: Calendar day of the month M (1 to 28/29/30/31)
  6370. */
  6371. function julianToGregorian(julianDayNumber) {
  6372. let j = 4 * julianDayNumber + 139361631;
  6373. j = j + div(div(4 * julianDayNumber + 183187720, 146097) * 3, 4) * 4 - 3908;
  6374. const i = div(mod$1(j, 1461), 4) * 5 + 308;
  6375. const gDay = div(mod$1(i, 153), 5) + 1;
  6376. const gMonth = mod$1(div(i, 153), 12) + 1;
  6377. const gYear = div(j, 1461) - 100100 + div(8 - gMonth, 6);
  6378. return new Date(gYear, gMonth - 1, gDay);
  6379. }
  6380. /*
  6381. Converts a date of the Jalali calendar to the Julian Day number.
  6382. @param jy Jalali year (1 to 3100)
  6383. @param jm Jalali month (1 to 12)
  6384. @param jd Jalali day (1 to 29/31)
  6385. @return Julian Day number
  6386. */
  6387. function gregorianToJulian(gy, gm, gd) {
  6388. let d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod$1(gm + 9, 12) + 2, 5) + gd - 34840408;
  6389. d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752;
  6390. return d;
  6391. }
  6392. /*
  6393. Converts the Julian Day number to a date in the Jalali calendar.
  6394. @param julianDayNumber Julian Day number
  6395. @return
  6396. jalaliYear: Jalali year (1 to 3100)
  6397. jalaliMonth: Jalali month (1 to 12)
  6398. jalaliDay: Jalali day (1 to 29/31)
  6399. */
  6400. function julianToJalali(julianDayNumber) {
  6401. let gy = julianToGregorian(julianDayNumber).getFullYear() // Calculate Gregorian year (gy).
  6402. , jalaliYear = gy - 621, r = jalCal(jalaliYear), gregorianDay = gregorianToJulian(gy, 3, r.march), jalaliDay, jalaliMonth, numberOfDays;
  6403. // Find number of days that passed since 1 Farvardin.
  6404. numberOfDays = julianDayNumber - gregorianDay;
  6405. if (numberOfDays >= 0) {
  6406. if (numberOfDays <= 185) {
  6407. // The first 6 months.
  6408. jalaliMonth = 1 + div(numberOfDays, 31);
  6409. jalaliDay = mod$1(numberOfDays, 31) + 1;
  6410. return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);
  6411. }
  6412. else {
  6413. // The remaining months.
  6414. numberOfDays -= 186;
  6415. }
  6416. }
  6417. else {
  6418. // Previous Jalali year.
  6419. jalaliYear -= 1;
  6420. numberOfDays += 179;
  6421. if (r.leap === 1) {
  6422. numberOfDays += 1;
  6423. }
  6424. }
  6425. jalaliMonth = 7 + div(numberOfDays, 30);
  6426. jalaliDay = mod$1(numberOfDays, 30) + 1;
  6427. return new NgbDate(jalaliYear, jalaliMonth, jalaliDay);
  6428. }
  6429. /*
  6430. Converts a date of the Jalali calendar to the Julian Day number.
  6431. @param jYear Jalali year (1 to 3100)
  6432. @param jMonth Jalali month (1 to 12)
  6433. @param jDay Jalali day (1 to 29/31)
  6434. @return Julian Day number
  6435. */
  6436. function jalaliToJulian(jYear, jMonth, jDay) {
  6437. let r = jalCal(jYear);
  6438. return gregorianToJulian(r.gy, 3, r.march) + (jMonth - 1) * 31 - div(jMonth, 7) * (jMonth - 7) + jDay - 1;
  6439. }
  6440. /**
  6441. * Returns the number of days in a specific jalali month.
  6442. */
  6443. function getDaysPerMonth(month, year) {
  6444. if (month <= 6) {
  6445. return 31;
  6446. }
  6447. if (month <= 11) {
  6448. return 30;
  6449. }
  6450. if (jalCal(year).leap === 0) {
  6451. return 30;
  6452. }
  6453. return 29;
  6454. }
  6455. class NgbCalendarPersian extends NgbCalendar {
  6456. getDaysPerWeek() { return 7; }
  6457. getMonths() { return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; }
  6458. getWeeksPerMonth() { return 6; }
  6459. getNext(date, period = 'd', number = 1) {
  6460. date = new NgbDate(date.year, date.month, date.day);
  6461. switch (period) {
  6462. case 'y':
  6463. date = setJalaliYear(date, date.year + number);
  6464. date.month = 1;
  6465. date.day = 1;
  6466. return date;
  6467. case 'm':
  6468. date = setJalaliMonth(date, date.month + number);
  6469. date.day = 1;
  6470. return date;
  6471. case 'd':
  6472. return setJalaliDay(date, date.day + number);
  6473. default:
  6474. return date;
  6475. }
  6476. }
  6477. getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); }
  6478. getWeekday(date) {
  6479. const day = toGregorian(date).getDay();
  6480. // in JS Date Sun=0, in ISO 8601 Sun=7
  6481. return day === 0 ? 7 : day;
  6482. }
  6483. getWeekNumber(week, firstDayOfWeek) {
  6484. // in JS Date Sun=0, in ISO 8601 Sun=7
  6485. if (firstDayOfWeek === 7) {
  6486. firstDayOfWeek = 0;
  6487. }
  6488. const thursdayIndex = (4 + 7 - firstDayOfWeek) % 7;
  6489. const date = week[thursdayIndex];
  6490. const jsDate = toGregorian(date);
  6491. jsDate.setDate(jsDate.getDate() + 4 - (jsDate.getDay() || 7)); // Thursday
  6492. const time = jsDate.getTime();
  6493. const startDate = toGregorian(new NgbDate(date.year, 1, 1));
  6494. return Math.floor(Math.round((time - startDate.getTime()) / 86400000) / 7) + 1;
  6495. }
  6496. getToday() { return fromGregorian(new Date()); }
  6497. isValid(date) {
  6498. return date != null && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) &&
  6499. !isNaN(toGregorian(date).getTime());
  6500. }
  6501. }
  6502. NgbCalendarPersian.ɵfac = function NgbCalendarPersian_Factory(t) { return ɵNgbCalendarPersian_BaseFactory(t || NgbCalendarPersian); };
  6503. NgbCalendarPersian.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbCalendarPersian, factory: NgbCalendarPersian.ɵfac });
  6504. const ɵNgbCalendarPersian_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbCalendarPersian);
  6505. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCalendarPersian, [{
  6506. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  6507. }], null, null); })();
  6508. const PARTS_PER_HOUR = 1080;
  6509. const PARTS_PER_DAY = 24 * PARTS_PER_HOUR;
  6510. const PARTS_FRACTIONAL_MONTH = 12 * PARTS_PER_HOUR + 793;
  6511. const PARTS_PER_MONTH = 29 * PARTS_PER_DAY + PARTS_FRACTIONAL_MONTH;
  6512. const BAHARAD = 11 * PARTS_PER_HOUR + 204;
  6513. const HEBREW_DAY_ON_JAN_1_1970 = 2092591;
  6514. const GREGORIAN_EPOCH$1 = 1721425.5;
  6515. function isGregorianLeapYear$1(year) {
  6516. return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
  6517. }
  6518. function numberOfFirstDayInYear(year) {
  6519. let monthsBeforeYear = Math.floor((235 * year - 234) / 19);
  6520. let fractionalMonthsBeforeYear = monthsBeforeYear * PARTS_FRACTIONAL_MONTH + BAHARAD;
  6521. let dayNumber = monthsBeforeYear * 29 + Math.floor(fractionalMonthsBeforeYear / PARTS_PER_DAY);
  6522. let timeOfDay = fractionalMonthsBeforeYear % PARTS_PER_DAY;
  6523. let dayOfWeek = dayNumber % 7; // 0 == Monday
  6524. if (dayOfWeek === 2 || dayOfWeek === 4 || dayOfWeek === 6) {
  6525. dayNumber++;
  6526. dayOfWeek = dayNumber % 7;
  6527. }
  6528. if (dayOfWeek === 1 && timeOfDay > 15 * PARTS_PER_HOUR + 204 && !isHebrewLeapYear(year)) {
  6529. dayNumber += 2;
  6530. }
  6531. else if (dayOfWeek === 0 && timeOfDay > 21 * PARTS_PER_HOUR + 589 && isHebrewLeapYear(year - 1)) {
  6532. dayNumber++;
  6533. }
  6534. return dayNumber;
  6535. }
  6536. function getDaysInGregorianMonth(month, year) {
  6537. let days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
  6538. if (isGregorianLeapYear$1(year)) {
  6539. days[1]++;
  6540. }
  6541. return days[month - 1];
  6542. }
  6543. function getHebrewMonths(year) {
  6544. return isHebrewLeapYear(year) ? 13 : 12;
  6545. }
  6546. /**
  6547. * Returns the number of days in a specific Hebrew year.
  6548. * `year` is any Hebrew year.
  6549. */
  6550. function getDaysInHebrewYear(year) {
  6551. return numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);
  6552. }
  6553. function isHebrewLeapYear(year) {
  6554. if (year != null) {
  6555. let b = (year * 12 + 17) % 19;
  6556. return b >= ((b < 0) ? -7 : 12);
  6557. }
  6558. return false;
  6559. }
  6560. /**
  6561. * Returns the number of days in a specific Hebrew month.
  6562. * `month` is 1 for Nisan, 2 for Iyar etc. Note: Hebrew leap year contains 13 months.
  6563. * `year` is any Hebrew year.
  6564. */
  6565. function getDaysInHebrewMonth(month, year) {
  6566. let yearLength = numberOfFirstDayInYear(year + 1) - numberOfFirstDayInYear(year);
  6567. let yearType = (yearLength <= 380 ? yearLength : (yearLength - 30)) - 353;
  6568. let leapYear = isHebrewLeapYear(year);
  6569. let daysInMonth = leapYear ? [30, 29, 29, 29, 30, 30, 29, 30, 29, 30, 29, 30, 29] :
  6570. [30, 29, 29, 29, 30, 29, 30, 29, 30, 29, 30, 29];
  6571. if (yearType > 0) {
  6572. daysInMonth[2]++; // Kislev gets an extra day in normal or complete years.
  6573. }
  6574. if (yearType > 1) {
  6575. daysInMonth[1]++; // Heshvan gets an extra day in complete years only.
  6576. }
  6577. return daysInMonth[month - 1];
  6578. }
  6579. function getDayNumberInHebrewYear(date) {
  6580. let numberOfDay = 0;
  6581. for (let i = 1; i < date.month; i++) {
  6582. numberOfDay += getDaysInHebrewMonth(i, date.year);
  6583. }
  6584. return numberOfDay + date.day;
  6585. }
  6586. function setHebrewMonth(date, val) {
  6587. let after = val >= 0;
  6588. if (!after) {
  6589. val = -val;
  6590. }
  6591. while (val > 0) {
  6592. if (after) {
  6593. if (val > getHebrewMonths(date.year) - date.month) {
  6594. val -= getHebrewMonths(date.year) - date.month + 1;
  6595. date.year++;
  6596. date.month = 1;
  6597. }
  6598. else {
  6599. date.month += val;
  6600. val = 0;
  6601. }
  6602. }
  6603. else {
  6604. if (val >= date.month) {
  6605. date.year--;
  6606. val -= date.month;
  6607. date.month = getHebrewMonths(date.year);
  6608. }
  6609. else {
  6610. date.month -= val;
  6611. val = 0;
  6612. }
  6613. }
  6614. }
  6615. return date;
  6616. }
  6617. function setHebrewDay(date, val) {
  6618. let after = val >= 0;
  6619. if (!after) {
  6620. val = -val;
  6621. }
  6622. while (val > 0) {
  6623. if (after) {
  6624. if (val > getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date)) {
  6625. val -= getDaysInHebrewYear(date.year) - getDayNumberInHebrewYear(date) + 1;
  6626. date.year++;
  6627. date.month = 1;
  6628. date.day = 1;
  6629. }
  6630. else if (val > getDaysInHebrewMonth(date.month, date.year) - date.day) {
  6631. val -= getDaysInHebrewMonth(date.month, date.year) - date.day + 1;
  6632. date.month++;
  6633. date.day = 1;
  6634. }
  6635. else {
  6636. date.day += val;
  6637. val = 0;
  6638. }
  6639. }
  6640. else {
  6641. if (val >= date.day) {
  6642. val -= date.day;
  6643. date.month--;
  6644. if (date.month === 0) {
  6645. date.year--;
  6646. date.month = getHebrewMonths(date.year);
  6647. }
  6648. date.day = getDaysInHebrewMonth(date.month, date.year);
  6649. }
  6650. else {
  6651. date.day -= val;
  6652. val = 0;
  6653. }
  6654. }
  6655. }
  6656. return date;
  6657. }
  6658. /**
  6659. * Returns the equivalent Hebrew date value for a give input Gregorian date.
  6660. * `gdate` is a JS Date to be converted to Hebrew date.
  6661. */
  6662. function fromGregorian$1(gdate) {
  6663. const date = new Date(gdate);
  6664. const gYear = date.getFullYear(), gMonth = date.getMonth(), gDay = date.getDate();
  6665. let julianDay = GREGORIAN_EPOCH$1 - 1 + 365 * (gYear - 1) + Math.floor((gYear - 1) / 4) -
  6666. Math.floor((gYear - 1) / 100) + Math.floor((gYear - 1) / 400) +
  6667. Math.floor((367 * (gMonth + 1) - 362) / 12 + (gMonth + 1 <= 2 ? 0 : isGregorianLeapYear$1(gYear) ? -1 : -2) + gDay);
  6668. julianDay = Math.floor(julianDay + 0.5);
  6669. let daysSinceHebEpoch = julianDay - 347997;
  6670. let monthsSinceHebEpoch = Math.floor(daysSinceHebEpoch * PARTS_PER_DAY / PARTS_PER_MONTH);
  6671. let hYear = Math.floor((monthsSinceHebEpoch * 19 + 234) / 235) + 1;
  6672. let firstDayOfThisYear = numberOfFirstDayInYear(hYear);
  6673. let dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;
  6674. while (dayOfYear < 1) {
  6675. hYear--;
  6676. firstDayOfThisYear = numberOfFirstDayInYear(hYear);
  6677. dayOfYear = daysSinceHebEpoch - firstDayOfThisYear;
  6678. }
  6679. let hMonth = 1;
  6680. let hDay = dayOfYear;
  6681. while (hDay > getDaysInHebrewMonth(hMonth, hYear)) {
  6682. hDay -= getDaysInHebrewMonth(hMonth, hYear);
  6683. hMonth++;
  6684. }
  6685. return new NgbDate(hYear, hMonth, hDay);
  6686. }
  6687. /**
  6688. * Returns the equivalent JS date value for a given Hebrew date.
  6689. * `hebrewDate` is an Hebrew date to be converted to Gregorian.
  6690. */
  6691. function toGregorian$1(hebrewDate) {
  6692. const hYear = hebrewDate.year;
  6693. const hMonth = hebrewDate.month;
  6694. const hDay = hebrewDate.day;
  6695. let days = numberOfFirstDayInYear(hYear);
  6696. for (let i = 1; i < hMonth; i++) {
  6697. days += getDaysInHebrewMonth(i, hYear);
  6698. }
  6699. days += hDay;
  6700. let diffDays = days - HEBREW_DAY_ON_JAN_1_1970;
  6701. let after = diffDays >= 0;
  6702. if (!after) {
  6703. diffDays = -diffDays;
  6704. }
  6705. let gYear = 1970;
  6706. let gMonth = 1;
  6707. let gDay = 1;
  6708. while (diffDays > 0) {
  6709. if (after) {
  6710. if (diffDays >= (isGregorianLeapYear$1(gYear) ? 366 : 365)) {
  6711. diffDays -= isGregorianLeapYear$1(gYear) ? 366 : 365;
  6712. gYear++;
  6713. }
  6714. else if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {
  6715. diffDays -= getDaysInGregorianMonth(gMonth, gYear);
  6716. gMonth++;
  6717. }
  6718. else {
  6719. gDay += diffDays;
  6720. diffDays = 0;
  6721. }
  6722. }
  6723. else {
  6724. if (diffDays >= (isGregorianLeapYear$1(gYear - 1) ? 366 : 365)) {
  6725. diffDays -= isGregorianLeapYear$1(gYear - 1) ? 366 : 365;
  6726. gYear--;
  6727. }
  6728. else {
  6729. if (gMonth > 1) {
  6730. gMonth--;
  6731. }
  6732. else {
  6733. gMonth = 12;
  6734. gYear--;
  6735. }
  6736. if (diffDays >= getDaysInGregorianMonth(gMonth, gYear)) {
  6737. diffDays -= getDaysInGregorianMonth(gMonth, gYear);
  6738. }
  6739. else {
  6740. gDay = getDaysInGregorianMonth(gMonth, gYear) - diffDays + 1;
  6741. diffDays = 0;
  6742. }
  6743. }
  6744. }
  6745. }
  6746. return new Date(gYear, gMonth - 1, gDay);
  6747. }
  6748. function hebrewNumerals(numerals) {
  6749. if (!numerals) {
  6750. return '';
  6751. }
  6752. const hArray0_9 = ['', '\u05d0', '\u05d1', '\u05d2', '\u05d3', '\u05d4', '\u05d5', '\u05d6', '\u05d7', '\u05d8'];
  6753. const hArray10_19 = [
  6754. '\u05d9', '\u05d9\u05d0', '\u05d9\u05d1', '\u05d9\u05d2', '\u05d9\u05d3', '\u05d8\u05d5', '\u05d8\u05d6',
  6755. '\u05d9\u05d6', '\u05d9\u05d7', '\u05d9\u05d8'
  6756. ];
  6757. const hArray20_90 = ['', '', '\u05db', '\u05dc', '\u05de', '\u05e0', '\u05e1', '\u05e2', '\u05e4', '\u05e6'];
  6758. const hArray100_900 = [
  6759. '', '\u05e7', '\u05e8', '\u05e9', '\u05ea', '\u05ea\u05e7', '\u05ea\u05e8', '\u05ea\u05e9', '\u05ea\u05ea',
  6760. '\u05ea\u05ea\u05e7'
  6761. ];
  6762. const hArray1000_9000 = [
  6763. '', '\u05d0', '\u05d1', '\u05d1\u05d0', '\u05d1\u05d1', '\u05d4', '\u05d4\u05d0', '\u05d4\u05d1',
  6764. '\u05d4\u05d1\u05d0', '\u05d4\u05d1\u05d1'
  6765. ];
  6766. const geresh = '\u05f3', gershaim = '\u05f4';
  6767. let mem = 0;
  6768. let result = [];
  6769. let step = 0;
  6770. while (numerals > 0) {
  6771. let m = numerals % 10;
  6772. if (step === 0) {
  6773. mem = m;
  6774. }
  6775. else if (step === 1) {
  6776. if (m !== 1) {
  6777. result.unshift(hArray20_90[m], hArray0_9[mem]);
  6778. }
  6779. else {
  6780. result.unshift(hArray10_19[mem]);
  6781. }
  6782. }
  6783. else if (step === 2) {
  6784. result.unshift(hArray100_900[m]);
  6785. }
  6786. else {
  6787. if (m !== 5) {
  6788. result.unshift(hArray1000_9000[m], geresh, ' ');
  6789. }
  6790. break;
  6791. }
  6792. numerals = Math.floor(numerals / 10);
  6793. if (step === 0 && numerals === 0) {
  6794. result.unshift(hArray0_9[m]);
  6795. }
  6796. step++;
  6797. }
  6798. result = result.join('').split('');
  6799. if (result.length === 1) {
  6800. result.push(geresh);
  6801. }
  6802. else if (result.length > 1) {
  6803. result.splice(result.length - 1, 0, gershaim);
  6804. }
  6805. return result.join('');
  6806. }
  6807. /**
  6808. * @since 3.2.0
  6809. */
  6810. class NgbCalendarHebrew extends NgbCalendar {
  6811. getDaysPerWeek() { return 7; }
  6812. getMonths(year) {
  6813. if (year && isHebrewLeapYear(year)) {
  6814. return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13];
  6815. }
  6816. else {
  6817. return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
  6818. }
  6819. }
  6820. getWeeksPerMonth() { return 6; }
  6821. isValid(date) {
  6822. if (date != null) {
  6823. let b = isNumber(date.year) && isNumber(date.month) && isNumber(date.day);
  6824. b = b && date.month > 0 && date.month <= (isHebrewLeapYear(date.year) ? 13 : 12);
  6825. b = b && date.day > 0 && date.day <= getDaysInHebrewMonth(date.month, date.year);
  6826. return b && !isNaN(toGregorian$1(date).getTime());
  6827. }
  6828. return false;
  6829. }
  6830. getNext(date, period = 'd', number = 1) {
  6831. date = new NgbDate(date.year, date.month, date.day);
  6832. switch (period) {
  6833. case 'y':
  6834. date.year += number;
  6835. date.month = 1;
  6836. date.day = 1;
  6837. return date;
  6838. case 'm':
  6839. date = setHebrewMonth(date, number);
  6840. date.day = 1;
  6841. return date;
  6842. case 'd':
  6843. return setHebrewDay(date, number);
  6844. default:
  6845. return date;
  6846. }
  6847. }
  6848. getPrev(date, period = 'd', number = 1) { return this.getNext(date, period, -number); }
  6849. getWeekday(date) {
  6850. const day = toGregorian$1(date).getDay();
  6851. // in JS Date Sun=0, in ISO 8601 Sun=7
  6852. return day === 0 ? 7 : day;
  6853. }
  6854. getWeekNumber(week, firstDayOfWeek) {
  6855. const date = week[week.length - 1];
  6856. return Math.ceil(getDayNumberInHebrewYear(date) / 7);
  6857. }
  6858. getToday() { return fromGregorian$1(new Date()); }
  6859. /**
  6860. * @since 3.4.0
  6861. */
  6862. toGregorian(date) { return fromJSDate(toGregorian$1(date)); }
  6863. /**
  6864. * @since 3.4.0
  6865. */
  6866. fromGregorian(date) { return fromGregorian$1(toJSDate(date)); }
  6867. }
  6868. NgbCalendarHebrew.ɵfac = function NgbCalendarHebrew_Factory(t) { return ɵNgbCalendarHebrew_BaseFactory(t || NgbCalendarHebrew); };
  6869. NgbCalendarHebrew.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbCalendarHebrew, factory: NgbCalendarHebrew.ɵfac });
  6870. const ɵNgbCalendarHebrew_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbCalendarHebrew);
  6871. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbCalendarHebrew, [{
  6872. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  6873. }], null, null); })();
  6874. const WEEKDAYS = ['שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת', 'ראשון'];
  6875. const MONTHS = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];
  6876. const MONTHS_LEAP = ['תשרי', 'חשון', 'כסלו', 'טבת', 'שבט', 'אדר א׳', 'אדר ב׳', 'ניסן', 'אייר', 'סיון', 'תמוז', 'אב', 'אלול'];
  6877. /**
  6878. * @since 3.2.0
  6879. */
  6880. class NgbDatepickerI18nHebrew extends NgbDatepickerI18n {
  6881. getMonthShortName(month, year) { return this.getMonthFullName(month, year); }
  6882. getMonthFullName(month, year) {
  6883. return isHebrewLeapYear(year) ? MONTHS_LEAP[month - 1] || '' : MONTHS[month - 1] || '';
  6884. }
  6885. getWeekdayShortName(weekday) { return WEEKDAYS[weekday - 1] || ''; }
  6886. getDayAriaLabel(date) {
  6887. return `${hebrewNumerals(date.day)} ${this.getMonthFullName(date.month, date.year)} ${hebrewNumerals(date.year)}`;
  6888. }
  6889. getDayNumerals(date) { return hebrewNumerals(date.day); }
  6890. getWeekNumerals(weekNumber) { return hebrewNumerals(weekNumber); }
  6891. getYearNumerals(year) { return hebrewNumerals(year); }
  6892. }
  6893. NgbDatepickerI18nHebrew.ɵfac = function NgbDatepickerI18nHebrew_Factory(t) { return ɵNgbDatepickerI18nHebrew_BaseFactory(t || NgbDatepickerI18nHebrew); };
  6894. NgbDatepickerI18nHebrew.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbDatepickerI18nHebrew, factory: NgbDatepickerI18nHebrew.ɵfac });
  6895. const ɵNgbDatepickerI18nHebrew_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbDatepickerI18nHebrew);
  6896. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerI18nHebrew, [{
  6897. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  6898. }], null, null); })();
  6899. /**
  6900. * [`NgbDateAdapter`](#/components/datepicker/api#NgbDateAdapter) implementation that uses
  6901. * native javascript dates as a user date model.
  6902. */
  6903. class NgbDateNativeAdapter extends NgbDateAdapter {
  6904. /**
  6905. * Converts a native `Date` to a `NgbDateStruct`.
  6906. */
  6907. fromModel(date) {
  6908. return (date instanceof Date && !isNaN(date.getTime())) ? this._fromNativeDate(date) : null;
  6909. }
  6910. /**
  6911. * Converts a `NgbDateStruct` to a native `Date`.
  6912. */
  6913. toModel(date) {
  6914. return date && isInteger(date.year) && isInteger(date.month) && isInteger(date.day) ? this._toNativeDate(date) :
  6915. null;
  6916. }
  6917. _fromNativeDate(date) {
  6918. return { year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate() };
  6919. }
  6920. _toNativeDate(date) {
  6921. const jsDate = new Date(date.year, date.month - 1, date.day, 12);
  6922. // avoid 30 -> 1930 conversion
  6923. jsDate.setFullYear(date.year);
  6924. return jsDate;
  6925. }
  6926. }
  6927. NgbDateNativeAdapter.ɵfac = function NgbDateNativeAdapter_Factory(t) { return ɵNgbDateNativeAdapter_BaseFactory(t || NgbDateNativeAdapter); };
  6928. NgbDateNativeAdapter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbDateNativeAdapter, factory: NgbDateNativeAdapter.ɵfac });
  6929. const ɵNgbDateNativeAdapter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbDateNativeAdapter);
  6930. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDateNativeAdapter, [{
  6931. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  6932. }], null, null); })();
  6933. /**
  6934. * Same as [`NgbDateNativeAdapter`](#/components/datepicker/api#NgbDateNativeAdapter), but with UTC dates.
  6935. *
  6936. * @since 3.2.0
  6937. */
  6938. class NgbDateNativeUTCAdapter extends NgbDateNativeAdapter {
  6939. _fromNativeDate(date) {
  6940. return { year: date.getUTCFullYear(), month: date.getUTCMonth() + 1, day: date.getUTCDate() };
  6941. }
  6942. _toNativeDate(date) {
  6943. const jsDate = new Date(Date.UTC(date.year, date.month - 1, date.day));
  6944. // avoid 30 -> 1930 conversion
  6945. jsDate.setUTCFullYear(date.year);
  6946. return jsDate;
  6947. }
  6948. }
  6949. NgbDateNativeUTCAdapter.ɵfac = function NgbDateNativeUTCAdapter_Factory(t) { return ɵNgbDateNativeUTCAdapter_BaseFactory(t || NgbDateNativeUTCAdapter); };
  6950. NgbDateNativeUTCAdapter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbDateNativeUTCAdapter, factory: NgbDateNativeUTCAdapter.ɵfac });
  6951. const ɵNgbDateNativeUTCAdapter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbDateNativeUTCAdapter);
  6952. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDateNativeUTCAdapter, [{
  6953. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  6954. }], null, null); })();
  6955. class NgbDatepickerModule {
  6956. }
  6957. NgbDatepickerModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbDatepickerModule });
  6958. NgbDatepickerModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbDatepickerModule_Factory(t) { return new (t || NgbDatepickerModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"]]] });
  6959. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbDatepickerModule, { declarations: function () { return [NgbDatepicker, NgbDatepickerContent, NgbDatepickerMonth, NgbDatepickerNavigation, NgbDatepickerNavigationSelect, NgbDatepickerDayView, NgbInputDatepicker]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"]]; }, exports: function () { return [NgbDatepicker, NgbDatepickerContent, NgbInputDatepicker, NgbDatepickerMonth]; } }); })();
  6960. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDatepickerModule, [{
  6961. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  6962. args: [{
  6963. declarations: [
  6964. NgbDatepicker, NgbDatepickerContent, NgbDatepickerMonth, NgbDatepickerNavigation, NgbDatepickerNavigationSelect,
  6965. NgbDatepickerDayView, NgbInputDatepicker
  6966. ],
  6967. exports: [NgbDatepicker, NgbDatepickerContent, NgbInputDatepicker, NgbDatepickerMonth],
  6968. imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormsModule"]],
  6969. entryComponents: [NgbDatepicker]
  6970. }]
  6971. }], null, null); })();
  6972. /**
  6973. * A configuration service for the [`NgbDropdown`](#/components/dropdown/api#NgbDropdown) component.
  6974. *
  6975. * You can inject this service, typically in your root component, and customize the values of its properties in
  6976. * order to provide default values for all the dropdowns used in the application.
  6977. */
  6978. class NgbDropdownConfig {
  6979. constructor() {
  6980. this.autoClose = true;
  6981. this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];
  6982. }
  6983. }
  6984. NgbDropdownConfig.ɵfac = function NgbDropdownConfig_Factory(t) { return new (t || NgbDropdownConfig)(); };
  6985. NgbDropdownConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbDropdownConfig_Factory() { return new NgbDropdownConfig(); }, token: NgbDropdownConfig, providedIn: "root" });
  6986. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDropdownConfig, [{
  6987. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  6988. args: [{ providedIn: 'root' }]
  6989. }], function () { return []; }, null); })();
  6990. class NgbNavbar {
  6991. }
  6992. NgbNavbar.ɵfac = function NgbNavbar_Factory(t) { return new (t || NgbNavbar)(); };
  6993. NgbNavbar.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbNavbar, selectors: [["", 8, "navbar"]] });
  6994. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNavbar, [{
  6995. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  6996. args: [{ selector: '.navbar' }]
  6997. }], null, null); })();
  6998. /**
  6999. * A directive you should put on a dropdown item to enable keyboard navigation.
  7000. * Arrow keys will move focus between items marked with this directive.
  7001. *
  7002. * @since 4.1.0
  7003. */
  7004. class NgbDropdownItem {
  7005. constructor(elementRef) {
  7006. this.elementRef = elementRef;
  7007. this._disabled = false;
  7008. }
  7009. set disabled(value) {
  7010. this._disabled = value === '' || value === true; // accept an empty attribute as true
  7011. }
  7012. get disabled() { return this._disabled; }
  7013. }
  7014. NgbDropdownItem.ɵfac = function NgbDropdownItem_Factory(t) { return new (t || NgbDropdownItem)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  7015. NgbDropdownItem.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbDropdownItem, selectors: [["", "ngbDropdownItem", ""]], hostAttrs: [1, "dropdown-item"], hostVars: 2, hostBindings: function NgbDropdownItem_HostBindings(rf, ctx) { if (rf & 2) {
  7016. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", ctx.disabled);
  7017. } }, inputs: { disabled: "disabled" } });
  7018. NgbDropdownItem.ctorParameters = () => [
  7019. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  7020. ];
  7021. NgbDropdownItem.propDecorators = {
  7022. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  7023. };
  7024. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDropdownItem, [{
  7025. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  7026. args: [{ selector: '[ngbDropdownItem]', host: { 'class': 'dropdown-item', '[class.disabled]': 'disabled' } }]
  7027. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { disabled: [{
  7028. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  7029. }] }); })();
  7030. /**
  7031. * A directive that wraps dropdown menu content and dropdown items.
  7032. */
  7033. class NgbDropdownMenu {
  7034. constructor(dropdown, _elementRef) {
  7035. this.dropdown = dropdown;
  7036. this.placement = 'bottom';
  7037. this.isOpen = false;
  7038. this.nativeElement = _elementRef.nativeElement;
  7039. }
  7040. }
  7041. NgbDropdownMenu.ɵfac = function NgbDropdownMenu_Factory(t) { return new (t || NgbDropdownMenu)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  7042. NgbDropdownMenu.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbDropdownMenu, selectors: [["", "ngbDropdownMenu", ""]], contentQueries: function NgbDropdownMenu_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  7043. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbDropdownItem, false);
  7044. } if (rf & 2) {
  7045. let _t;
  7046. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.menuItems = _t);
  7047. } }, hostVars: 5, hostBindings: function NgbDropdownMenu_HostBindings(rf, ctx) { if (rf & 1) {
  7048. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown.ArrowUp", function NgbDropdownMenu_keydown_ArrowUp_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.ArrowDown", function NgbDropdownMenu_keydown_ArrowDown_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.Home", function NgbDropdownMenu_keydown_Home_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.End", function NgbDropdownMenu_keydown_End_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.Enter", function NgbDropdownMenu_keydown_Enter_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.Space", function NgbDropdownMenu_keydown_Space_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.Tab", function NgbDropdownMenu_keydown_Tab_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.Shift.Tab", function NgbDropdownMenu_keydown_Shift_Tab_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); });
  7049. } if (rf & 2) {
  7050. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("x-placement", ctx.placement);
  7051. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("dropdown-menu", true)("show", ctx.dropdown.isOpen());
  7052. } } });
  7053. NgbDropdownMenu.ctorParameters = () => [
  7054. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown),] }] },
  7055. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  7056. ];
  7057. NgbDropdownMenu.propDecorators = {
  7058. menuItems: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgbDropdownItem,] }]
  7059. };
  7060. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDropdownMenu, [{
  7061. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  7062. args: [{
  7063. selector: '[ngbDropdownMenu]',
  7064. host: {
  7065. '[class.dropdown-menu]': 'true',
  7066. '[class.show]': 'dropdown.isOpen()',
  7067. '[attr.x-placement]': 'placement',
  7068. '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',
  7069. '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',
  7070. '(keydown.Home)': 'dropdown.onKeyDown($event)',
  7071. '(keydown.End)': 'dropdown.onKeyDown($event)',
  7072. '(keydown.Enter)': 'dropdown.onKeyDown($event)',
  7073. '(keydown.Space)': 'dropdown.onKeyDown($event)',
  7074. '(keydown.Tab)': 'dropdown.onKeyDown($event)',
  7075. '(keydown.Shift.Tab)': 'dropdown.onKeyDown($event)'
  7076. }
  7077. }]
  7078. }], function () { return [{ type: undefined, decorators: [{
  7079. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  7080. args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown)]
  7081. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { menuItems: [{
  7082. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  7083. args: [NgbDropdownItem]
  7084. }] }); })();
  7085. /**
  7086. * A directive to mark an element to which dropdown menu will be anchored.
  7087. *
  7088. * This is a simple version of the `NgbDropdownToggle` directive.
  7089. * It plays the same role, but doesn't listen to click events to toggle dropdown menu thus enabling support
  7090. * for events other than click.
  7091. *
  7092. * @since 1.1.0
  7093. */
  7094. class NgbDropdownAnchor {
  7095. constructor(dropdown, _elementRef) {
  7096. this.dropdown = dropdown;
  7097. this.nativeElement = _elementRef.nativeElement;
  7098. }
  7099. }
  7100. NgbDropdownAnchor.ɵfac = function NgbDropdownAnchor_Factory(t) { return new (t || NgbDropdownAnchor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  7101. NgbDropdownAnchor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbDropdownAnchor, selectors: [["", "ngbDropdownAnchor", ""]], hostAttrs: [1, "dropdown-toggle"], hostVars: 1, hostBindings: function NgbDropdownAnchor_HostBindings(rf, ctx) { if (rf & 2) {
  7102. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", ctx.dropdown.isOpen());
  7103. } } });
  7104. NgbDropdownAnchor.ctorParameters = () => [
  7105. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown),] }] },
  7106. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  7107. ];
  7108. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDropdownAnchor, [{
  7109. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  7110. args: [{ selector: '[ngbDropdownAnchor]', host: { 'class': 'dropdown-toggle', '[attr.aria-expanded]': 'dropdown.isOpen()' } }]
  7111. }], function () { return [{ type: undefined, decorators: [{
  7112. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  7113. args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown)]
  7114. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, null); })();
  7115. /**
  7116. * A directive to mark an element that will toggle dropdown via the `click` event.
  7117. *
  7118. * You can also use `NgbDropdownAnchor` as an alternative.
  7119. */
  7120. class NgbDropdownToggle extends NgbDropdownAnchor {
  7121. constructor(dropdown, elementRef) {
  7122. super(dropdown, elementRef);
  7123. }
  7124. }
  7125. NgbDropdownToggle.ɵfac = function NgbDropdownToggle_Factory(t) { return new (t || NgbDropdownToggle)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  7126. NgbDropdownToggle.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbDropdownToggle, selectors: [["", "ngbDropdownToggle", ""]], hostAttrs: [1, "dropdown-toggle"], hostVars: 1, hostBindings: function NgbDropdownToggle_HostBindings(rf, ctx) { if (rf & 1) {
  7127. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbDropdownToggle_click_HostBindingHandler() { return ctx.dropdown.toggle(); })("keydown.ArrowUp", function NgbDropdownToggle_keydown_ArrowUp_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.ArrowDown", function NgbDropdownToggle_keydown_ArrowDown_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.Home", function NgbDropdownToggle_keydown_Home_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.End", function NgbDropdownToggle_keydown_End_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.Tab", function NgbDropdownToggle_keydown_Tab_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); })("keydown.Shift.Tab", function NgbDropdownToggle_keydown_Shift_Tab_HostBindingHandler($event) { return ctx.dropdown.onKeyDown($event); });
  7128. } if (rf & 2) {
  7129. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-expanded", ctx.dropdown.isOpen());
  7130. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{ provide: NgbDropdownAnchor, useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdownToggle) }]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  7131. NgbDropdownToggle.ctorParameters = () => [
  7132. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown),] }] },
  7133. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  7134. ];
  7135. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDropdownToggle, [{
  7136. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  7137. args: [{
  7138. selector: '[ngbDropdownToggle]',
  7139. host: {
  7140. 'class': 'dropdown-toggle',
  7141. '[attr.aria-expanded]': 'dropdown.isOpen()',
  7142. '(click)': 'dropdown.toggle()',
  7143. '(keydown.ArrowUp)': 'dropdown.onKeyDown($event)',
  7144. '(keydown.ArrowDown)': 'dropdown.onKeyDown($event)',
  7145. '(keydown.Home)': 'dropdown.onKeyDown($event)',
  7146. '(keydown.End)': 'dropdown.onKeyDown($event)',
  7147. '(keydown.Tab)': 'dropdown.onKeyDown($event)',
  7148. '(keydown.Shift.Tab)': 'dropdown.onKeyDown($event)'
  7149. },
  7150. providers: [{ provide: NgbDropdownAnchor, useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdownToggle) }]
  7151. }]
  7152. }], function () { return [{ type: undefined, decorators: [{
  7153. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  7154. args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbDropdown)]
  7155. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, null); })();
  7156. /**
  7157. * A directive that provides contextual overlays for displaying lists of links and more.
  7158. */
  7159. class NgbDropdown {
  7160. constructor(_changeDetector, config, _document, _ngZone, _elementRef, _renderer, ngbNavbar) {
  7161. this._changeDetector = _changeDetector;
  7162. this._document = _document;
  7163. this._ngZone = _ngZone;
  7164. this._elementRef = _elementRef;
  7165. this._renderer = _renderer;
  7166. this._closed$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  7167. this._bodyContainer = null;
  7168. /**
  7169. * Defines whether or not the dropdown menu is opened initially.
  7170. */
  7171. this._open = false;
  7172. /**
  7173. * An event fired when the dropdown is opened or closed.
  7174. *
  7175. * The event payload is a `boolean`:
  7176. * * `true` - the dropdown was opened
  7177. * * `false` - the dropdown was closed
  7178. */
  7179. this.openChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  7180. this.placement = config.placement;
  7181. this.container = config.container;
  7182. this.autoClose = config.autoClose;
  7183. this.display = ngbNavbar ? 'static' : 'dynamic';
  7184. this._zoneSubscription = _ngZone.onStable.subscribe(() => { this._positionMenu(); });
  7185. }
  7186. ngAfterContentInit() {
  7187. this._ngZone.onStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)).subscribe(() => {
  7188. this._applyPlacementClasses();
  7189. if (this._open) {
  7190. this._setCloseHandlers();
  7191. }
  7192. });
  7193. }
  7194. ngOnChanges(changes) {
  7195. if (changes.container && this._open) {
  7196. this._applyContainer(this.container);
  7197. }
  7198. if (changes.placement && !changes.placement.isFirstChange) {
  7199. this._applyPlacementClasses();
  7200. }
  7201. }
  7202. /**
  7203. * Checks if the dropdown menu is open.
  7204. */
  7205. isOpen() { return this._open; }
  7206. /**
  7207. * Opens the dropdown menu.
  7208. */
  7209. open() {
  7210. if (!this._open) {
  7211. this._open = true;
  7212. this._applyContainer(this.container);
  7213. this.openChange.emit(true);
  7214. this._setCloseHandlers();
  7215. if (this._anchor) {
  7216. this._anchor.nativeElement.focus();
  7217. }
  7218. }
  7219. }
  7220. _setCloseHandlers() {
  7221. ngbAutoClose(this._ngZone, this._document, this.autoClose, (source) => {
  7222. this.close();
  7223. if (source === 0 /* ESCAPE */) {
  7224. this._anchor.nativeElement.focus();
  7225. }
  7226. }, this._closed$, this._menu ? [this._menu.nativeElement] : [], this._anchor ? [this._anchor.nativeElement] : [], '.dropdown-item,.dropdown-divider');
  7227. }
  7228. /**
  7229. * Closes the dropdown menu.
  7230. */
  7231. close() {
  7232. if (this._open) {
  7233. this._open = false;
  7234. this._resetContainer();
  7235. this._closed$.next();
  7236. this.openChange.emit(false);
  7237. this._changeDetector.markForCheck();
  7238. }
  7239. }
  7240. /**
  7241. * Toggles the dropdown menu.
  7242. */
  7243. toggle() {
  7244. if (this.isOpen()) {
  7245. this.close();
  7246. }
  7247. else {
  7248. this.open();
  7249. }
  7250. }
  7251. ngOnDestroy() {
  7252. this._resetContainer();
  7253. this._closed$.next();
  7254. this._zoneSubscription.unsubscribe();
  7255. }
  7256. onKeyDown(event) {
  7257. // tslint:disable-next-line:deprecation
  7258. const key = event.which;
  7259. const itemElements = this._getMenuElements();
  7260. let position = -1;
  7261. let itemElement = null;
  7262. const isEventFromToggle = this._isEventFromToggle(event);
  7263. if (!isEventFromToggle && itemElements.length) {
  7264. itemElements.forEach((item, index) => {
  7265. if (item.contains(event.target)) {
  7266. itemElement = item;
  7267. }
  7268. if (item === this._document.activeElement) {
  7269. position = index;
  7270. }
  7271. });
  7272. }
  7273. // closing on Enter / Space
  7274. if (key === Key.Space || key === Key.Enter) {
  7275. if (itemElement && (this.autoClose === true || this.autoClose === 'inside')) {
  7276. // Item is either a button or a link, so click will be triggered by the browser on Enter or Space.
  7277. // So we have to register a one-time click handler that will fire after any user defined click handlers
  7278. // to close the dropdown
  7279. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(itemElement, 'click').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)).subscribe(() => this.close());
  7280. }
  7281. return;
  7282. }
  7283. if (key === Key.Tab) {
  7284. if (event.target && this.isOpen() && this.autoClose) {
  7285. if (this._anchor.nativeElement === event.target) {
  7286. if (this.container === 'body' && !event.shiftKey) {
  7287. /* This case is special: user is using [Tab] from the anchor/toggle.
  7288. User expects the next focusable element in the dropdown menu to get focus.
  7289. But the menu is not a sibling to anchor/toggle, it is at the end of the body.
  7290. Trick is to synchronously focus the menu element, and let the [keydown.Tab] go
  7291. so that browser will focus the proper element (first one focusable in the menu) */
  7292. this._renderer.setAttribute(this._menu.nativeElement, 'tabindex', '0');
  7293. this._menu.nativeElement.focus();
  7294. this._renderer.removeAttribute(this._menu.nativeElement, 'tabindex');
  7295. }
  7296. else if (event.shiftKey) {
  7297. this.close();
  7298. }
  7299. return;
  7300. }
  7301. else if (this.container === 'body') {
  7302. const focusableElements = this._menu.nativeElement.querySelectorAll(FOCUSABLE_ELEMENTS_SELECTOR);
  7303. if (event.shiftKey && event.target === focusableElements[0]) {
  7304. this._anchor.nativeElement.focus();
  7305. event.preventDefault();
  7306. }
  7307. else if (!event.shiftKey && event.target === focusableElements[focusableElements.length - 1]) {
  7308. this._anchor.nativeElement.focus();
  7309. this.close();
  7310. }
  7311. }
  7312. else {
  7313. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(event.target, 'focusout').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)).subscribe(({ relatedTarget }) => {
  7314. if (!this._elementRef.nativeElement.contains(relatedTarget)) {
  7315. this.close();
  7316. }
  7317. });
  7318. }
  7319. }
  7320. return;
  7321. }
  7322. // opening / navigating
  7323. if (isEventFromToggle || itemElement) {
  7324. this.open();
  7325. if (itemElements.length) {
  7326. switch (key) {
  7327. case Key.ArrowDown:
  7328. position = Math.min(position + 1, itemElements.length - 1);
  7329. break;
  7330. case Key.ArrowUp:
  7331. if (this._isDropup() && position === -1) {
  7332. position = itemElements.length - 1;
  7333. break;
  7334. }
  7335. position = Math.max(position - 1, 0);
  7336. break;
  7337. case Key.Home:
  7338. position = 0;
  7339. break;
  7340. case Key.End:
  7341. position = itemElements.length - 1;
  7342. break;
  7343. }
  7344. itemElements[position].focus();
  7345. }
  7346. event.preventDefault();
  7347. }
  7348. }
  7349. _isDropup() { return this._elementRef.nativeElement.classList.contains('dropup'); }
  7350. _isEventFromToggle(event) {
  7351. return this._anchor.nativeElement.contains(event.target);
  7352. }
  7353. _getMenuElements() {
  7354. const menu = this._menu;
  7355. if (menu == null) {
  7356. return [];
  7357. }
  7358. return menu.menuItems.filter(item => !item.disabled).map(item => item.elementRef.nativeElement);
  7359. }
  7360. _positionMenu() {
  7361. const menu = this._menu;
  7362. if (this.isOpen() && menu) {
  7363. this._applyPlacementClasses(this.display === 'dynamic' ? positionElements(this._anchor.nativeElement, this._bodyContainer || this._menu.nativeElement, this.placement, this.container === 'body') :
  7364. this._getFirstPlacement(this.placement));
  7365. }
  7366. }
  7367. _getFirstPlacement(placement) {
  7368. return Array.isArray(placement) ? placement[0] : placement.split(' ')[0];
  7369. }
  7370. _resetContainer() {
  7371. const renderer = this._renderer;
  7372. if (this._menu) {
  7373. const dropdownElement = this._elementRef.nativeElement;
  7374. const dropdownMenuElement = this._menu.nativeElement;
  7375. renderer.appendChild(dropdownElement, dropdownMenuElement);
  7376. renderer.removeStyle(dropdownMenuElement, 'position');
  7377. renderer.removeStyle(dropdownMenuElement, 'transform');
  7378. }
  7379. if (this._bodyContainer) {
  7380. renderer.removeChild(this._document.body, this._bodyContainer);
  7381. this._bodyContainer = null;
  7382. }
  7383. }
  7384. _applyContainer(container = null) {
  7385. this._resetContainer();
  7386. if (container === 'body') {
  7387. const renderer = this._renderer;
  7388. const dropdownMenuElement = this._menu.nativeElement;
  7389. const bodyContainer = this._bodyContainer = this._bodyContainer || renderer.createElement('div');
  7390. // Override some styles to have the positionning working
  7391. renderer.setStyle(bodyContainer, 'position', 'absolute');
  7392. renderer.setStyle(dropdownMenuElement, 'position', 'static');
  7393. renderer.setStyle(bodyContainer, 'z-index', '1050');
  7394. renderer.appendChild(bodyContainer, dropdownMenuElement);
  7395. renderer.appendChild(this._document.body, bodyContainer);
  7396. }
  7397. }
  7398. _applyPlacementClasses(placement) {
  7399. const menu = this._menu;
  7400. if (menu) {
  7401. if (!placement) {
  7402. placement = this._getFirstPlacement(this.placement);
  7403. }
  7404. const renderer = this._renderer;
  7405. const dropdownElement = this._elementRef.nativeElement;
  7406. // remove the current placement classes
  7407. renderer.removeClass(dropdownElement, 'dropup');
  7408. renderer.removeClass(dropdownElement, 'dropdown');
  7409. menu.placement = this.display === 'static' ? null : placement;
  7410. /*
  7411. * apply the new placement
  7412. * in case of top use up-arrow or down-arrow otherwise
  7413. */
  7414. const dropdownClass = placement.search('^top') !== -1 ? 'dropup' : 'dropdown';
  7415. renderer.addClass(dropdownElement, dropdownClass);
  7416. const bodyContainer = this._bodyContainer;
  7417. if (bodyContainer) {
  7418. renderer.removeClass(bodyContainer, 'dropup');
  7419. renderer.removeClass(bodyContainer, 'dropdown');
  7420. renderer.addClass(bodyContainer, dropdownClass);
  7421. }
  7422. }
  7423. }
  7424. }
  7425. NgbDropdown.ɵfac = function NgbDropdown_Factory(t) { return new (t || NgbDropdown)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbDropdownConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbNavbar, 8)); };
  7426. NgbDropdown.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbDropdown, selectors: [["", "ngbDropdown", ""]], contentQueries: function NgbDropdown_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  7427. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbDropdownMenu, true);
  7428. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbDropdownAnchor, true);
  7429. } if (rf & 2) {
  7430. let _t;
  7431. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._menu = _t.first);
  7432. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._anchor = _t.first);
  7433. } }, hostVars: 2, hostBindings: function NgbDropdown_HostBindings(rf, ctx) { if (rf & 2) {
  7434. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("show", ctx.isOpen());
  7435. } }, inputs: { _open: ["open", "_open"], placement: "placement", container: "container", autoClose: "autoClose", display: "display" }, outputs: { openChange: "openChange" }, exportAs: ["ngbDropdown"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  7436. NgbDropdown.ctorParameters = () => [
  7437. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  7438. { type: NgbDropdownConfig },
  7439. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] },
  7440. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  7441. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  7442. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  7443. { type: NgbNavbar, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] }
  7444. ];
  7445. NgbDropdown.propDecorators = {
  7446. _menu: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbDropdownMenu, { static: false },] }],
  7447. _anchor: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbDropdownAnchor, { static: false },] }],
  7448. autoClose: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  7449. _open: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['open',] }],
  7450. placement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  7451. container: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  7452. display: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  7453. openChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  7454. };
  7455. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDropdown, [{
  7456. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  7457. args: [{ selector: '[ngbDropdown]', exportAs: 'ngbDropdown', host: { '[class.show]': 'isOpen()' } }]
  7458. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: NgbDropdownConfig }, { type: undefined, decorators: [{
  7459. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  7460. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  7461. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: NgbNavbar, decorators: [{
  7462. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  7463. }] }]; }, { _open: [{
  7464. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  7465. args: ['open']
  7466. }], openChange: [{
  7467. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  7468. }], placement: [{
  7469. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  7470. }], container: [{
  7471. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  7472. }], autoClose: [{
  7473. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  7474. }], display: [{
  7475. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  7476. }], _menu: [{
  7477. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  7478. args: [NgbDropdownMenu, { static: false }]
  7479. }], _anchor: [{
  7480. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  7481. args: [NgbDropdownAnchor, { static: false }]
  7482. }] }); })();
  7483. const NGB_DROPDOWN_DIRECTIVES = [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar];
  7484. class NgbDropdownModule {
  7485. }
  7486. NgbDropdownModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbDropdownModule });
  7487. NgbDropdownModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbDropdownModule_Factory(t) { return new (t || NgbDropdownModule)(); } });
  7488. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbDropdownModule, { declarations: [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar], exports: [NgbDropdown, NgbDropdownAnchor, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNavbar] }); })();
  7489. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbDropdownModule, [{
  7490. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  7491. args: [{ declarations: NGB_DROPDOWN_DIRECTIVES, exports: NGB_DROPDOWN_DIRECTIVES }]
  7492. }], null, null); })();
  7493. /**
  7494. * A configuration service for the [`NgbModal`](#/components/modal/api#NgbModal) service.
  7495. *
  7496. * You can inject this service, typically in your root component, and customize the values of its properties in
  7497. * order to provide default values for all modals used in the application.
  7498. *
  7499. * @since 3.1.0
  7500. */
  7501. class NgbModalConfig {
  7502. constructor(ngbConfig) {
  7503. this.backdrop = true;
  7504. this.keyboard = true;
  7505. this.animation = ngbConfig.animation;
  7506. }
  7507. }
  7508. NgbModalConfig.ɵfac = function NgbModalConfig_Factory(t) { return new (t || NgbModalConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  7509. NgbModalConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbModalConfig_Factory() { return new NgbModalConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbModalConfig, providedIn: "root" });
  7510. NgbModalConfig.ctorParameters = () => [
  7511. { type: NgbConfig }
  7512. ];
  7513. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbModalConfig, [{
  7514. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  7515. args: [{ providedIn: 'root' }]
  7516. }], function () { return [{ type: NgbConfig }]; }, null); })();
  7517. class ContentRef {
  7518. constructor(nodes, viewRef, componentRef) {
  7519. this.nodes = nodes;
  7520. this.viewRef = viewRef;
  7521. this.componentRef = componentRef;
  7522. }
  7523. }
  7524. class PopupService {
  7525. constructor(_type, _injector, _viewContainerRef, _renderer, _ngZone, _componentFactoryResolver, _applicationRef) {
  7526. this._type = _type;
  7527. this._injector = _injector;
  7528. this._viewContainerRef = _viewContainerRef;
  7529. this._renderer = _renderer;
  7530. this._ngZone = _ngZone;
  7531. this._componentFactoryResolver = _componentFactoryResolver;
  7532. this._applicationRef = _applicationRef;
  7533. this._windowRef = null;
  7534. this._contentRef = null;
  7535. }
  7536. open(content, context, animation = false) {
  7537. if (!this._windowRef) {
  7538. this._contentRef = this._getContentRef(content, context);
  7539. this._windowRef = this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type), this._viewContainerRef.length, this._injector, this._contentRef.nodes);
  7540. }
  7541. const { nativeElement } = this._windowRef.location;
  7542. const onStable$ = this._ngZone.onStable.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1));
  7543. const transition$ = onStable$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(() => ngbRunTransition(nativeElement, ({ classList }) => classList.add('show'), { animation, runningTransition: 'continue' })));
  7544. return { windowRef: this._windowRef, transition$ };
  7545. }
  7546. close(animation = false) {
  7547. if (!this._windowRef) {
  7548. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(undefined);
  7549. }
  7550. return ngbRunTransition(this._windowRef.location.nativeElement, ({ classList }) => classList.remove('show'), { animation, runningTransition: 'stop' })
  7551. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(() => {
  7552. var _a;
  7553. if (this._windowRef) {
  7554. // this is required because of the container='body' option
  7555. this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView));
  7556. this._windowRef = null;
  7557. }
  7558. if ((_a = this._contentRef) === null || _a === void 0 ? void 0 : _a.viewRef) {
  7559. this._applicationRef.detachView(this._contentRef.viewRef);
  7560. this._contentRef.viewRef.destroy();
  7561. this._contentRef = null;
  7562. }
  7563. }));
  7564. }
  7565. _getContentRef(content, context) {
  7566. if (!content) {
  7567. return new ContentRef([]);
  7568. }
  7569. else if (content instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) {
  7570. const viewRef = content.createEmbeddedView(context);
  7571. this._applicationRef.attachView(viewRef);
  7572. return new ContentRef([viewRef.rootNodes], viewRef);
  7573. }
  7574. else {
  7575. return new ContentRef([[this._renderer.createText(`${content}`)]]);
  7576. }
  7577. }
  7578. }
  7579. const noop = () => { };
  7580. const ɵ0$3 = noop;
  7581. /**
  7582. * Utility to handle the scrollbar.
  7583. *
  7584. * It allows to compensate the lack of a vertical scrollbar by adding an
  7585. * equivalent padding on the right of the body, and to remove this compensation.
  7586. */
  7587. class ScrollBar {
  7588. constructor(_document) {
  7589. this._document = _document;
  7590. }
  7591. /**
  7592. * To be called right before a potential vertical scrollbar would be removed:
  7593. *
  7594. * - if there was a scrollbar, adds some compensation padding to the body
  7595. * to keep the same layout as when the scrollbar is there
  7596. * - if there was none, there is nothing to do
  7597. *
  7598. * @return a callback used to revert the compensation (noop if there was none,
  7599. * otherwise a function removing the padding)
  7600. */
  7601. compensate() {
  7602. const width = this._getWidth();
  7603. return !this._isPresent(width) ? noop : this._adjustBody(width);
  7604. }
  7605. /**
  7606. * Adds a padding of the given width on the right of the body.
  7607. *
  7608. * @return a callback used to revert the padding to its previous value
  7609. */
  7610. _adjustBody(scrollbarWidth) {
  7611. const body = this._document.body;
  7612. const userSetPaddingStyle = body.style.paddingRight;
  7613. const actualPadding = parseFloat(window.getComputedStyle(body)['padding-right']);
  7614. body.style['padding-right'] = `${actualPadding + scrollbarWidth}px`;
  7615. return () => body.style['padding-right'] = userSetPaddingStyle;
  7616. }
  7617. /**
  7618. * Tells whether a scrollbar is currently present on the body.
  7619. *
  7620. * @return true if scrollbar is present, false otherwise
  7621. */
  7622. _isPresent(scrollbarWidth) {
  7623. const rect = this._document.body.getBoundingClientRect();
  7624. const bodyToViewportGap = window.innerWidth - (rect.left + rect.right);
  7625. const uncertainty = 0.1 * scrollbarWidth;
  7626. return bodyToViewportGap >= scrollbarWidth - uncertainty;
  7627. }
  7628. /**
  7629. * Calculates and returns the width of a scrollbar.
  7630. *
  7631. * @return the width of a scrollbar on this page
  7632. */
  7633. _getWidth() {
  7634. const measurer = this._document.createElement('div');
  7635. measurer.className = 'modal-scrollbar-measure';
  7636. const body = this._document.body;
  7637. body.appendChild(measurer);
  7638. const width = measurer.getBoundingClientRect().width - measurer.clientWidth;
  7639. body.removeChild(measurer);
  7640. return width;
  7641. }
  7642. }
  7643. ScrollBar.ɵfac = function ScrollBar_Factory(t) { return new (t || ScrollBar)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"])); };
  7644. ScrollBar.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function ScrollBar_Factory() { return new ScrollBar(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"])); }, token: ScrollBar, providedIn: "root" });
  7645. ScrollBar.ctorParameters = () => [
  7646. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] }
  7647. ];
  7648. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ScrollBar, [{
  7649. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  7650. args: [{ providedIn: 'root' }]
  7651. }], function () { return [{ type: undefined, decorators: [{
  7652. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  7653. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  7654. }] }]; }, null); })();
  7655. class NgbModalBackdrop {
  7656. constructor(_el, _zone) {
  7657. this._el = _el;
  7658. this._zone = _zone;
  7659. }
  7660. ngOnInit() {
  7661. this._zone.onStable.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)).subscribe(() => {
  7662. ngbRunTransition(this._el.nativeElement, ({ classList }) => classList.add('show'), { animation: this.animation, runningTransition: 'continue' });
  7663. });
  7664. }
  7665. hide() {
  7666. return ngbRunTransition(this._el.nativeElement, ({ classList }) => classList.remove('show'), { animation: this.animation, runningTransition: 'stop' });
  7667. }
  7668. }
  7669. NgbModalBackdrop.ɵfac = function NgbModalBackdrop_Factory(t) { return new (t || NgbModalBackdrop)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  7670. NgbModalBackdrop.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbModalBackdrop, selectors: [["ngb-modal-backdrop"]], hostAttrs: [2, "z-index", "1050"], hostVars: 6, hostBindings: function NgbModalBackdrop_HostBindings(rf, ctx) { if (rf & 2) {
  7671. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("modal-backdrop" + (ctx.backdropClass ? " " + ctx.backdropClass : ""));
  7672. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("show", !ctx.animation)("fade", ctx.animation);
  7673. } }, inputs: { animation: "animation", backdropClass: "backdropClass" }, decls: 0, vars: 0, template: function NgbModalBackdrop_Template(rf, ctx) { }, encapsulation: 2 });
  7674. NgbModalBackdrop.ctorParameters = () => [
  7675. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  7676. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }
  7677. ];
  7678. NgbModalBackdrop.propDecorators = {
  7679. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  7680. backdropClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  7681. };
  7682. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbModalBackdrop, [{
  7683. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  7684. args: [{
  7685. selector: 'ngb-modal-backdrop',
  7686. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  7687. template: '',
  7688. host: {
  7689. '[class]': '"modal-backdrop" + (backdropClass ? " " + backdropClass : "")',
  7690. '[class.show]': '!animation',
  7691. '[class.fade]': 'animation',
  7692. 'style': 'z-index: 1050'
  7693. }
  7694. }]
  7695. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }]; }, { animation: [{
  7696. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  7697. }], backdropClass: [{
  7698. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  7699. }] }); })();
  7700. /**
  7701. * A reference to the currently opened (active) modal.
  7702. *
  7703. * Instances of this class can be injected into your component passed as modal content.
  7704. * So you can `.close()` or `.dismiss()` the modal window from your component.
  7705. */
  7706. class NgbActiveModal {
  7707. /**
  7708. * Closes the modal with an optional `result` value.
  7709. *
  7710. * The `NgbModalRef.result` promise will be resolved with the provided value.
  7711. */
  7712. close(result) { }
  7713. /**
  7714. * Dismisses the modal with an optional `reason` value.
  7715. *
  7716. * The `NgbModalRef.result` promise will be rejected with the provided value.
  7717. */
  7718. dismiss(reason) { }
  7719. }
  7720. /**
  7721. * A reference to the newly opened modal returned by the `NgbModal.open()` method.
  7722. */
  7723. class NgbModalRef {
  7724. constructor(_windowCmptRef, _contentRef, _backdropCmptRef, _beforeDismiss) {
  7725. this._windowCmptRef = _windowCmptRef;
  7726. this._contentRef = _contentRef;
  7727. this._backdropCmptRef = _backdropCmptRef;
  7728. this._beforeDismiss = _beforeDismiss;
  7729. this._closed = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  7730. this._dismissed = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  7731. this._hidden = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  7732. _windowCmptRef.instance.dismissEvent.subscribe((reason) => { this.dismiss(reason); });
  7733. this.result = new Promise((resolve, reject) => {
  7734. this._resolve = resolve;
  7735. this._reject = reject;
  7736. });
  7737. this.result.then(null, () => { });
  7738. }
  7739. /**
  7740. * The instance of a component used for the modal content.
  7741. *
  7742. * When a `TemplateRef` is used as the content or when the modal is closed, will return `undefined`.
  7743. */
  7744. get componentInstance() {
  7745. if (this._contentRef && this._contentRef.componentRef) {
  7746. return this._contentRef.componentRef.instance;
  7747. }
  7748. }
  7749. /**
  7750. * The observable that emits when the modal is closed via the `.close()` method.
  7751. *
  7752. * It will emit the result passed to the `.close()` method.
  7753. *
  7754. * @since 8.0.0
  7755. */
  7756. get closed() { return this._closed.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._hidden)); }
  7757. /**
  7758. * The observable that emits when the modal is dismissed via the `.dismiss()` method.
  7759. *
  7760. * It will emit the reason passed to the `.dismissed()` method by the user, or one of the internal
  7761. * reasons like backdrop click or ESC key press.
  7762. *
  7763. * @since 8.0.0
  7764. */
  7765. get dismissed() { return this._dismissed.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._hidden)); }
  7766. /**
  7767. * The observable that emits when both modal window and backdrop are closed and animations were finished.
  7768. * At this point modal and backdrop elements will be removed from the DOM tree.
  7769. *
  7770. * This observable will be completed after emitting.
  7771. *
  7772. * @since 8.0.0
  7773. */
  7774. get hidden() { return this._hidden.asObservable(); }
  7775. /**
  7776. * The observable that emits when modal is fully visible and animation was finished.
  7777. * Modal DOM element is always available synchronously after calling 'modal.open()' service.
  7778. *
  7779. * This observable will be completed after emitting.
  7780. * It will not emit, if modal is closed before open animation is finished.
  7781. *
  7782. * @since 8.0.0
  7783. */
  7784. get shown() { return this._windowCmptRef.instance.shown.asObservable(); }
  7785. /**
  7786. * Closes the modal with an optional `result` value.
  7787. *
  7788. * The `NgbMobalRef.result` promise will be resolved with the provided value.
  7789. */
  7790. close(result) {
  7791. if (this._windowCmptRef) {
  7792. this._closed.next(result);
  7793. this._resolve(result);
  7794. this._removeModalElements();
  7795. }
  7796. }
  7797. _dismiss(reason) {
  7798. this._dismissed.next(reason);
  7799. this._reject(reason);
  7800. this._removeModalElements();
  7801. }
  7802. /**
  7803. * Dismisses the modal with an optional `reason` value.
  7804. *
  7805. * The `NgbModalRef.result` promise will be rejected with the provided value.
  7806. */
  7807. dismiss(reason) {
  7808. if (this._windowCmptRef) {
  7809. if (!this._beforeDismiss) {
  7810. this._dismiss(reason);
  7811. }
  7812. else {
  7813. const dismiss = this._beforeDismiss();
  7814. if (dismiss && dismiss.then) {
  7815. dismiss.then(result => {
  7816. if (result !== false) {
  7817. this._dismiss(reason);
  7818. }
  7819. }, () => { });
  7820. }
  7821. else if (dismiss !== false) {
  7822. this._dismiss(reason);
  7823. }
  7824. }
  7825. }
  7826. }
  7827. _removeModalElements() {
  7828. const windowTransition$ = this._windowCmptRef.instance.hide();
  7829. const backdropTransition$ = this._backdropCmptRef ? this._backdropCmptRef.instance.hide() : Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(undefined);
  7830. // hiding window
  7831. windowTransition$.subscribe(() => {
  7832. const { nativeElement } = this._windowCmptRef.location;
  7833. nativeElement.parentNode.removeChild(nativeElement);
  7834. this._windowCmptRef.destroy();
  7835. if (this._contentRef && this._contentRef.viewRef) {
  7836. this._contentRef.viewRef.destroy();
  7837. }
  7838. this._windowCmptRef = null;
  7839. this._contentRef = null;
  7840. });
  7841. // hiding backdrop
  7842. backdropTransition$.subscribe(() => {
  7843. if (this._backdropCmptRef) {
  7844. const { nativeElement } = this._backdropCmptRef.location;
  7845. nativeElement.parentNode.removeChild(nativeElement);
  7846. this._backdropCmptRef.destroy();
  7847. this._backdropCmptRef = null;
  7848. }
  7849. });
  7850. // all done
  7851. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["zip"])(windowTransition$, backdropTransition$).subscribe(() => {
  7852. this._hidden.next();
  7853. this._hidden.complete();
  7854. });
  7855. }
  7856. }
  7857. var ModalDismissReasons;
  7858. (function (ModalDismissReasons) {
  7859. ModalDismissReasons[ModalDismissReasons["BACKDROP_CLICK"] = 0] = "BACKDROP_CLICK";
  7860. ModalDismissReasons[ModalDismissReasons["ESC"] = 1] = "ESC";
  7861. })(ModalDismissReasons || (ModalDismissReasons = {}));
  7862. class NgbModalWindow {
  7863. constructor(_document, _elRef, _zone) {
  7864. this._document = _document;
  7865. this._elRef = _elRef;
  7866. this._zone = _zone;
  7867. this._closed$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  7868. this._elWithFocus = null; // element that is focused prior to modal opening
  7869. this.backdrop = true;
  7870. this.keyboard = true;
  7871. this.dismissEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  7872. this.shown = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  7873. this.hidden = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  7874. }
  7875. dismiss(reason) { this.dismissEvent.emit(reason); }
  7876. ngOnInit() { this._elWithFocus = this._document.activeElement; }
  7877. ngAfterViewInit() { this._show(); }
  7878. ngOnDestroy() { this._disableEventHandling(); }
  7879. hide() {
  7880. const { nativeElement } = this._elRef;
  7881. const context = { animation: this.animation, runningTransition: 'stop' };
  7882. const windowTransition$ = ngbRunTransition(nativeElement, () => nativeElement.classList.remove('show'), context);
  7883. const dialogTransition$ = ngbRunTransition(this._dialogEl.nativeElement, () => { }, context);
  7884. const transitions$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["zip"])(windowTransition$, dialogTransition$);
  7885. transitions$.subscribe(() => {
  7886. this.hidden.next();
  7887. this.hidden.complete();
  7888. });
  7889. this._disableEventHandling();
  7890. this._restoreFocus();
  7891. return transitions$;
  7892. }
  7893. _show() {
  7894. const { nativeElement } = this._elRef;
  7895. const context = { animation: this.animation, runningTransition: 'continue' };
  7896. const windowTransition$ = ngbRunTransition(nativeElement, () => nativeElement.classList.add('show'), context);
  7897. const dialogTransition$ = ngbRunTransition(this._dialogEl.nativeElement, () => { }, context);
  7898. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["zip"])(windowTransition$, dialogTransition$).subscribe(() => {
  7899. this.shown.next();
  7900. this.shown.complete();
  7901. });
  7902. this._enableEventHandling();
  7903. this._setFocus();
  7904. }
  7905. _enableEventHandling() {
  7906. const { nativeElement } = this._elRef;
  7907. this._zone.runOutsideAngular(() => {
  7908. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(nativeElement, 'keydown')
  7909. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._closed$),
  7910. // tslint:disable-next-line:deprecation
  7911. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(e => e.which === Key.Escape))
  7912. .subscribe(event => {
  7913. if (this.keyboard) {
  7914. requestAnimationFrame(() => {
  7915. if (!event.defaultPrevented) {
  7916. this._zone.run(() => this.dismiss(ModalDismissReasons.ESC));
  7917. }
  7918. });
  7919. }
  7920. else if (this.backdrop === 'static') {
  7921. this._bumpBackdrop();
  7922. }
  7923. });
  7924. // We're listening to 'mousedown' and 'mouseup' to prevent modal from closing when pressing the mouse
  7925. // inside the modal dialog and releasing it outside
  7926. let preventClose = false;
  7927. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(this._dialogEl.nativeElement, 'mousedown')
  7928. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._closed$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(() => preventClose = false), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(() => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(nativeElement, 'mouseup').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._closed$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1))), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(({ target }) => nativeElement === target))
  7929. .subscribe(() => { preventClose = true; });
  7930. // We're listening to 'click' to dismiss modal on modal window click, except when:
  7931. // 1. clicking on modal dialog itself
  7932. // 2. closing was prevented by mousedown/up handlers
  7933. // 3. clicking on scrollbar when the viewport is too small and modal doesn't fit (click is not triggered at all)
  7934. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(nativeElement, 'click').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._closed$)).subscribe(({ target }) => {
  7935. if (nativeElement === target) {
  7936. if (this.backdrop === 'static') {
  7937. this._bumpBackdrop();
  7938. }
  7939. else if (this.backdrop === true && !preventClose) {
  7940. this._zone.run(() => this.dismiss(ModalDismissReasons.BACKDROP_CLICK));
  7941. }
  7942. }
  7943. preventClose = false;
  7944. });
  7945. });
  7946. }
  7947. _disableEventHandling() { this._closed$.next(); }
  7948. _setFocus() {
  7949. const { nativeElement } = this._elRef;
  7950. if (!nativeElement.contains(document.activeElement)) {
  7951. const autoFocusable = nativeElement.querySelector(`[ngbAutofocus]`);
  7952. const firstFocusable = getFocusableBoundaryElements(nativeElement)[0];
  7953. const elementToFocus = autoFocusable || firstFocusable || nativeElement;
  7954. elementToFocus.focus();
  7955. }
  7956. }
  7957. _restoreFocus() {
  7958. const body = this._document.body;
  7959. const elWithFocus = this._elWithFocus;
  7960. let elementToFocus;
  7961. if (elWithFocus && elWithFocus['focus'] && body.contains(elWithFocus)) {
  7962. elementToFocus = elWithFocus;
  7963. }
  7964. else {
  7965. elementToFocus = body;
  7966. }
  7967. this._zone.runOutsideAngular(() => {
  7968. setTimeout(() => elementToFocus.focus());
  7969. this._elWithFocus = null;
  7970. });
  7971. }
  7972. _bumpBackdrop() {
  7973. if (this.backdrop === 'static') {
  7974. ngbRunTransition(this._elRef.nativeElement, ({ classList }) => {
  7975. classList.add('modal-static');
  7976. return () => classList.remove('modal-static');
  7977. }, { animation: this.animation, runningTransition: 'continue' });
  7978. }
  7979. }
  7980. }
  7981. NgbModalWindow.ɵfac = function NgbModalWindow_Factory(t) { return new (t || NgbModalWindow)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  7982. NgbModalWindow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbModalWindow, selectors: [["ngb-modal-window"]], viewQuery: function NgbModalWindow_Query(rf, ctx) { if (rf & 1) {
  7983. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c33, true);
  7984. } if (rf & 2) {
  7985. let _t;
  7986. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._dialogEl = _t.first);
  7987. } }, hostAttrs: ["role", "dialog", "tabindex", "-1"], hostVars: 7, hostBindings: function NgbModalWindow_HostBindings(rf, ctx) { if (rf & 2) {
  7988. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-modal", true)("aria-labelledby", ctx.ariaLabelledBy)("aria-describedby", ctx.ariaDescribedBy);
  7989. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("modal d-block" + (ctx.windowClass ? " " + ctx.windowClass : ""));
  7990. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("fade", ctx.animation);
  7991. } }, inputs: { backdrop: "backdrop", keyboard: "keyboard", animation: "animation", ariaLabelledBy: "ariaLabelledBy", ariaDescribedBy: "ariaDescribedBy", centered: "centered", scrollable: "scrollable", size: "size", windowClass: "windowClass" }, outputs: { dismissEvent: "dismiss" }, ngContentSelectors: _c5, decls: 4, vars: 2, consts: [["role", "document"], ["dialog", ""], [1, "modal-content"]], template: function NgbModalWindow_Template(rf, ctx) { if (rf & 1) {
  7992. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  7993. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0, 1);
  7994. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  7995. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](3);
  7996. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  7997. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  7998. } if (rf & 2) {
  7999. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("modal-dialog" + (ctx.size ? " modal-" + ctx.size : "") + (ctx.centered ? " modal-dialog-centered" : "") + (ctx.scrollable ? " modal-dialog-scrollable" : ""));
  8000. } }, styles: ["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"], encapsulation: 2 });
  8001. NgbModalWindow.ctorParameters = () => [
  8002. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] },
  8003. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  8004. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }
  8005. ];
  8006. NgbModalWindow.propDecorators = {
  8007. _dialogEl: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['dialog', { static: true },] }],
  8008. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8009. ariaLabelledBy: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8010. ariaDescribedBy: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8011. backdrop: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8012. centered: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8013. keyboard: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8014. scrollable: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8015. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8016. windowClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8017. dismissEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['dismiss',] }]
  8018. };
  8019. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbModalWindow, [{
  8020. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  8021. args: [{
  8022. selector: 'ngb-modal-window',
  8023. host: {
  8024. '[class]': '"modal d-block" + (windowClass ? " " + windowClass : "")',
  8025. '[class.fade]': 'animation',
  8026. 'role': 'dialog',
  8027. 'tabindex': '-1',
  8028. '[attr.aria-modal]': 'true',
  8029. '[attr.aria-labelledby]': 'ariaLabelledBy',
  8030. '[attr.aria-describedby]': 'ariaDescribedBy'
  8031. },
  8032. template: `
  8033. <div #dialog [class]="'modal-dialog' + (size ? ' modal-' + size : '') + (centered ? ' modal-dialog-centered' : '') +
  8034. (scrollable ? ' modal-dialog-scrollable' : '')" role="document">
  8035. <div class="modal-content"><ng-content></ng-content></div>
  8036. </div>
  8037. `,
  8038. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  8039. styles: ["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"]
  8040. }]
  8041. }], function () { return [{ type: undefined, decorators: [{
  8042. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  8043. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  8044. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }]; }, { backdrop: [{
  8045. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8046. }], keyboard: [{
  8047. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8048. }], dismissEvent: [{
  8049. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  8050. args: ['dismiss']
  8051. }], _dialogEl: [{
  8052. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  8053. args: ['dialog', { static: true }]
  8054. }], animation: [{
  8055. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8056. }], ariaLabelledBy: [{
  8057. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8058. }], ariaDescribedBy: [{
  8059. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8060. }], centered: [{
  8061. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8062. }], scrollable: [{
  8063. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8064. }], size: [{
  8065. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8066. }], windowClass: [{
  8067. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8068. }] }); })();
  8069. class NgbModalStack {
  8070. constructor(_applicationRef, _injector, _document, _scrollBar, _rendererFactory, _ngZone) {
  8071. this._applicationRef = _applicationRef;
  8072. this._injector = _injector;
  8073. this._document = _document;
  8074. this._scrollBar = _scrollBar;
  8075. this._rendererFactory = _rendererFactory;
  8076. this._ngZone = _ngZone;
  8077. this._activeWindowCmptHasChanged = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  8078. this._ariaHiddenValues = new Map();
  8079. this._backdropAttributes = ['animation', 'backdropClass'];
  8080. this._modalRefs = [];
  8081. this._windowAttributes = [
  8082. 'animation', 'ariaLabelledBy', 'ariaDescribedBy', 'backdrop', 'centered', 'keyboard', 'scrollable', 'size',
  8083. 'windowClass'
  8084. ];
  8085. this._windowCmpts = [];
  8086. this._activeInstances = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  8087. // Trap focus on active WindowCmpt
  8088. this._activeWindowCmptHasChanged.subscribe(() => {
  8089. if (this._windowCmpts.length) {
  8090. const activeWindowCmpt = this._windowCmpts[this._windowCmpts.length - 1];
  8091. ngbFocusTrap(this._ngZone, activeWindowCmpt.location.nativeElement, this._activeWindowCmptHasChanged);
  8092. this._revertAriaHidden();
  8093. this._setAriaHidden(activeWindowCmpt.location.nativeElement);
  8094. }
  8095. });
  8096. }
  8097. open(moduleCFR, contentInjector, content, options) {
  8098. const containerEl = options.container instanceof HTMLElement ? options.container : isDefined(options.container) ?
  8099. this._document.querySelector(options.container) :
  8100. this._document.body;
  8101. const renderer = this._rendererFactory.createRenderer(null, null);
  8102. const revertPaddingForScrollBar = this._scrollBar.compensate();
  8103. const removeBodyClass = () => {
  8104. if (!this._modalRefs.length) {
  8105. renderer.removeClass(this._document.body, 'modal-open');
  8106. this._revertAriaHidden();
  8107. }
  8108. };
  8109. if (!containerEl) {
  8110. throw new Error(`The specified modal container "${options.container || 'body'}" was not found in the DOM.`);
  8111. }
  8112. const activeModal = new NgbActiveModal();
  8113. const contentRef = this._getContentRef(moduleCFR, options.injector || contentInjector, content, activeModal, options);
  8114. let backdropCmptRef = options.backdrop !== false ? this._attachBackdrop(moduleCFR, containerEl) : undefined;
  8115. let windowCmptRef = this._attachWindowComponent(moduleCFR, containerEl, contentRef);
  8116. let ngbModalRef = new NgbModalRef(windowCmptRef, contentRef, backdropCmptRef, options.beforeDismiss);
  8117. this._registerModalRef(ngbModalRef);
  8118. this._registerWindowCmpt(windowCmptRef);
  8119. ngbModalRef.result.then(revertPaddingForScrollBar, revertPaddingForScrollBar);
  8120. ngbModalRef.result.then(removeBodyClass, removeBodyClass);
  8121. activeModal.close = (result) => { ngbModalRef.close(result); };
  8122. activeModal.dismiss = (reason) => { ngbModalRef.dismiss(reason); };
  8123. this._applyWindowOptions(windowCmptRef.instance, options);
  8124. if (this._modalRefs.length === 1) {
  8125. renderer.addClass(this._document.body, 'modal-open');
  8126. }
  8127. if (backdropCmptRef && backdropCmptRef.instance) {
  8128. this._applyBackdropOptions(backdropCmptRef.instance, options);
  8129. }
  8130. return ngbModalRef;
  8131. }
  8132. get activeInstances() { return this._activeInstances; }
  8133. dismissAll(reason) { this._modalRefs.forEach(ngbModalRef => ngbModalRef.dismiss(reason)); }
  8134. hasOpenModals() { return this._modalRefs.length > 0; }
  8135. _attachBackdrop(moduleCFR, containerEl) {
  8136. let backdropFactory = moduleCFR.resolveComponentFactory(NgbModalBackdrop);
  8137. let backdropCmptRef = backdropFactory.create(this._injector);
  8138. this._applicationRef.attachView(backdropCmptRef.hostView);
  8139. containerEl.appendChild(backdropCmptRef.location.nativeElement);
  8140. return backdropCmptRef;
  8141. }
  8142. _attachWindowComponent(moduleCFR, containerEl, contentRef) {
  8143. let windowFactory = moduleCFR.resolveComponentFactory(NgbModalWindow);
  8144. let windowCmptRef = windowFactory.create(this._injector, contentRef.nodes);
  8145. this._applicationRef.attachView(windowCmptRef.hostView);
  8146. containerEl.appendChild(windowCmptRef.location.nativeElement);
  8147. return windowCmptRef;
  8148. }
  8149. _applyWindowOptions(windowInstance, options) {
  8150. this._windowAttributes.forEach((optionName) => {
  8151. if (isDefined(options[optionName])) {
  8152. windowInstance[optionName] = options[optionName];
  8153. }
  8154. });
  8155. }
  8156. _applyBackdropOptions(backdropInstance, options) {
  8157. this._backdropAttributes.forEach((optionName) => {
  8158. if (isDefined(options[optionName])) {
  8159. backdropInstance[optionName] = options[optionName];
  8160. }
  8161. });
  8162. }
  8163. _getContentRef(moduleCFR, contentInjector, content, activeModal, options) {
  8164. if (!content) {
  8165. return new ContentRef([]);
  8166. }
  8167. else if (content instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]) {
  8168. return this._createFromTemplateRef(content, activeModal);
  8169. }
  8170. else if (isString(content)) {
  8171. return this._createFromString(content);
  8172. }
  8173. else {
  8174. return this._createFromComponent(moduleCFR, contentInjector, content, activeModal, options);
  8175. }
  8176. }
  8177. _createFromTemplateRef(content, activeModal) {
  8178. const context = {
  8179. $implicit: activeModal,
  8180. close(result) { activeModal.close(result); },
  8181. dismiss(reason) { activeModal.dismiss(reason); }
  8182. };
  8183. const viewRef = content.createEmbeddedView(context);
  8184. this._applicationRef.attachView(viewRef);
  8185. return new ContentRef([viewRef.rootNodes], viewRef);
  8186. }
  8187. _createFromString(content) {
  8188. const component = this._document.createTextNode(`${content}`);
  8189. return new ContentRef([[component]]);
  8190. }
  8191. _createFromComponent(moduleCFR, contentInjector, content, context, options) {
  8192. const contentCmptFactory = moduleCFR.resolveComponentFactory(content);
  8193. const modalContentInjector = _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"].create({ providers: [{ provide: NgbActiveModal, useValue: context }], parent: contentInjector });
  8194. const componentRef = contentCmptFactory.create(modalContentInjector);
  8195. const componentNativeEl = componentRef.location.nativeElement;
  8196. if (options.scrollable) {
  8197. componentNativeEl.classList.add('component-host-scrollable');
  8198. }
  8199. this._applicationRef.attachView(componentRef.hostView);
  8200. // FIXME: we should here get rid of the component nativeElement
  8201. // and use `[Array.from(componentNativeEl.childNodes)]` instead and remove the above CSS class.
  8202. return new ContentRef([[componentNativeEl]], componentRef.hostView, componentRef);
  8203. }
  8204. _setAriaHidden(element) {
  8205. const parent = element.parentElement;
  8206. if (parent && element !== this._document.body) {
  8207. Array.from(parent.children).forEach(sibling => {
  8208. if (sibling !== element && sibling.nodeName !== 'SCRIPT') {
  8209. this._ariaHiddenValues.set(sibling, sibling.getAttribute('aria-hidden'));
  8210. sibling.setAttribute('aria-hidden', 'true');
  8211. }
  8212. });
  8213. this._setAriaHidden(parent);
  8214. }
  8215. }
  8216. _revertAriaHidden() {
  8217. this._ariaHiddenValues.forEach((value, element) => {
  8218. if (value) {
  8219. element.setAttribute('aria-hidden', value);
  8220. }
  8221. else {
  8222. element.removeAttribute('aria-hidden');
  8223. }
  8224. });
  8225. this._ariaHiddenValues.clear();
  8226. }
  8227. _registerModalRef(ngbModalRef) {
  8228. const unregisterModalRef = () => {
  8229. const index = this._modalRefs.indexOf(ngbModalRef);
  8230. if (index > -1) {
  8231. this._modalRefs.splice(index, 1);
  8232. this._activeInstances.emit(this._modalRefs);
  8233. }
  8234. };
  8235. this._modalRefs.push(ngbModalRef);
  8236. this._activeInstances.emit(this._modalRefs);
  8237. ngbModalRef.result.then(unregisterModalRef, unregisterModalRef);
  8238. }
  8239. _registerWindowCmpt(ngbWindowCmpt) {
  8240. this._windowCmpts.push(ngbWindowCmpt);
  8241. this._activeWindowCmptHasChanged.next();
  8242. ngbWindowCmpt.onDestroy(() => {
  8243. const index = this._windowCmpts.indexOf(ngbWindowCmpt);
  8244. if (index > -1) {
  8245. this._windowCmpts.splice(index, 1);
  8246. this._activeWindowCmptHasChanged.next();
  8247. }
  8248. });
  8249. }
  8250. }
  8251. NgbModalStack.ɵfac = function NgbModalStack_Factory(t) { return new (t || NgbModalStack)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ScrollBar), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  8252. NgbModalStack.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbModalStack_Factory() { return new NgbModalStack(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["INJECTOR"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(ScrollBar), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); }, token: NgbModalStack, providedIn: "root" });
  8253. NgbModalStack.ctorParameters = () => [
  8254. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"] },
  8255. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] },
  8256. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] },
  8257. { type: ScrollBar },
  8258. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] },
  8259. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }
  8260. ];
  8261. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbModalStack, [{
  8262. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  8263. args: [{ providedIn: 'root' }]
  8264. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }, { type: undefined, decorators: [{
  8265. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  8266. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  8267. }] }, { type: ScrollBar }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }]; }, null); })();
  8268. /**
  8269. * A service for opening modal windows.
  8270. *
  8271. * Creating a modal is straightforward: create a component or a template and pass it as an argument to
  8272. * the `.open()` method.
  8273. */
  8274. class NgbModal {
  8275. constructor(_moduleCFR, _injector, _modalStack, _config) {
  8276. this._moduleCFR = _moduleCFR;
  8277. this._injector = _injector;
  8278. this._modalStack = _modalStack;
  8279. this._config = _config;
  8280. }
  8281. /**
  8282. * Opens a new modal window with the specified content and supplied options.
  8283. *
  8284. * Content can be provided as a `TemplateRef` or a component type. If you pass a component type as content,
  8285. * then instances of those components can be injected with an instance of the `NgbActiveModal` class. You can then
  8286. * use `NgbActiveModal` methods to close / dismiss modals from "inside" of your component.
  8287. *
  8288. * Also see the [`NgbModalOptions`](#/components/modal/api#NgbModalOptions) for the list of supported options.
  8289. */
  8290. open(content, options = {}) {
  8291. const combinedOptions = Object.assign({}, this._config, options);
  8292. return this._modalStack.open(this._moduleCFR, this._injector, content, combinedOptions);
  8293. }
  8294. /**
  8295. * Returns an observable that holds the active modal instances.
  8296. */
  8297. get activeInstances() { return this._modalStack.activeInstances; }
  8298. /**
  8299. * Dismisses all currently displayed modal windows with the supplied reason.
  8300. *
  8301. * @since 3.1.0
  8302. */
  8303. dismissAll(reason) { this._modalStack.dismissAll(reason); }
  8304. /**
  8305. * Indicates if there are currently any open modal windows in the application.
  8306. *
  8307. * @since 3.3.0
  8308. */
  8309. hasOpenModals() { return this._modalStack.hasOpenModals(); }
  8310. }
  8311. NgbModal.ɵfac = function NgbModal_Factory(t) { return new (t || NgbModal)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbModalStack), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbModalConfig)); };
  8312. NgbModal.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbModal_Factory() { return new NgbModal(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["INJECTOR"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbModalStack), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbModalConfig)); }, token: NgbModal, providedIn: "root" });
  8313. NgbModal.ctorParameters = () => [
  8314. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] },
  8315. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] },
  8316. { type: NgbModalStack },
  8317. { type: NgbModalConfig }
  8318. ];
  8319. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbModal, [{
  8320. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  8321. args: [{ providedIn: 'root' }]
  8322. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }, { type: NgbModalStack }, { type: NgbModalConfig }]; }, null); })();
  8323. class NgbModalModule {
  8324. }
  8325. NgbModalModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbModalModule });
  8326. NgbModalModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbModalModule_Factory(t) { return new (t || NgbModalModule)(); }, providers: [NgbModal] });
  8327. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbModalModule, { declarations: [NgbModalBackdrop, NgbModalWindow] }); })();
  8328. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbModalModule, [{
  8329. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  8330. args: [{
  8331. declarations: [NgbModalBackdrop, NgbModalWindow],
  8332. entryComponents: [NgbModalBackdrop, NgbModalWindow],
  8333. providers: [NgbModal]
  8334. }]
  8335. }], null, null); })();
  8336. /**
  8337. * A configuration service for the [`NgbNav`](#/components/nav/api#NgbNav) component.
  8338. *
  8339. * You can inject this service, typically in your root component, and customize the values of its properties in
  8340. * order to provide default values for all the navs used in the application.
  8341. *
  8342. * @since 5.2.0
  8343. */
  8344. class NgbNavConfig {
  8345. constructor(ngbConfig) {
  8346. this.destroyOnHide = true;
  8347. this.orientation = 'horizontal';
  8348. this.roles = 'tablist';
  8349. this.keyboard = false;
  8350. this.animation = ngbConfig.animation;
  8351. }
  8352. }
  8353. NgbNavConfig.ɵfac = function NgbNavConfig_Factory(t) { return new (t || NgbNavConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  8354. NgbNavConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbNavConfig_Factory() { return new NgbNavConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbNavConfig, providedIn: "root" });
  8355. NgbNavConfig.ctorParameters = () => [
  8356. { type: NgbConfig }
  8357. ];
  8358. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNavConfig, [{
  8359. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  8360. args: [{ providedIn: 'root' }]
  8361. }], function () { return [{ type: NgbConfig }]; }, null); })();
  8362. const isValidNavId = (id) => isDefined(id) && id !== '';
  8363. const ɵ0$4 = isValidNavId;
  8364. let navCounter = 0;
  8365. /**
  8366. * This directive must be used to wrap content to be displayed in the nav.
  8367. *
  8368. * @since 5.2.0
  8369. */
  8370. class NgbNavContent {
  8371. constructor(templateRef) {
  8372. this.templateRef = templateRef;
  8373. }
  8374. }
  8375. NgbNavContent.ɵfac = function NgbNavContent_Factory(t) { return new (t || NgbNavContent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  8376. NgbNavContent.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbNavContent, selectors: [["ng-template", "ngbNavContent", ""]] });
  8377. NgbNavContent.ctorParameters = () => [
  8378. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  8379. ];
  8380. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNavContent, [{
  8381. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  8382. args: [{ selector: 'ng-template[ngbNavContent]' }]
  8383. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  8384. /**
  8385. * The directive used to group nav link and related nav content. As well as set nav identifier and some options.
  8386. *
  8387. * @since 5.2.0
  8388. */
  8389. class NgbNavItem {
  8390. constructor(nav, elementRef) {
  8391. this.elementRef = elementRef;
  8392. /**
  8393. * If `true`, the current nav item is disabled and can't be toggled by user.
  8394. *
  8395. * Nevertheless disabled nav can be selected programmatically via the `.select()` method and the `[activeId]` binding.
  8396. */
  8397. this.disabled = false;
  8398. /**
  8399. * An event emitted when the fade in transition is finished on the related nav content
  8400. *
  8401. * @since 8.0.0
  8402. */
  8403. this.shown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  8404. /**
  8405. * An event emitted when the fade out transition is finished on the related nav content
  8406. *
  8407. * @since 8.0.0
  8408. */
  8409. this.hidden = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  8410. // TODO: cf https://github.com/angular/angular/issues/30106
  8411. this._nav = nav;
  8412. }
  8413. ngAfterContentChecked() {
  8414. // We are using @ContentChildren instead of @ContentChild as in the Angular version being used
  8415. // only @ContentChildren allows us to specify the {descendants: false} option.
  8416. // Without {descendants: false} we are hitting bugs described in:
  8417. // https://github.com/ng-bootstrap/ng-bootstrap/issues/2240
  8418. this.contentTpl = this.contentTpls.first;
  8419. }
  8420. ngOnInit() {
  8421. if (!isDefined(this.domId)) {
  8422. this.domId = `ngb-nav-${navCounter++}`;
  8423. }
  8424. }
  8425. get active() { return this._nav.activeId === this.id; }
  8426. get id() { return isValidNavId(this._id) ? this._id : this.domId; }
  8427. get panelDomId() { return `${this.domId}-panel`; }
  8428. isPanelInDom() {
  8429. return (isDefined(this.destroyOnHide) ? !this.destroyOnHide : !this._nav.destroyOnHide) || this.active;
  8430. }
  8431. }
  8432. NgbNavItem.ɵfac = function NgbNavItem_Factory(t) { return new (t || NgbNavItem)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbNav)), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  8433. NgbNavItem.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbNavItem, selectors: [["", "ngbNavItem", ""]], contentQueries: function NgbNavItem_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  8434. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbNavContent, false);
  8435. } if (rf & 2) {
  8436. let _t;
  8437. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.contentTpls = _t);
  8438. } }, hostVars: 2, hostBindings: function NgbNavItem_HostBindings(rf, ctx) { if (rf & 2) {
  8439. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("nav-item", true);
  8440. } }, inputs: { disabled: "disabled", domId: "domId", destroyOnHide: "destroyOnHide", _id: ["ngbNavItem", "_id"] }, outputs: { shown: "shown", hidden: "hidden" }, exportAs: ["ngbNavItem"] });
  8441. NgbNavItem.ctorParameters = () => [
  8442. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbNav),] }] },
  8443. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  8444. ];
  8445. NgbNavItem.propDecorators = {
  8446. destroyOnHide: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8447. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8448. domId: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8449. _id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngbNavItem',] }],
  8450. shown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  8451. hidden: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  8452. contentTpls: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgbNavContent, { descendants: false },] }]
  8453. };
  8454. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNavItem, [{
  8455. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  8456. args: [{ selector: '[ngbNavItem]', exportAs: 'ngbNavItem', host: { '[class.nav-item]': 'true' } }]
  8457. }], function () { return [{ type: undefined, decorators: [{
  8458. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  8459. args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbNav)]
  8460. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { disabled: [{
  8461. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8462. }], shown: [{
  8463. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  8464. }], hidden: [{
  8465. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  8466. }], domId: [{
  8467. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8468. }], destroyOnHide: [{
  8469. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8470. }], _id: [{
  8471. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  8472. args: ['ngbNavItem']
  8473. }], contentTpls: [{
  8474. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  8475. args: [NgbNavContent, { descendants: false }]
  8476. }] }); })();
  8477. /**
  8478. * A nav directive that helps with implementing tabbed navigation components.
  8479. *
  8480. * @since 5.2.0
  8481. */
  8482. class NgbNav {
  8483. constructor(role, config, _cd, _document) {
  8484. this.role = role;
  8485. this._cd = _cd;
  8486. this._document = _document;
  8487. /**
  8488. * The event emitted after the active nav changes
  8489. * The payload of the event is the newly active nav id
  8490. *
  8491. * If you want to prevent nav change, you should use `(navChange)` event
  8492. */
  8493. this.activeIdChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  8494. /**
  8495. * An event emitted when the fade in transition is finished for one of the items.
  8496. *
  8497. * Payload of the event is the nav id that was just shown.
  8498. *
  8499. * @since 8.0.0
  8500. */
  8501. this.shown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  8502. /**
  8503. * An event emitted when the fade out transition is finished for one of the items.
  8504. *
  8505. * Payload of the event is the nav id that was just hidden.
  8506. *
  8507. * @since 8.0.0
  8508. */
  8509. this.hidden = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  8510. this.navItemChange$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  8511. /**
  8512. * The nav change event emitted right before the nav change happens on user click.
  8513. *
  8514. * This event won't be emitted if nav is changed programmatically via `[activeId]` or `.select()`.
  8515. *
  8516. * See [`NgbNavChangeEvent`](#/components/nav/api#NgbNavChangeEvent) for payload details.
  8517. */
  8518. this.navChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  8519. this.animation = config.animation;
  8520. this.destroyOnHide = config.destroyOnHide;
  8521. this.orientation = config.orientation;
  8522. this.roles = config.roles;
  8523. this.keyboard = config.keyboard;
  8524. }
  8525. click(item) {
  8526. if (!item.disabled) {
  8527. this._updateActiveId(item.id);
  8528. }
  8529. }
  8530. onKeyDown(event) {
  8531. if (this.roles !== 'tablist' || !this.keyboard) {
  8532. return;
  8533. }
  8534. // tslint:disable-next-line: deprecation
  8535. const key = event.which;
  8536. const enabledLinks = this.links.filter(link => !link.navItem.disabled);
  8537. const { length } = enabledLinks;
  8538. let position = -1;
  8539. enabledLinks.forEach((link, index) => {
  8540. if (link.elRef.nativeElement === this._document.activeElement) {
  8541. position = index;
  8542. }
  8543. });
  8544. if (length) {
  8545. switch (key) {
  8546. case Key.ArrowLeft:
  8547. if (this.orientation === 'vertical') {
  8548. return;
  8549. }
  8550. position = (position - 1 + length) % length;
  8551. break;
  8552. case Key.ArrowRight:
  8553. if (this.orientation === 'vertical') {
  8554. return;
  8555. }
  8556. position = (position + 1) % length;
  8557. break;
  8558. case Key.ArrowDown:
  8559. if (this.orientation === 'horizontal') {
  8560. return;
  8561. }
  8562. position = (position + 1) % length;
  8563. break;
  8564. case Key.ArrowUp:
  8565. if (this.orientation === 'horizontal') {
  8566. return;
  8567. }
  8568. position = (position - 1 + length) % length;
  8569. break;
  8570. case Key.Home:
  8571. position = 0;
  8572. break;
  8573. case Key.End:
  8574. position = length - 1;
  8575. break;
  8576. }
  8577. if (this.keyboard === 'changeWithArrows') {
  8578. this.select(enabledLinks[position].navItem.id);
  8579. }
  8580. enabledLinks[position].elRef.nativeElement.focus();
  8581. event.preventDefault();
  8582. }
  8583. }
  8584. /**
  8585. * Selects the nav with the given id and shows its associated pane.
  8586. * Any other nav that was previously selected becomes unselected and its associated pane is hidden.
  8587. */
  8588. select(id) { this._updateActiveId(id, false); }
  8589. ngAfterContentInit() {
  8590. if (!isDefined(this.activeId)) {
  8591. const nextId = this.items.first ? this.items.first.id : null;
  8592. if (isValidNavId(nextId)) {
  8593. this._updateActiveId(nextId, false);
  8594. this._cd.detectChanges();
  8595. }
  8596. }
  8597. }
  8598. ngOnChanges({ activeId }) {
  8599. if (activeId && !activeId.firstChange) {
  8600. this._notifyItemChanged(activeId.currentValue);
  8601. }
  8602. }
  8603. _updateActiveId(nextId, emitNavChange = true) {
  8604. if (this.activeId !== nextId) {
  8605. let defaultPrevented = false;
  8606. if (emitNavChange) {
  8607. this.navChange.emit({ activeId: this.activeId, nextId, preventDefault: () => { defaultPrevented = true; } });
  8608. }
  8609. if (!defaultPrevented) {
  8610. this.activeId = nextId;
  8611. this.activeIdChange.emit(nextId);
  8612. this._notifyItemChanged(nextId);
  8613. }
  8614. }
  8615. }
  8616. _notifyItemChanged(nextItemId) { this.navItemChange$.next(this._getItemById(nextItemId)); }
  8617. _getItemById(itemId) {
  8618. return this.items && this.items.find(item => item.id === itemId) || null;
  8619. }
  8620. }
  8621. NgbNav.ɵfac = function NgbNav_Factory(t) { return new (t || NgbNav)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('role'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbNavConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"])); };
  8622. NgbNav.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbNav, selectors: [["", "ngbNav", ""]], contentQueries: function NgbNav_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  8623. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbNavItem, false);
  8624. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbNavLink, true);
  8625. } if (rf & 2) {
  8626. let _t;
  8627. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.items = _t);
  8628. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.links = _t);
  8629. } }, hostVars: 6, hostBindings: function NgbNav_HostBindings(rf, ctx) { if (rf & 1) {
  8630. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown.arrowLeft", function NgbNav_keydown_arrowLeft_HostBindingHandler($event) { return ctx.onKeyDown($event); })("keydown.arrowRight", function NgbNav_keydown_arrowRight_HostBindingHandler($event) { return ctx.onKeyDown($event); })("keydown.arrowDown", function NgbNav_keydown_arrowDown_HostBindingHandler($event) { return ctx.onKeyDown($event); })("keydown.arrowUp", function NgbNav_keydown_arrowUp_HostBindingHandler($event) { return ctx.onKeyDown($event); })("keydown.Home", function NgbNav_keydown_Home_HostBindingHandler($event) { return ctx.onKeyDown($event); })("keydown.End", function NgbNav_keydown_End_HostBindingHandler($event) { return ctx.onKeyDown($event); });
  8631. } if (rf & 2) {
  8632. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-orientation", ctx.orientation === "vertical" && ctx.roles === "tablist" ? "vertical" : undefined)("role", ctx.role ? ctx.role : ctx.roles ? "tablist" : undefined);
  8633. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("nav", true)("flex-column", ctx.orientation === "vertical");
  8634. } }, inputs: { animation: "animation", destroyOnHide: "destroyOnHide", orientation: "orientation", roles: "roles", keyboard: "keyboard", activeId: "activeId" }, outputs: { activeIdChange: "activeIdChange", shown: "shown", hidden: "hidden", navChange: "navChange" }, exportAs: ["ngbNav"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  8635. NgbNav.ctorParameters = () => [
  8636. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"], args: ['role',] }] },
  8637. { type: NgbNavConfig },
  8638. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  8639. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] }
  8640. ];
  8641. NgbNav.propDecorators = {
  8642. activeId: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8643. activeIdChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  8644. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8645. destroyOnHide: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8646. orientation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8647. roles: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8648. keyboard: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8649. shown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  8650. hidden: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  8651. items: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgbNavItem,] }],
  8652. links: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbNavLink), { descendants: true },] }],
  8653. navChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  8654. };
  8655. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNav, [{
  8656. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  8657. args: [{
  8658. selector: '[ngbNav]',
  8659. exportAs: 'ngbNav',
  8660. host: {
  8661. '[class.nav]': 'true',
  8662. '[class.flex-column]': `orientation === 'vertical'`,
  8663. '[attr.aria-orientation]': `orientation === 'vertical' && roles === 'tablist' ? 'vertical' : undefined`,
  8664. '[attr.role]': `role ? role : roles ? 'tablist' : undefined`,
  8665. '(keydown.arrowLeft)': 'onKeyDown($event)',
  8666. '(keydown.arrowRight)': 'onKeyDown($event)',
  8667. '(keydown.arrowDown)': 'onKeyDown($event)',
  8668. '(keydown.arrowUp)': 'onKeyDown($event)',
  8669. '(keydown.Home)': 'onKeyDown($event)',
  8670. '(keydown.End)': 'onKeyDown($event)'
  8671. }
  8672. }]
  8673. }], function () { return [{ type: String, decorators: [{
  8674. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
  8675. args: ['role']
  8676. }] }, { type: NgbNavConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: undefined, decorators: [{
  8677. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  8678. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  8679. }] }]; }, { activeIdChange: [{
  8680. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  8681. }], shown: [{
  8682. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  8683. }], hidden: [{
  8684. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  8685. }], navChange: [{
  8686. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  8687. }], animation: [{
  8688. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8689. }], destroyOnHide: [{
  8690. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8691. }], orientation: [{
  8692. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8693. }], roles: [{
  8694. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8695. }], keyboard: [{
  8696. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8697. }], activeId: [{
  8698. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8699. }], items: [{
  8700. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  8701. args: [NgbNavItem]
  8702. }], links: [{
  8703. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  8704. args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbNavLink), { descendants: true }]
  8705. }] }); })();
  8706. /**
  8707. * A directive to put on the nav link.
  8708. *
  8709. * @since 5.2.0
  8710. */
  8711. class NgbNavLink {
  8712. constructor(role, navItem, nav, elRef) {
  8713. this.role = role;
  8714. this.navItem = navItem;
  8715. this.nav = nav;
  8716. this.elRef = elRef;
  8717. }
  8718. hasNavItemClass() {
  8719. // with alternative markup we have to add `.nav-item` class, because `ngbNavItem` is on the ng-container
  8720. return this.navItem.elementRef.nativeElement.nodeType === Node.COMMENT_NODE;
  8721. }
  8722. }
  8723. NgbNavLink.ɵfac = function NgbNavLink_Factory(t) { return new (t || NgbNavLink)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('role'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbNavItem), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbNav), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  8724. NgbNavLink.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbNavLink, selectors: [["a", "ngbNavLink", ""]], hostAttrs: ["href", ""], hostVars: 14, hostBindings: function NgbNavLink_HostBindings(rf, ctx) { if (rf & 1) {
  8725. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgbNavLink_click_HostBindingHandler($event) { ctx.nav.click(ctx.navItem); return $event.preventDefault(); });
  8726. } if (rf & 2) {
  8727. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.navItem.domId);
  8728. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("role", ctx.role ? ctx.role : ctx.nav.roles ? "tab" : undefined)("tabindex", ctx.navItem.disabled ? -1 : undefined)("aria-controls", ctx.navItem.isPanelInDom() ? ctx.navItem.panelDomId : null)("aria-selected", ctx.navItem.active)("aria-disabled", ctx.navItem.disabled);
  8729. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("nav-link", true)("nav-item", ctx.hasNavItemClass())("active", ctx.navItem.active)("disabled", ctx.navItem.disabled);
  8730. } } });
  8731. NgbNavLink.ctorParameters = () => [
  8732. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"], args: ['role',] }] },
  8733. { type: NgbNavItem },
  8734. { type: NgbNav },
  8735. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  8736. ];
  8737. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNavLink, [{
  8738. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  8739. args: [{
  8740. selector: 'a[ngbNavLink]',
  8741. host: {
  8742. '[id]': 'navItem.domId',
  8743. '[class.nav-link]': 'true',
  8744. '[class.nav-item]': 'hasNavItemClass()',
  8745. '[attr.role]': `role ? role : nav.roles ? 'tab' : undefined`,
  8746. 'href': '',
  8747. '[class.active]': 'navItem.active',
  8748. '[class.disabled]': 'navItem.disabled',
  8749. '[attr.tabindex]': 'navItem.disabled ? -1 : undefined',
  8750. '[attr.aria-controls]': 'navItem.isPanelInDom() ? navItem.panelDomId : null',
  8751. '[attr.aria-selected]': 'navItem.active',
  8752. '[attr.aria-disabled]': 'navItem.disabled',
  8753. '(click)': 'nav.click(navItem); $event.preventDefault()'
  8754. }
  8755. }]
  8756. }], function () { return [{ type: String, decorators: [{
  8757. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
  8758. args: ['role']
  8759. }] }, { type: NgbNavItem }, { type: NgbNav }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, null); })();
  8760. const ngbNavFadeOutTransition = ({ classList }) => {
  8761. classList.remove('show');
  8762. return () => classList.remove('active');
  8763. };
  8764. const ngbNavFadeInTransition = (element) => {
  8765. element.classList.add('active');
  8766. reflow(element);
  8767. element.classList.add('show');
  8768. };
  8769. const ngbNavFadeInNoReflowTransition = (element) => {
  8770. element.classList.add('active');
  8771. element.classList.add('show');
  8772. };
  8773. class NgbNavPane {
  8774. constructor(elRef) {
  8775. this.elRef = elRef;
  8776. }
  8777. }
  8778. NgbNavPane.ɵfac = function NgbNavPane_Factory(t) { return new (t || NgbNavPane)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  8779. NgbNavPane.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbNavPane, selectors: [["", "ngbNavPane", ""]], hostAttrs: [1, "tab-pane"], hostVars: 5, hostBindings: function NgbNavPane_HostBindings(rf, ctx) { if (rf & 2) {
  8780. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.item.panelDomId);
  8781. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("role", ctx.role ? ctx.role : ctx.nav.roles ? "tabpanel" : undefined)("aria-labelledby", ctx.item.domId);
  8782. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("fade", ctx.nav.animation);
  8783. } }, inputs: { item: "item", nav: "nav", role: "role" } });
  8784. NgbNavPane.ctorParameters = () => [
  8785. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  8786. ];
  8787. NgbNavPane.propDecorators = {
  8788. item: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8789. nav: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8790. role: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  8791. };
  8792. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNavPane, [{
  8793. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  8794. args: [{
  8795. selector: '[ngbNavPane]',
  8796. host: {
  8797. '[id]': 'item.panelDomId',
  8798. 'class': 'tab-pane',
  8799. '[class.fade]': 'nav.animation',
  8800. '[attr.role]': 'role ? role : nav.roles ? "tabpanel" : undefined',
  8801. '[attr.aria-labelledby]': 'item.domId'
  8802. }
  8803. }]
  8804. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { item: [{
  8805. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8806. }], nav: [{
  8807. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8808. }], role: [{
  8809. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8810. }] }); })();
  8811. /**
  8812. * The outlet where currently active nav content will be displayed.
  8813. *
  8814. * @since 5.2.0
  8815. */
  8816. class NgbNavOutlet {
  8817. constructor(_cd) {
  8818. this._cd = _cd;
  8819. this._activePane = null;
  8820. }
  8821. isPanelTransitioning(item) { var _a; return ((_a = this._activePane) === null || _a === void 0 ? void 0 : _a.item) === item; }
  8822. ngAfterViewInit() {
  8823. var _a, _b, _c;
  8824. // initial display
  8825. this._activePane = this._getActivePane();
  8826. (_a = this._activePane) === null || _a === void 0 ? void 0 : _a.elRef.nativeElement.classList.add('show');
  8827. (_b = this._activePane) === null || _b === void 0 ? void 0 : _b.elRef.nativeElement.classList.add('active');
  8828. // this will be emitted for all 3 types of nav changes: .select(), [activeId] or (click)
  8829. this.nav.navItemChange$
  8830. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(((_c = this._activePane) === null || _c === void 0 ? void 0 : _c.item) || null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["skip"])(1))
  8831. .subscribe(nextItem => {
  8832. const options = { animation: this.nav.animation, runningTransition: 'stop' };
  8833. // fading out
  8834. if (this._activePane) {
  8835. ngbRunTransition(this._activePane.elRef.nativeElement, ngbNavFadeOutTransition, options).subscribe(() => {
  8836. var _a;
  8837. const activeItem = (_a = this._activePane) === null || _a === void 0 ? void 0 : _a.item;
  8838. // next panel we're switching to will only appear in DOM after the change detection is done
  8839. // and `this._panes` will be updated
  8840. this._cd.detectChanges();
  8841. this._activePane = this._getPaneForItem(nextItem);
  8842. // fading in
  8843. if (this._activePane) {
  8844. const fadeInTransition = this.nav.animation ? ngbNavFadeInTransition : ngbNavFadeInNoReflowTransition;
  8845. ngbRunTransition(this._activePane.elRef.nativeElement, fadeInTransition, options).subscribe(() => {
  8846. if (nextItem) {
  8847. nextItem.shown.emit();
  8848. this.nav.shown.emit(nextItem.id);
  8849. }
  8850. });
  8851. }
  8852. if (activeItem) {
  8853. activeItem.hidden.emit();
  8854. this.nav.hidden.emit(activeItem.id);
  8855. }
  8856. });
  8857. }
  8858. });
  8859. }
  8860. _getPaneForItem(item) {
  8861. return this._panes && this._panes.find(pane => pane.item === item) || null;
  8862. }
  8863. _getActivePane() {
  8864. return this._panes && this._panes.find(pane => pane.item.active) || null;
  8865. }
  8866. }
  8867. NgbNavOutlet.ɵfac = function NgbNavOutlet_Factory(t) { return new (t || NgbNavOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); };
  8868. NgbNavOutlet.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbNavOutlet, selectors: [["", "ngbNavOutlet", ""]], viewQuery: function NgbNavOutlet_Query(rf, ctx) { if (rf & 1) {
  8869. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](NgbNavPane, true);
  8870. } if (rf & 2) {
  8871. let _t;
  8872. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx._panes = _t);
  8873. } }, hostVars: 2, hostBindings: function NgbNavOutlet_HostBindings(rf, ctx) { if (rf & 2) {
  8874. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("tab-content", true);
  8875. } }, inputs: { paneRole: "paneRole", nav: ["ngbNavOutlet", "nav"] }, attrs: _c34, decls: 1, vars: 1, consts: [["ngFor", "", 3, "ngForOf"], ["ngbNavPane", "", 3, "item", "nav", "role", 4, "ngIf"], ["ngbNavPane", "", 3, "item", "nav", "role"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function NgbNavOutlet_Template(rf, ctx) { if (rf & 1) {
  8876. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbNavOutlet_ng_template_0_Template, 1, 1, "ng-template", 0);
  8877. } if (rf & 2) {
  8878. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.nav.items);
  8879. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], NgbNavPane, _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"]], encapsulation: 2 });
  8880. NgbNavOutlet.ctorParameters = () => [
  8881. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  8882. ];
  8883. NgbNavOutlet.propDecorators = {
  8884. _panes: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"], args: [NgbNavPane,] }],
  8885. paneRole: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  8886. nav: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngbNavOutlet',] }]
  8887. };
  8888. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNavOutlet, [{
  8889. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  8890. args: [{
  8891. selector: '[ngbNavOutlet]',
  8892. host: { '[class.tab-content]': 'true' },
  8893. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  8894. template: `
  8895. <ng-template ngFor let-item [ngForOf]="nav.items">
  8896. <div ngbNavPane *ngIf="item.isPanelInDom() || isPanelTransitioning(item)" [item]="item" [nav]="nav" [role]="paneRole">
  8897. <ng-template [ngTemplateOutlet]="item.contentTpl?.templateRef || null"
  8898. [ngTemplateOutletContext]="{$implicit: item.active || isPanelTransitioning(item)}"></ng-template>
  8899. </div>
  8900. </ng-template>
  8901. `
  8902. }]
  8903. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, { _panes: [{
  8904. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChildren"],
  8905. args: [NgbNavPane]
  8906. }], paneRole: [{
  8907. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  8908. }], nav: [{
  8909. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  8910. args: ['ngbNavOutlet']
  8911. }] }); })();
  8912. const NGB_NAV_DIRECTIVES = [NgbNavContent, NgbNav, NgbNavItem, NgbNavLink, NgbNavOutlet, NgbNavPane];
  8913. class NgbNavModule {
  8914. }
  8915. NgbNavModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbNavModule });
  8916. NgbNavModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbNavModule_Factory(t) { return new (t || NgbNavModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  8917. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbNavModule, { declarations: function () { return [NgbNavContent, NgbNav, NgbNavItem, NgbNavLink, NgbNavOutlet, NgbNavPane]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbNavContent, NgbNav, NgbNavItem, NgbNavLink, NgbNavOutlet, NgbNavPane]; } }); })();
  8918. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbNavModule, [{
  8919. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  8920. args: [{ declarations: NGB_NAV_DIRECTIVES, exports: NGB_NAV_DIRECTIVES, imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]] }]
  8921. }], null, null); })();
  8922. /**
  8923. * A configuration service for the [`NgbPagination`](#/components/pagination/api#NgbPagination) component.
  8924. *
  8925. * You can inject this service, typically in your root component, and customize the values of its properties in
  8926. * order to provide default values for all the paginations used in the application.
  8927. */
  8928. class NgbPaginationConfig {
  8929. constructor() {
  8930. this.disabled = false;
  8931. this.boundaryLinks = false;
  8932. this.directionLinks = true;
  8933. this.ellipses = true;
  8934. this.maxSize = 0;
  8935. this.pageSize = 10;
  8936. this.rotate = false;
  8937. }
  8938. }
  8939. NgbPaginationConfig.ɵfac = function NgbPaginationConfig_Factory(t) { return new (t || NgbPaginationConfig)(); };
  8940. NgbPaginationConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbPaginationConfig_Factory() { return new NgbPaginationConfig(); }, token: NgbPaginationConfig, providedIn: "root" });
  8941. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPaginationConfig, [{
  8942. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  8943. args: [{ providedIn: 'root' }]
  8944. }], function () { return []; }, null); })();
  8945. /**
  8946. * A directive to match the 'ellipsis' link template
  8947. *
  8948. * @since 4.1.0
  8949. */
  8950. class NgbPaginationEllipsis {
  8951. constructor(templateRef) {
  8952. this.templateRef = templateRef;
  8953. }
  8954. }
  8955. NgbPaginationEllipsis.ɵfac = function NgbPaginationEllipsis_Factory(t) { return new (t || NgbPaginationEllipsis)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  8956. NgbPaginationEllipsis.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPaginationEllipsis, selectors: [["ng-template", "ngbPaginationEllipsis", ""]] });
  8957. NgbPaginationEllipsis.ctorParameters = () => [
  8958. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  8959. ];
  8960. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPaginationEllipsis, [{
  8961. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  8962. args: [{ selector: 'ng-template[ngbPaginationEllipsis]' }]
  8963. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  8964. /**
  8965. * A directive to match the 'first' link template
  8966. *
  8967. * @since 4.1.0
  8968. */
  8969. class NgbPaginationFirst {
  8970. constructor(templateRef) {
  8971. this.templateRef = templateRef;
  8972. }
  8973. }
  8974. NgbPaginationFirst.ɵfac = function NgbPaginationFirst_Factory(t) { return new (t || NgbPaginationFirst)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  8975. NgbPaginationFirst.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPaginationFirst, selectors: [["ng-template", "ngbPaginationFirst", ""]] });
  8976. NgbPaginationFirst.ctorParameters = () => [
  8977. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  8978. ];
  8979. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPaginationFirst, [{
  8980. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  8981. args: [{ selector: 'ng-template[ngbPaginationFirst]' }]
  8982. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  8983. /**
  8984. * A directive to match the 'last' link template
  8985. *
  8986. * @since 4.1.0
  8987. */
  8988. class NgbPaginationLast {
  8989. constructor(templateRef) {
  8990. this.templateRef = templateRef;
  8991. }
  8992. }
  8993. NgbPaginationLast.ɵfac = function NgbPaginationLast_Factory(t) { return new (t || NgbPaginationLast)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  8994. NgbPaginationLast.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPaginationLast, selectors: [["ng-template", "ngbPaginationLast", ""]] });
  8995. NgbPaginationLast.ctorParameters = () => [
  8996. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  8997. ];
  8998. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPaginationLast, [{
  8999. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  9000. args: [{ selector: 'ng-template[ngbPaginationLast]' }]
  9001. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  9002. /**
  9003. * A directive to match the 'next' link template
  9004. *
  9005. * @since 4.1.0
  9006. */
  9007. class NgbPaginationNext {
  9008. constructor(templateRef) {
  9009. this.templateRef = templateRef;
  9010. }
  9011. }
  9012. NgbPaginationNext.ɵfac = function NgbPaginationNext_Factory(t) { return new (t || NgbPaginationNext)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  9013. NgbPaginationNext.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPaginationNext, selectors: [["ng-template", "ngbPaginationNext", ""]] });
  9014. NgbPaginationNext.ctorParameters = () => [
  9015. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  9016. ];
  9017. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPaginationNext, [{
  9018. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  9019. args: [{ selector: 'ng-template[ngbPaginationNext]' }]
  9020. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  9021. /**
  9022. * A directive to match the page 'number' link template
  9023. *
  9024. * @since 4.1.0
  9025. */
  9026. class NgbPaginationNumber {
  9027. constructor(templateRef) {
  9028. this.templateRef = templateRef;
  9029. }
  9030. }
  9031. NgbPaginationNumber.ɵfac = function NgbPaginationNumber_Factory(t) { return new (t || NgbPaginationNumber)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  9032. NgbPaginationNumber.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPaginationNumber, selectors: [["ng-template", "ngbPaginationNumber", ""]] });
  9033. NgbPaginationNumber.ctorParameters = () => [
  9034. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  9035. ];
  9036. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPaginationNumber, [{
  9037. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  9038. args: [{ selector: 'ng-template[ngbPaginationNumber]' }]
  9039. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  9040. /**
  9041. * A directive to match the 'previous' link template
  9042. *
  9043. * @since 4.1.0
  9044. */
  9045. class NgbPaginationPrevious {
  9046. constructor(templateRef) {
  9047. this.templateRef = templateRef;
  9048. }
  9049. }
  9050. NgbPaginationPrevious.ɵfac = function NgbPaginationPrevious_Factory(t) { return new (t || NgbPaginationPrevious)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  9051. NgbPaginationPrevious.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPaginationPrevious, selectors: [["ng-template", "ngbPaginationPrevious", ""]] });
  9052. NgbPaginationPrevious.ctorParameters = () => [
  9053. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  9054. ];
  9055. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPaginationPrevious, [{
  9056. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  9057. args: [{ selector: 'ng-template[ngbPaginationPrevious]' }]
  9058. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  9059. /**
  9060. * A component that displays page numbers and allows to customize them in several ways.
  9061. */
  9062. class NgbPagination {
  9063. constructor(config) {
  9064. this.pageCount = 0;
  9065. this.pages = [];
  9066. /**
  9067. * The current page.
  9068. *
  9069. * Page numbers start with `1`.
  9070. */
  9071. this.page = 1;
  9072. /**
  9073. * An event fired when the page is changed. Will fire only if collection size is set and all values are valid.
  9074. *
  9075. * Event payload is the number of the newly selected page.
  9076. *
  9077. * Page numbers start with `1`.
  9078. */
  9079. this.pageChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](true);
  9080. this.disabled = config.disabled;
  9081. this.boundaryLinks = config.boundaryLinks;
  9082. this.directionLinks = config.directionLinks;
  9083. this.ellipses = config.ellipses;
  9084. this.maxSize = config.maxSize;
  9085. this.pageSize = config.pageSize;
  9086. this.rotate = config.rotate;
  9087. this.size = config.size;
  9088. }
  9089. hasPrevious() { return this.page > 1; }
  9090. hasNext() { return this.page < this.pageCount; }
  9091. nextDisabled() { return !this.hasNext() || this.disabled; }
  9092. previousDisabled() { return !this.hasPrevious() || this.disabled; }
  9093. selectPage(pageNumber) { this._updatePages(pageNumber); }
  9094. ngOnChanges(changes) { this._updatePages(this.page); }
  9095. isEllipsis(pageNumber) { return pageNumber === -1; }
  9096. /**
  9097. * Appends ellipses and first/last page number to the displayed pages
  9098. */
  9099. _applyEllipses(start, end) {
  9100. if (this.ellipses) {
  9101. if (start > 0) {
  9102. // The first page will always be included. If the displayed range
  9103. // starts after the third page, then add ellipsis. But if the range
  9104. // starts on the third page, then add the second page instead of
  9105. // an ellipsis, because the ellipsis would only hide a single page.
  9106. if (start > 2) {
  9107. this.pages.unshift(-1);
  9108. }
  9109. else if (start === 2) {
  9110. this.pages.unshift(2);
  9111. }
  9112. this.pages.unshift(1);
  9113. }
  9114. if (end < this.pageCount) {
  9115. // The last page will always be included. If the displayed range
  9116. // ends before the third-last page, then add ellipsis. But if the range
  9117. // ends on third-last page, then add the second-last page instead of
  9118. // an ellipsis, because the ellipsis would only hide a single page.
  9119. if (end < (this.pageCount - 2)) {
  9120. this.pages.push(-1);
  9121. }
  9122. else if (end === (this.pageCount - 2)) {
  9123. this.pages.push(this.pageCount - 1);
  9124. }
  9125. this.pages.push(this.pageCount);
  9126. }
  9127. }
  9128. }
  9129. /**
  9130. * Rotates page numbers based on maxSize items visible.
  9131. * Currently selected page stays in the middle:
  9132. *
  9133. * Ex. for selected page = 6:
  9134. * [5,*6*,7] for maxSize = 3
  9135. * [4,5,*6*,7] for maxSize = 4
  9136. */
  9137. _applyRotation() {
  9138. let start = 0;
  9139. let end = this.pageCount;
  9140. let leftOffset = Math.floor(this.maxSize / 2);
  9141. let rightOffset = this.maxSize % 2 === 0 ? leftOffset - 1 : leftOffset;
  9142. if (this.page <= leftOffset) {
  9143. // very beginning, no rotation -> [0..maxSize]
  9144. end = this.maxSize;
  9145. }
  9146. else if (this.pageCount - this.page < leftOffset) {
  9147. // very end, no rotation -> [len-maxSize..len]
  9148. start = this.pageCount - this.maxSize;
  9149. }
  9150. else {
  9151. // rotate
  9152. start = this.page - leftOffset - 1;
  9153. end = this.page + rightOffset;
  9154. }
  9155. return [start, end];
  9156. }
  9157. /**
  9158. * Paginates page numbers based on maxSize items per page.
  9159. */
  9160. _applyPagination() {
  9161. let page = Math.ceil(this.page / this.maxSize) - 1;
  9162. let start = page * this.maxSize;
  9163. let end = start + this.maxSize;
  9164. return [start, end];
  9165. }
  9166. _setPageInRange(newPageNo) {
  9167. const prevPageNo = this.page;
  9168. this.page = getValueInRange(newPageNo, this.pageCount, 1);
  9169. if (this.page !== prevPageNo && isNumber(this.collectionSize)) {
  9170. this.pageChange.emit(this.page);
  9171. }
  9172. }
  9173. _updatePages(newPage) {
  9174. this.pageCount = Math.ceil(this.collectionSize / this.pageSize);
  9175. if (!isNumber(this.pageCount)) {
  9176. this.pageCount = 0;
  9177. }
  9178. // fill-in model needed to render pages
  9179. this.pages.length = 0;
  9180. for (let i = 1; i <= this.pageCount; i++) {
  9181. this.pages.push(i);
  9182. }
  9183. // set page within 1..max range
  9184. this._setPageInRange(newPage);
  9185. // apply maxSize if necessary
  9186. if (this.maxSize > 0 && this.pageCount > this.maxSize) {
  9187. let start = 0;
  9188. let end = this.pageCount;
  9189. // either paginating or rotating page numbers
  9190. if (this.rotate) {
  9191. [start, end] = this._applyRotation();
  9192. }
  9193. else {
  9194. [start, end] = this._applyPagination();
  9195. }
  9196. this.pages = this.pages.slice(start, end);
  9197. // adding ellipses
  9198. this._applyEllipses(start, end);
  9199. }
  9200. }
  9201. }
  9202. NgbPagination.ɵfac = function NgbPagination_Factory(t) { return new (t || NgbPagination)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbPaginationConfig)); };
  9203. NgbPagination.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbPagination, selectors: [["ngb-pagination"]], contentQueries: function NgbPagination_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  9204. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPaginationEllipsis, true);
  9205. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPaginationFirst, true);
  9206. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPaginationLast, true);
  9207. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPaginationNext, true);
  9208. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPaginationNumber, true);
  9209. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgbPaginationPrevious, true);
  9210. } if (rf & 2) {
  9211. let _t;
  9212. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.tplEllipsis = _t.first);
  9213. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.tplFirst = _t.first);
  9214. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.tplLast = _t.first);
  9215. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.tplNext = _t.first);
  9216. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.tplNumber = _t.first);
  9217. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.tplPrevious = _t.first);
  9218. } }, hostAttrs: ["role", "navigation"], inputs: { page: "page", disabled: "disabled", boundaryLinks: "boundaryLinks", directionLinks: "directionLinks", ellipses: "ellipses", maxSize: "maxSize", pageSize: "pageSize", rotate: "rotate", size: "size", collectionSize: "collectionSize" }, outputs: { pageChange: "pageChange" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 18, vars: 7, consts: function () { let i18n_36; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9219. const MSG_EXTERNAL_ngb_pagination_first$$FESM2015_NG_BOOTSTRAP_JS__37 = goog.getMsg("\u00AB\u00AB");
  9220. i18n_36 = MSG_EXTERNAL_ngb_pagination_first$$FESM2015_NG_BOOTSTRAP_JS__37;
  9221. }
  9222. else {
  9223. i18n_36 = $localize `:@@ngb.pagination.first␟656506dfd46380956a655f919f1498d018f75ca0␟6867721956102594380:««`;
  9224. } let i18n_38; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9225. const MSG_EXTERNAL_ngb_pagination_previous$$FESM2015_NG_BOOTSTRAP_JS__39 = goog.getMsg("\u00AB");
  9226. i18n_38 = MSG_EXTERNAL_ngb_pagination_previous$$FESM2015_NG_BOOTSTRAP_JS__39;
  9227. }
  9228. else {
  9229. i18n_38 = $localize `:@@ngb.pagination.previous␟6e52b6ee77a4848d899dd21b591c6fd499e3aef3␟6479320895410098858:«`;
  9230. } let i18n_40; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9231. const MSG_EXTERNAL_ngb_pagination_next$$FESM2015_NG_BOOTSTRAP_JS__41 = goog.getMsg("\u00BB");
  9232. i18n_40 = MSG_EXTERNAL_ngb_pagination_next$$FESM2015_NG_BOOTSTRAP_JS__41;
  9233. }
  9234. else {
  9235. i18n_40 = $localize `:@@ngb.pagination.next␟ba9cbb4ff311464308a3627e4f1c3345d9fe6d7d␟5458177150283468089:»`;
  9236. } let i18n_42; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9237. const MSG_EXTERNAL_ngb_pagination_last$$FESM2015_NG_BOOTSTRAP_JS__43 = goog.getMsg("\u00BB\u00BB");
  9238. i18n_42 = MSG_EXTERNAL_ngb_pagination_last$$FESM2015_NG_BOOTSTRAP_JS__43;
  9239. }
  9240. else {
  9241. i18n_42 = $localize `:@@ngb.pagination.last␟49f27a460bc97e7e00be5b37098bfa79884fc7d9␟5277020320267646988:»»`;
  9242. } let i18n_44; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9243. const MSG_EXTERNAL_ngb_pagination_first_aria$$FESM2015_NG_BOOTSTRAP_JS__45 = goog.getMsg("First");
  9244. i18n_44 = MSG_EXTERNAL_ngb_pagination_first_aria$$FESM2015_NG_BOOTSTRAP_JS__45;
  9245. }
  9246. else {
  9247. i18n_44 = $localize `:@@ngb.pagination.first-aria␟f2f852318759c6396b5d3d17031d53817d7b38cc␟2241508602425256033:First`;
  9248. } let i18n_47; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9249. const MSG_EXTERNAL_ngb_pagination_previous_aria$$FESM2015_NG_BOOTSTRAP_JS__48 = goog.getMsg("Previous");
  9250. i18n_47 = MSG_EXTERNAL_ngb_pagination_previous_aria$$FESM2015_NG_BOOTSTRAP_JS__48;
  9251. }
  9252. else {
  9253. i18n_47 = $localize `:@@ngb.pagination.previous-aria␟680d5c75b7fd8d37961083608b9fcdc4167b4c43␟4452427314943113135:Previous`;
  9254. } let i18n_52; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9255. const MSG_EXTERNAL_ngb_pagination_next_aria$$FESM2015_NG_BOOTSTRAP_JS__53 = goog.getMsg("Next");
  9256. i18n_52 = MSG_EXTERNAL_ngb_pagination_next_aria$$FESM2015_NG_BOOTSTRAP_JS__53;
  9257. }
  9258. else {
  9259. i18n_52 = $localize `:@@ngb.pagination.next-aria␟f732c304c7433e5a83ffcd862c3dce709a0f4982␟3885497195825665706:Next`;
  9260. } let i18n_54; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9261. const MSG_EXTERNAL_ngb_pagination_last_aria$$FESM2015_NG_BOOTSTRAP_JS__55 = goog.getMsg("Last");
  9262. i18n_54 = MSG_EXTERNAL_ngb_pagination_last_aria$$FESM2015_NG_BOOTSTRAP_JS__55;
  9263. }
  9264. else {
  9265. i18n_54 = $localize `:@@ngb.pagination.last-aria␟5c729788ba138508aca1bec050b610f7bf81db3e␟4882268002141858767:Last`;
  9266. } return [["first", ""], ["previous", ""], ["next", ""], ["last", ""], ["ellipsis", ""], ["defaultNumber", ""], ["class", "page-item", 3, "disabled", 4, "ngIf"], ["class", "page-item", 3, "active", "disabled", 4, "ngFor", "ngForOf"], ["aria-hidden", "true"], i18n_36, i18n_38, i18n_40, i18n_42, ["class", "sr-only", 4, "ngIf"], [1, "sr-only"], [1, "page-item"], ["aria-label", i18n_44, "href", "", 1, "page-link", 3, "click"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["aria-label", i18n_47, "href", "", 1, "page-link", 3, "click"], ["class", "page-link", "tabindex", "-1", "aria-disabled", "true", 4, "ngIf"], ["class", "page-link", "href", "", 3, "click", 4, "ngIf"], ["tabindex", "-1", "aria-disabled", "true", 1, "page-link"], ["href", "", 1, "page-link", 3, "click"], ["aria-label", i18n_52, "href", "", 1, "page-link", 3, "click"], ["aria-label", i18n_54, "href", "", 1, "page-link", 3, "click"]]; }, template: function NgbPagination_Template(rf, ctx) { if (rf & 1) {
  9267. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbPagination_ng_template_0_Template, 2, 0, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  9268. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbPagination_ng_template_2_Template, 2, 0, "ng-template", null, 1, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  9269. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, NgbPagination_ng_template_4_Template, 2, 0, "ng-template", null, 2, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  9270. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, NgbPagination_ng_template_6_Template, 2, 0, "ng-template", null, 3, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  9271. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, NgbPagination_ng_template_8_Template, 1, 0, "ng-template", null, 4, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  9272. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, NgbPagination_ng_template_10_Template, 2, 2, "ng-template", null, 5, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  9273. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](12, "ul");
  9274. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, NgbPagination_li_13_Template, 3, 9, "li", 6);
  9275. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, NgbPagination_li_14_Template, 3, 8, "li", 6);
  9276. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, NgbPagination_li_15_Template, 3, 7, "li", 7);
  9277. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](16, NgbPagination_li_16_Template, 3, 9, "li", 6);
  9278. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](17, NgbPagination_li_17_Template, 3, 9, "li", 6);
  9279. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  9280. } if (rf & 2) {
  9281. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](12);
  9282. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("pagination" + (ctx.size ? " pagination-" + ctx.size : ""));
  9283. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  9284. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.boundaryLinks);
  9285. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  9286. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.directionLinks);
  9287. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  9288. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.pages);
  9289. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  9290. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.directionLinks);
  9291. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  9292. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.boundaryLinks);
  9293. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"]], encapsulation: 2, changeDetection: 0 });
  9294. NgbPagination.ctorParameters = () => [
  9295. { type: NgbPaginationConfig }
  9296. ];
  9297. NgbPagination.propDecorators = {
  9298. tplEllipsis: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbPaginationEllipsis, { static: false },] }],
  9299. tplFirst: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbPaginationFirst, { static: false },] }],
  9300. tplLast: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbPaginationLast, { static: false },] }],
  9301. tplNext: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbPaginationNext, { static: false },] }],
  9302. tplNumber: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbPaginationNumber, { static: false },] }],
  9303. tplPrevious: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbPaginationPrevious, { static: false },] }],
  9304. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9305. boundaryLinks: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9306. directionLinks: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9307. ellipses: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9308. rotate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9309. collectionSize: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9310. maxSize: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9311. page: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9312. pageSize: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9313. pageChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  9314. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  9315. };
  9316. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPagination, [{
  9317. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  9318. args: [{
  9319. selector: 'ngb-pagination',
  9320. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  9321. host: { 'role': 'navigation' },
  9322. template: `
  9323. <ng-template #first><span aria-hidden="true" i18n="@@ngb.pagination.first">&laquo;&laquo;</span></ng-template>
  9324. <ng-template #previous><span aria-hidden="true" i18n="@@ngb.pagination.previous">&laquo;</span></ng-template>
  9325. <ng-template #next><span aria-hidden="true" i18n="@@ngb.pagination.next">&raquo;</span></ng-template>
  9326. <ng-template #last><span aria-hidden="true" i18n="@@ngb.pagination.last">&raquo;&raquo;</span></ng-template>
  9327. <ng-template #ellipsis>...</ng-template>
  9328. <ng-template #defaultNumber let-page let-currentPage="currentPage">
  9329. {{ page }}
  9330. <span *ngIf="page === currentPage" class="sr-only">(current)</span>
  9331. </ng-template>
  9332. <ul [class]="'pagination' + (size ? ' pagination-' + size : '')">
  9333. <li *ngIf="boundaryLinks" class="page-item"
  9334. [class.disabled]="previousDisabled()">
  9335. <a aria-label="First" i18n-aria-label="@@ngb.pagination.first-aria" class="page-link" href
  9336. (click)="selectPage(1); $event.preventDefault()" [attr.tabindex]="previousDisabled() ? '-1' : null"
  9337. [attr.aria-disabled]="previousDisabled() ? 'true' : null">
  9338. <ng-template [ngTemplateOutlet]="tplFirst?.templateRef || first"
  9339. [ngTemplateOutletContext]="{disabled: previousDisabled(), currentPage: page}"></ng-template>
  9340. </a>
  9341. </li>
  9342. <li *ngIf="directionLinks" class="page-item"
  9343. [class.disabled]="previousDisabled()">
  9344. <a aria-label="Previous" i18n-aria-label="@@ngb.pagination.previous-aria" class="page-link" href
  9345. (click)="selectPage(page-1); $event.preventDefault()" [attr.tabindex]="previousDisabled() ? '-1' : null"
  9346. [attr.aria-disabled]="previousDisabled() ? 'true' : null">
  9347. <ng-template [ngTemplateOutlet]="tplPrevious?.templateRef || previous"
  9348. [ngTemplateOutletContext]="{disabled: previousDisabled()}"></ng-template>
  9349. </a>
  9350. </li>
  9351. <li *ngFor="let pageNumber of pages" class="page-item" [class.active]="pageNumber === page"
  9352. [class.disabled]="isEllipsis(pageNumber) || disabled" [attr.aria-current]="(pageNumber === page ? 'page' : null)">
  9353. <a *ngIf="isEllipsis(pageNumber)" class="page-link" tabindex="-1" aria-disabled="true">
  9354. <ng-template [ngTemplateOutlet]="tplEllipsis?.templateRef || ellipsis"
  9355. [ngTemplateOutletContext]="{disabled: true, currentPage: page}"></ng-template>
  9356. </a>
  9357. <a *ngIf="!isEllipsis(pageNumber)" class="page-link" href (click)="selectPage(pageNumber); $event.preventDefault()"
  9358. [attr.tabindex]="disabled ? '-1' : null" [attr.aria-disabled]="disabled ? 'true' : null">
  9359. <ng-template [ngTemplateOutlet]="tplNumber?.templateRef || defaultNumber"
  9360. [ngTemplateOutletContext]="{disabled: disabled, $implicit: pageNumber, currentPage: page}"></ng-template>
  9361. </a>
  9362. </li>
  9363. <li *ngIf="directionLinks" class="page-item" [class.disabled]="nextDisabled()">
  9364. <a aria-label="Next" i18n-aria-label="@@ngb.pagination.next-aria" class="page-link" href
  9365. (click)="selectPage(page+1); $event.preventDefault()" [attr.tabindex]="nextDisabled() ? '-1' : null"
  9366. [attr.aria-disabled]="nextDisabled() ? 'true' : null">
  9367. <ng-template [ngTemplateOutlet]="tplNext?.templateRef || next"
  9368. [ngTemplateOutletContext]="{disabled: nextDisabled(), currentPage: page}"></ng-template>
  9369. </a>
  9370. </li>
  9371. <li *ngIf="boundaryLinks" class="page-item" [class.disabled]="nextDisabled()">
  9372. <a aria-label="Last" i18n-aria-label="@@ngb.pagination.last-aria" class="page-link" href
  9373. (click)="selectPage(pageCount); $event.preventDefault()" [attr.tabindex]="nextDisabled() ? '-1' : null"
  9374. [attr.aria-disabled]="nextDisabled() ? 'true' : null">
  9375. <ng-template [ngTemplateOutlet]="tplLast?.templateRef || last"
  9376. [ngTemplateOutletContext]="{disabled: nextDisabled(), currentPage: page}"></ng-template>
  9377. </a>
  9378. </li>
  9379. </ul>
  9380. `
  9381. }]
  9382. }], function () { return [{ type: NgbPaginationConfig }]; }, { page: [{
  9383. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9384. }], pageChange: [{
  9385. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  9386. }], disabled: [{
  9387. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9388. }], boundaryLinks: [{
  9389. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9390. }], directionLinks: [{
  9391. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9392. }], ellipses: [{
  9393. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9394. }], maxSize: [{
  9395. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9396. }], pageSize: [{
  9397. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9398. }], rotate: [{
  9399. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9400. }], size: [{
  9401. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9402. }], tplEllipsis: [{
  9403. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  9404. args: [NgbPaginationEllipsis, { static: false }]
  9405. }], tplFirst: [{
  9406. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  9407. args: [NgbPaginationFirst, { static: false }]
  9408. }], tplLast: [{
  9409. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  9410. args: [NgbPaginationLast, { static: false }]
  9411. }], tplNext: [{
  9412. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  9413. args: [NgbPaginationNext, { static: false }]
  9414. }], tplNumber: [{
  9415. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  9416. args: [NgbPaginationNumber, { static: false }]
  9417. }], tplPrevious: [{
  9418. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  9419. args: [NgbPaginationPrevious, { static: false }]
  9420. }], collectionSize: [{
  9421. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9422. }] }); })();
  9423. const DIRECTIVES = [
  9424. NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber,
  9425. NgbPaginationPrevious
  9426. ];
  9427. class NgbPaginationModule {
  9428. }
  9429. NgbPaginationModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbPaginationModule });
  9430. NgbPaginationModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbPaginationModule_Factory(t) { return new (t || NgbPaginationModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  9431. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbPaginationModule, { declarations: function () { return [NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbPagination, NgbPaginationEllipsis, NgbPaginationFirst, NgbPaginationLast, NgbPaginationNext, NgbPaginationNumber, NgbPaginationPrevious]; } }); })();
  9432. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPaginationModule, [{
  9433. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  9434. args: [{ declarations: DIRECTIVES, exports: DIRECTIVES, imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]] }]
  9435. }], null, null); })();
  9436. class Trigger {
  9437. constructor(open, close) {
  9438. this.open = open;
  9439. this.close = close;
  9440. if (!close) {
  9441. this.close = open;
  9442. }
  9443. }
  9444. isManual() { return this.open === 'manual' || this.close === 'manual'; }
  9445. }
  9446. const DEFAULT_ALIASES = {
  9447. 'hover': ['mouseenter', 'mouseleave'],
  9448. 'focus': ['focusin', 'focusout'],
  9449. };
  9450. function parseTriggers(triggers, aliases = DEFAULT_ALIASES) {
  9451. const trimmedTriggers = (triggers || '').trim();
  9452. if (trimmedTriggers.length === 0) {
  9453. return [];
  9454. }
  9455. const parsedTriggers = trimmedTriggers.split(/\s+/).map(trigger => trigger.split(':')).map((triggerPair) => {
  9456. let alias = aliases[triggerPair[0]] || triggerPair;
  9457. return new Trigger(alias[0], alias[1]);
  9458. });
  9459. const manualTriggers = parsedTriggers.filter(triggerPair => triggerPair.isManual());
  9460. if (manualTriggers.length > 1) {
  9461. throw 'Triggers parse error: only one manual trigger is allowed';
  9462. }
  9463. if (manualTriggers.length === 1 && parsedTriggers.length > 1) {
  9464. throw 'Triggers parse error: manual trigger can\'t be mixed with other triggers';
  9465. }
  9466. return parsedTriggers;
  9467. }
  9468. function observeTriggers(renderer, nativeElement, triggers, isOpenedFn) {
  9469. return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"](subscriber => {
  9470. const listeners = [];
  9471. const openFn = () => subscriber.next(true);
  9472. const closeFn = () => subscriber.next(false);
  9473. const toggleFn = () => subscriber.next(!isOpenedFn());
  9474. triggers.forEach((trigger) => {
  9475. if (trigger.open === trigger.close) {
  9476. listeners.push(renderer.listen(nativeElement, trigger.open, toggleFn));
  9477. }
  9478. else {
  9479. listeners.push(renderer.listen(nativeElement, trigger.open, openFn), renderer.listen(nativeElement, trigger.close, closeFn));
  9480. }
  9481. });
  9482. return () => { listeners.forEach(unsubscribeFn => unsubscribeFn()); };
  9483. });
  9484. }
  9485. const delayOrNoop = (time) => time > 0 ? Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["delay"])(time) : (a) => a;
  9486. const ɵ0$5 = delayOrNoop;
  9487. function triggerDelay(openDelay, closeDelay, isOpenedFn) {
  9488. return (input$) => {
  9489. let pending = null;
  9490. const filteredInput$ = input$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(open => ({ open })), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(event => {
  9491. const currentlyOpen = isOpenedFn();
  9492. if (currentlyOpen !== event.open && (!pending || pending.open === currentlyOpen)) {
  9493. pending = event;
  9494. return true;
  9495. }
  9496. if (pending && pending.open !== event.open) {
  9497. pending = null;
  9498. }
  9499. return false;
  9500. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["share"])());
  9501. const delayedOpen$ = filteredInput$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(event => event.open), delayOrNoop(openDelay));
  9502. const delayedClose$ = filteredInput$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(event => !event.open), delayOrNoop(closeDelay));
  9503. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["merge"])(delayedOpen$, delayedClose$)
  9504. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(event => {
  9505. if (event === pending) {
  9506. pending = null;
  9507. return event.open !== isOpenedFn();
  9508. }
  9509. return false;
  9510. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(event => event.open));
  9511. };
  9512. }
  9513. function listenToTriggers(renderer, nativeElement, triggers, isOpenedFn, openFn, closeFn, openDelay = 0, closeDelay = 0) {
  9514. const parsedTriggers = parseTriggers(triggers);
  9515. if (parsedTriggers.length === 1 && parsedTriggers[0].isManual()) {
  9516. return () => { };
  9517. }
  9518. const subscription = observeTriggers(renderer, nativeElement, parsedTriggers, isOpenedFn)
  9519. .pipe(triggerDelay(openDelay, closeDelay, isOpenedFn))
  9520. .subscribe(open => (open ? openFn() : closeFn()));
  9521. return () => subscription.unsubscribe();
  9522. }
  9523. /**
  9524. * A configuration service for the [`NgbPopover`](#/components/popover/api#NgbPopover) component.
  9525. *
  9526. * You can inject this service, typically in your root component, and customize the values of its properties in
  9527. * order to provide default values for all the popovers used in the application.
  9528. */
  9529. class NgbPopoverConfig {
  9530. constructor(ngbConfig) {
  9531. this.autoClose = true;
  9532. this.placement = 'auto';
  9533. this.triggers = 'click';
  9534. this.disablePopover = false;
  9535. this.openDelay = 0;
  9536. this.closeDelay = 0;
  9537. this.animation = ngbConfig.animation;
  9538. }
  9539. }
  9540. NgbPopoverConfig.ɵfac = function NgbPopoverConfig_Factory(t) { return new (t || NgbPopoverConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  9541. NgbPopoverConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbPopoverConfig_Factory() { return new NgbPopoverConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbPopoverConfig, providedIn: "root" });
  9542. NgbPopoverConfig.ctorParameters = () => [
  9543. { type: NgbConfig }
  9544. ];
  9545. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPopoverConfig, [{
  9546. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  9547. args: [{ providedIn: 'root' }]
  9548. }], function () { return [{ type: NgbConfig }]; }, null); })();
  9549. let nextId$3 = 0;
  9550. class NgbPopoverWindow {
  9551. isTitleTemplate() { return this.title instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]; }
  9552. }
  9553. NgbPopoverWindow.ɵfac = function NgbPopoverWindow_Factory(t) { return new (t || NgbPopoverWindow)(); };
  9554. NgbPopoverWindow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbPopoverWindow, selectors: [["ngb-popover-window"]], hostAttrs: ["role", "tooltip"], hostVars: 5, hostBindings: function NgbPopoverWindow_HostBindings(rf, ctx) { if (rf & 2) {
  9555. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.id);
  9556. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("popover" + (ctx.popoverClass ? " " + ctx.popoverClass : ""));
  9557. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("fade", ctx.animation);
  9558. } }, inputs: { animation: "animation", title: "title", id: "id", popoverClass: "popoverClass", context: "context" }, ngContentSelectors: _c5, decls: 4, vars: 1, consts: [[1, "arrow"], ["class", "popover-header", 4, "ngIf"], [1, "popover-body"], [1, "popover-header"], ["simpleTitle", ""], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function NgbPopoverWindow_Template(rf, ctx) { if (rf & 1) {
  9559. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  9560. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 0);
  9561. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbPopoverWindow_h3_1_Template, 4, 2, "h3", 1);
  9562. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  9563. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](3);
  9564. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  9565. } if (rf & 2) {
  9566. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  9567. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.title);
  9568. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"]], styles: ["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{margin-top:-.5rem;top:50%}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{bottom:.7em;top:auto}"], encapsulation: 2, changeDetection: 0 });
  9569. NgbPopoverWindow.propDecorators = {
  9570. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9571. title: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9572. id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9573. popoverClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9574. context: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  9575. };
  9576. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPopoverWindow, [{
  9577. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  9578. args: [{
  9579. selector: 'ngb-popover-window',
  9580. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  9581. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  9582. host: {
  9583. '[class]': '"popover" + (popoverClass ? " " + popoverClass : "")',
  9584. '[class.fade]': 'animation',
  9585. 'role': 'tooltip',
  9586. '[id]': 'id'
  9587. },
  9588. template: `
  9589. <div class="arrow"></div>
  9590. <h3 class="popover-header" *ngIf="title">
  9591. <ng-template #simpleTitle>{{title}}</ng-template>
  9592. <ng-template [ngTemplateOutlet]="isTitleTemplate() ? $any(title) : simpleTitle" [ngTemplateOutletContext]="context"></ng-template>
  9593. </h3>
  9594. <div class="popover-body"><ng-content></ng-content></div>`,
  9595. styles: ["ngb-popover-window.bs-popover-bottom>.arrow,ngb-popover-window.bs-popover-top>.arrow{left:50%;margin-left:-.5rem}ngb-popover-window.bs-popover-bottom-left>.arrow,ngb-popover-window.bs-popover-top-left>.arrow{left:2em}ngb-popover-window.bs-popover-bottom-right>.arrow,ngb-popover-window.bs-popover-top-right>.arrow{left:auto;right:2em}ngb-popover-window.bs-popover-left>.arrow,ngb-popover-window.bs-popover-right>.arrow{margin-top:-.5rem;top:50%}ngb-popover-window.bs-popover-left-top>.arrow,ngb-popover-window.bs-popover-right-top>.arrow{top:.7em}ngb-popover-window.bs-popover-left-bottom>.arrow,ngb-popover-window.bs-popover-right-bottom>.arrow{bottom:.7em;top:auto}"]
  9596. }]
  9597. }], null, { animation: [{
  9598. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9599. }], title: [{
  9600. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9601. }], id: [{
  9602. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9603. }], popoverClass: [{
  9604. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9605. }], context: [{
  9606. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9607. }] }); })();
  9608. /**
  9609. * A lightweight and extensible directive for fancy popover creation.
  9610. */
  9611. class NgbPopover {
  9612. constructor(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, applicationRef) {
  9613. this._elementRef = _elementRef;
  9614. this._renderer = _renderer;
  9615. this._ngZone = _ngZone;
  9616. this._document = _document;
  9617. this._changeDetector = _changeDetector;
  9618. /**
  9619. * An event emitted when the popover opening animation has finished. Contains no payload.
  9620. */
  9621. this.shown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  9622. /**
  9623. * An event emitted when the popover closing animation has finished. Contains no payload.
  9624. *
  9625. * At this point popover is not in the DOM anymore.
  9626. */
  9627. this.hidden = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  9628. this._ngbPopoverWindowId = `ngb-popover-${nextId$3++}`;
  9629. this._windowRef = null;
  9630. this.animation = config.animation;
  9631. this.autoClose = config.autoClose;
  9632. this.placement = config.placement;
  9633. this.triggers = config.triggers;
  9634. this.container = config.container;
  9635. this.disablePopover = config.disablePopover;
  9636. this.popoverClass = config.popoverClass;
  9637. this.openDelay = config.openDelay;
  9638. this.closeDelay = config.closeDelay;
  9639. this._popupService = new PopupService(NgbPopoverWindow, injector, viewContainerRef, _renderer, this._ngZone, componentFactoryResolver, applicationRef);
  9640. this._zoneSubscription = _ngZone.onStable.subscribe(() => {
  9641. if (this._windowRef) {
  9642. positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body', 'bs-popover');
  9643. }
  9644. });
  9645. }
  9646. _isDisabled() {
  9647. if (this.disablePopover) {
  9648. return true;
  9649. }
  9650. if (!this.ngbPopover && !this.popoverTitle) {
  9651. return true;
  9652. }
  9653. return false;
  9654. }
  9655. /**
  9656. * Opens the popover.
  9657. *
  9658. * This is considered to be a "manual" triggering.
  9659. * The `context` is an optional value to be injected into the popover template when it is created.
  9660. */
  9661. open(context) {
  9662. if (!this._windowRef && !this._isDisabled()) {
  9663. // this type assertion is safe because otherwise _isDisabled would return true
  9664. const { windowRef, transition$ } = this._popupService.open(this.ngbPopover, context, this.animation);
  9665. this._windowRef = windowRef;
  9666. this._windowRef.instance.animation = this.animation;
  9667. this._windowRef.instance.title = this.popoverTitle;
  9668. this._windowRef.instance.context = context;
  9669. this._windowRef.instance.popoverClass = this.popoverClass;
  9670. this._windowRef.instance.id = this._ngbPopoverWindowId;
  9671. this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbPopoverWindowId);
  9672. if (this.container === 'body') {
  9673. this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);
  9674. }
  9675. // We need to detect changes, because we don't know where .open() might be called from.
  9676. // Ex. opening popover from one of lifecycle hooks that run after the CD
  9677. // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception
  9678. this._windowRef.changeDetectorRef.detectChanges();
  9679. // We need to mark for check, because popover won't work inside the OnPush component.
  9680. // Ex. when we use expression like `{{ popover.isOpen() : 'opened' : 'closed' }}`
  9681. // inside the template of an OnPush component and we change the popover from
  9682. // open -> closed, the expression in question won't be updated unless we explicitly
  9683. // mark the parent component to be checked.
  9684. this._windowRef.changeDetectorRef.markForCheck();
  9685. ngbAutoClose(this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden, [this._windowRef.location.nativeElement]);
  9686. transition$.subscribe(() => this.shown.emit());
  9687. }
  9688. }
  9689. /**
  9690. * Closes the popover.
  9691. *
  9692. * This is considered to be a "manual" triggering of the popover.
  9693. */
  9694. close() {
  9695. if (this._windowRef) {
  9696. this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');
  9697. this._popupService.close(this.animation).subscribe(() => {
  9698. this._windowRef = null;
  9699. this.hidden.emit();
  9700. this._changeDetector.markForCheck();
  9701. });
  9702. }
  9703. }
  9704. /**
  9705. * Toggles the popover.
  9706. *
  9707. * This is considered to be a "manual" triggering of the popover.
  9708. */
  9709. toggle() {
  9710. if (this._windowRef) {
  9711. this.close();
  9712. }
  9713. else {
  9714. this.open();
  9715. }
  9716. }
  9717. /**
  9718. * Returns `true`, if the popover is currently shown.
  9719. */
  9720. isOpen() { return this._windowRef != null; }
  9721. ngOnInit() {
  9722. this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay);
  9723. }
  9724. ngOnChanges({ ngbPopover, popoverTitle, disablePopover, popoverClass }) {
  9725. if (popoverClass && this.isOpen()) {
  9726. this._windowRef.instance.popoverClass = popoverClass.currentValue;
  9727. }
  9728. // close popover if title and content become empty, or disablePopover set to true
  9729. if ((ngbPopover || popoverTitle || disablePopover) && this._isDisabled()) {
  9730. this.close();
  9731. }
  9732. }
  9733. ngOnDestroy() {
  9734. this.close();
  9735. // This check is needed as it might happen that ngOnDestroy is called before ngOnInit
  9736. // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199
  9737. if (this._unregisterListenersFn) {
  9738. this._unregisterListenersFn();
  9739. }
  9740. this._zoneSubscription.unsubscribe();
  9741. }
  9742. }
  9743. NgbPopover.ɵfac = function NgbPopover_Factory(t) { return new (t || NgbPopover)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbPopoverConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"])); };
  9744. NgbPopover.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbPopover, selectors: [["", "ngbPopover", ""]], inputs: { animation: "animation", autoClose: "autoClose", placement: "placement", triggers: "triggers", container: "container", disablePopover: "disablePopover", popoverClass: "popoverClass", openDelay: "openDelay", closeDelay: "closeDelay", ngbPopover: "ngbPopover", popoverTitle: "popoverTitle" }, outputs: { shown: "shown", hidden: "hidden" }, exportAs: ["ngbPopover"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  9745. NgbPopover.ctorParameters = () => [
  9746. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  9747. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  9748. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] },
  9749. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] },
  9750. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  9751. { type: NgbPopoverConfig },
  9752. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  9753. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] },
  9754. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  9755. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"] }
  9756. ];
  9757. NgbPopover.propDecorators = {
  9758. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9759. autoClose: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9760. ngbPopover: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9761. popoverTitle: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9762. placement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9763. triggers: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9764. container: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9765. disablePopover: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9766. popoverClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9767. openDelay: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9768. closeDelay: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9769. shown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  9770. hidden: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  9771. };
  9772. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPopover, [{
  9773. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  9774. args: [{ selector: '[ngbPopover]', exportAs: 'ngbPopover' }]
  9775. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: NgbPopoverConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: undefined, decorators: [{
  9776. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  9777. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  9778. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"] }]; }, { shown: [{
  9779. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  9780. }], hidden: [{
  9781. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  9782. }], animation: [{
  9783. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9784. }], autoClose: [{
  9785. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9786. }], placement: [{
  9787. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9788. }], triggers: [{
  9789. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9790. }], container: [{
  9791. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9792. }], disablePopover: [{
  9793. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9794. }], popoverClass: [{
  9795. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9796. }], openDelay: [{
  9797. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9798. }], closeDelay: [{
  9799. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9800. }], ngbPopover: [{
  9801. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9802. }], popoverTitle: [{
  9803. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9804. }] }); })();
  9805. class NgbPopoverModule {
  9806. }
  9807. NgbPopoverModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbPopoverModule });
  9808. NgbPopoverModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbPopoverModule_Factory(t) { return new (t || NgbPopoverModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  9809. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbPopoverModule, { declarations: function () { return [NgbPopover, NgbPopoverWindow]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbPopover]; } }); })();
  9810. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbPopoverModule, [{
  9811. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  9812. args: [{
  9813. declarations: [NgbPopover, NgbPopoverWindow],
  9814. exports: [NgbPopover],
  9815. imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]],
  9816. entryComponents: [NgbPopoverWindow]
  9817. }]
  9818. }], null, null); })();
  9819. /**
  9820. * A configuration service for the [`NgbProgressbar`](#/components/progressbar/api#NgbProgressbar) component.
  9821. *
  9822. * You can inject this service, typically in your root component, and customize the values of its properties in
  9823. * order to provide default values for all the progress bars used in the application.
  9824. */
  9825. class NgbProgressbarConfig {
  9826. constructor() {
  9827. this.max = 100;
  9828. this.animated = false;
  9829. this.striped = false;
  9830. this.showValue = false;
  9831. }
  9832. }
  9833. NgbProgressbarConfig.ɵfac = function NgbProgressbarConfig_Factory(t) { return new (t || NgbProgressbarConfig)(); };
  9834. NgbProgressbarConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbProgressbarConfig_Factory() { return new NgbProgressbarConfig(); }, token: NgbProgressbarConfig, providedIn: "root" });
  9835. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbProgressbarConfig, [{
  9836. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  9837. args: [{ providedIn: 'root' }]
  9838. }], function () { return []; }, null); })();
  9839. /**
  9840. * A directive that provides feedback on the progress of a workflow or an action.
  9841. */
  9842. class NgbProgressbar {
  9843. constructor(config) {
  9844. /**
  9845. * The current value for the progress bar.
  9846. *
  9847. * Should be in the `[0, max]` range.
  9848. */
  9849. this.value = 0;
  9850. this.max = config.max;
  9851. this.animated = config.animated;
  9852. this.striped = config.striped;
  9853. this.textType = config.textType;
  9854. this.type = config.type;
  9855. this.showValue = config.showValue;
  9856. this.height = config.height;
  9857. }
  9858. /**
  9859. * The maximal value to be displayed in the progress bar.
  9860. *
  9861. * Should be a positive number. Will default to 100 otherwise.
  9862. */
  9863. set max(max) {
  9864. this._max = !isNumber(max) || max <= 0 ? 100 : max;
  9865. }
  9866. get max() { return this._max; }
  9867. getValue() { return getValueInRange(this.value, this.max); }
  9868. getPercentValue() { return 100 * this.getValue() / this.max; }
  9869. }
  9870. NgbProgressbar.ɵfac = function NgbProgressbar_Factory(t) { return new (t || NgbProgressbar)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbProgressbarConfig)); };
  9871. NgbProgressbar.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbProgressbar, selectors: [["ngb-progressbar"]], hostAttrs: [1, "progress"], hostVars: 2, hostBindings: function NgbProgressbar_HostBindings(rf, ctx) { if (rf & 2) {
  9872. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("height", ctx.height);
  9873. } }, inputs: { value: "value", max: "max", animated: "animated", striped: "striped", textType: "textType", type: "type", showValue: "showValue", height: "height" }, ngContentSelectors: _c5, decls: 3, vars: 11, consts: function () { let i18n_56; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  9874. const MSG_EXTERNAL_ngb_progressbar_value$$FESM2015_NG_BOOTSTRAP_JS__57 = goog.getMsg("{$interpolation}", { "interpolation": "\uFFFD0\uFFFD" });
  9875. i18n_56 = MSG_EXTERNAL_ngb_progressbar_value$$FESM2015_NG_BOOTSTRAP_JS__57;
  9876. }
  9877. else {
  9878. i18n_56 = $localize `:@@ngb.progressbar.value␟f8e9a947b9db4252c0e9905765338712f2fd032f␟3720830768741091151:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;
  9879. } return [["role", "progressbar", "aria-valuemin", "0"], [4, "ngIf"], i18n_56]; }, template: function NgbProgressbar_Template(rf, ctx) { if (rf & 1) {
  9880. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  9881. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  9882. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgbProgressbar_span_1_Template, 3, 3, "span", 1);
  9883. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2);
  9884. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  9885. } if (rf & 2) {
  9886. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate4"]("progress-bar", ctx.type ? " bg-" + ctx.type : "", "", ctx.textType ? " text-" + ctx.textType : "", "\n ", ctx.animated ? " progress-bar-animated" : "", "", ctx.striped ? " progress-bar-striped" : "", "");
  9887. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("width", ctx.getPercentValue(), "%");
  9888. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-valuenow", ctx.getValue())("aria-valuemax", ctx.max);
  9889. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  9890. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showValue);
  9891. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"]], pipes: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["PercentPipe"]], encapsulation: 2, changeDetection: 0 });
  9892. NgbProgressbar.ctorParameters = () => [
  9893. { type: NgbProgressbarConfig }
  9894. ];
  9895. NgbProgressbar.propDecorators = {
  9896. max: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9897. animated: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9898. striped: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9899. showValue: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9900. textType: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9901. type: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9902. value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  9903. height: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['style.height',] }]
  9904. };
  9905. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbProgressbar, [{
  9906. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  9907. args: [{
  9908. selector: 'ngb-progressbar',
  9909. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  9910. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  9911. host: { class: 'progress' },
  9912. template: `
  9913. <div class="progress-bar{{type ? ' bg-' + type : ''}}{{textType ? ' text-' + textType : ''}}
  9914. {{animated ? ' progress-bar-animated' : ''}}{{striped ? ' progress-bar-striped' : ''}}"
  9915. role="progressbar" [style.width.%]="getPercentValue()"
  9916. [attr.aria-valuenow]="getValue()" aria-valuemin="0" [attr.aria-valuemax]="max">
  9917. <span *ngIf="showValue" i18n="@@ngb.progressbar.value">{{getValue() / max | percent}}</span><ng-content></ng-content>
  9918. </div>
  9919. `
  9920. }]
  9921. }], function () { return [{ type: NgbProgressbarConfig }]; }, { value: [{
  9922. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9923. }], max: [{
  9924. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9925. }], animated: [{
  9926. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9927. }], striped: [{
  9928. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9929. }], textType: [{
  9930. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9931. }], type: [{
  9932. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9933. }], showValue: [{
  9934. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9935. }], height: [{
  9936. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  9937. }, {
  9938. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  9939. args: ['style.height']
  9940. }] }); })();
  9941. class NgbProgressbarModule {
  9942. }
  9943. NgbProgressbarModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbProgressbarModule });
  9944. NgbProgressbarModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbProgressbarModule_Factory(t) { return new (t || NgbProgressbarModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  9945. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbProgressbarModule, { declarations: function () { return [NgbProgressbar]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbProgressbar]; } }); })();
  9946. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbProgressbarModule, [{
  9947. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  9948. args: [{ declarations: [NgbProgressbar], exports: [NgbProgressbar], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]] }]
  9949. }], null, null); })();
  9950. /**
  9951. * A configuration service for the [`NgbRating`](#/components/rating/api#NgbRating) component.
  9952. *
  9953. * You can inject this service, typically in your root component, and customize the values of its properties in
  9954. * order to provide default values for all the ratings used in the application.
  9955. */
  9956. class NgbRatingConfig {
  9957. constructor() {
  9958. this.max = 10;
  9959. this.readonly = false;
  9960. this.resettable = false;
  9961. }
  9962. }
  9963. NgbRatingConfig.ɵfac = function NgbRatingConfig_Factory(t) { return new (t || NgbRatingConfig)(); };
  9964. NgbRatingConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbRatingConfig_Factory() { return new NgbRatingConfig(); }, token: NgbRatingConfig, providedIn: "root" });
  9965. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbRatingConfig, [{
  9966. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  9967. args: [{ providedIn: 'root' }]
  9968. }], function () { return []; }, null); })();
  9969. const NGB_RATING_VALUE_ACCESSOR = {
  9970. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALUE_ACCESSOR"],
  9971. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbRating),
  9972. multi: true
  9973. };
  9974. /**
  9975. * A directive that helps visualising and interacting with a star rating bar.
  9976. */
  9977. class NgbRating {
  9978. constructor(config, _changeDetectorRef) {
  9979. this._changeDetectorRef = _changeDetectorRef;
  9980. this.contexts = [];
  9981. this.disabled = false;
  9982. /**
  9983. * An event emitted when the user is hovering over a given rating.
  9984. *
  9985. * Event payload equals to the rating being hovered over.
  9986. */
  9987. this.hover = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  9988. /**
  9989. * An event emitted when the user stops hovering over a given rating.
  9990. *
  9991. * Event payload equals to the rating of the last item being hovered over.
  9992. */
  9993. this.leave = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  9994. /**
  9995. * An event emitted when the user selects a new rating.
  9996. *
  9997. * Event payload equals to the newly selected rating.
  9998. */
  9999. this.rateChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"](true);
  10000. this.onChange = (_) => { };
  10001. this.onTouched = () => { };
  10002. this.max = config.max;
  10003. this.readonly = config.readonly;
  10004. }
  10005. ariaValueText() { return `${this.nextRate} out of ${this.max}`; }
  10006. isInteractive() { return !this.readonly && !this.disabled; }
  10007. enter(value) {
  10008. if (this.isInteractive()) {
  10009. this._updateState(value);
  10010. }
  10011. this.hover.emit(value);
  10012. }
  10013. handleBlur() { this.onTouched(); }
  10014. handleClick(value) {
  10015. if (this.isInteractive()) {
  10016. this.update(this.resettable && this.rate === value ? 0 : value);
  10017. }
  10018. }
  10019. handleKeyDown(event) {
  10020. // tslint:disable-next-line:deprecation
  10021. switch (event.which) {
  10022. case Key.ArrowDown:
  10023. case Key.ArrowLeft:
  10024. this.update(this.rate - 1);
  10025. break;
  10026. case Key.ArrowUp:
  10027. case Key.ArrowRight:
  10028. this.update(this.rate + 1);
  10029. break;
  10030. case Key.Home:
  10031. this.update(0);
  10032. break;
  10033. case Key.End:
  10034. this.update(this.max);
  10035. break;
  10036. default:
  10037. return;
  10038. }
  10039. // note 'return' in default case
  10040. event.preventDefault();
  10041. }
  10042. ngOnChanges(changes) {
  10043. if (changes['rate']) {
  10044. this.update(this.rate);
  10045. }
  10046. }
  10047. ngOnInit() {
  10048. this.contexts = Array.from({ length: this.max }, (v, k) => ({ fill: 0, index: k }));
  10049. this._updateState(this.rate);
  10050. }
  10051. registerOnChange(fn) { this.onChange = fn; }
  10052. registerOnTouched(fn) { this.onTouched = fn; }
  10053. reset() {
  10054. this.leave.emit(this.nextRate);
  10055. this._updateState(this.rate);
  10056. }
  10057. setDisabledState(isDisabled) { this.disabled = isDisabled; }
  10058. update(value, internalChange = true) {
  10059. const newRate = getValueInRange(value, this.max, 0);
  10060. if (this.isInteractive() && this.rate !== newRate) {
  10061. this.rate = newRate;
  10062. this.rateChange.emit(this.rate);
  10063. }
  10064. if (internalChange) {
  10065. this.onChange(this.rate);
  10066. this.onTouched();
  10067. }
  10068. this._updateState(this.rate);
  10069. }
  10070. writeValue(value) {
  10071. this.update(value, false);
  10072. this._changeDetectorRef.markForCheck();
  10073. }
  10074. _updateState(nextValue) {
  10075. this.nextRate = nextValue;
  10076. this.contexts.forEach((context, index) => context.fill = Math.round(getValueInRange(nextValue - index, 1, 0) * 100));
  10077. }
  10078. }
  10079. NgbRating.ɵfac = function NgbRating_Factory(t) { return new (t || NgbRating)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbRatingConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); };
  10080. NgbRating.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbRating, selectors: [["ngb-rating"]], contentQueries: function NgbRating_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  10081. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], true);
  10082. } if (rf & 2) {
  10083. let _t;
  10084. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.starTemplateFromContent = _t.first);
  10085. } }, hostAttrs: ["role", "slider", "aria-valuemin", "0", 1, "d-inline-flex"], hostVars: 5, hostBindings: function NgbRating_HostBindings(rf, ctx) { if (rf & 1) {
  10086. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("blur", function NgbRating_blur_HostBindingHandler() { return ctx.handleBlur(); })("keydown", function NgbRating_keydown_HostBindingHandler($event) { return ctx.handleKeyDown($event); })("mouseleave", function NgbRating_mouseleave_HostBindingHandler() { return ctx.reset(); });
  10087. } if (rf & 2) {
  10088. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("tabindex", ctx.disabled ? -1 : 0);
  10089. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-valuemax", ctx.max)("aria-valuenow", ctx.nextRate)("aria-valuetext", ctx.ariaValueText())("aria-disabled", ctx.readonly ? true : null);
  10090. } }, inputs: { max: "max", readonly: "readonly", rate: "rate", resettable: "resettable", starTemplate: "starTemplate" }, outputs: { hover: "hover", leave: "leave", rateChange: "rateChange" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NGB_RATING_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 3, vars: 1, consts: [["t", ""], ["ngFor", "", 3, "ngForOf"], [1, "sr-only"], [3, "mouseenter", "click"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function NgbRating_Template(rf, ctx) { if (rf & 1) {
  10091. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbRating_ng_template_0_Template, 1, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  10092. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbRating_ng_template_2_Template, 4, 5, "ng-template", 1);
  10093. } if (rf & 2) {
  10094. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  10095. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.contexts);
  10096. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"]], encapsulation: 2, changeDetection: 0 });
  10097. NgbRating.ctorParameters = () => [
  10098. { type: NgbRatingConfig },
  10099. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  10100. ];
  10101. NgbRating.propDecorators = {
  10102. max: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10103. rate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10104. readonly: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10105. resettable: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10106. starTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10107. starTemplateFromContent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], { static: false },] }],
  10108. hover: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  10109. leave: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  10110. rateChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  10111. };
  10112. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbRating, [{
  10113. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  10114. args: [{
  10115. selector: 'ngb-rating',
  10116. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  10117. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  10118. host: {
  10119. 'class': 'd-inline-flex',
  10120. '[tabindex]': 'disabled ? -1 : 0',
  10121. 'role': 'slider',
  10122. 'aria-valuemin': '0',
  10123. '[attr.aria-valuemax]': 'max',
  10124. '[attr.aria-valuenow]': 'nextRate',
  10125. '[attr.aria-valuetext]': 'ariaValueText()',
  10126. '[attr.aria-disabled]': 'readonly ? true : null',
  10127. '(blur)': 'handleBlur()',
  10128. '(keydown)': 'handleKeyDown($event)',
  10129. '(mouseleave)': 'reset()'
  10130. },
  10131. template: `
  10132. <ng-template #t let-fill="fill">{{ fill === 100 ? '&#9733;' : '&#9734;' }}</ng-template>
  10133. <ng-template ngFor [ngForOf]="contexts" let-index="index">
  10134. <span class="sr-only">({{ index < nextRate ? '*' : ' ' }})</span>
  10135. <span (mouseenter)="enter(index + 1)" (click)="handleClick(index + 1)" [style.cursor]="isInteractive() ? 'pointer' : 'default'">
  10136. <ng-template [ngTemplateOutlet]="starTemplate || starTemplateFromContent || t" [ngTemplateOutletContext]="contexts[index]">
  10137. </ng-template>
  10138. </span>
  10139. </ng-template>
  10140. `,
  10141. providers: [NGB_RATING_VALUE_ACCESSOR]
  10142. }]
  10143. }], function () { return [{ type: NgbRatingConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, { hover: [{
  10144. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  10145. }], leave: [{
  10146. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  10147. }], rateChange: [{
  10148. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  10149. }], max: [{
  10150. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10151. }], readonly: [{
  10152. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10153. }], rate: [{
  10154. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10155. }], resettable: [{
  10156. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10157. }], starTemplate: [{
  10158. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10159. }], starTemplateFromContent: [{
  10160. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  10161. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], { static: false }]
  10162. }] }); })();
  10163. class NgbRatingModule {
  10164. }
  10165. NgbRatingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbRatingModule });
  10166. NgbRatingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbRatingModule_Factory(t) { return new (t || NgbRatingModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  10167. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbRatingModule, { declarations: function () { return [NgbRating]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbRating]; } }); })();
  10168. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbRatingModule, [{
  10169. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  10170. args: [{ declarations: [NgbRating], exports: [NgbRating], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]] }]
  10171. }], null, null); })();
  10172. class NgbTime {
  10173. constructor(hour, minute, second) {
  10174. this.hour = toInteger(hour);
  10175. this.minute = toInteger(minute);
  10176. this.second = toInteger(second);
  10177. }
  10178. changeHour(step = 1) { this.updateHour((isNaN(this.hour) ? 0 : this.hour) + step); }
  10179. updateHour(hour) {
  10180. if (isNumber(hour)) {
  10181. this.hour = (hour < 0 ? 24 + hour : hour) % 24;
  10182. }
  10183. else {
  10184. this.hour = NaN;
  10185. }
  10186. }
  10187. changeMinute(step = 1) { this.updateMinute((isNaN(this.minute) ? 0 : this.minute) + step); }
  10188. updateMinute(minute) {
  10189. if (isNumber(minute)) {
  10190. this.minute = minute % 60 < 0 ? 60 + minute % 60 : minute % 60;
  10191. this.changeHour(Math.floor(minute / 60));
  10192. }
  10193. else {
  10194. this.minute = NaN;
  10195. }
  10196. }
  10197. changeSecond(step = 1) { this.updateSecond((isNaN(this.second) ? 0 : this.second) + step); }
  10198. updateSecond(second) {
  10199. if (isNumber(second)) {
  10200. this.second = second < 0 ? 60 + second % 60 : second % 60;
  10201. this.changeMinute(Math.floor(second / 60));
  10202. }
  10203. else {
  10204. this.second = NaN;
  10205. }
  10206. }
  10207. isValid(checkSecs = true) {
  10208. return isNumber(this.hour) && isNumber(this.minute) && (checkSecs ? isNumber(this.second) : true);
  10209. }
  10210. toString() { return `${this.hour || 0}:${this.minute || 0}:${this.second || 0}`; }
  10211. }
  10212. /**
  10213. * A configuration service for the [`NgbTimepicker`](#/components/timepicker/api#NgbTimepicker) component.
  10214. *
  10215. * You can inject this service, typically in your root component, and customize the values of its properties in
  10216. * order to provide default values for all the timepickers used in the application.
  10217. */
  10218. class NgbTimepickerConfig {
  10219. constructor() {
  10220. this.meridian = false;
  10221. this.spinners = true;
  10222. this.seconds = false;
  10223. this.hourStep = 1;
  10224. this.minuteStep = 1;
  10225. this.secondStep = 1;
  10226. this.disabled = false;
  10227. this.readonlyInputs = false;
  10228. this.size = 'medium';
  10229. }
  10230. }
  10231. NgbTimepickerConfig.ɵfac = function NgbTimepickerConfig_Factory(t) { return new (t || NgbTimepickerConfig)(); };
  10232. NgbTimepickerConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbTimepickerConfig_Factory() { return new NgbTimepickerConfig(); }, token: NgbTimepickerConfig, providedIn: "root" });
  10233. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTimepickerConfig, [{
  10234. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  10235. args: [{ providedIn: 'root' }]
  10236. }], function () { return []; }, null); })();
  10237. function NGB_DATEPICKER_TIME_ADAPTER_FACTORY() {
  10238. return new NgbTimeStructAdapter();
  10239. }
  10240. /**
  10241. * An abstract service that does the conversion between the internal timepicker `NgbTimeStruct` model and
  10242. * any provided user time model `T`, ex. a string, a native date, etc.
  10243. *
  10244. * The adapter is used **only** for conversion when binding timepicker to a form control,
  10245. * ex. `[(ngModel)]="userTimeModel"`. Here `userTimeModel` can be of any type.
  10246. *
  10247. * The default timepicker implementation assumes we use `NgbTimeStruct` as a user model.
  10248. *
  10249. * See the [custom time adapter demo](#/components/timepicker/examples#adapter) for an example.
  10250. *
  10251. * @since 2.2.0
  10252. */
  10253. class NgbTimeAdapter {
  10254. }
  10255. NgbTimeAdapter.ɵfac = function NgbTimeAdapter_Factory(t) { return new (t || NgbTimeAdapter)(); };
  10256. NgbTimeAdapter.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY, token: NgbTimeAdapter, providedIn: "root" });
  10257. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTimeAdapter, [{
  10258. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  10259. args: [{ providedIn: 'root', useFactory: NGB_DATEPICKER_TIME_ADAPTER_FACTORY }]
  10260. }], null, null); })();
  10261. class NgbTimeStructAdapter extends NgbTimeAdapter {
  10262. /**
  10263. * Converts a NgbTimeStruct value into NgbTimeStruct value
  10264. */
  10265. fromModel(time) {
  10266. return (time && isInteger(time.hour) && isInteger(time.minute)) ?
  10267. { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } :
  10268. null;
  10269. }
  10270. /**
  10271. * Converts a NgbTimeStruct value into NgbTimeStruct value
  10272. */
  10273. toModel(time) {
  10274. return (time && isInteger(time.hour) && isInteger(time.minute)) ?
  10275. { hour: time.hour, minute: time.minute, second: isInteger(time.second) ? time.second : null } :
  10276. null;
  10277. }
  10278. }
  10279. NgbTimeStructAdapter.ɵfac = function NgbTimeStructAdapter_Factory(t) { return ɵNgbTimeStructAdapter_BaseFactory(t || NgbTimeStructAdapter); };
  10280. NgbTimeStructAdapter.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbTimeStructAdapter, factory: NgbTimeStructAdapter.ɵfac });
  10281. const ɵNgbTimeStructAdapter_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](NgbTimeStructAdapter);
  10282. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTimeStructAdapter, [{
  10283. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  10284. }], null, null); })();
  10285. function NGB_TIMEPICKER_I18N_FACTORY(locale) {
  10286. return new NgbTimepickerI18nDefault(locale);
  10287. }
  10288. /**
  10289. * Type of the service supplying day periods (for example, 'AM' and 'PM') to NgbTimepicker component.
  10290. * The default implementation of this service honors the Angular locale, and uses the registered locale data,
  10291. * as explained in the Angular i18n guide.
  10292. */
  10293. class NgbTimepickerI18n {
  10294. }
  10295. NgbTimepickerI18n.ɵfac = function NgbTimepickerI18n_Factory(t) { return new (t || NgbTimepickerI18n)(); };
  10296. NgbTimepickerI18n.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbTimepickerI18n_Factory() { return NGB_TIMEPICKER_I18N_FACTORY(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"])); }, token: NgbTimepickerI18n, providedIn: "root" });
  10297. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTimepickerI18n, [{
  10298. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  10299. args: [{ providedIn: 'root', useFactory: NGB_TIMEPICKER_I18N_FACTORY, deps: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]] }]
  10300. }], null, null); })();
  10301. class NgbTimepickerI18nDefault extends NgbTimepickerI18n {
  10302. constructor(locale) {
  10303. super();
  10304. this._periods = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["getLocaleDayPeriods"])(locale, _angular_common__WEBPACK_IMPORTED_MODULE_1__["FormStyle"].Standalone, _angular_common__WEBPACK_IMPORTED_MODULE_1__["TranslationWidth"].Narrow);
  10305. }
  10306. getMorningPeriod() { return this._periods[0]; }
  10307. getAfternoonPeriod() { return this._periods[1]; }
  10308. }
  10309. NgbTimepickerI18nDefault.ɵfac = function NgbTimepickerI18nDefault_Factory(t) { return new (t || NgbTimepickerI18nDefault)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"])); };
  10310. NgbTimepickerI18nDefault.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgbTimepickerI18nDefault, factory: NgbTimepickerI18nDefault.ɵfac });
  10311. NgbTimepickerI18nDefault.ctorParameters = () => [
  10312. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"],] }] }
  10313. ];
  10314. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTimepickerI18nDefault, [{
  10315. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  10316. }], function () { return [{ type: String, decorators: [{
  10317. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  10318. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
  10319. }] }]; }, null); })();
  10320. const FILTER_REGEX = /[^0-9]/g;
  10321. const NGB_TIMEPICKER_VALUE_ACCESSOR = {
  10322. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALUE_ACCESSOR"],
  10323. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbTimepicker),
  10324. multi: true
  10325. };
  10326. /**
  10327. * A directive that helps with wth picking hours, minutes and seconds.
  10328. */
  10329. class NgbTimepicker {
  10330. constructor(_config, _ngbTimeAdapter, _cd, i18n) {
  10331. this._config = _config;
  10332. this._ngbTimeAdapter = _ngbTimeAdapter;
  10333. this._cd = _cd;
  10334. this.i18n = i18n;
  10335. this.onChange = (_) => { };
  10336. this.onTouched = () => { };
  10337. this.meridian = _config.meridian;
  10338. this.spinners = _config.spinners;
  10339. this.seconds = _config.seconds;
  10340. this.hourStep = _config.hourStep;
  10341. this.minuteStep = _config.minuteStep;
  10342. this.secondStep = _config.secondStep;
  10343. this.disabled = _config.disabled;
  10344. this.readonlyInputs = _config.readonlyInputs;
  10345. this.size = _config.size;
  10346. }
  10347. /**
  10348. * The number of hours to add/subtract when clicking hour spinners.
  10349. */
  10350. set hourStep(step) {
  10351. this._hourStep = isInteger(step) ? step : this._config.hourStep;
  10352. }
  10353. get hourStep() { return this._hourStep; }
  10354. /**
  10355. * The number of minutes to add/subtract when clicking minute spinners.
  10356. */
  10357. set minuteStep(step) {
  10358. this._minuteStep = isInteger(step) ? step : this._config.minuteStep;
  10359. }
  10360. get minuteStep() { return this._minuteStep; }
  10361. /**
  10362. * The number of seconds to add/subtract when clicking second spinners.
  10363. */
  10364. set secondStep(step) {
  10365. this._secondStep = isInteger(step) ? step : this._config.secondStep;
  10366. }
  10367. get secondStep() { return this._secondStep; }
  10368. writeValue(value) {
  10369. const structValue = this._ngbTimeAdapter.fromModel(value);
  10370. this.model = structValue ? new NgbTime(structValue.hour, structValue.minute, structValue.second) : new NgbTime();
  10371. if (!this.seconds && (!structValue || !isNumber(structValue.second))) {
  10372. this.model.second = 0;
  10373. }
  10374. this._cd.markForCheck();
  10375. }
  10376. registerOnChange(fn) { this.onChange = fn; }
  10377. registerOnTouched(fn) { this.onTouched = fn; }
  10378. setDisabledState(isDisabled) { this.disabled = isDisabled; }
  10379. changeHour(step) {
  10380. this.model.changeHour(step);
  10381. this.propagateModelChange();
  10382. }
  10383. changeMinute(step) {
  10384. this.model.changeMinute(step);
  10385. this.propagateModelChange();
  10386. }
  10387. changeSecond(step) {
  10388. this.model.changeSecond(step);
  10389. this.propagateModelChange();
  10390. }
  10391. updateHour(newVal) {
  10392. const isPM = this.model.hour >= 12;
  10393. const enteredHour = toInteger(newVal);
  10394. if (this.meridian && (isPM && enteredHour < 12 || !isPM && enteredHour === 12)) {
  10395. this.model.updateHour(enteredHour + 12);
  10396. }
  10397. else {
  10398. this.model.updateHour(enteredHour);
  10399. }
  10400. this.propagateModelChange();
  10401. }
  10402. updateMinute(newVal) {
  10403. this.model.updateMinute(toInteger(newVal));
  10404. this.propagateModelChange();
  10405. }
  10406. updateSecond(newVal) {
  10407. this.model.updateSecond(toInteger(newVal));
  10408. this.propagateModelChange();
  10409. }
  10410. toggleMeridian() {
  10411. if (this.meridian) {
  10412. this.changeHour(12);
  10413. }
  10414. }
  10415. formatInput(input) { input.value = input.value.replace(FILTER_REGEX, ''); }
  10416. formatHour(value) {
  10417. if (isNumber(value)) {
  10418. if (this.meridian) {
  10419. return padNumber(value % 12 === 0 ? 12 : value % 12);
  10420. }
  10421. else {
  10422. return padNumber(value % 24);
  10423. }
  10424. }
  10425. else {
  10426. return padNumber(NaN);
  10427. }
  10428. }
  10429. formatMinSec(value) { return padNumber(isNumber(value) ? value : NaN); }
  10430. get isSmallSize() { return this.size === 'small'; }
  10431. get isLargeSize() { return this.size === 'large'; }
  10432. ngOnChanges(changes) {
  10433. if (changes['seconds'] && !this.seconds && this.model && !isNumber(this.model.second)) {
  10434. this.model.second = 0;
  10435. this.propagateModelChange(false);
  10436. }
  10437. }
  10438. propagateModelChange(touched = true) {
  10439. if (touched) {
  10440. this.onTouched();
  10441. }
  10442. if (this.model.isValid(this.seconds)) {
  10443. this.onChange(this._ngbTimeAdapter.toModel({ hour: this.model.hour, minute: this.model.minute, second: this.model.second }));
  10444. }
  10445. else {
  10446. this.onChange(this._ngbTimeAdapter.toModel(null));
  10447. }
  10448. }
  10449. }
  10450. NgbTimepicker.ɵfac = function NgbTimepicker_Factory(t) { return new (t || NgbTimepicker)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbTimepickerConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbTimeAdapter), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbTimepickerI18n)); };
  10451. NgbTimepicker.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbTimepicker, selectors: [["ngb-timepicker"]], inputs: { meridian: "meridian", spinners: "spinners", seconds: "seconds", hourStep: "hourStep", minuteStep: "minuteStep", secondStep: "secondStep", readonlyInputs: "readonlyInputs", size: "size" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NGB_TIMEPICKER_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 16, vars: 25, consts: function () { let i18n_58; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10452. const MSG_EXTERNAL_ngb_timepicker_HH$$FESM2015_NG_BOOTSTRAP_JS_59 = goog.getMsg("HH");
  10453. i18n_58 = MSG_EXTERNAL_ngb_timepicker_HH$$FESM2015_NG_BOOTSTRAP_JS_59;
  10454. }
  10455. else {
  10456. i18n_58 = $localize `:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`;
  10457. } let i18n_60; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10458. const MSG_EXTERNAL_ngb_timepicker_hours$$FESM2015_NG_BOOTSTRAP_JS_61 = goog.getMsg("Hours");
  10459. i18n_60 = MSG_EXTERNAL_ngb_timepicker_hours$$FESM2015_NG_BOOTSTRAP_JS_61;
  10460. }
  10461. else {
  10462. i18n_60 = $localize `:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`;
  10463. } let i18n_62; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10464. const MSG_EXTERNAL_ngb_timepicker_MM$$FESM2015_NG_BOOTSTRAP_JS_63 = goog.getMsg("MM");
  10465. i18n_62 = MSG_EXTERNAL_ngb_timepicker_MM$$FESM2015_NG_BOOTSTRAP_JS_63;
  10466. }
  10467. else {
  10468. i18n_62 = $localize `:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`;
  10469. } let i18n_64; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10470. const MSG_EXTERNAL_ngb_timepicker_minutes$$FESM2015_NG_BOOTSTRAP_JS_65 = goog.getMsg("Minutes");
  10471. i18n_64 = MSG_EXTERNAL_ngb_timepicker_minutes$$FESM2015_NG_BOOTSTRAP_JS_65;
  10472. }
  10473. else {
  10474. i18n_64 = $localize `:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`;
  10475. } let i18n_66; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10476. const MSG_EXTERNAL_ngb_timepicker_increment_hours$$FESM2015_NG_BOOTSTRAP_JS__67 = goog.getMsg("Increment hours");
  10477. i18n_66 = MSG_EXTERNAL_ngb_timepicker_increment_hours$$FESM2015_NG_BOOTSTRAP_JS__67;
  10478. }
  10479. else {
  10480. i18n_66 = $localize `:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`;
  10481. } let i18n_68; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10482. const MSG_EXTERNAL_ngb_timepicker_decrement_hours$$FESM2015_NG_BOOTSTRAP_JS__69 = goog.getMsg("Decrement hours");
  10483. i18n_68 = MSG_EXTERNAL_ngb_timepicker_decrement_hours$$FESM2015_NG_BOOTSTRAP_JS__69;
  10484. }
  10485. else {
  10486. i18n_68 = $localize `:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`;
  10487. } let i18n_70; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10488. const MSG_EXTERNAL_ngb_timepicker_increment_minutes$$FESM2015_NG_BOOTSTRAP_JS__71 = goog.getMsg("Increment minutes");
  10489. i18n_70 = MSG_EXTERNAL_ngb_timepicker_increment_minutes$$FESM2015_NG_BOOTSTRAP_JS__71;
  10490. }
  10491. else {
  10492. i18n_70 = $localize `:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`;
  10493. } let i18n_72; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10494. const MSG_EXTERNAL_ngb_timepicker_decrement_minutes$$FESM2015_NG_BOOTSTRAP_JS__73 = goog.getMsg("Decrement minutes");
  10495. i18n_72 = MSG_EXTERNAL_ngb_timepicker_decrement_minutes$$FESM2015_NG_BOOTSTRAP_JS__73;
  10496. }
  10497. else {
  10498. i18n_72 = $localize `:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`;
  10499. } let i18n_74; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10500. const MSG_EXTERNAL_ngb_timepicker_SS$$FESM2015_NG_BOOTSTRAP_JS__75 = goog.getMsg("SS");
  10501. i18n_74 = MSG_EXTERNAL_ngb_timepicker_SS$$FESM2015_NG_BOOTSTRAP_JS__75;
  10502. }
  10503. else {
  10504. i18n_74 = $localize `:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`;
  10505. } let i18n_76; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10506. const MSG_EXTERNAL_ngb_timepicker_seconds$$FESM2015_NG_BOOTSTRAP_JS__77 = goog.getMsg("Seconds");
  10507. i18n_76 = MSG_EXTERNAL_ngb_timepicker_seconds$$FESM2015_NG_BOOTSTRAP_JS__77;
  10508. }
  10509. else {
  10510. i18n_76 = $localize `:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`;
  10511. } let i18n_78; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10512. const MSG_EXTERNAL_ngb_timepicker_increment_seconds$$FESM2015_NG_BOOTSTRAP_JS___79 = goog.getMsg("Increment seconds");
  10513. i18n_78 = MSG_EXTERNAL_ngb_timepicker_increment_seconds$$FESM2015_NG_BOOTSTRAP_JS___79;
  10514. }
  10515. else {
  10516. i18n_78 = $localize `:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`;
  10517. } let i18n_80; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10518. const MSG_EXTERNAL_ngb_timepicker_decrement_seconds$$FESM2015_NG_BOOTSTRAP_JS___81 = goog.getMsg("Decrement seconds");
  10519. i18n_80 = MSG_EXTERNAL_ngb_timepicker_decrement_seconds$$FESM2015_NG_BOOTSTRAP_JS___81;
  10520. }
  10521. else {
  10522. i18n_80 = $localize `:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`;
  10523. } let i18n_82; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10524. const MSG_EXTERNAL_ngb_timepicker_PM$$FESM2015_NG_BOOTSTRAP_JS___83 = goog.getMsg("{$interpolation}", { "interpolation": "\uFFFD0\uFFFD" });
  10525. i18n_82 = MSG_EXTERNAL_ngb_timepicker_PM$$FESM2015_NG_BOOTSTRAP_JS___83;
  10526. }
  10527. else {
  10528. i18n_82 = $localize `:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;
  10529. } let i18n_84; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10530. const MSG_EXTERNAL_ngb_timepicker_AM$$FESM2015_NG_BOOTSTRAP_JS___85 = goog.getMsg("{$interpolation}", { "interpolation": "\uFFFD0\uFFFD" });
  10531. i18n_84 = MSG_EXTERNAL_ngb_timepicker_AM$$FESM2015_NG_BOOTSTRAP_JS___85;
  10532. }
  10533. else {
  10534. i18n_84 = $localize `:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\uFFFD0\uFFFD"}:INTERPOLATION:`;
  10535. } return [[3, "disabled"], [1, "ngb-tp"], [1, "ngb-tp-input-container", "ngb-tp-hour"], ["tabindex", "-1", "type", "button", "class", "btn btn-link", 3, "btn-sm", "btn-lg", "disabled", "click", 4, "ngIf"], ["type", "text", "maxlength", "2", "inputmode", "numeric", "placeholder", i18n_58, "aria-label", i18n_60, 1, "ngb-tp-input", "form-control", 3, "value", "readOnly", "disabled", "change", "input", "keydown.ArrowUp", "keydown.ArrowDown"], [1, "ngb-tp-spacer"], [1, "ngb-tp-input-container", "ngb-tp-minute"], ["type", "text", "maxlength", "2", "inputmode", "numeric", "placeholder", i18n_62, "aria-label", i18n_64, 1, "ngb-tp-input", "form-control", 3, "value", "readOnly", "disabled", "change", "input", "keydown.ArrowUp", "keydown.ArrowDown"], ["class", "ngb-tp-spacer", 4, "ngIf"], ["class", "ngb-tp-input-container ngb-tp-second", 4, "ngIf"], ["class", "ngb-tp-meridian", 4, "ngIf"], ["tabindex", "-1", "type", "button", 1, "btn", "btn-link", 3, "disabled", "click"], [1, "chevron", "ngb-tp-chevron"], [1, "sr-only"], i18n_66, [1, "chevron", "ngb-tp-chevron", "bottom"], i18n_68, i18n_70, i18n_72, [1, "ngb-tp-input-container", "ngb-tp-second"], ["type", "text", "maxlength", "2", "inputmode", "numeric", "placeholder", i18n_74, "aria-label", i18n_76, 1, "ngb-tp-input", "form-control", 3, "value", "readOnly", "disabled", "change", "input", "keydown.ArrowUp", "keydown.ArrowDown"], i18n_78, i18n_80, [1, "ngb-tp-meridian"], ["type", "button", 1, "btn", "btn-outline-primary", 3, "disabled", "click"], [4, "ngIf", "ngIfElse"], ["am", ""], i18n_82, i18n_84]; }, template: function NgbTimepicker_Template(rf, ctx) { if (rf & 1) {
  10536. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "fieldset", 0);
  10537. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  10538. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  10539. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgbTimepicker_button_3_Template, 4, 7, "button", 3);
  10540. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](4, "input", 4);
  10541. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function NgbTimepicker_Template_input_change_4_listener($event) { return ctx.updateHour($event.target.value); })("input", function NgbTimepicker_Template_input_input_4_listener($event) { return ctx.formatInput($event.target); })("keydown.ArrowUp", function NgbTimepicker_Template_input_keydown_ArrowUp_4_listener($event) { ctx.changeHour(ctx.hourStep); return $event.preventDefault(); })("keydown.ArrowDown", function NgbTimepicker_Template_input_keydown_ArrowDown_4_listener($event) { ctx.changeHour(-ctx.hourStep); return $event.preventDefault(); });
  10542. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  10543. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, NgbTimepicker_button_5_Template, 4, 7, "button", 3);
  10544. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  10545. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 5);
  10546. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](7, ":");
  10547. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  10548. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 6);
  10549. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, NgbTimepicker_button_9_Template, 4, 7, "button", 3);
  10550. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](10, "input", 7);
  10551. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function NgbTimepicker_Template_input_change_10_listener($event) { return ctx.updateMinute($event.target.value); })("input", function NgbTimepicker_Template_input_input_10_listener($event) { return ctx.formatInput($event.target); })("keydown.ArrowUp", function NgbTimepicker_Template_input_keydown_ArrowUp_10_listener($event) { ctx.changeMinute(ctx.minuteStep); return $event.preventDefault(); })("keydown.ArrowDown", function NgbTimepicker_Template_input_keydown_ArrowDown_10_listener($event) { ctx.changeMinute(-ctx.minuteStep); return $event.preventDefault(); });
  10552. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  10553. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](11, NgbTimepicker_button_11_Template, 4, 7, "button", 3);
  10554. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  10555. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](12, NgbTimepicker_div_12_Template, 2, 0, "div", 8);
  10556. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, NgbTimepicker_div_13_Template, 4, 9, "div", 9);
  10557. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](14, NgbTimepicker_div_14_Template, 1, 0, "div", 8);
  10558. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](15, NgbTimepicker_div_15_Template, 5, 9, "div", 10);
  10559. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  10560. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  10561. } if (rf & 2) {
  10562. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("disabled", ctx.disabled);
  10563. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.disabled);
  10564. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  10565. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.spinners);
  10566. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  10567. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("form-control-sm", ctx.isSmallSize)("form-control-lg", ctx.isLargeSize);
  10568. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.formatHour(ctx.model == null ? null : ctx.model.hour))("readOnly", ctx.readonlyInputs)("disabled", ctx.disabled);
  10569. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  10570. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.spinners);
  10571. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](4);
  10572. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.spinners);
  10573. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  10574. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("form-control-sm", ctx.isSmallSize)("form-control-lg", ctx.isLargeSize);
  10575. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("value", ctx.formatMinSec(ctx.model == null ? null : ctx.model.minute))("readOnly", ctx.readonlyInputs)("disabled", ctx.disabled);
  10576. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  10577. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.spinners);
  10578. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  10579. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.seconds);
  10580. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  10581. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.seconds);
  10582. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  10583. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.meridian);
  10584. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  10585. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.meridian);
  10586. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"]], styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{-webkit-transform:rotate(-45deg);border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{-webkit-transform:rotate(135deg);top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{-ms-flex-align:center;-ms-flex-direction:column;-ms-flex-pack:distribute;align-items:center;display:-ms-flexbox;display:flex;flex-direction:column;justify-content:space-around}.ngb-tp-spacer{text-align:center;width:1em}"], encapsulation: 2 });
  10587. NgbTimepicker.ctorParameters = () => [
  10588. { type: NgbTimepickerConfig },
  10589. { type: NgbTimeAdapter },
  10590. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  10591. { type: NgbTimepickerI18n }
  10592. ];
  10593. NgbTimepicker.propDecorators = {
  10594. meridian: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10595. spinners: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10596. seconds: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10597. hourStep: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10598. minuteStep: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10599. secondStep: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10600. readonlyInputs: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10601. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  10602. };
  10603. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTimepicker, [{
  10604. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  10605. args: [{
  10606. selector: 'ngb-timepicker',
  10607. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  10608. template: `
  10609. <fieldset [disabled]="disabled" [class.disabled]="disabled">
  10610. <div class="ngb-tp">
  10611. <div class="ngb-tp-input-container ngb-tp-hour">
  10612. <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeHour(hourStep)"
  10613. class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"
  10614. [disabled]="disabled">
  10615. <span class="chevron ngb-tp-chevron"></span>
  10616. <span class="sr-only" i18n="@@ngb.timepicker.increment-hours">Increment hours</span>
  10617. </button>
  10618. <input type="text" class="ngb-tp-input form-control" [class.form-control-sm]="isSmallSize"
  10619. [class.form-control-lg]="isLargeSize"
  10620. maxlength="2" inputmode="numeric" placeholder="HH" i18n-placeholder="@@ngb.timepicker.HH"
  10621. [value]="formatHour(model?.hour)" (change)="updateHour($any($event).target.value)"
  10622. [readOnly]="readonlyInputs" [disabled]="disabled" aria-label="Hours" i18n-aria-label="@@ngb.timepicker.hours"
  10623. (input)="formatInput($any($event).target)"
  10624. (keydown.ArrowUp)="changeHour(hourStep); $event.preventDefault()"
  10625. (keydown.ArrowDown)="changeHour(-hourStep); $event.preventDefault()">
  10626. <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeHour(-hourStep)"
  10627. class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"
  10628. [disabled]="disabled">
  10629. <span class="chevron ngb-tp-chevron bottom"></span>
  10630. <span class="sr-only" i18n="@@ngb.timepicker.decrement-hours">Decrement hours</span>
  10631. </button>
  10632. </div>
  10633. <div class="ngb-tp-spacer">:</div>
  10634. <div class="ngb-tp-input-container ngb-tp-minute">
  10635. <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeMinute(minuteStep)"
  10636. class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"
  10637. [disabled]="disabled">
  10638. <span class="chevron ngb-tp-chevron"></span>
  10639. <span class="sr-only" i18n="@@ngb.timepicker.increment-minutes">Increment minutes</span>
  10640. </button>
  10641. <input type="text" class="ngb-tp-input form-control" [class.form-control-sm]="isSmallSize" [class.form-control-lg]="isLargeSize"
  10642. maxlength="2" inputmode="numeric" placeholder="MM" i18n-placeholder="@@ngb.timepicker.MM"
  10643. [value]="formatMinSec(model?.minute)" (change)="updateMinute($any($event).target.value)"
  10644. [readOnly]="readonlyInputs" [disabled]="disabled" aria-label="Minutes" i18n-aria-label="@@ngb.timepicker.minutes"
  10645. (input)="formatInput($any($event).target)"
  10646. (keydown.ArrowUp)="changeMinute(minuteStep); $event.preventDefault()"
  10647. (keydown.ArrowDown)="changeMinute(-minuteStep); $event.preventDefault()">
  10648. <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeMinute(-minuteStep)"
  10649. class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"
  10650. [disabled]="disabled">
  10651. <span class="chevron ngb-tp-chevron bottom"></span>
  10652. <span class="sr-only" i18n="@@ngb.timepicker.decrement-minutes">Decrement minutes</span>
  10653. </button>
  10654. </div>
  10655. <div *ngIf="seconds" class="ngb-tp-spacer">:</div>
  10656. <div *ngIf="seconds" class="ngb-tp-input-container ngb-tp-second">
  10657. <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeSecond(secondStep)"
  10658. class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"
  10659. [disabled]="disabled">
  10660. <span class="chevron ngb-tp-chevron"></span>
  10661. <span class="sr-only" i18n="@@ngb.timepicker.increment-seconds">Increment seconds</span>
  10662. </button>
  10663. <input type="text" class="ngb-tp-input form-control" [class.form-control-sm]="isSmallSize" [class.form-control-lg]="isLargeSize"
  10664. maxlength="2" inputmode="numeric" placeholder="SS" i18n-placeholder="@@ngb.timepicker.SS"
  10665. [value]="formatMinSec(model?.second)" (change)="updateSecond($any($event).target.value)"
  10666. [readOnly]="readonlyInputs" [disabled]="disabled" aria-label="Seconds" i18n-aria-label="@@ngb.timepicker.seconds"
  10667. (input)="formatInput($any($event).target)"
  10668. (keydown.ArrowUp)="changeSecond(secondStep); $event.preventDefault()"
  10669. (keydown.ArrowDown)="changeSecond(-secondStep); $event.preventDefault()">
  10670. <button *ngIf="spinners" tabindex="-1" type="button" (click)="changeSecond(-secondStep)"
  10671. class="btn btn-link" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize" [class.disabled]="disabled"
  10672. [disabled]="disabled">
  10673. <span class="chevron ngb-tp-chevron bottom"></span>
  10674. <span class="sr-only" i18n="@@ngb.timepicker.decrement-seconds">Decrement seconds</span>
  10675. </button>
  10676. </div>
  10677. <div *ngIf="meridian" class="ngb-tp-spacer"></div>
  10678. <div *ngIf="meridian" class="ngb-tp-meridian">
  10679. <button type="button" class="btn btn-outline-primary" [class.btn-sm]="isSmallSize" [class.btn-lg]="isLargeSize"
  10680. [disabled]="disabled" [class.disabled]="disabled"
  10681. (click)="toggleMeridian()">
  10682. <ng-container *ngIf="model && model.hour >= 12; else am"
  10683. i18n="@@ngb.timepicker.PM">{{ i18n.getAfternoonPeriod() }}</ng-container>
  10684. <ng-template #am i18n="@@ngb.timepicker.AM">{{ i18n.getMorningPeriod() }}</ng-template>
  10685. </button>
  10686. </div>
  10687. </div>
  10688. </fieldset>
  10689. `,
  10690. providers: [NGB_TIMEPICKER_VALUE_ACCESSOR],
  10691. styles: ["ngb-timepicker{font-size:1rem}.ngb-tp{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{-webkit-transform:rotate(-45deg);border-style:solid;border-width:.29em .29em 0 0;content:\"\";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{-webkit-transform:rotate(135deg);top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{-ms-flex-align:center;-ms-flex-direction:column;-ms-flex-pack:distribute;align-items:center;display:-ms-flexbox;display:flex;flex-direction:column;justify-content:space-around}.ngb-tp-spacer{text-align:center;width:1em}"]
  10692. }]
  10693. }], function () { return [{ type: NgbTimepickerConfig }, { type: NgbTimeAdapter }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: NgbTimepickerI18n }]; }, { meridian: [{
  10694. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10695. }], spinners: [{
  10696. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10697. }], seconds: [{
  10698. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10699. }], hourStep: [{
  10700. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10701. }], minuteStep: [{
  10702. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10703. }], secondStep: [{
  10704. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10705. }], readonlyInputs: [{
  10706. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10707. }], size: [{
  10708. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10709. }] }); })();
  10710. class NgbTimepickerModule {
  10711. }
  10712. NgbTimepickerModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbTimepickerModule });
  10713. NgbTimepickerModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbTimepickerModule_Factory(t) { return new (t || NgbTimepickerModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  10714. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbTimepickerModule, { declarations: function () { return [NgbTimepicker]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbTimepicker]; } }); })();
  10715. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTimepickerModule, [{
  10716. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  10717. args: [{ declarations: [NgbTimepicker], exports: [NgbTimepicker], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]] }]
  10718. }], null, null); })();
  10719. /**
  10720. * Configuration service for the NgbToast component. You can inject this service, typically in your root component,
  10721. * and customize the values of its properties in order to provide default values for all the toasts used in the
  10722. * application.
  10723. *
  10724. * @since 5.0.0
  10725. */
  10726. class NgbToastConfig {
  10727. constructor(ngbConfig) {
  10728. this.autohide = true;
  10729. this.delay = 500;
  10730. this.ariaLive = 'polite';
  10731. this.animation = ngbConfig.animation;
  10732. }
  10733. }
  10734. NgbToastConfig.ɵfac = function NgbToastConfig_Factory(t) { return new (t || NgbToastConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  10735. NgbToastConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbToastConfig_Factory() { return new NgbToastConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbToastConfig, providedIn: "root" });
  10736. NgbToastConfig.ctorParameters = () => [
  10737. { type: NgbConfig }
  10738. ];
  10739. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbToastConfig, [{
  10740. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  10741. args: [{ providedIn: 'root' }]
  10742. }], function () { return [{ type: NgbConfig }]; }, null); })();
  10743. const ngbToastFadeInTransition = ({ classList }) => {
  10744. classList.remove('hide');
  10745. classList.add('showing');
  10746. return () => {
  10747. classList.remove('showing');
  10748. classList.add('show');
  10749. };
  10750. };
  10751. const ngbToastFadeOutTransition = ({ classList }) => {
  10752. classList.remove('show');
  10753. return () => { classList.add('hide'); };
  10754. };
  10755. /**
  10756. * This directive allows the usage of HTML markup or other directives
  10757. * inside of the toast's header.
  10758. *
  10759. * @since 5.0.0
  10760. */
  10761. class NgbToastHeader {
  10762. }
  10763. NgbToastHeader.ɵfac = function NgbToastHeader_Factory(t) { return new (t || NgbToastHeader)(); };
  10764. NgbToastHeader.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbToastHeader, selectors: [["", "ngbToastHeader", ""]] });
  10765. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbToastHeader, [{
  10766. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  10767. args: [{ selector: '[ngbToastHeader]' }]
  10768. }], null, null); })();
  10769. /**
  10770. * Toasts provide feedback messages as notifications to the user.
  10771. * Goal is to mimic the push notifications available both on mobile and desktop operating systems.
  10772. *
  10773. * @since 5.0.0
  10774. */
  10775. class NgbToast {
  10776. constructor(ariaLive, config, _zone, _element) {
  10777. this.ariaLive = ariaLive;
  10778. this._zone = _zone;
  10779. this._element = _element;
  10780. /**
  10781. * A template like `<ng-template ngbToastHeader></ng-template>` can be
  10782. * used in the projected content to allow markup usage.
  10783. */
  10784. this.contentHeaderTpl = null;
  10785. /**
  10786. * An event fired after the animation triggered by calling `.show()` method has finished.
  10787. *
  10788. * @since 8.0.0
  10789. */
  10790. this.shown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  10791. /**
  10792. * An event fired after the animation triggered by calling `.hide()` method has finished.
  10793. *
  10794. * It can only occur in 2 different scenarios:
  10795. * - `autohide` timeout fires
  10796. * - user clicks on a closing cross
  10797. *
  10798. * Additionally this output is purely informative. The toast won't be removed from DOM automatically, it's up
  10799. * to the user to take care of that.
  10800. *
  10801. * @since 8.0.0
  10802. */
  10803. this.hidden = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  10804. if (this.ariaLive == null) {
  10805. this.ariaLive = config.ariaLive;
  10806. }
  10807. this.delay = config.delay;
  10808. this.autohide = config.autohide;
  10809. this.animation = config.animation;
  10810. }
  10811. ngAfterContentInit() {
  10812. this._zone.onStable.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1)).subscribe(() => {
  10813. this._init();
  10814. this.show();
  10815. });
  10816. }
  10817. ngOnChanges(changes) {
  10818. if ('autohide' in changes) {
  10819. this._clearTimeout();
  10820. this._init();
  10821. }
  10822. }
  10823. /**
  10824. * Triggers toast closing programmatically.
  10825. *
  10826. * The returned observable will emit and be completed once the closing transition has finished.
  10827. * If the animations are turned off this happens synchronously.
  10828. *
  10829. * Alternatively you could listen or subscribe to the `(hidden)` output
  10830. *
  10831. * @since 8.0.0
  10832. */
  10833. hide() {
  10834. this._clearTimeout();
  10835. const transition = ngbRunTransition(this._element.nativeElement, ngbToastFadeOutTransition, { animation: this.animation, runningTransition: 'stop' });
  10836. transition.subscribe(() => { this.hidden.emit(); });
  10837. return transition;
  10838. }
  10839. /**
  10840. * Triggers toast opening programmatically.
  10841. *
  10842. * The returned observable will emit and be completed once the opening transition has finished.
  10843. * If the animations are turned off this happens synchronously.
  10844. *
  10845. * Alternatively you could listen or subscribe to the `(shown)` output
  10846. *
  10847. * @since 8.0.0
  10848. */
  10849. show() {
  10850. const transition = ngbRunTransition(this._element.nativeElement, ngbToastFadeInTransition, {
  10851. animation: this.animation,
  10852. runningTransition: 'continue',
  10853. });
  10854. transition.subscribe(() => { this.shown.emit(); });
  10855. return transition;
  10856. }
  10857. _init() {
  10858. if (this.autohide && !this._timeoutID) {
  10859. this._timeoutID = setTimeout(() => this.hide(), this.delay);
  10860. }
  10861. }
  10862. _clearTimeout() {
  10863. if (this._timeoutID) {
  10864. clearTimeout(this._timeoutID);
  10865. this._timeoutID = null;
  10866. }
  10867. }
  10868. }
  10869. NgbToast.ɵfac = function NgbToast_Factory(t) { return new (t || NgbToast)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('aria-live'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbToastConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  10870. NgbToast.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbToast, selectors: [["ngb-toast"]], contentQueries: function NgbToast_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  10871. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticContentQuery"](dirIndex, NgbToastHeader, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  10872. } if (rf & 2) {
  10873. let _t;
  10874. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.contentHeaderTpl = _t.first);
  10875. } }, hostAttrs: ["role", "alert", "aria-atomic", "true", 1, "toast"], hostVars: 3, hostBindings: function NgbToast_HostBindings(rf, ctx) { if (rf & 2) {
  10876. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-live", ctx.ariaLive);
  10877. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("fade", ctx.animation);
  10878. } }, inputs: { delay: "delay", autohide: "autohide", animation: "animation", header: "header" }, outputs: { shown: "shown", hidden: "hidden" }, exportAs: ["ngbToast"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c5, decls: 5, vars: 1, consts: function () { let i18n_86; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
  10879. const MSG_EXTERNAL_ngb_toast_close_aria$$FESM2015_NG_BOOTSTRAP_JS__87 = goog.getMsg("Close");
  10880. i18n_86 = MSG_EXTERNAL_ngb_toast_close_aria$$FESM2015_NG_BOOTSTRAP_JS__87;
  10881. }
  10882. else {
  10883. i18n_86 = $localize `:@@ngb.toast.close-aria␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`;
  10884. } return [["headerTpl", ""], [3, "ngIf"], [1, "toast-body"], [1, "mr-auto"], [1, "toast-header"], [3, "ngTemplateOutlet"], ["type", "button", "aria-label", i18n_86, 1, "close", 3, "click"], ["aria-hidden", "true"]]; }, template: function NgbToast_Template(rf, ctx) { if (rf & 1) {
  10885. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  10886. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbToast_ng_template_0_Template, 2, 1, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  10887. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbToast_ng_template_2_Template, 5, 1, "ng-template", 1);
  10888. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 2);
  10889. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](4);
  10890. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  10891. } if (rf & 2) {
  10892. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  10893. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.contentHeaderTpl || ctx.header);
  10894. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"]], styles: [".ngb-toasts{margin:.5em;position:fixed;right:0;top:0;z-index:1200}ngb-toast{display:block}ngb-toast .toast-header .close{margin-bottom:.25rem;margin-left:auto}"], encapsulation: 2 });
  10895. NgbToast.ctorParameters = () => [
  10896. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"], args: ['aria-live',] }] },
  10897. { type: NgbToastConfig },
  10898. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  10899. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  10900. ];
  10901. NgbToast.propDecorators = {
  10902. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10903. delay: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10904. autohide: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10905. header: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  10906. contentHeaderTpl: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgbToastHeader, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], static: true },] }],
  10907. shown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  10908. hidden: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  10909. };
  10910. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbToast, [{
  10911. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  10912. args: [{
  10913. selector: 'ngb-toast',
  10914. exportAs: 'ngbToast',
  10915. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  10916. host: {
  10917. 'role': 'alert',
  10918. '[attr.aria-live]': 'ariaLive',
  10919. 'aria-atomic': 'true',
  10920. 'class': 'toast',
  10921. '[class.fade]': 'animation'
  10922. },
  10923. template: `
  10924. <ng-template #headerTpl>
  10925. <strong class="mr-auto">{{header}}</strong>
  10926. </ng-template>
  10927. <ng-template [ngIf]="contentHeaderTpl || header">
  10928. <div class="toast-header">
  10929. <ng-template [ngTemplateOutlet]="contentHeaderTpl || headerTpl"></ng-template>
  10930. <button type="button" class="close" aria-label="Close" i18n-aria-label="@@ngb.toast.close-aria" (click)="hide()">
  10931. <span aria-hidden="true">&times;</span>
  10932. </button>
  10933. </div>
  10934. </ng-template>
  10935. <div class="toast-body">
  10936. <ng-content></ng-content>
  10937. </div>
  10938. `,
  10939. styles: [".ngb-toasts{margin:.5em;position:fixed;right:0;top:0;z-index:1200}ngb-toast{display:block}ngb-toast .toast-header .close{margin-bottom:.25rem;margin-left:auto}"]
  10940. }]
  10941. }], function () { return [{ type: String, decorators: [{
  10942. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
  10943. args: ['aria-live']
  10944. }] }, { type: NgbToastConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { contentHeaderTpl: [{
  10945. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  10946. args: [NgbToastHeader, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"], static: true }]
  10947. }], shown: [{
  10948. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  10949. }], hidden: [{
  10950. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  10951. }], delay: [{
  10952. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10953. }], autohide: [{
  10954. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10955. }], animation: [{
  10956. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10957. }], header: [{
  10958. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  10959. }] }); })();
  10960. class NgbToastModule {
  10961. }
  10962. NgbToastModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbToastModule });
  10963. NgbToastModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbToastModule_Factory(t) { return new (t || NgbToastModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  10964. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbToastModule, { declarations: function () { return [NgbToast, NgbToastHeader]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbToast, NgbToastHeader]; } }); })();
  10965. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbToastModule, [{
  10966. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  10967. args: [{ declarations: [NgbToast, NgbToastHeader], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]], exports: [NgbToast, NgbToastHeader] }]
  10968. }], null, null); })();
  10969. /**
  10970. * A configuration service for the [`NgbTooltip`](#/components/tooltip/api#NgbTooltip) component.
  10971. *
  10972. * You can inject this service, typically in your root component, and customize the values of its properties in
  10973. * order to provide default values for all the tooltips used in the application.
  10974. */
  10975. class NgbTooltipConfig {
  10976. constructor(ngbConfig) {
  10977. this.autoClose = true;
  10978. this.placement = 'auto';
  10979. this.triggers = 'hover focus';
  10980. this.disableTooltip = false;
  10981. this.openDelay = 0;
  10982. this.closeDelay = 0;
  10983. this.animation = ngbConfig.animation;
  10984. }
  10985. }
  10986. NgbTooltipConfig.ɵfac = function NgbTooltipConfig_Factory(t) { return new (t || NgbTooltipConfig)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](NgbConfig)); };
  10987. NgbTooltipConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbTooltipConfig_Factory() { return new NgbTooltipConfig(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(NgbConfig)); }, token: NgbTooltipConfig, providedIn: "root" });
  10988. NgbTooltipConfig.ctorParameters = () => [
  10989. { type: NgbConfig }
  10990. ];
  10991. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTooltipConfig, [{
  10992. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  10993. args: [{ providedIn: 'root' }]
  10994. }], function () { return [{ type: NgbConfig }]; }, null); })();
  10995. let nextId$4 = 0;
  10996. class NgbTooltipWindow {
  10997. }
  10998. NgbTooltipWindow.ɵfac = function NgbTooltipWindow_Factory(t) { return new (t || NgbTooltipWindow)(); };
  10999. NgbTooltipWindow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbTooltipWindow, selectors: [["ngb-tooltip-window"]], hostAttrs: ["role", "tooltip"], hostVars: 5, hostBindings: function NgbTooltipWindow_HostBindings(rf, ctx) { if (rf & 2) {
  11000. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.id);
  11001. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"]("tooltip" + (ctx.tooltipClass ? " " + ctx.tooltipClass : ""));
  11002. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("fade", ctx.animation);
  11003. } }, inputs: { animation: "animation", id: "id", tooltipClass: "tooltipClass" }, ngContentSelectors: _c5, decls: 3, vars: 0, consts: [[1, "arrow"], [1, "tooltip-inner"]], template: function NgbTooltipWindow_Template(rf, ctx) { if (rf & 1) {
  11004. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  11005. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 0);
  11006. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  11007. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2);
  11008. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  11009. } }, styles: ["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"], encapsulation: 2, changeDetection: 0 });
  11010. NgbTooltipWindow.propDecorators = {
  11011. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11012. id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11013. tooltipClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  11014. };
  11015. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTooltipWindow, [{
  11016. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  11017. args: [{
  11018. selector: 'ngb-tooltip-window',
  11019. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  11020. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  11021. host: {
  11022. '[class]': '"tooltip" + (tooltipClass ? " " + tooltipClass : "")',
  11023. '[class.fade]': 'animation',
  11024. 'role': 'tooltip',
  11025. '[id]': 'id'
  11026. },
  11027. template: `<div class="arrow"></div><div class="tooltip-inner"><ng-content></ng-content></div>`,
  11028. styles: ["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"]
  11029. }]
  11030. }], null, { animation: [{
  11031. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11032. }], id: [{
  11033. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11034. }], tooltipClass: [{
  11035. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11036. }] }); })();
  11037. /**
  11038. * A lightweight and extensible directive for fancy tooltip creation.
  11039. */
  11040. class NgbTooltip {
  11041. constructor(_elementRef, _renderer, injector, componentFactoryResolver, viewContainerRef, config, _ngZone, _document, _changeDetector, applicationRef) {
  11042. this._elementRef = _elementRef;
  11043. this._renderer = _renderer;
  11044. this._ngZone = _ngZone;
  11045. this._document = _document;
  11046. this._changeDetector = _changeDetector;
  11047. /**
  11048. * An event emitted when the tooltip opening animation has finished. Contains no payload.
  11049. */
  11050. this.shown = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  11051. /**
  11052. * An event emitted when the tooltip closing animation has finished. Contains no payload.
  11053. */
  11054. this.hidden = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  11055. this._ngbTooltipWindowId = `ngb-tooltip-${nextId$4++}`;
  11056. this._windowRef = null;
  11057. this.animation = config.animation;
  11058. this.autoClose = config.autoClose;
  11059. this.placement = config.placement;
  11060. this.triggers = config.triggers;
  11061. this.container = config.container;
  11062. this.disableTooltip = config.disableTooltip;
  11063. this.tooltipClass = config.tooltipClass;
  11064. this.openDelay = config.openDelay;
  11065. this.closeDelay = config.closeDelay;
  11066. this._popupService = new PopupService(NgbTooltipWindow, injector, viewContainerRef, _renderer, this._ngZone, componentFactoryResolver, applicationRef);
  11067. this._zoneSubscription = _ngZone.onStable.subscribe(() => {
  11068. if (this._windowRef) {
  11069. positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body', 'bs-tooltip');
  11070. }
  11071. });
  11072. }
  11073. /**
  11074. * The string content or a `TemplateRef` for the content to be displayed in the tooltip.
  11075. *
  11076. * If the content if falsy, the tooltip won't open.
  11077. */
  11078. set ngbTooltip(value) {
  11079. this._ngbTooltip = value;
  11080. if (!value && this._windowRef) {
  11081. this.close();
  11082. }
  11083. }
  11084. get ngbTooltip() { return this._ngbTooltip; }
  11085. /**
  11086. * Opens the tooltip.
  11087. *
  11088. * This is considered to be a "manual" triggering.
  11089. * The `context` is an optional value to be injected into the tooltip template when it is created.
  11090. */
  11091. open(context) {
  11092. if (!this._windowRef && this._ngbTooltip && !this.disableTooltip) {
  11093. const { windowRef, transition$ } = this._popupService.open(this._ngbTooltip, context, this.animation);
  11094. this._windowRef = windowRef;
  11095. this._windowRef.instance.animation = this.animation;
  11096. this._windowRef.instance.tooltipClass = this.tooltipClass;
  11097. this._windowRef.instance.id = this._ngbTooltipWindowId;
  11098. this._renderer.setAttribute(this._elementRef.nativeElement, 'aria-describedby', this._ngbTooltipWindowId);
  11099. if (this.container === 'body') {
  11100. this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);
  11101. }
  11102. // We need to detect changes, because we don't know where .open() might be called from.
  11103. // Ex. opening tooltip from one of lifecycle hooks that run after the CD
  11104. // (say from ngAfterViewInit) will result in 'ExpressionHasChanged' exception
  11105. this._windowRef.changeDetectorRef.detectChanges();
  11106. // We need to mark for check, because tooltip won't work inside the OnPush component.
  11107. // Ex. when we use expression like `{{ tooltip.isOpen() : 'opened' : 'closed' }}`
  11108. // inside the template of an OnPush component and we change the tooltip from
  11109. // open -> closed, the expression in question won't be updated unless we explicitly
  11110. // mark the parent component to be checked.
  11111. this._windowRef.changeDetectorRef.markForCheck();
  11112. ngbAutoClose(this._ngZone, this._document, this.autoClose, () => this.close(), this.hidden, [this._windowRef.location.nativeElement]);
  11113. transition$.subscribe(() => this.shown.emit());
  11114. }
  11115. }
  11116. /**
  11117. * Closes the tooltip.
  11118. *
  11119. * This is considered to be a "manual" triggering of the tooltip.
  11120. */
  11121. close() {
  11122. if (this._windowRef != null) {
  11123. this._renderer.removeAttribute(this._elementRef.nativeElement, 'aria-describedby');
  11124. this._popupService.close(this.animation).subscribe(() => {
  11125. this._windowRef = null;
  11126. this.hidden.emit();
  11127. this._changeDetector.markForCheck();
  11128. });
  11129. }
  11130. }
  11131. /**
  11132. * Toggles the tooltip.
  11133. *
  11134. * This is considered to be a "manual" triggering of the tooltip.
  11135. */
  11136. toggle() {
  11137. if (this._windowRef) {
  11138. this.close();
  11139. }
  11140. else {
  11141. this.open();
  11142. }
  11143. }
  11144. /**
  11145. * Returns `true`, if the popover is currently shown.
  11146. */
  11147. isOpen() { return this._windowRef != null; }
  11148. ngOnInit() {
  11149. this._unregisterListenersFn = listenToTriggers(this._renderer, this._elementRef.nativeElement, this.triggers, this.isOpen.bind(this), this.open.bind(this), this.close.bind(this), +this.openDelay, +this.closeDelay);
  11150. }
  11151. ngOnChanges({ tooltipClass }) {
  11152. if (tooltipClass && this.isOpen()) {
  11153. this._windowRef.instance.tooltipClass = tooltipClass.currentValue;
  11154. }
  11155. }
  11156. ngOnDestroy() {
  11157. this.close();
  11158. // This check is needed as it might happen that ngOnDestroy is called before ngOnInit
  11159. // under certain conditions, see: https://github.com/ng-bootstrap/ng-bootstrap/issues/2199
  11160. if (this._unregisterListenersFn) {
  11161. this._unregisterListenersFn();
  11162. }
  11163. this._zoneSubscription.unsubscribe();
  11164. }
  11165. }
  11166. NgbTooltip.ɵfac = function NgbTooltip_Factory(t) { return new (t || NgbTooltip)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbTooltipConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"])); };
  11167. NgbTooltip.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbTooltip, selectors: [["", "ngbTooltip", ""]], inputs: { animation: "animation", autoClose: "autoClose", placement: "placement", triggers: "triggers", container: "container", disableTooltip: "disableTooltip", tooltipClass: "tooltipClass", openDelay: "openDelay", closeDelay: "closeDelay", ngbTooltip: "ngbTooltip" }, outputs: { shown: "shown", hidden: "hidden" }, exportAs: ["ngbTooltip"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  11168. NgbTooltip.ctorParameters = () => [
  11169. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  11170. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  11171. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] },
  11172. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] },
  11173. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  11174. { type: NgbTooltipConfig },
  11175. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  11176. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] },
  11177. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  11178. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"] }
  11179. ];
  11180. NgbTooltip.propDecorators = {
  11181. animation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11182. autoClose: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11183. placement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11184. triggers: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11185. container: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11186. disableTooltip: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11187. tooltipClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11188. openDelay: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11189. closeDelay: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11190. shown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  11191. hidden: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  11192. ngbTooltip: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  11193. };
  11194. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTooltip, [{
  11195. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  11196. args: [{ selector: '[ngbTooltip]', exportAs: 'ngbTooltip' }]
  11197. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: NgbTooltipConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: undefined, decorators: [{
  11198. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  11199. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  11200. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"] }]; }, { shown: [{
  11201. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  11202. }], hidden: [{
  11203. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  11204. }], animation: [{
  11205. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11206. }], autoClose: [{
  11207. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11208. }], placement: [{
  11209. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11210. }], triggers: [{
  11211. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11212. }], container: [{
  11213. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11214. }], disableTooltip: [{
  11215. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11216. }], tooltipClass: [{
  11217. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11218. }], openDelay: [{
  11219. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11220. }], closeDelay: [{
  11221. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11222. }], ngbTooltip: [{
  11223. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11224. }] }); })();
  11225. class NgbTooltipModule {
  11226. }
  11227. NgbTooltipModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbTooltipModule });
  11228. NgbTooltipModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbTooltipModule_Factory(t) { return new (t || NgbTooltipModule)(); } });
  11229. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbTooltipModule, { declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip] }); })();
  11230. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTooltipModule, [{
  11231. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  11232. args: [{ declarations: [NgbTooltip, NgbTooltipWindow], exports: [NgbTooltip], entryComponents: [NgbTooltipWindow] }]
  11233. }], null, null); })();
  11234. /**
  11235. * A component that helps with text highlighting.
  11236. *
  11237. * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify
  11238. * highlighting:
  11239. *
  11240. * Ex. `result="Alaska"` and `term="as"` will produce `Al<span class="ngb-highlight">as</span>ka`.
  11241. */
  11242. class NgbHighlight {
  11243. constructor() {
  11244. /**
  11245. * The CSS class for `<span>` elements wrapping the `term` inside the `result`.
  11246. */
  11247. this.highlightClass = 'ngb-highlight';
  11248. }
  11249. ngOnChanges(changes) {
  11250. const result = toString(this.result);
  11251. const terms = Array.isArray(this.term) ? this.term : [this.term];
  11252. const escapedTerms = terms.map(term => regExpEscape(toString(term))).filter(term => term);
  11253. this.parts = escapedTerms.length ? result.split(new RegExp(`(${escapedTerms.join('|')})`, 'gmi')) : [result];
  11254. }
  11255. }
  11256. NgbHighlight.ɵfac = function NgbHighlight_Factory(t) { return new (t || NgbHighlight)(); };
  11257. NgbHighlight.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbHighlight, selectors: [["ngb-highlight"]], inputs: { highlightClass: "highlightClass", result: "result", term: "term" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 1, vars: 1, consts: [["ngFor", "", 3, "ngForOf"], [3, "class", 4, "ngIf", "ngIfElse"], ["even", ""]], template: function NgbHighlight_Template(rf, ctx) { if (rf & 1) {
  11258. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbHighlight_ng_template_0_Template, 3, 2, "ng-template", 0);
  11259. } if (rf & 2) {
  11260. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.parts);
  11261. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"]], styles: [".ngb-highlight{font-weight:700}"], encapsulation: 2, changeDetection: 0 });
  11262. NgbHighlight.propDecorators = {
  11263. highlightClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11264. result: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11265. term: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  11266. };
  11267. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbHighlight, [{
  11268. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  11269. args: [{
  11270. selector: 'ngb-highlight',
  11271. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  11272. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  11273. template: `<ng-template ngFor [ngForOf]="parts" let-part let-isOdd="odd">` +
  11274. `<span *ngIf="isOdd; else even" [class]="highlightClass">{{part}}</span><ng-template #even>{{part}}</ng-template>` +
  11275. `</ng-template>`,
  11276. styles: [".ngb-highlight{font-weight:700}"]
  11277. }]
  11278. }], function () { return []; }, { highlightClass: [{
  11279. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11280. }], result: [{
  11281. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11282. }], term: [{
  11283. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11284. }] }); })();
  11285. class NgbTypeaheadWindow {
  11286. constructor() {
  11287. this.activeIdx = 0;
  11288. /**
  11289. * Flag indicating if the first row should be active initially
  11290. */
  11291. this.focusFirst = true;
  11292. /**
  11293. * A function used to format a given result before display. This function should return a formatted string without any
  11294. * HTML markup
  11295. */
  11296. this.formatter = toString;
  11297. /**
  11298. * Event raised when user selects a particular result row
  11299. */
  11300. this.selectEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  11301. this.activeChangeEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  11302. }
  11303. hasActive() { return this.activeIdx > -1 && this.activeIdx < this.results.length; }
  11304. getActive() { return this.results[this.activeIdx]; }
  11305. markActive(activeIdx) {
  11306. this.activeIdx = activeIdx;
  11307. this._activeChanged();
  11308. }
  11309. next() {
  11310. if (this.activeIdx === this.results.length - 1) {
  11311. this.activeIdx = this.focusFirst ? (this.activeIdx + 1) % this.results.length : -1;
  11312. }
  11313. else {
  11314. this.activeIdx++;
  11315. }
  11316. this._activeChanged();
  11317. }
  11318. prev() {
  11319. if (this.activeIdx < 0) {
  11320. this.activeIdx = this.results.length - 1;
  11321. }
  11322. else if (this.activeIdx === 0) {
  11323. this.activeIdx = this.focusFirst ? this.results.length - 1 : -1;
  11324. }
  11325. else {
  11326. this.activeIdx--;
  11327. }
  11328. this._activeChanged();
  11329. }
  11330. resetActive() {
  11331. this.activeIdx = this.focusFirst ? 0 : -1;
  11332. this._activeChanged();
  11333. }
  11334. select(item) { this.selectEvent.emit(item); }
  11335. ngOnInit() { this.resetActive(); }
  11336. _activeChanged() {
  11337. this.activeChangeEvent.emit(this.activeIdx >= 0 ? this.id + '-' + this.activeIdx : undefined);
  11338. }
  11339. }
  11340. NgbTypeaheadWindow.ɵfac = function NgbTypeaheadWindow_Factory(t) { return new (t || NgbTypeaheadWindow)(); };
  11341. NgbTypeaheadWindow.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgbTypeaheadWindow, selectors: [["ngb-typeahead-window"]], hostAttrs: ["role", "listbox", 1, "dropdown-menu", "show"], hostVars: 1, hostBindings: function NgbTypeaheadWindow_HostBindings(rf, ctx) { if (rf & 1) {
  11342. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function NgbTypeaheadWindow_mousedown_HostBindingHandler($event) { return $event.preventDefault(); });
  11343. } if (rf & 2) {
  11344. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("id", ctx.id);
  11345. } }, inputs: { focusFirst: "focusFirst", formatter: "formatter", id: "id", results: "results", term: "term", resultTemplate: "resultTemplate" }, outputs: { selectEvent: "select", activeChangeEvent: "activeChange" }, exportAs: ["ngbTypeaheadWindow"], decls: 3, vars: 1, consts: [["rt", ""], ["ngFor", "", 3, "ngForOf"], [3, "result", "term"], ["type", "button", "role", "option", 1, "dropdown-item", 3, "id", "mouseenter", "click"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function NgbTypeaheadWindow_Template(rf, ctx) { if (rf & 1) {
  11346. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgbTypeaheadWindow_ng_template_0_Template, 1, 2, "ng-template", null, 0, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  11347. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgbTypeaheadWindow_ng_template_2_Template, 2, 9, "ng-template", 1);
  11348. } if (rf & 2) {
  11349. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  11350. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.results);
  11351. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], NgbHighlight, _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgTemplateOutlet"]], encapsulation: 2 });
  11352. NgbTypeaheadWindow.propDecorators = {
  11353. id: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11354. focusFirst: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11355. results: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11356. term: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11357. formatter: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11358. resultTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11359. selectEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['select',] }],
  11360. activeChangeEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['activeChange',] }]
  11361. };
  11362. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTypeaheadWindow, [{
  11363. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  11364. args: [{
  11365. selector: 'ngb-typeahead-window',
  11366. exportAs: 'ngbTypeaheadWindow',
  11367. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  11368. host: { '(mousedown)': '$event.preventDefault()', 'class': 'dropdown-menu show', 'role': 'listbox', '[id]': 'id' },
  11369. template: `
  11370. <ng-template #rt let-result="result" let-term="term" let-formatter="formatter">
  11371. <ngb-highlight [result]="formatter(result)" [term]="term"></ngb-highlight>
  11372. </ng-template>
  11373. <ng-template ngFor [ngForOf]="results" let-result let-idx="index">
  11374. <button type="button" class="dropdown-item" role="option"
  11375. [id]="id + '-' + idx"
  11376. [class.active]="idx === activeIdx"
  11377. (mouseenter)="markActive(idx)"
  11378. (click)="select(result)">
  11379. <ng-template [ngTemplateOutlet]="resultTemplate || rt"
  11380. [ngTemplateOutletContext]="{result: result, term: term, formatter: formatter}"></ng-template>
  11381. </button>
  11382. </ng-template>
  11383. `
  11384. }]
  11385. }], function () { return []; }, { focusFirst: [{
  11386. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11387. }], formatter: [{
  11388. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11389. }], selectEvent: [{
  11390. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  11391. args: ['select']
  11392. }], activeChangeEvent: [{
  11393. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  11394. args: ['activeChange']
  11395. }], id: [{
  11396. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11397. }], results: [{
  11398. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11399. }], term: [{
  11400. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11401. }], resultTemplate: [{
  11402. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11403. }] }); })();
  11404. const ARIA_LIVE_DELAY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('live announcer delay', { providedIn: 'root', factory: ARIA_LIVE_DELAY_FACTORY });
  11405. function ARIA_LIVE_DELAY_FACTORY() {
  11406. return 100;
  11407. }
  11408. function getLiveElement(document, lazyCreate = false) {
  11409. let element = document.body.querySelector('#ngb-live');
  11410. if (element == null && lazyCreate) {
  11411. element = document.createElement('div');
  11412. element.setAttribute('id', 'ngb-live');
  11413. element.setAttribute('aria-live', 'polite');
  11414. element.setAttribute('aria-atomic', 'true');
  11415. element.classList.add('sr-only');
  11416. document.body.appendChild(element);
  11417. }
  11418. return element;
  11419. }
  11420. class Live {
  11421. constructor(_document, _delay) {
  11422. this._document = _document;
  11423. this._delay = _delay;
  11424. }
  11425. ngOnDestroy() {
  11426. const element = getLiveElement(this._document);
  11427. if (element) {
  11428. // if exists, it will always be attached to the <body>
  11429. element.parentElement.removeChild(element);
  11430. }
  11431. }
  11432. say(message) {
  11433. const element = getLiveElement(this._document, true);
  11434. const delay = this._delay;
  11435. if (element != null) {
  11436. element.textContent = '';
  11437. const setText = () => element.textContent = message;
  11438. if (delay === null) {
  11439. setText();
  11440. }
  11441. else {
  11442. setTimeout(setText, delay);
  11443. }
  11444. }
  11445. }
  11446. }
  11447. Live.ɵfac = function Live_Factory(t) { return new (t || Live)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](ARIA_LIVE_DELAY)); };
  11448. Live.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function Live_Factory() { return new Live(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(ARIA_LIVE_DELAY)); }, token: Live, providedIn: "root" });
  11449. Live.ctorParameters = () => [
  11450. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] },
  11451. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [ARIA_LIVE_DELAY,] }] }
  11452. ];
  11453. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Live, [{
  11454. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  11455. args: [{ providedIn: 'root' }]
  11456. }], function () { return [{ type: undefined, decorators: [{
  11457. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  11458. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  11459. }] }, { type: undefined, decorators: [{
  11460. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  11461. args: [ARIA_LIVE_DELAY]
  11462. }] }]; }, null); })();
  11463. /**
  11464. * A configuration service for the [`NgbTypeahead`](#/components/typeahead/api#NgbTypeahead) component.
  11465. *
  11466. * You can inject this service, typically in your root component, and customize the values of its properties in
  11467. * order to provide default values for all the typeaheads used in the application.
  11468. */
  11469. class NgbTypeaheadConfig {
  11470. constructor() {
  11471. this.editable = true;
  11472. this.focusFirst = true;
  11473. this.showHint = false;
  11474. this.placement = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];
  11475. }
  11476. }
  11477. NgbTypeaheadConfig.ɵfac = function NgbTypeaheadConfig_Factory(t) { return new (t || NgbTypeaheadConfig)(); };
  11478. NgbTypeaheadConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgbTypeaheadConfig_Factory() { return new NgbTypeaheadConfig(); }, token: NgbTypeaheadConfig, providedIn: "root" });
  11479. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTypeaheadConfig, [{
  11480. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  11481. args: [{ providedIn: 'root' }]
  11482. }], function () { return []; }, null); })();
  11483. const NGB_TYPEAHEAD_VALUE_ACCESSOR = {
  11484. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALUE_ACCESSOR"],
  11485. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgbTypeahead),
  11486. multi: true
  11487. };
  11488. let nextWindowId = 0;
  11489. /**
  11490. * A directive providing a simple way of creating powerful typeaheads from any text input.
  11491. */
  11492. class NgbTypeahead {
  11493. constructor(_elementRef, viewContainerRef, _renderer, injector, componentFactoryResolver, config, ngZone, _live, _document, _ngZone, _changeDetector, applicationRef) {
  11494. this._elementRef = _elementRef;
  11495. this._renderer = _renderer;
  11496. this._live = _live;
  11497. this._document = _document;
  11498. this._ngZone = _ngZone;
  11499. this._changeDetector = _changeDetector;
  11500. this._subscription = null;
  11501. this._closed$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  11502. this._inputValueBackup = null;
  11503. this._windowRef = null;
  11504. /**
  11505. * The value for the `autocomplete` attribute for the `<input>` element.
  11506. *
  11507. * Defaults to `"off"` to disable the native browser autocomplete, but you can override it if necessary.
  11508. *
  11509. * @since 2.1.0
  11510. */
  11511. this.autocomplete = 'off';
  11512. /**
  11513. * The preferred placement of the typeahead.
  11514. *
  11515. * Possible values are `"top"`, `"top-left"`, `"top-right"`, `"bottom"`, `"bottom-left"`,
  11516. * `"bottom-right"`, `"left"`, `"left-top"`, `"left-bottom"`, `"right"`, `"right-top"`,
  11517. * `"right-bottom"`
  11518. *
  11519. * Accepts an array of strings or a string with space separated possible values.
  11520. *
  11521. * The default order of preference is `"bottom-left bottom-right top-left top-right"`
  11522. *
  11523. * Please see the [positioning overview](#/positioning) for more details.
  11524. */
  11525. this.placement = 'bottom-left';
  11526. /**
  11527. * An event emitted right before an item is selected from the result list.
  11528. *
  11529. * Event payload is of type [`NgbTypeaheadSelectItemEvent`](#/components/typeahead/api#NgbTypeaheadSelectItemEvent).
  11530. */
  11531. this.selectItem = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  11532. this.activeDescendant = null;
  11533. this.popupId = `ngb-typeahead-${nextWindowId++}`;
  11534. this._onTouched = () => { };
  11535. this._onChange = (_) => { };
  11536. this.container = config.container;
  11537. this.editable = config.editable;
  11538. this.focusFirst = config.focusFirst;
  11539. this.showHint = config.showHint;
  11540. this.placement = config.placement;
  11541. this._valueChanges = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(_elementRef.nativeElement, 'input')
  11542. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])($event => $event.target.value));
  11543. this._resubscribeTypeahead = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](null);
  11544. this._popupService = new PopupService(NgbTypeaheadWindow, injector, viewContainerRef, _renderer, this._ngZone, componentFactoryResolver, applicationRef);
  11545. this._zoneSubscription = ngZone.onStable.subscribe(() => {
  11546. if (this.isPopupOpen()) {
  11547. positionElements(this._elementRef.nativeElement, this._windowRef.location.nativeElement, this.placement, this.container === 'body');
  11548. }
  11549. });
  11550. }
  11551. ngOnInit() {
  11552. const inputValues$ = this._valueChanges.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(value => {
  11553. this._inputValueBackup = this.showHint ? value : null;
  11554. this._onChange(this.editable ? value : undefined);
  11555. }));
  11556. const results$ = inputValues$.pipe(this.ngbTypeahead);
  11557. const userInput$ = this._resubscribeTypeahead.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(() => results$));
  11558. this._subscription = this._subscribeToUserInput(userInput$);
  11559. }
  11560. ngOnDestroy() {
  11561. this._closePopup();
  11562. this._unsubscribeFromUserInput();
  11563. this._zoneSubscription.unsubscribe();
  11564. }
  11565. registerOnChange(fn) { this._onChange = fn; }
  11566. registerOnTouched(fn) { this._onTouched = fn; }
  11567. writeValue(value) {
  11568. this._writeInputValue(this._formatItemForInput(value));
  11569. if (this.showHint) {
  11570. this._inputValueBackup = value;
  11571. }
  11572. }
  11573. setDisabledState(isDisabled) {
  11574. this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
  11575. }
  11576. /**
  11577. * Dismisses typeahead popup window
  11578. */
  11579. dismissPopup() {
  11580. if (this.isPopupOpen()) {
  11581. this._resubscribeTypeahead.next(null);
  11582. this._closePopup();
  11583. if (this.showHint && this._inputValueBackup !== null) {
  11584. this._writeInputValue(this._inputValueBackup);
  11585. }
  11586. this._changeDetector.markForCheck();
  11587. }
  11588. }
  11589. /**
  11590. * Returns true if the typeahead popup window is displayed
  11591. */
  11592. isPopupOpen() { return this._windowRef != null; }
  11593. handleBlur() {
  11594. this._resubscribeTypeahead.next(null);
  11595. this._onTouched();
  11596. }
  11597. handleKeyDown(event) {
  11598. if (!this.isPopupOpen()) {
  11599. return;
  11600. }
  11601. // tslint:disable-next-line:deprecation
  11602. switch (event.which) {
  11603. case Key.ArrowDown:
  11604. event.preventDefault();
  11605. this._windowRef.instance.next();
  11606. this._showHint();
  11607. break;
  11608. case Key.ArrowUp:
  11609. event.preventDefault();
  11610. this._windowRef.instance.prev();
  11611. this._showHint();
  11612. break;
  11613. case Key.Enter:
  11614. case Key.Tab:
  11615. const result = this._windowRef.instance.getActive();
  11616. if (isDefined(result)) {
  11617. event.preventDefault();
  11618. event.stopPropagation();
  11619. this._selectResult(result);
  11620. }
  11621. this._closePopup();
  11622. break;
  11623. }
  11624. }
  11625. _openPopup() {
  11626. if (!this.isPopupOpen()) {
  11627. this._inputValueBackup = this._elementRef.nativeElement.value;
  11628. const { windowRef } = this._popupService.open();
  11629. this._windowRef = windowRef;
  11630. this._windowRef.instance.id = this.popupId;
  11631. this._windowRef.instance.selectEvent.subscribe((result) => this._selectResultClosePopup(result));
  11632. this._windowRef.instance.activeChangeEvent.subscribe((activeId) => this.activeDescendant = activeId);
  11633. if (this.container === 'body') {
  11634. this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement);
  11635. }
  11636. this._changeDetector.markForCheck();
  11637. ngbAutoClose(this._ngZone, this._document, 'outside', () => this.dismissPopup(), this._closed$, [this._elementRef.nativeElement, this._windowRef.location.nativeElement]);
  11638. }
  11639. }
  11640. _closePopup() {
  11641. this._popupService.close().subscribe(() => {
  11642. this._closed$.next();
  11643. this._windowRef = null;
  11644. this.activeDescendant = null;
  11645. });
  11646. }
  11647. _selectResult(result) {
  11648. let defaultPrevented = false;
  11649. this.selectItem.emit({ item: result, preventDefault: () => { defaultPrevented = true; } });
  11650. this._resubscribeTypeahead.next(null);
  11651. if (!defaultPrevented) {
  11652. this.writeValue(result);
  11653. this._onChange(result);
  11654. }
  11655. }
  11656. _selectResultClosePopup(result) {
  11657. this._selectResult(result);
  11658. this._closePopup();
  11659. }
  11660. _showHint() {
  11661. var _a;
  11662. if (this.showHint && ((_a = this._windowRef) === null || _a === void 0 ? void 0 : _a.instance.hasActive()) && this._inputValueBackup != null) {
  11663. const userInputLowerCase = this._inputValueBackup.toLowerCase();
  11664. const formattedVal = this._formatItemForInput(this._windowRef.instance.getActive());
  11665. if (userInputLowerCase === formattedVal.substr(0, this._inputValueBackup.length).toLowerCase()) {
  11666. this._writeInputValue(this._inputValueBackup + formattedVal.substr(this._inputValueBackup.length));
  11667. this._elementRef.nativeElement['setSelectionRange'].apply(this._elementRef.nativeElement, [this._inputValueBackup.length, formattedVal.length]);
  11668. }
  11669. else {
  11670. this._writeInputValue(formattedVal);
  11671. }
  11672. }
  11673. }
  11674. _formatItemForInput(item) {
  11675. return item != null && this.inputFormatter ? this.inputFormatter(item) : toString(item);
  11676. }
  11677. _writeInputValue(value) {
  11678. this._renderer.setProperty(this._elementRef.nativeElement, 'value', toString(value));
  11679. }
  11680. _subscribeToUserInput(userInput$) {
  11681. return userInput$.subscribe((results) => {
  11682. if (!results || results.length === 0) {
  11683. this._closePopup();
  11684. }
  11685. else {
  11686. this._openPopup();
  11687. this._windowRef.instance.focusFirst = this.focusFirst;
  11688. this._windowRef.instance.results = results;
  11689. this._windowRef.instance.term = this._elementRef.nativeElement.value;
  11690. if (this.resultFormatter) {
  11691. this._windowRef.instance.formatter = this.resultFormatter;
  11692. }
  11693. if (this.resultTemplate) {
  11694. this._windowRef.instance.resultTemplate = this.resultTemplate;
  11695. }
  11696. this._windowRef.instance.resetActive();
  11697. // The observable stream we are subscribing to might have async steps
  11698. // and if a component containing typeahead is using the OnPush strategy
  11699. // the change detection turn wouldn't be invoked automatically.
  11700. this._windowRef.changeDetectorRef.detectChanges();
  11701. this._showHint();
  11702. }
  11703. // live announcer
  11704. const count = results ? results.length : 0;
  11705. this._live.say(count === 0 ? 'No results available' : `${count} result${count === 1 ? '' : 's'} available`);
  11706. });
  11707. }
  11708. _unsubscribeFromUserInput() {
  11709. if (this._subscription) {
  11710. this._subscription.unsubscribe();
  11711. }
  11712. this._subscription = null;
  11713. }
  11714. }
  11715. NgbTypeahead.ɵfac = function NgbTypeahead_Factory(t) { return new (t || NgbTypeahead)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgbTypeaheadConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](Live), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"])); };
  11716. NgbTypeahead.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgbTypeahead, selectors: [["input", "ngbTypeahead", ""]], hostAttrs: ["autocapitalize", "off", "autocorrect", "off", "role", "combobox", "aria-multiline", "false"], hostVars: 7, hostBindings: function NgbTypeahead_HostBindings(rf, ctx) { if (rf & 1) {
  11717. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("blur", function NgbTypeahead_blur_HostBindingHandler() { return ctx.handleBlur(); })("keydown", function NgbTypeahead_keydown_HostBindingHandler($event) { return ctx.handleKeyDown($event); });
  11718. } if (rf & 2) {
  11719. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("autocomplete", ctx.autocomplete);
  11720. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("aria-autocomplete", ctx.showHint ? "both" : "list")("aria-activedescendant", ctx.activeDescendant)("aria-owns", ctx.isPopupOpen() ? ctx.popupId : null)("aria-expanded", ctx.isPopupOpen());
  11721. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("open", ctx.isPopupOpen());
  11722. } }, inputs: { autocomplete: "autocomplete", placement: "placement", container: "container", editable: "editable", focusFirst: "focusFirst", showHint: "showHint", inputFormatter: "inputFormatter", ngbTypeahead: "ngbTypeahead", resultFormatter: "resultFormatter", resultTemplate: "resultTemplate" }, outputs: { selectItem: "selectItem" }, exportAs: ["ngbTypeahead"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NGB_TYPEAHEAD_VALUE_ACCESSOR])] });
  11723. NgbTypeahead.ctorParameters = () => [
  11724. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  11725. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  11726. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  11727. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] },
  11728. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] },
  11729. { type: NgbTypeaheadConfig },
  11730. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  11731. { type: Live },
  11732. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"],] }] },
  11733. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  11734. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  11735. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"] }
  11736. ];
  11737. NgbTypeahead.propDecorators = {
  11738. autocomplete: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11739. container: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11740. editable: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11741. focusFirst: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11742. inputFormatter: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11743. ngbTypeahead: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11744. resultFormatter: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11745. resultTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11746. showHint: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11747. placement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  11748. selectItem: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  11749. };
  11750. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTypeahead, [{
  11751. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  11752. args: [{
  11753. selector: 'input[ngbTypeahead]',
  11754. exportAs: 'ngbTypeahead',
  11755. host: {
  11756. '(blur)': 'handleBlur()',
  11757. '[class.open]': 'isPopupOpen()',
  11758. '(keydown)': 'handleKeyDown($event)',
  11759. '[autocomplete]': 'autocomplete',
  11760. 'autocapitalize': 'off',
  11761. 'autocorrect': 'off',
  11762. 'role': 'combobox',
  11763. 'aria-multiline': 'false',
  11764. '[attr.aria-autocomplete]': 'showHint ? "both" : "list"',
  11765. '[attr.aria-activedescendant]': 'activeDescendant',
  11766. '[attr.aria-owns]': 'isPopupOpen() ? popupId : null',
  11767. '[attr.aria-expanded]': 'isPopupOpen()'
  11768. },
  11769. providers: [NGB_TYPEAHEAD_VALUE_ACCESSOR]
  11770. }]
  11771. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: NgbTypeaheadConfig }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: Live }, { type: undefined, decorators: [{
  11772. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  11773. args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]]
  11774. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ApplicationRef"] }]; }, { autocomplete: [{
  11775. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11776. }], placement: [{
  11777. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11778. }], selectItem: [{
  11779. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  11780. }], container: [{
  11781. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11782. }], editable: [{
  11783. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11784. }], focusFirst: [{
  11785. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11786. }], showHint: [{
  11787. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11788. }], inputFormatter: [{
  11789. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11790. }], ngbTypeahead: [{
  11791. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11792. }], resultFormatter: [{
  11793. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11794. }], resultTemplate: [{
  11795. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  11796. }] }); })();
  11797. class NgbTypeaheadModule {
  11798. }
  11799. NgbTypeaheadModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbTypeaheadModule });
  11800. NgbTypeaheadModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbTypeaheadModule_Factory(t) { return new (t || NgbTypeaheadModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  11801. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbTypeaheadModule, { declarations: function () { return [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [NgbTypeahead, NgbHighlight]; } }); })();
  11802. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbTypeaheadModule, [{
  11803. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  11804. args: [{
  11805. declarations: [NgbTypeahead, NgbHighlight, NgbTypeaheadWindow],
  11806. exports: [NgbTypeahead, NgbHighlight],
  11807. imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]],
  11808. entryComponents: [NgbTypeaheadWindow]
  11809. }]
  11810. }], null, null); })();
  11811. const NGB_MODULES = [
  11812. NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule,
  11813. NgbDropdownModule, NgbModalModule, NgbNavModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule,
  11814. NgbRatingModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule
  11815. ];
  11816. class NgbModule {
  11817. }
  11818. NgbModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgbModule });
  11819. NgbModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgbModule_Factory(t) { return new (t || NgbModule)(); }, imports: [NGB_MODULES, NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule, NgbDropdownModule, NgbModalModule, NgbNavModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule] });
  11820. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgbModule, { imports: [NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule, NgbDropdownModule, NgbModalModule, NgbNavModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule], exports: [NgbAccordionModule, NgbAlertModule, NgbButtonsModule, NgbCarouselModule, NgbCollapseModule, NgbDatepickerModule, NgbDropdownModule, NgbModalModule, NgbNavModule, NgbPaginationModule, NgbPopoverModule, NgbProgressbarModule, NgbRatingModule, NgbTimepickerModule, NgbToastModule, NgbTooltipModule, NgbTypeaheadModule] }); })();
  11821. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgbModule, [{
  11822. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  11823. args: [{ imports: NGB_MODULES, exports: NGB_MODULES }]
  11824. }], null, null); })();
  11825. /**
  11826. * Generated bundle index. Do not edit.
  11827. */
  11828. //# sourceMappingURL=ng-bootstrap.js.map
  11829. /***/ }),
  11830. /***/ "1uah":
  11831. /*!***************************************************************!*\
  11832. !*** ./node_modules/rxjs/_esm2015/internal/observable/zip.js ***!
  11833. \***************************************************************/
  11834. /*! exports provided: zip, ZipOperator, ZipSubscriber */
  11835. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  11836. "use strict";
  11837. __webpack_require__.r(__webpack_exports__);
  11838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return zip; });
  11839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ZipOperator", function() { return ZipOperator; });
  11840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ZipSubscriber", function() { return ZipSubscriber; });
  11841. /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fromArray */ "yCtX");
  11842. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  11843. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  11844. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  11845. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  11846. /* harmony import */ var _internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../internal/symbol/iterator */ "Lhse");
  11847. function zip(...observables) {
  11848. const resultSelector = observables[observables.length - 1];
  11849. if (typeof resultSelector === 'function') {
  11850. observables.pop();
  11851. }
  11852. return Object(_fromArray__WEBPACK_IMPORTED_MODULE_0__["fromArray"])(observables, undefined).lift(new ZipOperator(resultSelector));
  11853. }
  11854. class ZipOperator {
  11855. constructor(resultSelector) {
  11856. this.resultSelector = resultSelector;
  11857. }
  11858. call(subscriber, source) {
  11859. return source.subscribe(new ZipSubscriber(subscriber, this.resultSelector));
  11860. }
  11861. }
  11862. class ZipSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"] {
  11863. constructor(destination, resultSelector, values = Object.create(null)) {
  11864. super(destination);
  11865. this.iterators = [];
  11866. this.active = 0;
  11867. this.resultSelector = (typeof resultSelector === 'function') ? resultSelector : null;
  11868. this.values = values;
  11869. }
  11870. _next(value) {
  11871. const iterators = this.iterators;
  11872. if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(value)) {
  11873. iterators.push(new StaticArrayIterator(value));
  11874. }
  11875. else if (typeof value[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_5__["iterator"]] === 'function') {
  11876. iterators.push(new StaticIterator(value[_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_5__["iterator"]]()));
  11877. }
  11878. else {
  11879. iterators.push(new ZipBufferIterator(this.destination, this, value));
  11880. }
  11881. }
  11882. _complete() {
  11883. const iterators = this.iterators;
  11884. const len = iterators.length;
  11885. this.unsubscribe();
  11886. if (len === 0) {
  11887. this.destination.complete();
  11888. return;
  11889. }
  11890. this.active = len;
  11891. for (let i = 0; i < len; i++) {
  11892. let iterator = iterators[i];
  11893. if (iterator.stillUnsubscribed) {
  11894. const destination = this.destination;
  11895. destination.add(iterator.subscribe(iterator, i));
  11896. }
  11897. else {
  11898. this.active--;
  11899. }
  11900. }
  11901. }
  11902. notifyInactive() {
  11903. this.active--;
  11904. if (this.active === 0) {
  11905. this.destination.complete();
  11906. }
  11907. }
  11908. checkIterators() {
  11909. const iterators = this.iterators;
  11910. const len = iterators.length;
  11911. const destination = this.destination;
  11912. for (let i = 0; i < len; i++) {
  11913. let iterator = iterators[i];
  11914. if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {
  11915. return;
  11916. }
  11917. }
  11918. let shouldComplete = false;
  11919. const args = [];
  11920. for (let i = 0; i < len; i++) {
  11921. let iterator = iterators[i];
  11922. let result = iterator.next();
  11923. if (iterator.hasCompleted()) {
  11924. shouldComplete = true;
  11925. }
  11926. if (result.done) {
  11927. destination.complete();
  11928. return;
  11929. }
  11930. args.push(result.value);
  11931. }
  11932. if (this.resultSelector) {
  11933. this._tryresultSelector(args);
  11934. }
  11935. else {
  11936. destination.next(args);
  11937. }
  11938. if (shouldComplete) {
  11939. destination.complete();
  11940. }
  11941. }
  11942. _tryresultSelector(args) {
  11943. let result;
  11944. try {
  11945. result = this.resultSelector.apply(this, args);
  11946. }
  11947. catch (err) {
  11948. this.destination.error(err);
  11949. return;
  11950. }
  11951. this.destination.next(result);
  11952. }
  11953. }
  11954. class StaticIterator {
  11955. constructor(iterator) {
  11956. this.iterator = iterator;
  11957. this.nextResult = iterator.next();
  11958. }
  11959. hasValue() {
  11960. return true;
  11961. }
  11962. next() {
  11963. const result = this.nextResult;
  11964. this.nextResult = this.iterator.next();
  11965. return result;
  11966. }
  11967. hasCompleted() {
  11968. const nextResult = this.nextResult;
  11969. return nextResult && nextResult.done;
  11970. }
  11971. }
  11972. class StaticArrayIterator {
  11973. constructor(array) {
  11974. this.array = array;
  11975. this.index = 0;
  11976. this.length = 0;
  11977. this.length = array.length;
  11978. }
  11979. [_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_5__["iterator"]]() {
  11980. return this;
  11981. }
  11982. next(value) {
  11983. const i = this.index++;
  11984. const array = this.array;
  11985. return i < this.length ? { value: array[i], done: false } : { value: null, done: true };
  11986. }
  11987. hasValue() {
  11988. return this.array.length > this.index;
  11989. }
  11990. hasCompleted() {
  11991. return this.array.length === this.index;
  11992. }
  11993. }
  11994. class ZipBufferIterator extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_3__["OuterSubscriber"] {
  11995. constructor(destination, parent, observable) {
  11996. super(destination);
  11997. this.parent = parent;
  11998. this.observable = observable;
  11999. this.stillUnsubscribed = true;
  12000. this.buffer = [];
  12001. this.isComplete = false;
  12002. }
  12003. [_internal_symbol_iterator__WEBPACK_IMPORTED_MODULE_5__["iterator"]]() {
  12004. return this;
  12005. }
  12006. next() {
  12007. const buffer = this.buffer;
  12008. if (buffer.length === 0 && this.isComplete) {
  12009. return { value: null, done: true };
  12010. }
  12011. else {
  12012. return { value: buffer.shift(), done: false };
  12013. }
  12014. }
  12015. hasValue() {
  12016. return this.buffer.length > 0;
  12017. }
  12018. hasCompleted() {
  12019. return this.buffer.length === 0 && this.isComplete;
  12020. }
  12021. notifyComplete() {
  12022. if (this.buffer.length > 0) {
  12023. this.isComplete = true;
  12024. this.parent.notifyInactive();
  12025. }
  12026. else {
  12027. this.destination.complete();
  12028. }
  12029. }
  12030. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  12031. this.buffer.push(innerValue);
  12032. this.parent.checkIterators();
  12033. }
  12034. subscribe(value, index) {
  12035. return Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__["subscribeToResult"])(this, this.observable, this, index);
  12036. }
  12037. }
  12038. //# sourceMappingURL=zip.js.map
  12039. /***/ }),
  12040. /***/ "2QA8":
  12041. /*!********************************************************************!*\
  12042. !*** ./node_modules/rxjs/_esm2015/internal/symbol/rxSubscriber.js ***!
  12043. \********************************************************************/
  12044. /*! exports provided: rxSubscriber, $$rxSubscriber */
  12045. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12046. "use strict";
  12047. __webpack_require__.r(__webpack_exports__);
  12048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "rxSubscriber", function() { return rxSubscriber; });
  12049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "$$rxSubscriber", function() { return $$rxSubscriber; });
  12050. const rxSubscriber = (() => typeof Symbol === 'function'
  12051. ? Symbol('rxSubscriber')
  12052. : '@@rxSubscriber_' + Math.random())();
  12053. const $$rxSubscriber = rxSubscriber;
  12054. //# sourceMappingURL=rxSubscriber.js.map
  12055. /***/ }),
  12056. /***/ "2QGa":
  12057. /*!*********************************************************************!*\
  12058. !*** ./node_modules/rxjs/_esm2015/internal/observable/partition.js ***!
  12059. \*********************************************************************/
  12060. /*! exports provided: partition */
  12061. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12062. "use strict";
  12063. __webpack_require__.r(__webpack_exports__);
  12064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return partition; });
  12065. /* harmony import */ var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/not */ "F97/");
  12066. /* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeTo */ "SeVD");
  12067. /* harmony import */ var _operators_filter__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/filter */ "pLZG");
  12068. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Observable */ "HDdC");
  12069. function partition(source, predicate, thisArg) {
  12070. return [
  12071. Object(_operators_filter__WEBPACK_IMPORTED_MODULE_2__["filter"])(predicate, thisArg)(new _Observable__WEBPACK_IMPORTED_MODULE_3__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(source))),
  12072. Object(_operators_filter__WEBPACK_IMPORTED_MODULE_2__["filter"])(Object(_util_not__WEBPACK_IMPORTED_MODULE_0__["not"])(predicate, thisArg))(new _Observable__WEBPACK_IMPORTED_MODULE_3__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(source)))
  12073. ];
  12074. }
  12075. //# sourceMappingURL=partition.js.map
  12076. /***/ }),
  12077. /***/ "2Vo4":
  12078. /*!****************************************************************!*\
  12079. !*** ./node_modules/rxjs/_esm2015/internal/BehaviorSubject.js ***!
  12080. \****************************************************************/
  12081. /*! exports provided: BehaviorSubject */
  12082. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12083. "use strict";
  12084. __webpack_require__.r(__webpack_exports__);
  12085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BehaviorSubject", function() { return BehaviorSubject; });
  12086. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subject */ "XNiG");
  12087. /* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/ObjectUnsubscribedError */ "9ppp");
  12088. class BehaviorSubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"] {
  12089. constructor(_value) {
  12090. super();
  12091. this._value = _value;
  12092. }
  12093. get value() {
  12094. return this.getValue();
  12095. }
  12096. _subscribe(subscriber) {
  12097. const subscription = super._subscribe(subscriber);
  12098. if (subscription && !subscription.closed) {
  12099. subscriber.next(this._value);
  12100. }
  12101. return subscription;
  12102. }
  12103. getValue() {
  12104. if (this.hasError) {
  12105. throw this.thrownError;
  12106. }
  12107. else if (this.closed) {
  12108. throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_1__["ObjectUnsubscribedError"]();
  12109. }
  12110. else {
  12111. return this._value;
  12112. }
  12113. }
  12114. next(value) {
  12115. super.next(this._value = value);
  12116. }
  12117. }
  12118. //# sourceMappingURL=BehaviorSubject.js.map
  12119. /***/ }),
  12120. /***/ "2fFW":
  12121. /*!*******************************************************!*\
  12122. !*** ./node_modules/rxjs/_esm2015/internal/config.js ***!
  12123. \*******************************************************/
  12124. /*! exports provided: config */
  12125. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12126. "use strict";
  12127. __webpack_require__.r(__webpack_exports__);
  12128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; });
  12129. let _enable_super_gross_mode_that_will_cause_bad_things = false;
  12130. const config = {
  12131. Promise: undefined,
  12132. set useDeprecatedSynchronousErrorHandling(value) {
  12133. if (value) {
  12134. const error = new Error();
  12135. console.warn('DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n' + error.stack);
  12136. }
  12137. else if (_enable_super_gross_mode_that_will_cause_bad_things) {
  12138. console.log('RxJS: Back to a better error behavior. Thank you. <3');
  12139. }
  12140. _enable_super_gross_mode_that_will_cause_bad_things = value;
  12141. },
  12142. get useDeprecatedSynchronousErrorHandling() {
  12143. return _enable_super_gross_mode_that_will_cause_bad_things;
  12144. },
  12145. };
  12146. //# sourceMappingURL=config.js.map
  12147. /***/ }),
  12148. /***/ "32Ea":
  12149. /*!********************************************************************!*\
  12150. !*** ./node_modules/rxjs/_esm2015/internal/operators/skipWhile.js ***!
  12151. \********************************************************************/
  12152. /*! exports provided: skipWhile */
  12153. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12154. "use strict";
  12155. __webpack_require__.r(__webpack_exports__);
  12156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skipWhile", function() { return skipWhile; });
  12157. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  12158. function skipWhile(predicate) {
  12159. return (source) => source.lift(new SkipWhileOperator(predicate));
  12160. }
  12161. class SkipWhileOperator {
  12162. constructor(predicate) {
  12163. this.predicate = predicate;
  12164. }
  12165. call(subscriber, source) {
  12166. return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate));
  12167. }
  12168. }
  12169. class SkipWhileSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  12170. constructor(destination, predicate) {
  12171. super(destination);
  12172. this.predicate = predicate;
  12173. this.skipping = true;
  12174. this.index = 0;
  12175. }
  12176. _next(value) {
  12177. const destination = this.destination;
  12178. if (this.skipping) {
  12179. this.tryCallPredicate(value);
  12180. }
  12181. if (!this.skipping) {
  12182. destination.next(value);
  12183. }
  12184. }
  12185. tryCallPredicate(value) {
  12186. try {
  12187. const result = this.predicate(value, this.index++);
  12188. this.skipping = Boolean(result);
  12189. }
  12190. catch (err) {
  12191. this.destination.error(err);
  12192. }
  12193. }
  12194. }
  12195. //# sourceMappingURL=skipWhile.js.map
  12196. /***/ }),
  12197. /***/ "3E0/":
  12198. /*!****************************************************************!*\
  12199. !*** ./node_modules/rxjs/_esm2015/internal/operators/delay.js ***!
  12200. \****************************************************************/
  12201. /*! exports provided: delay */
  12202. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12203. "use strict";
  12204. __webpack_require__.r(__webpack_exports__);
  12205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delay", function() { return delay; });
  12206. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  12207. /* harmony import */ var _util_isDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isDate */ "mlxB");
  12208. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  12209. /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Notification */ "WMd4");
  12210. function delay(delay, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) {
  12211. const absoluteDelay = Object(_util_isDate__WEBPACK_IMPORTED_MODULE_1__["isDate"])(delay);
  12212. const delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);
  12213. return (source) => source.lift(new DelayOperator(delayFor, scheduler));
  12214. }
  12215. class DelayOperator {
  12216. constructor(delay, scheduler) {
  12217. this.delay = delay;
  12218. this.scheduler = scheduler;
  12219. }
  12220. call(subscriber, source) {
  12221. return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));
  12222. }
  12223. }
  12224. class DelaySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"] {
  12225. constructor(destination, delay, scheduler) {
  12226. super(destination);
  12227. this.delay = delay;
  12228. this.scheduler = scheduler;
  12229. this.queue = [];
  12230. this.active = false;
  12231. this.errored = false;
  12232. }
  12233. static dispatch(state) {
  12234. const source = state.source;
  12235. const queue = source.queue;
  12236. const scheduler = state.scheduler;
  12237. const destination = state.destination;
  12238. while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {
  12239. queue.shift().notification.observe(destination);
  12240. }
  12241. if (queue.length > 0) {
  12242. const delay = Math.max(0, queue[0].time - scheduler.now());
  12243. this.schedule(state, delay);
  12244. }
  12245. else {
  12246. this.unsubscribe();
  12247. source.active = false;
  12248. }
  12249. }
  12250. _schedule(scheduler) {
  12251. this.active = true;
  12252. const destination = this.destination;
  12253. destination.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {
  12254. source: this, destination: this.destination, scheduler: scheduler
  12255. }));
  12256. }
  12257. scheduleNotification(notification) {
  12258. if (this.errored === true) {
  12259. return;
  12260. }
  12261. const scheduler = this.scheduler;
  12262. const message = new DelayMessage(scheduler.now() + this.delay, notification);
  12263. this.queue.push(message);
  12264. if (this.active === false) {
  12265. this._schedule(scheduler);
  12266. }
  12267. }
  12268. _next(value) {
  12269. this.scheduleNotification(_Notification__WEBPACK_IMPORTED_MODULE_3__["Notification"].createNext(value));
  12270. }
  12271. _error(err) {
  12272. this.errored = true;
  12273. this.queue = [];
  12274. this.destination.error(err);
  12275. this.unsubscribe();
  12276. }
  12277. _complete() {
  12278. this.scheduleNotification(_Notification__WEBPACK_IMPORTED_MODULE_3__["Notification"].createComplete());
  12279. this.unsubscribe();
  12280. }
  12281. }
  12282. class DelayMessage {
  12283. constructor(time, notification) {
  12284. this.time = time;
  12285. this.notification = notification;
  12286. }
  12287. }
  12288. //# sourceMappingURL=delay.js.map
  12289. /***/ }),
  12290. /***/ "3N8a":
  12291. /*!**********************************************************************!*\
  12292. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsyncAction.js ***!
  12293. \**********************************************************************/
  12294. /*! exports provided: AsyncAction */
  12295. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12296. "use strict";
  12297. __webpack_require__.r(__webpack_exports__);
  12298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncAction", function() { return AsyncAction; });
  12299. /* harmony import */ var _Action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Action */ "7ve7");
  12300. class AsyncAction extends _Action__WEBPACK_IMPORTED_MODULE_0__["Action"] {
  12301. constructor(scheduler, work) {
  12302. super(scheduler, work);
  12303. this.scheduler = scheduler;
  12304. this.work = work;
  12305. this.pending = false;
  12306. }
  12307. schedule(state, delay = 0) {
  12308. if (this.closed) {
  12309. return this;
  12310. }
  12311. this.state = state;
  12312. const id = this.id;
  12313. const scheduler = this.scheduler;
  12314. if (id != null) {
  12315. this.id = this.recycleAsyncId(scheduler, id, delay);
  12316. }
  12317. this.pending = true;
  12318. this.delay = delay;
  12319. this.id = this.id || this.requestAsyncId(scheduler, this.id, delay);
  12320. return this;
  12321. }
  12322. requestAsyncId(scheduler, id, delay = 0) {
  12323. return setInterval(scheduler.flush.bind(scheduler, this), delay);
  12324. }
  12325. recycleAsyncId(scheduler, id, delay = 0) {
  12326. if (delay !== null && this.delay === delay && this.pending === false) {
  12327. return id;
  12328. }
  12329. clearInterval(id);
  12330. return undefined;
  12331. }
  12332. execute(state, delay) {
  12333. if (this.closed) {
  12334. return new Error('executing a cancelled action');
  12335. }
  12336. this.pending = false;
  12337. const error = this._execute(state, delay);
  12338. if (error) {
  12339. return error;
  12340. }
  12341. else if (this.pending === false && this.id != null) {
  12342. this.id = this.recycleAsyncId(this.scheduler, this.id, null);
  12343. }
  12344. }
  12345. _execute(state, delay) {
  12346. let errored = false;
  12347. let errorValue = undefined;
  12348. try {
  12349. this.work(state);
  12350. }
  12351. catch (e) {
  12352. errored = true;
  12353. errorValue = !!e && e || new Error(e);
  12354. }
  12355. if (errored) {
  12356. this.unsubscribe();
  12357. return errorValue;
  12358. }
  12359. }
  12360. _unsubscribe() {
  12361. const id = this.id;
  12362. const scheduler = this.scheduler;
  12363. const actions = scheduler.actions;
  12364. const index = actions.indexOf(this);
  12365. this.work = null;
  12366. this.state = null;
  12367. this.pending = false;
  12368. this.scheduler = null;
  12369. if (index !== -1) {
  12370. actions.splice(index, 1);
  12371. }
  12372. if (id != null) {
  12373. this.id = this.recycleAsyncId(scheduler, id, null);
  12374. }
  12375. this.delay = null;
  12376. }
  12377. }
  12378. //# sourceMappingURL=AsyncAction.js.map
  12379. /***/ }),
  12380. /***/ "3Pt+":
  12381. /*!********************************************************************!*\
  12382. !*** ./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js ***!
  12383. \********************************************************************/
  12384. /*! exports provided: AbstractControl, AbstractControlDirective, AbstractFormGroupDirective, COMPOSITION_BUFFER_MODE, CheckboxControlValueAccessor, CheckboxRequiredValidator, ControlContainer, DefaultValueAccessor, EmailValidator, FormArray, FormArrayName, FormBuilder, FormControl, FormControlDirective, FormControlName, FormGroup, FormGroupDirective, FormGroupName, FormsModule, MaxLengthValidator, MinLengthValidator, NG_ASYNC_VALIDATORS, NG_VALIDATORS, NG_VALUE_ACCESSOR, NgControl, NgControlStatus, NgControlStatusGroup, NgForm, NgModel, NgModelGroup, NgSelectOption, NumberValueAccessor, PatternValidator, RadioControlValueAccessor, RangeValueAccessor, ReactiveFormsModule, RequiredValidator, SelectControlValueAccessor, SelectMultipleControlValueAccessor, VERSION, Validators, ɵInternalFormsSharedModule, ɵNgNoValidate, ɵNgSelectMultipleOption, ɵangular_packages_forms_forms_a, ɵangular_packages_forms_forms_b, ɵangular_packages_forms_forms_ba, ɵangular_packages_forms_forms_bb, ɵangular_packages_forms_forms_bc, ɵangular_packages_forms_forms_bd, ɵangular_packages_forms_forms_be, ɵangular_packages_forms_forms_c, ɵangular_packages_forms_forms_d, ɵangular_packages_forms_forms_e, ɵangular_packages_forms_forms_f, ɵangular_packages_forms_forms_g, ɵangular_packages_forms_forms_h, ɵangular_packages_forms_forms_i, ɵangular_packages_forms_forms_j, ɵangular_packages_forms_forms_k, ɵangular_packages_forms_forms_l, ɵangular_packages_forms_forms_m, ɵangular_packages_forms_forms_n, ɵangular_packages_forms_forms_o, ɵangular_packages_forms_forms_p, ɵangular_packages_forms_forms_q, ɵangular_packages_forms_forms_r, ɵangular_packages_forms_forms_s, ɵangular_packages_forms_forms_t, ɵangular_packages_forms_forms_u, ɵangular_packages_forms_forms_v, ɵangular_packages_forms_forms_w, ɵangular_packages_forms_forms_x, ɵangular_packages_forms_forms_y, ɵangular_packages_forms_forms_z */
  12385. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  12386. "use strict";
  12387. __webpack_require__.r(__webpack_exports__);
  12388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractControl", function() { return AbstractControl; });
  12389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractControlDirective", function() { return AbstractControlDirective; });
  12390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AbstractFormGroupDirective", function() { return AbstractFormGroupDirective; });
  12391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPOSITION_BUFFER_MODE", function() { return COMPOSITION_BUFFER_MODE; });
  12392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckboxControlValueAccessor", function() { return CheckboxControlValueAccessor; });
  12393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CheckboxRequiredValidator", function() { return CheckboxRequiredValidator; });
  12394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ControlContainer", function() { return ControlContainer; });
  12395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultValueAccessor", function() { return DefaultValueAccessor; });
  12396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmailValidator", function() { return EmailValidator; });
  12397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormArray", function() { return FormArray; });
  12398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormArrayName", function() { return FormArrayName; });
  12399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormBuilder", function() { return FormBuilder; });
  12400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormControl", function() { return FormControl; });
  12401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormControlDirective", function() { return FormControlDirective; });
  12402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormControlName", function() { return FormControlName; });
  12403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormGroup", function() { return FormGroup; });
  12404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormGroupDirective", function() { return FormGroupDirective; });
  12405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormGroupName", function() { return FormGroupName; });
  12406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormsModule", function() { return FormsModule; });
  12407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MaxLengthValidator", function() { return MaxLengthValidator; });
  12408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MinLengthValidator", function() { return MinLengthValidator; });
  12409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NG_ASYNC_VALIDATORS", function() { return NG_ASYNC_VALIDATORS; });
  12410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NG_VALIDATORS", function() { return NG_VALIDATORS; });
  12411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NG_VALUE_ACCESSOR", function() { return NG_VALUE_ACCESSOR; });
  12412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgControl", function() { return NgControl; });
  12413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgControlStatus", function() { return NgControlStatus; });
  12414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgControlStatusGroup", function() { return NgControlStatusGroup; });
  12415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgForm", function() { return NgForm; });
  12416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModel", function() { return NgModel; });
  12417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModelGroup", function() { return NgModelGroup; });
  12418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgSelectOption", function() { return NgSelectOption; });
  12419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberValueAccessor", function() { return NumberValueAccessor; });
  12420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PatternValidator", function() { return PatternValidator; });
  12421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RadioControlValueAccessor", function() { return RadioControlValueAccessor; });
  12422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RangeValueAccessor", function() { return RangeValueAccessor; });
  12423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReactiveFormsModule", function() { return ReactiveFormsModule; });
  12424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RequiredValidator", function() { return RequiredValidator; });
  12425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectControlValueAccessor", function() { return SelectControlValueAccessor; });
  12426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SelectMultipleControlValueAccessor", function() { return SelectMultipleControlValueAccessor; });
  12427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
  12428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Validators", function() { return Validators; });
  12429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵInternalFormsSharedModule", function() { return ɵInternalFormsSharedModule; });
  12430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNgNoValidate", function() { return ɵNgNoValidate; });
  12431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNgSelectMultipleOption", function() { return ɵNgSelectMultipleOption; });
  12432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_a", function() { return SHARED_FORM_DIRECTIVES; });
  12433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_b", function() { return TEMPLATE_DRIVEN_DIRECTIVES; });
  12434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_ba", function() { return CHECKBOX_REQUIRED_VALIDATOR; });
  12435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_bb", function() { return EMAIL_VALIDATOR; });
  12436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_bc", function() { return MIN_LENGTH_VALIDATOR; });
  12437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_bd", function() { return MAX_LENGTH_VALIDATOR; });
  12438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_be", function() { return PATTERN_VALIDATOR; });
  12439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_c", function() { return REACTIVE_DRIVEN_DIRECTIVES; });
  12440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_d", function() { return ɵInternalFormsSharedModule; });
  12441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_e", function() { return CHECKBOX_VALUE_ACCESSOR; });
  12442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_f", function() { return DEFAULT_VALUE_ACCESSOR; });
  12443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_g", function() { return AbstractControlStatus; });
  12444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_h", function() { return ngControlStatusHost; });
  12445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_i", function() { return formDirectiveProvider; });
  12446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_j", function() { return formControlBinding; });
  12447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_k", function() { return modelGroupProvider; });
  12448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_l", function() { return NUMBER_VALUE_ACCESSOR; });
  12449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_m", function() { return RADIO_VALUE_ACCESSOR; });
  12450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_n", function() { return RadioControlRegistry; });
  12451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_o", function() { return RANGE_VALUE_ACCESSOR; });
  12452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_p", function() { return NG_MODEL_WITH_FORM_CONTROL_WARNING; });
  12453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_q", function() { return formControlBinding$1; });
  12454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_r", function() { return controlNameBinding; });
  12455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_s", function() { return formDirectiveProvider$1; });
  12456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_t", function() { return formGroupNameProvider; });
  12457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_u", function() { return formArrayNameProvider; });
  12458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_v", function() { return SELECT_VALUE_ACCESSOR; });
  12459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_w", function() { return SELECT_MULTIPLE_VALUE_ACCESSOR; });
  12460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_x", function() { return ɵNgSelectMultipleOption; });
  12461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_y", function() { return ɵNgNoValidate; });
  12462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_forms_forms_z", function() { return REQUIRED_VALIDATOR; });
  12463. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  12464. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
  12465. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
  12466. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  12467. /**
  12468. * @license Angular v11.0.4
  12469. * (c) 2010-2020 Google LLC. https://angular.io/
  12470. * License: MIT
  12471. */
  12472. /**
  12473. * @license
  12474. * Copyright Google LLC All Rights Reserved.
  12475. *
  12476. * Use of this source code is governed by an MIT-style license that can be
  12477. * found in the LICENSE file at https://angular.io/license
  12478. */
  12479. /**
  12480. * Used to provide a `ControlValueAccessor` for form controls.
  12481. *
  12482. * See `DefaultValueAccessor` for how to implement one.
  12483. *
  12484. * @publicApi
  12485. */
  12486. const NG_VALUE_ACCESSOR = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('NgValueAccessor');
  12487. /**
  12488. * @license
  12489. * Copyright Google LLC All Rights Reserved.
  12490. *
  12491. * Use of this source code is governed by an MIT-style license that can be
  12492. * found in the LICENSE file at https://angular.io/license
  12493. */
  12494. const CHECKBOX_VALUE_ACCESSOR = {
  12495. provide: NG_VALUE_ACCESSOR,
  12496. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => CheckboxControlValueAccessor),
  12497. multi: true,
  12498. };
  12499. /**
  12500. * @description
  12501. * A `ControlValueAccessor` for writing a value and listening to changes on a checkbox input
  12502. * element.
  12503. *
  12504. * @usageNotes
  12505. *
  12506. * ### Using a checkbox with a reactive form.
  12507. *
  12508. * The following example shows how to use a checkbox with a reactive form.
  12509. *
  12510. * ```ts
  12511. * const rememberLoginControl = new FormControl();
  12512. * ```
  12513. *
  12514. * ```
  12515. * <input type="checkbox" [formControl]="rememberLoginControl">
  12516. * ```
  12517. *
  12518. * @ngModule ReactiveFormsModule
  12519. * @ngModule FormsModule
  12520. * @publicApi
  12521. */
  12522. class CheckboxControlValueAccessor {
  12523. constructor(_renderer, _elementRef) {
  12524. this._renderer = _renderer;
  12525. this._elementRef = _elementRef;
  12526. /**
  12527. * The registered callback function called when a change event occurs on the input element.
  12528. * @nodoc
  12529. */
  12530. this.onChange = (_) => { };
  12531. /**
  12532. * The registered callback function called when a blur event occurs on the input element.
  12533. * @nodoc
  12534. */
  12535. this.onTouched = () => { };
  12536. }
  12537. /**
  12538. * Sets the "checked" property on the input element.
  12539. * @nodoc
  12540. */
  12541. writeValue(value) {
  12542. this._renderer.setProperty(this._elementRef.nativeElement, 'checked', value);
  12543. }
  12544. /**
  12545. * Registers a function called when the control value changes.
  12546. * @nodoc
  12547. */
  12548. registerOnChange(fn) {
  12549. this.onChange = fn;
  12550. }
  12551. /**
  12552. * Registers a function called when the control is touched.
  12553. * @nodoc
  12554. */
  12555. registerOnTouched(fn) {
  12556. this.onTouched = fn;
  12557. }
  12558. /**
  12559. * Sets the "disabled" property on the input element.
  12560. * @nodoc
  12561. */
  12562. setDisabledState(isDisabled) {
  12563. this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
  12564. }
  12565. }
  12566. CheckboxControlValueAccessor.ɵfac = function CheckboxControlValueAccessor_Factory(t) { return new (t || CheckboxControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  12567. CheckboxControlValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: CheckboxControlValueAccessor, selectors: [["input", "type", "checkbox", "formControlName", ""], ["input", "type", "checkbox", "formControl", ""], ["input", "type", "checkbox", "ngModel", ""]], hostBindings: function CheckboxControlValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
  12568. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function CheckboxControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.checked); })("blur", function CheckboxControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
  12569. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([CHECKBOX_VALUE_ACCESSOR])] });
  12570. CheckboxControlValueAccessor.ctorParameters = () => [
  12571. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  12572. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  12573. ];
  12574. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CheckboxControlValueAccessor, [{
  12575. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  12576. args: [{
  12577. selector: 'input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]',
  12578. host: { '(change)': 'onChange($event.target.checked)', '(blur)': 'onTouched()' },
  12579. providers: [CHECKBOX_VALUE_ACCESSOR]
  12580. }]
  12581. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, null); })();
  12582. /**
  12583. * @license
  12584. * Copyright Google LLC All Rights Reserved.
  12585. *
  12586. * Use of this source code is governed by an MIT-style license that can be
  12587. * found in the LICENSE file at https://angular.io/license
  12588. */
  12589. const DEFAULT_VALUE_ACCESSOR = {
  12590. provide: NG_VALUE_ACCESSOR,
  12591. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => DefaultValueAccessor),
  12592. multi: true
  12593. };
  12594. /**
  12595. * We must check whether the agent is Android because composition events
  12596. * behave differently between iOS and Android.
  12597. */
  12598. function _isAndroid() {
  12599. const userAgent = Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵgetDOM"])() ? Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵgetDOM"])().getUserAgent() : '';
  12600. return /android (\d+)/.test(userAgent.toLowerCase());
  12601. }
  12602. /**
  12603. * @description
  12604. * Provide this token to control if form directives buffer IME input until
  12605. * the "compositionend" event occurs.
  12606. * @publicApi
  12607. */
  12608. const COMPOSITION_BUFFER_MODE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('CompositionEventMode');
  12609. /**
  12610. * @description
  12611. *
  12612. * {@searchKeywords ngDefaultControl}
  12613. *
  12614. * The default `ControlValueAccessor` for writing a value and listening to changes on input
  12615. * elements. The accessor is used by the `FormControlDirective`, `FormControlName`, and
  12616. * `NgModel` directives.
  12617. *
  12618. * @usageNotes
  12619. *
  12620. * ### Using the default value accessor
  12621. *
  12622. * The following example shows how to use an input element that activates the default value accessor
  12623. * (in this case, a text field).
  12624. *
  12625. * ```ts
  12626. * const firstNameControl = new FormControl();
  12627. * ```
  12628. *
  12629. * ```
  12630. * <input type="text" [formControl]="firstNameControl">
  12631. * ```
  12632. *
  12633. * This value accessor is used by default for `<input type="text">` and `<textarea>` elements, but
  12634. * you could also use it for custom components that have similar behavior and do not require special
  12635. * processing. In order to attach the default value accessor to a custom element, add the
  12636. * `ngDefaultControl` attribute as shown below.
  12637. *
  12638. * ```
  12639. * <custom-input-component ngDefaultControl [(ngModel)]="value"></custom-input-component>
  12640. * ```
  12641. *
  12642. * @ngModule ReactiveFormsModule
  12643. * @ngModule FormsModule
  12644. * @publicApi
  12645. */
  12646. class DefaultValueAccessor {
  12647. constructor(_renderer, _elementRef, _compositionMode) {
  12648. this._renderer = _renderer;
  12649. this._elementRef = _elementRef;
  12650. this._compositionMode = _compositionMode;
  12651. /**
  12652. * The registered callback function called when an input event occurs on the input element.
  12653. * @nodoc
  12654. */
  12655. this.onChange = (_) => { };
  12656. /**
  12657. * The registered callback function called when a blur event occurs on the input element.
  12658. * @nodoc
  12659. */
  12660. this.onTouched = () => { };
  12661. /** Whether the user is creating a composition string (IME events). */
  12662. this._composing = false;
  12663. if (this._compositionMode == null) {
  12664. this._compositionMode = !_isAndroid();
  12665. }
  12666. }
  12667. /**
  12668. * Sets the "value" property on the input element.
  12669. * @nodoc
  12670. */
  12671. writeValue(value) {
  12672. const normalizedValue = value == null ? '' : value;
  12673. this._renderer.setProperty(this._elementRef.nativeElement, 'value', normalizedValue);
  12674. }
  12675. /**
  12676. * Registers a function called when the control value changes.
  12677. * @nodoc
  12678. */
  12679. registerOnChange(fn) {
  12680. this.onChange = fn;
  12681. }
  12682. /**
  12683. * Registers a function called when the control is touched.
  12684. * @nodoc
  12685. */
  12686. registerOnTouched(fn) {
  12687. this.onTouched = fn;
  12688. }
  12689. /**
  12690. * Sets the "disabled" property on the input element.
  12691. * @nodoc
  12692. */
  12693. setDisabledState(isDisabled) {
  12694. this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
  12695. }
  12696. /** @internal */
  12697. _handleInput(value) {
  12698. if (!this._compositionMode || (this._compositionMode && !this._composing)) {
  12699. this.onChange(value);
  12700. }
  12701. }
  12702. /** @internal */
  12703. _compositionStart() {
  12704. this._composing = true;
  12705. }
  12706. /** @internal */
  12707. _compositionEnd(value) {
  12708. this._composing = false;
  12709. this._compositionMode && this.onChange(value);
  12710. }
  12711. }
  12712. DefaultValueAccessor.ɵfac = function DefaultValueAccessor_Factory(t) { return new (t || DefaultValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](COMPOSITION_BUFFER_MODE, 8)); };
  12713. DefaultValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: DefaultValueAccessor, selectors: [["input", "formControlName", "", 3, "type", "checkbox"], ["textarea", "formControlName", ""], ["input", "formControl", "", 3, "type", "checkbox"], ["textarea", "formControl", ""], ["input", "ngModel", "", 3, "type", "checkbox"], ["textarea", "ngModel", ""], ["", "ngDefaultControl", ""]], hostBindings: function DefaultValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
  12714. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function DefaultValueAccessor_input_HostBindingHandler($event) { return ctx._handleInput($event.target.value); })("blur", function DefaultValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); })("compositionstart", function DefaultValueAccessor_compositionstart_HostBindingHandler() { return ctx._compositionStart(); })("compositionend", function DefaultValueAccessor_compositionend_HostBindingHandler($event) { return ctx._compositionEnd($event.target.value); });
  12715. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([DEFAULT_VALUE_ACCESSOR])] });
  12716. DefaultValueAccessor.ctorParameters = () => [
  12717. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  12718. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  12719. { type: Boolean, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [COMPOSITION_BUFFER_MODE,] }] }
  12720. ];
  12721. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DefaultValueAccessor, [{
  12722. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  12723. args: [{
  12724. selector: 'input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]',
  12725. // TODO: vsavkin replace the above selector with the one below it once
  12726. // https://github.com/angular/angular/issues/3011 is implemented
  12727. // selector: '[ngModel],[formControl],[formControlName]',
  12728. host: {
  12729. '(input)': '$any(this)._handleInput($event.target.value)',
  12730. '(blur)': 'onTouched()',
  12731. '(compositionstart)': '$any(this)._compositionStart()',
  12732. '(compositionend)': '$any(this)._compositionEnd($event.target.value)'
  12733. },
  12734. providers: [DEFAULT_VALUE_ACCESSOR]
  12735. }]
  12736. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: Boolean, decorators: [{
  12737. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  12738. }, {
  12739. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  12740. args: [COMPOSITION_BUFFER_MODE]
  12741. }] }]; }, null); })();
  12742. /**
  12743. * @license
  12744. * Copyright Google LLC All Rights Reserved.
  12745. *
  12746. * Use of this source code is governed by an MIT-style license that can be
  12747. * found in the LICENSE file at https://angular.io/license
  12748. */
  12749. function isEmptyInputValue(value) {
  12750. // we don't check for string here so it also works with arrays
  12751. return value == null || value.length === 0;
  12752. }
  12753. function hasValidLength(value) {
  12754. // non-strict comparison is intentional, to check for both `null` and `undefined` values
  12755. return value != null && typeof value.length === 'number';
  12756. }
  12757. /**
  12758. * @description
  12759. * An `InjectionToken` for registering additional synchronous validators used with
  12760. * `AbstractControl`s.
  12761. *
  12762. * @see `NG_ASYNC_VALIDATORS`
  12763. *
  12764. * @usageNotes
  12765. *
  12766. * ### Providing a custom validator
  12767. *
  12768. * The following example registers a custom validator directive. Adding the validator to the
  12769. * existing collection of validators requires the `multi: true` option.
  12770. *
  12771. * ```typescript
  12772. * @Directive({
  12773. * selector: '[customValidator]',
  12774. * providers: [{provide: NG_VALIDATORS, useExisting: CustomValidatorDirective, multi: true}]
  12775. * })
  12776. * class CustomValidatorDirective implements Validator {
  12777. * validate(control: AbstractControl): ValidationErrors | null {
  12778. * return { 'custom': true };
  12779. * }
  12780. * }
  12781. * ```
  12782. *
  12783. * @publicApi
  12784. */
  12785. const NG_VALIDATORS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('NgValidators');
  12786. /**
  12787. * @description
  12788. * An `InjectionToken` for registering additional asynchronous validators used with
  12789. * `AbstractControl`s.
  12790. *
  12791. * @see `NG_VALIDATORS`
  12792. *
  12793. * @publicApi
  12794. */
  12795. const NG_ASYNC_VALIDATORS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('NgAsyncValidators');
  12796. /**
  12797. * A regular expression that matches valid e-mail addresses.
  12798. *
  12799. * At a high level, this regexp matches e-mail addresses of the format `local-part@tld`, where:
  12800. * - `local-part` consists of one or more of the allowed characters (alphanumeric and some
  12801. * punctuation symbols).
  12802. * - `local-part` cannot begin or end with a period (`.`).
  12803. * - `local-part` cannot be longer than 64 characters.
  12804. * - `tld` consists of one or more `labels` separated by periods (`.`). For example `localhost` or
  12805. * `foo.com`.
  12806. * - A `label` consists of one or more of the allowed characters (alphanumeric, dashes (`-`) and
  12807. * periods (`.`)).
  12808. * - A `label` cannot begin or end with a dash (`-`) or a period (`.`).
  12809. * - A `label` cannot be longer than 63 characters.
  12810. * - The whole address cannot be longer than 254 characters.
  12811. *
  12812. * ## Implementation background
  12813. *
  12814. * This regexp was ported over from AngularJS (see there for git history):
  12815. * https://github.com/angular/angular.js/blob/c133ef836/src/ng/directive/input.js#L27
  12816. * It is based on the
  12817. * [WHATWG version](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
  12818. * some enhancements to incorporate more RFC rules (such as rules related to domain names and the
  12819. * lengths of different parts of the address). The main differences from the WHATWG version are:
  12820. * - Disallow `local-part` to begin or end with a period (`.`).
  12821. * - Disallow `local-part` length to exceed 64 characters.
  12822. * - Disallow total address length to exceed 254 characters.
  12823. *
  12824. * See [this commit](https://github.com/angular/angular.js/commit/f3f5cf72e) for more details.
  12825. */
  12826. const EMAIL_REGEXP = /^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
  12827. /**
  12828. * @description
  12829. * Provides a set of built-in validators that can be used by form controls.
  12830. *
  12831. * A validator is a function that processes a `FormControl` or collection of
  12832. * controls and returns an error map or null. A null map means that validation has passed.
  12833. *
  12834. * @see [Form Validation](/guide/form-validation)
  12835. *
  12836. * @publicApi
  12837. */
  12838. class Validators {
  12839. /**
  12840. * @description
  12841. * Validator that requires the control's value to be greater than or equal to the provided number.
  12842. * The validator exists only as a function and not as a directive.
  12843. *
  12844. * @usageNotes
  12845. *
  12846. * ### Validate against a minimum of 3
  12847. *
  12848. * ```typescript
  12849. * const control = new FormControl(2, Validators.min(3));
  12850. *
  12851. * console.log(control.errors); // {min: {min: 3, actual: 2}}
  12852. * ```
  12853. *
  12854. * @returns A validator function that returns an error map with the
  12855. * `min` property if the validation check fails, otherwise `null`.
  12856. *
  12857. * @see `updateValueAndValidity()`
  12858. *
  12859. */
  12860. static min(min) {
  12861. return (control) => {
  12862. if (isEmptyInputValue(control.value) || isEmptyInputValue(min)) {
  12863. return null; // don't validate empty values to allow optional controls
  12864. }
  12865. const value = parseFloat(control.value);
  12866. // Controls with NaN values after parsing should be treated as not having a
  12867. // minimum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-min
  12868. return !isNaN(value) && value < min ? { 'min': { 'min': min, 'actual': control.value } } : null;
  12869. };
  12870. }
  12871. /**
  12872. * @description
  12873. * Validator that requires the control's value to be less than or equal to the provided number.
  12874. * The validator exists only as a function and not as a directive.
  12875. *
  12876. * @usageNotes
  12877. *
  12878. * ### Validate against a maximum of 15
  12879. *
  12880. * ```typescript
  12881. * const control = new FormControl(16, Validators.max(15));
  12882. *
  12883. * console.log(control.errors); // {max: {max: 15, actual: 16}}
  12884. * ```
  12885. *
  12886. * @returns A validator function that returns an error map with the
  12887. * `max` property if the validation check fails, otherwise `null`.
  12888. *
  12889. * @see `updateValueAndValidity()`
  12890. *
  12891. */
  12892. static max(max) {
  12893. return (control) => {
  12894. if (isEmptyInputValue(control.value) || isEmptyInputValue(max)) {
  12895. return null; // don't validate empty values to allow optional controls
  12896. }
  12897. const value = parseFloat(control.value);
  12898. // Controls with NaN values after parsing should be treated as not having a
  12899. // maximum, per the HTML forms spec: https://www.w3.org/TR/html5/forms.html#attr-input-max
  12900. return !isNaN(value) && value > max ? { 'max': { 'max': max, 'actual': control.value } } : null;
  12901. };
  12902. }
  12903. /**
  12904. * @description
  12905. * Validator that requires the control have a non-empty value.
  12906. *
  12907. * @usageNotes
  12908. *
  12909. * ### Validate that the field is non-empty
  12910. *
  12911. * ```typescript
  12912. * const control = new FormControl('', Validators.required);
  12913. *
  12914. * console.log(control.errors); // {required: true}
  12915. * ```
  12916. *
  12917. * @returns An error map with the `required` property
  12918. * if the validation check fails, otherwise `null`.
  12919. *
  12920. * @see `updateValueAndValidity()`
  12921. *
  12922. */
  12923. static required(control) {
  12924. return isEmptyInputValue(control.value) ? { 'required': true } : null;
  12925. }
  12926. /**
  12927. * @description
  12928. * Validator that requires the control's value be true. This validator is commonly
  12929. * used for required checkboxes.
  12930. *
  12931. * @usageNotes
  12932. *
  12933. * ### Validate that the field value is true
  12934. *
  12935. * ```typescript
  12936. * const control = new FormControl('', Validators.requiredTrue);
  12937. *
  12938. * console.log(control.errors); // {required: true}
  12939. * ```
  12940. *
  12941. * @returns An error map that contains the `required` property
  12942. * set to `true` if the validation check fails, otherwise `null`.
  12943. *
  12944. * @see `updateValueAndValidity()`
  12945. *
  12946. */
  12947. static requiredTrue(control) {
  12948. return control.value === true ? null : { 'required': true };
  12949. }
  12950. /**
  12951. * @description
  12952. * Validator that requires the control's value pass an email validation test.
  12953. *
  12954. * Tests the value using a [regular
  12955. * expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions)
  12956. * pattern suitable for common usecases. The pattern is based on the definition of a valid email
  12957. * address in the [WHATWG HTML
  12958. * specification](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address) with
  12959. * some enhancements to incorporate more RFC rules (such as rules related to domain names and the
  12960. * lengths of different parts of the address).
  12961. *
  12962. * The differences from the WHATWG version include:
  12963. * - Disallow `local-part` (the part before the `@` symbol) to begin or end with a period (`.`).
  12964. * - Disallow `local-part` to be longer than 64 characters.
  12965. * - Disallow the whole address to be longer than 254 characters.
  12966. *
  12967. * If this pattern does not satisfy your business needs, you can use `Validators.pattern()` to
  12968. * validate the value against a different pattern.
  12969. *
  12970. * @usageNotes
  12971. *
  12972. * ### Validate that the field matches a valid email pattern
  12973. *
  12974. * ```typescript
  12975. * const control = new FormControl('bad@', Validators.email);
  12976. *
  12977. * console.log(control.errors); // {email: true}
  12978. * ```
  12979. *
  12980. * @returns An error map with the `email` property
  12981. * if the validation check fails, otherwise `null`.
  12982. *
  12983. * @see `updateValueAndValidity()`
  12984. *
  12985. */
  12986. static email(control) {
  12987. if (isEmptyInputValue(control.value)) {
  12988. return null; // don't validate empty values to allow optional controls
  12989. }
  12990. return EMAIL_REGEXP.test(control.value) ? null : { 'email': true };
  12991. }
  12992. /**
  12993. * @description
  12994. * Validator that requires the length of the control's value to be greater than or equal
  12995. * to the provided minimum length. This validator is also provided by default if you use the
  12996. * the HTML5 `minlength` attribute. Note that the `minLength` validator is intended to be used
  12997. * only for types that have a numeric `length` property, such as strings or arrays. The
  12998. * `minLength` validator logic is also not invoked for values when their `length` property is 0
  12999. * (for example in case of an empty string or an empty array), to support optional controls. You
  13000. * can use the standard `required` validator if empty values should not be considered valid.
  13001. *
  13002. * @usageNotes
  13003. *
  13004. * ### Validate that the field has a minimum of 3 characters
  13005. *
  13006. * ```typescript
  13007. * const control = new FormControl('ng', Validators.minLength(3));
  13008. *
  13009. * console.log(control.errors); // {minlength: {requiredLength: 3, actualLength: 2}}
  13010. * ```
  13011. *
  13012. * ```html
  13013. * <input minlength="5">
  13014. * ```
  13015. *
  13016. * @returns A validator function that returns an error map with the
  13017. * `minlength` if the validation check fails, otherwise `null`.
  13018. *
  13019. * @see `updateValueAndValidity()`
  13020. *
  13021. */
  13022. static minLength(minLength) {
  13023. return (control) => {
  13024. if (isEmptyInputValue(control.value) || !hasValidLength(control.value)) {
  13025. // don't validate empty values to allow optional controls
  13026. // don't validate values without `length` property
  13027. return null;
  13028. }
  13029. return control.value.length < minLength ?
  13030. { 'minlength': { 'requiredLength': minLength, 'actualLength': control.value.length } } :
  13031. null;
  13032. };
  13033. }
  13034. /**
  13035. * @description
  13036. * Validator that requires the length of the control's value to be less than or equal
  13037. * to the provided maximum length. This validator is also provided by default if you use the
  13038. * the HTML5 `maxlength` attribute. Note that the `maxLength` validator is intended to be used
  13039. * only for types that have a numeric `length` property, such as strings or arrays.
  13040. *
  13041. * @usageNotes
  13042. *
  13043. * ### Validate that the field has maximum of 5 characters
  13044. *
  13045. * ```typescript
  13046. * const control = new FormControl('Angular', Validators.maxLength(5));
  13047. *
  13048. * console.log(control.errors); // {maxlength: {requiredLength: 5, actualLength: 7}}
  13049. * ```
  13050. *
  13051. * ```html
  13052. * <input maxlength="5">
  13053. * ```
  13054. *
  13055. * @returns A validator function that returns an error map with the
  13056. * `maxlength` property if the validation check fails, otherwise `null`.
  13057. *
  13058. * @see `updateValueAndValidity()`
  13059. *
  13060. */
  13061. static maxLength(maxLength) {
  13062. return (control) => {
  13063. return hasValidLength(control.value) && control.value.length > maxLength ?
  13064. { 'maxlength': { 'requiredLength': maxLength, 'actualLength': control.value.length } } :
  13065. null;
  13066. };
  13067. }
  13068. /**
  13069. * @description
  13070. * Validator that requires the control's value to match a regex pattern. This validator is also
  13071. * provided by default if you use the HTML5 `pattern` attribute.
  13072. *
  13073. * @usageNotes
  13074. *
  13075. * ### Validate that the field only contains letters or spaces
  13076. *
  13077. * ```typescript
  13078. * const control = new FormControl('1', Validators.pattern('[a-zA-Z ]*'));
  13079. *
  13080. * console.log(control.errors); // {pattern: {requiredPattern: '^[a-zA-Z ]*$', actualValue: '1'}}
  13081. * ```
  13082. *
  13083. * ```html
  13084. * <input pattern="[a-zA-Z ]*">
  13085. * ```
  13086. *
  13087. * ### Pattern matching with the global or sticky flag
  13088. *
  13089. * `RegExp` objects created with the `g` or `y` flags that are passed into `Validators.pattern`
  13090. * can produce different results on the same input when validations are run consecutively. This is
  13091. * due to how the behavior of `RegExp.prototype.test` is
  13092. * specified in [ECMA-262](https://tc39.es/ecma262/#sec-regexpbuiltinexec)
  13093. * (`RegExp` preserves the index of the last match when the global or sticky flag is used).
  13094. * Due to this behavior, it is recommended that when using
  13095. * `Validators.pattern` you **do not** pass in a `RegExp` object with either the global or sticky
  13096. * flag enabled.
  13097. *
  13098. * ```typescript
  13099. * // Not recommended (since the `g` flag is used)
  13100. * const controlOne = new FormControl('1', Validators.pattern(/foo/g));
  13101. *
  13102. * // Good
  13103. * const controlTwo = new FormControl('1', Validators.pattern(/foo/));
  13104. * ```
  13105. *
  13106. * @param pattern A regular expression to be used as is to test the values, or a string.
  13107. * If a string is passed, the `^` character is prepended and the `$` character is
  13108. * appended to the provided string (if not already present), and the resulting regular
  13109. * expression is used to test the values.
  13110. *
  13111. * @returns A validator function that returns an error map with the
  13112. * `pattern` property if the validation check fails, otherwise `null`.
  13113. *
  13114. * @see `updateValueAndValidity()`
  13115. *
  13116. */
  13117. static pattern(pattern) {
  13118. if (!pattern)
  13119. return Validators.nullValidator;
  13120. let regex;
  13121. let regexStr;
  13122. if (typeof pattern === 'string') {
  13123. regexStr = '';
  13124. if (pattern.charAt(0) !== '^')
  13125. regexStr += '^';
  13126. regexStr += pattern;
  13127. if (pattern.charAt(pattern.length - 1) !== '$')
  13128. regexStr += '$';
  13129. regex = new RegExp(regexStr);
  13130. }
  13131. else {
  13132. regexStr = pattern.toString();
  13133. regex = pattern;
  13134. }
  13135. return (control) => {
  13136. if (isEmptyInputValue(control.value)) {
  13137. return null; // don't validate empty values to allow optional controls
  13138. }
  13139. const value = control.value;
  13140. return regex.test(value) ? null :
  13141. { 'pattern': { 'requiredPattern': regexStr, 'actualValue': value } };
  13142. };
  13143. }
  13144. /**
  13145. * @description
  13146. * Validator that performs no operation.
  13147. *
  13148. * @see `updateValueAndValidity()`
  13149. *
  13150. */
  13151. static nullValidator(control) {
  13152. return null;
  13153. }
  13154. static compose(validators) {
  13155. if (!validators)
  13156. return null;
  13157. const presentValidators = validators.filter(isPresent);
  13158. if (presentValidators.length == 0)
  13159. return null;
  13160. return function (control) {
  13161. return mergeErrors(executeValidators(control, presentValidators));
  13162. };
  13163. }
  13164. /**
  13165. * @description
  13166. * Compose multiple async validators into a single function that returns the union
  13167. * of the individual error objects for the provided control.
  13168. *
  13169. * @returns A validator function that returns an error map with the
  13170. * merged error objects of the async validators if the validation check fails, otherwise `null`.
  13171. *
  13172. * @see `updateValueAndValidity()`
  13173. *
  13174. */
  13175. static composeAsync(validators) {
  13176. if (!validators)
  13177. return null;
  13178. const presentValidators = validators.filter(isPresent);
  13179. if (presentValidators.length == 0)
  13180. return null;
  13181. return function (control) {
  13182. const observables = executeValidators(control, presentValidators).map(toObservable);
  13183. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["forkJoin"])(observables).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(mergeErrors));
  13184. };
  13185. }
  13186. }
  13187. function isPresent(o) {
  13188. return o != null;
  13189. }
  13190. function toObservable(r) {
  13191. const obs = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisPromise"])(r) ? Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(r) : r;
  13192. if (!(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisObservable"])(obs)) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
  13193. throw new Error(`Expected validator to return Promise or Observable.`);
  13194. }
  13195. return obs;
  13196. }
  13197. function mergeErrors(arrayOfErrors) {
  13198. let res = {};
  13199. // Not using Array.reduce here due to a Chrome 80 bug
  13200. // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
  13201. arrayOfErrors.forEach((errors) => {
  13202. res = errors != null ? Object.assign(Object.assign({}, res), errors) : res;
  13203. });
  13204. return Object.keys(res).length === 0 ? null : res;
  13205. }
  13206. function executeValidators(control, validators) {
  13207. return validators.map(validator => validator(control));
  13208. }
  13209. function isValidatorFn(validator) {
  13210. return !validator.validate;
  13211. }
  13212. /**
  13213. * Given the list of validators that may contain both functions as well as classes, return the list
  13214. * of validator functions (convert validator classes into validator functions). This is needed to
  13215. * have consistent structure in validators list before composing them.
  13216. *
  13217. * @param validators The set of validators that may contain validators both in plain function form
  13218. * as well as represented as a validator class.
  13219. */
  13220. function normalizeValidators(validators) {
  13221. return validators.map(validator => {
  13222. return isValidatorFn(validator) ?
  13223. validator :
  13224. ((c) => validator.validate(c));
  13225. });
  13226. }
  13227. /**
  13228. * Merges synchronous validators into a single validator function (combined using
  13229. * `Validators.compose`).
  13230. */
  13231. function composeValidators(validators) {
  13232. return validators != null ? Validators.compose(normalizeValidators(validators)) :
  13233. null;
  13234. }
  13235. /**
  13236. * Merges asynchronous validators into a single validator function (combined using
  13237. * `Validators.composeAsync`).
  13238. */
  13239. function composeAsyncValidators(validators) {
  13240. return validators != null ?
  13241. Validators.composeAsync(normalizeValidators(validators)) :
  13242. null;
  13243. }
  13244. /**
  13245. * Merges raw control validators with a given directive validator and returns the combined list of
  13246. * validators as an array.
  13247. */
  13248. function mergeValidators(controlValidators, dirValidator) {
  13249. if (controlValidators === null)
  13250. return [dirValidator];
  13251. return Array.isArray(controlValidators) ? [...controlValidators, dirValidator] :
  13252. [controlValidators, dirValidator];
  13253. }
  13254. /**
  13255. * Retrieves the list of raw synchronous validators attached to a given control.
  13256. */
  13257. function getControlValidators(control) {
  13258. return control._rawValidators;
  13259. }
  13260. /**
  13261. * Retrieves the list of raw asynchronous validators attached to a given control.
  13262. */
  13263. function getControlAsyncValidators(control) {
  13264. return control._rawAsyncValidators;
  13265. }
  13266. /**
  13267. * @license
  13268. * Copyright Google LLC All Rights Reserved.
  13269. *
  13270. * Use of this source code is governed by an MIT-style license that can be
  13271. * found in the LICENSE file at https://angular.io/license
  13272. */
  13273. /**
  13274. * @description
  13275. * Base class for control directives.
  13276. *
  13277. * This class is only used internally in the `ReactiveFormsModule` and the `FormsModule`.
  13278. *
  13279. * @publicApi
  13280. */
  13281. class AbstractControlDirective {
  13282. constructor() {
  13283. /**
  13284. * Set of synchronous validators as they were provided while calling `setValidators` function.
  13285. * @internal
  13286. */
  13287. this._rawValidators = [];
  13288. /**
  13289. * Set of asynchronous validators as they were provided while calling `setAsyncValidators`
  13290. * function.
  13291. * @internal
  13292. */
  13293. this._rawAsyncValidators = [];
  13294. /*
  13295. * The set of callbacks to be invoked when directive instance is being destroyed.
  13296. */
  13297. this._onDestroyCallbacks = [];
  13298. }
  13299. /**
  13300. * @description
  13301. * Reports the value of the control if it is present, otherwise null.
  13302. */
  13303. get value() {
  13304. return this.control ? this.control.value : null;
  13305. }
  13306. /**
  13307. * @description
  13308. * Reports whether the control is valid. A control is considered valid if no
  13309. * validation errors exist with the current value.
  13310. * If the control is not present, null is returned.
  13311. */
  13312. get valid() {
  13313. return this.control ? this.control.valid : null;
  13314. }
  13315. /**
  13316. * @description
  13317. * Reports whether the control is invalid, meaning that an error exists in the input value.
  13318. * If the control is not present, null is returned.
  13319. */
  13320. get invalid() {
  13321. return this.control ? this.control.invalid : null;
  13322. }
  13323. /**
  13324. * @description
  13325. * Reports whether a control is pending, meaning that that async validation is occurring and
  13326. * errors are not yet available for the input value. If the control is not present, null is
  13327. * returned.
  13328. */
  13329. get pending() {
  13330. return this.control ? this.control.pending : null;
  13331. }
  13332. /**
  13333. * @description
  13334. * Reports whether the control is disabled, meaning that the control is disabled
  13335. * in the UI and is exempt from validation checks and excluded from aggregate
  13336. * values of ancestor controls. If the control is not present, null is returned.
  13337. */
  13338. get disabled() {
  13339. return this.control ? this.control.disabled : null;
  13340. }
  13341. /**
  13342. * @description
  13343. * Reports whether the control is enabled, meaning that the control is included in ancestor
  13344. * calculations of validity or value. If the control is not present, null is returned.
  13345. */
  13346. get enabled() {
  13347. return this.control ? this.control.enabled : null;
  13348. }
  13349. /**
  13350. * @description
  13351. * Reports the control's validation errors. If the control is not present, null is returned.
  13352. */
  13353. get errors() {
  13354. return this.control ? this.control.errors : null;
  13355. }
  13356. /**
  13357. * @description
  13358. * Reports whether the control is pristine, meaning that the user has not yet changed
  13359. * the value in the UI. If the control is not present, null is returned.
  13360. */
  13361. get pristine() {
  13362. return this.control ? this.control.pristine : null;
  13363. }
  13364. /**
  13365. * @description
  13366. * Reports whether the control is dirty, meaning that the user has changed
  13367. * the value in the UI. If the control is not present, null is returned.
  13368. */
  13369. get dirty() {
  13370. return this.control ? this.control.dirty : null;
  13371. }
  13372. /**
  13373. * @description
  13374. * Reports whether the control is touched, meaning that the user has triggered
  13375. * a `blur` event on it. If the control is not present, null is returned.
  13376. */
  13377. get touched() {
  13378. return this.control ? this.control.touched : null;
  13379. }
  13380. /**
  13381. * @description
  13382. * Reports the validation status of the control. Possible values include:
  13383. * 'VALID', 'INVALID', 'DISABLED', and 'PENDING'.
  13384. * If the control is not present, null is returned.
  13385. */
  13386. get status() {
  13387. return this.control ? this.control.status : null;
  13388. }
  13389. /**
  13390. * @description
  13391. * Reports whether the control is untouched, meaning that the user has not yet triggered
  13392. * a `blur` event on it. If the control is not present, null is returned.
  13393. */
  13394. get untouched() {
  13395. return this.control ? this.control.untouched : null;
  13396. }
  13397. /**
  13398. * @description
  13399. * Returns a multicasting observable that emits a validation status whenever it is
  13400. * calculated for the control. If the control is not present, null is returned.
  13401. */
  13402. get statusChanges() {
  13403. return this.control ? this.control.statusChanges : null;
  13404. }
  13405. /**
  13406. * @description
  13407. * Returns a multicasting observable of value changes for the control that emits every time the
  13408. * value of the control changes in the UI or programmatically.
  13409. * If the control is not present, null is returned.
  13410. */
  13411. get valueChanges() {
  13412. return this.control ? this.control.valueChanges : null;
  13413. }
  13414. /**
  13415. * @description
  13416. * Returns an array that represents the path from the top-level form to this control.
  13417. * Each index is the string name of the control on that level.
  13418. */
  13419. get path() {
  13420. return null;
  13421. }
  13422. /**
  13423. * Sets synchronous validators for this directive.
  13424. * @internal
  13425. */
  13426. _setValidators(validators) {
  13427. this._rawValidators = validators || [];
  13428. this._composedValidatorFn = composeValidators(this._rawValidators);
  13429. }
  13430. /**
  13431. * Sets asynchronous validators for this directive.
  13432. * @internal
  13433. */
  13434. _setAsyncValidators(validators) {
  13435. this._rawAsyncValidators = validators || [];
  13436. this._composedAsyncValidatorFn = composeAsyncValidators(this._rawAsyncValidators);
  13437. }
  13438. /**
  13439. * @description
  13440. * Synchronous validator function composed of all the synchronous validators registered with this
  13441. * directive.
  13442. */
  13443. get validator() {
  13444. return this._composedValidatorFn || null;
  13445. }
  13446. /**
  13447. * @description
  13448. * Asynchronous validator function composed of all the asynchronous validators registered with
  13449. * this directive.
  13450. */
  13451. get asyncValidator() {
  13452. return this._composedAsyncValidatorFn || null;
  13453. }
  13454. /**
  13455. * Internal function to register callbacks that should be invoked
  13456. * when directive instance is being destroyed.
  13457. * @internal
  13458. */
  13459. _registerOnDestroy(fn) {
  13460. this._onDestroyCallbacks.push(fn);
  13461. }
  13462. /**
  13463. * Internal function to invoke all registered "on destroy" callbacks.
  13464. * Note: calling this function also clears the list of callbacks.
  13465. * @internal
  13466. */
  13467. _invokeOnDestroyCallbacks() {
  13468. this._onDestroyCallbacks.forEach(fn => fn());
  13469. this._onDestroyCallbacks = [];
  13470. }
  13471. /**
  13472. * @description
  13473. * Resets the control with the provided value if the control is present.
  13474. */
  13475. reset(value = undefined) {
  13476. if (this.control)
  13477. this.control.reset(value);
  13478. }
  13479. /**
  13480. * @description
  13481. * Reports whether the control with the given path has the error specified.
  13482. *
  13483. * @param errorCode The code of the error to check
  13484. * @param path A list of control names that designates how to move from the current control
  13485. * to the control that should be queried for errors.
  13486. *
  13487. * @usageNotes
  13488. * For example, for the following `FormGroup`:
  13489. *
  13490. * ```
  13491. * form = new FormGroup({
  13492. * address: new FormGroup({ street: new FormControl() })
  13493. * });
  13494. * ```
  13495. *
  13496. * The path to the 'street' control from the root form would be 'address' -> 'street'.
  13497. *
  13498. * It can be provided to this method in one of two formats:
  13499. *
  13500. * 1. An array of string control names, e.g. `['address', 'street']`
  13501. * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
  13502. *
  13503. * If no path is given, this method checks for the error on the current control.
  13504. *
  13505. * @returns whether the given error is present in the control at the given path.
  13506. *
  13507. * If the control is not present, false is returned.
  13508. */
  13509. hasError(errorCode, path) {
  13510. return this.control ? this.control.hasError(errorCode, path) : false;
  13511. }
  13512. /**
  13513. * @description
  13514. * Reports error data for the control with the given path.
  13515. *
  13516. * @param errorCode The code of the error to check
  13517. * @param path A list of control names that designates how to move from the current control
  13518. * to the control that should be queried for errors.
  13519. *
  13520. * @usageNotes
  13521. * For example, for the following `FormGroup`:
  13522. *
  13523. * ```
  13524. * form = new FormGroup({
  13525. * address: new FormGroup({ street: new FormControl() })
  13526. * });
  13527. * ```
  13528. *
  13529. * The path to the 'street' control from the root form would be 'address' -> 'street'.
  13530. *
  13531. * It can be provided to this method in one of two formats:
  13532. *
  13533. * 1. An array of string control names, e.g. `['address', 'street']`
  13534. * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
  13535. *
  13536. * @returns error data for that particular error. If the control or error is not present,
  13537. * null is returned.
  13538. */
  13539. getError(errorCode, path) {
  13540. return this.control ? this.control.getError(errorCode, path) : null;
  13541. }
  13542. }
  13543. AbstractControlDirective.ɵfac = function AbstractControlDirective_Factory(t) { return new (t || AbstractControlDirective)(); };
  13544. AbstractControlDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: AbstractControlDirective });
  13545. /**
  13546. * @license
  13547. * Copyright Google LLC All Rights Reserved.
  13548. *
  13549. * Use of this source code is governed by an MIT-style license that can be
  13550. * found in the LICENSE file at https://angular.io/license
  13551. */
  13552. /**
  13553. * @description
  13554. * A base class for directives that contain multiple registered instances of `NgControl`.
  13555. * Only used by the forms module.
  13556. *
  13557. * @publicApi
  13558. */
  13559. class ControlContainer extends AbstractControlDirective {
  13560. /**
  13561. * @description
  13562. * The top-level form directive for the control.
  13563. */
  13564. get formDirective() {
  13565. return null;
  13566. }
  13567. /**
  13568. * @description
  13569. * The path to this group.
  13570. */
  13571. get path() {
  13572. return null;
  13573. }
  13574. }
  13575. ControlContainer.ɵfac = function ControlContainer_Factory(t) { return ɵControlContainer_BaseFactory(t || ControlContainer); };
  13576. ControlContainer.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: ControlContainer, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  13577. const ɵControlContainer_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](ControlContainer);
  13578. /**
  13579. * @license
  13580. * Copyright Google LLC All Rights Reserved.
  13581. *
  13582. * Use of this source code is governed by an MIT-style license that can be
  13583. * found in the LICENSE file at https://angular.io/license
  13584. */
  13585. /**
  13586. * @description
  13587. * A base class that all `FormControl`-based directives extend. It binds a `FormControl`
  13588. * object to a DOM element.
  13589. *
  13590. * @publicApi
  13591. */
  13592. class NgControl extends AbstractControlDirective {
  13593. constructor() {
  13594. super(...arguments);
  13595. /**
  13596. * @description
  13597. * The parent form for the control.
  13598. *
  13599. * @internal
  13600. */
  13601. this._parent = null;
  13602. /**
  13603. * @description
  13604. * The name for the control
  13605. */
  13606. this.name = null;
  13607. /**
  13608. * @description
  13609. * The value accessor for the control
  13610. */
  13611. this.valueAccessor = null;
  13612. }
  13613. }
  13614. /**
  13615. * @license
  13616. * Copyright Google LLC All Rights Reserved.
  13617. *
  13618. * Use of this source code is governed by an MIT-style license that can be
  13619. * found in the LICENSE file at https://angular.io/license
  13620. */
  13621. class AbstractControlStatus {
  13622. constructor(cd) {
  13623. this._cd = cd;
  13624. }
  13625. get ngClassUntouched() {
  13626. return this._cd.control ? this._cd.control.untouched : false;
  13627. }
  13628. get ngClassTouched() {
  13629. return this._cd.control ? this._cd.control.touched : false;
  13630. }
  13631. get ngClassPristine() {
  13632. return this._cd.control ? this._cd.control.pristine : false;
  13633. }
  13634. get ngClassDirty() {
  13635. return this._cd.control ? this._cd.control.dirty : false;
  13636. }
  13637. get ngClassValid() {
  13638. return this._cd.control ? this._cd.control.valid : false;
  13639. }
  13640. get ngClassInvalid() {
  13641. return this._cd.control ? this._cd.control.invalid : false;
  13642. }
  13643. get ngClassPending() {
  13644. return this._cd.control ? this._cd.control.pending : false;
  13645. }
  13646. }
  13647. const ngControlStatusHost = {
  13648. '[class.ng-untouched]': 'ngClassUntouched',
  13649. '[class.ng-touched]': 'ngClassTouched',
  13650. '[class.ng-pristine]': 'ngClassPristine',
  13651. '[class.ng-dirty]': 'ngClassDirty',
  13652. '[class.ng-valid]': 'ngClassValid',
  13653. '[class.ng-invalid]': 'ngClassInvalid',
  13654. '[class.ng-pending]': 'ngClassPending',
  13655. };
  13656. /**
  13657. * @description
  13658. * Directive automatically applied to Angular form controls that sets CSS classes
  13659. * based on control status.
  13660. *
  13661. * @usageNotes
  13662. *
  13663. * ### CSS classes applied
  13664. *
  13665. * The following classes are applied as the properties become true:
  13666. *
  13667. * * ng-valid
  13668. * * ng-invalid
  13669. * * ng-pending
  13670. * * ng-pristine
  13671. * * ng-dirty
  13672. * * ng-untouched
  13673. * * ng-touched
  13674. *
  13675. * @ngModule ReactiveFormsModule
  13676. * @ngModule FormsModule
  13677. * @publicApi
  13678. */
  13679. class NgControlStatus extends AbstractControlStatus {
  13680. constructor(cd) {
  13681. super(cd);
  13682. }
  13683. }
  13684. NgControlStatus.ɵfac = function NgControlStatus_Factory(t) { return new (t || NgControlStatus)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgControl, 2)); };
  13685. NgControlStatus.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgControlStatus, selectors: [["", "formControlName", ""], ["", "ngModel", ""], ["", "formControl", ""]], hostVars: 14, hostBindings: function NgControlStatus_HostBindings(rf, ctx) { if (rf & 2) {
  13686. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-untouched", ctx.ngClassUntouched)("ng-touched", ctx.ngClassTouched)("ng-pristine", ctx.ngClassPristine)("ng-dirty", ctx.ngClassDirty)("ng-valid", ctx.ngClassValid)("ng-invalid", ctx.ngClassInvalid)("ng-pending", ctx.ngClassPending);
  13687. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  13688. NgControlStatus.ctorParameters = () => [
  13689. { type: NgControl, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }] }
  13690. ];
  13691. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgControlStatus, [{
  13692. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  13693. args: [{ selector: '[formControlName],[ngModel],[formControl]', host: ngControlStatusHost }]
  13694. }], function () { return [{ type: NgControl, decorators: [{
  13695. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  13696. }] }]; }, null); })();
  13697. /**
  13698. * @description
  13699. * Directive automatically applied to Angular form groups that sets CSS classes
  13700. * based on control status (valid/invalid/dirty/etc).
  13701. *
  13702. * @see `NgControlStatus`
  13703. *
  13704. * @ngModule ReactiveFormsModule
  13705. * @ngModule FormsModule
  13706. * @publicApi
  13707. */
  13708. class NgControlStatusGroup extends AbstractControlStatus {
  13709. constructor(cd) {
  13710. super(cd);
  13711. }
  13712. }
  13713. NgControlStatusGroup.ɵfac = function NgControlStatusGroup_Factory(t) { return new (t || NgControlStatusGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 2)); };
  13714. NgControlStatusGroup.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgControlStatusGroup, selectors: [["", "formGroupName", ""], ["", "formArrayName", ""], ["", "ngModelGroup", ""], ["", "formGroup", ""], ["form", 3, "ngNoForm", ""], ["", "ngForm", ""]], hostVars: 14, hostBindings: function NgControlStatusGroup_HostBindings(rf, ctx) { if (rf & 2) {
  13715. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-untouched", ctx.ngClassUntouched)("ng-touched", ctx.ngClassTouched)("ng-pristine", ctx.ngClassPristine)("ng-dirty", ctx.ngClassDirty)("ng-valid", ctx.ngClassValid)("ng-invalid", ctx.ngClassInvalid)("ng-pending", ctx.ngClassPending);
  13716. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  13717. NgControlStatusGroup.ctorParameters = () => [
  13718. { type: ControlContainer, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }] }
  13719. ];
  13720. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgControlStatusGroup, [{
  13721. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  13722. args: [{
  13723. selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]',
  13724. host: ngControlStatusHost
  13725. }]
  13726. }], function () { return [{ type: ControlContainer, decorators: [{
  13727. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  13728. }] }]; }, null); })();
  13729. /**
  13730. * @license
  13731. * Copyright Google LLC All Rights Reserved.
  13732. *
  13733. * Use of this source code is governed by an MIT-style license that can be
  13734. * found in the LICENSE file at https://angular.io/license
  13735. */
  13736. const NUMBER_VALUE_ACCESSOR = {
  13737. provide: NG_VALUE_ACCESSOR,
  13738. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NumberValueAccessor),
  13739. multi: true
  13740. };
  13741. /**
  13742. * @description
  13743. * The `ControlValueAccessor` for writing a number value and listening to number input changes.
  13744. * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`
  13745. * directives.
  13746. *
  13747. * @usageNotes
  13748. *
  13749. * ### Using a number input with a reactive form.
  13750. *
  13751. * The following example shows how to use a number input with a reactive form.
  13752. *
  13753. * ```ts
  13754. * const totalCountControl = new FormControl();
  13755. * ```
  13756. *
  13757. * ```
  13758. * <input type="number" [formControl]="totalCountControl">
  13759. * ```
  13760. *
  13761. * @ngModule ReactiveFormsModule
  13762. * @ngModule FormsModule
  13763. * @publicApi
  13764. */
  13765. class NumberValueAccessor {
  13766. constructor(_renderer, _elementRef) {
  13767. this._renderer = _renderer;
  13768. this._elementRef = _elementRef;
  13769. /**
  13770. * The registered callback function called when a change or input event occurs on the input
  13771. * element.
  13772. * @nodoc
  13773. */
  13774. this.onChange = (_) => { };
  13775. /**
  13776. * The registered callback function called when a blur event occurs on the input element.
  13777. * @nodoc
  13778. */
  13779. this.onTouched = () => { };
  13780. }
  13781. /**
  13782. * Sets the "value" property on the input element.
  13783. * @nodoc
  13784. */
  13785. writeValue(value) {
  13786. // The value needs to be normalized for IE9, otherwise it is set to 'null' when null
  13787. const normalizedValue = value == null ? '' : value;
  13788. this._renderer.setProperty(this._elementRef.nativeElement, 'value', normalizedValue);
  13789. }
  13790. /**
  13791. * Registers a function called when the control value changes.
  13792. * @nodoc
  13793. */
  13794. registerOnChange(fn) {
  13795. this.onChange = (value) => {
  13796. fn(value == '' ? null : parseFloat(value));
  13797. };
  13798. }
  13799. /**
  13800. * Registers a function called when the control is touched.
  13801. * @nodoc
  13802. */
  13803. registerOnTouched(fn) {
  13804. this.onTouched = fn;
  13805. }
  13806. /**
  13807. * Sets the "disabled" property on the input element.
  13808. * @nodoc
  13809. */
  13810. setDisabledState(isDisabled) {
  13811. this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
  13812. }
  13813. }
  13814. NumberValueAccessor.ɵfac = function NumberValueAccessor_Factory(t) { return new (t || NumberValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  13815. NumberValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NumberValueAccessor, selectors: [["input", "type", "number", "formControlName", ""], ["input", "type", "number", "formControl", ""], ["input", "type", "number", "ngModel", ""]], hostBindings: function NumberValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
  13816. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function NumberValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.value); })("blur", function NumberValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
  13817. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([NUMBER_VALUE_ACCESSOR])] });
  13818. NumberValueAccessor.ctorParameters = () => [
  13819. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  13820. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  13821. ];
  13822. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NumberValueAccessor, [{
  13823. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  13824. args: [{
  13825. selector: 'input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]',
  13826. host: { '(input)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
  13827. providers: [NUMBER_VALUE_ACCESSOR]
  13828. }]
  13829. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, null); })();
  13830. /**
  13831. * @license
  13832. * Copyright Google LLC All Rights Reserved.
  13833. *
  13834. * Use of this source code is governed by an MIT-style license that can be
  13835. * found in the LICENSE file at https://angular.io/license
  13836. */
  13837. const RADIO_VALUE_ACCESSOR = {
  13838. provide: NG_VALUE_ACCESSOR,
  13839. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => RadioControlValueAccessor),
  13840. multi: true
  13841. };
  13842. function throwNameError() {
  13843. throw new Error(`
  13844. If you define both a name and a formControlName attribute on your radio button, their values
  13845. must match. Ex: <input type="radio" formControlName="food" name="food">
  13846. `);
  13847. }
  13848. /**
  13849. * @description
  13850. * Class used by Angular to track radio buttons. For internal use only.
  13851. */
  13852. class RadioControlRegistry {
  13853. constructor() {
  13854. this._accessors = [];
  13855. }
  13856. /**
  13857. * @description
  13858. * Adds a control to the internal registry. For internal use only.
  13859. */
  13860. add(control, accessor) {
  13861. this._accessors.push([control, accessor]);
  13862. }
  13863. /**
  13864. * @description
  13865. * Removes a control from the internal registry. For internal use only.
  13866. */
  13867. remove(accessor) {
  13868. for (let i = this._accessors.length - 1; i >= 0; --i) {
  13869. if (this._accessors[i][1] === accessor) {
  13870. this._accessors.splice(i, 1);
  13871. return;
  13872. }
  13873. }
  13874. }
  13875. /**
  13876. * @description
  13877. * Selects a radio button. For internal use only.
  13878. */
  13879. select(accessor) {
  13880. this._accessors.forEach((c) => {
  13881. if (this._isSameGroup(c, accessor) && c[1] !== accessor) {
  13882. c[1].fireUncheck(accessor.value);
  13883. }
  13884. });
  13885. }
  13886. _isSameGroup(controlPair, accessor) {
  13887. if (!controlPair[0].control)
  13888. return false;
  13889. return controlPair[0]._parent === accessor._control._parent &&
  13890. controlPair[1].name === accessor.name;
  13891. }
  13892. }
  13893. RadioControlRegistry.ɵfac = function RadioControlRegistry_Factory(t) { return new (t || RadioControlRegistry)(); };
  13894. RadioControlRegistry.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: RadioControlRegistry, factory: RadioControlRegistry.ɵfac });
  13895. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadioControlRegistry, [{
  13896. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  13897. }], function () { return []; }, null); })();
  13898. /**
  13899. * @description
  13900. * The `ControlValueAccessor` for writing radio control values and listening to radio control
  13901. * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
  13902. * `NgModel` directives.
  13903. *
  13904. * @usageNotes
  13905. *
  13906. * ### Using radio buttons with reactive form directives
  13907. *
  13908. * The follow example shows how to use radio buttons in a reactive form. When using radio buttons in
  13909. * a reactive form, radio buttons in the same group should have the same `formControlName`.
  13910. * Providing a `name` attribute is optional.
  13911. *
  13912. * {@example forms/ts/reactiveRadioButtons/reactive_radio_button_example.ts region='Reactive'}
  13913. *
  13914. * @ngModule ReactiveFormsModule
  13915. * @ngModule FormsModule
  13916. * @publicApi
  13917. */
  13918. class RadioControlValueAccessor {
  13919. constructor(_renderer, _elementRef, _registry, _injector) {
  13920. this._renderer = _renderer;
  13921. this._elementRef = _elementRef;
  13922. this._registry = _registry;
  13923. this._injector = _injector;
  13924. /**
  13925. * The registered callback function called when a change event occurs on the input element.
  13926. * @nodoc
  13927. */
  13928. this.onChange = () => { };
  13929. /**
  13930. * The registered callback function called when a blur event occurs on the input element.
  13931. * @nodoc
  13932. */
  13933. this.onTouched = () => { };
  13934. }
  13935. /** @nodoc */
  13936. ngOnInit() {
  13937. this._control = this._injector.get(NgControl);
  13938. this._checkName();
  13939. this._registry.add(this._control, this);
  13940. }
  13941. /** @nodoc */
  13942. ngOnDestroy() {
  13943. this._registry.remove(this);
  13944. }
  13945. /**
  13946. * Sets the "checked" property value on the radio input element.
  13947. * @nodoc
  13948. */
  13949. writeValue(value) {
  13950. this._state = value === this.value;
  13951. this._renderer.setProperty(this._elementRef.nativeElement, 'checked', this._state);
  13952. }
  13953. /**
  13954. * Registers a function called when the control value changes.
  13955. * @nodoc
  13956. */
  13957. registerOnChange(fn) {
  13958. this._fn = fn;
  13959. this.onChange = () => {
  13960. fn(this.value);
  13961. this._registry.select(this);
  13962. };
  13963. }
  13964. /**
  13965. * Sets the "value" on the radio input element and unchecks it.
  13966. *
  13967. * @param value
  13968. */
  13969. fireUncheck(value) {
  13970. this.writeValue(value);
  13971. }
  13972. /**
  13973. * Registers a function called when the control is touched.
  13974. * @nodoc
  13975. */
  13976. registerOnTouched(fn) {
  13977. this.onTouched = fn;
  13978. }
  13979. /**
  13980. * Sets the "disabled" property on the input element.
  13981. * @nodoc
  13982. */
  13983. setDisabledState(isDisabled) {
  13984. this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
  13985. }
  13986. _checkName() {
  13987. if (this.name && this.formControlName && this.name !== this.formControlName &&
  13988. (typeof ngDevMode === 'undefined' || ngDevMode)) {
  13989. throwNameError();
  13990. }
  13991. if (!this.name && this.formControlName)
  13992. this.name = this.formControlName;
  13993. }
  13994. }
  13995. RadioControlValueAccessor.ɵfac = function RadioControlValueAccessor_Factory(t) { return new (t || RadioControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](RadioControlRegistry), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"])); };
  13996. RadioControlValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: RadioControlValueAccessor, selectors: [["input", "type", "radio", "formControlName", ""], ["input", "type", "radio", "formControl", ""], ["input", "type", "radio", "ngModel", ""]], hostBindings: function RadioControlValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
  13997. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function RadioControlValueAccessor_change_HostBindingHandler() { return ctx.onChange(); })("blur", function RadioControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
  13998. } }, inputs: { name: "name", formControlName: "formControlName", value: "value" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([RADIO_VALUE_ACCESSOR])] });
  13999. RadioControlValueAccessor.ctorParameters = () => [
  14000. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  14001. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  14002. { type: RadioControlRegistry },
  14003. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }
  14004. ];
  14005. RadioControlValueAccessor.propDecorators = {
  14006. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  14007. formControlName: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  14008. value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  14009. };
  14010. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RadioControlValueAccessor, [{
  14011. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  14012. args: [{
  14013. selector: 'input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]',
  14014. host: { '(change)': 'onChange()', '(blur)': 'onTouched()' },
  14015. providers: [RADIO_VALUE_ACCESSOR]
  14016. }]
  14017. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: RadioControlRegistry }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }]; }, { name: [{
  14018. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  14019. }], formControlName: [{
  14020. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  14021. }], value: [{
  14022. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  14023. }] }); })();
  14024. /**
  14025. * @license
  14026. * Copyright Google LLC All Rights Reserved.
  14027. *
  14028. * Use of this source code is governed by an MIT-style license that can be
  14029. * found in the LICENSE file at https://angular.io/license
  14030. */
  14031. const RANGE_VALUE_ACCESSOR = {
  14032. provide: NG_VALUE_ACCESSOR,
  14033. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => RangeValueAccessor),
  14034. multi: true
  14035. };
  14036. /**
  14037. * @description
  14038. * The `ControlValueAccessor` for writing a range value and listening to range input changes.
  14039. * The value accessor is used by the `FormControlDirective`, `FormControlName`, and `NgModel`
  14040. * directives.
  14041. *
  14042. * @usageNotes
  14043. *
  14044. * ### Using a range input with a reactive form
  14045. *
  14046. * The following example shows how to use a range input with a reactive form.
  14047. *
  14048. * ```ts
  14049. * const ageControl = new FormControl();
  14050. * ```
  14051. *
  14052. * ```
  14053. * <input type="range" [formControl]="ageControl">
  14054. * ```
  14055. *
  14056. * @ngModule ReactiveFormsModule
  14057. * @ngModule FormsModule
  14058. * @publicApi
  14059. */
  14060. class RangeValueAccessor {
  14061. constructor(_renderer, _elementRef) {
  14062. this._renderer = _renderer;
  14063. this._elementRef = _elementRef;
  14064. /**
  14065. * The registered callback function called when a change or input event occurs on the input
  14066. * element.
  14067. * @nodoc
  14068. */
  14069. this.onChange = (_) => { };
  14070. /**
  14071. * The registered callback function called when a blur event occurs on the input element.
  14072. * @nodoc
  14073. */
  14074. this.onTouched = () => { };
  14075. }
  14076. /**
  14077. * Sets the "value" property on the input element.
  14078. * @nodoc
  14079. */
  14080. writeValue(value) {
  14081. this._renderer.setProperty(this._elementRef.nativeElement, 'value', parseFloat(value));
  14082. }
  14083. /**
  14084. * Registers a function called when the control value changes.
  14085. * @nodoc
  14086. */
  14087. registerOnChange(fn) {
  14088. this.onChange = (value) => {
  14089. fn(value == '' ? null : parseFloat(value));
  14090. };
  14091. }
  14092. /**
  14093. * Registers a function called when the control is touched.
  14094. * @nodoc
  14095. */
  14096. registerOnTouched(fn) {
  14097. this.onTouched = fn;
  14098. }
  14099. /**
  14100. * Sets the "disabled" property on the range input element.
  14101. * @nodoc
  14102. */
  14103. setDisabledState(isDisabled) {
  14104. this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
  14105. }
  14106. }
  14107. RangeValueAccessor.ɵfac = function RangeValueAccessor_Factory(t) { return new (t || RangeValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  14108. RangeValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: RangeValueAccessor, selectors: [["input", "type", "range", "formControlName", ""], ["input", "type", "range", "formControl", ""], ["input", "type", "range", "ngModel", ""]], hostBindings: function RangeValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
  14109. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function RangeValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.value); })("input", function RangeValueAccessor_input_HostBindingHandler($event) { return ctx.onChange($event.target.value); })("blur", function RangeValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
  14110. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([RANGE_VALUE_ACCESSOR])] });
  14111. RangeValueAccessor.ctorParameters = () => [
  14112. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  14113. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  14114. ];
  14115. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RangeValueAccessor, [{
  14116. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  14117. args: [{
  14118. selector: 'input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]',
  14119. host: {
  14120. '(change)': 'onChange($event.target.value)',
  14121. '(input)': 'onChange($event.target.value)',
  14122. '(blur)': 'onTouched()'
  14123. },
  14124. providers: [RANGE_VALUE_ACCESSOR]
  14125. }]
  14126. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, null); })();
  14127. /**
  14128. * @license
  14129. * Copyright Google LLC All Rights Reserved.
  14130. *
  14131. * Use of this source code is governed by an MIT-style license that can be
  14132. * found in the LICENSE file at https://angular.io/license
  14133. */
  14134. const FormErrorExamples = {
  14135. formControlName: `
  14136. <div [formGroup]="myGroup">
  14137. <input formControlName="firstName">
  14138. </div>
  14139. In your class:
  14140. this.myGroup = new FormGroup({
  14141. firstName: new FormControl()
  14142. });`,
  14143. formGroupName: `
  14144. <div [formGroup]="myGroup">
  14145. <div formGroupName="person">
  14146. <input formControlName="firstName">
  14147. </div>
  14148. </div>
  14149. In your class:
  14150. this.myGroup = new FormGroup({
  14151. person: new FormGroup({ firstName: new FormControl() })
  14152. });`,
  14153. formArrayName: `
  14154. <div [formGroup]="myGroup">
  14155. <div formArrayName="cities">
  14156. <div *ngFor="let city of cityArray.controls; index as i">
  14157. <input [formControlName]="i">
  14158. </div>
  14159. </div>
  14160. </div>
  14161. In your class:
  14162. this.cityArray = new FormArray([new FormControl('SF')]);
  14163. this.myGroup = new FormGroup({
  14164. cities: this.cityArray
  14165. });`,
  14166. ngModelGroup: `
  14167. <form>
  14168. <div ngModelGroup="person">
  14169. <input [(ngModel)]="person.name" name="firstName">
  14170. </div>
  14171. </form>`,
  14172. ngModelWithFormGroup: `
  14173. <div [formGroup]="myGroup">
  14174. <input formControlName="firstName">
  14175. <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">
  14176. </div>
  14177. `
  14178. };
  14179. /**
  14180. * @license
  14181. * Copyright Google LLC All Rights Reserved.
  14182. *
  14183. * Use of this source code is governed by an MIT-style license that can be
  14184. * found in the LICENSE file at https://angular.io/license
  14185. */
  14186. class ReactiveErrors {
  14187. static controlParentException() {
  14188. throw new Error(`formControlName must be used with a parent formGroup directive. You'll want to add a formGroup
  14189. directive and pass it an existing FormGroup instance (you can create one in your class).
  14190. Example:
  14191. ${FormErrorExamples.formControlName}`);
  14192. }
  14193. static ngModelGroupException() {
  14194. throw new Error(`formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents
  14195. that also have a "form" prefix: formGroupName, formArrayName, or formGroup.
  14196. Option 1: Update the parent to be formGroupName (reactive form strategy)
  14197. ${FormErrorExamples.formGroupName}
  14198. Option 2: Use ngModel instead of formControlName (template-driven strategy)
  14199. ${FormErrorExamples.ngModelGroup}`);
  14200. }
  14201. static missingFormException() {
  14202. throw new Error(`formGroup expects a FormGroup instance. Please pass one in.
  14203. Example:
  14204. ${FormErrorExamples.formControlName}`);
  14205. }
  14206. static groupParentException() {
  14207. throw new Error(`formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup
  14208. directive and pass it an existing FormGroup instance (you can create one in your class).
  14209. Example:
  14210. ${FormErrorExamples.formGroupName}`);
  14211. }
  14212. static arrayParentException() {
  14213. throw new Error(`formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup
  14214. directive and pass it an existing FormGroup instance (you can create one in your class).
  14215. Example:
  14216. ${FormErrorExamples.formArrayName}`);
  14217. }
  14218. static disabledAttrWarning() {
  14219. console.warn(`
  14220. It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true
  14221. when you set up this control in your component class, the disabled attribute will actually be set in the DOM for
  14222. you. We recommend using this approach to avoid 'changed after checked' errors.
  14223. Example:
  14224. form = new FormGroup({
  14225. first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),
  14226. last: new FormControl('Drew', Validators.required)
  14227. });
  14228. `);
  14229. }
  14230. static ngModelWarning(directiveName) {
  14231. console.warn(`
  14232. It looks like you're using ngModel on the same form field as ${directiveName}.
  14233. Support for using the ngModel input property and ngModelChange event with
  14234. reactive form directives has been deprecated in Angular v6 and will be removed
  14235. in a future version of Angular.
  14236. For more information on this, see our API docs here:
  14237. https://angular.io/api/forms/${directiveName === 'formControl' ? 'FormControlDirective' :
  14238. 'FormControlName'}#use-with-ngmodel
  14239. `);
  14240. }
  14241. }
  14242. /**
  14243. * @license
  14244. * Copyright Google LLC All Rights Reserved.
  14245. *
  14246. * Use of this source code is governed by an MIT-style license that can be
  14247. * found in the LICENSE file at https://angular.io/license
  14248. */
  14249. const SELECT_VALUE_ACCESSOR = {
  14250. provide: NG_VALUE_ACCESSOR,
  14251. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => SelectControlValueAccessor),
  14252. multi: true
  14253. };
  14254. function _buildValueString(id, value) {
  14255. if (id == null)
  14256. return `${value}`;
  14257. if (value && typeof value === 'object')
  14258. value = 'Object';
  14259. return `${id}: ${value}`.slice(0, 50);
  14260. }
  14261. function _extractId(valueString) {
  14262. return valueString.split(':')[0];
  14263. }
  14264. /**
  14265. * @description
  14266. * The `ControlValueAccessor` for writing select control values and listening to select control
  14267. * changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
  14268. * `NgModel` directives.
  14269. *
  14270. * @usageNotes
  14271. *
  14272. * ### Using select controls in a reactive form
  14273. *
  14274. * The following examples show how to use a select control in a reactive form.
  14275. *
  14276. * {@example forms/ts/reactiveSelectControl/reactive_select_control_example.ts region='Component'}
  14277. *
  14278. * ### Using select controls in a template-driven form
  14279. *
  14280. * To use a select in a template-driven form, simply add an `ngModel` and a `name`
  14281. * attribute to the main `<select>` tag.
  14282. *
  14283. * {@example forms/ts/selectControl/select_control_example.ts region='Component'}
  14284. *
  14285. * ### Customizing option selection
  14286. *
  14287. * Angular uses object identity to select option. It's possible for the identities of items
  14288. * to change while the data does not. This can happen, for example, if the items are produced
  14289. * from an RPC to the server, and that RPC is re-run. Even if the data hasn't changed, the
  14290. * second response will produce objects with different identities.
  14291. *
  14292. * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.
  14293. * `compareWith` takes a **function** which has two arguments: `option1` and `option2`.
  14294. * If `compareWith` is given, Angular selects option by the return value of the function.
  14295. *
  14296. * ```ts
  14297. * const selectedCountriesControl = new FormControl();
  14298. * ```
  14299. *
  14300. * ```
  14301. * <select [compareWith]="compareFn" [formControl]="selectedCountriesControl">
  14302. * <option *ngFor="let country of countries" [ngValue]="country">
  14303. * {{country.name}}
  14304. * </option>
  14305. * </select>
  14306. *
  14307. * compareFn(c1: Country, c2: Country): boolean {
  14308. * return c1 && c2 ? c1.id === c2.id : c1 === c2;
  14309. * }
  14310. * ```
  14311. *
  14312. * **Note:** We listen to the 'change' event because 'input' events aren't fired
  14313. * for selects in Firefox and IE:
  14314. * https://bugzilla.mozilla.org/show_bug.cgi?id=1024350
  14315. * https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/4660045/
  14316. *
  14317. * @ngModule ReactiveFormsModule
  14318. * @ngModule FormsModule
  14319. * @publicApi
  14320. */
  14321. class SelectControlValueAccessor {
  14322. constructor(_renderer, _elementRef) {
  14323. this._renderer = _renderer;
  14324. this._elementRef = _elementRef;
  14325. /** @internal */
  14326. this._optionMap = new Map();
  14327. /** @internal */
  14328. this._idCounter = 0;
  14329. /**
  14330. * The registered callback function called when a change event occurs on the input element.
  14331. * @nodoc
  14332. */
  14333. this.onChange = (_) => { };
  14334. /**
  14335. * The registered callback function called when a blur event occurs on the input element.
  14336. * @nodoc
  14337. */
  14338. this.onTouched = () => { };
  14339. this._compareWith = Object.is;
  14340. }
  14341. /**
  14342. * @description
  14343. * Tracks the option comparison algorithm for tracking identities when
  14344. * checking for changes.
  14345. */
  14346. set compareWith(fn) {
  14347. if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
  14348. throw new Error(`compareWith must be a function, but received ${JSON.stringify(fn)}`);
  14349. }
  14350. this._compareWith = fn;
  14351. }
  14352. /**
  14353. * Sets the "value" property on the input element. The "selectedIndex"
  14354. * property is also set if an ID is provided on the option element.
  14355. * @nodoc
  14356. */
  14357. writeValue(value) {
  14358. this.value = value;
  14359. const id = this._getOptionId(value);
  14360. if (id == null) {
  14361. this._renderer.setProperty(this._elementRef.nativeElement, 'selectedIndex', -1);
  14362. }
  14363. const valueString = _buildValueString(id, value);
  14364. this._renderer.setProperty(this._elementRef.nativeElement, 'value', valueString);
  14365. }
  14366. /**
  14367. * Registers a function called when the control value changes.
  14368. * @nodoc
  14369. */
  14370. registerOnChange(fn) {
  14371. this.onChange = (valueString) => {
  14372. this.value = this._getOptionValue(valueString);
  14373. fn(this.value);
  14374. };
  14375. }
  14376. /**
  14377. * Registers a function called when the control is touched.
  14378. * @nodoc
  14379. */
  14380. registerOnTouched(fn) {
  14381. this.onTouched = fn;
  14382. }
  14383. /**
  14384. * Sets the "disabled" property on the select input element.
  14385. * @nodoc
  14386. */
  14387. setDisabledState(isDisabled) {
  14388. this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
  14389. }
  14390. /** @internal */
  14391. _registerOption() {
  14392. return (this._idCounter++).toString();
  14393. }
  14394. /** @internal */
  14395. _getOptionId(value) {
  14396. for (const id of Array.from(this._optionMap.keys())) {
  14397. if (this._compareWith(this._optionMap.get(id), value))
  14398. return id;
  14399. }
  14400. return null;
  14401. }
  14402. /** @internal */
  14403. _getOptionValue(valueString) {
  14404. const id = _extractId(valueString);
  14405. return this._optionMap.has(id) ? this._optionMap.get(id) : valueString;
  14406. }
  14407. }
  14408. SelectControlValueAccessor.ɵfac = function SelectControlValueAccessor_Factory(t) { return new (t || SelectControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  14409. SelectControlValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: SelectControlValueAccessor, selectors: [["select", "formControlName", "", 3, "multiple", ""], ["select", "formControl", "", 3, "multiple", ""], ["select", "ngModel", "", 3, "multiple", ""]], hostBindings: function SelectControlValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
  14410. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function SelectControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target.value); })("blur", function SelectControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
  14411. } }, inputs: { compareWith: "compareWith" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([SELECT_VALUE_ACCESSOR])] });
  14412. SelectControlValueAccessor.ctorParameters = () => [
  14413. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  14414. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  14415. ];
  14416. SelectControlValueAccessor.propDecorators = {
  14417. compareWith: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  14418. };
  14419. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SelectControlValueAccessor, [{
  14420. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  14421. args: [{
  14422. selector: 'select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]',
  14423. host: { '(change)': 'onChange($event.target.value)', '(blur)': 'onTouched()' },
  14424. providers: [SELECT_VALUE_ACCESSOR]
  14425. }]
  14426. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { compareWith: [{
  14427. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  14428. }] }); })();
  14429. /**
  14430. * @description
  14431. * Marks `<option>` as dynamic, so Angular can be notified when options change.
  14432. *
  14433. * @see `SelectControlValueAccessor`
  14434. *
  14435. * @ngModule ReactiveFormsModule
  14436. * @ngModule FormsModule
  14437. * @publicApi
  14438. */
  14439. class NgSelectOption {
  14440. constructor(_element, _renderer, _select) {
  14441. this._element = _element;
  14442. this._renderer = _renderer;
  14443. this._select = _select;
  14444. if (this._select)
  14445. this.id = this._select._registerOption();
  14446. }
  14447. /**
  14448. * @description
  14449. * Tracks the value bound to the option element. Unlike the value binding,
  14450. * ngValue supports binding to objects.
  14451. */
  14452. set ngValue(value) {
  14453. if (this._select == null)
  14454. return;
  14455. this._select._optionMap.set(this.id, value);
  14456. this._setElementValue(_buildValueString(this.id, value));
  14457. this._select.writeValue(this._select.value);
  14458. }
  14459. /**
  14460. * @description
  14461. * Tracks simple string values bound to the option element.
  14462. * For objects, use the `ngValue` input binding.
  14463. */
  14464. set value(value) {
  14465. this._setElementValue(value);
  14466. if (this._select)
  14467. this._select.writeValue(this._select.value);
  14468. }
  14469. /** @internal */
  14470. _setElementValue(value) {
  14471. this._renderer.setProperty(this._element.nativeElement, 'value', value);
  14472. }
  14473. /** @nodoc */
  14474. ngOnDestroy() {
  14475. if (this._select) {
  14476. this._select._optionMap.delete(this.id);
  14477. this._select.writeValue(this._select.value);
  14478. }
  14479. }
  14480. }
  14481. NgSelectOption.ɵfac = function NgSelectOption_Factory(t) { return new (t || NgSelectOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](SelectControlValueAccessor, 9)); };
  14482. NgSelectOption.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgSelectOption, selectors: [["option"]], inputs: { ngValue: "ngValue", value: "value" } });
  14483. NgSelectOption.ctorParameters = () => [
  14484. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  14485. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  14486. { type: SelectControlValueAccessor, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }] }
  14487. ];
  14488. NgSelectOption.propDecorators = {
  14489. ngValue: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngValue',] }],
  14490. value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['value',] }]
  14491. };
  14492. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectOption, [{
  14493. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  14494. args: [{ selector: 'option' }]
  14495. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: SelectControlValueAccessor, decorators: [{
  14496. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  14497. }, {
  14498. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  14499. }] }]; }, { ngValue: [{
  14500. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  14501. args: ['ngValue']
  14502. }], value: [{
  14503. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  14504. args: ['value']
  14505. }] }); })();
  14506. /**
  14507. * @license
  14508. * Copyright Google LLC All Rights Reserved.
  14509. *
  14510. * Use of this source code is governed by an MIT-style license that can be
  14511. * found in the LICENSE file at https://angular.io/license
  14512. */
  14513. const SELECT_MULTIPLE_VALUE_ACCESSOR = {
  14514. provide: NG_VALUE_ACCESSOR,
  14515. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => SelectMultipleControlValueAccessor),
  14516. multi: true
  14517. };
  14518. function _buildValueString$1(id, value) {
  14519. if (id == null)
  14520. return `${value}`;
  14521. if (typeof value === 'string')
  14522. value = `'${value}'`;
  14523. if (value && typeof value === 'object')
  14524. value = 'Object';
  14525. return `${id}: ${value}`.slice(0, 50);
  14526. }
  14527. function _extractId$1(valueString) {
  14528. return valueString.split(':')[0];
  14529. }
  14530. /** Mock interface for HTMLCollection */
  14531. class HTMLCollection {
  14532. }
  14533. /**
  14534. * @description
  14535. * The `ControlValueAccessor` for writing multi-select control values and listening to multi-select
  14536. * control changes. The value accessor is used by the `FormControlDirective`, `FormControlName`, and
  14537. * `NgModel` directives.
  14538. *
  14539. * @see `SelectControlValueAccessor`
  14540. *
  14541. * @usageNotes
  14542. *
  14543. * ### Using a multi-select control
  14544. *
  14545. * The follow example shows you how to use a multi-select control with a reactive form.
  14546. *
  14547. * ```ts
  14548. * const countryControl = new FormControl();
  14549. * ```
  14550. *
  14551. * ```
  14552. * <select multiple name="countries" [formControl]="countryControl">
  14553. * <option *ngFor="let country of countries" [ngValue]="country">
  14554. * {{ country.name }}
  14555. * </option>
  14556. * </select>
  14557. * ```
  14558. *
  14559. * ### Customizing option selection
  14560. *
  14561. * To customize the default option comparison algorithm, `<select>` supports `compareWith` input.
  14562. * See the `SelectControlValueAccessor` for usage.
  14563. *
  14564. * @ngModule ReactiveFormsModule
  14565. * @ngModule FormsModule
  14566. * @publicApi
  14567. */
  14568. class SelectMultipleControlValueAccessor {
  14569. constructor(_renderer, _elementRef) {
  14570. this._renderer = _renderer;
  14571. this._elementRef = _elementRef;
  14572. /** @internal */
  14573. this._optionMap = new Map();
  14574. /** @internal */
  14575. this._idCounter = 0;
  14576. /**
  14577. * The registered callback function called when a change event occurs on the input element.
  14578. * @nodoc
  14579. */
  14580. this.onChange = (_) => { };
  14581. /**
  14582. * The registered callback function called when a blur event occurs on the input element.
  14583. * @nodoc
  14584. */
  14585. this.onTouched = () => { };
  14586. this._compareWith = Object.is;
  14587. }
  14588. /**
  14589. * @description
  14590. * Tracks the option comparison algorithm for tracking identities when
  14591. * checking for changes.
  14592. */
  14593. set compareWith(fn) {
  14594. if (typeof fn !== 'function' && (typeof ngDevMode === 'undefined' || ngDevMode)) {
  14595. throw new Error(`compareWith must be a function, but received ${JSON.stringify(fn)}`);
  14596. }
  14597. this._compareWith = fn;
  14598. }
  14599. /**
  14600. * Sets the "value" property on one or of more of the select's options.
  14601. * @nodoc
  14602. */
  14603. writeValue(value) {
  14604. this.value = value;
  14605. let optionSelectedStateSetter;
  14606. if (Array.isArray(value)) {
  14607. // convert values to ids
  14608. const ids = value.map((v) => this._getOptionId(v));
  14609. optionSelectedStateSetter = (opt, o) => {
  14610. opt._setSelected(ids.indexOf(o.toString()) > -1);
  14611. };
  14612. }
  14613. else {
  14614. optionSelectedStateSetter = (opt, o) => {
  14615. opt._setSelected(false);
  14616. };
  14617. }
  14618. this._optionMap.forEach(optionSelectedStateSetter);
  14619. }
  14620. /**
  14621. * Registers a function called when the control value changes
  14622. * and writes an array of the selected options.
  14623. * @nodoc
  14624. */
  14625. registerOnChange(fn) {
  14626. this.onChange = (_) => {
  14627. const selected = [];
  14628. if (_.selectedOptions !== undefined) {
  14629. const options = _.selectedOptions;
  14630. for (let i = 0; i < options.length; i++) {
  14631. const opt = options.item(i);
  14632. const val = this._getOptionValue(opt.value);
  14633. selected.push(val);
  14634. }
  14635. }
  14636. // Degrade on IE
  14637. else {
  14638. const options = _.options;
  14639. for (let i = 0; i < options.length; i++) {
  14640. const opt = options.item(i);
  14641. if (opt.selected) {
  14642. const val = this._getOptionValue(opt.value);
  14643. selected.push(val);
  14644. }
  14645. }
  14646. }
  14647. this.value = selected;
  14648. fn(selected);
  14649. };
  14650. }
  14651. /**
  14652. * Registers a function called when the control is touched.
  14653. * @nodoc
  14654. */
  14655. registerOnTouched(fn) {
  14656. this.onTouched = fn;
  14657. }
  14658. /**
  14659. * Sets the "disabled" property on the select input element.
  14660. * @nodoc
  14661. */
  14662. setDisabledState(isDisabled) {
  14663. this._renderer.setProperty(this._elementRef.nativeElement, 'disabled', isDisabled);
  14664. }
  14665. /** @internal */
  14666. _registerOption(value) {
  14667. const id = (this._idCounter++).toString();
  14668. this._optionMap.set(id, value);
  14669. return id;
  14670. }
  14671. /** @internal */
  14672. _getOptionId(value) {
  14673. for (const id of Array.from(this._optionMap.keys())) {
  14674. if (this._compareWith(this._optionMap.get(id)._value, value))
  14675. return id;
  14676. }
  14677. return null;
  14678. }
  14679. /** @internal */
  14680. _getOptionValue(valueString) {
  14681. const id = _extractId$1(valueString);
  14682. return this._optionMap.has(id) ? this._optionMap.get(id)._value : valueString;
  14683. }
  14684. }
  14685. SelectMultipleControlValueAccessor.ɵfac = function SelectMultipleControlValueAccessor_Factory(t) { return new (t || SelectMultipleControlValueAccessor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  14686. SelectMultipleControlValueAccessor.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: SelectMultipleControlValueAccessor, selectors: [["select", "multiple", "", "formControlName", ""], ["select", "multiple", "", "formControl", ""], ["select", "multiple", "", "ngModel", ""]], hostBindings: function SelectMultipleControlValueAccessor_HostBindings(rf, ctx) { if (rf & 1) {
  14687. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("change", function SelectMultipleControlValueAccessor_change_HostBindingHandler($event) { return ctx.onChange($event.target); })("blur", function SelectMultipleControlValueAccessor_blur_HostBindingHandler() { return ctx.onTouched(); });
  14688. } }, inputs: { compareWith: "compareWith" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([SELECT_MULTIPLE_VALUE_ACCESSOR])] });
  14689. SelectMultipleControlValueAccessor.ctorParameters = () => [
  14690. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  14691. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  14692. ];
  14693. SelectMultipleControlValueAccessor.propDecorators = {
  14694. compareWith: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  14695. };
  14696. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SelectMultipleControlValueAccessor, [{
  14697. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  14698. args: [{
  14699. selector: 'select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]',
  14700. host: { '(change)': 'onChange($event.target)', '(blur)': 'onTouched()' },
  14701. providers: [SELECT_MULTIPLE_VALUE_ACCESSOR]
  14702. }]
  14703. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { compareWith: [{
  14704. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  14705. }] }); })();
  14706. /**
  14707. * @description
  14708. * Marks `<option>` as dynamic, so Angular can be notified when options change.
  14709. *
  14710. * @see `SelectMultipleControlValueAccessor`
  14711. *
  14712. * @ngModule ReactiveFormsModule
  14713. * @ngModule FormsModule
  14714. * @publicApi
  14715. */
  14716. class ɵNgSelectMultipleOption {
  14717. constructor(_element, _renderer, _select) {
  14718. this._element = _element;
  14719. this._renderer = _renderer;
  14720. this._select = _select;
  14721. if (this._select) {
  14722. this.id = this._select._registerOption(this);
  14723. }
  14724. }
  14725. /**
  14726. * @description
  14727. * Tracks the value bound to the option element. Unlike the value binding,
  14728. * ngValue supports binding to objects.
  14729. */
  14730. set ngValue(value) {
  14731. if (this._select == null)
  14732. return;
  14733. this._value = value;
  14734. this._setElementValue(_buildValueString$1(this.id, value));
  14735. this._select.writeValue(this._select.value);
  14736. }
  14737. /**
  14738. * @description
  14739. * Tracks simple string values bound to the option element.
  14740. * For objects, use the `ngValue` input binding.
  14741. */
  14742. set value(value) {
  14743. if (this._select) {
  14744. this._value = value;
  14745. this._setElementValue(_buildValueString$1(this.id, value));
  14746. this._select.writeValue(this._select.value);
  14747. }
  14748. else {
  14749. this._setElementValue(value);
  14750. }
  14751. }
  14752. /** @internal */
  14753. _setElementValue(value) {
  14754. this._renderer.setProperty(this._element.nativeElement, 'value', value);
  14755. }
  14756. /** @internal */
  14757. _setSelected(selected) {
  14758. this._renderer.setProperty(this._element.nativeElement, 'selected', selected);
  14759. }
  14760. /** @nodoc */
  14761. ngOnDestroy() {
  14762. if (this._select) {
  14763. this._select._optionMap.delete(this.id);
  14764. this._select.writeValue(this._select.value);
  14765. }
  14766. }
  14767. }
  14768. ɵNgSelectMultipleOption.ɵfac = function ɵNgSelectMultipleOption_Factory(t) { return new (t || ɵNgSelectMultipleOption)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](SelectMultipleControlValueAccessor, 9)); };
  14769. ɵNgSelectMultipleOption.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: ɵNgSelectMultipleOption, selectors: [["option"]], inputs: { ngValue: "ngValue", value: "value" } });
  14770. ɵNgSelectMultipleOption.ctorParameters = () => [
  14771. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  14772. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  14773. { type: SelectMultipleControlValueAccessor, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }] }
  14774. ];
  14775. ɵNgSelectMultipleOption.propDecorators = {
  14776. ngValue: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngValue',] }],
  14777. value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['value',] }]
  14778. };
  14779. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵNgSelectMultipleOption, [{
  14780. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  14781. args: [{ selector: 'option' }]
  14782. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: SelectMultipleControlValueAccessor, decorators: [{
  14783. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  14784. }, {
  14785. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  14786. }] }]; }, { ngValue: [{
  14787. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  14788. args: ['ngValue']
  14789. }], value: [{
  14790. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  14791. args: ['value']
  14792. }] }); })();
  14793. /**
  14794. * @license
  14795. * Copyright Google LLC All Rights Reserved.
  14796. *
  14797. * Use of this source code is governed by an MIT-style license that can be
  14798. * found in the LICENSE file at https://angular.io/license
  14799. */
  14800. function controlPath(name, parent) {
  14801. return [...parent.path, name];
  14802. }
  14803. function setUpControl(control, dir) {
  14804. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  14805. if (!control)
  14806. _throwError(dir, 'Cannot find control with');
  14807. if (!dir.valueAccessor)
  14808. _throwError(dir, 'No value accessor for form control with');
  14809. }
  14810. setUpValidators(control, dir, /* handleOnValidatorChange */ true);
  14811. dir.valueAccessor.writeValue(control.value);
  14812. setUpViewChangePipeline(control, dir);
  14813. setUpModelChangePipeline(control, dir);
  14814. setUpBlurPipeline(control, dir);
  14815. setUpDisabledChangeHandler(control, dir);
  14816. }
  14817. function cleanUpControl(control, dir) {
  14818. const noop = () => {
  14819. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  14820. _noControlError(dir);
  14821. }
  14822. };
  14823. dir.valueAccessor.registerOnChange(noop);
  14824. dir.valueAccessor.registerOnTouched(noop);
  14825. cleanUpValidators(control, dir, /* handleOnValidatorChange */ true);
  14826. if (control) {
  14827. dir._invokeOnDestroyCallbacks();
  14828. control._registerOnCollectionChange(() => { });
  14829. }
  14830. }
  14831. function registerOnValidatorChange(validators, onChange) {
  14832. validators.forEach((validator) => {
  14833. if (validator.registerOnValidatorChange)
  14834. validator.registerOnValidatorChange(onChange);
  14835. });
  14836. }
  14837. /**
  14838. * Sets up disabled change handler function on a given form control if ControlValueAccessor
  14839. * associated with a given directive instance supports the `setDisabledState` call.
  14840. *
  14841. * @param control Form control where disabled change handler should be setup.
  14842. * @param dir Corresponding directive instance associated with this control.
  14843. */
  14844. function setUpDisabledChangeHandler(control, dir) {
  14845. if (dir.valueAccessor.setDisabledState) {
  14846. const onDisabledChange = (isDisabled) => {
  14847. dir.valueAccessor.setDisabledState(isDisabled);
  14848. };
  14849. control.registerOnDisabledChange(onDisabledChange);
  14850. // Register a callback function to cleanup disabled change handler
  14851. // from a control instance when a directive is destroyed.
  14852. dir._registerOnDestroy(() => {
  14853. control._unregisterOnDisabledChange(onDisabledChange);
  14854. });
  14855. }
  14856. }
  14857. /**
  14858. * Sets up sync and async directive validators on provided form control.
  14859. * This function merges validators from the directive into the validators of the control.
  14860. *
  14861. * @param control Form control where directive validators should be setup.
  14862. * @param dir Directive instance that contains validators to be setup.
  14863. * @param handleOnValidatorChange Flag that determines whether directive validators should be setup
  14864. * to handle validator input change.
  14865. */
  14866. function setUpValidators(control, dir, handleOnValidatorChange) {
  14867. const validators = getControlValidators(control);
  14868. if (dir.validator !== null) {
  14869. control.setValidators(mergeValidators(validators, dir.validator));
  14870. }
  14871. else if (typeof validators === 'function') {
  14872. // If sync validators are represented by a single validator function, we force the
  14873. // `Validators.compose` call to happen by executing the `setValidators` function with
  14874. // an array that contains that function. We need this to avoid possible discrepancies in
  14875. // validators behavior, so sync validators are always processed by the `Validators.compose`.
  14876. // Note: we should consider moving this logic inside the `setValidators` function itself, so we
  14877. // have consistent behavior on AbstractControl API level. The same applies to the async
  14878. // validators logic below.
  14879. control.setValidators([validators]);
  14880. }
  14881. const asyncValidators = getControlAsyncValidators(control);
  14882. if (dir.asyncValidator !== null) {
  14883. control.setAsyncValidators(mergeValidators(asyncValidators, dir.asyncValidator));
  14884. }
  14885. else if (typeof asyncValidators === 'function') {
  14886. control.setAsyncValidators([asyncValidators]);
  14887. }
  14888. // Re-run validation when validator binding changes, e.g. minlength=3 -> minlength=4
  14889. if (handleOnValidatorChange) {
  14890. const onValidatorChange = () => control.updateValueAndValidity();
  14891. registerOnValidatorChange(dir._rawValidators, onValidatorChange);
  14892. registerOnValidatorChange(dir._rawAsyncValidators, onValidatorChange);
  14893. }
  14894. }
  14895. /**
  14896. * Cleans up sync and async directive validators on provided form control.
  14897. * This function reverts the setup performed by the `setUpValidators` function, i.e.
  14898. * removes directive-specific validators from a given control instance.
  14899. *
  14900. * @param control Form control from where directive validators should be removed.
  14901. * @param dir Directive instance that contains validators to be removed.
  14902. * @param handleOnValidatorChange Flag that determines whether directive validators should also be
  14903. * cleaned up to stop handling validator input change (if previously configured to do so).
  14904. */
  14905. function cleanUpValidators(control, dir, handleOnValidatorChange) {
  14906. if (control !== null) {
  14907. if (dir.validator !== null) {
  14908. const validators = getControlValidators(control);
  14909. if (Array.isArray(validators) && validators.length > 0) {
  14910. // Filter out directive validator function.
  14911. control.setValidators(validators.filter(validator => validator !== dir.validator));
  14912. }
  14913. }
  14914. if (dir.asyncValidator !== null) {
  14915. const asyncValidators = getControlAsyncValidators(control);
  14916. if (Array.isArray(asyncValidators) && asyncValidators.length > 0) {
  14917. // Filter out directive async validator function.
  14918. control.setAsyncValidators(asyncValidators.filter(asyncValidator => asyncValidator !== dir.asyncValidator));
  14919. }
  14920. }
  14921. }
  14922. if (handleOnValidatorChange) {
  14923. // Clear onValidatorChange callbacks by providing a noop function.
  14924. const noop = () => { };
  14925. registerOnValidatorChange(dir._rawValidators, noop);
  14926. registerOnValidatorChange(dir._rawAsyncValidators, noop);
  14927. }
  14928. }
  14929. function setUpViewChangePipeline(control, dir) {
  14930. dir.valueAccessor.registerOnChange((newValue) => {
  14931. control._pendingValue = newValue;
  14932. control._pendingChange = true;
  14933. control._pendingDirty = true;
  14934. if (control.updateOn === 'change')
  14935. updateControl(control, dir);
  14936. });
  14937. }
  14938. function setUpBlurPipeline(control, dir) {
  14939. dir.valueAccessor.registerOnTouched(() => {
  14940. control._pendingTouched = true;
  14941. if (control.updateOn === 'blur' && control._pendingChange)
  14942. updateControl(control, dir);
  14943. if (control.updateOn !== 'submit')
  14944. control.markAsTouched();
  14945. });
  14946. }
  14947. function updateControl(control, dir) {
  14948. if (control._pendingDirty)
  14949. control.markAsDirty();
  14950. control.setValue(control._pendingValue, { emitModelToViewChange: false });
  14951. dir.viewToModelUpdate(control._pendingValue);
  14952. control._pendingChange = false;
  14953. }
  14954. function setUpModelChangePipeline(control, dir) {
  14955. const onChange = (newValue, emitModelEvent) => {
  14956. // control -> view
  14957. dir.valueAccessor.writeValue(newValue);
  14958. // control -> ngModel
  14959. if (emitModelEvent)
  14960. dir.viewToModelUpdate(newValue);
  14961. };
  14962. control.registerOnChange(onChange);
  14963. // Register a callback function to cleanup onChange handler
  14964. // from a control instance when a directive is destroyed.
  14965. dir._registerOnDestroy(() => {
  14966. control._unregisterOnChange(onChange);
  14967. });
  14968. }
  14969. function setUpFormContainer(control, dir) {
  14970. if (control == null && (typeof ngDevMode === 'undefined' || ngDevMode))
  14971. _throwError(dir, 'Cannot find control with');
  14972. setUpValidators(control, dir, /* handleOnValidatorChange */ false);
  14973. }
  14974. function _noControlError(dir) {
  14975. return _throwError(dir, 'There is no FormControl instance attached to form control element with');
  14976. }
  14977. function _throwError(dir, message) {
  14978. let messageEnd;
  14979. if (dir.path.length > 1) {
  14980. messageEnd = `path: '${dir.path.join(' -> ')}'`;
  14981. }
  14982. else if (dir.path[0]) {
  14983. messageEnd = `name: '${dir.path}'`;
  14984. }
  14985. else {
  14986. messageEnd = 'unspecified name attribute';
  14987. }
  14988. throw new Error(`${message} ${messageEnd}`);
  14989. }
  14990. function isPropertyUpdated(changes, viewModel) {
  14991. if (!changes.hasOwnProperty('model'))
  14992. return false;
  14993. const change = changes['model'];
  14994. if (change.isFirstChange())
  14995. return true;
  14996. return !Object.is(viewModel, change.currentValue);
  14997. }
  14998. const BUILTIN_ACCESSORS = [
  14999. CheckboxControlValueAccessor,
  15000. RangeValueAccessor,
  15001. NumberValueAccessor,
  15002. SelectControlValueAccessor,
  15003. SelectMultipleControlValueAccessor,
  15004. RadioControlValueAccessor,
  15005. ];
  15006. function isBuiltInAccessor(valueAccessor) {
  15007. return BUILTIN_ACCESSORS.some(a => valueAccessor.constructor === a);
  15008. }
  15009. function syncPendingControls(form, directives) {
  15010. form._syncPendingControls();
  15011. directives.forEach(dir => {
  15012. const control = dir.control;
  15013. if (control.updateOn === 'submit' && control._pendingChange) {
  15014. dir.viewToModelUpdate(control._pendingValue);
  15015. control._pendingChange = false;
  15016. }
  15017. });
  15018. }
  15019. // TODO: vsavkin remove it once https://github.com/angular/angular/issues/3011 is implemented
  15020. function selectValueAccessor(dir, valueAccessors) {
  15021. if (!valueAccessors)
  15022. return null;
  15023. if (!Array.isArray(valueAccessors) && (typeof ngDevMode === 'undefined' || ngDevMode))
  15024. _throwError(dir, 'Value accessor was not provided as an array for form control with');
  15025. let defaultAccessor = undefined;
  15026. let builtinAccessor = undefined;
  15027. let customAccessor = undefined;
  15028. valueAccessors.forEach((v) => {
  15029. if (v.constructor === DefaultValueAccessor) {
  15030. defaultAccessor = v;
  15031. }
  15032. else if (isBuiltInAccessor(v)) {
  15033. if (builtinAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))
  15034. _throwError(dir, 'More than one built-in value accessor matches form control with');
  15035. builtinAccessor = v;
  15036. }
  15037. else {
  15038. if (customAccessor && (typeof ngDevMode === 'undefined' || ngDevMode))
  15039. _throwError(dir, 'More than one custom value accessor matches form control with');
  15040. customAccessor = v;
  15041. }
  15042. });
  15043. if (customAccessor)
  15044. return customAccessor;
  15045. if (builtinAccessor)
  15046. return builtinAccessor;
  15047. if (defaultAccessor)
  15048. return defaultAccessor;
  15049. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  15050. _throwError(dir, 'No valid value accessor for form control with');
  15051. }
  15052. return null;
  15053. }
  15054. function removeListItem(list, el) {
  15055. const index = list.indexOf(el);
  15056. if (index > -1)
  15057. list.splice(index, 1);
  15058. }
  15059. // TODO(kara): remove after deprecation period
  15060. function _ngModelWarning(name, type, instance, warningConfig) {
  15061. if (warningConfig === 'never')
  15062. return;
  15063. if (((warningConfig === null || warningConfig === 'once') && !type._ngModelWarningSentOnce) ||
  15064. (warningConfig === 'always' && !instance._ngModelWarningSent)) {
  15065. ReactiveErrors.ngModelWarning(name);
  15066. type._ngModelWarningSentOnce = true;
  15067. instance._ngModelWarningSent = true;
  15068. }
  15069. }
  15070. /**
  15071. * @license
  15072. * Copyright Google LLC All Rights Reserved.
  15073. *
  15074. * Use of this source code is governed by an MIT-style license that can be
  15075. * found in the LICENSE file at https://angular.io/license
  15076. */
  15077. /**
  15078. * Reports that a FormControl is valid, meaning that no errors exist in the input value.
  15079. *
  15080. * @see `status`
  15081. */
  15082. const VALID = 'VALID';
  15083. /**
  15084. * Reports that a FormControl is invalid, meaning that an error exists in the input value.
  15085. *
  15086. * @see `status`
  15087. */
  15088. const INVALID = 'INVALID';
  15089. /**
  15090. * Reports that a FormControl is pending, meaning that that async validation is occurring and
  15091. * errors are not yet available for the input value.
  15092. *
  15093. * @see `markAsPending`
  15094. * @see `status`
  15095. */
  15096. const PENDING = 'PENDING';
  15097. /**
  15098. * Reports that a FormControl is disabled, meaning that the control is exempt from ancestor
  15099. * calculations of validity or value.
  15100. *
  15101. * @see `markAsDisabled`
  15102. * @see `status`
  15103. */
  15104. const DISABLED = 'DISABLED';
  15105. function _find(control, path, delimiter) {
  15106. if (path == null)
  15107. return null;
  15108. if (!Array.isArray(path)) {
  15109. path = path.split(delimiter);
  15110. }
  15111. if (Array.isArray(path) && path.length === 0)
  15112. return null;
  15113. // Not using Array.reduce here due to a Chrome 80 bug
  15114. // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
  15115. let controlToFind = control;
  15116. path.forEach((name) => {
  15117. if (controlToFind instanceof FormGroup) {
  15118. controlToFind = controlToFind.controls.hasOwnProperty(name) ?
  15119. controlToFind.controls[name] :
  15120. null;
  15121. }
  15122. else if (controlToFind instanceof FormArray) {
  15123. controlToFind = controlToFind.at(name) || null;
  15124. }
  15125. else {
  15126. controlToFind = null;
  15127. }
  15128. });
  15129. return controlToFind;
  15130. }
  15131. /**
  15132. * Gets validators from either an options object or given validators.
  15133. */
  15134. function pickValidators(validatorOrOpts) {
  15135. return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.validators : validatorOrOpts) || null;
  15136. }
  15137. /**
  15138. * Creates validator function by combining provided validators.
  15139. */
  15140. function coerceToValidator(validator) {
  15141. return Array.isArray(validator) ? composeValidators(validator) : validator || null;
  15142. }
  15143. /**
  15144. * Gets async validators from either an options object or given validators.
  15145. */
  15146. function pickAsyncValidators(asyncValidator, validatorOrOpts) {
  15147. return (isOptionsObj(validatorOrOpts) ? validatorOrOpts.asyncValidators : asyncValidator) || null;
  15148. }
  15149. /**
  15150. * Creates async validator function by combining provided async validators.
  15151. */
  15152. function coerceToAsyncValidator(asyncValidator) {
  15153. return Array.isArray(asyncValidator) ? composeAsyncValidators(asyncValidator) :
  15154. asyncValidator || null;
  15155. }
  15156. function isOptionsObj(validatorOrOpts) {
  15157. return validatorOrOpts != null && !Array.isArray(validatorOrOpts) &&
  15158. typeof validatorOrOpts === 'object';
  15159. }
  15160. /**
  15161. * This is the base class for `FormControl`, `FormGroup`, and `FormArray`.
  15162. *
  15163. * It provides some of the shared behavior that all controls and groups of controls have, like
  15164. * running validators, calculating status, and resetting state. It also defines the properties
  15165. * that are shared between all sub-classes, like `value`, `valid`, and `dirty`. It shouldn't be
  15166. * instantiated directly.
  15167. *
  15168. * @see [Forms Guide](/guide/forms)
  15169. * @see [Reactive Forms Guide](/guide/reactive-forms)
  15170. * @see [Dynamic Forms Guide](/guide/dynamic-form)
  15171. *
  15172. * @publicApi
  15173. */
  15174. class AbstractControl {
  15175. /**
  15176. * Initialize the AbstractControl instance.
  15177. *
  15178. * @param validators The function or array of functions that is used to determine the validity of
  15179. * this control synchronously.
  15180. * @param asyncValidators The function or array of functions that is used to determine validity of
  15181. * this control asynchronously.
  15182. */
  15183. constructor(validators, asyncValidators) {
  15184. /**
  15185. * Indicates that a control has its own pending asynchronous validation in progress.
  15186. *
  15187. * @internal
  15188. */
  15189. this._hasOwnPendingAsyncValidator = false;
  15190. /** @internal */
  15191. this._onCollectionChange = () => { };
  15192. this._parent = null;
  15193. /**
  15194. * A control is `pristine` if the user has not yet changed
  15195. * the value in the UI.
  15196. *
  15197. * @returns True if the user has not yet changed the value in the UI; compare `dirty`.
  15198. * Programmatic changes to a control's value do not mark it dirty.
  15199. */
  15200. this.pristine = true;
  15201. /**
  15202. * True if the control is marked as `touched`.
  15203. *
  15204. * A control is marked `touched` once the user has triggered
  15205. * a `blur` event on it.
  15206. */
  15207. this.touched = false;
  15208. /** @internal */
  15209. this._onDisabledChange = [];
  15210. this._rawValidators = validators;
  15211. this._rawAsyncValidators = asyncValidators;
  15212. this._composedValidatorFn = coerceToValidator(this._rawValidators);
  15213. this._composedAsyncValidatorFn = coerceToAsyncValidator(this._rawAsyncValidators);
  15214. }
  15215. /**
  15216. * The function that is used to determine the validity of this control synchronously.
  15217. */
  15218. get validator() {
  15219. return this._composedValidatorFn;
  15220. }
  15221. set validator(validatorFn) {
  15222. this._rawValidators = this._composedValidatorFn = validatorFn;
  15223. }
  15224. /**
  15225. * The function that is used to determine the validity of this control asynchronously.
  15226. */
  15227. get asyncValidator() {
  15228. return this._composedAsyncValidatorFn;
  15229. }
  15230. set asyncValidator(asyncValidatorFn) {
  15231. this._rawAsyncValidators = this._composedAsyncValidatorFn = asyncValidatorFn;
  15232. }
  15233. /**
  15234. * The parent control.
  15235. */
  15236. get parent() {
  15237. return this._parent;
  15238. }
  15239. /**
  15240. * A control is `valid` when its `status` is `VALID`.
  15241. *
  15242. * @see {@link AbstractControl.status}
  15243. *
  15244. * @returns True if the control has passed all of its validation tests,
  15245. * false otherwise.
  15246. */
  15247. get valid() {
  15248. return this.status === VALID;
  15249. }
  15250. /**
  15251. * A control is `invalid` when its `status` is `INVALID`.
  15252. *
  15253. * @see {@link AbstractControl.status}
  15254. *
  15255. * @returns True if this control has failed one or more of its validation checks,
  15256. * false otherwise.
  15257. */
  15258. get invalid() {
  15259. return this.status === INVALID;
  15260. }
  15261. /**
  15262. * A control is `pending` when its `status` is `PENDING`.
  15263. *
  15264. * @see {@link AbstractControl.status}
  15265. *
  15266. * @returns True if this control is in the process of conducting a validation check,
  15267. * false otherwise.
  15268. */
  15269. get pending() {
  15270. return this.status == PENDING;
  15271. }
  15272. /**
  15273. * A control is `disabled` when its `status` is `DISABLED`.
  15274. *
  15275. * Disabled controls are exempt from validation checks and
  15276. * are not included in the aggregate value of their ancestor
  15277. * controls.
  15278. *
  15279. * @see {@link AbstractControl.status}
  15280. *
  15281. * @returns True if the control is disabled, false otherwise.
  15282. */
  15283. get disabled() {
  15284. return this.status === DISABLED;
  15285. }
  15286. /**
  15287. * A control is `enabled` as long as its `status` is not `DISABLED`.
  15288. *
  15289. * @returns True if the control has any status other than 'DISABLED',
  15290. * false if the status is 'DISABLED'.
  15291. *
  15292. * @see {@link AbstractControl.status}
  15293. *
  15294. */
  15295. get enabled() {
  15296. return this.status !== DISABLED;
  15297. }
  15298. /**
  15299. * A control is `dirty` if the user has changed the value
  15300. * in the UI.
  15301. *
  15302. * @returns True if the user has changed the value of this control in the UI; compare `pristine`.
  15303. * Programmatic changes to a control's value do not mark it dirty.
  15304. */
  15305. get dirty() {
  15306. return !this.pristine;
  15307. }
  15308. /**
  15309. * True if the control has not been marked as touched
  15310. *
  15311. * A control is `untouched` if the user has not yet triggered
  15312. * a `blur` event on it.
  15313. */
  15314. get untouched() {
  15315. return !this.touched;
  15316. }
  15317. /**
  15318. * Reports the update strategy of the `AbstractControl` (meaning
  15319. * the event on which the control updates itself).
  15320. * Possible values: `'change'` | `'blur'` | `'submit'`
  15321. * Default value: `'change'`
  15322. */
  15323. get updateOn() {
  15324. return this._updateOn ? this._updateOn : (this.parent ? this.parent.updateOn : 'change');
  15325. }
  15326. /**
  15327. * Sets the synchronous validators that are active on this control. Calling
  15328. * this overwrites any existing sync validators.
  15329. *
  15330. * When you add or remove a validator at run time, you must call
  15331. * `updateValueAndValidity()` for the new validation to take effect.
  15332. *
  15333. */
  15334. setValidators(newValidator) {
  15335. this._rawValidators = newValidator;
  15336. this._composedValidatorFn = coerceToValidator(newValidator);
  15337. }
  15338. /**
  15339. * Sets the async validators that are active on this control. Calling this
  15340. * overwrites any existing async validators.
  15341. *
  15342. * When you add or remove a validator at run time, you must call
  15343. * `updateValueAndValidity()` for the new validation to take effect.
  15344. *
  15345. */
  15346. setAsyncValidators(newValidator) {
  15347. this._rawAsyncValidators = newValidator;
  15348. this._composedAsyncValidatorFn = coerceToAsyncValidator(newValidator);
  15349. }
  15350. /**
  15351. * Empties out the sync validator list.
  15352. *
  15353. * When you add or remove a validator at run time, you must call
  15354. * `updateValueAndValidity()` for the new validation to take effect.
  15355. *
  15356. */
  15357. clearValidators() {
  15358. this.validator = null;
  15359. }
  15360. /**
  15361. * Empties out the async validator list.
  15362. *
  15363. * When you add or remove a validator at run time, you must call
  15364. * `updateValueAndValidity()` for the new validation to take effect.
  15365. *
  15366. */
  15367. clearAsyncValidators() {
  15368. this.asyncValidator = null;
  15369. }
  15370. /**
  15371. * Marks the control as `touched`. A control is touched by focus and
  15372. * blur events that do not change the value.
  15373. *
  15374. * @see `markAsUntouched()`
  15375. * @see `markAsDirty()`
  15376. * @see `markAsPristine()`
  15377. *
  15378. * @param opts Configuration options that determine how the control propagates changes
  15379. * and emits events after marking is applied.
  15380. * * `onlySelf`: When true, mark only this control. When false or not supplied,
  15381. * marks all direct ancestors. Default is false.
  15382. */
  15383. markAsTouched(opts = {}) {
  15384. this.touched = true;
  15385. if (this._parent && !opts.onlySelf) {
  15386. this._parent.markAsTouched(opts);
  15387. }
  15388. }
  15389. /**
  15390. * Marks the control and all its descendant controls as `touched`.
  15391. * @see `markAsTouched()`
  15392. */
  15393. markAllAsTouched() {
  15394. this.markAsTouched({ onlySelf: true });
  15395. this._forEachChild((control) => control.markAllAsTouched());
  15396. }
  15397. /**
  15398. * Marks the control as `untouched`.
  15399. *
  15400. * If the control has any children, also marks all children as `untouched`
  15401. * and recalculates the `touched` status of all parent controls.
  15402. *
  15403. * @see `markAsTouched()`
  15404. * @see `markAsDirty()`
  15405. * @see `markAsPristine()`
  15406. *
  15407. * @param opts Configuration options that determine how the control propagates changes
  15408. * and emits events after the marking is applied.
  15409. * * `onlySelf`: When true, mark only this control. When false or not supplied,
  15410. * marks all direct ancestors. Default is false.
  15411. */
  15412. markAsUntouched(opts = {}) {
  15413. this.touched = false;
  15414. this._pendingTouched = false;
  15415. this._forEachChild((control) => {
  15416. control.markAsUntouched({ onlySelf: true });
  15417. });
  15418. if (this._parent && !opts.onlySelf) {
  15419. this._parent._updateTouched(opts);
  15420. }
  15421. }
  15422. /**
  15423. * Marks the control as `dirty`. A control becomes dirty when
  15424. * the control's value is changed through the UI; compare `markAsTouched`.
  15425. *
  15426. * @see `markAsTouched()`
  15427. * @see `markAsUntouched()`
  15428. * @see `markAsPristine()`
  15429. *
  15430. * @param opts Configuration options that determine how the control propagates changes
  15431. * and emits events after marking is applied.
  15432. * * `onlySelf`: When true, mark only this control. When false or not supplied,
  15433. * marks all direct ancestors. Default is false.
  15434. */
  15435. markAsDirty(opts = {}) {
  15436. this.pristine = false;
  15437. if (this._parent && !opts.onlySelf) {
  15438. this._parent.markAsDirty(opts);
  15439. }
  15440. }
  15441. /**
  15442. * Marks the control as `pristine`.
  15443. *
  15444. * If the control has any children, marks all children as `pristine`,
  15445. * and recalculates the `pristine` status of all parent
  15446. * controls.
  15447. *
  15448. * @see `markAsTouched()`
  15449. * @see `markAsUntouched()`
  15450. * @see `markAsDirty()`
  15451. *
  15452. * @param opts Configuration options that determine how the control emits events after
  15453. * marking is applied.
  15454. * * `onlySelf`: When true, mark only this control. When false or not supplied,
  15455. * marks all direct ancestors. Default is false.
  15456. */
  15457. markAsPristine(opts = {}) {
  15458. this.pristine = true;
  15459. this._pendingDirty = false;
  15460. this._forEachChild((control) => {
  15461. control.markAsPristine({ onlySelf: true });
  15462. });
  15463. if (this._parent && !opts.onlySelf) {
  15464. this._parent._updatePristine(opts);
  15465. }
  15466. }
  15467. /**
  15468. * Marks the control as `pending`.
  15469. *
  15470. * A control is pending while the control performs async validation.
  15471. *
  15472. * @see {@link AbstractControl.status}
  15473. *
  15474. * @param opts Configuration options that determine how the control propagates changes and
  15475. * emits events after marking is applied.
  15476. * * `onlySelf`: When true, mark only this control. When false or not supplied,
  15477. * marks all direct ancestors. Default is false.
  15478. * * `emitEvent`: When true or not supplied (the default), the `statusChanges`
  15479. * observable emits an event with the latest status the control is marked pending.
  15480. * When false, no events are emitted.
  15481. *
  15482. */
  15483. markAsPending(opts = {}) {
  15484. this.status = PENDING;
  15485. if (opts.emitEvent !== false) {
  15486. this.statusChanges.emit(this.status);
  15487. }
  15488. if (this._parent && !opts.onlySelf) {
  15489. this._parent.markAsPending(opts);
  15490. }
  15491. }
  15492. /**
  15493. * Disables the control. This means the control is exempt from validation checks and
  15494. * excluded from the aggregate value of any parent. Its status is `DISABLED`.
  15495. *
  15496. * If the control has children, all children are also disabled.
  15497. *
  15498. * @see {@link AbstractControl.status}
  15499. *
  15500. * @param opts Configuration options that determine how the control propagates
  15501. * changes and emits events after the control is disabled.
  15502. * * `onlySelf`: When true, mark only this control. When false or not supplied,
  15503. * marks all direct ancestors. Default is false.
  15504. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  15505. * `valueChanges`
  15506. * observables emit events with the latest status and value when the control is disabled.
  15507. * When false, no events are emitted.
  15508. */
  15509. disable(opts = {}) {
  15510. // If parent has been marked artificially dirty we don't want to re-calculate the
  15511. // parent's dirtiness based on the children.
  15512. const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
  15513. this.status = DISABLED;
  15514. this.errors = null;
  15515. this._forEachChild((control) => {
  15516. control.disable(Object.assign(Object.assign({}, opts), { onlySelf: true }));
  15517. });
  15518. this._updateValue();
  15519. if (opts.emitEvent !== false) {
  15520. this.valueChanges.emit(this.value);
  15521. this.statusChanges.emit(this.status);
  15522. }
  15523. this._updateAncestors(Object.assign(Object.assign({}, opts), { skipPristineCheck }));
  15524. this._onDisabledChange.forEach((changeFn) => changeFn(true));
  15525. }
  15526. /**
  15527. * Enables the control. This means the control is included in validation checks and
  15528. * the aggregate value of its parent. Its status recalculates based on its value and
  15529. * its validators.
  15530. *
  15531. * By default, if the control has children, all children are enabled.
  15532. *
  15533. * @see {@link AbstractControl.status}
  15534. *
  15535. * @param opts Configure options that control how the control propagates changes and
  15536. * emits events when marked as untouched
  15537. * * `onlySelf`: When true, mark only this control. When false or not supplied,
  15538. * marks all direct ancestors. Default is false.
  15539. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  15540. * `valueChanges`
  15541. * observables emit events with the latest status and value when the control is enabled.
  15542. * When false, no events are emitted.
  15543. */
  15544. enable(opts = {}) {
  15545. // If parent has been marked artificially dirty we don't want to re-calculate the
  15546. // parent's dirtiness based on the children.
  15547. const skipPristineCheck = this._parentMarkedDirty(opts.onlySelf);
  15548. this.status = VALID;
  15549. this._forEachChild((control) => {
  15550. control.enable(Object.assign(Object.assign({}, opts), { onlySelf: true }));
  15551. });
  15552. this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });
  15553. this._updateAncestors(Object.assign(Object.assign({}, opts), { skipPristineCheck }));
  15554. this._onDisabledChange.forEach((changeFn) => changeFn(false));
  15555. }
  15556. _updateAncestors(opts) {
  15557. if (this._parent && !opts.onlySelf) {
  15558. this._parent.updateValueAndValidity(opts);
  15559. if (!opts.skipPristineCheck) {
  15560. this._parent._updatePristine();
  15561. }
  15562. this._parent._updateTouched();
  15563. }
  15564. }
  15565. /**
  15566. * @param parent Sets the parent of the control
  15567. */
  15568. setParent(parent) {
  15569. this._parent = parent;
  15570. }
  15571. /**
  15572. * Recalculates the value and validation status of the control.
  15573. *
  15574. * By default, it also updates the value and validity of its ancestors.
  15575. *
  15576. * @param opts Configuration options determine how the control propagates changes and emits events
  15577. * after updates and validity checks are applied.
  15578. * * `onlySelf`: When true, only update this control. When false or not supplied,
  15579. * update all direct ancestors. Default is false.
  15580. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  15581. * `valueChanges`
  15582. * observables emit events with the latest status and value when the control is updated.
  15583. * When false, no events are emitted.
  15584. */
  15585. updateValueAndValidity(opts = {}) {
  15586. this._setInitialStatus();
  15587. this._updateValue();
  15588. if (this.enabled) {
  15589. this._cancelExistingSubscription();
  15590. this.errors = this._runValidator();
  15591. this.status = this._calculateStatus();
  15592. if (this.status === VALID || this.status === PENDING) {
  15593. this._runAsyncValidator(opts.emitEvent);
  15594. }
  15595. }
  15596. if (opts.emitEvent !== false) {
  15597. this.valueChanges.emit(this.value);
  15598. this.statusChanges.emit(this.status);
  15599. }
  15600. if (this._parent && !opts.onlySelf) {
  15601. this._parent.updateValueAndValidity(opts);
  15602. }
  15603. }
  15604. /** @internal */
  15605. _updateTreeValidity(opts = { emitEvent: true }) {
  15606. this._forEachChild((ctrl) => ctrl._updateTreeValidity(opts));
  15607. this.updateValueAndValidity({ onlySelf: true, emitEvent: opts.emitEvent });
  15608. }
  15609. _setInitialStatus() {
  15610. this.status = this._allControlsDisabled() ? DISABLED : VALID;
  15611. }
  15612. _runValidator() {
  15613. return this.validator ? this.validator(this) : null;
  15614. }
  15615. _runAsyncValidator(emitEvent) {
  15616. if (this.asyncValidator) {
  15617. this.status = PENDING;
  15618. this._hasOwnPendingAsyncValidator = true;
  15619. const obs = toObservable(this.asyncValidator(this));
  15620. this._asyncValidationSubscription = obs.subscribe((errors) => {
  15621. this._hasOwnPendingAsyncValidator = false;
  15622. // This will trigger the recalculation of the validation status, which depends on
  15623. // the state of the asynchronous validation (whether it is in progress or not). So, it is
  15624. // necessary that we have updated the `_hasOwnPendingAsyncValidator` boolean flag first.
  15625. this.setErrors(errors, { emitEvent });
  15626. });
  15627. }
  15628. }
  15629. _cancelExistingSubscription() {
  15630. if (this._asyncValidationSubscription) {
  15631. this._asyncValidationSubscription.unsubscribe();
  15632. this._hasOwnPendingAsyncValidator = false;
  15633. }
  15634. }
  15635. /**
  15636. * Sets errors on a form control when running validations manually, rather than automatically.
  15637. *
  15638. * Calling `setErrors` also updates the validity of the parent control.
  15639. *
  15640. * @usageNotes
  15641. *
  15642. * ### Manually set the errors for a control
  15643. *
  15644. * ```
  15645. * const login = new FormControl('someLogin');
  15646. * login.setErrors({
  15647. * notUnique: true
  15648. * });
  15649. *
  15650. * expect(login.valid).toEqual(false);
  15651. * expect(login.errors).toEqual({ notUnique: true });
  15652. *
  15653. * login.setValue('someOtherLogin');
  15654. *
  15655. * expect(login.valid).toEqual(true);
  15656. * ```
  15657. */
  15658. setErrors(errors, opts = {}) {
  15659. this.errors = errors;
  15660. this._updateControlsErrors(opts.emitEvent !== false);
  15661. }
  15662. /**
  15663. * Retrieves a child control given the control's name or path.
  15664. *
  15665. * @param path A dot-delimited string or array of string/number values that define the path to the
  15666. * control.
  15667. *
  15668. * @usageNotes
  15669. * ### Retrieve a nested control
  15670. *
  15671. * For example, to get a `name` control nested within a `person` sub-group:
  15672. *
  15673. * * `this.form.get('person.name');`
  15674. *
  15675. * -OR-
  15676. *
  15677. * * `this.form.get(['person', 'name']);`
  15678. */
  15679. get(path) {
  15680. return _find(this, path, '.');
  15681. }
  15682. /**
  15683. * @description
  15684. * Reports error data for the control with the given path.
  15685. *
  15686. * @param errorCode The code of the error to check
  15687. * @param path A list of control names that designates how to move from the current control
  15688. * to the control that should be queried for errors.
  15689. *
  15690. * @usageNotes
  15691. * For example, for the following `FormGroup`:
  15692. *
  15693. * ```
  15694. * form = new FormGroup({
  15695. * address: new FormGroup({ street: new FormControl() })
  15696. * });
  15697. * ```
  15698. *
  15699. * The path to the 'street' control from the root form would be 'address' -> 'street'.
  15700. *
  15701. * It can be provided to this method in one of two formats:
  15702. *
  15703. * 1. An array of string control names, e.g. `['address', 'street']`
  15704. * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
  15705. *
  15706. * @returns error data for that particular error. If the control or error is not present,
  15707. * null is returned.
  15708. */
  15709. getError(errorCode, path) {
  15710. const control = path ? this.get(path) : this;
  15711. return control && control.errors ? control.errors[errorCode] : null;
  15712. }
  15713. /**
  15714. * @description
  15715. * Reports whether the control with the given path has the error specified.
  15716. *
  15717. * @param errorCode The code of the error to check
  15718. * @param path A list of control names that designates how to move from the current control
  15719. * to the control that should be queried for errors.
  15720. *
  15721. * @usageNotes
  15722. * For example, for the following `FormGroup`:
  15723. *
  15724. * ```
  15725. * form = new FormGroup({
  15726. * address: new FormGroup({ street: new FormControl() })
  15727. * });
  15728. * ```
  15729. *
  15730. * The path to the 'street' control from the root form would be 'address' -> 'street'.
  15731. *
  15732. * It can be provided to this method in one of two formats:
  15733. *
  15734. * 1. An array of string control names, e.g. `['address', 'street']`
  15735. * 1. A period-delimited list of control names in one string, e.g. `'address.street'`
  15736. *
  15737. * If no path is given, this method checks for the error on the current control.
  15738. *
  15739. * @returns whether the given error is present in the control at the given path.
  15740. *
  15741. * If the control is not present, false is returned.
  15742. */
  15743. hasError(errorCode, path) {
  15744. return !!this.getError(errorCode, path);
  15745. }
  15746. /**
  15747. * Retrieves the top-level ancestor of this control.
  15748. */
  15749. get root() {
  15750. let x = this;
  15751. while (x._parent) {
  15752. x = x._parent;
  15753. }
  15754. return x;
  15755. }
  15756. /** @internal */
  15757. _updateControlsErrors(emitEvent) {
  15758. this.status = this._calculateStatus();
  15759. if (emitEvent) {
  15760. this.statusChanges.emit(this.status);
  15761. }
  15762. if (this._parent) {
  15763. this._parent._updateControlsErrors(emitEvent);
  15764. }
  15765. }
  15766. /** @internal */
  15767. _initObservables() {
  15768. this.valueChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  15769. this.statusChanges = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  15770. }
  15771. _calculateStatus() {
  15772. if (this._allControlsDisabled())
  15773. return DISABLED;
  15774. if (this.errors)
  15775. return INVALID;
  15776. if (this._hasOwnPendingAsyncValidator || this._anyControlsHaveStatus(PENDING))
  15777. return PENDING;
  15778. if (this._anyControlsHaveStatus(INVALID))
  15779. return INVALID;
  15780. return VALID;
  15781. }
  15782. /** @internal */
  15783. _anyControlsHaveStatus(status) {
  15784. return this._anyControls((control) => control.status === status);
  15785. }
  15786. /** @internal */
  15787. _anyControlsDirty() {
  15788. return this._anyControls((control) => control.dirty);
  15789. }
  15790. /** @internal */
  15791. _anyControlsTouched() {
  15792. return this._anyControls((control) => control.touched);
  15793. }
  15794. /** @internal */
  15795. _updatePristine(opts = {}) {
  15796. this.pristine = !this._anyControlsDirty();
  15797. if (this._parent && !opts.onlySelf) {
  15798. this._parent._updatePristine(opts);
  15799. }
  15800. }
  15801. /** @internal */
  15802. _updateTouched(opts = {}) {
  15803. this.touched = this._anyControlsTouched();
  15804. if (this._parent && !opts.onlySelf) {
  15805. this._parent._updateTouched(opts);
  15806. }
  15807. }
  15808. /** @internal */
  15809. _isBoxedValue(formState) {
  15810. return typeof formState === 'object' && formState !== null &&
  15811. Object.keys(formState).length === 2 && 'value' in formState && 'disabled' in formState;
  15812. }
  15813. /** @internal */
  15814. _registerOnCollectionChange(fn) {
  15815. this._onCollectionChange = fn;
  15816. }
  15817. /** @internal */
  15818. _setUpdateStrategy(opts) {
  15819. if (isOptionsObj(opts) && opts.updateOn != null) {
  15820. this._updateOn = opts.updateOn;
  15821. }
  15822. }
  15823. /**
  15824. * Check to see if parent has been marked artificially dirty.
  15825. *
  15826. * @internal
  15827. */
  15828. _parentMarkedDirty(onlySelf) {
  15829. const parentDirty = this._parent && this._parent.dirty;
  15830. return !onlySelf && !!parentDirty && !this._parent._anyControlsDirty();
  15831. }
  15832. }
  15833. /**
  15834. * Tracks the value and validation status of an individual form control.
  15835. *
  15836. * This is one of the three fundamental building blocks of Angular forms, along with
  15837. * `FormGroup` and `FormArray`. It extends the `AbstractControl` class that
  15838. * implements most of the base functionality for accessing the value, validation status,
  15839. * user interactions and events. See [usage examples below](#usage-notes).
  15840. *
  15841. * @see `AbstractControl`
  15842. * @see [Reactive Forms Guide](guide/reactive-forms)
  15843. * @see [Usage Notes](#usage-notes)
  15844. *
  15845. * @usageNotes
  15846. *
  15847. * ### Initializing Form Controls
  15848. *
  15849. * Instantiate a `FormControl`, with an initial value.
  15850. *
  15851. * ```ts
  15852. * const control = new FormControl('some value');
  15853. * console.log(control.value); // 'some value'
  15854. *```
  15855. *
  15856. * The following example initializes the control with a form state object. The `value`
  15857. * and `disabled` keys are required in this case.
  15858. *
  15859. * ```ts
  15860. * const control = new FormControl({ value: 'n/a', disabled: true });
  15861. * console.log(control.value); // 'n/a'
  15862. * console.log(control.status); // 'DISABLED'
  15863. * ```
  15864. *
  15865. * The following example initializes the control with a sync validator.
  15866. *
  15867. * ```ts
  15868. * const control = new FormControl('', Validators.required);
  15869. * console.log(control.value); // ''
  15870. * console.log(control.status); // 'INVALID'
  15871. * ```
  15872. *
  15873. * The following example initializes the control using an options object.
  15874. *
  15875. * ```ts
  15876. * const control = new FormControl('', {
  15877. * validators: Validators.required,
  15878. * asyncValidators: myAsyncValidator
  15879. * });
  15880. * ```
  15881. *
  15882. * ### Configure the control to update on a blur event
  15883. *
  15884. * Set the `updateOn` option to `'blur'` to update on the blur `event`.
  15885. *
  15886. * ```ts
  15887. * const control = new FormControl('', { updateOn: 'blur' });
  15888. * ```
  15889. *
  15890. * ### Configure the control to update on a submit event
  15891. *
  15892. * Set the `updateOn` option to `'submit'` to update on a submit `event`.
  15893. *
  15894. * ```ts
  15895. * const control = new FormControl('', { updateOn: 'submit' });
  15896. * ```
  15897. *
  15898. * ### Reset the control back to an initial value
  15899. *
  15900. * You reset to a specific form state by passing through a standalone
  15901. * value or a form state object that contains both a value and a disabled state
  15902. * (these are the only two properties that cannot be calculated).
  15903. *
  15904. * ```ts
  15905. * const control = new FormControl('Nancy');
  15906. *
  15907. * console.log(control.value); // 'Nancy'
  15908. *
  15909. * control.reset('Drew');
  15910. *
  15911. * console.log(control.value); // 'Drew'
  15912. * ```
  15913. *
  15914. * ### Reset the control back to an initial value and disabled
  15915. *
  15916. * ```
  15917. * const control = new FormControl('Nancy');
  15918. *
  15919. * console.log(control.value); // 'Nancy'
  15920. * console.log(control.status); // 'VALID'
  15921. *
  15922. * control.reset({ value: 'Drew', disabled: true });
  15923. *
  15924. * console.log(control.value); // 'Drew'
  15925. * console.log(control.status); // 'DISABLED'
  15926. * ```
  15927. *
  15928. * @publicApi
  15929. */
  15930. class FormControl extends AbstractControl {
  15931. /**
  15932. * Creates a new `FormControl` instance.
  15933. *
  15934. * @param formState Initializes the control with an initial value,
  15935. * or an object that defines the initial value and disabled state.
  15936. *
  15937. * @param validatorOrOpts A synchronous validator function, or an array of
  15938. * such functions, or an `AbstractControlOptions` object that contains validation functions
  15939. * and a validation trigger.
  15940. *
  15941. * @param asyncValidator A single async validator or array of async validator functions
  15942. *
  15943. */
  15944. constructor(formState = null, validatorOrOpts, asyncValidator) {
  15945. super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
  15946. /** @internal */
  15947. this._onChange = [];
  15948. this._applyFormState(formState);
  15949. this._setUpdateStrategy(validatorOrOpts);
  15950. this._initObservables();
  15951. this.updateValueAndValidity({
  15952. onlySelf: true,
  15953. // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
  15954. // `VALID` or `INVALID`.
  15955. // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`
  15956. // to `true` to allow that during the control creation process.
  15957. emitEvent: !!asyncValidator
  15958. });
  15959. }
  15960. /**
  15961. * Sets a new value for the form control.
  15962. *
  15963. * @param value The new value for the control.
  15964. * @param options Configuration options that determine how the control propagates changes
  15965. * and emits events when the value changes.
  15966. * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
  15967. * updateValueAndValidity} method.
  15968. *
  15969. * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
  15970. * false.
  15971. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  15972. * `valueChanges`
  15973. * observables emit events with the latest status and value when the control value is updated.
  15974. * When false, no events are emitted.
  15975. * * `emitModelToViewChange`: When true or not supplied (the default), each change triggers an
  15976. * `onChange` event to
  15977. * update the view.
  15978. * * `emitViewToModelChange`: When true or not supplied (the default), each change triggers an
  15979. * `ngModelChange`
  15980. * event to update the model.
  15981. *
  15982. */
  15983. setValue(value, options = {}) {
  15984. this.value = this._pendingValue = value;
  15985. if (this._onChange.length && options.emitModelToViewChange !== false) {
  15986. this._onChange.forEach((changeFn) => changeFn(this.value, options.emitViewToModelChange !== false));
  15987. }
  15988. this.updateValueAndValidity(options);
  15989. }
  15990. /**
  15991. * Patches the value of a control.
  15992. *
  15993. * This function is functionally the same as {@link FormControl#setValue setValue} at this level.
  15994. * It exists for symmetry with {@link FormGroup#patchValue patchValue} on `FormGroups` and
  15995. * `FormArrays`, where it does behave differently.
  15996. *
  15997. * @see `setValue` for options
  15998. */
  15999. patchValue(value, options = {}) {
  16000. this.setValue(value, options);
  16001. }
  16002. /**
  16003. * Resets the form control, marking it `pristine` and `untouched`, and setting
  16004. * the value to null.
  16005. *
  16006. * @param formState Resets the control with an initial value,
  16007. * or an object that defines the initial value and disabled state.
  16008. *
  16009. * @param options Configuration options that determine how the control propagates changes
  16010. * and emits events after the value changes.
  16011. *
  16012. * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
  16013. * false.
  16014. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  16015. * `valueChanges`
  16016. * observables emit events with the latest status and value when the control is reset.
  16017. * When false, no events are emitted.
  16018. *
  16019. */
  16020. reset(formState = null, options = {}) {
  16021. this._applyFormState(formState);
  16022. this.markAsPristine(options);
  16023. this.markAsUntouched(options);
  16024. this.setValue(this.value, options);
  16025. this._pendingChange = false;
  16026. }
  16027. /**
  16028. * @internal
  16029. */
  16030. _updateValue() { }
  16031. /**
  16032. * @internal
  16033. */
  16034. _anyControls(condition) {
  16035. return false;
  16036. }
  16037. /**
  16038. * @internal
  16039. */
  16040. _allControlsDisabled() {
  16041. return this.disabled;
  16042. }
  16043. /**
  16044. * Register a listener for change events.
  16045. *
  16046. * @param fn The method that is called when the value changes
  16047. */
  16048. registerOnChange(fn) {
  16049. this._onChange.push(fn);
  16050. }
  16051. /**
  16052. * Internal function to unregister a change events listener.
  16053. * @internal
  16054. */
  16055. _unregisterOnChange(fn) {
  16056. removeListItem(this._onChange, fn);
  16057. }
  16058. /**
  16059. * Register a listener for disabled events.
  16060. *
  16061. * @param fn The method that is called when the disabled status changes.
  16062. */
  16063. registerOnDisabledChange(fn) {
  16064. this._onDisabledChange.push(fn);
  16065. }
  16066. /**
  16067. * Internal function to unregister a disabled event listener.
  16068. * @internal
  16069. */
  16070. _unregisterOnDisabledChange(fn) {
  16071. removeListItem(this._onDisabledChange, fn);
  16072. }
  16073. /**
  16074. * @internal
  16075. */
  16076. _forEachChild(cb) { }
  16077. /** @internal */
  16078. _syncPendingControls() {
  16079. if (this.updateOn === 'submit') {
  16080. if (this._pendingDirty)
  16081. this.markAsDirty();
  16082. if (this._pendingTouched)
  16083. this.markAsTouched();
  16084. if (this._pendingChange) {
  16085. this.setValue(this._pendingValue, { onlySelf: true, emitModelToViewChange: false });
  16086. return true;
  16087. }
  16088. }
  16089. return false;
  16090. }
  16091. _applyFormState(formState) {
  16092. if (this._isBoxedValue(formState)) {
  16093. this.value = this._pendingValue = formState.value;
  16094. formState.disabled ? this.disable({ onlySelf: true, emitEvent: false }) :
  16095. this.enable({ onlySelf: true, emitEvent: false });
  16096. }
  16097. else {
  16098. this.value = this._pendingValue = formState;
  16099. }
  16100. }
  16101. }
  16102. /**
  16103. * Tracks the value and validity state of a group of `FormControl` instances.
  16104. *
  16105. * A `FormGroup` aggregates the values of each child `FormControl` into one object,
  16106. * with each control name as the key. It calculates its status by reducing the status values
  16107. * of its children. For example, if one of the controls in a group is invalid, the entire
  16108. * group becomes invalid.
  16109. *
  16110. * `FormGroup` is one of the three fundamental building blocks used to define forms in Angular,
  16111. * along with `FormControl` and `FormArray`.
  16112. *
  16113. * When instantiating a `FormGroup`, pass in a collection of child controls as the first
  16114. * argument. The key for each child registers the name for the control.
  16115. *
  16116. * @usageNotes
  16117. *
  16118. * ### Create a form group with 2 controls
  16119. *
  16120. * ```
  16121. * const form = new FormGroup({
  16122. * first: new FormControl('Nancy', Validators.minLength(2)),
  16123. * last: new FormControl('Drew'),
  16124. * });
  16125. *
  16126. * console.log(form.value); // {first: 'Nancy', last; 'Drew'}
  16127. * console.log(form.status); // 'VALID'
  16128. * ```
  16129. *
  16130. * ### Create a form group with a group-level validator
  16131. *
  16132. * You include group-level validators as the second arg, or group-level async
  16133. * validators as the third arg. These come in handy when you want to perform validation
  16134. * that considers the value of more than one child control.
  16135. *
  16136. * ```
  16137. * const form = new FormGroup({
  16138. * password: new FormControl('', Validators.minLength(2)),
  16139. * passwordConfirm: new FormControl('', Validators.minLength(2)),
  16140. * }, passwordMatchValidator);
  16141. *
  16142. *
  16143. * function passwordMatchValidator(g: FormGroup) {
  16144. * return g.get('password').value === g.get('passwordConfirm').value
  16145. * ? null : {'mismatch': true};
  16146. * }
  16147. * ```
  16148. *
  16149. * Like `FormControl` instances, you choose to pass in
  16150. * validators and async validators as part of an options object.
  16151. *
  16152. * ```
  16153. * const form = new FormGroup({
  16154. * password: new FormControl('')
  16155. * passwordConfirm: new FormControl('')
  16156. * }, { validators: passwordMatchValidator, asyncValidators: otherValidator });
  16157. * ```
  16158. *
  16159. * ### Set the updateOn property for all controls in a form group
  16160. *
  16161. * The options object is used to set a default value for each child
  16162. * control's `updateOn` property. If you set `updateOn` to `'blur'` at the
  16163. * group level, all child controls default to 'blur', unless the child
  16164. * has explicitly specified a different `updateOn` value.
  16165. *
  16166. * ```ts
  16167. * const c = new FormGroup({
  16168. * one: new FormControl()
  16169. * }, { updateOn: 'blur' });
  16170. * ```
  16171. *
  16172. * @publicApi
  16173. */
  16174. class FormGroup extends AbstractControl {
  16175. /**
  16176. * Creates a new `FormGroup` instance.
  16177. *
  16178. * @param controls A collection of child controls. The key for each child is the name
  16179. * under which it is registered.
  16180. *
  16181. * @param validatorOrOpts A synchronous validator function, or an array of
  16182. * such functions, or an `AbstractControlOptions` object that contains validation functions
  16183. * and a validation trigger.
  16184. *
  16185. * @param asyncValidator A single async validator or array of async validator functions
  16186. *
  16187. */
  16188. constructor(controls, validatorOrOpts, asyncValidator) {
  16189. super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
  16190. this.controls = controls;
  16191. this._initObservables();
  16192. this._setUpdateStrategy(validatorOrOpts);
  16193. this._setUpControls();
  16194. this.updateValueAndValidity({
  16195. onlySelf: true,
  16196. // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
  16197. // `VALID` or `INVALID`. The status should be broadcasted via the `statusChanges` observable,
  16198. // so we set `emitEvent` to `true` to allow that during the control creation process.
  16199. emitEvent: !!asyncValidator
  16200. });
  16201. }
  16202. /**
  16203. * Registers a control with the group's list of controls.
  16204. *
  16205. * This method does not update the value or validity of the control.
  16206. * Use {@link FormGroup#addControl addControl} instead.
  16207. *
  16208. * @param name The control name to register in the collection
  16209. * @param control Provides the control for the given name
  16210. */
  16211. registerControl(name, control) {
  16212. if (this.controls[name])
  16213. return this.controls[name];
  16214. this.controls[name] = control;
  16215. control.setParent(this);
  16216. control._registerOnCollectionChange(this._onCollectionChange);
  16217. return control;
  16218. }
  16219. /**
  16220. * Add a control to this group.
  16221. *
  16222. * This method also updates the value and validity of the control.
  16223. *
  16224. * @param name The control name to add to the collection
  16225. * @param control Provides the control for the given name
  16226. */
  16227. addControl(name, control) {
  16228. this.registerControl(name, control);
  16229. this.updateValueAndValidity();
  16230. this._onCollectionChange();
  16231. }
  16232. /**
  16233. * Remove a control from this group.
  16234. *
  16235. * @param name The control name to remove from the collection
  16236. */
  16237. removeControl(name) {
  16238. if (this.controls[name])
  16239. this.controls[name]._registerOnCollectionChange(() => { });
  16240. delete (this.controls[name]);
  16241. this.updateValueAndValidity();
  16242. this._onCollectionChange();
  16243. }
  16244. /**
  16245. * Replace an existing control.
  16246. *
  16247. * @param name The control name to replace in the collection
  16248. * @param control Provides the control for the given name
  16249. */
  16250. setControl(name, control) {
  16251. if (this.controls[name])
  16252. this.controls[name]._registerOnCollectionChange(() => { });
  16253. delete (this.controls[name]);
  16254. if (control)
  16255. this.registerControl(name, control);
  16256. this.updateValueAndValidity();
  16257. this._onCollectionChange();
  16258. }
  16259. /**
  16260. * Check whether there is an enabled control with the given name in the group.
  16261. *
  16262. * Reports false for disabled controls. If you'd like to check for existence in the group
  16263. * only, use {@link AbstractControl#get get} instead.
  16264. *
  16265. * @param controlName The control name to check for existence in the collection
  16266. *
  16267. * @returns false for disabled controls, true otherwise.
  16268. */
  16269. contains(controlName) {
  16270. return this.controls.hasOwnProperty(controlName) && this.controls[controlName].enabled;
  16271. }
  16272. /**
  16273. * Sets the value of the `FormGroup`. It accepts an object that matches
  16274. * the structure of the group, with control names as keys.
  16275. *
  16276. * @usageNotes
  16277. * ### Set the complete value for the form group
  16278. *
  16279. * ```
  16280. * const form = new FormGroup({
  16281. * first: new FormControl(),
  16282. * last: new FormControl()
  16283. * });
  16284. *
  16285. * console.log(form.value); // {first: null, last: null}
  16286. *
  16287. * form.setValue({first: 'Nancy', last: 'Drew'});
  16288. * console.log(form.value); // {first: 'Nancy', last: 'Drew'}
  16289. * ```
  16290. *
  16291. * @throws When strict checks fail, such as setting the value of a control
  16292. * that doesn't exist or if you exclude a value of a control that does exist.
  16293. *
  16294. * @param value The new value for the control that matches the structure of the group.
  16295. * @param options Configuration options that determine how the control propagates changes
  16296. * and emits events after the value changes.
  16297. * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
  16298. * updateValueAndValidity} method.
  16299. *
  16300. * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
  16301. * false.
  16302. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  16303. * `valueChanges`
  16304. * observables emit events with the latest status and value when the control value is updated.
  16305. * When false, no events are emitted.
  16306. */
  16307. setValue(value, options = {}) {
  16308. this._checkAllValuesPresent(value);
  16309. Object.keys(value).forEach(name => {
  16310. this._throwIfControlMissing(name);
  16311. this.controls[name].setValue(value[name], { onlySelf: true, emitEvent: options.emitEvent });
  16312. });
  16313. this.updateValueAndValidity(options);
  16314. }
  16315. /**
  16316. * Patches the value of the `FormGroup`. It accepts an object with control
  16317. * names as keys, and does its best to match the values to the correct controls
  16318. * in the group.
  16319. *
  16320. * It accepts both super-sets and sub-sets of the group without throwing an error.
  16321. *
  16322. * @usageNotes
  16323. * ### Patch the value for a form group
  16324. *
  16325. * ```
  16326. * const form = new FormGroup({
  16327. * first: new FormControl(),
  16328. * last: new FormControl()
  16329. * });
  16330. * console.log(form.value); // {first: null, last: null}
  16331. *
  16332. * form.patchValue({first: 'Nancy'});
  16333. * console.log(form.value); // {first: 'Nancy', last: null}
  16334. * ```
  16335. *
  16336. * @param value The object that matches the structure of the group.
  16337. * @param options Configuration options that determine how the control propagates changes and
  16338. * emits events after the value is patched.
  16339. * * `onlySelf`: When true, each change only affects this control and not its parent. Default is
  16340. * true.
  16341. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  16342. * `valueChanges`
  16343. * observables emit events with the latest status and value when the control value is updated.
  16344. * When false, no events are emitted.
  16345. * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
  16346. * updateValueAndValidity} method.
  16347. */
  16348. patchValue(value, options = {}) {
  16349. Object.keys(value).forEach(name => {
  16350. if (this.controls[name]) {
  16351. this.controls[name].patchValue(value[name], { onlySelf: true, emitEvent: options.emitEvent });
  16352. }
  16353. });
  16354. this.updateValueAndValidity(options);
  16355. }
  16356. /**
  16357. * Resets the `FormGroup`, marks all descendants `pristine` and `untouched` and sets
  16358. * the value of all descendants to null.
  16359. *
  16360. * You reset to a specific form state by passing in a map of states
  16361. * that matches the structure of your form, with control names as keys. The state
  16362. * is a standalone value or a form state object with both a value and a disabled
  16363. * status.
  16364. *
  16365. * @param value Resets the control with an initial value,
  16366. * or an object that defines the initial value and disabled state.
  16367. *
  16368. * @param options Configuration options that determine how the control propagates changes
  16369. * and emits events when the group is reset.
  16370. * * `onlySelf`: When true, each change only affects this control, and not its parent. Default is
  16371. * false.
  16372. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  16373. * `valueChanges`
  16374. * observables emit events with the latest status and value when the control is reset.
  16375. * When false, no events are emitted.
  16376. * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
  16377. * updateValueAndValidity} method.
  16378. *
  16379. * @usageNotes
  16380. *
  16381. * ### Reset the form group values
  16382. *
  16383. * ```ts
  16384. * const form = new FormGroup({
  16385. * first: new FormControl('first name'),
  16386. * last: new FormControl('last name')
  16387. * });
  16388. *
  16389. * console.log(form.value); // {first: 'first name', last: 'last name'}
  16390. *
  16391. * form.reset({ first: 'name', last: 'last name' });
  16392. *
  16393. * console.log(form.value); // {first: 'name', last: 'last name'}
  16394. * ```
  16395. *
  16396. * ### Reset the form group values and disabled status
  16397. *
  16398. * ```
  16399. * const form = new FormGroup({
  16400. * first: new FormControl('first name'),
  16401. * last: new FormControl('last name')
  16402. * });
  16403. *
  16404. * form.reset({
  16405. * first: {value: 'name', disabled: true},
  16406. * last: 'last'
  16407. * });
  16408. *
  16409. * console.log(form.value); // {last: 'last'}
  16410. * console.log(form.get('first').status); // 'DISABLED'
  16411. * ```
  16412. */
  16413. reset(value = {}, options = {}) {
  16414. this._forEachChild((control, name) => {
  16415. control.reset(value[name], { onlySelf: true, emitEvent: options.emitEvent });
  16416. });
  16417. this._updatePristine(options);
  16418. this._updateTouched(options);
  16419. this.updateValueAndValidity(options);
  16420. }
  16421. /**
  16422. * The aggregate value of the `FormGroup`, including any disabled controls.
  16423. *
  16424. * Retrieves all values regardless of disabled status.
  16425. * The `value` property is the best way to get the value of the group, because
  16426. * it excludes disabled controls in the `FormGroup`.
  16427. */
  16428. getRawValue() {
  16429. return this._reduceChildren({}, (acc, control, name) => {
  16430. acc[name] = control instanceof FormControl ? control.value : control.getRawValue();
  16431. return acc;
  16432. });
  16433. }
  16434. /** @internal */
  16435. _syncPendingControls() {
  16436. let subtreeUpdated = this._reduceChildren(false, (updated, child) => {
  16437. return child._syncPendingControls() ? true : updated;
  16438. });
  16439. if (subtreeUpdated)
  16440. this.updateValueAndValidity({ onlySelf: true });
  16441. return subtreeUpdated;
  16442. }
  16443. /** @internal */
  16444. _throwIfControlMissing(name) {
  16445. if (!Object.keys(this.controls).length) {
  16446. throw new Error(`
  16447. There are no form controls registered with this group yet. If you're using ngModel,
  16448. you may want to check next tick (e.g. use setTimeout).
  16449. `);
  16450. }
  16451. if (!this.controls[name]) {
  16452. throw new Error(`Cannot find form control with name: ${name}.`);
  16453. }
  16454. }
  16455. /** @internal */
  16456. _forEachChild(cb) {
  16457. Object.keys(this.controls).forEach(k => cb(this.controls[k], k));
  16458. }
  16459. /** @internal */
  16460. _setUpControls() {
  16461. this._forEachChild((control) => {
  16462. control.setParent(this);
  16463. control._registerOnCollectionChange(this._onCollectionChange);
  16464. });
  16465. }
  16466. /** @internal */
  16467. _updateValue() {
  16468. this.value = this._reduceValue();
  16469. }
  16470. /** @internal */
  16471. _anyControls(condition) {
  16472. for (const controlName of Object.keys(this.controls)) {
  16473. const control = this.controls[controlName];
  16474. if (this.contains(controlName) && condition(control)) {
  16475. return true;
  16476. }
  16477. }
  16478. return false;
  16479. }
  16480. /** @internal */
  16481. _reduceValue() {
  16482. return this._reduceChildren({}, (acc, control, name) => {
  16483. if (control.enabled || this.disabled) {
  16484. acc[name] = control.value;
  16485. }
  16486. return acc;
  16487. });
  16488. }
  16489. /** @internal */
  16490. _reduceChildren(initValue, fn) {
  16491. let res = initValue;
  16492. this._forEachChild((control, name) => {
  16493. res = fn(res, control, name);
  16494. });
  16495. return res;
  16496. }
  16497. /** @internal */
  16498. _allControlsDisabled() {
  16499. for (const controlName of Object.keys(this.controls)) {
  16500. if (this.controls[controlName].enabled) {
  16501. return false;
  16502. }
  16503. }
  16504. return Object.keys(this.controls).length > 0 || this.disabled;
  16505. }
  16506. /** @internal */
  16507. _checkAllValuesPresent(value) {
  16508. this._forEachChild((control, name) => {
  16509. if (value[name] === undefined) {
  16510. throw new Error(`Must supply a value for form control with name: '${name}'.`);
  16511. }
  16512. });
  16513. }
  16514. }
  16515. /**
  16516. * Tracks the value and validity state of an array of `FormControl`,
  16517. * `FormGroup` or `FormArray` instances.
  16518. *
  16519. * A `FormArray` aggregates the values of each child `FormControl` into an array.
  16520. * It calculates its status by reducing the status values of its children. For example, if one of
  16521. * the controls in a `FormArray` is invalid, the entire array becomes invalid.
  16522. *
  16523. * `FormArray` is one of the three fundamental building blocks used to define forms in Angular,
  16524. * along with `FormControl` and `FormGroup`.
  16525. *
  16526. * @usageNotes
  16527. *
  16528. * ### Create an array of form controls
  16529. *
  16530. * ```
  16531. * const arr = new FormArray([
  16532. * new FormControl('Nancy', Validators.minLength(2)),
  16533. * new FormControl('Drew'),
  16534. * ]);
  16535. *
  16536. * console.log(arr.value); // ['Nancy', 'Drew']
  16537. * console.log(arr.status); // 'VALID'
  16538. * ```
  16539. *
  16540. * ### Create a form array with array-level validators
  16541. *
  16542. * You include array-level validators and async validators. These come in handy
  16543. * when you want to perform validation that considers the value of more than one child
  16544. * control.
  16545. *
  16546. * The two types of validators are passed in separately as the second and third arg
  16547. * respectively, or together as part of an options object.
  16548. *
  16549. * ```
  16550. * const arr = new FormArray([
  16551. * new FormControl('Nancy'),
  16552. * new FormControl('Drew')
  16553. * ], {validators: myValidator, asyncValidators: myAsyncValidator});
  16554. * ```
  16555. *
  16556. * ### Set the updateOn property for all controls in a form array
  16557. *
  16558. * The options object is used to set a default value for each child
  16559. * control's `updateOn` property. If you set `updateOn` to `'blur'` at the
  16560. * array level, all child controls default to 'blur', unless the child
  16561. * has explicitly specified a different `updateOn` value.
  16562. *
  16563. * ```ts
  16564. * const arr = new FormArray([
  16565. * new FormControl()
  16566. * ], {updateOn: 'blur'});
  16567. * ```
  16568. *
  16569. * ### Adding or removing controls from a form array
  16570. *
  16571. * To change the controls in the array, use the `push`, `insert`, `removeAt` or `clear` methods
  16572. * in `FormArray` itself. These methods ensure the controls are properly tracked in the
  16573. * form's hierarchy. Do not modify the array of `AbstractControl`s used to instantiate
  16574. * the `FormArray` directly, as that result in strange and unexpected behavior such
  16575. * as broken change detection.
  16576. *
  16577. * @publicApi
  16578. */
  16579. class FormArray extends AbstractControl {
  16580. /**
  16581. * Creates a new `FormArray` instance.
  16582. *
  16583. * @param controls An array of child controls. Each child control is given an index
  16584. * where it is registered.
  16585. *
  16586. * @param validatorOrOpts A synchronous validator function, or an array of
  16587. * such functions, or an `AbstractControlOptions` object that contains validation functions
  16588. * and a validation trigger.
  16589. *
  16590. * @param asyncValidator A single async validator or array of async validator functions
  16591. *
  16592. */
  16593. constructor(controls, validatorOrOpts, asyncValidator) {
  16594. super(pickValidators(validatorOrOpts), pickAsyncValidators(asyncValidator, validatorOrOpts));
  16595. this.controls = controls;
  16596. this._initObservables();
  16597. this._setUpdateStrategy(validatorOrOpts);
  16598. this._setUpControls();
  16599. this.updateValueAndValidity({
  16600. onlySelf: true,
  16601. // If `asyncValidator` is present, it will trigger control status change from `PENDING` to
  16602. // `VALID` or `INVALID`.
  16603. // The status should be broadcasted via the `statusChanges` observable, so we set `emitEvent`
  16604. // to `true` to allow that during the control creation process.
  16605. emitEvent: !!asyncValidator
  16606. });
  16607. }
  16608. /**
  16609. * Get the `AbstractControl` at the given `index` in the array.
  16610. *
  16611. * @param index Index in the array to retrieve the control
  16612. */
  16613. at(index) {
  16614. return this.controls[index];
  16615. }
  16616. /**
  16617. * Insert a new `AbstractControl` at the end of the array.
  16618. *
  16619. * @param control Form control to be inserted
  16620. */
  16621. push(control) {
  16622. this.controls.push(control);
  16623. this._registerControl(control);
  16624. this.updateValueAndValidity();
  16625. this._onCollectionChange();
  16626. }
  16627. /**
  16628. * Insert a new `AbstractControl` at the given `index` in the array.
  16629. *
  16630. * @param index Index in the array to insert the control
  16631. * @param control Form control to be inserted
  16632. */
  16633. insert(index, control) {
  16634. this.controls.splice(index, 0, control);
  16635. this._registerControl(control);
  16636. this.updateValueAndValidity();
  16637. }
  16638. /**
  16639. * Remove the control at the given `index` in the array.
  16640. *
  16641. * @param index Index in the array to remove the control
  16642. */
  16643. removeAt(index) {
  16644. if (this.controls[index])
  16645. this.controls[index]._registerOnCollectionChange(() => { });
  16646. this.controls.splice(index, 1);
  16647. this.updateValueAndValidity();
  16648. }
  16649. /**
  16650. * Replace an existing control.
  16651. *
  16652. * @param index Index in the array to replace the control
  16653. * @param control The `AbstractControl` control to replace the existing control
  16654. */
  16655. setControl(index, control) {
  16656. if (this.controls[index])
  16657. this.controls[index]._registerOnCollectionChange(() => { });
  16658. this.controls.splice(index, 1);
  16659. if (control) {
  16660. this.controls.splice(index, 0, control);
  16661. this._registerControl(control);
  16662. }
  16663. this.updateValueAndValidity();
  16664. this._onCollectionChange();
  16665. }
  16666. /**
  16667. * Length of the control array.
  16668. */
  16669. get length() {
  16670. return this.controls.length;
  16671. }
  16672. /**
  16673. * Sets the value of the `FormArray`. It accepts an array that matches
  16674. * the structure of the control.
  16675. *
  16676. * This method performs strict checks, and throws an error if you try
  16677. * to set the value of a control that doesn't exist or if you exclude the
  16678. * value of a control.
  16679. *
  16680. * @usageNotes
  16681. * ### Set the values for the controls in the form array
  16682. *
  16683. * ```
  16684. * const arr = new FormArray([
  16685. * new FormControl(),
  16686. * new FormControl()
  16687. * ]);
  16688. * console.log(arr.value); // [null, null]
  16689. *
  16690. * arr.setValue(['Nancy', 'Drew']);
  16691. * console.log(arr.value); // ['Nancy', 'Drew']
  16692. * ```
  16693. *
  16694. * @param value Array of values for the controls
  16695. * @param options Configure options that determine how the control propagates changes and
  16696. * emits events after the value changes
  16697. *
  16698. * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
  16699. * is false.
  16700. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  16701. * `valueChanges`
  16702. * observables emit events with the latest status and value when the control value is updated.
  16703. * When false, no events are emitted.
  16704. * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
  16705. * updateValueAndValidity} method.
  16706. */
  16707. setValue(value, options = {}) {
  16708. this._checkAllValuesPresent(value);
  16709. value.forEach((newValue, index) => {
  16710. this._throwIfControlMissing(index);
  16711. this.at(index).setValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });
  16712. });
  16713. this.updateValueAndValidity(options);
  16714. }
  16715. /**
  16716. * Patches the value of the `FormArray`. It accepts an array that matches the
  16717. * structure of the control, and does its best to match the values to the correct
  16718. * controls in the group.
  16719. *
  16720. * It accepts both super-sets and sub-sets of the array without throwing an error.
  16721. *
  16722. * @usageNotes
  16723. * ### Patch the values for controls in a form array
  16724. *
  16725. * ```
  16726. * const arr = new FormArray([
  16727. * new FormControl(),
  16728. * new FormControl()
  16729. * ]);
  16730. * console.log(arr.value); // [null, null]
  16731. *
  16732. * arr.patchValue(['Nancy']);
  16733. * console.log(arr.value); // ['Nancy', null]
  16734. * ```
  16735. *
  16736. * @param value Array of latest values for the controls
  16737. * @param options Configure options that determine how the control propagates changes and
  16738. * emits events after the value changes
  16739. *
  16740. * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
  16741. * is false.
  16742. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  16743. * `valueChanges`
  16744. * observables emit events with the latest status and value when the control value is updated.
  16745. * When false, no events are emitted.
  16746. * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
  16747. * updateValueAndValidity} method.
  16748. */
  16749. patchValue(value, options = {}) {
  16750. value.forEach((newValue, index) => {
  16751. if (this.at(index)) {
  16752. this.at(index).patchValue(newValue, { onlySelf: true, emitEvent: options.emitEvent });
  16753. }
  16754. });
  16755. this.updateValueAndValidity(options);
  16756. }
  16757. /**
  16758. * Resets the `FormArray` and all descendants are marked `pristine` and `untouched`, and the
  16759. * value of all descendants to null or null maps.
  16760. *
  16761. * You reset to a specific form state by passing in an array of states
  16762. * that matches the structure of the control. The state is a standalone value
  16763. * or a form state object with both a value and a disabled status.
  16764. *
  16765. * @usageNotes
  16766. * ### Reset the values in a form array
  16767. *
  16768. * ```ts
  16769. * const arr = new FormArray([
  16770. * new FormControl(),
  16771. * new FormControl()
  16772. * ]);
  16773. * arr.reset(['name', 'last name']);
  16774. *
  16775. * console.log(this.arr.value); // ['name', 'last name']
  16776. * ```
  16777. *
  16778. * ### Reset the values in a form array and the disabled status for the first control
  16779. *
  16780. * ```
  16781. * this.arr.reset([
  16782. * {value: 'name', disabled: true},
  16783. * 'last'
  16784. * ]);
  16785. *
  16786. * console.log(this.arr.value); // ['name', 'last name']
  16787. * console.log(this.arr.get(0).status); // 'DISABLED'
  16788. * ```
  16789. *
  16790. * @param value Array of values for the controls
  16791. * @param options Configure options that determine how the control propagates changes and
  16792. * emits events after the value changes
  16793. *
  16794. * * `onlySelf`: When true, each change only affects this control, and not its parent. Default
  16795. * is false.
  16796. * * `emitEvent`: When true or not supplied (the default), both the `statusChanges` and
  16797. * `valueChanges`
  16798. * observables emit events with the latest status and value when the control is reset.
  16799. * When false, no events are emitted.
  16800. * The configuration options are passed to the {@link AbstractControl#updateValueAndValidity
  16801. * updateValueAndValidity} method.
  16802. */
  16803. reset(value = [], options = {}) {
  16804. this._forEachChild((control, index) => {
  16805. control.reset(value[index], { onlySelf: true, emitEvent: options.emitEvent });
  16806. });
  16807. this._updatePristine(options);
  16808. this._updateTouched(options);
  16809. this.updateValueAndValidity(options);
  16810. }
  16811. /**
  16812. * The aggregate value of the array, including any disabled controls.
  16813. *
  16814. * Reports all values regardless of disabled status.
  16815. * For enabled controls only, the `value` property is the best way to get the value of the array.
  16816. */
  16817. getRawValue() {
  16818. return this.controls.map((control) => {
  16819. return control instanceof FormControl ? control.value : control.getRawValue();
  16820. });
  16821. }
  16822. /**
  16823. * Remove all controls in the `FormArray`.
  16824. *
  16825. * @usageNotes
  16826. * ### Remove all elements from a FormArray
  16827. *
  16828. * ```ts
  16829. * const arr = new FormArray([
  16830. * new FormControl(),
  16831. * new FormControl()
  16832. * ]);
  16833. * console.log(arr.length); // 2
  16834. *
  16835. * arr.clear();
  16836. * console.log(arr.length); // 0
  16837. * ```
  16838. *
  16839. * It's a simpler and more efficient alternative to removing all elements one by one:
  16840. *
  16841. * ```ts
  16842. * const arr = new FormArray([
  16843. * new FormControl(),
  16844. * new FormControl()
  16845. * ]);
  16846. *
  16847. * while (arr.length) {
  16848. * arr.removeAt(0);
  16849. * }
  16850. * ```
  16851. */
  16852. clear() {
  16853. if (this.controls.length < 1)
  16854. return;
  16855. this._forEachChild((control) => control._registerOnCollectionChange(() => { }));
  16856. this.controls.splice(0);
  16857. this.updateValueAndValidity();
  16858. }
  16859. /** @internal */
  16860. _syncPendingControls() {
  16861. let subtreeUpdated = this.controls.reduce((updated, child) => {
  16862. return child._syncPendingControls() ? true : updated;
  16863. }, false);
  16864. if (subtreeUpdated)
  16865. this.updateValueAndValidity({ onlySelf: true });
  16866. return subtreeUpdated;
  16867. }
  16868. /** @internal */
  16869. _throwIfControlMissing(index) {
  16870. if (!this.controls.length) {
  16871. throw new Error(`
  16872. There are no form controls registered with this array yet. If you're using ngModel,
  16873. you may want to check next tick (e.g. use setTimeout).
  16874. `);
  16875. }
  16876. if (!this.at(index)) {
  16877. throw new Error(`Cannot find form control at index ${index}`);
  16878. }
  16879. }
  16880. /** @internal */
  16881. _forEachChild(cb) {
  16882. this.controls.forEach((control, index) => {
  16883. cb(control, index);
  16884. });
  16885. }
  16886. /** @internal */
  16887. _updateValue() {
  16888. this.value =
  16889. this.controls.filter((control) => control.enabled || this.disabled)
  16890. .map((control) => control.value);
  16891. }
  16892. /** @internal */
  16893. _anyControls(condition) {
  16894. return this.controls.some((control) => control.enabled && condition(control));
  16895. }
  16896. /** @internal */
  16897. _setUpControls() {
  16898. this._forEachChild((control) => this._registerControl(control));
  16899. }
  16900. /** @internal */
  16901. _checkAllValuesPresent(value) {
  16902. this._forEachChild((control, i) => {
  16903. if (value[i] === undefined) {
  16904. throw new Error(`Must supply a value for form control at index: ${i}.`);
  16905. }
  16906. });
  16907. }
  16908. /** @internal */
  16909. _allControlsDisabled() {
  16910. for (const control of this.controls) {
  16911. if (control.enabled)
  16912. return false;
  16913. }
  16914. return this.controls.length > 0 || this.disabled;
  16915. }
  16916. _registerControl(control) {
  16917. control.setParent(this);
  16918. control._registerOnCollectionChange(this._onCollectionChange);
  16919. }
  16920. }
  16921. /**
  16922. * @license
  16923. * Copyright Google LLC All Rights Reserved.
  16924. *
  16925. * Use of this source code is governed by an MIT-style license that can be
  16926. * found in the LICENSE file at https://angular.io/license
  16927. */
  16928. const formDirectiveProvider = {
  16929. provide: ControlContainer,
  16930. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgForm)
  16931. };
  16932. const ɵ0 = () => Promise.resolve(null);
  16933. const resolvedPromise = (ɵ0)();
  16934. /**
  16935. * @description
  16936. * Creates a top-level `FormGroup` instance and binds it to a form
  16937. * to track aggregate form value and validation status.
  16938. *
  16939. * As soon as you import the `FormsModule`, this directive becomes active by default on
  16940. * all `<form>` tags. You don't need to add a special selector.
  16941. *
  16942. * You optionally export the directive into a local template variable using `ngForm` as the key
  16943. * (ex: `#myForm="ngForm"`). This is optional, but useful. Many properties from the underlying
  16944. * `FormGroup` instance are duplicated on the directive itself, so a reference to it
  16945. * gives you access to the aggregate value and validity status of the form, as well as
  16946. * user interaction properties like `dirty` and `touched`.
  16947. *
  16948. * To register child controls with the form, use `NgModel` with a `name`
  16949. * attribute. You may use `NgModelGroup` to create sub-groups within the form.
  16950. *
  16951. * If necessary, listen to the directive's `ngSubmit` event to be notified when the user has
  16952. * triggered a form submission. The `ngSubmit` event emits the original form
  16953. * submission event.
  16954. *
  16955. * In template driven forms, all `<form>` tags are automatically tagged as `NgForm`.
  16956. * To import the `FormsModule` but skip its usage in some forms,
  16957. * for example, to use native HTML5 validation, add the `ngNoForm` and the `<form>`
  16958. * tags won't create an `NgForm` directive. In reactive forms, using `ngNoForm` is
  16959. * unnecessary because the `<form>` tags are inert. In that case, you would
  16960. * refrain from using the `formGroup` directive.
  16961. *
  16962. * @usageNotes
  16963. *
  16964. * ### Listening for form submission
  16965. *
  16966. * The following example shows how to capture the form values from the "ngSubmit" event.
  16967. *
  16968. * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}
  16969. *
  16970. * ### Setting the update options
  16971. *
  16972. * The following example shows you how to change the "updateOn" option from its default using
  16973. * ngFormOptions.
  16974. *
  16975. * ```html
  16976. * <form [ngFormOptions]="{updateOn: 'blur'}">
  16977. * <input name="one" ngModel> <!-- this ngModel will update on blur -->
  16978. * </form>
  16979. * ```
  16980. *
  16981. * ### Native DOM validation UI
  16982. *
  16983. * In order to prevent the native DOM form validation UI from interfering with Angular's form
  16984. * validation, Angular automatically adds the `novalidate` attribute on any `<form>` whenever
  16985. * `FormModule` or `ReactiveFormModule` are imported into the application.
  16986. * If you want to explicitly enable native DOM validation UI with Angular forms, you can add the
  16987. * `ngNativeValidate` attribute to the `<form>` element:
  16988. *
  16989. * ```html
  16990. * <form ngNativeValidate>
  16991. * ...
  16992. * </form>
  16993. * ```
  16994. *
  16995. * @ngModule FormsModule
  16996. * @publicApi
  16997. */
  16998. class NgForm extends ControlContainer {
  16999. constructor(validators, asyncValidators) {
  17000. super();
  17001. /**
  17002. * @description
  17003. * Returns whether the form submission has been triggered.
  17004. */
  17005. this.submitted = false;
  17006. this._directives = [];
  17007. /**
  17008. * @description
  17009. * Event emitter for the "ngSubmit" event
  17010. */
  17011. this.ngSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  17012. this.form =
  17013. new FormGroup({}, composeValidators(validators), composeAsyncValidators(asyncValidators));
  17014. }
  17015. /** @nodoc */
  17016. ngAfterViewInit() {
  17017. this._setUpdateStrategy();
  17018. }
  17019. /**
  17020. * @description
  17021. * The directive instance.
  17022. */
  17023. get formDirective() {
  17024. return this;
  17025. }
  17026. /**
  17027. * @description
  17028. * The internal `FormGroup` instance.
  17029. */
  17030. get control() {
  17031. return this.form;
  17032. }
  17033. /**
  17034. * @description
  17035. * Returns an array representing the path to this group. Because this directive
  17036. * always lives at the top level of a form, it is always an empty array.
  17037. */
  17038. get path() {
  17039. return [];
  17040. }
  17041. /**
  17042. * @description
  17043. * Returns a map of the controls in this group.
  17044. */
  17045. get controls() {
  17046. return this.form.controls;
  17047. }
  17048. /**
  17049. * @description
  17050. * Method that sets up the control directive in this group, re-calculates its value
  17051. * and validity, and adds the instance to the internal list of directives.
  17052. *
  17053. * @param dir The `NgModel` directive instance.
  17054. */
  17055. addControl(dir) {
  17056. resolvedPromise.then(() => {
  17057. const container = this._findContainer(dir.path);
  17058. dir.control =
  17059. container.registerControl(dir.name, dir.control);
  17060. setUpControl(dir.control, dir);
  17061. dir.control.updateValueAndValidity({ emitEvent: false });
  17062. this._directives.push(dir);
  17063. });
  17064. }
  17065. /**
  17066. * @description
  17067. * Retrieves the `FormControl` instance from the provided `NgModel` directive.
  17068. *
  17069. * @param dir The `NgModel` directive instance.
  17070. */
  17071. getControl(dir) {
  17072. return this.form.get(dir.path);
  17073. }
  17074. /**
  17075. * @description
  17076. * Removes the `NgModel` instance from the internal list of directives
  17077. *
  17078. * @param dir The `NgModel` directive instance.
  17079. */
  17080. removeControl(dir) {
  17081. resolvedPromise.then(() => {
  17082. const container = this._findContainer(dir.path);
  17083. if (container) {
  17084. container.removeControl(dir.name);
  17085. }
  17086. removeListItem(this._directives, dir);
  17087. });
  17088. }
  17089. /**
  17090. * @description
  17091. * Adds a new `NgModelGroup` directive instance to the form.
  17092. *
  17093. * @param dir The `NgModelGroup` directive instance.
  17094. */
  17095. addFormGroup(dir) {
  17096. resolvedPromise.then(() => {
  17097. const container = this._findContainer(dir.path);
  17098. const group = new FormGroup({});
  17099. setUpFormContainer(group, dir);
  17100. container.registerControl(dir.name, group);
  17101. group.updateValueAndValidity({ emitEvent: false });
  17102. });
  17103. }
  17104. /**
  17105. * @description
  17106. * Removes the `NgModelGroup` directive instance from the form.
  17107. *
  17108. * @param dir The `NgModelGroup` directive instance.
  17109. */
  17110. removeFormGroup(dir) {
  17111. resolvedPromise.then(() => {
  17112. const container = this._findContainer(dir.path);
  17113. if (container) {
  17114. container.removeControl(dir.name);
  17115. }
  17116. });
  17117. }
  17118. /**
  17119. * @description
  17120. * Retrieves the `FormGroup` for a provided `NgModelGroup` directive instance
  17121. *
  17122. * @param dir The `NgModelGroup` directive instance.
  17123. */
  17124. getFormGroup(dir) {
  17125. return this.form.get(dir.path);
  17126. }
  17127. /**
  17128. * Sets the new value for the provided `NgControl` directive.
  17129. *
  17130. * @param dir The `NgControl` directive instance.
  17131. * @param value The new value for the directive's control.
  17132. */
  17133. updateModel(dir, value) {
  17134. resolvedPromise.then(() => {
  17135. const ctrl = this.form.get(dir.path);
  17136. ctrl.setValue(value);
  17137. });
  17138. }
  17139. /**
  17140. * @description
  17141. * Sets the value for this `FormGroup`.
  17142. *
  17143. * @param value The new value
  17144. */
  17145. setValue(value) {
  17146. this.control.setValue(value);
  17147. }
  17148. /**
  17149. * @description
  17150. * Method called when the "submit" event is triggered on the form.
  17151. * Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
  17152. *
  17153. * @param $event The "submit" event object
  17154. */
  17155. onSubmit($event) {
  17156. this.submitted = true;
  17157. syncPendingControls(this.form, this._directives);
  17158. this.ngSubmit.emit($event);
  17159. return false;
  17160. }
  17161. /**
  17162. * @description
  17163. * Method called when the "reset" event is triggered on the form.
  17164. */
  17165. onReset() {
  17166. this.resetForm();
  17167. }
  17168. /**
  17169. * @description
  17170. * Resets the form to an initial value and resets its submitted status.
  17171. *
  17172. * @param value The new value for the form.
  17173. */
  17174. resetForm(value = undefined) {
  17175. this.form.reset(value);
  17176. this.submitted = false;
  17177. }
  17178. _setUpdateStrategy() {
  17179. if (this.options && this.options.updateOn != null) {
  17180. this.form._updateOn = this.options.updateOn;
  17181. }
  17182. }
  17183. /** @internal */
  17184. _findContainer(path) {
  17185. path.pop();
  17186. return path.length ? this.form.get(path) : this.form;
  17187. }
  17188. }
  17189. NgForm.ɵfac = function NgForm_Factory(t) { return new (t || NgForm)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10)); };
  17190. NgForm.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgForm, selectors: [["form", 3, "ngNoForm", "", 3, "formGroup", ""], ["ng-form"], ["", "ngForm", ""]], hostBindings: function NgForm_HostBindings(rf, ctx) { if (rf & 1) {
  17191. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("submit", function NgForm_submit_HostBindingHandler($event) { return ctx.onSubmit($event); })("reset", function NgForm_reset_HostBindingHandler() { return ctx.onReset(); });
  17192. } }, inputs: { options: ["ngFormOptions", "options"] }, outputs: { ngSubmit: "ngSubmit" }, exportAs: ["ngForm"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formDirectiveProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  17193. NgForm.ctorParameters = () => [
  17194. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALIDATORS,] }] },
  17195. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_ASYNC_VALIDATORS,] }] }
  17196. ];
  17197. NgForm.propDecorators = {
  17198. options: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngFormOptions',] }]
  17199. };
  17200. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgForm, [{
  17201. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  17202. args: [{
  17203. selector: 'form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]',
  17204. providers: [formDirectiveProvider],
  17205. host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },
  17206. outputs: ['ngSubmit'],
  17207. exportAs: 'ngForm'
  17208. }]
  17209. }], function () { return [{ type: Array, decorators: [{
  17210. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17211. }, {
  17212. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17213. }, {
  17214. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17215. args: [NG_VALIDATORS]
  17216. }] }, { type: Array, decorators: [{
  17217. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17218. }, {
  17219. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17220. }, {
  17221. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17222. args: [NG_ASYNC_VALIDATORS]
  17223. }] }]; }, { options: [{
  17224. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  17225. args: ['ngFormOptions']
  17226. }] }); })();
  17227. /**
  17228. * @license
  17229. * Copyright Google LLC All Rights Reserved.
  17230. *
  17231. * Use of this source code is governed by an MIT-style license that can be
  17232. * found in the LICENSE file at https://angular.io/license
  17233. */
  17234. /**
  17235. * @description
  17236. * A base class for code shared between the `NgModelGroup` and `FormGroupName` directives.
  17237. *
  17238. * @publicApi
  17239. */
  17240. class AbstractFormGroupDirective extends ControlContainer {
  17241. /** @nodoc */
  17242. ngOnInit() {
  17243. this._checkParentType();
  17244. // Register the group with its parent group.
  17245. this.formDirective.addFormGroup(this);
  17246. }
  17247. /** @nodoc */
  17248. ngOnDestroy() {
  17249. if (this.formDirective) {
  17250. // Remove the group from its parent group.
  17251. this.formDirective.removeFormGroup(this);
  17252. }
  17253. }
  17254. /**
  17255. * @description
  17256. * The `FormGroup` bound to this directive.
  17257. */
  17258. get control() {
  17259. return this.formDirective.getFormGroup(this);
  17260. }
  17261. /**
  17262. * @description
  17263. * The path to this group from the top-level directive.
  17264. */
  17265. get path() {
  17266. return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
  17267. }
  17268. /**
  17269. * @description
  17270. * The top-level directive for this group if present, otherwise null.
  17271. */
  17272. get formDirective() {
  17273. return this._parent ? this._parent.formDirective : null;
  17274. }
  17275. /** @internal */
  17276. _checkParentType() { }
  17277. }
  17278. AbstractFormGroupDirective.ɵfac = function AbstractFormGroupDirective_Factory(t) { return ɵAbstractFormGroupDirective_BaseFactory(t || AbstractFormGroupDirective); };
  17279. AbstractFormGroupDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: AbstractFormGroupDirective, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  17280. const ɵAbstractFormGroupDirective_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](AbstractFormGroupDirective);
  17281. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AbstractFormGroupDirective, [{
  17282. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"]
  17283. }], null, null); })();
  17284. /**
  17285. * @license
  17286. * Copyright Google LLC All Rights Reserved.
  17287. *
  17288. * Use of this source code is governed by an MIT-style license that can be
  17289. * found in the LICENSE file at https://angular.io/license
  17290. */
  17291. class TemplateDrivenErrors {
  17292. static modelParentException() {
  17293. throw new Error(`
  17294. ngModel cannot be used to register form controls with a parent formGroup directive. Try using
  17295. formGroup's partner directive "formControlName" instead. Example:
  17296. ${FormErrorExamples.formControlName}
  17297. Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:
  17298. Example:
  17299. ${FormErrorExamples.ngModelWithFormGroup}`);
  17300. }
  17301. static formGroupNameException() {
  17302. throw new Error(`
  17303. ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.
  17304. Option 1: Use formControlName instead of ngModel (reactive strategy):
  17305. ${FormErrorExamples.formGroupName}
  17306. Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):
  17307. ${FormErrorExamples.ngModelGroup}`);
  17308. }
  17309. static missingNameException() {
  17310. throw new Error(`If ngModel is used within a form tag, either the name attribute must be set or the form
  17311. control must be defined as 'standalone' in ngModelOptions.
  17312. Example 1: <input [(ngModel)]="person.firstName" name="first">
  17313. Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">`);
  17314. }
  17315. static modelGroupParentException() {
  17316. throw new Error(`
  17317. ngModelGroup cannot be used with a parent formGroup directive.
  17318. Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):
  17319. ${FormErrorExamples.formGroupName}
  17320. Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):
  17321. ${FormErrorExamples.ngModelGroup}`);
  17322. }
  17323. }
  17324. /**
  17325. * @license
  17326. * Copyright Google LLC All Rights Reserved.
  17327. *
  17328. * Use of this source code is governed by an MIT-style license that can be
  17329. * found in the LICENSE file at https://angular.io/license
  17330. */
  17331. const modelGroupProvider = {
  17332. provide: ControlContainer,
  17333. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgModelGroup)
  17334. };
  17335. /**
  17336. * @description
  17337. * Creates and binds a `FormGroup` instance to a DOM element.
  17338. *
  17339. * This directive can only be used as a child of `NgForm` (within `<form>` tags).
  17340. *
  17341. * Use this directive to validate a sub-group of your form separately from the
  17342. * rest of your form, or if some values in your domain model make more sense
  17343. * to consume together in a nested object.
  17344. *
  17345. * Provide a name for the sub-group and it will become the key
  17346. * for the sub-group in the form's full value. If you need direct access, export the directive into
  17347. * a local template variable using `ngModelGroup` (ex: `#myGroup="ngModelGroup"`).
  17348. *
  17349. * @usageNotes
  17350. *
  17351. * ### Consuming controls in a grouping
  17352. *
  17353. * The following example shows you how to combine controls together in a sub-group
  17354. * of the form.
  17355. *
  17356. * {@example forms/ts/ngModelGroup/ng_model_group_example.ts region='Component'}
  17357. *
  17358. * @ngModule FormsModule
  17359. * @publicApi
  17360. */
  17361. class NgModelGroup extends AbstractFormGroupDirective {
  17362. constructor(parent, validators, asyncValidators) {
  17363. super();
  17364. this._parent = parent;
  17365. this._setValidators(validators);
  17366. this._setAsyncValidators(asyncValidators);
  17367. }
  17368. /** @internal */
  17369. _checkParentType() {
  17370. if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm) &&
  17371. (typeof ngDevMode === 'undefined' || ngDevMode)) {
  17372. TemplateDrivenErrors.modelGroupParentException();
  17373. }
  17374. }
  17375. }
  17376. NgModelGroup.ɵfac = function NgModelGroup_Factory(t) { return new (t || NgModelGroup)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 5), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10)); };
  17377. NgModelGroup.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgModelGroup, selectors: [["", "ngModelGroup", ""]], inputs: { name: ["ngModelGroup", "name"] }, exportAs: ["ngModelGroup"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([modelGroupProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  17378. NgModelGroup.ctorParameters = () => [
  17379. { type: ControlContainer, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"] }] },
  17380. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALIDATORS,] }] },
  17381. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_ASYNC_VALIDATORS,] }] }
  17382. ];
  17383. NgModelGroup.propDecorators = {
  17384. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngModelGroup',] }]
  17385. };
  17386. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgModelGroup, [{
  17387. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  17388. args: [{ selector: '[ngModelGroup]', providers: [modelGroupProvider], exportAs: 'ngModelGroup' }]
  17389. }], function () { return [{ type: ControlContainer, decorators: [{
  17390. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  17391. }, {
  17392. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
  17393. }] }, { type: Array, decorators: [{
  17394. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17395. }, {
  17396. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17397. }, {
  17398. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17399. args: [NG_VALIDATORS]
  17400. }] }, { type: Array, decorators: [{
  17401. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17402. }, {
  17403. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17404. }, {
  17405. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17406. args: [NG_ASYNC_VALIDATORS]
  17407. }] }]; }, { name: [{
  17408. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  17409. args: ['ngModelGroup']
  17410. }] }); })();
  17411. /**
  17412. * @license
  17413. * Copyright Google LLC All Rights Reserved.
  17414. *
  17415. * Use of this source code is governed by an MIT-style license that can be
  17416. * found in the LICENSE file at https://angular.io/license
  17417. */
  17418. const formControlBinding = {
  17419. provide: NgControl,
  17420. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => NgModel)
  17421. };
  17422. const ɵ0$1 = () => Promise.resolve(null);
  17423. /**
  17424. * `ngModel` forces an additional change detection run when its inputs change:
  17425. * E.g.:
  17426. * ```
  17427. * <div>{{myModel.valid}}</div>
  17428. * <input [(ngModel)]="myValue" #myModel="ngModel">
  17429. * ```
  17430. * I.e. `ngModel` can export itself on the element and then be used in the template.
  17431. * Normally, this would result in expressions before the `input` that use the exported directive
  17432. * to have an old value as they have been
  17433. * dirty checked before. As this is a very common case for `ngModel`, we added this second change
  17434. * detection run.
  17435. *
  17436. * Notes:
  17437. * - this is just one extra run no matter how many `ngModel`s have been changed.
  17438. * - this is a general problem when using `exportAs` for directives!
  17439. */
  17440. const resolvedPromise$1 = (ɵ0$1)();
  17441. /**
  17442. * @description
  17443. * Creates a `FormControl` instance from a domain model and binds it
  17444. * to a form control element.
  17445. *
  17446. * The `FormControl` instance tracks the value, user interaction, and
  17447. * validation status of the control and keeps the view synced with the model. If used
  17448. * within a parent form, the directive also registers itself with the form as a child
  17449. * control.
  17450. *
  17451. * This directive is used by itself or as part of a larger form. Use the
  17452. * `ngModel` selector to activate it.
  17453. *
  17454. * It accepts a domain model as an optional `Input`. If you have a one-way binding
  17455. * to `ngModel` with `[]` syntax, changing the domain model's value in the component
  17456. * class sets the value in the view. If you have a two-way binding with `[()]` syntax
  17457. * (also known as 'banana-in-a-box syntax'), the value in the UI always syncs back to
  17458. * the domain model in your class.
  17459. *
  17460. * To inspect the properties of the associated `FormControl` (like the validity state),
  17461. * export the directive into a local template variable using `ngModel` as the key (ex:
  17462. * `#myVar="ngModel"`). You can then access the control using the directive's `control` property.
  17463. * However, the most commonly used properties (like `valid` and `dirty`) also exist on the control
  17464. * for direct access. See a full list of properties directly available in
  17465. * `AbstractControlDirective`.
  17466. *
  17467. * @see `RadioControlValueAccessor`
  17468. * @see `SelectControlValueAccessor`
  17469. *
  17470. * @usageNotes
  17471. *
  17472. * ### Using ngModel on a standalone control
  17473. *
  17474. * The following examples show a simple standalone control using `ngModel`:
  17475. *
  17476. * {@example forms/ts/simpleNgModel/simple_ng_model_example.ts region='Component'}
  17477. *
  17478. * When using the `ngModel` within `<form>` tags, you'll also need to supply a `name` attribute
  17479. * so that the control can be registered with the parent form under that name.
  17480. *
  17481. * In the context of a parent form, it's often unnecessary to include one-way or two-way binding,
  17482. * as the parent form syncs the value for you. You access its properties by exporting it into a
  17483. * local template variable using `ngForm` such as (`#f="ngForm"`). Use the variable where
  17484. * needed on form submission.
  17485. *
  17486. * If you do need to populate initial values into your form, using a one-way binding for
  17487. * `ngModel` tends to be sufficient as long as you use the exported form's value rather
  17488. * than the domain model's value on submit.
  17489. *
  17490. * ### Using ngModel within a form
  17491. *
  17492. * The following example shows controls using `ngModel` within a form:
  17493. *
  17494. * {@example forms/ts/simpleForm/simple_form_example.ts region='Component'}
  17495. *
  17496. * ### Using a standalone ngModel within a group
  17497. *
  17498. * The following example shows you how to use a standalone ngModel control
  17499. * within a form. This controls the display of the form, but doesn't contain form data.
  17500. *
  17501. * ```html
  17502. * <form>
  17503. * <input name="login" ngModel placeholder="Login">
  17504. * <input type="checkbox" ngModel [ngModelOptions]="{standalone: true}"> Show more options?
  17505. * </form>
  17506. * <!-- form value: {login: ''} -->
  17507. * ```
  17508. *
  17509. * ### Setting the ngModel `name` attribute through options
  17510. *
  17511. * The following example shows you an alternate way to set the name attribute. Here,
  17512. * an attribute identified as name is used within a custom form control component. To still be able
  17513. * to specify the NgModel's name, you must specify it using the `ngModelOptions` input instead.
  17514. *
  17515. * ```html
  17516. * <form>
  17517. * <my-custom-form-control name="Nancy" ngModel [ngModelOptions]="{name: 'user'}">
  17518. * </my-custom-form-control>
  17519. * </form>
  17520. * <!-- form value: {user: ''} -->
  17521. * ```
  17522. *
  17523. * @ngModule FormsModule
  17524. * @publicApi
  17525. */
  17526. class NgModel extends NgControl {
  17527. constructor(parent, validators, asyncValidators, valueAccessors) {
  17528. super();
  17529. this.control = new FormControl();
  17530. /** @internal */
  17531. this._registered = false;
  17532. /**
  17533. * @description
  17534. * Event emitter for producing the `ngModelChange` event after
  17535. * the view model updates.
  17536. */
  17537. this.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  17538. this._parent = parent;
  17539. this._setValidators(validators);
  17540. this._setAsyncValidators(asyncValidators);
  17541. this.valueAccessor = selectValueAccessor(this, valueAccessors);
  17542. }
  17543. /** @nodoc */
  17544. ngOnChanges(changes) {
  17545. this._checkForErrors();
  17546. if (!this._registered)
  17547. this._setUpControl();
  17548. if ('isDisabled' in changes) {
  17549. this._updateDisabled(changes);
  17550. }
  17551. if (isPropertyUpdated(changes, this.viewModel)) {
  17552. this._updateValue(this.model);
  17553. this.viewModel = this.model;
  17554. }
  17555. }
  17556. /** @nodoc */
  17557. ngOnDestroy() {
  17558. this.formDirective && this.formDirective.removeControl(this);
  17559. }
  17560. /**
  17561. * @description
  17562. * Returns an array that represents the path from the top-level form to this control.
  17563. * Each index is the string name of the control on that level.
  17564. */
  17565. get path() {
  17566. return this._parent ? controlPath(this.name, this._parent) : [this.name];
  17567. }
  17568. /**
  17569. * @description
  17570. * The top-level directive for this control if present, otherwise null.
  17571. */
  17572. get formDirective() {
  17573. return this._parent ? this._parent.formDirective : null;
  17574. }
  17575. /**
  17576. * @description
  17577. * Sets the new value for the view model and emits an `ngModelChange` event.
  17578. *
  17579. * @param newValue The new value emitted by `ngModelChange`.
  17580. */
  17581. viewToModelUpdate(newValue) {
  17582. this.viewModel = newValue;
  17583. this.update.emit(newValue);
  17584. }
  17585. _setUpControl() {
  17586. this._setUpdateStrategy();
  17587. this._isStandalone() ? this._setUpStandalone() : this.formDirective.addControl(this);
  17588. this._registered = true;
  17589. }
  17590. _setUpdateStrategy() {
  17591. if (this.options && this.options.updateOn != null) {
  17592. this.control._updateOn = this.options.updateOn;
  17593. }
  17594. }
  17595. _isStandalone() {
  17596. return !this._parent || !!(this.options && this.options.standalone);
  17597. }
  17598. _setUpStandalone() {
  17599. setUpControl(this.control, this);
  17600. this.control.updateValueAndValidity({ emitEvent: false });
  17601. }
  17602. _checkForErrors() {
  17603. if (!this._isStandalone()) {
  17604. this._checkParentType();
  17605. }
  17606. this._checkName();
  17607. }
  17608. _checkParentType() {
  17609. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  17610. if (!(this._parent instanceof NgModelGroup) &&
  17611. this._parent instanceof AbstractFormGroupDirective) {
  17612. TemplateDrivenErrors.formGroupNameException();
  17613. }
  17614. else if (!(this._parent instanceof NgModelGroup) && !(this._parent instanceof NgForm)) {
  17615. TemplateDrivenErrors.modelParentException();
  17616. }
  17617. }
  17618. }
  17619. _checkName() {
  17620. if (this.options && this.options.name)
  17621. this.name = this.options.name;
  17622. if (!this._isStandalone() && !this.name && (typeof ngDevMode === 'undefined' || ngDevMode)) {
  17623. TemplateDrivenErrors.missingNameException();
  17624. }
  17625. }
  17626. _updateValue(value) {
  17627. resolvedPromise$1.then(() => {
  17628. this.control.setValue(value, { emitViewToModelChange: false });
  17629. });
  17630. }
  17631. _updateDisabled(changes) {
  17632. const disabledValue = changes['isDisabled'].currentValue;
  17633. const isDisabled = disabledValue === '' || (disabledValue && disabledValue !== 'false');
  17634. resolvedPromise$1.then(() => {
  17635. if (isDisabled && !this.control.disabled) {
  17636. this.control.disable();
  17637. }
  17638. else if (!isDisabled && this.control.disabled) {
  17639. this.control.enable();
  17640. }
  17641. });
  17642. }
  17643. }
  17644. NgModel.ɵfac = function NgModel_Factory(t) { return new (t || NgModel)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 9), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10)); };
  17645. NgModel.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgModel, selectors: [["", "ngModel", "", 3, "formControlName", "", 3, "formControl", ""]], inputs: { name: "name", isDisabled: ["disabled", "isDisabled"], model: ["ngModel", "model"], options: ["ngModelOptions", "options"] }, outputs: { update: "ngModelChange" }, exportAs: ["ngModel"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formControlBinding]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  17646. NgModel.ctorParameters = () => [
  17647. { type: ControlContainer, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }] },
  17648. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALIDATORS,] }] },
  17649. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_ASYNC_VALIDATORS,] }] },
  17650. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALUE_ACCESSOR,] }] }
  17651. ];
  17652. NgModel.propDecorators = {
  17653. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  17654. isDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['disabled',] }],
  17655. model: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngModel',] }],
  17656. options: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngModelOptions',] }],
  17657. update: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['ngModelChange',] }]
  17658. };
  17659. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgModel, [{
  17660. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  17661. args: [{
  17662. selector: '[ngModel]:not([formControlName]):not([formControl])',
  17663. providers: [formControlBinding],
  17664. exportAs: 'ngModel'
  17665. }]
  17666. }], function () { return [{ type: ControlContainer, decorators: [{
  17667. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17668. }, {
  17669. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  17670. }] }, { type: Array, decorators: [{
  17671. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17672. }, {
  17673. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17674. }, {
  17675. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17676. args: [NG_VALIDATORS]
  17677. }] }, { type: Array, decorators: [{
  17678. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17679. }, {
  17680. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17681. }, {
  17682. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17683. args: [NG_ASYNC_VALIDATORS]
  17684. }] }, { type: Array, decorators: [{
  17685. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17686. }, {
  17687. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17688. }, {
  17689. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17690. args: [NG_VALUE_ACCESSOR]
  17691. }] }]; }, { update: [{
  17692. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  17693. args: ['ngModelChange']
  17694. }], name: [{
  17695. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  17696. }], isDisabled: [{
  17697. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  17698. args: ['disabled']
  17699. }], model: [{
  17700. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  17701. args: ['ngModel']
  17702. }], options: [{
  17703. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  17704. args: ['ngModelOptions']
  17705. }] }); })();
  17706. /**
  17707. * @license
  17708. * Copyright Google LLC All Rights Reserved.
  17709. *
  17710. * Use of this source code is governed by an MIT-style license that can be
  17711. * found in the LICENSE file at https://angular.io/license
  17712. */
  17713. /**
  17714. * @description
  17715. *
  17716. * Adds `novalidate` attribute to all forms by default.
  17717. *
  17718. * `novalidate` is used to disable browser's native form validation.
  17719. *
  17720. * If you want to use native validation with Angular forms, just add `ngNativeValidate` attribute:
  17721. *
  17722. * ```
  17723. * <form ngNativeValidate></form>
  17724. * ```
  17725. *
  17726. * @publicApi
  17727. * @ngModule ReactiveFormsModule
  17728. * @ngModule FormsModule
  17729. */
  17730. class ɵNgNoValidate {
  17731. }
  17732. ɵNgNoValidate.ɵfac = function ɵNgNoValidate_Factory(t) { return new (t || ɵNgNoValidate)(); };
  17733. ɵNgNoValidate.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: ɵNgNoValidate, selectors: [["form", 3, "ngNoForm", "", 3, "ngNativeValidate", ""]], hostAttrs: ["novalidate", ""] });
  17734. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵNgNoValidate, [{
  17735. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  17736. args: [{
  17737. selector: 'form:not([ngNoForm]):not([ngNativeValidate])',
  17738. host: { 'novalidate': '' }
  17739. }]
  17740. }], null, null); })();
  17741. /**
  17742. * @license
  17743. * Copyright Google LLC All Rights Reserved.
  17744. *
  17745. * Use of this source code is governed by an MIT-style license that can be
  17746. * found in the LICENSE file at https://angular.io/license
  17747. */
  17748. /**
  17749. * Token to provide to turn off the ngModel warning on formControl and formControlName.
  17750. */
  17751. const NG_MODEL_WITH_FORM_CONTROL_WARNING = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('NgModelWithFormControlWarning');
  17752. const formControlBinding$1 = {
  17753. provide: NgControl,
  17754. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => FormControlDirective)
  17755. };
  17756. /**
  17757. * @description
  17758. * Synchronizes a standalone `FormControl` instance to a form control element.
  17759. *
  17760. * Note that support for using the `ngModel` input property and `ngModelChange` event with reactive
  17761. * form directives was deprecated in Angular v6 and is scheduled for removal in
  17762. * a future version of Angular.
  17763. * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).
  17764. *
  17765. * @see [Reactive Forms Guide](guide/reactive-forms)
  17766. * @see `FormControl`
  17767. * @see `AbstractControl`
  17768. *
  17769. * @usageNotes
  17770. *
  17771. * The following example shows how to register a standalone control and set its value.
  17772. *
  17773. * {@example forms/ts/simpleFormControl/simple_form_control_example.ts region='Component'}
  17774. *
  17775. * @ngModule ReactiveFormsModule
  17776. * @publicApi
  17777. */
  17778. class FormControlDirective extends NgControl {
  17779. constructor(validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {
  17780. super();
  17781. this._ngModelWarningConfig = _ngModelWarningConfig;
  17782. /** @deprecated as of v6 */
  17783. this.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  17784. /**
  17785. * @description
  17786. * Instance property used to track whether an ngModel warning has been sent out for this
  17787. * particular `FormControlDirective` instance. Used to support warning config of "always".
  17788. *
  17789. * @internal
  17790. */
  17791. this._ngModelWarningSent = false;
  17792. this._setValidators(validators);
  17793. this._setAsyncValidators(asyncValidators);
  17794. this.valueAccessor = selectValueAccessor(this, valueAccessors);
  17795. }
  17796. /**
  17797. * @description
  17798. * Triggers a warning in dev mode that this input should not be used with reactive forms.
  17799. */
  17800. set isDisabled(isDisabled) {
  17801. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  17802. ReactiveErrors.disabledAttrWarning();
  17803. }
  17804. }
  17805. /** @nodoc */
  17806. ngOnChanges(changes) {
  17807. if (this._isControlChanged(changes)) {
  17808. setUpControl(this.form, this);
  17809. if (this.control.disabled && this.valueAccessor.setDisabledState) {
  17810. this.valueAccessor.setDisabledState(true);
  17811. }
  17812. this.form.updateValueAndValidity({ emitEvent: false });
  17813. }
  17814. if (isPropertyUpdated(changes, this.viewModel)) {
  17815. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  17816. _ngModelWarning('formControl', FormControlDirective, this, this._ngModelWarningConfig);
  17817. }
  17818. this.form.setValue(this.model);
  17819. this.viewModel = this.model;
  17820. }
  17821. }
  17822. /**
  17823. * @description
  17824. * Returns an array that represents the path from the top-level form to this control.
  17825. * Each index is the string name of the control on that level.
  17826. */
  17827. get path() {
  17828. return [];
  17829. }
  17830. /**
  17831. * @description
  17832. * The `FormControl` bound to this directive.
  17833. */
  17834. get control() {
  17835. return this.form;
  17836. }
  17837. /**
  17838. * @description
  17839. * Sets the new value for the view model and emits an `ngModelChange` event.
  17840. *
  17841. * @param newValue The new value for the view model.
  17842. */
  17843. viewToModelUpdate(newValue) {
  17844. this.viewModel = newValue;
  17845. this.update.emit(newValue);
  17846. }
  17847. _isControlChanged(changes) {
  17848. return changes.hasOwnProperty('form');
  17849. }
  17850. }
  17851. FormControlDirective.ɵfac = function FormControlDirective_Factory(t) { return new (t || FormControlDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_MODEL_WITH_FORM_CONTROL_WARNING, 8)); };
  17852. FormControlDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: FormControlDirective, selectors: [["", "formControl", ""]], inputs: { isDisabled: ["disabled", "isDisabled"], form: ["formControl", "form"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, exportAs: ["ngForm"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formControlBinding$1]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  17853. /**
  17854. * @description
  17855. * Static property used to track whether any ngModel warnings have been sent across
  17856. * all instances of FormControlDirective. Used to support warning config of "once".
  17857. *
  17858. * @internal
  17859. */
  17860. FormControlDirective._ngModelWarningSentOnce = false;
  17861. FormControlDirective.ctorParameters = () => [
  17862. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALIDATORS,] }] },
  17863. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_ASYNC_VALIDATORS,] }] },
  17864. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALUE_ACCESSOR,] }] },
  17865. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_MODEL_WITH_FORM_CONTROL_WARNING,] }] }
  17866. ];
  17867. FormControlDirective.propDecorators = {
  17868. form: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['formControl',] }],
  17869. isDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['disabled',] }],
  17870. model: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngModel',] }],
  17871. update: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['ngModelChange',] }]
  17872. };
  17873. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormControlDirective, [{
  17874. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  17875. args: [{ selector: '[formControl]', providers: [formControlBinding$1], exportAs: 'ngForm' }]
  17876. }], function () { return [{ type: Array, decorators: [{
  17877. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17878. }, {
  17879. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17880. }, {
  17881. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17882. args: [NG_VALIDATORS]
  17883. }] }, { type: Array, decorators: [{
  17884. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17885. }, {
  17886. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17887. }, {
  17888. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17889. args: [NG_ASYNC_VALIDATORS]
  17890. }] }, { type: Array, decorators: [{
  17891. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17892. }, {
  17893. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  17894. }, {
  17895. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17896. args: [NG_VALUE_ACCESSOR]
  17897. }] }, { type: String, decorators: [{
  17898. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  17899. }, {
  17900. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  17901. args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
  17902. }] }]; }, { update: [{
  17903. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  17904. args: ['ngModelChange']
  17905. }], isDisabled: [{
  17906. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  17907. args: ['disabled']
  17908. }], form: [{
  17909. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  17910. args: ['formControl']
  17911. }], model: [{
  17912. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  17913. args: ['ngModel']
  17914. }] }); })();
  17915. /**
  17916. * @license
  17917. * Copyright Google LLC All Rights Reserved.
  17918. *
  17919. * Use of this source code is governed by an MIT-style license that can be
  17920. * found in the LICENSE file at https://angular.io/license
  17921. */
  17922. const formDirectiveProvider$1 = {
  17923. provide: ControlContainer,
  17924. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => FormGroupDirective)
  17925. };
  17926. /**
  17927. * @description
  17928. *
  17929. * Binds an existing `FormGroup` to a DOM element.
  17930. *
  17931. * This directive accepts an existing `FormGroup` instance. It will then use this
  17932. * `FormGroup` instance to match any child `FormControl`, `FormGroup`,
  17933. * and `FormArray` instances to child `FormControlName`, `FormGroupName`,
  17934. * and `FormArrayName` directives.
  17935. *
  17936. * @see [Reactive Forms Guide](guide/reactive-forms)
  17937. * @see `AbstractControl`
  17938. *
  17939. * ### Register Form Group
  17940. *
  17941. * The following example registers a `FormGroup` with first name and last name controls,
  17942. * and listens for the *ngSubmit* event when the button is clicked.
  17943. *
  17944. * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}
  17945. *
  17946. * @ngModule ReactiveFormsModule
  17947. * @publicApi
  17948. */
  17949. class FormGroupDirective extends ControlContainer {
  17950. constructor(validators, asyncValidators) {
  17951. super();
  17952. this.validators = validators;
  17953. this.asyncValidators = asyncValidators;
  17954. /**
  17955. * @description
  17956. * Reports whether the form submission has been triggered.
  17957. */
  17958. this.submitted = false;
  17959. /**
  17960. * @description
  17961. * Tracks the list of added `FormControlName` instances
  17962. */
  17963. this.directives = [];
  17964. /**
  17965. * @description
  17966. * Tracks the `FormGroup` bound to this directive.
  17967. */
  17968. this.form = null;
  17969. /**
  17970. * @description
  17971. * Emits an event when the form submission has been triggered.
  17972. */
  17973. this.ngSubmit = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  17974. this._setValidators(validators);
  17975. this._setAsyncValidators(asyncValidators);
  17976. }
  17977. /** @nodoc */
  17978. ngOnChanges(changes) {
  17979. this._checkFormPresent();
  17980. if (changes.hasOwnProperty('form')) {
  17981. this._updateValidators();
  17982. this._updateDomValue();
  17983. this._updateRegistrations();
  17984. this._oldForm = this.form;
  17985. }
  17986. }
  17987. /**
  17988. * @description
  17989. * Returns this directive's instance.
  17990. */
  17991. get formDirective() {
  17992. return this;
  17993. }
  17994. /**
  17995. * @description
  17996. * Returns the `FormGroup` bound to this directive.
  17997. */
  17998. get control() {
  17999. return this.form;
  18000. }
  18001. /**
  18002. * @description
  18003. * Returns an array representing the path to this group. Because this directive
  18004. * always lives at the top level of a form, it always an empty array.
  18005. */
  18006. get path() {
  18007. return [];
  18008. }
  18009. /**
  18010. * @description
  18011. * Method that sets up the control directive in this group, re-calculates its value
  18012. * and validity, and adds the instance to the internal list of directives.
  18013. *
  18014. * @param dir The `FormControlName` directive instance.
  18015. */
  18016. addControl(dir) {
  18017. const ctrl = this.form.get(dir.path);
  18018. setUpControl(ctrl, dir);
  18019. ctrl.updateValueAndValidity({ emitEvent: false });
  18020. this.directives.push(dir);
  18021. return ctrl;
  18022. }
  18023. /**
  18024. * @description
  18025. * Retrieves the `FormControl` instance from the provided `FormControlName` directive
  18026. *
  18027. * @param dir The `FormControlName` directive instance.
  18028. */
  18029. getControl(dir) {
  18030. return this.form.get(dir.path);
  18031. }
  18032. /**
  18033. * @description
  18034. * Removes the `FormControlName` instance from the internal list of directives
  18035. *
  18036. * @param dir The `FormControlName` directive instance.
  18037. */
  18038. removeControl(dir) {
  18039. removeListItem(this.directives, dir);
  18040. }
  18041. /**
  18042. * Adds a new `FormGroupName` directive instance to the form.
  18043. *
  18044. * @param dir The `FormGroupName` directive instance.
  18045. */
  18046. addFormGroup(dir) {
  18047. const ctrl = this.form.get(dir.path);
  18048. setUpFormContainer(ctrl, dir);
  18049. ctrl.updateValueAndValidity({ emitEvent: false });
  18050. }
  18051. /**
  18052. * No-op method to remove the form group.
  18053. *
  18054. * @param dir The `FormGroupName` directive instance.
  18055. */
  18056. removeFormGroup(dir) { }
  18057. /**
  18058. * @description
  18059. * Retrieves the `FormGroup` for a provided `FormGroupName` directive instance
  18060. *
  18061. * @param dir The `FormGroupName` directive instance.
  18062. */
  18063. getFormGroup(dir) {
  18064. return this.form.get(dir.path);
  18065. }
  18066. /**
  18067. * Adds a new `FormArrayName` directive instance to the form.
  18068. *
  18069. * @param dir The `FormArrayName` directive instance.
  18070. */
  18071. addFormArray(dir) {
  18072. const ctrl = this.form.get(dir.path);
  18073. setUpFormContainer(ctrl, dir);
  18074. ctrl.updateValueAndValidity({ emitEvent: false });
  18075. }
  18076. /**
  18077. * No-op method to remove the form array.
  18078. *
  18079. * @param dir The `FormArrayName` directive instance.
  18080. */
  18081. removeFormArray(dir) { }
  18082. /**
  18083. * @description
  18084. * Retrieves the `FormArray` for a provided `FormArrayName` directive instance.
  18085. *
  18086. * @param dir The `FormArrayName` directive instance.
  18087. */
  18088. getFormArray(dir) {
  18089. return this.form.get(dir.path);
  18090. }
  18091. /**
  18092. * Sets the new value for the provided `FormControlName` directive.
  18093. *
  18094. * @param dir The `FormControlName` directive instance.
  18095. * @param value The new value for the directive's control.
  18096. */
  18097. updateModel(dir, value) {
  18098. const ctrl = this.form.get(dir.path);
  18099. ctrl.setValue(value);
  18100. }
  18101. /**
  18102. * @description
  18103. * Method called with the "submit" event is triggered on the form.
  18104. * Triggers the `ngSubmit` emitter to emit the "submit" event as its payload.
  18105. *
  18106. * @param $event The "submit" event object
  18107. */
  18108. onSubmit($event) {
  18109. this.submitted = true;
  18110. syncPendingControls(this.form, this.directives);
  18111. this.ngSubmit.emit($event);
  18112. return false;
  18113. }
  18114. /**
  18115. * @description
  18116. * Method called when the "reset" event is triggered on the form.
  18117. */
  18118. onReset() {
  18119. this.resetForm();
  18120. }
  18121. /**
  18122. * @description
  18123. * Resets the form to an initial value and resets its submitted status.
  18124. *
  18125. * @param value The new value for the form.
  18126. */
  18127. resetForm(value = undefined) {
  18128. this.form.reset(value);
  18129. this.submitted = false;
  18130. }
  18131. /** @internal */
  18132. _updateDomValue() {
  18133. this.directives.forEach(dir => {
  18134. const newCtrl = this.form.get(dir.path);
  18135. if (dir.control !== newCtrl) {
  18136. // Note: the value of the `dir.control` may not be defined, for example when it's a first
  18137. // `FormControl` that is added to a `FormGroup` instance (via `addControl` call).
  18138. cleanUpControl(dir.control || null, dir);
  18139. if (newCtrl)
  18140. setUpControl(newCtrl, dir);
  18141. dir.control = newCtrl;
  18142. }
  18143. });
  18144. this.form._updateTreeValidity({ emitEvent: false });
  18145. }
  18146. _updateRegistrations() {
  18147. this.form._registerOnCollectionChange(() => this._updateDomValue());
  18148. if (this._oldForm) {
  18149. this._oldForm._registerOnCollectionChange(() => { });
  18150. }
  18151. }
  18152. _updateValidators() {
  18153. setUpValidators(this.form, this, /* handleOnValidatorChange */ false);
  18154. if (this._oldForm) {
  18155. cleanUpValidators(this._oldForm, this, /* handleOnValidatorChange */ false);
  18156. }
  18157. }
  18158. _checkFormPresent() {
  18159. if (!this.form && (typeof ngDevMode === 'undefined' || ngDevMode)) {
  18160. ReactiveErrors.missingFormException();
  18161. }
  18162. }
  18163. }
  18164. FormGroupDirective.ɵfac = function FormGroupDirective_Factory(t) { return new (t || FormGroupDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10)); };
  18165. FormGroupDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: FormGroupDirective, selectors: [["", "formGroup", ""]], hostBindings: function FormGroupDirective_HostBindings(rf, ctx) { if (rf & 1) {
  18166. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("submit", function FormGroupDirective_submit_HostBindingHandler($event) { return ctx.onSubmit($event); })("reset", function FormGroupDirective_reset_HostBindingHandler() { return ctx.onReset(); });
  18167. } }, inputs: { form: ["formGroup", "form"] }, outputs: { ngSubmit: "ngSubmit" }, exportAs: ["ngForm"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formDirectiveProvider$1]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  18168. FormGroupDirective.ctorParameters = () => [
  18169. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALIDATORS,] }] },
  18170. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_ASYNC_VALIDATORS,] }] }
  18171. ];
  18172. FormGroupDirective.propDecorators = {
  18173. form: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['formGroup',] }],
  18174. ngSubmit: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  18175. };
  18176. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormGroupDirective, [{
  18177. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  18178. args: [{
  18179. selector: '[formGroup]',
  18180. providers: [formDirectiveProvider$1],
  18181. host: { '(submit)': 'onSubmit($event)', '(reset)': 'onReset()' },
  18182. exportAs: 'ngForm'
  18183. }]
  18184. }], function () { return [{ type: Array, decorators: [{
  18185. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18186. }, {
  18187. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18188. }, {
  18189. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18190. args: [NG_VALIDATORS]
  18191. }] }, { type: Array, decorators: [{
  18192. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18193. }, {
  18194. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18195. }, {
  18196. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18197. args: [NG_ASYNC_VALIDATORS]
  18198. }] }]; }, { form: [{
  18199. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  18200. args: ['formGroup']
  18201. }], ngSubmit: [{
  18202. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  18203. }] }); })();
  18204. /**
  18205. * @license
  18206. * Copyright Google LLC All Rights Reserved.
  18207. *
  18208. * Use of this source code is governed by an MIT-style license that can be
  18209. * found in the LICENSE file at https://angular.io/license
  18210. */
  18211. const formGroupNameProvider = {
  18212. provide: ControlContainer,
  18213. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => FormGroupName)
  18214. };
  18215. /**
  18216. * @description
  18217. *
  18218. * Syncs a nested `FormGroup` to a DOM element.
  18219. *
  18220. * This directive can only be used with a parent `FormGroupDirective`.
  18221. *
  18222. * It accepts the string name of the nested `FormGroup` to link, and
  18223. * looks for a `FormGroup` registered with that name in the parent
  18224. * `FormGroup` instance you passed into `FormGroupDirective`.
  18225. *
  18226. * Use nested form groups to validate a sub-group of a
  18227. * form separately from the rest or to group the values of certain
  18228. * controls into their own nested object.
  18229. *
  18230. * @see [Reactive Forms Guide](guide/reactive-forms)
  18231. *
  18232. * @usageNotes
  18233. *
  18234. * ### Access the group by name
  18235. *
  18236. * The following example uses the {@link AbstractControl#get get} method to access the
  18237. * associated `FormGroup`
  18238. *
  18239. * ```ts
  18240. * this.form.get('name');
  18241. * ```
  18242. *
  18243. * ### Access individual controls in the group
  18244. *
  18245. * The following example uses the {@link AbstractControl#get get} method to access
  18246. * individual controls within the group using dot syntax.
  18247. *
  18248. * ```ts
  18249. * this.form.get('name.first');
  18250. * ```
  18251. *
  18252. * ### Register a nested `FormGroup`.
  18253. *
  18254. * The following example registers a nested *name* `FormGroup` within an existing `FormGroup`,
  18255. * and provides methods to retrieve the nested `FormGroup` and individual controls.
  18256. *
  18257. * {@example forms/ts/nestedFormGroup/nested_form_group_example.ts region='Component'}
  18258. *
  18259. * @ngModule ReactiveFormsModule
  18260. * @publicApi
  18261. */
  18262. class FormGroupName extends AbstractFormGroupDirective {
  18263. constructor(parent, validators, asyncValidators) {
  18264. super();
  18265. this._parent = parent;
  18266. this._setValidators(validators);
  18267. this._setAsyncValidators(asyncValidators);
  18268. }
  18269. /** @internal */
  18270. _checkParentType() {
  18271. if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
  18272. ReactiveErrors.groupParentException();
  18273. }
  18274. }
  18275. }
  18276. FormGroupName.ɵfac = function FormGroupName_Factory(t) { return new (t || FormGroupName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10)); };
  18277. FormGroupName.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: FormGroupName, selectors: [["", "formGroupName", ""]], inputs: { name: ["formGroupName", "name"] }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formGroupNameProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  18278. FormGroupName.ctorParameters = () => [
  18279. { type: ControlContainer, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"] }] },
  18280. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALIDATORS,] }] },
  18281. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_ASYNC_VALIDATORS,] }] }
  18282. ];
  18283. FormGroupName.propDecorators = {
  18284. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['formGroupName',] }]
  18285. };
  18286. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormGroupName, [{
  18287. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  18288. args: [{ selector: '[formGroupName]', providers: [formGroupNameProvider] }]
  18289. }], function () { return [{ type: ControlContainer, decorators: [{
  18290. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18291. }, {
  18292. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  18293. }, {
  18294. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
  18295. }] }, { type: Array, decorators: [{
  18296. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18297. }, {
  18298. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18299. }, {
  18300. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18301. args: [NG_VALIDATORS]
  18302. }] }, { type: Array, decorators: [{
  18303. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18304. }, {
  18305. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18306. }, {
  18307. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18308. args: [NG_ASYNC_VALIDATORS]
  18309. }] }]; }, { name: [{
  18310. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  18311. args: ['formGroupName']
  18312. }] }); })();
  18313. const formArrayNameProvider = {
  18314. provide: ControlContainer,
  18315. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => FormArrayName)
  18316. };
  18317. /**
  18318. * @description
  18319. *
  18320. * Syncs a nested `FormArray` to a DOM element.
  18321. *
  18322. * This directive is designed to be used with a parent `FormGroupDirective` (selector:
  18323. * `[formGroup]`).
  18324. *
  18325. * It accepts the string name of the nested `FormArray` you want to link, and
  18326. * will look for a `FormArray` registered with that name in the parent
  18327. * `FormGroup` instance you passed into `FormGroupDirective`.
  18328. *
  18329. * @see [Reactive Forms Guide](guide/reactive-forms)
  18330. * @see `AbstractControl`
  18331. *
  18332. * @usageNotes
  18333. *
  18334. * ### Example
  18335. *
  18336. * {@example forms/ts/nestedFormArray/nested_form_array_example.ts region='Component'}
  18337. *
  18338. * @ngModule ReactiveFormsModule
  18339. * @publicApi
  18340. */
  18341. class FormArrayName extends ControlContainer {
  18342. constructor(parent, validators, asyncValidators) {
  18343. super();
  18344. this._parent = parent;
  18345. this._setValidators(validators);
  18346. this._setAsyncValidators(asyncValidators);
  18347. }
  18348. /**
  18349. * A lifecycle method called when the directive's inputs are initialized. For internal use only.
  18350. * @throws If the directive does not have a valid parent.
  18351. * @nodoc
  18352. */
  18353. ngOnInit() {
  18354. this._checkParentType();
  18355. this.formDirective.addFormArray(this);
  18356. }
  18357. /**
  18358. * A lifecycle method called before the directive's instance is destroyed. For internal use only.
  18359. * @nodoc
  18360. */
  18361. ngOnDestroy() {
  18362. if (this.formDirective) {
  18363. this.formDirective.removeFormArray(this);
  18364. }
  18365. }
  18366. /**
  18367. * @description
  18368. * The `FormArray` bound to this directive.
  18369. */
  18370. get control() {
  18371. return this.formDirective.getFormArray(this);
  18372. }
  18373. /**
  18374. * @description
  18375. * The top-level directive for this group if present, otherwise null.
  18376. */
  18377. get formDirective() {
  18378. return this._parent ? this._parent.formDirective : null;
  18379. }
  18380. /**
  18381. * @description
  18382. * Returns an array that represents the path from the top-level form to this control.
  18383. * Each index is the string name of the control on that level.
  18384. */
  18385. get path() {
  18386. return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
  18387. }
  18388. _checkParentType() {
  18389. if (_hasInvalidParent(this._parent) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
  18390. ReactiveErrors.arrayParentException();
  18391. }
  18392. }
  18393. }
  18394. FormArrayName.ɵfac = function FormArrayName_Factory(t) { return new (t || FormArrayName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10)); };
  18395. FormArrayName.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: FormArrayName, selectors: [["", "formArrayName", ""]], inputs: { name: ["formArrayName", "name"] }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([formArrayNameProvider]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  18396. FormArrayName.ctorParameters = () => [
  18397. { type: ControlContainer, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"] }] },
  18398. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALIDATORS,] }] },
  18399. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_ASYNC_VALIDATORS,] }] }
  18400. ];
  18401. FormArrayName.propDecorators = {
  18402. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['formArrayName',] }]
  18403. };
  18404. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormArrayName, [{
  18405. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  18406. args: [{ selector: '[formArrayName]', providers: [formArrayNameProvider] }]
  18407. }], function () { return [{ type: ControlContainer, decorators: [{
  18408. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18409. }, {
  18410. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  18411. }, {
  18412. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
  18413. }] }, { type: Array, decorators: [{
  18414. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18415. }, {
  18416. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18417. }, {
  18418. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18419. args: [NG_VALIDATORS]
  18420. }] }, { type: Array, decorators: [{
  18421. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18422. }, {
  18423. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18424. }, {
  18425. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18426. args: [NG_ASYNC_VALIDATORS]
  18427. }] }]; }, { name: [{
  18428. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  18429. args: ['formArrayName']
  18430. }] }); })();
  18431. function _hasInvalidParent(parent) {
  18432. return !(parent instanceof FormGroupName) && !(parent instanceof FormGroupDirective) &&
  18433. !(parent instanceof FormArrayName);
  18434. }
  18435. /**
  18436. * @license
  18437. * Copyright Google LLC All Rights Reserved.
  18438. *
  18439. * Use of this source code is governed by an MIT-style license that can be
  18440. * found in the LICENSE file at https://angular.io/license
  18441. */
  18442. const controlNameBinding = {
  18443. provide: NgControl,
  18444. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => FormControlName)
  18445. };
  18446. /**
  18447. * @description
  18448. * Syncs a `FormControl` in an existing `FormGroup` to a form control
  18449. * element by name.
  18450. *
  18451. * @see [Reactive Forms Guide](guide/reactive-forms)
  18452. * @see `FormControl`
  18453. * @see `AbstractControl`
  18454. *
  18455. * @usageNotes
  18456. *
  18457. * ### Register `FormControl` within a group
  18458. *
  18459. * The following example shows how to register multiple form controls within a form group
  18460. * and set their value.
  18461. *
  18462. * {@example forms/ts/simpleFormGroup/simple_form_group_example.ts region='Component'}
  18463. *
  18464. * To see `formControlName` examples with different form control types, see:
  18465. *
  18466. * * Radio buttons: `RadioControlValueAccessor`
  18467. * * Selects: `SelectControlValueAccessor`
  18468. *
  18469. * ### Use with ngModel is deprecated
  18470. *
  18471. * Support for using the `ngModel` input property and `ngModelChange` event with reactive
  18472. * form directives has been deprecated in Angular v6 and is scheduled for removal in
  18473. * a future version of Angular.
  18474. *
  18475. * For details, see [Deprecated features](guide/deprecations#ngmodel-with-reactive-forms).
  18476. *
  18477. * @ngModule ReactiveFormsModule
  18478. * @publicApi
  18479. */
  18480. class FormControlName extends NgControl {
  18481. constructor(parent, validators, asyncValidators, valueAccessors, _ngModelWarningConfig) {
  18482. super();
  18483. this._ngModelWarningConfig = _ngModelWarningConfig;
  18484. this._added = false;
  18485. /** @deprecated as of v6 */
  18486. this.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  18487. /**
  18488. * @description
  18489. * Instance property used to track whether an ngModel warning has been sent out for this
  18490. * particular FormControlName instance. Used to support warning config of "always".
  18491. *
  18492. * @internal
  18493. */
  18494. this._ngModelWarningSent = false;
  18495. this._parent = parent;
  18496. this._setValidators(validators);
  18497. this._setAsyncValidators(asyncValidators);
  18498. this.valueAccessor = selectValueAccessor(this, valueAccessors);
  18499. }
  18500. /**
  18501. * @description
  18502. * Triggers a warning in dev mode that this input should not be used with reactive forms.
  18503. */
  18504. set isDisabled(isDisabled) {
  18505. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  18506. ReactiveErrors.disabledAttrWarning();
  18507. }
  18508. }
  18509. /** @nodoc */
  18510. ngOnChanges(changes) {
  18511. if (!this._added)
  18512. this._setUpControl();
  18513. if (isPropertyUpdated(changes, this.viewModel)) {
  18514. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  18515. _ngModelWarning('formControlName', FormControlName, this, this._ngModelWarningConfig);
  18516. }
  18517. this.viewModel = this.model;
  18518. this.formDirective.updateModel(this, this.model);
  18519. }
  18520. }
  18521. /** @nodoc */
  18522. ngOnDestroy() {
  18523. if (this.formDirective) {
  18524. this.formDirective.removeControl(this);
  18525. }
  18526. }
  18527. /**
  18528. * @description
  18529. * Sets the new value for the view model and emits an `ngModelChange` event.
  18530. *
  18531. * @param newValue The new value for the view model.
  18532. */
  18533. viewToModelUpdate(newValue) {
  18534. this.viewModel = newValue;
  18535. this.update.emit(newValue);
  18536. }
  18537. /**
  18538. * @description
  18539. * Returns an array that represents the path from the top-level form to this control.
  18540. * Each index is the string name of the control on that level.
  18541. */
  18542. get path() {
  18543. return controlPath(this.name == null ? this.name : this.name.toString(), this._parent);
  18544. }
  18545. /**
  18546. * @description
  18547. * The top-level directive for this group if present, otherwise null.
  18548. */
  18549. get formDirective() {
  18550. return this._parent ? this._parent.formDirective : null;
  18551. }
  18552. _checkParentType() {
  18553. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  18554. if (!(this._parent instanceof FormGroupName) &&
  18555. this._parent instanceof AbstractFormGroupDirective) {
  18556. ReactiveErrors.ngModelGroupException();
  18557. }
  18558. else if (!(this._parent instanceof FormGroupName) &&
  18559. !(this._parent instanceof FormGroupDirective) &&
  18560. !(this._parent instanceof FormArrayName)) {
  18561. ReactiveErrors.controlParentException();
  18562. }
  18563. }
  18564. }
  18565. _setUpControl() {
  18566. this._checkParentType();
  18567. this.control = this.formDirective.addControl(this);
  18568. if (this.control.disabled && this.valueAccessor.setDisabledState) {
  18569. this.valueAccessor.setDisabledState(true);
  18570. }
  18571. this._added = true;
  18572. }
  18573. }
  18574. FormControlName.ɵfac = function FormControlName_Factory(t) { return new (t || FormControlName)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ControlContainer, 13), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_ASYNC_VALIDATORS, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_VALUE_ACCESSOR, 10), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NG_MODEL_WITH_FORM_CONTROL_WARNING, 8)); };
  18575. FormControlName.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: FormControlName, selectors: [["", "formControlName", ""]], inputs: { isDisabled: ["disabled", "isDisabled"], name: ["formControlName", "name"], model: ["ngModel", "model"] }, outputs: { update: "ngModelChange" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([controlNameBinding]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  18576. /**
  18577. * @description
  18578. * Static property used to track whether any ngModel warnings have been sent across
  18579. * all instances of FormControlName. Used to support warning config of "once".
  18580. *
  18581. * @internal
  18582. */
  18583. FormControlName._ngModelWarningSentOnce = false;
  18584. FormControlName.ctorParameters = () => [
  18585. { type: ControlContainer, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"] }] },
  18586. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALIDATORS,] }] },
  18587. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_ASYNC_VALIDATORS,] }] },
  18588. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_VALUE_ACCESSOR,] }] },
  18589. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [NG_MODEL_WITH_FORM_CONTROL_WARNING,] }] }
  18590. ];
  18591. FormControlName.propDecorators = {
  18592. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['formControlName',] }],
  18593. isDisabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['disabled',] }],
  18594. model: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngModel',] }],
  18595. update: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['ngModelChange',] }]
  18596. };
  18597. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormControlName, [{
  18598. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  18599. args: [{ selector: '[formControlName]', providers: [controlNameBinding] }]
  18600. }], function () { return [{ type: ControlContainer, decorators: [{
  18601. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18602. }, {
  18603. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  18604. }, {
  18605. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["SkipSelf"]
  18606. }] }, { type: Array, decorators: [{
  18607. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18608. }, {
  18609. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18610. }, {
  18611. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18612. args: [NG_VALIDATORS]
  18613. }] }, { type: Array, decorators: [{
  18614. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18615. }, {
  18616. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18617. }, {
  18618. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18619. args: [NG_ASYNC_VALIDATORS]
  18620. }] }, { type: Array, decorators: [{
  18621. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18622. }, {
  18623. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Self"]
  18624. }, {
  18625. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18626. args: [NG_VALUE_ACCESSOR]
  18627. }] }, { type: String, decorators: [{
  18628. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  18629. }, {
  18630. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  18631. args: [NG_MODEL_WITH_FORM_CONTROL_WARNING]
  18632. }] }]; }, { update: [{
  18633. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  18634. args: ['ngModelChange']
  18635. }], isDisabled: [{
  18636. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  18637. args: ['disabled']
  18638. }], name: [{
  18639. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  18640. args: ['formControlName']
  18641. }], model: [{
  18642. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  18643. args: ['ngModel']
  18644. }] }); })();
  18645. /**
  18646. * @license
  18647. * Copyright Google LLC All Rights Reserved.
  18648. *
  18649. * Use of this source code is governed by an MIT-style license that can be
  18650. * found in the LICENSE file at https://angular.io/license
  18651. */
  18652. /**
  18653. * @description
  18654. * Provider which adds `RequiredValidator` to the `NG_VALIDATORS` multi-provider list.
  18655. */
  18656. const REQUIRED_VALIDATOR = {
  18657. provide: NG_VALIDATORS,
  18658. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => RequiredValidator),
  18659. multi: true
  18660. };
  18661. /**
  18662. * @description
  18663. * Provider which adds `CheckboxRequiredValidator` to the `NG_VALIDATORS` multi-provider list.
  18664. */
  18665. const CHECKBOX_REQUIRED_VALIDATOR = {
  18666. provide: NG_VALIDATORS,
  18667. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => CheckboxRequiredValidator),
  18668. multi: true
  18669. };
  18670. /**
  18671. * @description
  18672. * A directive that adds the `required` validator to any controls marked with the
  18673. * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
  18674. *
  18675. * @see [Form Validation](guide/form-validation)
  18676. *
  18677. * @usageNotes
  18678. *
  18679. * ### Adding a required validator using template-driven forms
  18680. *
  18681. * ```
  18682. * <input name="fullName" ngModel required>
  18683. * ```
  18684. *
  18685. * @ngModule FormsModule
  18686. * @ngModule ReactiveFormsModule
  18687. * @publicApi
  18688. */
  18689. class RequiredValidator {
  18690. constructor() {
  18691. this._required = false;
  18692. }
  18693. /**
  18694. * @description
  18695. * Tracks changes to the required attribute bound to this directive.
  18696. */
  18697. get required() {
  18698. return this._required;
  18699. }
  18700. set required(value) {
  18701. this._required = value != null && value !== false && `${value}` !== 'false';
  18702. if (this._onChange)
  18703. this._onChange();
  18704. }
  18705. /**
  18706. * Method that validates whether the control is empty.
  18707. * Returns the validation result if enabled, otherwise null.
  18708. * @nodoc
  18709. */
  18710. validate(control) {
  18711. return this.required ? Validators.required(control) : null;
  18712. }
  18713. /**
  18714. * Registers a callback function to call when the validator inputs change.
  18715. * @nodoc
  18716. */
  18717. registerOnValidatorChange(fn) {
  18718. this._onChange = fn;
  18719. }
  18720. }
  18721. RequiredValidator.ɵfac = function RequiredValidator_Factory(t) { return new (t || RequiredValidator)(); };
  18722. RequiredValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: RequiredValidator, selectors: [["", "required", "", "formControlName", "", 3, "type", "checkbox"], ["", "required", "", "formControl", "", 3, "type", "checkbox"], ["", "required", "", "ngModel", "", 3, "type", "checkbox"]], hostVars: 1, hostBindings: function RequiredValidator_HostBindings(rf, ctx) { if (rf & 2) {
  18723. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("required", ctx.required ? "" : null);
  18724. } }, inputs: { required: "required" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([REQUIRED_VALIDATOR])] });
  18725. RequiredValidator.propDecorators = {
  18726. required: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  18727. };
  18728. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](RequiredValidator, [{
  18729. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  18730. args: [{
  18731. selector: ':not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]',
  18732. providers: [REQUIRED_VALIDATOR],
  18733. host: { '[attr.required]': 'required ? "" : null' }
  18734. }]
  18735. }], function () { return []; }, { required: [{
  18736. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  18737. }] }); })();
  18738. /**
  18739. * A Directive that adds the `required` validator to checkbox controls marked with the
  18740. * `required` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
  18741. *
  18742. * @see [Form Validation](guide/form-validation)
  18743. *
  18744. * @usageNotes
  18745. *
  18746. * ### Adding a required checkbox validator using template-driven forms
  18747. *
  18748. * The following example shows how to add a checkbox required validator to an input attached to an
  18749. * ngModel binding.
  18750. *
  18751. * ```
  18752. * <input type="checkbox" name="active" ngModel required>
  18753. * ```
  18754. *
  18755. * @publicApi
  18756. * @ngModule FormsModule
  18757. * @ngModule ReactiveFormsModule
  18758. */
  18759. class CheckboxRequiredValidator extends RequiredValidator {
  18760. /**
  18761. * Method that validates whether or not the checkbox has been checked.
  18762. * Returns the validation result if enabled, otherwise null.
  18763. * @nodoc
  18764. */
  18765. validate(control) {
  18766. return this.required ? Validators.requiredTrue(control) : null;
  18767. }
  18768. }
  18769. CheckboxRequiredValidator.ɵfac = function CheckboxRequiredValidator_Factory(t) { return ɵCheckboxRequiredValidator_BaseFactory(t || CheckboxRequiredValidator); };
  18770. CheckboxRequiredValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: CheckboxRequiredValidator, selectors: [["input", "type", "checkbox", "required", "", "formControlName", ""], ["input", "type", "checkbox", "required", "", "formControl", ""], ["input", "type", "checkbox", "required", "", "ngModel", ""]], hostVars: 1, hostBindings: function CheckboxRequiredValidator_HostBindings(rf, ctx) { if (rf & 2) {
  18771. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("required", ctx.required ? "" : null);
  18772. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([CHECKBOX_REQUIRED_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]] });
  18773. const ɵCheckboxRequiredValidator_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](CheckboxRequiredValidator);
  18774. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CheckboxRequiredValidator, [{
  18775. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  18776. args: [{
  18777. selector: 'input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]',
  18778. providers: [CHECKBOX_REQUIRED_VALIDATOR],
  18779. host: { '[attr.required]': 'required ? "" : null' }
  18780. }]
  18781. }], null, null); })();
  18782. /**
  18783. * @description
  18784. * Provider which adds `EmailValidator` to the `NG_VALIDATORS` multi-provider list.
  18785. */
  18786. const EMAIL_VALIDATOR = {
  18787. provide: NG_VALIDATORS,
  18788. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => EmailValidator),
  18789. multi: true
  18790. };
  18791. /**
  18792. * A directive that adds the `email` validator to controls marked with the
  18793. * `email` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
  18794. *
  18795. * @see [Form Validation](guide/form-validation)
  18796. *
  18797. * @usageNotes
  18798. *
  18799. * ### Adding an email validator
  18800. *
  18801. * The following example shows how to add an email validator to an input attached to an ngModel
  18802. * binding.
  18803. *
  18804. * ```
  18805. * <input type="email" name="email" ngModel email>
  18806. * <input type="email" name="email" ngModel email="true">
  18807. * <input type="email" name="email" ngModel [email]="true">
  18808. * ```
  18809. *
  18810. * @publicApi
  18811. * @ngModule FormsModule
  18812. * @ngModule ReactiveFormsModule
  18813. */
  18814. class EmailValidator {
  18815. constructor() {
  18816. this._enabled = false;
  18817. }
  18818. /**
  18819. * @description
  18820. * Tracks changes to the email attribute bound to this directive.
  18821. */
  18822. set email(value) {
  18823. this._enabled = value === '' || value === true || value === 'true';
  18824. if (this._onChange)
  18825. this._onChange();
  18826. }
  18827. /**
  18828. * Method that validates whether an email address is valid.
  18829. * Returns the validation result if enabled, otherwise null.
  18830. * @nodoc
  18831. */
  18832. validate(control) {
  18833. return this._enabled ? Validators.email(control) : null;
  18834. }
  18835. /**
  18836. * Registers a callback function to call when the validator inputs change.
  18837. * @nodoc
  18838. */
  18839. registerOnValidatorChange(fn) {
  18840. this._onChange = fn;
  18841. }
  18842. }
  18843. EmailValidator.ɵfac = function EmailValidator_Factory(t) { return new (t || EmailValidator)(); };
  18844. EmailValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: EmailValidator, selectors: [["", "email", "", "formControlName", ""], ["", "email", "", "formControl", ""], ["", "email", "", "ngModel", ""]], inputs: { email: "email" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([EMAIL_VALIDATOR])] });
  18845. EmailValidator.propDecorators = {
  18846. email: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  18847. };
  18848. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](EmailValidator, [{
  18849. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  18850. args: [{
  18851. selector: '[email][formControlName],[email][formControl],[email][ngModel]',
  18852. providers: [EMAIL_VALIDATOR]
  18853. }]
  18854. }], function () { return []; }, { email: [{
  18855. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  18856. }] }); })();
  18857. /**
  18858. * @description
  18859. * Provider which adds `MinLengthValidator` to the `NG_VALIDATORS` multi-provider list.
  18860. */
  18861. const MIN_LENGTH_VALIDATOR = {
  18862. provide: NG_VALIDATORS,
  18863. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => MinLengthValidator),
  18864. multi: true
  18865. };
  18866. /**
  18867. * A directive that adds minimum length validation to controls marked with the
  18868. * `minlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
  18869. *
  18870. * @see [Form Validation](guide/form-validation)
  18871. *
  18872. * @usageNotes
  18873. *
  18874. * ### Adding a minimum length validator
  18875. *
  18876. * The following example shows how to add a minimum length validator to an input attached to an
  18877. * ngModel binding.
  18878. *
  18879. * ```html
  18880. * <input name="firstName" ngModel minlength="4">
  18881. * ```
  18882. *
  18883. * @ngModule ReactiveFormsModule
  18884. * @ngModule FormsModule
  18885. * @publicApi
  18886. */
  18887. class MinLengthValidator {
  18888. constructor() {
  18889. this._validator = Validators.nullValidator;
  18890. }
  18891. /** @nodoc */
  18892. ngOnChanges(changes) {
  18893. if ('minlength' in changes) {
  18894. this._createValidator();
  18895. if (this._onChange)
  18896. this._onChange();
  18897. }
  18898. }
  18899. /**
  18900. * Method that validates whether the value meets a minimum length requirement.
  18901. * Returns the validation result if enabled, otherwise null.
  18902. * @nodoc
  18903. */
  18904. validate(control) {
  18905. return this.minlength == null ? null : this._validator(control);
  18906. }
  18907. /**
  18908. * Registers a callback function to call when the validator inputs change.
  18909. * @nodoc
  18910. */
  18911. registerOnValidatorChange(fn) {
  18912. this._onChange = fn;
  18913. }
  18914. _createValidator() {
  18915. this._validator = Validators.minLength(typeof this.minlength === 'number' ? this.minlength : parseInt(this.minlength, 10));
  18916. }
  18917. }
  18918. MinLengthValidator.ɵfac = function MinLengthValidator_Factory(t) { return new (t || MinLengthValidator)(); };
  18919. MinLengthValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: MinLengthValidator, selectors: [["", "minlength", "", "formControlName", ""], ["", "minlength", "", "formControl", ""], ["", "minlength", "", "ngModel", ""]], hostVars: 1, hostBindings: function MinLengthValidator_HostBindings(rf, ctx) { if (rf & 2) {
  18920. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("minlength", ctx.minlength ? ctx.minlength : null);
  18921. } }, inputs: { minlength: "minlength" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MIN_LENGTH_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  18922. MinLengthValidator.propDecorators = {
  18923. minlength: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  18924. };
  18925. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MinLengthValidator, [{
  18926. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  18927. args: [{
  18928. selector: '[minlength][formControlName],[minlength][formControl],[minlength][ngModel]',
  18929. providers: [MIN_LENGTH_VALIDATOR],
  18930. host: { '[attr.minlength]': 'minlength ? minlength : null' }
  18931. }]
  18932. }], function () { return []; }, { minlength: [{
  18933. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  18934. }] }); })();
  18935. /**
  18936. * @description
  18937. * Provider which adds `MaxLengthValidator` to the `NG_VALIDATORS` multi-provider list.
  18938. */
  18939. const MAX_LENGTH_VALIDATOR = {
  18940. provide: NG_VALIDATORS,
  18941. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => MaxLengthValidator),
  18942. multi: true
  18943. };
  18944. /**
  18945. * A directive that adds max length validation to controls marked with the
  18946. * `maxlength` attribute. The directive is provided with the `NG_VALIDATORS` multi-provider list.
  18947. *
  18948. * @see [Form Validation](guide/form-validation)
  18949. *
  18950. * @usageNotes
  18951. *
  18952. * ### Adding a maximum length validator
  18953. *
  18954. * The following example shows how to add a maximum length validator to an input attached to an
  18955. * ngModel binding.
  18956. *
  18957. * ```html
  18958. * <input name="firstName" ngModel maxlength="25">
  18959. * ```
  18960. *
  18961. * @ngModule ReactiveFormsModule
  18962. * @ngModule FormsModule
  18963. * @publicApi
  18964. */
  18965. class MaxLengthValidator {
  18966. constructor() {
  18967. this._validator = Validators.nullValidator;
  18968. }
  18969. /** @nodoc */
  18970. ngOnChanges(changes) {
  18971. if ('maxlength' in changes) {
  18972. this._createValidator();
  18973. if (this._onChange)
  18974. this._onChange();
  18975. }
  18976. }
  18977. /**
  18978. * Method that validates whether the value exceeds the maximum length requirement.
  18979. * @nodoc
  18980. */
  18981. validate(control) {
  18982. return this.maxlength != null ? this._validator(control) : null;
  18983. }
  18984. /**
  18985. * Registers a callback function to call when the validator inputs change.
  18986. * @nodoc
  18987. */
  18988. registerOnValidatorChange(fn) {
  18989. this._onChange = fn;
  18990. }
  18991. _createValidator() {
  18992. this._validator = Validators.maxLength(typeof this.maxlength === 'number' ? this.maxlength : parseInt(this.maxlength, 10));
  18993. }
  18994. }
  18995. MaxLengthValidator.ɵfac = function MaxLengthValidator_Factory(t) { return new (t || MaxLengthValidator)(); };
  18996. MaxLengthValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: MaxLengthValidator, selectors: [["", "maxlength", "", "formControlName", ""], ["", "maxlength", "", "formControl", ""], ["", "maxlength", "", "ngModel", ""]], hostVars: 1, hostBindings: function MaxLengthValidator_HostBindings(rf, ctx) { if (rf & 2) {
  18997. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("maxlength", ctx.maxlength ? ctx.maxlength : null);
  18998. } }, inputs: { maxlength: "maxlength" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([MAX_LENGTH_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  18999. MaxLengthValidator.propDecorators = {
  19000. maxlength: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  19001. };
  19002. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](MaxLengthValidator, [{
  19003. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  19004. args: [{
  19005. selector: '[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]',
  19006. providers: [MAX_LENGTH_VALIDATOR],
  19007. host: { '[attr.maxlength]': 'maxlength ? maxlength : null' }
  19008. }]
  19009. }], function () { return []; }, { maxlength: [{
  19010. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  19011. }] }); })();
  19012. /**
  19013. * @description
  19014. * Provider which adds `PatternValidator` to the `NG_VALIDATORS` multi-provider list.
  19015. */
  19016. const PATTERN_VALIDATOR = {
  19017. provide: NG_VALIDATORS,
  19018. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(() => PatternValidator),
  19019. multi: true
  19020. };
  19021. /**
  19022. * @description
  19023. * A directive that adds regex pattern validation to controls marked with the
  19024. * `pattern` attribute. The regex must match the entire control value.
  19025. * The directive is provided with the `NG_VALIDATORS` multi-provider list.
  19026. *
  19027. * @see [Form Validation](guide/form-validation)
  19028. *
  19029. * @usageNotes
  19030. *
  19031. * ### Adding a pattern validator
  19032. *
  19033. * The following example shows how to add a pattern validator to an input attached to an
  19034. * ngModel binding.
  19035. *
  19036. * ```html
  19037. * <input name="firstName" ngModel pattern="[a-zA-Z ]*">
  19038. * ```
  19039. *
  19040. * @ngModule ReactiveFormsModule
  19041. * @ngModule FormsModule
  19042. * @publicApi
  19043. */
  19044. class PatternValidator {
  19045. constructor() {
  19046. this._validator = Validators.nullValidator;
  19047. }
  19048. /** @nodoc */
  19049. ngOnChanges(changes) {
  19050. if ('pattern' in changes) {
  19051. this._createValidator();
  19052. if (this._onChange)
  19053. this._onChange();
  19054. }
  19055. }
  19056. /**
  19057. * Method that validates whether the value matches the the pattern requirement.
  19058. * @nodoc
  19059. */
  19060. validate(control) {
  19061. return this._validator(control);
  19062. }
  19063. /**
  19064. * Registers a callback function to call when the validator inputs change.
  19065. * @nodoc
  19066. */
  19067. registerOnValidatorChange(fn) {
  19068. this._onChange = fn;
  19069. }
  19070. _createValidator() {
  19071. this._validator = Validators.pattern(this.pattern);
  19072. }
  19073. }
  19074. PatternValidator.ɵfac = function PatternValidator_Factory(t) { return new (t || PatternValidator)(); };
  19075. PatternValidator.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: PatternValidator, selectors: [["", "pattern", "", "formControlName", ""], ["", "pattern", "", "formControl", ""], ["", "pattern", "", "ngModel", ""]], hostVars: 1, hostBindings: function PatternValidator_HostBindings(rf, ctx) { if (rf & 2) {
  19076. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("pattern", ctx.pattern ? ctx.pattern : null);
  19077. } }, inputs: { pattern: "pattern" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([PATTERN_VALIDATOR]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  19078. PatternValidator.propDecorators = {
  19079. pattern: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  19080. };
  19081. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PatternValidator, [{
  19082. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  19083. args: [{
  19084. selector: '[pattern][formControlName],[pattern][formControl],[pattern][ngModel]',
  19085. providers: [PATTERN_VALIDATOR],
  19086. host: { '[attr.pattern]': 'pattern ? pattern : null' }
  19087. }]
  19088. }], function () { return []; }, { pattern: [{
  19089. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  19090. }] }); })();
  19091. /**
  19092. * @license
  19093. * Copyright Google LLC All Rights Reserved.
  19094. *
  19095. * Use of this source code is governed by an MIT-style license that can be
  19096. * found in the LICENSE file at https://angular.io/license
  19097. */
  19098. const SHARED_FORM_DIRECTIVES = [
  19099. ɵNgNoValidate,
  19100. NgSelectOption,
  19101. ɵNgSelectMultipleOption,
  19102. DefaultValueAccessor,
  19103. NumberValueAccessor,
  19104. RangeValueAccessor,
  19105. CheckboxControlValueAccessor,
  19106. SelectControlValueAccessor,
  19107. SelectMultipleControlValueAccessor,
  19108. RadioControlValueAccessor,
  19109. NgControlStatus,
  19110. NgControlStatusGroup,
  19111. RequiredValidator,
  19112. MinLengthValidator,
  19113. MaxLengthValidator,
  19114. PatternValidator,
  19115. CheckboxRequiredValidator,
  19116. EmailValidator,
  19117. ];
  19118. const TEMPLATE_DRIVEN_DIRECTIVES = [NgModel, NgModelGroup, NgForm];
  19119. const REACTIVE_DRIVEN_DIRECTIVES = [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName];
  19120. /**
  19121. * Internal module used for sharing directives between FormsModule and ReactiveFormsModule
  19122. */
  19123. class ɵInternalFormsSharedModule {
  19124. }
  19125. ɵInternalFormsSharedModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: ɵInternalFormsSharedModule });
  19126. ɵInternalFormsSharedModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function ɵInternalFormsSharedModule_Factory(t) { return new (t || ɵInternalFormsSharedModule)(); } });
  19127. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](ɵInternalFormsSharedModule, { declarations: [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator], exports: [ɵNgNoValidate, NgSelectOption, ɵNgSelectMultipleOption, DefaultValueAccessor, NumberValueAccessor, RangeValueAccessor, CheckboxControlValueAccessor, SelectControlValueAccessor, SelectMultipleControlValueAccessor, RadioControlValueAccessor, NgControlStatus, NgControlStatusGroup, RequiredValidator, MinLengthValidator, MaxLengthValidator, PatternValidator, CheckboxRequiredValidator, EmailValidator] }); })();
  19128. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ɵInternalFormsSharedModule, [{
  19129. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  19130. args: [{
  19131. declarations: SHARED_FORM_DIRECTIVES,
  19132. exports: SHARED_FORM_DIRECTIVES
  19133. }]
  19134. }], null, null); })();
  19135. /**
  19136. * @license
  19137. * Copyright Google LLC All Rights Reserved.
  19138. *
  19139. * Use of this source code is governed by an MIT-style license that can be
  19140. * found in the LICENSE file at https://angular.io/license
  19141. */
  19142. function isAbstractControlOptions(options) {
  19143. return options.asyncValidators !== undefined ||
  19144. options.validators !== undefined ||
  19145. options.updateOn !== undefined;
  19146. }
  19147. /**
  19148. * @description
  19149. * Creates an `AbstractControl` from a user-specified configuration.
  19150. *
  19151. * The `FormBuilder` provides syntactic sugar that shortens creating instances of a `FormControl`,
  19152. * `FormGroup`, or `FormArray`. It reduces the amount of boilerplate needed to build complex
  19153. * forms.
  19154. *
  19155. * @see [Reactive Forms Guide](/guide/reactive-forms)
  19156. *
  19157. * @publicApi
  19158. */
  19159. class FormBuilder {
  19160. group(controlsConfig, options = null) {
  19161. const controls = this._reduceControls(controlsConfig);
  19162. let validators = null;
  19163. let asyncValidators = null;
  19164. let updateOn = undefined;
  19165. if (options != null) {
  19166. if (isAbstractControlOptions(options)) {
  19167. // `options` are `AbstractControlOptions`
  19168. validators = options.validators != null ? options.validators : null;
  19169. asyncValidators = options.asyncValidators != null ? options.asyncValidators : null;
  19170. updateOn = options.updateOn != null ? options.updateOn : undefined;
  19171. }
  19172. else {
  19173. // `options` are legacy form group options
  19174. validators = options['validator'] != null ? options['validator'] : null;
  19175. asyncValidators = options['asyncValidator'] != null ? options['asyncValidator'] : null;
  19176. }
  19177. }
  19178. return new FormGroup(controls, { asyncValidators, updateOn, validators });
  19179. }
  19180. /**
  19181. * @description
  19182. * Construct a new `FormControl` with the given state, validators and options.
  19183. *
  19184. * @param formState Initializes the control with an initial state value, or
  19185. * with an object that contains both a value and a disabled status.
  19186. *
  19187. * @param validatorOrOpts A synchronous validator function, or an array of
  19188. * such functions, or an `AbstractControlOptions` object that contains
  19189. * validation functions and a validation trigger.
  19190. *
  19191. * @param asyncValidator A single async validator or array of async validator
  19192. * functions.
  19193. *
  19194. * @usageNotes
  19195. *
  19196. * ### Initialize a control as disabled
  19197. *
  19198. * The following example returns a control with an initial value in a disabled state.
  19199. *
  19200. * <code-example path="forms/ts/formBuilder/form_builder_example.ts" region="disabled-control">
  19201. * </code-example>
  19202. */
  19203. control(formState, validatorOrOpts, asyncValidator) {
  19204. return new FormControl(formState, validatorOrOpts, asyncValidator);
  19205. }
  19206. /**
  19207. * Constructs a new `FormArray` from the given array of configurations,
  19208. * validators and options.
  19209. *
  19210. * @param controlsConfig An array of child controls or control configs. Each
  19211. * child control is given an index when it is registered.
  19212. *
  19213. * @param validatorOrOpts A synchronous validator function, or an array of
  19214. * such functions, or an `AbstractControlOptions` object that contains
  19215. * validation functions and a validation trigger.
  19216. *
  19217. * @param asyncValidator A single async validator or array of async validator
  19218. * functions.
  19219. */
  19220. array(controlsConfig, validatorOrOpts, asyncValidator) {
  19221. const controls = controlsConfig.map(c => this._createControl(c));
  19222. return new FormArray(controls, validatorOrOpts, asyncValidator);
  19223. }
  19224. /** @internal */
  19225. _reduceControls(controlsConfig) {
  19226. const controls = {};
  19227. Object.keys(controlsConfig).forEach(controlName => {
  19228. controls[controlName] = this._createControl(controlsConfig[controlName]);
  19229. });
  19230. return controls;
  19231. }
  19232. /** @internal */
  19233. _createControl(controlConfig) {
  19234. if (controlConfig instanceof FormControl || controlConfig instanceof FormGroup ||
  19235. controlConfig instanceof FormArray) {
  19236. return controlConfig;
  19237. }
  19238. else if (Array.isArray(controlConfig)) {
  19239. const value = controlConfig[0];
  19240. const validator = controlConfig.length > 1 ? controlConfig[1] : null;
  19241. const asyncValidator = controlConfig.length > 2 ? controlConfig[2] : null;
  19242. return this.control(value, validator, asyncValidator);
  19243. }
  19244. else {
  19245. return this.control(controlConfig);
  19246. }
  19247. }
  19248. }
  19249. FormBuilder.ɵfac = function FormBuilder_Factory(t) { return new (t || FormBuilder)(); };
  19250. FormBuilder.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: FormBuilder, factory: FormBuilder.ɵfac });
  19251. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormBuilder, [{
  19252. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  19253. }], null, null); })();
  19254. /**
  19255. * @license
  19256. * Copyright Google LLC All Rights Reserved.
  19257. *
  19258. * Use of this source code is governed by an MIT-style license that can be
  19259. * found in the LICENSE file at https://angular.io/license
  19260. */
  19261. /**
  19262. * @publicApi
  19263. */
  19264. const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('11.0.4');
  19265. /**
  19266. * @license
  19267. * Copyright Google LLC All Rights Reserved.
  19268. *
  19269. * Use of this source code is governed by an MIT-style license that can be
  19270. * found in the LICENSE file at https://angular.io/license
  19271. */
  19272. /**
  19273. * Exports the required providers and directives for template-driven forms,
  19274. * making them available for import by NgModules that import this module.
  19275. *
  19276. * @see [Forms Overview](/guide/forms-overview)
  19277. * @see [Template-driven Forms Guide](/guide/forms)
  19278. *
  19279. * @publicApi
  19280. */
  19281. class FormsModule {
  19282. }
  19283. FormsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: FormsModule });
  19284. FormsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function FormsModule_Factory(t) { return new (t || FormsModule)(); }, providers: [RadioControlRegistry], imports: [ɵInternalFormsSharedModule] });
  19285. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](FormsModule, { declarations: [NgModel, NgModelGroup, NgForm], exports: [ɵInternalFormsSharedModule, NgModel, NgModelGroup, NgForm] }); })();
  19286. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FormsModule, [{
  19287. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  19288. args: [{
  19289. declarations: TEMPLATE_DRIVEN_DIRECTIVES,
  19290. providers: [RadioControlRegistry],
  19291. exports: [ɵInternalFormsSharedModule, TEMPLATE_DRIVEN_DIRECTIVES]
  19292. }]
  19293. }], null, null); })();
  19294. /**
  19295. * Exports the required infrastructure and directives for reactive forms,
  19296. * making them available for import by NgModules that import this module.
  19297. *
  19298. * @see [Forms Overview](guide/forms-overview)
  19299. * @see [Reactive Forms Guide](guide/reactive-forms)
  19300. *
  19301. * @publicApi
  19302. */
  19303. class ReactiveFormsModule {
  19304. /**
  19305. * @description
  19306. * Provides options for configuring the reactive forms module.
  19307. *
  19308. * @param opts An object of configuration options
  19309. * * `warnOnNgModelWithFormControl` Configures when to emit a warning when an `ngModel`
  19310. * binding is used with reactive form directives.
  19311. */
  19312. static withConfig(opts) {
  19313. return {
  19314. ngModule: ReactiveFormsModule,
  19315. providers: [
  19316. { provide: NG_MODEL_WITH_FORM_CONTROL_WARNING, useValue: opts.warnOnNgModelWithFormControl }
  19317. ]
  19318. };
  19319. }
  19320. }
  19321. ReactiveFormsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: ReactiveFormsModule });
  19322. ReactiveFormsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function ReactiveFormsModule_Factory(t) { return new (t || ReactiveFormsModule)(); }, providers: [FormBuilder, RadioControlRegistry], imports: [ɵInternalFormsSharedModule] });
  19323. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](ReactiveFormsModule, { declarations: [FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName], exports: [ɵInternalFormsSharedModule, FormControlDirective, FormGroupDirective, FormControlName, FormGroupName, FormArrayName] }); })();
  19324. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ReactiveFormsModule, [{
  19325. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  19326. args: [{
  19327. declarations: [REACTIVE_DRIVEN_DIRECTIVES],
  19328. providers: [FormBuilder, RadioControlRegistry],
  19329. exports: [ɵInternalFormsSharedModule, REACTIVE_DRIVEN_DIRECTIVES]
  19330. }]
  19331. }], null, null); })();
  19332. /**
  19333. * @license
  19334. * Copyright Google LLC All Rights Reserved.
  19335. *
  19336. * Use of this source code is governed by an MIT-style license that can be
  19337. * found in the LICENSE file at https://angular.io/license
  19338. */
  19339. /**
  19340. * @license
  19341. * Copyright Google LLC All Rights Reserved.
  19342. *
  19343. * Use of this source code is governed by an MIT-style license that can be
  19344. * found in the LICENSE file at https://angular.io/license
  19345. */
  19346. // This file only reexports content of the `src` folder. Keep it that way.
  19347. /**
  19348. * @license
  19349. * Copyright Google LLC All Rights Reserved.
  19350. *
  19351. * Use of this source code is governed by an MIT-style license that can be
  19352. * found in the LICENSE file at https://angular.io/license
  19353. */
  19354. /**
  19355. * Generated bundle index. Do not edit.
  19356. */
  19357. //# sourceMappingURL=forms.js.map
  19358. /***/ }),
  19359. /***/ "3UWI":
  19360. /*!********************************************************************!*\
  19361. !*** ./node_modules/rxjs/_esm2015/internal/operators/auditTime.js ***!
  19362. \********************************************************************/
  19363. /*! exports provided: auditTime */
  19364. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19365. "use strict";
  19366. __webpack_require__.r(__webpack_exports__);
  19367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "auditTime", function() { return auditTime; });
  19368. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  19369. /* harmony import */ var _audit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./audit */ "tnsW");
  19370. /* harmony import */ var _observable_timer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/timer */ "PqYM");
  19371. function auditTime(duration, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) {
  19372. return Object(_audit__WEBPACK_IMPORTED_MODULE_1__["audit"])(() => Object(_observable_timer__WEBPACK_IMPORTED_MODULE_2__["timer"])(duration, scheduler));
  19373. }
  19374. //# sourceMappingURL=auditTime.js.map
  19375. /***/ }),
  19376. /***/ "4A3s":
  19377. /*!*************************************************************************!*\
  19378. !*** ./node_modules/rxjs/_esm2015/internal/operators/ignoreElements.js ***!
  19379. \*************************************************************************/
  19380. /*! exports provided: ignoreElements */
  19381. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19382. "use strict";
  19383. __webpack_require__.r(__webpack_exports__);
  19384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ignoreElements", function() { return ignoreElements; });
  19385. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  19386. function ignoreElements() {
  19387. return function ignoreElementsOperatorFunction(source) {
  19388. return source.lift(new IgnoreElementsOperator());
  19389. };
  19390. }
  19391. class IgnoreElementsOperator {
  19392. call(subscriber, source) {
  19393. return source.subscribe(new IgnoreElementsSubscriber(subscriber));
  19394. }
  19395. }
  19396. class IgnoreElementsSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  19397. _next(unused) {
  19398. }
  19399. }
  19400. //# sourceMappingURL=ignoreElements.js.map
  19401. /***/ }),
  19402. /***/ "4I5i":
  19403. /*!*****************************************************************************!*\
  19404. !*** ./node_modules/rxjs/_esm2015/internal/util/ArgumentOutOfRangeError.js ***!
  19405. \*****************************************************************************/
  19406. /*! exports provided: ArgumentOutOfRangeError */
  19407. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19408. "use strict";
  19409. __webpack_require__.r(__webpack_exports__);
  19410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ArgumentOutOfRangeError", function() { return ArgumentOutOfRangeError; });
  19411. const ArgumentOutOfRangeErrorImpl = (() => {
  19412. function ArgumentOutOfRangeErrorImpl() {
  19413. Error.call(this);
  19414. this.message = 'argument out of range';
  19415. this.name = 'ArgumentOutOfRangeError';
  19416. return this;
  19417. }
  19418. ArgumentOutOfRangeErrorImpl.prototype = Object.create(Error.prototype);
  19419. return ArgumentOutOfRangeErrorImpl;
  19420. })();
  19421. const ArgumentOutOfRangeError = ArgumentOutOfRangeErrorImpl;
  19422. //# sourceMappingURL=ArgumentOutOfRangeError.js.map
  19423. /***/ }),
  19424. /***/ "4O5X":
  19425. /*!****************************************************************************!*\
  19426. !*** ./node_modules/rxjs/_esm2015/internal/observable/bindNodeCallback.js ***!
  19427. \****************************************************************************/
  19428. /*! exports provided: bindNodeCallback */
  19429. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19430. "use strict";
  19431. __webpack_require__.r(__webpack_exports__);
  19432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindNodeCallback", function() { return bindNodeCallback; });
  19433. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  19434. /* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AsyncSubject */ "NHP+");
  19435. /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/map */ "lJxs");
  19436. /* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/canReportError */ "8Qeq");
  19437. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  19438. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  19439. function bindNodeCallback(callbackFunc, resultSelector, scheduler) {
  19440. if (resultSelector) {
  19441. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(resultSelector)) {
  19442. scheduler = resultSelector;
  19443. }
  19444. else {
  19445. return (...args) => bindNodeCallback(callbackFunc, scheduler)(...args).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])(args => Object(_util_isArray__WEBPACK_IMPORTED_MODULE_5__["isArray"])(args) ? resultSelector(...args) : resultSelector(args)));
  19446. }
  19447. }
  19448. return function (...args) {
  19449. const params = {
  19450. subject: undefined,
  19451. args,
  19452. callbackFunc,
  19453. scheduler,
  19454. context: this,
  19455. };
  19456. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  19457. const { context } = params;
  19458. let { subject } = params;
  19459. if (!scheduler) {
  19460. if (!subject) {
  19461. subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();
  19462. const handler = (...innerArgs) => {
  19463. const err = innerArgs.shift();
  19464. if (err) {
  19465. subject.error(err);
  19466. return;
  19467. }
  19468. subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);
  19469. subject.complete();
  19470. };
  19471. try {
  19472. callbackFunc.apply(context, [...args, handler]);
  19473. }
  19474. catch (err) {
  19475. if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_3__["canReportError"])(subject)) {
  19476. subject.error(err);
  19477. }
  19478. else {
  19479. console.warn(err);
  19480. }
  19481. }
  19482. }
  19483. return subject.subscribe(subscriber);
  19484. }
  19485. else {
  19486. return scheduler.schedule(dispatch, 0, { params, subscriber, context });
  19487. }
  19488. });
  19489. };
  19490. }
  19491. function dispatch(state) {
  19492. const { params, subscriber, context } = state;
  19493. const { callbackFunc, args, scheduler } = params;
  19494. let subject = params.subject;
  19495. if (!subject) {
  19496. subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();
  19497. const handler = (...innerArgs) => {
  19498. const err = innerArgs.shift();
  19499. if (err) {
  19500. this.add(scheduler.schedule(dispatchError, 0, { err, subject }));
  19501. }
  19502. else {
  19503. const value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;
  19504. this.add(scheduler.schedule(dispatchNext, 0, { value, subject }));
  19505. }
  19506. };
  19507. try {
  19508. callbackFunc.apply(context, [...args, handler]);
  19509. }
  19510. catch (err) {
  19511. this.add(scheduler.schedule(dispatchError, 0, { err, subject }));
  19512. }
  19513. }
  19514. this.add(subject.subscribe(subscriber));
  19515. }
  19516. function dispatchNext(arg) {
  19517. const { value, subject } = arg;
  19518. subject.next(value);
  19519. subject.complete();
  19520. }
  19521. function dispatchError(arg) {
  19522. const { err, subject } = arg;
  19523. subject.error(err);
  19524. }
  19525. //# sourceMappingURL=bindNodeCallback.js.map
  19526. /***/ }),
  19527. /***/ "4f8F":
  19528. /*!***************************************************************!*\
  19529. !*** ./node_modules/rxjs/_esm2015/internal/operators/race.js ***!
  19530. \***************************************************************/
  19531. /*! exports provided: race */
  19532. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19533. "use strict";
  19534. __webpack_require__.r(__webpack_exports__);
  19535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "race", function() { return race; });
  19536. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  19537. /* harmony import */ var _observable_race__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/race */ "Nv8m");
  19538. function race(...observables) {
  19539. return function raceOperatorFunction(source) {
  19540. if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) {
  19541. observables = observables[0];
  19542. }
  19543. return source.lift.call(Object(_observable_race__WEBPACK_IMPORTED_MODULE_1__["race"])(source, ...observables));
  19544. };
  19545. }
  19546. //# sourceMappingURL=race.js.map
  19547. /***/ }),
  19548. /***/ "4hIw":
  19549. /*!***********************************************************************!*\
  19550. !*** ./node_modules/rxjs/_esm2015/internal/operators/timeInterval.js ***!
  19551. \***********************************************************************/
  19552. /*! exports provided: timeInterval, TimeInterval */
  19553. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19554. "use strict";
  19555. __webpack_require__.r(__webpack_exports__);
  19556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return timeInterval; });
  19557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeInterval", function() { return TimeInterval; });
  19558. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  19559. /* harmony import */ var _scan__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scan */ "Kqap");
  19560. /* harmony import */ var _observable_defer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/defer */ "NXyV");
  19561. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map */ "lJxs");
  19562. function timeInterval(scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) {
  19563. return (source) => Object(_observable_defer__WEBPACK_IMPORTED_MODULE_2__["defer"])(() => {
  19564. return source.pipe(Object(_scan__WEBPACK_IMPORTED_MODULE_1__["scan"])(({ current }, value) => ({ value, current: scheduler.now(), last: current }), { current: scheduler.now(), value: undefined, last: undefined }), Object(_map__WEBPACK_IMPORTED_MODULE_3__["map"])(({ current, last, value }) => new TimeInterval(value, current - last)));
  19565. });
  19566. }
  19567. class TimeInterval {
  19568. constructor(value, interval) {
  19569. this.value = value;
  19570. this.interval = interval;
  19571. }
  19572. }
  19573. //# sourceMappingURL=timeInterval.js.map
  19574. /***/ }),
  19575. /***/ "4yVj":
  19576. /*!**************************************************************************!*\
  19577. !*** ./node_modules/rxjs/_esm2015/internal/scheduled/schedulePromise.js ***!
  19578. \**************************************************************************/
  19579. /*! exports provided: schedulePromise */
  19580. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19581. "use strict";
  19582. __webpack_require__.r(__webpack_exports__);
  19583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "schedulePromise", function() { return schedulePromise; });
  19584. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  19585. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY");
  19586. function schedulePromise(input, scheduler) {
  19587. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  19588. const sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
  19589. sub.add(scheduler.schedule(() => input.then(value => {
  19590. sub.add(scheduler.schedule(() => {
  19591. subscriber.next(value);
  19592. sub.add(scheduler.schedule(() => subscriber.complete()));
  19593. }));
  19594. }, err => {
  19595. sub.add(scheduler.schedule(() => subscriber.error(err)));
  19596. })));
  19597. return sub;
  19598. });
  19599. }
  19600. //# sourceMappingURL=schedulePromise.js.map
  19601. /***/ }),
  19602. /***/ "5+tZ":
  19603. /*!*******************************************************************!*\
  19604. !*** ./node_modules/rxjs/_esm2015/internal/operators/mergeMap.js ***!
  19605. \*******************************************************************/
  19606. /*! exports provided: mergeMap, MergeMapOperator, MergeMapSubscriber */
  19607. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19608. "use strict";
  19609. __webpack_require__.r(__webpack_exports__);
  19610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeMap", function() { return mergeMap; });
  19611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeMapOperator", function() { return MergeMapOperator; });
  19612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeMapSubscriber", function() { return MergeMapSubscriber; });
  19613. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  19614. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  19615. /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv");
  19616. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map */ "lJxs");
  19617. /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../observable/from */ "Cfvw");
  19618. function mergeMap(project, resultSelector, concurrent = Number.POSITIVE_INFINITY) {
  19619. if (typeof resultSelector === 'function') {
  19620. return (source) => source.pipe(mergeMap((a, i) => Object(_observable_from__WEBPACK_IMPORTED_MODULE_4__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_3__["map"])((b, ii) => resultSelector(a, b, i, ii))), concurrent));
  19621. }
  19622. else if (typeof resultSelector === 'number') {
  19623. concurrent = resultSelector;
  19624. }
  19625. return (source) => source.lift(new MergeMapOperator(project, concurrent));
  19626. }
  19627. class MergeMapOperator {
  19628. constructor(project, concurrent = Number.POSITIVE_INFINITY) {
  19629. this.project = project;
  19630. this.concurrent = concurrent;
  19631. }
  19632. call(observer, source) {
  19633. return source.subscribe(new MergeMapSubscriber(observer, this.project, this.concurrent));
  19634. }
  19635. }
  19636. class MergeMapSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__["OuterSubscriber"] {
  19637. constructor(destination, project, concurrent = Number.POSITIVE_INFINITY) {
  19638. super(destination);
  19639. this.project = project;
  19640. this.concurrent = concurrent;
  19641. this.hasCompleted = false;
  19642. this.buffer = [];
  19643. this.active = 0;
  19644. this.index = 0;
  19645. }
  19646. _next(value) {
  19647. if (this.active < this.concurrent) {
  19648. this._tryNext(value);
  19649. }
  19650. else {
  19651. this.buffer.push(value);
  19652. }
  19653. }
  19654. _tryNext(value) {
  19655. let result;
  19656. const index = this.index++;
  19657. try {
  19658. result = this.project(value, index);
  19659. }
  19660. catch (err) {
  19661. this.destination.error(err);
  19662. return;
  19663. }
  19664. this.active++;
  19665. this._innerSub(result, value, index);
  19666. }
  19667. _innerSub(ish, value, index) {
  19668. const innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_2__["InnerSubscriber"](this, value, index);
  19669. const destination = this.destination;
  19670. destination.add(innerSubscriber);
  19671. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_0__["subscribeToResult"])(this, ish, undefined, undefined, innerSubscriber);
  19672. if (innerSubscription !== innerSubscriber) {
  19673. destination.add(innerSubscription);
  19674. }
  19675. }
  19676. _complete() {
  19677. this.hasCompleted = true;
  19678. if (this.active === 0 && this.buffer.length === 0) {
  19679. this.destination.complete();
  19680. }
  19681. this.unsubscribe();
  19682. }
  19683. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  19684. this.destination.next(innerValue);
  19685. }
  19686. notifyComplete(innerSub) {
  19687. const buffer = this.buffer;
  19688. this.remove(innerSub);
  19689. this.active--;
  19690. if (buffer.length > 0) {
  19691. this._next(buffer.shift());
  19692. }
  19693. else if (this.active === 0 && this.hasCompleted) {
  19694. this.destination.complete();
  19695. }
  19696. }
  19697. }
  19698. //# sourceMappingURL=mergeMap.js.map
  19699. /***/ }),
  19700. /***/ "51Bx":
  19701. /*!********************************************************************!*\
  19702. !*** ./node_modules/rxjs/_esm2015/internal/operators/mergeScan.js ***!
  19703. \********************************************************************/
  19704. /*! exports provided: mergeScan, MergeScanOperator, MergeScanSubscriber */
  19705. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19706. "use strict";
  19707. __webpack_require__.r(__webpack_exports__);
  19708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeScan", function() { return mergeScan; });
  19709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeScanOperator", function() { return MergeScanOperator; });
  19710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MergeScanSubscriber", function() { return MergeScanSubscriber; });
  19711. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  19712. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  19713. /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv");
  19714. function mergeScan(accumulator, seed, concurrent = Number.POSITIVE_INFINITY) {
  19715. return (source) => source.lift(new MergeScanOperator(accumulator, seed, concurrent));
  19716. }
  19717. class MergeScanOperator {
  19718. constructor(accumulator, seed, concurrent) {
  19719. this.accumulator = accumulator;
  19720. this.seed = seed;
  19721. this.concurrent = concurrent;
  19722. }
  19723. call(subscriber, source) {
  19724. return source.subscribe(new MergeScanSubscriber(subscriber, this.accumulator, this.seed, this.concurrent));
  19725. }
  19726. }
  19727. class MergeScanSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__["OuterSubscriber"] {
  19728. constructor(destination, accumulator, acc, concurrent) {
  19729. super(destination);
  19730. this.accumulator = accumulator;
  19731. this.acc = acc;
  19732. this.concurrent = concurrent;
  19733. this.hasValue = false;
  19734. this.hasCompleted = false;
  19735. this.buffer = [];
  19736. this.active = 0;
  19737. this.index = 0;
  19738. }
  19739. _next(value) {
  19740. if (this.active < this.concurrent) {
  19741. const index = this.index++;
  19742. const destination = this.destination;
  19743. let ish;
  19744. try {
  19745. const { accumulator } = this;
  19746. ish = accumulator(this.acc, value, index);
  19747. }
  19748. catch (e) {
  19749. return destination.error(e);
  19750. }
  19751. this.active++;
  19752. this._innerSub(ish, value, index);
  19753. }
  19754. else {
  19755. this.buffer.push(value);
  19756. }
  19757. }
  19758. _innerSub(ish, value, index) {
  19759. const innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_2__["InnerSubscriber"](this, value, index);
  19760. const destination = this.destination;
  19761. destination.add(innerSubscriber);
  19762. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_0__["subscribeToResult"])(this, ish, undefined, undefined, innerSubscriber);
  19763. if (innerSubscription !== innerSubscriber) {
  19764. destination.add(innerSubscription);
  19765. }
  19766. }
  19767. _complete() {
  19768. this.hasCompleted = true;
  19769. if (this.active === 0 && this.buffer.length === 0) {
  19770. if (this.hasValue === false) {
  19771. this.destination.next(this.acc);
  19772. }
  19773. this.destination.complete();
  19774. }
  19775. this.unsubscribe();
  19776. }
  19777. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  19778. const { destination } = this;
  19779. this.acc = innerValue;
  19780. this.hasValue = true;
  19781. destination.next(innerValue);
  19782. }
  19783. notifyComplete(innerSub) {
  19784. const buffer = this.buffer;
  19785. const destination = this.destination;
  19786. destination.remove(innerSub);
  19787. this.active--;
  19788. if (buffer.length > 0) {
  19789. this._next(buffer.shift());
  19790. }
  19791. else if (this.active === 0 && this.hasCompleted) {
  19792. if (this.hasValue === false) {
  19793. this.destination.next(this.acc);
  19794. }
  19795. this.destination.complete();
  19796. }
  19797. }
  19798. }
  19799. //# sourceMappingURL=mergeScan.js.map
  19800. /***/ }),
  19801. /***/ "51Dv":
  19802. /*!****************************************************************!*\
  19803. !*** ./node_modules/rxjs/_esm2015/internal/InnerSubscriber.js ***!
  19804. \****************************************************************/
  19805. /*! exports provided: InnerSubscriber */
  19806. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19807. "use strict";
  19808. __webpack_require__.r(__webpack_exports__);
  19809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InnerSubscriber", function() { return InnerSubscriber; });
  19810. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subscriber */ "7o/Q");
  19811. class InnerSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  19812. constructor(parent, outerValue, outerIndex) {
  19813. super();
  19814. this.parent = parent;
  19815. this.outerValue = outerValue;
  19816. this.outerIndex = outerIndex;
  19817. this.index = 0;
  19818. }
  19819. _next(value) {
  19820. this.parent.notifyNext(this.outerValue, value, this.outerIndex, this.index++, this);
  19821. }
  19822. _error(error) {
  19823. this.parent.notifyError(error, this);
  19824. this.unsubscribe();
  19825. }
  19826. _complete() {
  19827. this.parent.notifyComplete(this);
  19828. this.unsubscribe();
  19829. }
  19830. }
  19831. //# sourceMappingURL=InnerSubscriber.js.map
  19832. /***/ }),
  19833. /***/ "5B2Y":
  19834. /*!*****************************************************************************!*\
  19835. !*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleObservable.js ***!
  19836. \*****************************************************************************/
  19837. /*! exports provided: scheduleObservable */
  19838. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19839. "use strict";
  19840. __webpack_require__.r(__webpack_exports__);
  19841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleObservable", function() { return scheduleObservable; });
  19842. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  19843. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY");
  19844. /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../symbol/observable */ "kJWO");
  19845. function scheduleObservable(input, scheduler) {
  19846. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  19847. const sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
  19848. sub.add(scheduler.schedule(() => {
  19849. const observable = input[_symbol_observable__WEBPACK_IMPORTED_MODULE_2__["observable"]]();
  19850. sub.add(observable.subscribe({
  19851. next(value) { sub.add(scheduler.schedule(() => subscriber.next(value))); },
  19852. error(err) { sub.add(scheduler.schedule(() => subscriber.error(err))); },
  19853. complete() { sub.add(scheduler.schedule(() => subscriber.complete())); },
  19854. }));
  19855. }));
  19856. return sub;
  19857. });
  19858. }
  19859. //# sourceMappingURL=scheduleObservable.js.map
  19860. /***/ }),
  19861. /***/ "5yfJ":
  19862. /*!*****************************************************************!*\
  19863. !*** ./node_modules/rxjs/_esm2015/internal/observable/never.js ***!
  19864. \*****************************************************************/
  19865. /*! exports provided: NEVER, never */
  19866. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19867. "use strict";
  19868. __webpack_require__.r(__webpack_exports__);
  19869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NEVER", function() { return NEVER; });
  19870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "never", function() { return never; });
  19871. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  19872. /* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/noop */ "KqfI");
  19873. const NEVER = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](_util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"]);
  19874. function never() {
  19875. return NEVER;
  19876. }
  19877. //# sourceMappingURL=never.js.map
  19878. /***/ }),
  19879. /***/ "6NWb":
  19880. /*!****************************************************************************************************!*\
  19881. !*** ./node_modules/@fortawesome/angular-fontawesome/__ivy_ngcc__/fesm2015/angular-fontawesome.js ***!
  19882. \****************************************************************************************************/
  19883. /*! exports provided: FaConfig, FaDuotoneIconComponent, FaIconComponent, FaIconLibrary, FaLayersComponent, FaLayersCounterComponent, FaLayersTextComponent, FaStackComponent, FaStackItemSizeDirective, FontAwesomeModule */
  19884. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  19885. "use strict";
  19886. __webpack_require__.r(__webpack_exports__);
  19887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaConfig", function() { return FaConfig; });
  19888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaDuotoneIconComponent", function() { return FaDuotoneIconComponent; });
  19889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaIconComponent", function() { return FaIconComponent; });
  19890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaIconLibrary", function() { return FaIconLibrary; });
  19891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaLayersComponent", function() { return FaLayersComponent; });
  19892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaLayersCounterComponent", function() { return FaLayersCounterComponent; });
  19893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaLayersTextComponent", function() { return FaLayersTextComponent; });
  19894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaStackComponent", function() { return FaStackComponent; });
  19895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FaStackItemSizeDirective", function() { return FaStackItemSizeDirective; });
  19896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FontAwesomeModule", function() { return FontAwesomeModule; });
  19897. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  19898. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
  19899. /* harmony import */ var _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @fortawesome/fontawesome-svg-core */ "7O5W");
  19900. const _c0 = [[["fa-icon"], ["fa-duotone-icon"], ["fa-layers-text"], ["fa-layers-counter"]]];
  19901. const _c1 = ["fa-icon, fa-duotone-icon, fa-layers-text, fa-layers-counter"];
  19902. const _c2 = [[["fa-icon", "stackItemSize", ""], ["fa-duotone-icon", "stackItemSize", ""]]];
  19903. const _c3 = ["fa-icon[stackItemSize],fa-duotone-icon[stackItemSize]"];
  19904. class FaConfig {
  19905. constructor() {
  19906. /**
  19907. * Default prefix to use, when one is not provided with the icon name.
  19908. *
  19909. * @default 'fas'
  19910. */
  19911. this.defaultPrefix = 'fas';
  19912. /**
  19913. * Provides a fallback icon to use whilst main icon is being loaded asynchronously.
  19914. * When value is null, then fa-icon component will throw an error if icon input is missing.
  19915. * When value is not null, then the provided icon will be used as a fallback icon if icon input is missing.
  19916. *
  19917. * @default null
  19918. */
  19919. this.fallbackIcon = null;
  19920. /**
  19921. * Whether components should lookup icon definitions in the global icon
  19922. * library (the one available from
  19923. * `import { library } from '@fortawesome/fontawesome-svg-core')`.
  19924. *
  19925. * See https://github.com/FortAwesome/angular-fontawesome/blob/master/docs/usage/icon-library.md
  19926. * for detailed description of library modes.
  19927. *
  19928. * - 'unset' - Components should lookup icon definitions in the global library
  19929. * and emit warning if they find a definition there. This option is a default
  19930. * to assist existing applications with a migration. Applications are expected
  19931. * to switch to using {@link FaIconLibrary}.
  19932. * - true - Components should lookup icon definitions in the global library.
  19933. * Note that global icon library is deprecated and support for it will be
  19934. * removed. This option can be used to temporarily suppress warnings.
  19935. * - false - Components should not lookup icon definitions in the global
  19936. * library. Library will throw an error if missing icon is found in the global
  19937. * library.
  19938. *
  19939. * @deprecated This option is deprecated since 0.5.0. In 0.6.0 default will
  19940. * be changed to false. In 0.8.0 the option will be removed together with the
  19941. * support for the global icon library.
  19942. *
  19943. * @default false
  19944. */
  19945. this.globalLibrary = false;
  19946. }
  19947. }
  19948. FaConfig.ɵfac = function FaConfig_Factory(t) { return new (t || FaConfig)(); };
  19949. FaConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function FaConfig_Factory() { return new FaConfig(); }, token: FaConfig, providedIn: "root" });
  19950. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaConfig, [{
  19951. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  19952. args: [{ providedIn: 'root' }]
  19953. }], function () { return []; }, null); })();
  19954. class FaIconLibrary {
  19955. constructor() {
  19956. this.definitions = {};
  19957. }
  19958. addIcons(...icons) {
  19959. for (const icon of icons) {
  19960. if (!(icon.prefix in this.definitions)) {
  19961. this.definitions[icon.prefix] = {};
  19962. }
  19963. this.definitions[icon.prefix][icon.iconName] = icon;
  19964. }
  19965. }
  19966. addIconPacks(...packs) {
  19967. for (const pack of packs) {
  19968. const icons = Object.keys(pack).map((key) => pack[key]);
  19969. this.addIcons(...icons);
  19970. }
  19971. }
  19972. getIconDefinition(prefix, name) {
  19973. if (prefix in this.definitions && name in this.definitions[prefix]) {
  19974. return this.definitions[prefix][name];
  19975. }
  19976. return null;
  19977. }
  19978. }
  19979. FaIconLibrary.ɵfac = function FaIconLibrary_Factory(t) { return new (t || FaIconLibrary)(); };
  19980. FaIconLibrary.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function FaIconLibrary_Factory() { return new FaIconLibrary(); }, token: FaIconLibrary, providedIn: "root" });
  19981. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaIconLibrary, [{
  19982. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  19983. args: [{ providedIn: 'root' }]
  19984. }], function () { return []; }, null); })();
  19985. const faWarnIfIconDefinitionMissing = (iconSpec) => {
  19986. throw new Error(`Could not find icon with iconName=${iconSpec.iconName} and prefix=${iconSpec.prefix} in the icon library.`);
  19987. };
  19988. const faWarnIfIconSpecMissing = () => {
  19989. throw new Error('Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.');
  19990. };
  19991. /**
  19992. * Fontawesome class list.
  19993. * Returns classes array by props.
  19994. */
  19995. const faClassList = (props) => {
  19996. const classes = {
  19997. 'fa-spin': props.spin,
  19998. 'fa-pulse': props.pulse,
  19999. 'fa-fw': props.fixedWidth,
  20000. 'fa-border': props.border,
  20001. 'fa-inverse': props.inverse,
  20002. 'fa-layers-counter': props.counter,
  20003. 'fa-flip-horizontal': props.flip === 'horizontal' || props.flip === 'both',
  20004. 'fa-flip-vertical': props.flip === 'vertical' || props.flip === 'both',
  20005. [`fa-${props.size}`]: props.size !== null,
  20006. [`fa-rotate-${props.rotate}`]: props.rotate !== null,
  20007. [`fa-pull-${props.pull}`]: props.pull !== null,
  20008. [`fa-stack-${props.stackItemSize}`]: props.stackItemSize != null,
  20009. };
  20010. return Object.keys(classes)
  20011. .map((key) => (classes[key] ? key : null))
  20012. .filter((key) => key);
  20013. };
  20014. /**
  20015. * Returns if is IconLookup or not.
  20016. */
  20017. const isIconLookup = (i) => {
  20018. return i.prefix !== undefined && i.iconName !== undefined;
  20019. };
  20020. /**
  20021. * Normalizing icon spec.
  20022. */
  20023. const faNormalizeIconSpec = (iconSpec, defaultPrefix) => {
  20024. if (isIconLookup(iconSpec)) {
  20025. return iconSpec;
  20026. }
  20027. if (Array.isArray(iconSpec) && iconSpec.length === 2) {
  20028. return { prefix: iconSpec[0], iconName: iconSpec[1] };
  20029. }
  20030. if (typeof iconSpec === 'string') {
  20031. return { prefix: defaultPrefix, iconName: iconSpec };
  20032. }
  20033. };
  20034. class FaStackItemSizeDirective {
  20035. constructor() {
  20036. /**
  20037. * Specify whether icon inside {@link FaStackComponent} should be rendered in
  20038. * regular size (1x) or as a larger icon (2x).
  20039. */
  20040. this.stackItemSize = '1x';
  20041. }
  20042. ngOnChanges(changes) {
  20043. if ('size' in changes) {
  20044. throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. ' +
  20045. 'Set size on the enclosing fa-stack instead: <fa-stack size="4x">...</fa-stack>.');
  20046. }
  20047. }
  20048. }
  20049. FaStackItemSizeDirective.ɵfac = function FaStackItemSizeDirective_Factory(t) { return new (t || FaStackItemSizeDirective)(); };
  20050. FaStackItemSizeDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: FaStackItemSizeDirective, selectors: [["fa-icon", "stackItemSize", ""], ["fa-duotone-icon", "stackItemSize", ""]], inputs: { stackItemSize: "stackItemSize", size: "size" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  20051. FaStackItemSizeDirective.propDecorators = {
  20052. stackItemSize: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20053. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  20054. };
  20055. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaStackItemSizeDirective, [{
  20056. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  20057. args: [{
  20058. // tslint:disable-next-line:directive-selector
  20059. selector: 'fa-icon[stackItemSize],fa-duotone-icon[stackItemSize]'
  20060. }]
  20061. }], function () { return []; }, { stackItemSize: [{
  20062. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20063. }], size: [{
  20064. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20065. }] }); })();
  20066. class FaIconComponent {
  20067. constructor(sanitizer, config, iconLibrary, stackItem) {
  20068. this.sanitizer = sanitizer;
  20069. this.config = config;
  20070. this.iconLibrary = iconLibrary;
  20071. this.stackItem = stackItem;
  20072. this.classes = [];
  20073. }
  20074. ngOnChanges(changes) {
  20075. if (this.icon == null && this.config.fallbackIcon == null) {
  20076. return faWarnIfIconSpecMissing();
  20077. }
  20078. let iconToBeRendered = null;
  20079. if (this.icon == null) {
  20080. iconToBeRendered = this.config.fallbackIcon;
  20081. }
  20082. else {
  20083. iconToBeRendered = this.icon;
  20084. }
  20085. if (changes) {
  20086. const iconDefinition = this.findIconDefinition(iconToBeRendered);
  20087. if (iconDefinition != null) {
  20088. const params = this.buildParams();
  20089. this.renderIcon(iconDefinition, params);
  20090. }
  20091. }
  20092. }
  20093. /**
  20094. * Programmatically trigger rendering of the icon.
  20095. *
  20096. * This method is useful, when creating {@link FaIconComponent} dynamically or
  20097. * changing its inputs programmatically as in these cases icon won't be
  20098. * re-rendered automatically.
  20099. */
  20100. render() {
  20101. this.ngOnChanges({});
  20102. }
  20103. findIconDefinition(i) {
  20104. const lookup = faNormalizeIconSpec(i, this.config.defaultPrefix);
  20105. if ('icon' in lookup) {
  20106. return lookup;
  20107. }
  20108. const definition = this.iconLibrary.getIconDefinition(lookup.prefix, lookup.iconName);
  20109. if (definition != null) {
  20110. return definition;
  20111. }
  20112. const globalDefinition = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_2__["findIconDefinition"])(lookup);
  20113. if (globalDefinition != null) {
  20114. const message = 'Global icon library is deprecated. ' +
  20115. 'Consult https://github.com/FortAwesome/angular-fontawesome/blob/master/UPGRADING.md ' +
  20116. 'for the migration instructions.';
  20117. if (this.config.globalLibrary === 'unset') {
  20118. console.error('FontAwesome: ' + message);
  20119. }
  20120. else if (!this.config.globalLibrary) {
  20121. throw new Error(message);
  20122. }
  20123. return globalDefinition;
  20124. }
  20125. faWarnIfIconDefinitionMissing(lookup);
  20126. return null;
  20127. }
  20128. buildParams() {
  20129. const classOpts = {
  20130. flip: this.flip,
  20131. spin: this.spin,
  20132. pulse: this.pulse,
  20133. border: this.border,
  20134. inverse: this.inverse,
  20135. size: this.size || null,
  20136. pull: this.pull || null,
  20137. rotate: this.rotate || null,
  20138. fixedWidth: typeof this.fixedWidth === 'boolean' ? this.fixedWidth : this.config.fixedWidth,
  20139. stackItemSize: this.stackItem != null ? this.stackItem.stackItemSize : null,
  20140. };
  20141. const parsedTransform = typeof this.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_2__["parse"].transform(this.transform) : this.transform;
  20142. return {
  20143. title: this.title,
  20144. transform: parsedTransform,
  20145. classes: [...faClassList(classOpts), ...this.classes],
  20146. mask: this.mask != null ? this.findIconDefinition(this.mask) : null,
  20147. styles: this.styles != null ? this.styles : {},
  20148. symbol: this.symbol,
  20149. attributes: {
  20150. role: this.a11yRole,
  20151. },
  20152. };
  20153. }
  20154. renderIcon(definition, params) {
  20155. const renderedIcon = Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_2__["icon"])(definition, params);
  20156. this.renderedIconHTML = this.sanitizer.bypassSecurityTrustHtml(renderedIcon.html.join('\n'));
  20157. }
  20158. }
  20159. FaIconComponent.ɵfac = function FaIconComponent_Factory(t) { return new (t || FaIconComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FaConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FaIconLibrary), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FaStackItemSizeDirective, 8)); };
  20160. FaIconComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FaIconComponent, selectors: [["fa-icon"]], hostAttrs: [1, "ng-fa-icon"], hostVars: 2, hostBindings: function FaIconComponent_HostBindings(rf, ctx) { if (rf & 2) {
  20161. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("innerHTML", ctx.renderedIconHTML, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
  20162. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("title", ctx.title);
  20163. } }, inputs: { classes: "classes", icon: "icon", title: "title", spin: "spin", pulse: "pulse", mask: "mask", styles: "styles", flip: "flip", size: "size", pull: "pull", border: "border", inverse: "inverse", symbol: "symbol", rotate: "rotate", fixedWidth: "fixedWidth", transform: "transform", a11yRole: "a11yRole" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 0, vars: 0, template: function FaIconComponent_Template(rf, ctx) { }, encapsulation: 2 });
  20164. FaIconComponent.ctorParameters = () => [
  20165. { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] },
  20166. { type: FaConfig },
  20167. { type: FaIconLibrary },
  20168. { type: FaStackItemSizeDirective, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] }
  20169. ];
  20170. FaIconComponent.propDecorators = {
  20171. icon: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20172. title: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20173. spin: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20174. pulse: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20175. mask: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20176. styles: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20177. flip: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20178. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20179. pull: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20180. border: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20181. inverse: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20182. symbol: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20183. rotate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20184. fixedWidth: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20185. classes: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20186. transform: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20187. a11yRole: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20188. renderedIconHTML: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['innerHTML',] }]
  20189. };
  20190. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaIconComponent, [{
  20191. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  20192. args: [{
  20193. selector: 'fa-icon',
  20194. template: ``,
  20195. host: {
  20196. class: 'ng-fa-icon',
  20197. '[attr.title]': 'title'
  20198. }
  20199. }]
  20200. }], function () { return [{ type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] }, { type: FaConfig }, { type: FaIconLibrary }, { type: FaStackItemSizeDirective, decorators: [{
  20201. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  20202. }] }]; }, { classes: [{
  20203. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20204. }], renderedIconHTML: [{
  20205. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  20206. args: ['innerHTML']
  20207. }], icon: [{
  20208. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20209. }], title: [{
  20210. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20211. }], spin: [{
  20212. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20213. }], pulse: [{
  20214. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20215. }], mask: [{
  20216. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20217. }], styles: [{
  20218. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20219. }], flip: [{
  20220. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20221. }], size: [{
  20222. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20223. }], pull: [{
  20224. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20225. }], border: [{
  20226. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20227. }], inverse: [{
  20228. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20229. }], symbol: [{
  20230. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20231. }], rotate: [{
  20232. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20233. }], fixedWidth: [{
  20234. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20235. }], transform: [{
  20236. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20237. }], a11yRole: [{
  20238. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20239. }] }); })();
  20240. class FaDuotoneIconComponent extends FaIconComponent {
  20241. findIconDefinition(i) {
  20242. const definition = super.findIconDefinition(i);
  20243. if (definition != null && !Array.isArray(definition.icon[4])) {
  20244. throw new Error('The specified icon does not appear to be a Duotone icon. ' +
  20245. 'Check that you specified the correct style: ' +
  20246. `<fa-duotone-icon [icon]="['fad', '${definition.iconName}']"></fa-duotone-icon> ` +
  20247. `or use: <fa-icon icon="${definition.iconName}"></fa-icon> instead.`);
  20248. }
  20249. return definition;
  20250. }
  20251. buildParams() {
  20252. const params = super.buildParams();
  20253. if (this.swapOpacity === true || this.swapOpacity === 'true') {
  20254. params.classes.push('fa-swap-opacity');
  20255. }
  20256. if (this.primaryOpacity != null) {
  20257. params.styles['--fa-primary-opacity'] = this.primaryOpacity.toString();
  20258. }
  20259. if (this.secondaryOpacity != null) {
  20260. params.styles['--fa-secondary-opacity'] = this.secondaryOpacity.toString();
  20261. }
  20262. if (this.primaryColor != null) {
  20263. params.styles['--fa-primary-color'] = this.primaryColor;
  20264. }
  20265. if (this.secondaryColor != null) {
  20266. params.styles['--fa-secondary-color'] = this.secondaryColor;
  20267. }
  20268. return params;
  20269. }
  20270. }
  20271. FaDuotoneIconComponent.ɵfac = function FaDuotoneIconComponent_Factory(t) { return ɵFaDuotoneIconComponent_BaseFactory(t || FaDuotoneIconComponent); };
  20272. FaDuotoneIconComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FaDuotoneIconComponent, selectors: [["fa-duotone-icon"]], inputs: { swapOpacity: "swapOpacity", primaryOpacity: "primaryOpacity", secondaryOpacity: "secondaryOpacity", primaryColor: "primaryColor", secondaryColor: "secondaryColor" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵInheritDefinitionFeature"]], decls: 0, vars: 0, template: function FaDuotoneIconComponent_Template(rf, ctx) { }, encapsulation: 2 });
  20273. FaDuotoneIconComponent.propDecorators = {
  20274. swapOpacity: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20275. primaryOpacity: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20276. secondaryOpacity: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20277. primaryColor: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20278. secondaryColor: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  20279. };
  20280. const ɵFaDuotoneIconComponent_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](FaDuotoneIconComponent);
  20281. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaDuotoneIconComponent, [{
  20282. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  20283. args: [{
  20284. selector: 'fa-duotone-icon',
  20285. template: ``
  20286. }]
  20287. }], null, { swapOpacity: [{
  20288. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20289. }], primaryOpacity: [{
  20290. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20291. }], secondaryOpacity: [{
  20292. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20293. }], primaryColor: [{
  20294. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20295. }], secondaryColor: [{
  20296. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20297. }] }); })();
  20298. /**
  20299. * Warns if parent component not existing.
  20300. */
  20301. const faWarnIfParentNotExist = (parent, parentName, childName) => {
  20302. if (!parent) {
  20303. throw new Error(`${childName} should be used as child of ${parentName} only.`);
  20304. }
  20305. };
  20306. /**
  20307. * Fontawesome layers.
  20308. */
  20309. class FaLayersComponent {
  20310. constructor(renderer, elementRef, config) {
  20311. this.renderer = renderer;
  20312. this.elementRef = elementRef;
  20313. this.config = config;
  20314. }
  20315. ngOnInit() {
  20316. this.renderer.addClass(this.elementRef.nativeElement, 'fa-layers');
  20317. this.fixedWidth = typeof this.fixedWidth === 'boolean' ? this.fixedWidth : this.config.fixedWidth;
  20318. }
  20319. ngOnChanges(changes) {
  20320. if ('size' in changes) {
  20321. if (changes.size.currentValue != null) {
  20322. this.renderer.addClass(this.elementRef.nativeElement, `fa-${changes.size.currentValue}`);
  20323. }
  20324. if (changes.size.previousValue != null) {
  20325. this.renderer.removeClass(this.elementRef.nativeElement, `fa-${changes.size.previousValue}`);
  20326. }
  20327. }
  20328. }
  20329. }
  20330. FaLayersComponent.ɵfac = function FaLayersComponent_Factory(t) { return new (t || FaLayersComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FaConfig)); };
  20331. FaLayersComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FaLayersComponent, selectors: [["fa-layers"]], hostVars: 2, hostBindings: function FaLayersComponent_HostBindings(rf, ctx) { if (rf & 2) {
  20332. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("fa-fw", ctx.fixedWidth);
  20333. } }, inputs: { fixedWidth: "fixedWidth", size: "size" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c1, decls: 1, vars: 0, template: function FaLayersComponent_Template(rf, ctx) { if (rf & 1) {
  20334. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c0);
  20335. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);
  20336. } }, encapsulation: 2 });
  20337. FaLayersComponent.ctorParameters = () => [
  20338. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  20339. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  20340. { type: FaConfig }
  20341. ];
  20342. FaLayersComponent.propDecorators = {
  20343. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20344. fixedWidth: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.fa-fw',] }]
  20345. };
  20346. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaLayersComponent, [{
  20347. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  20348. args: [{
  20349. selector: 'fa-layers',
  20350. template: `<ng-content select="fa-icon, fa-duotone-icon, fa-layers-text, fa-layers-counter"></ng-content>`
  20351. }]
  20352. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: FaConfig }]; }, { fixedWidth: [{
  20353. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20354. }, {
  20355. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  20356. args: ['class.fa-fw']
  20357. }], size: [{
  20358. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20359. }] }); })();
  20360. class FaLayersCounterComponent {
  20361. constructor(parent, sanitizer) {
  20362. this.parent = parent;
  20363. this.sanitizer = sanitizer;
  20364. this.classes = [];
  20365. faWarnIfParentNotExist(this.parent, 'FaLayersComponent', this.constructor.name);
  20366. }
  20367. ngOnChanges(changes) {
  20368. if (changes) {
  20369. const params = this.buildParams();
  20370. this.updateContent(params);
  20371. }
  20372. }
  20373. buildParams() {
  20374. return {
  20375. title: this.title,
  20376. classes: this.classes,
  20377. styles: this.styles,
  20378. };
  20379. }
  20380. updateContent(params) {
  20381. this.renderedHTML = this.sanitizer.bypassSecurityTrustHtml(Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_2__["counter"])(this.content || '', params).html.join(''));
  20382. }
  20383. }
  20384. FaLayersCounterComponent.ɵfac = function FaLayersCounterComponent_Factory(t) { return new (t || FaLayersCounterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FaLayersComponent, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"])); };
  20385. FaLayersCounterComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FaLayersCounterComponent, selectors: [["fa-layers-counter"]], hostAttrs: [1, "ng-fa-layers-counter"], hostVars: 1, hostBindings: function FaLayersCounterComponent_HostBindings(rf, ctx) { if (rf & 2) {
  20386. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("innerHTML", ctx.renderedHTML, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
  20387. } }, inputs: { classes: "classes", content: "content", title: "title", styles: "styles" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 0, vars: 0, template: function FaLayersCounterComponent_Template(rf, ctx) { }, encapsulation: 2 });
  20388. FaLayersCounterComponent.ctorParameters = () => [
  20389. { type: FaLayersComponent, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] },
  20390. { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] }
  20391. ];
  20392. FaLayersCounterComponent.propDecorators = {
  20393. content: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20394. title: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20395. styles: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20396. classes: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20397. renderedHTML: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['innerHTML',] }]
  20398. };
  20399. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaLayersCounterComponent, [{
  20400. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  20401. args: [{
  20402. selector: 'fa-layers-counter',
  20403. template: '',
  20404. host: {
  20405. class: 'ng-fa-layers-counter'
  20406. }
  20407. }]
  20408. }], function () { return [{ type: FaLayersComponent, decorators: [{
  20409. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  20410. }] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] }]; }, { classes: [{
  20411. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20412. }], renderedHTML: [{
  20413. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  20414. args: ['innerHTML']
  20415. }], content: [{
  20416. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20417. }], title: [{
  20418. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20419. }], styles: [{
  20420. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20421. }] }); })();
  20422. class FaLayersTextComponent {
  20423. constructor(parent, sanitizer) {
  20424. this.parent = parent;
  20425. this.sanitizer = sanitizer;
  20426. this.classes = [];
  20427. faWarnIfParentNotExist(this.parent, 'FaLayersComponent', this.constructor.name);
  20428. }
  20429. ngOnChanges(changes) {
  20430. if (changes) {
  20431. const params = this.buildParams();
  20432. this.updateContent(params);
  20433. }
  20434. }
  20435. /**
  20436. * Updating params by component props.
  20437. */
  20438. buildParams() {
  20439. const classOpts = {
  20440. flip: this.flip,
  20441. spin: this.spin,
  20442. pulse: this.pulse,
  20443. border: this.border,
  20444. inverse: this.inverse,
  20445. size: this.size || null,
  20446. pull: this.pull || null,
  20447. rotate: this.rotate || null,
  20448. fixedWidth: this.fixedWidth,
  20449. };
  20450. const parsedTransform = typeof this.transform === 'string' ? _fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_2__["parse"].transform(this.transform) : this.transform;
  20451. return {
  20452. transform: parsedTransform,
  20453. classes: [...faClassList(classOpts), ...this.classes],
  20454. title: this.title,
  20455. styles: this.styles,
  20456. };
  20457. }
  20458. updateContent(params) {
  20459. this.renderedHTML = this.sanitizer.bypassSecurityTrustHtml(Object(_fortawesome_fontawesome_svg_core__WEBPACK_IMPORTED_MODULE_2__["text"])(this.content || '', params).html.join('\n'));
  20460. }
  20461. }
  20462. FaLayersTextComponent.ɵfac = function FaLayersTextComponent_Factory(t) { return new (t || FaLayersTextComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](FaLayersComponent, 8), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"])); };
  20463. FaLayersTextComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FaLayersTextComponent, selectors: [["fa-layers-text"]], hostAttrs: [1, "ng-fa-layers-text"], hostVars: 1, hostBindings: function FaLayersTextComponent_HostBindings(rf, ctx) { if (rf & 2) {
  20464. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵhostProperty"]("innerHTML", ctx.renderedHTML, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
  20465. } }, inputs: { classes: "classes", content: "content", title: "title", styles: "styles", spin: "spin", pulse: "pulse", flip: "flip", size: "size", pull: "pull", border: "border", inverse: "inverse", rotate: "rotate", fixedWidth: "fixedWidth", transform: "transform" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 0, vars: 0, template: function FaLayersTextComponent_Template(rf, ctx) { }, encapsulation: 2 });
  20466. FaLayersTextComponent.ctorParameters = () => [
  20467. { type: FaLayersComponent, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] },
  20468. { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] }
  20469. ];
  20470. FaLayersTextComponent.propDecorators = {
  20471. content: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20472. title: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20473. styles: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20474. classes: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20475. spin: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20476. pulse: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20477. flip: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20478. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20479. pull: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20480. border: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20481. inverse: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20482. rotate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20483. fixedWidth: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20484. transform: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  20485. renderedHTML: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['innerHTML',] }]
  20486. };
  20487. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaLayersTextComponent, [{
  20488. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  20489. args: [{
  20490. selector: 'fa-layers-text',
  20491. template: '',
  20492. host: {
  20493. class: 'ng-fa-layers-text'
  20494. }
  20495. }]
  20496. }], function () { return [{ type: FaLayersComponent, decorators: [{
  20497. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  20498. }] }, { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] }]; }, { classes: [{
  20499. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20500. }], renderedHTML: [{
  20501. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  20502. args: ['innerHTML']
  20503. }], content: [{
  20504. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20505. }], title: [{
  20506. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20507. }], styles: [{
  20508. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20509. }], spin: [{
  20510. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20511. }], pulse: [{
  20512. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20513. }], flip: [{
  20514. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20515. }], size: [{
  20516. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20517. }], pull: [{
  20518. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20519. }], border: [{
  20520. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20521. }], inverse: [{
  20522. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20523. }], rotate: [{
  20524. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20525. }], fixedWidth: [{
  20526. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20527. }], transform: [{
  20528. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20529. }] }); })();
  20530. class FaStackComponent {
  20531. constructor(renderer, elementRef) {
  20532. this.renderer = renderer;
  20533. this.elementRef = elementRef;
  20534. }
  20535. ngOnInit() {
  20536. this.renderer.addClass(this.elementRef.nativeElement, 'fa-stack');
  20537. }
  20538. ngOnChanges(changes) {
  20539. if ('size' in changes) {
  20540. if (changes.size.currentValue != null) {
  20541. this.renderer.addClass(this.elementRef.nativeElement, `fa-${changes.size.currentValue}`);
  20542. }
  20543. if (changes.size.previousValue != null) {
  20544. this.renderer.removeClass(this.elementRef.nativeElement, `fa-${changes.size.previousValue}`);
  20545. }
  20546. }
  20547. }
  20548. }
  20549. FaStackComponent.ɵfac = function FaStackComponent_Factory(t) { return new (t || FaStackComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  20550. FaStackComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: FaStackComponent, selectors: [["fa-stack"]], inputs: { size: "size" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c3, decls: 1, vars: 0, template: function FaStackComponent_Template(rf, ctx) { if (rf & 1) {
  20551. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"](_c2);
  20552. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);
  20553. } }, encapsulation: 2 });
  20554. FaStackComponent.ctorParameters = () => [
  20555. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  20556. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  20557. ];
  20558. FaStackComponent.propDecorators = {
  20559. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  20560. };
  20561. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FaStackComponent, [{
  20562. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  20563. args: [{
  20564. selector: 'fa-stack',
  20565. // TODO: See if it is better to select fa-icon and throw if it does not have stackItemSize directive
  20566. template: `<ng-content select="fa-icon[stackItemSize],fa-duotone-icon[stackItemSize]"></ng-content>`
  20567. }]
  20568. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { size: [{
  20569. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  20570. }] }); })();
  20571. class FontAwesomeModule {
  20572. }
  20573. FontAwesomeModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: FontAwesomeModule });
  20574. FontAwesomeModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function FontAwesomeModule_Factory(t) { return new (t || FontAwesomeModule)(); } });
  20575. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](FontAwesomeModule, { declarations: [FaIconComponent, FaDuotoneIconComponent, FaLayersComponent, FaLayersTextComponent, FaLayersCounterComponent, FaStackComponent, FaStackItemSizeDirective], exports: [FaIconComponent, FaDuotoneIconComponent, FaLayersComponent, FaLayersTextComponent, FaLayersCounterComponent, FaStackComponent, FaStackItemSizeDirective] }); })();
  20576. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FontAwesomeModule, [{
  20577. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  20578. args: [{
  20579. declarations: [
  20580. FaIconComponent,
  20581. FaDuotoneIconComponent,
  20582. FaLayersComponent,
  20583. FaLayersTextComponent,
  20584. FaLayersCounterComponent,
  20585. FaStackComponent,
  20586. FaStackItemSizeDirective,
  20587. ],
  20588. exports: [
  20589. FaIconComponent,
  20590. FaDuotoneIconComponent,
  20591. FaLayersComponent,
  20592. FaLayersTextComponent,
  20593. FaLayersCounterComponent,
  20594. FaStackComponent,
  20595. FaStackItemSizeDirective,
  20596. ]
  20597. }]
  20598. }], null, null); })();
  20599. /**
  20600. * Generated bundle index. Do not edit.
  20601. */
  20602. //# sourceMappingURL=angular-fontawesome.js.map
  20603. /***/ }),
  20604. /***/ "6eBy":
  20605. /*!*******************************************************************!*\
  20606. !*** ./node_modules/rxjs/_esm2015/internal/operators/debounce.js ***!
  20607. \*******************************************************************/
  20608. /*! exports provided: debounce */
  20609. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20610. "use strict";
  20611. __webpack_require__.r(__webpack_exports__);
  20612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return debounce; });
  20613. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  20614. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  20615. function debounce(durationSelector) {
  20616. return (source) => source.lift(new DebounceOperator(durationSelector));
  20617. }
  20618. class DebounceOperator {
  20619. constructor(durationSelector) {
  20620. this.durationSelector = durationSelector;
  20621. }
  20622. call(subscriber, source) {
  20623. return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector));
  20624. }
  20625. }
  20626. class DebounceSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  20627. constructor(destination, durationSelector) {
  20628. super(destination);
  20629. this.durationSelector = durationSelector;
  20630. this.hasValue = false;
  20631. this.durationSubscription = null;
  20632. }
  20633. _next(value) {
  20634. try {
  20635. const result = this.durationSelector.call(this, value);
  20636. if (result) {
  20637. this._tryNext(value, result);
  20638. }
  20639. }
  20640. catch (err) {
  20641. this.destination.error(err);
  20642. }
  20643. }
  20644. _complete() {
  20645. this.emitValue();
  20646. this.destination.complete();
  20647. }
  20648. _tryNext(value, duration) {
  20649. let subscription = this.durationSubscription;
  20650. this.value = value;
  20651. this.hasValue = true;
  20652. if (subscription) {
  20653. subscription.unsubscribe();
  20654. this.remove(subscription);
  20655. }
  20656. subscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, duration);
  20657. if (subscription && !subscription.closed) {
  20658. this.add(this.durationSubscription = subscription);
  20659. }
  20660. }
  20661. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  20662. this.emitValue();
  20663. }
  20664. notifyComplete() {
  20665. this.emitValue();
  20666. }
  20667. emitValue() {
  20668. if (this.hasValue) {
  20669. const value = this.value;
  20670. const subscription = this.durationSubscription;
  20671. if (subscription) {
  20672. this.durationSubscription = null;
  20673. subscription.unsubscribe();
  20674. this.remove(subscription);
  20675. }
  20676. this.value = null;
  20677. this.hasValue = false;
  20678. super._next(value);
  20679. }
  20680. }
  20681. }
  20682. //# sourceMappingURL=debounce.js.map
  20683. /***/ }),
  20684. /***/ "7+OI":
  20685. /*!******************************************************************!*\
  20686. !*** ./node_modules/rxjs/_esm2015/internal/util/isObservable.js ***!
  20687. \******************************************************************/
  20688. /*! exports provided: isObservable */
  20689. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20690. "use strict";
  20691. __webpack_require__.r(__webpack_exports__);
  20692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObservable", function() { return isObservable; });
  20693. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  20694. function isObservable(obj) {
  20695. return !!obj && (obj instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"] || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function'));
  20696. }
  20697. //# sourceMappingURL=isObservable.js.map
  20698. /***/ }),
  20699. /***/ "7HRe":
  20700. /*!********************************************************************!*\
  20701. !*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduled.js ***!
  20702. \********************************************************************/
  20703. /*! exports provided: scheduled */
  20704. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20705. "use strict";
  20706. __webpack_require__.r(__webpack_exports__);
  20707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduled", function() { return scheduled; });
  20708. /* harmony import */ var _scheduleObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./scheduleObservable */ "5B2Y");
  20709. /* harmony import */ var _schedulePromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./schedulePromise */ "4yVj");
  20710. /* harmony import */ var _scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./scheduleArray */ "jZKg");
  20711. /* harmony import */ var _scheduleIterable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./scheduleIterable */ "MBAA");
  20712. /* harmony import */ var _util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isInteropObservable */ "QIAL");
  20713. /* harmony import */ var _util_isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/isPromise */ "c2HN");
  20714. /* harmony import */ var _util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util/isArrayLike */ "I55L");
  20715. /* harmony import */ var _util_isIterable__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../util/isIterable */ "CMyj");
  20716. function scheduled(input, scheduler) {
  20717. if (input != null) {
  20718. if (Object(_util_isInteropObservable__WEBPACK_IMPORTED_MODULE_4__["isInteropObservable"])(input)) {
  20719. return Object(_scheduleObservable__WEBPACK_IMPORTED_MODULE_0__["scheduleObservable"])(input, scheduler);
  20720. }
  20721. else if (Object(_util_isPromise__WEBPACK_IMPORTED_MODULE_5__["isPromise"])(input)) {
  20722. return Object(_schedulePromise__WEBPACK_IMPORTED_MODULE_1__["schedulePromise"])(input, scheduler);
  20723. }
  20724. else if (Object(_util_isArrayLike__WEBPACK_IMPORTED_MODULE_6__["isArrayLike"])(input)) {
  20725. return Object(_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(input, scheduler);
  20726. }
  20727. else if (Object(_util_isIterable__WEBPACK_IMPORTED_MODULE_7__["isIterable"])(input) || typeof input === 'string') {
  20728. return Object(_scheduleIterable__WEBPACK_IMPORTED_MODULE_3__["scheduleIterable"])(input, scheduler);
  20729. }
  20730. }
  20731. throw new TypeError((input !== null && typeof input || input) + ' is not observable');
  20732. }
  20733. //# sourceMappingURL=scheduled.js.map
  20734. /***/ }),
  20735. /***/ "7Hc7":
  20736. /*!***************************************************************!*\
  20737. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/asap.js ***!
  20738. \***************************************************************/
  20739. /*! exports provided: asap */
  20740. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20741. "use strict";
  20742. __webpack_require__.r(__webpack_exports__);
  20743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asap", function() { return asap; });
  20744. /* harmony import */ var _AsapAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsapAction */ "Pz8W");
  20745. /* harmony import */ var _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsapScheduler */ "RUbi");
  20746. const asap = new _AsapScheduler__WEBPACK_IMPORTED_MODULE_1__["AsapScheduler"](_AsapAction__WEBPACK_IMPORTED_MODULE_0__["AsapAction"]);
  20747. //# sourceMappingURL=asap.js.map
  20748. /***/ }),
  20749. /***/ "7O5W":
  20750. /*!********************************************************************!*\
  20751. !*** ./node_modules/@fortawesome/fontawesome-svg-core/index.es.js ***!
  20752. \********************************************************************/
  20753. /*! exports provided: icon, noAuto, config, toHtml, layer, text, counter, library, dom, parse, findIconDefinition */
  20754. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  20755. "use strict";
  20756. __webpack_require__.r(__webpack_exports__);
  20757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "icon", function() { return icon; });
  20758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noAuto", function() { return noAuto; });
  20759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "config", function() { return config; });
  20760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toHtml", function() { return toHtml; });
  20761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "layer", function() { return layer; });
  20762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "text", function() { return text; });
  20763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "counter", function() { return counter; });
  20764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "library", function() { return library; });
  20765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dom", function() { return dom; });
  20766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parse", function() { return parse; });
  20767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIconDefinition", function() { return findIconDefinition; });
  20768. /*!
  20769. * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
  20770. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  20771. */
  20772. function _typeof(obj) {
  20773. if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
  20774. _typeof = function (obj) {
  20775. return typeof obj;
  20776. };
  20777. } else {
  20778. _typeof = function (obj) {
  20779. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
  20780. };
  20781. }
  20782. return _typeof(obj);
  20783. }
  20784. function _classCallCheck(instance, Constructor) {
  20785. if (!(instance instanceof Constructor)) {
  20786. throw new TypeError("Cannot call a class as a function");
  20787. }
  20788. }
  20789. function _defineProperties(target, props) {
  20790. for (var i = 0; i < props.length; i++) {
  20791. var descriptor = props[i];
  20792. descriptor.enumerable = descriptor.enumerable || false;
  20793. descriptor.configurable = true;
  20794. if ("value" in descriptor) descriptor.writable = true;
  20795. Object.defineProperty(target, descriptor.key, descriptor);
  20796. }
  20797. }
  20798. function _createClass(Constructor, protoProps, staticProps) {
  20799. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  20800. if (staticProps) _defineProperties(Constructor, staticProps);
  20801. return Constructor;
  20802. }
  20803. function _defineProperty(obj, key, value) {
  20804. if (key in obj) {
  20805. Object.defineProperty(obj, key, {
  20806. value: value,
  20807. enumerable: true,
  20808. configurable: true,
  20809. writable: true
  20810. });
  20811. } else {
  20812. obj[key] = value;
  20813. }
  20814. return obj;
  20815. }
  20816. function _objectSpread(target) {
  20817. for (var i = 1; i < arguments.length; i++) {
  20818. var source = arguments[i] != null ? arguments[i] : {};
  20819. var ownKeys = Object.keys(source);
  20820. if (typeof Object.getOwnPropertySymbols === 'function') {
  20821. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  20822. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  20823. }));
  20824. }
  20825. ownKeys.forEach(function (key) {
  20826. _defineProperty(target, key, source[key]);
  20827. });
  20828. }
  20829. return target;
  20830. }
  20831. function _slicedToArray(arr, i) {
  20832. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  20833. }
  20834. function _toConsumableArray(arr) {
  20835. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  20836. }
  20837. function _arrayWithoutHoles(arr) {
  20838. if (Array.isArray(arr)) {
  20839. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  20840. return arr2;
  20841. }
  20842. }
  20843. function _arrayWithHoles(arr) {
  20844. if (Array.isArray(arr)) return arr;
  20845. }
  20846. function _iterableToArray(iter) {
  20847. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  20848. }
  20849. function _iterableToArrayLimit(arr, i) {
  20850. var _arr = [];
  20851. var _n = true;
  20852. var _d = false;
  20853. var _e = undefined;
  20854. try {
  20855. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  20856. _arr.push(_s.value);
  20857. if (i && _arr.length === i) break;
  20858. }
  20859. } catch (err) {
  20860. _d = true;
  20861. _e = err;
  20862. } finally {
  20863. try {
  20864. if (!_n && _i["return"] != null) _i["return"]();
  20865. } finally {
  20866. if (_d) throw _e;
  20867. }
  20868. }
  20869. return _arr;
  20870. }
  20871. function _nonIterableSpread() {
  20872. throw new TypeError("Invalid attempt to spread non-iterable instance");
  20873. }
  20874. function _nonIterableRest() {
  20875. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  20876. }
  20877. var noop = function noop() {};
  20878. var _WINDOW = {};
  20879. var _DOCUMENT = {};
  20880. var _MUTATION_OBSERVER = null;
  20881. var _PERFORMANCE = {
  20882. mark: noop,
  20883. measure: noop
  20884. };
  20885. try {
  20886. if (typeof window !== 'undefined') _WINDOW = window;
  20887. if (typeof document !== 'undefined') _DOCUMENT = document;
  20888. if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
  20889. if (typeof performance !== 'undefined') _PERFORMANCE = performance;
  20890. } catch (e) {}
  20891. var _ref = _WINDOW.navigator || {},
  20892. _ref$userAgent = _ref.userAgent,
  20893. userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
  20894. var WINDOW = _WINDOW;
  20895. var DOCUMENT = _DOCUMENT;
  20896. var MUTATION_OBSERVER = _MUTATION_OBSERVER;
  20897. var PERFORMANCE = _PERFORMANCE;
  20898. var IS_BROWSER = !!WINDOW.document;
  20899. var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
  20900. var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
  20901. var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
  20902. var UNITS_IN_GRID = 16;
  20903. var DEFAULT_FAMILY_PREFIX = 'fa';
  20904. var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
  20905. var DATA_FA_I2SVG = 'data-fa-i2svg';
  20906. var DATA_FA_PSEUDO_ELEMENT = 'data-fa-pseudo-element';
  20907. var DATA_FA_PSEUDO_ELEMENT_PENDING = 'data-fa-pseudo-element-pending';
  20908. var DATA_PREFIX = 'data-prefix';
  20909. var DATA_ICON = 'data-icon';
  20910. var HTML_CLASS_I2SVG_BASE_CLASS = 'fontawesome-i2svg';
  20911. var MUTATION_APPROACH_ASYNC = 'async';
  20912. var TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS = ['HTML', 'HEAD', 'STYLE', 'SCRIPT'];
  20913. var PRODUCTION = function () {
  20914. try {
  20915. return "development" === 'production';
  20916. } catch (e) {
  20917. return false;
  20918. }
  20919. }();
  20920. var PREFIX_TO_STYLE = {
  20921. 'fas': 'solid',
  20922. 'far': 'regular',
  20923. 'fal': 'light',
  20924. 'fad': 'duotone',
  20925. 'fab': 'brands',
  20926. 'fak': 'kit',
  20927. 'fa': 'solid'
  20928. };
  20929. var STYLE_TO_PREFIX = {
  20930. 'solid': 'fas',
  20931. 'regular': 'far',
  20932. 'light': 'fal',
  20933. 'duotone': 'fad',
  20934. 'brands': 'fab',
  20935. 'kit': 'fak'
  20936. };
  20937. var LAYERS_TEXT_CLASSNAME = 'fa-layers-text';
  20938. var FONT_FAMILY_PATTERN = /Font Awesome ([5 ]*)(Solid|Regular|Light|Duotone|Brands|Free|Pro|Kit).*/; // TODO: do we need to handle font-weight for kit SVG pseudo-elements?
  20939. var FONT_WEIGHT_TO_PREFIX = {
  20940. '900': 'fas',
  20941. '400': 'far',
  20942. 'normal': 'far',
  20943. '300': 'fal'
  20944. };
  20945. var oneToTen = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
  20946. var oneToTwenty = oneToTen.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]);
  20947. var ATTRIBUTES_WATCHED_FOR_MUTATION = ['class', 'data-prefix', 'data-icon', 'data-fa-transform', 'data-fa-mask'];
  20948. var DUOTONE_CLASSES = {
  20949. GROUP: 'group',
  20950. SWAP_OPACITY: 'swap-opacity',
  20951. PRIMARY: 'primary',
  20952. SECONDARY: 'secondary'
  20953. };
  20954. var RESERVED_CLASSES = ['xs', 'sm', 'lg', 'fw', 'ul', 'li', 'border', 'pull-left', 'pull-right', 'spin', 'pulse', 'rotate-90', 'rotate-180', 'rotate-270', 'flip-horizontal', 'flip-vertical', 'flip-both', 'stack', 'stack-1x', 'stack-2x', 'inverse', 'layers', 'layers-text', 'layers-counter', DUOTONE_CLASSES.GROUP, DUOTONE_CLASSES.SWAP_OPACITY, DUOTONE_CLASSES.PRIMARY, DUOTONE_CLASSES.SECONDARY].concat(oneToTen.map(function (n) {
  20955. return "".concat(n, "x");
  20956. })).concat(oneToTwenty.map(function (n) {
  20957. return "w-".concat(n);
  20958. }));
  20959. var initial = WINDOW.FontAwesomeConfig || {};
  20960. function getAttrConfig(attr) {
  20961. var element = DOCUMENT.querySelector('script[' + attr + ']');
  20962. if (element) {
  20963. return element.getAttribute(attr);
  20964. }
  20965. }
  20966. function coerce(val) {
  20967. // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
  20968. // We'll assume that this is an indication that it should be toggled to true
  20969. // For example <script data-search-pseudo-elements src="..."></script>
  20970. if (val === '') return true;
  20971. if (val === 'false') return false;
  20972. if (val === 'true') return true;
  20973. return val;
  20974. }
  20975. if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
  20976. var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
  20977. attrs.forEach(function (_ref) {
  20978. var _ref2 = _slicedToArray(_ref, 2),
  20979. attr = _ref2[0],
  20980. key = _ref2[1];
  20981. var val = coerce(getAttrConfig(attr));
  20982. if (val !== undefined && val !== null) {
  20983. initial[key] = val;
  20984. }
  20985. });
  20986. }
  20987. var _default = {
  20988. familyPrefix: DEFAULT_FAMILY_PREFIX,
  20989. replacementClass: DEFAULT_REPLACEMENT_CLASS,
  20990. autoReplaceSvg: true,
  20991. autoAddCss: true,
  20992. autoA11y: true,
  20993. searchPseudoElements: false,
  20994. observeMutations: true,
  20995. mutateApproach: 'async',
  20996. keepOriginalSource: true,
  20997. measurePerformance: false,
  20998. showMissingIcons: true
  20999. };
  21000. var _config = _objectSpread({}, _default, initial);
  21001. if (!_config.autoReplaceSvg) _config.observeMutations = false;
  21002. var config = _objectSpread({}, _config);
  21003. WINDOW.FontAwesomeConfig = config;
  21004. var w = WINDOW || {};
  21005. if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
  21006. if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
  21007. if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
  21008. if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
  21009. var namespace = w[NAMESPACE_IDENTIFIER];
  21010. var functions = [];
  21011. var listener = function listener() {
  21012. DOCUMENT.removeEventListener('DOMContentLoaded', listener);
  21013. loaded = 1;
  21014. functions.map(function (fn) {
  21015. return fn();
  21016. });
  21017. };
  21018. var loaded = false;
  21019. if (IS_DOM) {
  21020. loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
  21021. if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
  21022. }
  21023. function domready (fn) {
  21024. if (!IS_DOM) return;
  21025. loaded ? setTimeout(fn, 0) : functions.push(fn);
  21026. }
  21027. var PENDING = 'pending';
  21028. var SETTLED = 'settled';
  21029. var FULFILLED = 'fulfilled';
  21030. var REJECTED = 'rejected';
  21031. var NOOP = function NOOP() {};
  21032. var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
  21033. var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
  21034. var asyncQueue = [];
  21035. var asyncTimer;
  21036. function asyncFlush() {
  21037. // run promise callbacks
  21038. for (var i = 0; i < asyncQueue.length; i++) {
  21039. asyncQueue[i][0](asyncQueue[i][1]);
  21040. } // reset async asyncQueue
  21041. asyncQueue = [];
  21042. asyncTimer = false;
  21043. }
  21044. function asyncCall(callback, arg) {
  21045. asyncQueue.push([callback, arg]);
  21046. if (!asyncTimer) {
  21047. asyncTimer = true;
  21048. asyncSetTimer(asyncFlush, 0);
  21049. }
  21050. }
  21051. function invokeResolver(resolver, promise) {
  21052. function resolvePromise(value) {
  21053. resolve(promise, value);
  21054. }
  21055. function rejectPromise(reason) {
  21056. reject(promise, reason);
  21057. }
  21058. try {
  21059. resolver(resolvePromise, rejectPromise);
  21060. } catch (e) {
  21061. rejectPromise(e);
  21062. }
  21063. }
  21064. function invokeCallback(subscriber) {
  21065. var owner = subscriber.owner;
  21066. var settled = owner._state;
  21067. var value = owner._data;
  21068. var callback = subscriber[settled];
  21069. var promise = subscriber.then;
  21070. if (typeof callback === 'function') {
  21071. settled = FULFILLED;
  21072. try {
  21073. value = callback(value);
  21074. } catch (e) {
  21075. reject(promise, e);
  21076. }
  21077. }
  21078. if (!handleThenable(promise, value)) {
  21079. if (settled === FULFILLED) {
  21080. resolve(promise, value);
  21081. }
  21082. if (settled === REJECTED) {
  21083. reject(promise, value);
  21084. }
  21085. }
  21086. }
  21087. function handleThenable(promise, value) {
  21088. var resolved;
  21089. try {
  21090. if (promise === value) {
  21091. throw new TypeError('A promises callback cannot return that same promise.');
  21092. }
  21093. if (value && (typeof value === 'function' || _typeof(value) === 'object')) {
  21094. // then should be retrieved only once
  21095. var then = value.then;
  21096. if (typeof then === 'function') {
  21097. then.call(value, function (val) {
  21098. if (!resolved) {
  21099. resolved = true;
  21100. if (value === val) {
  21101. fulfill(promise, val);
  21102. } else {
  21103. resolve(promise, val);
  21104. }
  21105. }
  21106. }, function (reason) {
  21107. if (!resolved) {
  21108. resolved = true;
  21109. reject(promise, reason);
  21110. }
  21111. });
  21112. return true;
  21113. }
  21114. }
  21115. } catch (e) {
  21116. if (!resolved) {
  21117. reject(promise, e);
  21118. }
  21119. return true;
  21120. }
  21121. return false;
  21122. }
  21123. function resolve(promise, value) {
  21124. if (promise === value || !handleThenable(promise, value)) {
  21125. fulfill(promise, value);
  21126. }
  21127. }
  21128. function fulfill(promise, value) {
  21129. if (promise._state === PENDING) {
  21130. promise._state = SETTLED;
  21131. promise._data = value;
  21132. asyncCall(publishFulfillment, promise);
  21133. }
  21134. }
  21135. function reject(promise, reason) {
  21136. if (promise._state === PENDING) {
  21137. promise._state = SETTLED;
  21138. promise._data = reason;
  21139. asyncCall(publishRejection, promise);
  21140. }
  21141. }
  21142. function publish(promise) {
  21143. promise._then = promise._then.forEach(invokeCallback);
  21144. }
  21145. function publishFulfillment(promise) {
  21146. promise._state = FULFILLED;
  21147. publish(promise);
  21148. }
  21149. function publishRejection(promise) {
  21150. promise._state = REJECTED;
  21151. publish(promise);
  21152. if (!promise._handled && isNode) {
  21153. global.process.emit('unhandledRejection', promise._data, promise);
  21154. }
  21155. }
  21156. function notifyRejectionHandled(promise) {
  21157. global.process.emit('rejectionHandled', promise);
  21158. }
  21159. /**
  21160. * @class
  21161. */
  21162. function P(resolver) {
  21163. if (typeof resolver !== 'function') {
  21164. throw new TypeError('Promise resolver ' + resolver + ' is not a function');
  21165. }
  21166. if (this instanceof P === false) {
  21167. throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
  21168. }
  21169. this._then = [];
  21170. invokeResolver(resolver, this);
  21171. }
  21172. P.prototype = {
  21173. constructor: P,
  21174. _state: PENDING,
  21175. _then: null,
  21176. _data: undefined,
  21177. _handled: false,
  21178. then: function then(onFulfillment, onRejection) {
  21179. var subscriber = {
  21180. owner: this,
  21181. then: new this.constructor(NOOP),
  21182. fulfilled: onFulfillment,
  21183. rejected: onRejection
  21184. };
  21185. if ((onRejection || onFulfillment) && !this._handled) {
  21186. this._handled = true;
  21187. if (this._state === REJECTED && isNode) {
  21188. asyncCall(notifyRejectionHandled, this);
  21189. }
  21190. }
  21191. if (this._state === FULFILLED || this._state === REJECTED) {
  21192. // already resolved, call callback async
  21193. asyncCall(invokeCallback, subscriber);
  21194. } else {
  21195. // subscribe
  21196. this._then.push(subscriber);
  21197. }
  21198. return subscriber.then;
  21199. },
  21200. catch: function _catch(onRejection) {
  21201. return this.then(null, onRejection);
  21202. }
  21203. };
  21204. P.all = function (promises) {
  21205. if (!Array.isArray(promises)) {
  21206. throw new TypeError('You must pass an array to Promise.all().');
  21207. }
  21208. return new P(function (resolve, reject) {
  21209. var results = [];
  21210. var remaining = 0;
  21211. function resolver(index) {
  21212. remaining++;
  21213. return function (value) {
  21214. results[index] = value;
  21215. if (! --remaining) {
  21216. resolve(results);
  21217. }
  21218. };
  21219. }
  21220. for (var i = 0, promise; i < promises.length; i++) {
  21221. promise = promises[i];
  21222. if (promise && typeof promise.then === 'function') {
  21223. promise.then(resolver(i), reject);
  21224. } else {
  21225. results[i] = promise;
  21226. }
  21227. }
  21228. if (!remaining) {
  21229. resolve(results);
  21230. }
  21231. });
  21232. };
  21233. P.race = function (promises) {
  21234. if (!Array.isArray(promises)) {
  21235. throw new TypeError('You must pass an array to Promise.race().');
  21236. }
  21237. return new P(function (resolve, reject) {
  21238. for (var i = 0, promise; i < promises.length; i++) {
  21239. promise = promises[i];
  21240. if (promise && typeof promise.then === 'function') {
  21241. promise.then(resolve, reject);
  21242. } else {
  21243. resolve(promise);
  21244. }
  21245. }
  21246. });
  21247. };
  21248. P.resolve = function (value) {
  21249. if (value && _typeof(value) === 'object' && value.constructor === P) {
  21250. return value;
  21251. }
  21252. return new P(function (resolve) {
  21253. resolve(value);
  21254. });
  21255. };
  21256. P.reject = function (reason) {
  21257. return new P(function (resolve, reject) {
  21258. reject(reason);
  21259. });
  21260. };
  21261. var picked = typeof Promise === 'function' ? Promise : P;
  21262. var d = UNITS_IN_GRID;
  21263. var meaninglessTransform = {
  21264. size: 16,
  21265. x: 0,
  21266. y: 0,
  21267. rotate: 0,
  21268. flipX: false,
  21269. flipY: false
  21270. };
  21271. function isReserved(name) {
  21272. return ~RESERVED_CLASSES.indexOf(name);
  21273. }
  21274. function insertCss(css) {
  21275. if (!css || !IS_DOM) {
  21276. return;
  21277. }
  21278. var style = DOCUMENT.createElement('style');
  21279. style.setAttribute('type', 'text/css');
  21280. style.innerHTML = css;
  21281. var headChildren = DOCUMENT.head.childNodes;
  21282. var beforeChild = null;
  21283. for (var i = headChildren.length - 1; i > -1; i--) {
  21284. var child = headChildren[i];
  21285. var tagName = (child.tagName || '').toUpperCase();
  21286. if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
  21287. beforeChild = child;
  21288. }
  21289. }
  21290. DOCUMENT.head.insertBefore(style, beforeChild);
  21291. return css;
  21292. }
  21293. var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  21294. function nextUniqueId() {
  21295. var size = 12;
  21296. var id = '';
  21297. while (size-- > 0) {
  21298. id += idPool[Math.random() * 62 | 0];
  21299. }
  21300. return id;
  21301. }
  21302. function toArray(obj) {
  21303. var array = [];
  21304. for (var i = (obj || []).length >>> 0; i--;) {
  21305. array[i] = obj[i];
  21306. }
  21307. return array;
  21308. }
  21309. function classArray(node) {
  21310. if (node.classList) {
  21311. return toArray(node.classList);
  21312. } else {
  21313. return (node.getAttribute('class') || '').split(' ').filter(function (i) {
  21314. return i;
  21315. });
  21316. }
  21317. }
  21318. function getIconName(familyPrefix, cls) {
  21319. var parts = cls.split('-');
  21320. var prefix = parts[0];
  21321. var iconName = parts.slice(1).join('-');
  21322. if (prefix === familyPrefix && iconName !== '' && !isReserved(iconName)) {
  21323. return iconName;
  21324. } else {
  21325. return null;
  21326. }
  21327. }
  21328. function htmlEscape(str) {
  21329. return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  21330. }
  21331. function joinAttributes(attributes) {
  21332. return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
  21333. return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
  21334. }, '').trim();
  21335. }
  21336. function joinStyles(styles) {
  21337. return Object.keys(styles || {}).reduce(function (acc, styleName) {
  21338. return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
  21339. }, '');
  21340. }
  21341. function transformIsMeaningful(transform) {
  21342. return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
  21343. }
  21344. function transformForSvg(_ref) {
  21345. var transform = _ref.transform,
  21346. containerWidth = _ref.containerWidth,
  21347. iconWidth = _ref.iconWidth;
  21348. var outer = {
  21349. transform: "translate(".concat(containerWidth / 2, " 256)")
  21350. };
  21351. var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
  21352. var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
  21353. var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
  21354. var inner = {
  21355. transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
  21356. };
  21357. var path = {
  21358. transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
  21359. };
  21360. return {
  21361. outer: outer,
  21362. inner: inner,
  21363. path: path
  21364. };
  21365. }
  21366. function transformForCss(_ref2) {
  21367. var transform = _ref2.transform,
  21368. _ref2$width = _ref2.width,
  21369. width = _ref2$width === void 0 ? UNITS_IN_GRID : _ref2$width,
  21370. _ref2$height = _ref2.height,
  21371. height = _ref2$height === void 0 ? UNITS_IN_GRID : _ref2$height,
  21372. _ref2$startCentered = _ref2.startCentered,
  21373. startCentered = _ref2$startCentered === void 0 ? false : _ref2$startCentered;
  21374. var val = '';
  21375. if (startCentered && IS_IE) {
  21376. val += "translate(".concat(transform.x / d - width / 2, "em, ").concat(transform.y / d - height / 2, "em) ");
  21377. } else if (startCentered) {
  21378. val += "translate(calc(-50% + ".concat(transform.x / d, "em), calc(-50% + ").concat(transform.y / d, "em)) ");
  21379. } else {
  21380. val += "translate(".concat(transform.x / d, "em, ").concat(transform.y / d, "em) ");
  21381. }
  21382. val += "scale(".concat(transform.size / d * (transform.flipX ? -1 : 1), ", ").concat(transform.size / d * (transform.flipY ? -1 : 1), ") ");
  21383. val += "rotate(".concat(transform.rotate, "deg) ");
  21384. return val;
  21385. }
  21386. var ALL_SPACE = {
  21387. x: 0,
  21388. y: 0,
  21389. width: '100%',
  21390. height: '100%'
  21391. };
  21392. function fillBlack(abstract) {
  21393. var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
  21394. if (abstract.attributes && (abstract.attributes.fill || force)) {
  21395. abstract.attributes.fill = 'black';
  21396. }
  21397. return abstract;
  21398. }
  21399. function deGroup(abstract) {
  21400. if (abstract.tag === 'g') {
  21401. return abstract.children;
  21402. } else {
  21403. return [abstract];
  21404. }
  21405. }
  21406. function makeIconMasking (_ref) {
  21407. var children = _ref.children,
  21408. attributes = _ref.attributes,
  21409. main = _ref.main,
  21410. mask = _ref.mask,
  21411. explicitMaskId = _ref.maskId,
  21412. transform = _ref.transform;
  21413. var mainWidth = main.width,
  21414. mainPath = main.icon;
  21415. var maskWidth = mask.width,
  21416. maskPath = mask.icon;
  21417. var trans = transformForSvg({
  21418. transform: transform,
  21419. containerWidth: maskWidth,
  21420. iconWidth: mainWidth
  21421. });
  21422. var maskRect = {
  21423. tag: 'rect',
  21424. attributes: _objectSpread({}, ALL_SPACE, {
  21425. fill: 'white'
  21426. })
  21427. };
  21428. var maskInnerGroupChildrenMixin = mainPath.children ? {
  21429. children: mainPath.children.map(fillBlack)
  21430. } : {};
  21431. var maskInnerGroup = {
  21432. tag: 'g',
  21433. attributes: _objectSpread({}, trans.inner),
  21434. children: [fillBlack(_objectSpread({
  21435. tag: mainPath.tag,
  21436. attributes: _objectSpread({}, mainPath.attributes, trans.path)
  21437. }, maskInnerGroupChildrenMixin))]
  21438. };
  21439. var maskOuterGroup = {
  21440. tag: 'g',
  21441. attributes: _objectSpread({}, trans.outer),
  21442. children: [maskInnerGroup]
  21443. };
  21444. var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
  21445. var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
  21446. var maskTag = {
  21447. tag: 'mask',
  21448. attributes: _objectSpread({}, ALL_SPACE, {
  21449. id: maskId,
  21450. maskUnits: 'userSpaceOnUse',
  21451. maskContentUnits: 'userSpaceOnUse'
  21452. }),
  21453. children: [maskRect, maskOuterGroup]
  21454. };
  21455. var defs = {
  21456. tag: 'defs',
  21457. children: [{
  21458. tag: 'clipPath',
  21459. attributes: {
  21460. id: clipId
  21461. },
  21462. children: deGroup(maskPath)
  21463. }, maskTag]
  21464. };
  21465. children.push(defs, {
  21466. tag: 'rect',
  21467. attributes: _objectSpread({
  21468. fill: 'currentColor',
  21469. 'clip-path': "url(#".concat(clipId, ")"),
  21470. mask: "url(#".concat(maskId, ")")
  21471. }, ALL_SPACE)
  21472. });
  21473. return {
  21474. children: children,
  21475. attributes: attributes
  21476. };
  21477. }
  21478. function makeIconStandard (_ref) {
  21479. var children = _ref.children,
  21480. attributes = _ref.attributes,
  21481. main = _ref.main,
  21482. transform = _ref.transform,
  21483. styles = _ref.styles;
  21484. var styleString = joinStyles(styles);
  21485. if (styleString.length > 0) {
  21486. attributes['style'] = styleString;
  21487. }
  21488. if (transformIsMeaningful(transform)) {
  21489. var trans = transformForSvg({
  21490. transform: transform,
  21491. containerWidth: main.width,
  21492. iconWidth: main.width
  21493. });
  21494. children.push({
  21495. tag: 'g',
  21496. attributes: _objectSpread({}, trans.outer),
  21497. children: [{
  21498. tag: 'g',
  21499. attributes: _objectSpread({}, trans.inner),
  21500. children: [{
  21501. tag: main.icon.tag,
  21502. children: main.icon.children,
  21503. attributes: _objectSpread({}, main.icon.attributes, trans.path)
  21504. }]
  21505. }]
  21506. });
  21507. } else {
  21508. children.push(main.icon);
  21509. }
  21510. return {
  21511. children: children,
  21512. attributes: attributes
  21513. };
  21514. }
  21515. function asIcon (_ref) {
  21516. var children = _ref.children,
  21517. main = _ref.main,
  21518. mask = _ref.mask,
  21519. attributes = _ref.attributes,
  21520. styles = _ref.styles,
  21521. transform = _ref.transform;
  21522. if (transformIsMeaningful(transform) && main.found && !mask.found) {
  21523. var width = main.width,
  21524. height = main.height;
  21525. var offset = {
  21526. x: width / height / 2,
  21527. y: 0.5
  21528. };
  21529. attributes['style'] = joinStyles(_objectSpread({}, styles, {
  21530. 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
  21531. }));
  21532. }
  21533. return [{
  21534. tag: 'svg',
  21535. attributes: attributes,
  21536. children: children
  21537. }];
  21538. }
  21539. function asSymbol (_ref) {
  21540. var prefix = _ref.prefix,
  21541. iconName = _ref.iconName,
  21542. children = _ref.children,
  21543. attributes = _ref.attributes,
  21544. symbol = _ref.symbol;
  21545. var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
  21546. return [{
  21547. tag: 'svg',
  21548. attributes: {
  21549. style: 'display: none;'
  21550. },
  21551. children: [{
  21552. tag: 'symbol',
  21553. attributes: _objectSpread({}, attributes, {
  21554. id: id
  21555. }),
  21556. children: children
  21557. }]
  21558. }];
  21559. }
  21560. function makeInlineSvgAbstract(params) {
  21561. var _params$icons = params.icons,
  21562. main = _params$icons.main,
  21563. mask = _params$icons.mask,
  21564. prefix = params.prefix,
  21565. iconName = params.iconName,
  21566. transform = params.transform,
  21567. symbol = params.symbol,
  21568. title = params.title,
  21569. maskId = params.maskId,
  21570. titleId = params.titleId,
  21571. extra = params.extra,
  21572. _params$watchable = params.watchable,
  21573. watchable = _params$watchable === void 0 ? false : _params$watchable;
  21574. var _ref = mask.found ? mask : main,
  21575. width = _ref.width,
  21576. height = _ref.height;
  21577. var isUploadedIcon = prefix === 'fak';
  21578. var widthClass = isUploadedIcon ? '' : "fa-w-".concat(Math.ceil(width / height * 16));
  21579. var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
  21580. return extra.classes.indexOf(c) === -1;
  21581. }).filter(function (c) {
  21582. return c !== '' || !!c;
  21583. }).concat(extra.classes).join(' ');
  21584. var content = {
  21585. children: [],
  21586. attributes: _objectSpread({}, extra.attributes, {
  21587. 'data-prefix': prefix,
  21588. 'data-icon': iconName,
  21589. 'class': attrClass,
  21590. 'role': extra.attributes.role || 'img',
  21591. 'xmlns': 'http://www.w3.org/2000/svg',
  21592. 'viewBox': "0 0 ".concat(width, " ").concat(height)
  21593. })
  21594. };
  21595. var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
  21596. width: "".concat(width / height * 16 * 0.0625, "em")
  21597. } : {};
  21598. if (watchable) {
  21599. content.attributes[DATA_FA_I2SVG] = '';
  21600. }
  21601. if (title) content.children.push({
  21602. tag: 'title',
  21603. attributes: {
  21604. id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
  21605. },
  21606. children: [title]
  21607. });
  21608. var args = _objectSpread({}, content, {
  21609. prefix: prefix,
  21610. iconName: iconName,
  21611. main: main,
  21612. mask: mask,
  21613. maskId: maskId,
  21614. transform: transform,
  21615. symbol: symbol,
  21616. styles: _objectSpread({}, uploadedIconWidthStyle, extra.styles)
  21617. });
  21618. var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
  21619. children = _ref2.children,
  21620. attributes = _ref2.attributes;
  21621. args.children = children;
  21622. args.attributes = attributes;
  21623. if (symbol) {
  21624. return asSymbol(args);
  21625. } else {
  21626. return asIcon(args);
  21627. }
  21628. }
  21629. function makeLayersTextAbstract(params) {
  21630. var content = params.content,
  21631. width = params.width,
  21632. height = params.height,
  21633. transform = params.transform,
  21634. title = params.title,
  21635. extra = params.extra,
  21636. _params$watchable2 = params.watchable,
  21637. watchable = _params$watchable2 === void 0 ? false : _params$watchable2;
  21638. var attributes = _objectSpread({}, extra.attributes, title ? {
  21639. 'title': title
  21640. } : {}, {
  21641. 'class': extra.classes.join(' ')
  21642. });
  21643. if (watchable) {
  21644. attributes[DATA_FA_I2SVG] = '';
  21645. }
  21646. var styles = _objectSpread({}, extra.styles);
  21647. if (transformIsMeaningful(transform)) {
  21648. styles['transform'] = transformForCss({
  21649. transform: transform,
  21650. startCentered: true,
  21651. width: width,
  21652. height: height
  21653. });
  21654. styles['-webkit-transform'] = styles['transform'];
  21655. }
  21656. var styleString = joinStyles(styles);
  21657. if (styleString.length > 0) {
  21658. attributes['style'] = styleString;
  21659. }
  21660. var val = [];
  21661. val.push({
  21662. tag: 'span',
  21663. attributes: attributes,
  21664. children: [content]
  21665. });
  21666. if (title) {
  21667. val.push({
  21668. tag: 'span',
  21669. attributes: {
  21670. class: 'sr-only'
  21671. },
  21672. children: [title]
  21673. });
  21674. }
  21675. return val;
  21676. }
  21677. function makeLayersCounterAbstract(params) {
  21678. var content = params.content,
  21679. title = params.title,
  21680. extra = params.extra;
  21681. var attributes = _objectSpread({}, extra.attributes, title ? {
  21682. 'title': title
  21683. } : {}, {
  21684. 'class': extra.classes.join(' ')
  21685. });
  21686. var styleString = joinStyles(extra.styles);
  21687. if (styleString.length > 0) {
  21688. attributes['style'] = styleString;
  21689. }
  21690. var val = [];
  21691. val.push({
  21692. tag: 'span',
  21693. attributes: attributes,
  21694. children: [content]
  21695. });
  21696. if (title) {
  21697. val.push({
  21698. tag: 'span',
  21699. attributes: {
  21700. class: 'sr-only'
  21701. },
  21702. children: [title]
  21703. });
  21704. }
  21705. return val;
  21706. }
  21707. var noop$1 = function noop() {};
  21708. var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
  21709. mark: noop$1,
  21710. measure: noop$1
  21711. };
  21712. var preamble = "FA \"5.15.1\"";
  21713. var begin = function begin(name) {
  21714. p.mark("".concat(preamble, " ").concat(name, " begins"));
  21715. return function () {
  21716. return end(name);
  21717. };
  21718. };
  21719. var end = function end(name) {
  21720. p.mark("".concat(preamble, " ").concat(name, " ends"));
  21721. p.measure("".concat(preamble, " ").concat(name), "".concat(preamble, " ").concat(name, " begins"), "".concat(preamble, " ").concat(name, " ends"));
  21722. };
  21723. var perf = {
  21724. begin: begin,
  21725. end: end
  21726. };
  21727. /**
  21728. * Internal helper to bind a function known to have 4 arguments
  21729. * to a given context.
  21730. */
  21731. var bindInternal4 = function bindInternal4(func, thisContext) {
  21732. return function (a, b, c, d) {
  21733. return func.call(thisContext, a, b, c, d);
  21734. };
  21735. };
  21736. /**
  21737. * # Reduce
  21738. *
  21739. * A fast object `.reduce()` implementation.
  21740. *
  21741. * @param {Object} subject The object to reduce over.
  21742. * @param {Function} fn The reducer function.
  21743. * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
  21744. * @param {Object} thisContext The context for the reducer.
  21745. * @return {mixed} The final result.
  21746. */
  21747. var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
  21748. var keys = Object.keys(subject),
  21749. length = keys.length,
  21750. iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
  21751. i,
  21752. key,
  21753. result;
  21754. if (initialValue === undefined) {
  21755. i = 1;
  21756. result = subject[keys[0]];
  21757. } else {
  21758. i = 0;
  21759. result = initialValue;
  21760. }
  21761. for (; i < length; i++) {
  21762. key = keys[i];
  21763. result = iterator(result, subject[key], key, subject);
  21764. }
  21765. return result;
  21766. };
  21767. function toHex(unicode) {
  21768. var result = '';
  21769. for (var i = 0; i < unicode.length; i++) {
  21770. var hex = unicode.charCodeAt(i).toString(16);
  21771. result += ('000' + hex).slice(-4);
  21772. }
  21773. return result;
  21774. }
  21775. function codePointAt(string, index) {
  21776. /*! https://mths.be/codepointat v0.2.0 by @mathias */
  21777. var size = string.length;
  21778. var first = string.charCodeAt(index);
  21779. var second;
  21780. if (first >= 0xD800 && first <= 0xDBFF && size > index + 1) {
  21781. second = string.charCodeAt(index + 1);
  21782. if (second >= 0xDC00 && second <= 0xDFFF) {
  21783. return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;
  21784. }
  21785. }
  21786. return first;
  21787. }
  21788. /**
  21789. * Used to check that the character is between the E000..F8FF private unicode
  21790. * range
  21791. */
  21792. function isPrivateUnicode(iconName) {
  21793. if (iconName.length !== 1) {
  21794. return false;
  21795. } else {
  21796. var cp = codePointAt(iconName, 0);
  21797. return cp >= 57344 && cp <= 63743;
  21798. }
  21799. }
  21800. function defineIcons(prefix, icons) {
  21801. var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  21802. var _params$skipHooks = params.skipHooks,
  21803. skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
  21804. var normalized = Object.keys(icons).reduce(function (acc, iconName) {
  21805. var icon = icons[iconName];
  21806. var expanded = !!icon.icon;
  21807. if (expanded) {
  21808. acc[icon.iconName] = icon.icon;
  21809. } else {
  21810. acc[iconName] = icon;
  21811. }
  21812. return acc;
  21813. }, {});
  21814. if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
  21815. namespace.hooks.addPack(prefix, normalized);
  21816. } else {
  21817. namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
  21818. }
  21819. /**
  21820. * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
  21821. * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
  21822. * for `fas` so we'll easy the upgrade process for our users by automatically defining
  21823. * this as well.
  21824. */
  21825. if (prefix === 'fas') {
  21826. defineIcons('fa', icons);
  21827. }
  21828. }
  21829. var styles = namespace.styles,
  21830. shims = namespace.shims;
  21831. var _byUnicode = {};
  21832. var _byLigature = {};
  21833. var _byOldName = {};
  21834. var build = function build() {
  21835. var lookup = function lookup(reducer) {
  21836. return reduce(styles, function (o, style, prefix) {
  21837. o[prefix] = reduce(style, reducer, {});
  21838. return o;
  21839. }, {});
  21840. };
  21841. _byUnicode = lookup(function (acc, icon, iconName) {
  21842. if (icon[3]) {
  21843. acc[icon[3]] = iconName;
  21844. }
  21845. return acc;
  21846. });
  21847. _byLigature = lookup(function (acc, icon, iconName) {
  21848. var ligatures = icon[2];
  21849. acc[iconName] = iconName;
  21850. ligatures.forEach(function (ligature) {
  21851. acc[ligature] = iconName;
  21852. });
  21853. return acc;
  21854. });
  21855. var hasRegular = 'far' in styles;
  21856. _byOldName = reduce(shims, function (acc, shim) {
  21857. var oldName = shim[0];
  21858. var prefix = shim[1];
  21859. var iconName = shim[2];
  21860. if (prefix === 'far' && !hasRegular) {
  21861. prefix = 'fas';
  21862. }
  21863. acc[oldName] = {
  21864. prefix: prefix,
  21865. iconName: iconName
  21866. };
  21867. return acc;
  21868. }, {});
  21869. };
  21870. build();
  21871. function byUnicode(prefix, unicode) {
  21872. return (_byUnicode[prefix] || {})[unicode];
  21873. }
  21874. function byLigature(prefix, ligature) {
  21875. return (_byLigature[prefix] || {})[ligature];
  21876. }
  21877. function byOldName(name) {
  21878. return _byOldName[name] || {
  21879. prefix: null,
  21880. iconName: null
  21881. };
  21882. }
  21883. var styles$1 = namespace.styles;
  21884. var emptyCanonicalIcon = function emptyCanonicalIcon() {
  21885. return {
  21886. prefix: null,
  21887. iconName: null,
  21888. rest: []
  21889. };
  21890. };
  21891. function getCanonicalIcon(values) {
  21892. return values.reduce(function (acc, cls) {
  21893. var iconName = getIconName(config.familyPrefix, cls);
  21894. if (styles$1[cls]) {
  21895. acc.prefix = cls;
  21896. } else if (config.autoFetchSvg && Object.keys(PREFIX_TO_STYLE).indexOf(cls) > -1) {
  21897. acc.prefix = cls;
  21898. } else if (iconName) {
  21899. var shim = acc.prefix === 'fa' ? byOldName(iconName) : {};
  21900. acc.iconName = shim.iconName || iconName;
  21901. acc.prefix = shim.prefix || acc.prefix;
  21902. } else if (cls !== config.replacementClass && cls.indexOf('fa-w-') !== 0) {
  21903. acc.rest.push(cls);
  21904. }
  21905. return acc;
  21906. }, emptyCanonicalIcon());
  21907. }
  21908. function iconFromMapping(mapping, prefix, iconName) {
  21909. if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
  21910. return {
  21911. prefix: prefix,
  21912. iconName: iconName,
  21913. icon: mapping[prefix][iconName]
  21914. };
  21915. }
  21916. }
  21917. function toHtml(abstractNodes) {
  21918. var tag = abstractNodes.tag,
  21919. _abstractNodes$attrib = abstractNodes.attributes,
  21920. attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
  21921. _abstractNodes$childr = abstractNodes.children,
  21922. children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
  21923. if (typeof abstractNodes === 'string') {
  21924. return htmlEscape(abstractNodes);
  21925. } else {
  21926. return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
  21927. }
  21928. }
  21929. var noop$2 = function noop() {};
  21930. function isWatched(node) {
  21931. var i2svg = node.getAttribute ? node.getAttribute(DATA_FA_I2SVG) : null;
  21932. return typeof i2svg === 'string';
  21933. }
  21934. function getMutator() {
  21935. if (config.autoReplaceSvg === true) {
  21936. return mutators.replace;
  21937. }
  21938. var mutator = mutators[config.autoReplaceSvg];
  21939. return mutator || mutators.replace;
  21940. }
  21941. var mutators = {
  21942. replace: function replace(mutation) {
  21943. var node = mutation[0];
  21944. var abstract = mutation[1];
  21945. var newOuterHTML = abstract.map(function (a) {
  21946. return toHtml(a);
  21947. }).join('\n');
  21948. if (node.parentNode && node.outerHTML) {
  21949. node.outerHTML = newOuterHTML + (config.keepOriginalSource && node.tagName.toLowerCase() !== 'svg' ? "<!-- ".concat(node.outerHTML, " Font Awesome fontawesome.com -->") : '');
  21950. } else if (node.parentNode) {
  21951. var newNode = document.createElement('span');
  21952. node.parentNode.replaceChild(newNode, node);
  21953. newNode.outerHTML = newOuterHTML;
  21954. }
  21955. },
  21956. nest: function nest(mutation) {
  21957. var node = mutation[0];
  21958. var abstract = mutation[1]; // If we already have a replaced node we do not want to continue nesting within it.
  21959. // Short-circuit to the standard replacement
  21960. if (~classArray(node).indexOf(config.replacementClass)) {
  21961. return mutators.replace(mutation);
  21962. }
  21963. var forSvg = new RegExp("".concat(config.familyPrefix, "-.*"));
  21964. delete abstract[0].attributes.style;
  21965. delete abstract[0].attributes.id;
  21966. var splitClasses = abstract[0].attributes.class.split(' ').reduce(function (acc, cls) {
  21967. if (cls === config.replacementClass || cls.match(forSvg)) {
  21968. acc.toSvg.push(cls);
  21969. } else {
  21970. acc.toNode.push(cls);
  21971. }
  21972. return acc;
  21973. }, {
  21974. toNode: [],
  21975. toSvg: []
  21976. });
  21977. abstract[0].attributes.class = splitClasses.toSvg.join(' ');
  21978. var newInnerHTML = abstract.map(function (a) {
  21979. return toHtml(a);
  21980. }).join('\n');
  21981. node.setAttribute('class', splitClasses.toNode.join(' '));
  21982. node.setAttribute(DATA_FA_I2SVG, '');
  21983. node.innerHTML = newInnerHTML;
  21984. }
  21985. };
  21986. function performOperationSync(op) {
  21987. op();
  21988. }
  21989. function perform(mutations, callback) {
  21990. var callbackFunction = typeof callback === 'function' ? callback : noop$2;
  21991. if (mutations.length === 0) {
  21992. callbackFunction();
  21993. } else {
  21994. var frame = performOperationSync;
  21995. if (config.mutateApproach === MUTATION_APPROACH_ASYNC) {
  21996. frame = WINDOW.requestAnimationFrame || performOperationSync;
  21997. }
  21998. frame(function () {
  21999. var mutator = getMutator();
  22000. var mark = perf.begin('mutate');
  22001. mutations.map(mutator);
  22002. mark();
  22003. callbackFunction();
  22004. });
  22005. }
  22006. }
  22007. var disabled = false;
  22008. function disableObservation() {
  22009. disabled = true;
  22010. }
  22011. function enableObservation() {
  22012. disabled = false;
  22013. }
  22014. var mo = null;
  22015. function observe(options) {
  22016. if (!MUTATION_OBSERVER) {
  22017. return;
  22018. }
  22019. if (!config.observeMutations) {
  22020. return;
  22021. }
  22022. var treeCallback = options.treeCallback,
  22023. nodeCallback = options.nodeCallback,
  22024. pseudoElementsCallback = options.pseudoElementsCallback,
  22025. _options$observeMutat = options.observeMutationsRoot,
  22026. observeMutationsRoot = _options$observeMutat === void 0 ? DOCUMENT : _options$observeMutat;
  22027. mo = new MUTATION_OBSERVER(function (objects) {
  22028. if (disabled) return;
  22029. toArray(objects).forEach(function (mutationRecord) {
  22030. if (mutationRecord.type === 'childList' && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
  22031. if (config.searchPseudoElements) {
  22032. pseudoElementsCallback(mutationRecord.target);
  22033. }
  22034. treeCallback(mutationRecord.target);
  22035. }
  22036. if (mutationRecord.type === 'attributes' && mutationRecord.target.parentNode && config.searchPseudoElements) {
  22037. pseudoElementsCallback(mutationRecord.target.parentNode);
  22038. }
  22039. if (mutationRecord.type === 'attributes' && isWatched(mutationRecord.target) && ~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(mutationRecord.attributeName)) {
  22040. if (mutationRecord.attributeName === 'class') {
  22041. var _getCanonicalIcon = getCanonicalIcon(classArray(mutationRecord.target)),
  22042. prefix = _getCanonicalIcon.prefix,
  22043. iconName = _getCanonicalIcon.iconName;
  22044. if (prefix) mutationRecord.target.setAttribute('data-prefix', prefix);
  22045. if (iconName) mutationRecord.target.setAttribute('data-icon', iconName);
  22046. } else {
  22047. nodeCallback(mutationRecord.target);
  22048. }
  22049. }
  22050. });
  22051. });
  22052. if (!IS_DOM) return;
  22053. mo.observe(observeMutationsRoot, {
  22054. childList: true,
  22055. attributes: true,
  22056. characterData: true,
  22057. subtree: true
  22058. });
  22059. }
  22060. function disconnect() {
  22061. if (!mo) return;
  22062. mo.disconnect();
  22063. }
  22064. function styleParser (node) {
  22065. var style = node.getAttribute('style');
  22066. var val = [];
  22067. if (style) {
  22068. val = style.split(';').reduce(function (acc, style) {
  22069. var styles = style.split(':');
  22070. var prop = styles[0];
  22071. var value = styles.slice(1);
  22072. if (prop && value.length > 0) {
  22073. acc[prop] = value.join(':').trim();
  22074. }
  22075. return acc;
  22076. }, {});
  22077. }
  22078. return val;
  22079. }
  22080. function classParser (node) {
  22081. var existingPrefix = node.getAttribute('data-prefix');
  22082. var existingIconName = node.getAttribute('data-icon');
  22083. var innerText = node.innerText !== undefined ? node.innerText.trim() : '';
  22084. var val = getCanonicalIcon(classArray(node));
  22085. if (existingPrefix && existingIconName) {
  22086. val.prefix = existingPrefix;
  22087. val.iconName = existingIconName;
  22088. }
  22089. if (val.prefix && innerText.length > 1) {
  22090. val.iconName = byLigature(val.prefix, node.innerText);
  22091. } else if (val.prefix && innerText.length === 1) {
  22092. val.iconName = byUnicode(val.prefix, toHex(node.innerText));
  22093. }
  22094. return val;
  22095. }
  22096. var parseTransformString = function parseTransformString(transformString) {
  22097. var transform = {
  22098. size: 16,
  22099. x: 0,
  22100. y: 0,
  22101. flipX: false,
  22102. flipY: false,
  22103. rotate: 0
  22104. };
  22105. if (!transformString) {
  22106. return transform;
  22107. } else {
  22108. return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
  22109. var parts = n.toLowerCase().split('-');
  22110. var first = parts[0];
  22111. var rest = parts.slice(1).join('-');
  22112. if (first && rest === 'h') {
  22113. acc.flipX = true;
  22114. return acc;
  22115. }
  22116. if (first && rest === 'v') {
  22117. acc.flipY = true;
  22118. return acc;
  22119. }
  22120. rest = parseFloat(rest);
  22121. if (isNaN(rest)) {
  22122. return acc;
  22123. }
  22124. switch (first) {
  22125. case 'grow':
  22126. acc.size = acc.size + rest;
  22127. break;
  22128. case 'shrink':
  22129. acc.size = acc.size - rest;
  22130. break;
  22131. case 'left':
  22132. acc.x = acc.x - rest;
  22133. break;
  22134. case 'right':
  22135. acc.x = acc.x + rest;
  22136. break;
  22137. case 'up':
  22138. acc.y = acc.y - rest;
  22139. break;
  22140. case 'down':
  22141. acc.y = acc.y + rest;
  22142. break;
  22143. case 'rotate':
  22144. acc.rotate = acc.rotate + rest;
  22145. break;
  22146. }
  22147. return acc;
  22148. }, transform);
  22149. }
  22150. };
  22151. function transformParser (node) {
  22152. return parseTransformString(node.getAttribute('data-fa-transform'));
  22153. }
  22154. function symbolParser (node) {
  22155. var symbol = node.getAttribute('data-fa-symbol');
  22156. return symbol === null ? false : symbol === '' ? true : symbol;
  22157. }
  22158. function attributesParser (node) {
  22159. var extraAttributes = toArray(node.attributes).reduce(function (acc, attr) {
  22160. if (acc.name !== 'class' && acc.name !== 'style') {
  22161. acc[attr.name] = attr.value;
  22162. }
  22163. return acc;
  22164. }, {});
  22165. var title = node.getAttribute('title');
  22166. var titleId = node.getAttribute('data-fa-title-id');
  22167. if (config.autoA11y) {
  22168. if (title) {
  22169. extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
  22170. } else {
  22171. extraAttributes['aria-hidden'] = 'true';
  22172. extraAttributes['focusable'] = 'false';
  22173. }
  22174. }
  22175. return extraAttributes;
  22176. }
  22177. function maskParser (node) {
  22178. var mask = node.getAttribute('data-fa-mask');
  22179. if (!mask) {
  22180. return emptyCanonicalIcon();
  22181. } else {
  22182. return getCanonicalIcon(mask.split(' ').map(function (i) {
  22183. return i.trim();
  22184. }));
  22185. }
  22186. }
  22187. function blankMeta() {
  22188. return {
  22189. iconName: null,
  22190. title: null,
  22191. titleId: null,
  22192. prefix: null,
  22193. transform: meaninglessTransform,
  22194. symbol: false,
  22195. mask: null,
  22196. maskId: null,
  22197. extra: {
  22198. classes: [],
  22199. styles: {},
  22200. attributes: {}
  22201. }
  22202. };
  22203. }
  22204. function parseMeta(node) {
  22205. var _classParser = classParser(node),
  22206. iconName = _classParser.iconName,
  22207. prefix = _classParser.prefix,
  22208. extraClasses = _classParser.rest;
  22209. var extraStyles = styleParser(node);
  22210. var transform = transformParser(node);
  22211. var symbol = symbolParser(node);
  22212. var extraAttributes = attributesParser(node);
  22213. var mask = maskParser(node);
  22214. return {
  22215. iconName: iconName,
  22216. title: node.getAttribute('title'),
  22217. titleId: node.getAttribute('data-fa-title-id'),
  22218. prefix: prefix,
  22219. transform: transform,
  22220. symbol: symbol,
  22221. mask: mask,
  22222. maskId: node.getAttribute('data-fa-mask-id'),
  22223. extra: {
  22224. classes: extraClasses,
  22225. styles: extraStyles,
  22226. attributes: extraAttributes
  22227. }
  22228. };
  22229. }
  22230. function MissingIcon(error) {
  22231. this.name = 'MissingIcon';
  22232. this.message = error || 'Icon unavailable';
  22233. this.stack = new Error().stack;
  22234. }
  22235. MissingIcon.prototype = Object.create(Error.prototype);
  22236. MissingIcon.prototype.constructor = MissingIcon;
  22237. var FILL = {
  22238. fill: 'currentColor'
  22239. };
  22240. var ANIMATION_BASE = {
  22241. attributeType: 'XML',
  22242. repeatCount: 'indefinite',
  22243. dur: '2s'
  22244. };
  22245. var RING = {
  22246. tag: 'path',
  22247. attributes: _objectSpread({}, FILL, {
  22248. d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
  22249. })
  22250. };
  22251. var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
  22252. attributeName: 'opacity'
  22253. });
  22254. var DOT = {
  22255. tag: 'circle',
  22256. attributes: _objectSpread({}, FILL, {
  22257. cx: '256',
  22258. cy: '364',
  22259. r: '28'
  22260. }),
  22261. children: [{
  22262. tag: 'animate',
  22263. attributes: _objectSpread({}, ANIMATION_BASE, {
  22264. attributeName: 'r',
  22265. values: '28;14;28;28;14;28;'
  22266. })
  22267. }, {
  22268. tag: 'animate',
  22269. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  22270. values: '1;0;1;1;0;1;'
  22271. })
  22272. }]
  22273. };
  22274. var QUESTION = {
  22275. tag: 'path',
  22276. attributes: _objectSpread({}, FILL, {
  22277. opacity: '1',
  22278. d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
  22279. }),
  22280. children: [{
  22281. tag: 'animate',
  22282. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  22283. values: '1;0;0;0;0;1;'
  22284. })
  22285. }]
  22286. };
  22287. var EXCLAMATION = {
  22288. tag: 'path',
  22289. attributes: _objectSpread({}, FILL, {
  22290. opacity: '0',
  22291. d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
  22292. }),
  22293. children: [{
  22294. tag: 'animate',
  22295. attributes: _objectSpread({}, OPACITY_ANIMATE, {
  22296. values: '0;0;1;1;0;0;'
  22297. })
  22298. }]
  22299. };
  22300. var missing = {
  22301. tag: 'g',
  22302. children: [RING, DOT, QUESTION, EXCLAMATION]
  22303. };
  22304. var styles$2 = namespace.styles;
  22305. function resolveCustomIconVersion() {
  22306. var kitConfig = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  22307. var iconName = arguments.length > 1 ? arguments[1] : undefined;
  22308. if (iconName && isPrivateUnicode(iconName)) {
  22309. if (kitConfig && kitConfig.iconUploads) {
  22310. var iconUploads = kitConfig.iconUploads;
  22311. var descriptiveIconName = Object.keys(iconUploads).find(function (key) {
  22312. return iconUploads[key] && iconUploads[key].u && iconUploads[key].u === toHex(iconName);
  22313. });
  22314. if (descriptiveIconName) {
  22315. return iconUploads[descriptiveIconName].v;
  22316. }
  22317. }
  22318. } else {
  22319. if (kitConfig && kitConfig.iconUploads && kitConfig.iconUploads[iconName] && kitConfig.iconUploads[iconName].v) {
  22320. return kitConfig.iconUploads[iconName].v;
  22321. }
  22322. }
  22323. }
  22324. function asFoundIcon(icon) {
  22325. var width = icon[0];
  22326. var height = icon[1];
  22327. var _icon$slice = icon.slice(4),
  22328. _icon$slice2 = _slicedToArray(_icon$slice, 1),
  22329. vectorData = _icon$slice2[0];
  22330. var element = null;
  22331. if (Array.isArray(vectorData)) {
  22332. element = {
  22333. tag: 'g',
  22334. attributes: {
  22335. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
  22336. },
  22337. children: [{
  22338. tag: 'path',
  22339. attributes: {
  22340. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
  22341. fill: 'currentColor',
  22342. d: vectorData[0]
  22343. }
  22344. }, {
  22345. tag: 'path',
  22346. attributes: {
  22347. class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
  22348. fill: 'currentColor',
  22349. d: vectorData[1]
  22350. }
  22351. }]
  22352. };
  22353. } else {
  22354. element = {
  22355. tag: 'path',
  22356. attributes: {
  22357. fill: 'currentColor',
  22358. d: vectorData
  22359. }
  22360. };
  22361. }
  22362. return {
  22363. found: true,
  22364. width: width,
  22365. height: height,
  22366. icon: element
  22367. };
  22368. }
  22369. function findIcon(iconName, prefix) {
  22370. return new picked(function (resolve, reject) {
  22371. var val = {
  22372. found: false,
  22373. width: 512,
  22374. height: 512,
  22375. icon: missing
  22376. };
  22377. if (iconName && prefix && styles$2[prefix] && styles$2[prefix][iconName]) {
  22378. var icon = styles$2[prefix][iconName];
  22379. return resolve(asFoundIcon(icon));
  22380. }
  22381. var kitToken = null;
  22382. var iconVersion = resolveCustomIconVersion(WINDOW.FontAwesomeKitConfig, iconName);
  22383. if (WINDOW.FontAwesomeKitConfig && WINDOW.FontAwesomeKitConfig.token) {
  22384. kitToken = WINDOW.FontAwesomeKitConfig.token;
  22385. }
  22386. if (iconName && prefix && !config.showMissingIcons) {
  22387. reject(new MissingIcon("Icon is missing for prefix ".concat(prefix, " with icon name ").concat(iconName)));
  22388. } else {
  22389. resolve(val);
  22390. }
  22391. });
  22392. }
  22393. var styles$3 = namespace.styles;
  22394. function generateSvgReplacementMutation(node, nodeMeta) {
  22395. var iconName = nodeMeta.iconName,
  22396. title = nodeMeta.title,
  22397. titleId = nodeMeta.titleId,
  22398. prefix = nodeMeta.prefix,
  22399. transform = nodeMeta.transform,
  22400. symbol = nodeMeta.symbol,
  22401. mask = nodeMeta.mask,
  22402. maskId = nodeMeta.maskId,
  22403. extra = nodeMeta.extra;
  22404. return new picked(function (resolve, reject) {
  22405. picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
  22406. var _ref2 = _slicedToArray(_ref, 2),
  22407. main = _ref2[0],
  22408. mask = _ref2[1];
  22409. resolve([node, makeInlineSvgAbstract({
  22410. icons: {
  22411. main: main,
  22412. mask: mask
  22413. },
  22414. prefix: prefix,
  22415. iconName: iconName,
  22416. transform: transform,
  22417. symbol: symbol,
  22418. mask: mask,
  22419. maskId: maskId,
  22420. title: title,
  22421. titleId: titleId,
  22422. extra: extra,
  22423. watchable: true
  22424. })]);
  22425. });
  22426. });
  22427. }
  22428. function generateLayersText(node, nodeMeta) {
  22429. var title = nodeMeta.title,
  22430. transform = nodeMeta.transform,
  22431. extra = nodeMeta.extra;
  22432. var width = null;
  22433. var height = null;
  22434. if (IS_IE) {
  22435. var computedFontSize = parseInt(getComputedStyle(node).fontSize, 10);
  22436. var boundingClientRect = node.getBoundingClientRect();
  22437. width = boundingClientRect.width / computedFontSize;
  22438. height = boundingClientRect.height / computedFontSize;
  22439. }
  22440. if (config.autoA11y && !title) {
  22441. extra.attributes['aria-hidden'] = 'true';
  22442. }
  22443. return picked.resolve([node, makeLayersTextAbstract({
  22444. content: node.innerHTML,
  22445. width: width,
  22446. height: height,
  22447. transform: transform,
  22448. title: title,
  22449. extra: extra,
  22450. watchable: true
  22451. })]);
  22452. }
  22453. function generateMutation(node) {
  22454. var nodeMeta = parseMeta(node);
  22455. if (~nodeMeta.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)) {
  22456. return generateLayersText(node, nodeMeta);
  22457. } else {
  22458. return generateSvgReplacementMutation(node, nodeMeta);
  22459. }
  22460. }
  22461. function onTree(root) {
  22462. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  22463. if (!IS_DOM) return;
  22464. var htmlClassList = DOCUMENT.documentElement.classList;
  22465. var hclAdd = function hclAdd(suffix) {
  22466. return htmlClassList.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  22467. };
  22468. var hclRemove = function hclRemove(suffix) {
  22469. return htmlClassList.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS, "-").concat(suffix));
  22470. };
  22471. var prefixes = config.autoFetchSvg ? Object.keys(PREFIX_TO_STYLE) : Object.keys(styles$3);
  22472. var prefixesDomQuery = [".".concat(LAYERS_TEXT_CLASSNAME, ":not([").concat(DATA_FA_I2SVG, "])")].concat(prefixes.map(function (p) {
  22473. return ".".concat(p, ":not([").concat(DATA_FA_I2SVG, "])");
  22474. })).join(', ');
  22475. if (prefixesDomQuery.length === 0) {
  22476. return;
  22477. }
  22478. var candidates = [];
  22479. try {
  22480. candidates = toArray(root.querySelectorAll(prefixesDomQuery));
  22481. } catch (e) {// noop
  22482. }
  22483. if (candidates.length > 0) {
  22484. hclAdd('pending');
  22485. hclRemove('complete');
  22486. } else {
  22487. return;
  22488. }
  22489. var mark = perf.begin('onTree');
  22490. var mutations = candidates.reduce(function (acc, node) {
  22491. try {
  22492. var mutation = generateMutation(node);
  22493. if (mutation) {
  22494. acc.push(mutation);
  22495. }
  22496. } catch (e) {
  22497. if (!PRODUCTION) {
  22498. if (e instanceof MissingIcon) {
  22499. console.error(e);
  22500. }
  22501. }
  22502. }
  22503. return acc;
  22504. }, []);
  22505. return new picked(function (resolve, reject) {
  22506. picked.all(mutations).then(function (resolvedMutations) {
  22507. perform(resolvedMutations, function () {
  22508. hclAdd('active');
  22509. hclAdd('complete');
  22510. hclRemove('pending');
  22511. if (typeof callback === 'function') callback();
  22512. mark();
  22513. resolve();
  22514. });
  22515. }).catch(function () {
  22516. mark();
  22517. reject();
  22518. });
  22519. });
  22520. }
  22521. function onNode(node) {
  22522. var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
  22523. generateMutation(node).then(function (mutation) {
  22524. if (mutation) {
  22525. perform([mutation], callback);
  22526. }
  22527. });
  22528. }
  22529. function replaceForPosition(node, position) {
  22530. var pendingAttribute = "".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(position.replace(':', '-'));
  22531. return new picked(function (resolve, reject) {
  22532. if (node.getAttribute(pendingAttribute) !== null) {
  22533. // This node is already being processed
  22534. return resolve();
  22535. }
  22536. var children = toArray(node.children);
  22537. var alreadyProcessedPseudoElement = children.filter(function (c) {
  22538. return c.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position;
  22539. })[0];
  22540. var styles = WINDOW.getComputedStyle(node, position);
  22541. var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
  22542. var fontWeight = styles.getPropertyValue('font-weight');
  22543. var content = styles.getPropertyValue('content');
  22544. if (alreadyProcessedPseudoElement && !fontFamily) {
  22545. // If we've already processed it but the current computed style does not result in a font-family,
  22546. // that probably means that a class name that was previously present to make the icon has been
  22547. // removed. So we now should delete the icon.
  22548. node.removeChild(alreadyProcessedPseudoElement);
  22549. return resolve();
  22550. } else if (fontFamily && content !== 'none' && content !== '') {
  22551. var _content = styles.getPropertyValue('content');
  22552. var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands', 'Kit'].indexOf(fontFamily[2]) ? STYLE_TO_PREFIX[fontFamily[2].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
  22553. var hexValue = toHex(_content.length === 3 ? _content.substr(1, 1) : _content);
  22554. var iconName = byUnicode(prefix, hexValue);
  22555. var iconIdentifier = iconName; // Only convert the pseudo element in this :before/:after position into an icon if we haven't
  22556. // already done so with the same prefix and iconName
  22557. if (iconName && (!alreadyProcessedPseudoElement || alreadyProcessedPseudoElement.getAttribute(DATA_PREFIX) !== prefix || alreadyProcessedPseudoElement.getAttribute(DATA_ICON) !== iconIdentifier)) {
  22558. node.setAttribute(pendingAttribute, iconIdentifier);
  22559. if (alreadyProcessedPseudoElement) {
  22560. // Delete the old one, since we're replacing it with a new one
  22561. node.removeChild(alreadyProcessedPseudoElement);
  22562. }
  22563. var meta = blankMeta();
  22564. var extra = meta.extra;
  22565. extra.attributes[DATA_FA_PSEUDO_ELEMENT] = position;
  22566. findIcon(iconName, prefix).then(function (main) {
  22567. var abstract = makeInlineSvgAbstract(_objectSpread({}, meta, {
  22568. icons: {
  22569. main: main,
  22570. mask: emptyCanonicalIcon()
  22571. },
  22572. prefix: prefix,
  22573. iconName: iconIdentifier,
  22574. extra: extra,
  22575. watchable: true
  22576. }));
  22577. var element = DOCUMENT.createElement('svg');
  22578. if (position === ':before') {
  22579. node.insertBefore(element, node.firstChild);
  22580. } else {
  22581. node.appendChild(element);
  22582. }
  22583. element.outerHTML = abstract.map(function (a) {
  22584. return toHtml(a);
  22585. }).join('\n');
  22586. node.removeAttribute(pendingAttribute);
  22587. resolve();
  22588. }).catch(reject);
  22589. } else {
  22590. resolve();
  22591. }
  22592. } else {
  22593. resolve();
  22594. }
  22595. });
  22596. }
  22597. function replace(node) {
  22598. return picked.all([replaceForPosition(node, ':before'), replaceForPosition(node, ':after')]);
  22599. }
  22600. function processable(node) {
  22601. return node.parentNode !== document.head && !~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(node.tagName.toUpperCase()) && !node.getAttribute(DATA_FA_PSEUDO_ELEMENT) && (!node.parentNode || node.parentNode.tagName !== 'svg');
  22602. }
  22603. function searchPseudoElements (root) {
  22604. if (!IS_DOM) return;
  22605. return new picked(function (resolve, reject) {
  22606. var operations = toArray(root.querySelectorAll('*')).filter(processable).map(replace);
  22607. var end = perf.begin('searchPseudoElements');
  22608. disableObservation();
  22609. picked.all(operations).then(function () {
  22610. end();
  22611. enableObservation();
  22612. resolve();
  22613. }).catch(function () {
  22614. end();
  22615. enableObservation();
  22616. reject();
  22617. });
  22618. });
  22619. }
  22620. var baseStyles = "svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}";
  22621. function css () {
  22622. var dfp = DEFAULT_FAMILY_PREFIX;
  22623. var drc = DEFAULT_REPLACEMENT_CLASS;
  22624. var fp = config.familyPrefix;
  22625. var rc = config.replacementClass;
  22626. var s = baseStyles;
  22627. if (fp !== dfp || rc !== drc) {
  22628. var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
  22629. var customPropPatt = new RegExp("\\--".concat(dfp, "\\-"), 'g');
  22630. var rPatt = new RegExp("\\.".concat(drc), 'g');
  22631. s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
  22632. }
  22633. return s;
  22634. }
  22635. var Library =
  22636. /*#__PURE__*/
  22637. function () {
  22638. function Library() {
  22639. _classCallCheck(this, Library);
  22640. this.definitions = {};
  22641. }
  22642. _createClass(Library, [{
  22643. key: "add",
  22644. value: function add() {
  22645. var _this = this;
  22646. for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
  22647. definitions[_key] = arguments[_key];
  22648. }
  22649. var additions = definitions.reduce(this._pullDefinitions, {});
  22650. Object.keys(additions).forEach(function (key) {
  22651. _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
  22652. defineIcons(key, additions[key]);
  22653. build();
  22654. });
  22655. }
  22656. }, {
  22657. key: "reset",
  22658. value: function reset() {
  22659. this.definitions = {};
  22660. }
  22661. }, {
  22662. key: "_pullDefinitions",
  22663. value: function _pullDefinitions(additions, definition) {
  22664. var normalized = definition.prefix && definition.iconName && definition.icon ? {
  22665. 0: definition
  22666. } : definition;
  22667. Object.keys(normalized).map(function (key) {
  22668. var _normalized$key = normalized[key],
  22669. prefix = _normalized$key.prefix,
  22670. iconName = _normalized$key.iconName,
  22671. icon = _normalized$key.icon;
  22672. if (!additions[prefix]) additions[prefix] = {};
  22673. additions[prefix][iconName] = icon;
  22674. });
  22675. return additions;
  22676. }
  22677. }]);
  22678. return Library;
  22679. }();
  22680. function ensureCss() {
  22681. if (config.autoAddCss && !_cssInserted) {
  22682. insertCss(css());
  22683. _cssInserted = true;
  22684. }
  22685. }
  22686. function apiObject(val, abstractCreator) {
  22687. Object.defineProperty(val, 'abstract', {
  22688. get: abstractCreator
  22689. });
  22690. Object.defineProperty(val, 'html', {
  22691. get: function get() {
  22692. return val.abstract.map(function (a) {
  22693. return toHtml(a);
  22694. });
  22695. }
  22696. });
  22697. Object.defineProperty(val, 'node', {
  22698. get: function get() {
  22699. if (!IS_DOM) return;
  22700. var container = DOCUMENT.createElement('div');
  22701. container.innerHTML = val.html;
  22702. return container.children;
  22703. }
  22704. });
  22705. return val;
  22706. }
  22707. function findIconDefinition(iconLookup) {
  22708. var _iconLookup$prefix = iconLookup.prefix,
  22709. prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
  22710. iconName = iconLookup.iconName;
  22711. if (!iconName) return;
  22712. return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
  22713. }
  22714. function resolveIcons(next) {
  22715. return function (maybeIconDefinition) {
  22716. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  22717. var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
  22718. var mask = params.mask;
  22719. if (mask) {
  22720. mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
  22721. }
  22722. return next(iconDefinition, _objectSpread({}, params, {
  22723. mask: mask
  22724. }));
  22725. };
  22726. }
  22727. var library = new Library();
  22728. var noAuto = function noAuto() {
  22729. config.autoReplaceSvg = false;
  22730. config.observeMutations = false;
  22731. disconnect();
  22732. };
  22733. var _cssInserted = false;
  22734. var dom = {
  22735. i2svg: function i2svg() {
  22736. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  22737. if (IS_DOM) {
  22738. ensureCss();
  22739. var _params$node = params.node,
  22740. node = _params$node === void 0 ? DOCUMENT : _params$node,
  22741. _params$callback = params.callback,
  22742. callback = _params$callback === void 0 ? function () {} : _params$callback;
  22743. if (config.searchPseudoElements) {
  22744. searchPseudoElements(node);
  22745. }
  22746. return onTree(node, callback);
  22747. } else {
  22748. return picked.reject('Operation requires a DOM of some kind.');
  22749. }
  22750. },
  22751. css: css,
  22752. insertCss: function insertCss$$1() {
  22753. if (!_cssInserted) {
  22754. insertCss(css());
  22755. _cssInserted = true;
  22756. }
  22757. },
  22758. watch: function watch() {
  22759. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  22760. var autoReplaceSvgRoot = params.autoReplaceSvgRoot,
  22761. observeMutationsRoot = params.observeMutationsRoot;
  22762. if (config.autoReplaceSvg === false) {
  22763. config.autoReplaceSvg = true;
  22764. }
  22765. config.observeMutations = true;
  22766. domready(function () {
  22767. autoReplace({
  22768. autoReplaceSvgRoot: autoReplaceSvgRoot
  22769. });
  22770. observe({
  22771. treeCallback: onTree,
  22772. nodeCallback: onNode,
  22773. pseudoElementsCallback: searchPseudoElements,
  22774. observeMutationsRoot: observeMutationsRoot
  22775. });
  22776. });
  22777. }
  22778. };
  22779. var parse = {
  22780. transform: function transform(transformString) {
  22781. return parseTransformString(transformString);
  22782. }
  22783. };
  22784. var icon = resolveIcons(function (iconDefinition) {
  22785. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  22786. var _params$transform = params.transform,
  22787. transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
  22788. _params$symbol = params.symbol,
  22789. symbol = _params$symbol === void 0 ? false : _params$symbol,
  22790. _params$mask = params.mask,
  22791. mask = _params$mask === void 0 ? null : _params$mask,
  22792. _params$maskId = params.maskId,
  22793. maskId = _params$maskId === void 0 ? null : _params$maskId,
  22794. _params$title = params.title,
  22795. title = _params$title === void 0 ? null : _params$title,
  22796. _params$titleId = params.titleId,
  22797. titleId = _params$titleId === void 0 ? null : _params$titleId,
  22798. _params$classes = params.classes,
  22799. classes = _params$classes === void 0 ? [] : _params$classes,
  22800. _params$attributes = params.attributes,
  22801. attributes = _params$attributes === void 0 ? {} : _params$attributes,
  22802. _params$styles = params.styles,
  22803. styles = _params$styles === void 0 ? {} : _params$styles;
  22804. if (!iconDefinition) return;
  22805. var prefix = iconDefinition.prefix,
  22806. iconName = iconDefinition.iconName,
  22807. icon = iconDefinition.icon;
  22808. return apiObject(_objectSpread({
  22809. type: 'icon'
  22810. }, iconDefinition), function () {
  22811. ensureCss();
  22812. if (config.autoA11y) {
  22813. if (title) {
  22814. attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
  22815. } else {
  22816. attributes['aria-hidden'] = 'true';
  22817. attributes['focusable'] = 'false';
  22818. }
  22819. }
  22820. return makeInlineSvgAbstract({
  22821. icons: {
  22822. main: asFoundIcon(icon),
  22823. mask: mask ? asFoundIcon(mask.icon) : {
  22824. found: false,
  22825. width: null,
  22826. height: null,
  22827. icon: {}
  22828. }
  22829. },
  22830. prefix: prefix,
  22831. iconName: iconName,
  22832. transform: _objectSpread({}, meaninglessTransform, transform),
  22833. symbol: symbol,
  22834. title: title,
  22835. maskId: maskId,
  22836. titleId: titleId,
  22837. extra: {
  22838. attributes: attributes,
  22839. styles: styles,
  22840. classes: classes
  22841. }
  22842. });
  22843. });
  22844. });
  22845. var text = function text(content) {
  22846. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  22847. var _params$transform2 = params.transform,
  22848. transform = _params$transform2 === void 0 ? meaninglessTransform : _params$transform2,
  22849. _params$title2 = params.title,
  22850. title = _params$title2 === void 0 ? null : _params$title2,
  22851. _params$classes2 = params.classes,
  22852. classes = _params$classes2 === void 0 ? [] : _params$classes2,
  22853. _params$attributes2 = params.attributes,
  22854. attributes = _params$attributes2 === void 0 ? {} : _params$attributes2,
  22855. _params$styles2 = params.styles,
  22856. styles = _params$styles2 === void 0 ? {} : _params$styles2;
  22857. return apiObject({
  22858. type: 'text',
  22859. content: content
  22860. }, function () {
  22861. ensureCss();
  22862. return makeLayersTextAbstract({
  22863. content: content,
  22864. transform: _objectSpread({}, meaninglessTransform, transform),
  22865. title: title,
  22866. extra: {
  22867. attributes: attributes,
  22868. styles: styles,
  22869. classes: ["".concat(config.familyPrefix, "-layers-text")].concat(_toConsumableArray(classes))
  22870. }
  22871. });
  22872. });
  22873. };
  22874. var counter = function counter(content) {
  22875. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  22876. var _params$title3 = params.title,
  22877. title = _params$title3 === void 0 ? null : _params$title3,
  22878. _params$classes3 = params.classes,
  22879. classes = _params$classes3 === void 0 ? [] : _params$classes3,
  22880. _params$attributes3 = params.attributes,
  22881. attributes = _params$attributes3 === void 0 ? {} : _params$attributes3,
  22882. _params$styles3 = params.styles,
  22883. styles = _params$styles3 === void 0 ? {} : _params$styles3;
  22884. return apiObject({
  22885. type: 'counter',
  22886. content: content
  22887. }, function () {
  22888. ensureCss();
  22889. return makeLayersCounterAbstract({
  22890. content: content.toString(),
  22891. title: title,
  22892. extra: {
  22893. attributes: attributes,
  22894. styles: styles,
  22895. classes: ["".concat(config.familyPrefix, "-layers-counter")].concat(_toConsumableArray(classes))
  22896. }
  22897. });
  22898. });
  22899. };
  22900. var layer = function layer(assembler) {
  22901. var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  22902. var _params$classes4 = params.classes,
  22903. classes = _params$classes4 === void 0 ? [] : _params$classes4;
  22904. return apiObject({
  22905. type: 'layer'
  22906. }, function () {
  22907. ensureCss();
  22908. var children = [];
  22909. assembler(function (args) {
  22910. Array.isArray(args) ? args.map(function (a) {
  22911. children = children.concat(a.abstract);
  22912. }) : children = children.concat(args.abstract);
  22913. });
  22914. return [{
  22915. tag: 'span',
  22916. attributes: {
  22917. class: ["".concat(config.familyPrefix, "-layers")].concat(_toConsumableArray(classes)).join(' ')
  22918. },
  22919. children: children
  22920. }];
  22921. });
  22922. };
  22923. var api = {
  22924. noAuto: noAuto,
  22925. config: config,
  22926. dom: dom,
  22927. library: library,
  22928. parse: parse,
  22929. findIconDefinition: findIconDefinition,
  22930. icon: icon,
  22931. text: text,
  22932. counter: counter,
  22933. layer: layer,
  22934. toHtml: toHtml
  22935. };
  22936. var autoReplace = function autoReplace() {
  22937. var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  22938. var _params$autoReplaceSv = params.autoReplaceSvgRoot,
  22939. autoReplaceSvgRoot = _params$autoReplaceSv === void 0 ? DOCUMENT : _params$autoReplaceSv;
  22940. if ((Object.keys(namespace.styles).length > 0 || config.autoFetchSvg) && IS_DOM && config.autoReplaceSvg) api.dom.i2svg({
  22941. node: autoReplaceSvgRoot
  22942. });
  22943. };
  22944. /***/ }),
  22945. /***/ "7o/Q":
  22946. /*!***********************************************************!*\
  22947. !*** ./node_modules/rxjs/_esm2015/internal/Subscriber.js ***!
  22948. \***********************************************************/
  22949. /*! exports provided: Subscriber, SafeSubscriber */
  22950. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  22951. "use strict";
  22952. __webpack_require__.r(__webpack_exports__);
  22953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Subscriber", function() { return Subscriber; });
  22954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SafeSubscriber", function() { return SafeSubscriber; });
  22955. /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util/isFunction */ "n6bG");
  22956. /* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Observer */ "gRHU");
  22957. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Subscription */ "quSY");
  22958. /* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../internal/symbol/rxSubscriber */ "2QA8");
  22959. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config */ "2fFW");
  22960. /* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./util/hostReportError */ "NJ4a");
  22961. class Subscriber extends _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"] {
  22962. constructor(destinationOrNext, error, complete) {
  22963. super();
  22964. this.syncErrorValue = null;
  22965. this.syncErrorThrown = false;
  22966. this.syncErrorThrowable = false;
  22967. this.isStopped = false;
  22968. switch (arguments.length) {
  22969. case 0:
  22970. this.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"];
  22971. break;
  22972. case 1:
  22973. if (!destinationOrNext) {
  22974. this.destination = _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"];
  22975. break;
  22976. }
  22977. if (typeof destinationOrNext === 'object') {
  22978. if (destinationOrNext instanceof Subscriber) {
  22979. this.syncErrorThrowable = destinationOrNext.syncErrorThrowable;
  22980. this.destination = destinationOrNext;
  22981. destinationOrNext.add(this);
  22982. }
  22983. else {
  22984. this.syncErrorThrowable = true;
  22985. this.destination = new SafeSubscriber(this, destinationOrNext);
  22986. }
  22987. break;
  22988. }
  22989. default:
  22990. this.syncErrorThrowable = true;
  22991. this.destination = new SafeSubscriber(this, destinationOrNext, error, complete);
  22992. break;
  22993. }
  22994. }
  22995. [_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_3__["rxSubscriber"]]() { return this; }
  22996. static create(next, error, complete) {
  22997. const subscriber = new Subscriber(next, error, complete);
  22998. subscriber.syncErrorThrowable = false;
  22999. return subscriber;
  23000. }
  23001. next(value) {
  23002. if (!this.isStopped) {
  23003. this._next(value);
  23004. }
  23005. }
  23006. error(err) {
  23007. if (!this.isStopped) {
  23008. this.isStopped = true;
  23009. this._error(err);
  23010. }
  23011. }
  23012. complete() {
  23013. if (!this.isStopped) {
  23014. this.isStopped = true;
  23015. this._complete();
  23016. }
  23017. }
  23018. unsubscribe() {
  23019. if (this.closed) {
  23020. return;
  23021. }
  23022. this.isStopped = true;
  23023. super.unsubscribe();
  23024. }
  23025. _next(value) {
  23026. this.destination.next(value);
  23027. }
  23028. _error(err) {
  23029. this.destination.error(err);
  23030. this.unsubscribe();
  23031. }
  23032. _complete() {
  23033. this.destination.complete();
  23034. this.unsubscribe();
  23035. }
  23036. _unsubscribeAndRecycle() {
  23037. const { _parentOrParents } = this;
  23038. this._parentOrParents = null;
  23039. this.unsubscribe();
  23040. this.closed = false;
  23041. this.isStopped = false;
  23042. this._parentOrParents = _parentOrParents;
  23043. return this;
  23044. }
  23045. }
  23046. class SafeSubscriber extends Subscriber {
  23047. constructor(_parentSubscriber, observerOrNext, error, complete) {
  23048. super();
  23049. this._parentSubscriber = _parentSubscriber;
  23050. let next;
  23051. let context = this;
  23052. if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(observerOrNext)) {
  23053. next = observerOrNext;
  23054. }
  23055. else if (observerOrNext) {
  23056. next = observerOrNext.next;
  23057. error = observerOrNext.error;
  23058. complete = observerOrNext.complete;
  23059. if (observerOrNext !== _Observer__WEBPACK_IMPORTED_MODULE_1__["empty"]) {
  23060. context = Object.create(observerOrNext);
  23061. if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_0__["isFunction"])(context.unsubscribe)) {
  23062. this.add(context.unsubscribe.bind(context));
  23063. }
  23064. context.unsubscribe = this.unsubscribe.bind(this);
  23065. }
  23066. }
  23067. this._context = context;
  23068. this._next = next;
  23069. this._error = error;
  23070. this._complete = complete;
  23071. }
  23072. next(value) {
  23073. if (!this.isStopped && this._next) {
  23074. const { _parentSubscriber } = this;
  23075. if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
  23076. this.__tryOrUnsub(this._next, value);
  23077. }
  23078. else if (this.__tryOrSetError(_parentSubscriber, this._next, value)) {
  23079. this.unsubscribe();
  23080. }
  23081. }
  23082. }
  23083. error(err) {
  23084. if (!this.isStopped) {
  23085. const { _parentSubscriber } = this;
  23086. const { useDeprecatedSynchronousErrorHandling } = _config__WEBPACK_IMPORTED_MODULE_4__["config"];
  23087. if (this._error) {
  23088. if (!useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
  23089. this.__tryOrUnsub(this._error, err);
  23090. this.unsubscribe();
  23091. }
  23092. else {
  23093. this.__tryOrSetError(_parentSubscriber, this._error, err);
  23094. this.unsubscribe();
  23095. }
  23096. }
  23097. else if (!_parentSubscriber.syncErrorThrowable) {
  23098. this.unsubscribe();
  23099. if (useDeprecatedSynchronousErrorHandling) {
  23100. throw err;
  23101. }
  23102. Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
  23103. }
  23104. else {
  23105. if (useDeprecatedSynchronousErrorHandling) {
  23106. _parentSubscriber.syncErrorValue = err;
  23107. _parentSubscriber.syncErrorThrown = true;
  23108. }
  23109. else {
  23110. Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
  23111. }
  23112. this.unsubscribe();
  23113. }
  23114. }
  23115. }
  23116. complete() {
  23117. if (!this.isStopped) {
  23118. const { _parentSubscriber } = this;
  23119. if (this._complete) {
  23120. const wrappedComplete = () => this._complete.call(this._context);
  23121. if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling || !_parentSubscriber.syncErrorThrowable) {
  23122. this.__tryOrUnsub(wrappedComplete);
  23123. this.unsubscribe();
  23124. }
  23125. else {
  23126. this.__tryOrSetError(_parentSubscriber, wrappedComplete);
  23127. this.unsubscribe();
  23128. }
  23129. }
  23130. else {
  23131. this.unsubscribe();
  23132. }
  23133. }
  23134. }
  23135. __tryOrUnsub(fn, value) {
  23136. try {
  23137. fn.call(this._context, value);
  23138. }
  23139. catch (err) {
  23140. this.unsubscribe();
  23141. if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
  23142. throw err;
  23143. }
  23144. else {
  23145. Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
  23146. }
  23147. }
  23148. }
  23149. __tryOrSetError(parent, fn, value) {
  23150. if (!_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
  23151. throw new Error('bad call');
  23152. }
  23153. try {
  23154. fn.call(this._context, value);
  23155. }
  23156. catch (err) {
  23157. if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
  23158. parent.syncErrorValue = err;
  23159. parent.syncErrorThrown = true;
  23160. return true;
  23161. }
  23162. else {
  23163. Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_5__["hostReportError"])(err);
  23164. return true;
  23165. }
  23166. }
  23167. return false;
  23168. }
  23169. _unsubscribe() {
  23170. const { _parentSubscriber } = this;
  23171. this._context = null;
  23172. this._parentSubscriber = null;
  23173. _parentSubscriber.unsubscribe();
  23174. }
  23175. }
  23176. //# sourceMappingURL=Subscriber.js.map
  23177. /***/ }),
  23178. /***/ "7ve7":
  23179. /*!*****************************************************************!*\
  23180. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/Action.js ***!
  23181. \*****************************************************************/
  23182. /*! exports provided: Action */
  23183. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23184. "use strict";
  23185. __webpack_require__.r(__webpack_exports__);
  23186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Action", function() { return Action; });
  23187. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscription */ "quSY");
  23188. class Action extends _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"] {
  23189. constructor(scheduler, work) {
  23190. super();
  23191. }
  23192. schedule(state, delay = 0) {
  23193. return this;
  23194. }
  23195. }
  23196. //# sourceMappingURL=Action.js.map
  23197. /***/ }),
  23198. /***/ "7wxJ":
  23199. /*!*********************************************************************!*\
  23200. !*** ./node_modules/rxjs/_esm2015/internal/operators/combineAll.js ***!
  23201. \*********************************************************************/
  23202. /*! exports provided: combineAll */
  23203. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23204. "use strict";
  23205. __webpack_require__.r(__webpack_exports__);
  23206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineAll", function() { return combineAll; });
  23207. /* harmony import */ var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/combineLatest */ "itXk");
  23208. function combineAll(project) {
  23209. return (source) => source.lift(new _observable_combineLatest__WEBPACK_IMPORTED_MODULE_0__["CombineLatestOperator"](project));
  23210. }
  23211. //# sourceMappingURL=combineAll.js.map
  23212. /***/ }),
  23213. /***/ "8LU1":
  23214. /*!********************************************************!*\
  23215. !*** ./node_modules/@angular/cdk/fesm2015/coercion.js ***!
  23216. \********************************************************/
  23217. /*! exports provided: _isNumberValue, coerceArray, coerceBooleanProperty, coerceCssPixelValue, coerceElement, coerceNumberProperty */
  23218. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23219. "use strict";
  23220. __webpack_require__.r(__webpack_exports__);
  23221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_isNumberValue", function() { return _isNumberValue; });
  23222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceArray", function() { return coerceArray; });
  23223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceBooleanProperty", function() { return coerceBooleanProperty; });
  23224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceCssPixelValue", function() { return coerceCssPixelValue; });
  23225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceElement", function() { return coerceElement; });
  23226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "coerceNumberProperty", function() { return coerceNumberProperty; });
  23227. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  23228. /**
  23229. * @license
  23230. * Copyright Google LLC All Rights Reserved.
  23231. *
  23232. * Use of this source code is governed by an MIT-style license that can be
  23233. * found in the LICENSE file at https://angular.io/license
  23234. */
  23235. /** Coerces a data-bound value (typically a string) to a boolean. */
  23236. function coerceBooleanProperty(value) {
  23237. return value != null && `${value}` !== 'false';
  23238. }
  23239. /**
  23240. * @license
  23241. * Copyright Google LLC All Rights Reserved.
  23242. *
  23243. * Use of this source code is governed by an MIT-style license that can be
  23244. * found in the LICENSE file at https://angular.io/license
  23245. */
  23246. function coerceNumberProperty(value, fallbackValue = 0) {
  23247. return _isNumberValue(value) ? Number(value) : fallbackValue;
  23248. }
  23249. /**
  23250. * Whether the provided value is considered a number.
  23251. * @docs-private
  23252. */
  23253. function _isNumberValue(value) {
  23254. // parseFloat(value) handles most of the cases we're interested in (it treats null, empty string,
  23255. // and other non-number values as NaN, where Number just uses 0) but it considers the string
  23256. // '123hello' to be a valid number. Therefore we also check if Number(value) is NaN.
  23257. return !isNaN(parseFloat(value)) && !isNaN(Number(value));
  23258. }
  23259. /**
  23260. * @license
  23261. * Copyright Google LLC All Rights Reserved.
  23262. *
  23263. * Use of this source code is governed by an MIT-style license that can be
  23264. * found in the LICENSE file at https://angular.io/license
  23265. */
  23266. /** Wraps the provided value in an array, unless the provided value is an array. */
  23267. function coerceArray(value) {
  23268. return Array.isArray(value) ? value : [value];
  23269. }
  23270. /**
  23271. * @license
  23272. * Copyright Google LLC All Rights Reserved.
  23273. *
  23274. * Use of this source code is governed by an MIT-style license that can be
  23275. * found in the LICENSE file at https://angular.io/license
  23276. */
  23277. /** Coerces a value to a CSS pixel value. */
  23278. function coerceCssPixelValue(value) {
  23279. if (value == null) {
  23280. return '';
  23281. }
  23282. return typeof value === 'string' ? value : `${value}px`;
  23283. }
  23284. /**
  23285. * @license
  23286. * Copyright Google LLC All Rights Reserved.
  23287. *
  23288. * Use of this source code is governed by an MIT-style license that can be
  23289. * found in the LICENSE file at https://angular.io/license
  23290. */
  23291. /**
  23292. * Coerces an ElementRef or an Element into an element.
  23293. * Useful for APIs that can accept either a ref or the native element itself.
  23294. */
  23295. function coerceElement(elementOrRef) {
  23296. return elementOrRef instanceof _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] ? elementOrRef.nativeElement : elementOrRef;
  23297. }
  23298. /**
  23299. * @license
  23300. * Copyright Google LLC All Rights Reserved.
  23301. *
  23302. * Use of this source code is governed by an MIT-style license that can be
  23303. * found in the LICENSE file at https://angular.io/license
  23304. */
  23305. /**
  23306. * @license
  23307. * Copyright Google LLC All Rights Reserved.
  23308. *
  23309. * Use of this source code is governed by an MIT-style license that can be
  23310. * found in the LICENSE file at https://angular.io/license
  23311. */
  23312. //# sourceMappingURL=coercion.js.map
  23313. /***/ }),
  23314. /***/ "8Qeq":
  23315. /*!********************************************************************!*\
  23316. !*** ./node_modules/rxjs/_esm2015/internal/util/canReportError.js ***!
  23317. \********************************************************************/
  23318. /*! exports provided: canReportError */
  23319. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23320. "use strict";
  23321. __webpack_require__.r(__webpack_exports__);
  23322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "canReportError", function() { return canReportError; });
  23323. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  23324. function canReportError(observer) {
  23325. while (observer) {
  23326. const { closed, destination, isStopped } = observer;
  23327. if (closed || isStopped) {
  23328. return false;
  23329. }
  23330. else if (destination && destination instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]) {
  23331. observer = destination;
  23332. }
  23333. else {
  23334. observer = null;
  23335. }
  23336. }
  23337. return true;
  23338. }
  23339. //# sourceMappingURL=canReportError.js.map
  23340. /***/ }),
  23341. /***/ "9M8c":
  23342. /*!**********************************************************************!*\
  23343. !*** ./node_modules/rxjs/_esm2015/internal/operators/bufferCount.js ***!
  23344. \**********************************************************************/
  23345. /*! exports provided: bufferCount */
  23346. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23347. "use strict";
  23348. __webpack_require__.r(__webpack_exports__);
  23349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferCount", function() { return bufferCount; });
  23350. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  23351. function bufferCount(bufferSize, startBufferEvery = null) {
  23352. return function bufferCountOperatorFunction(source) {
  23353. return source.lift(new BufferCountOperator(bufferSize, startBufferEvery));
  23354. };
  23355. }
  23356. class BufferCountOperator {
  23357. constructor(bufferSize, startBufferEvery) {
  23358. this.bufferSize = bufferSize;
  23359. this.startBufferEvery = startBufferEvery;
  23360. if (!startBufferEvery || bufferSize === startBufferEvery) {
  23361. this.subscriberClass = BufferCountSubscriber;
  23362. }
  23363. else {
  23364. this.subscriberClass = BufferSkipCountSubscriber;
  23365. }
  23366. }
  23367. call(subscriber, source) {
  23368. return source.subscribe(new this.subscriberClass(subscriber, this.bufferSize, this.startBufferEvery));
  23369. }
  23370. }
  23371. class BufferCountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  23372. constructor(destination, bufferSize) {
  23373. super(destination);
  23374. this.bufferSize = bufferSize;
  23375. this.buffer = [];
  23376. }
  23377. _next(value) {
  23378. const buffer = this.buffer;
  23379. buffer.push(value);
  23380. if (buffer.length == this.bufferSize) {
  23381. this.destination.next(buffer);
  23382. this.buffer = [];
  23383. }
  23384. }
  23385. _complete() {
  23386. const buffer = this.buffer;
  23387. if (buffer.length > 0) {
  23388. this.destination.next(buffer);
  23389. }
  23390. super._complete();
  23391. }
  23392. }
  23393. class BufferSkipCountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  23394. constructor(destination, bufferSize, startBufferEvery) {
  23395. super(destination);
  23396. this.bufferSize = bufferSize;
  23397. this.startBufferEvery = startBufferEvery;
  23398. this.buffers = [];
  23399. this.count = 0;
  23400. }
  23401. _next(value) {
  23402. const { bufferSize, startBufferEvery, buffers, count } = this;
  23403. this.count++;
  23404. if (count % startBufferEvery === 0) {
  23405. buffers.push([]);
  23406. }
  23407. for (let i = buffers.length; i--;) {
  23408. const buffer = buffers[i];
  23409. buffer.push(value);
  23410. if (buffer.length === bufferSize) {
  23411. buffers.splice(i, 1);
  23412. this.destination.next(buffer);
  23413. }
  23414. }
  23415. }
  23416. _complete() {
  23417. const { buffers, destination } = this;
  23418. while (buffers.length > 0) {
  23419. let buffer = buffers.shift();
  23420. if (buffer.length > 0) {
  23421. destination.next(buffer);
  23422. }
  23423. }
  23424. super._complete();
  23425. }
  23426. }
  23427. //# sourceMappingURL=bufferCount.js.map
  23428. /***/ }),
  23429. /***/ "9ihq":
  23430. /*!********************************************************************!*\
  23431. !*** ./node_modules/rxjs/_esm2015/internal/operators/elementAt.js ***!
  23432. \********************************************************************/
  23433. /*! exports provided: elementAt */
  23434. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23435. "use strict";
  23436. __webpack_require__.r(__webpack_exports__);
  23437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "elementAt", function() { return elementAt; });
  23438. /* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/ArgumentOutOfRangeError */ "4I5i");
  23439. /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ "pLZG");
  23440. /* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./throwIfEmpty */ "XDbj");
  23441. /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultIfEmpty */ "xbPD");
  23442. /* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./take */ "IzEk");
  23443. function elementAt(index, defaultValue) {
  23444. if (index < 0) {
  23445. throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__["ArgumentOutOfRangeError"]();
  23446. }
  23447. const hasDefaultValue = arguments.length >= 2;
  23448. return (source) => source.pipe(Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])((v, i) => i === index), Object(_take__WEBPACK_IMPORTED_MODULE_4__["take"])(1), hasDefaultValue
  23449. ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__["defaultIfEmpty"])(defaultValue)
  23450. : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_2__["throwIfEmpty"])(() => new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_0__["ArgumentOutOfRangeError"]()));
  23451. }
  23452. //# sourceMappingURL=elementAt.js.map
  23453. /***/ }),
  23454. /***/ "9ppp":
  23455. /*!*****************************************************************************!*\
  23456. !*** ./node_modules/rxjs/_esm2015/internal/util/ObjectUnsubscribedError.js ***!
  23457. \*****************************************************************************/
  23458. /*! exports provided: ObjectUnsubscribedError */
  23459. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23460. "use strict";
  23461. __webpack_require__.r(__webpack_exports__);
  23462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function() { return ObjectUnsubscribedError; });
  23463. const ObjectUnsubscribedErrorImpl = (() => {
  23464. function ObjectUnsubscribedErrorImpl() {
  23465. Error.call(this);
  23466. this.message = 'object unsubscribed';
  23467. this.name = 'ObjectUnsubscribedError';
  23468. return this;
  23469. }
  23470. ObjectUnsubscribedErrorImpl.prototype = Object.create(Error.prototype);
  23471. return ObjectUnsubscribedErrorImpl;
  23472. })();
  23473. const ObjectUnsubscribedError = ObjectUnsubscribedErrorImpl;
  23474. //# sourceMappingURL=ObjectUnsubscribedError.js.map
  23475. /***/ }),
  23476. /***/ "A/ap":
  23477. /*!*********************************************************!*\
  23478. !*** ./node_modules/detect-passive-events/lib/index.js ***!
  23479. \*********************************************************/
  23480. /*! no static exports found */
  23481. /***/ (function(module, exports, __webpack_require__) {
  23482. "use strict";
  23483. Object.defineProperty(exports, "__esModule", {
  23484. value: true
  23485. });
  23486. // adapted from https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
  23487. var detectPassiveEvents = {
  23488. update: function update() {
  23489. if (typeof window !== 'undefined' && typeof window.addEventListener === 'function') {
  23490. var passive = false;
  23491. var options = Object.defineProperty({}, 'passive', {
  23492. get: function get() {
  23493. passive = true;
  23494. }
  23495. });
  23496. // note: have to set and remove a no-op listener instead of null
  23497. // (which was used previously), becasue Edge v15 throws an error
  23498. // when providing a null callback.
  23499. // https://github.com/rafgraph/detect-passive-events/pull/3
  23500. var noop = function noop() {};
  23501. window.addEventListener('testPassiveEventSupport', noop, options);
  23502. window.removeEventListener('testPassiveEventSupport', noop, options);
  23503. detectPassiveEvents.hasSupport = passive;
  23504. }
  23505. }
  23506. };
  23507. detectPassiveEvents.update();
  23508. exports.default = detectPassiveEvents;
  23509. /***/ }),
  23510. /***/ "A3iJ":
  23511. /*!********************************************************************!*\
  23512. !*** ./node_modules/rxjs/_esm2015/internal/operators/partition.js ***!
  23513. \********************************************************************/
  23514. /*! exports provided: partition */
  23515. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23516. "use strict";
  23517. __webpack_require__.r(__webpack_exports__);
  23518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return partition; });
  23519. /* harmony import */ var _util_not__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/not */ "F97/");
  23520. /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ "pLZG");
  23521. function partition(predicate, thisArg) {
  23522. return (source) => [
  23523. Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(predicate, thisArg)(source),
  23524. Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])(Object(_util_not__WEBPACK_IMPORTED_MODULE_0__["not"])(predicate, thisArg))(source)
  23525. ];
  23526. }
  23527. //# sourceMappingURL=partition.js.map
  23528. /***/ }),
  23529. /***/ "BFxc":
  23530. /*!*******************************************************************!*\
  23531. !*** ./node_modules/rxjs/_esm2015/internal/operators/takeLast.js ***!
  23532. \*******************************************************************/
  23533. /*! exports provided: takeLast */
  23534. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23535. "use strict";
  23536. __webpack_require__.r(__webpack_exports__);
  23537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeLast", function() { return takeLast; });
  23538. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  23539. /* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/ArgumentOutOfRangeError */ "4I5i");
  23540. /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/empty */ "EY2u");
  23541. function takeLast(count) {
  23542. return function takeLastOperatorFunction(source) {
  23543. if (count === 0) {
  23544. return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
  23545. }
  23546. else {
  23547. return source.lift(new TakeLastOperator(count));
  23548. }
  23549. };
  23550. }
  23551. class TakeLastOperator {
  23552. constructor(total) {
  23553. this.total = total;
  23554. if (this.total < 0) {
  23555. throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"];
  23556. }
  23557. }
  23558. call(subscriber, source) {
  23559. return source.subscribe(new TakeLastSubscriber(subscriber, this.total));
  23560. }
  23561. }
  23562. class TakeLastSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  23563. constructor(destination, total) {
  23564. super(destination);
  23565. this.total = total;
  23566. this.ring = new Array();
  23567. this.count = 0;
  23568. }
  23569. _next(value) {
  23570. const ring = this.ring;
  23571. const total = this.total;
  23572. const count = this.count++;
  23573. if (ring.length < total) {
  23574. ring.push(value);
  23575. }
  23576. else {
  23577. const index = count % total;
  23578. ring[index] = value;
  23579. }
  23580. }
  23581. _complete() {
  23582. const destination = this.destination;
  23583. let count = this.count;
  23584. if (count > 0) {
  23585. const total = this.count >= this.total ? this.total : this.count;
  23586. const ring = this.ring;
  23587. for (let i = 0; i < total; i++) {
  23588. const idx = (count++) % total;
  23589. destination.next(ring[idx]);
  23590. }
  23591. }
  23592. destination.complete();
  23593. }
  23594. }
  23595. //# sourceMappingURL=takeLast.js.map
  23596. /***/ }),
  23597. /***/ "CMyj":
  23598. /*!****************************************************************!*\
  23599. !*** ./node_modules/rxjs/_esm2015/internal/util/isIterable.js ***!
  23600. \****************************************************************/
  23601. /*! exports provided: isIterable */
  23602. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23603. "use strict";
  23604. __webpack_require__.r(__webpack_exports__);
  23605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isIterable", function() { return isIterable; });
  23606. /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbol/iterator */ "Lhse");
  23607. function isIterable(input) {
  23608. return input && typeof input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_0__["iterator"]] === 'function';
  23609. }
  23610. //# sourceMappingURL=isIterable.js.map
  23611. /***/ }),
  23612. /***/ "CRDf":
  23613. /*!***************************************************************************!*\
  23614. !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToObservable.js ***!
  23615. \***************************************************************************/
  23616. /*! exports provided: subscribeToObservable */
  23617. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23618. "use strict";
  23619. __webpack_require__.r(__webpack_exports__);
  23620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToObservable", function() { return subscribeToObservable; });
  23621. /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbol/observable */ "kJWO");
  23622. const subscribeToObservable = (obj) => (subscriber) => {
  23623. const obs = obj[_symbol_observable__WEBPACK_IMPORTED_MODULE_0__["observable"]]();
  23624. if (typeof obs.subscribe !== 'function') {
  23625. throw new TypeError('Provided object does not correctly implement Symbol.observable');
  23626. }
  23627. else {
  23628. return obs.subscribe(subscriber);
  23629. }
  23630. };
  23631. //# sourceMappingURL=subscribeToObservable.js.map
  23632. /***/ }),
  23633. /***/ "CS/5":
  23634. /*!*****************************************************************************************!*\
  23635. !*** ./node_modules/ng-dynamic-component/__ivy_ngcc__/fesm2015/ng-dynamic-component.js ***!
  23636. \*****************************************************************************************/
  23637. /*! exports provided: COMPONENT_INJECTOR, ComponentOutletInjectorDirective, ComponentOutletInjectorModule, DynamicAttributesDirective, DynamicAttributesModule, DynamicComponent, DynamicComponentInjectorToken, DynamicDirectivesDirective, DynamicDirectivesModule, DynamicIoDirective, DynamicIoModule, DynamicModule, EventArgumentToken, defaultEventArgumentFactory, dynamicDirectiveDef, ɵa, ɵb */
  23638. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  23639. "use strict";
  23640. __webpack_require__.r(__webpack_exports__);
  23641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPONENT_INJECTOR", function() { return COMPONENT_INJECTOR; });
  23642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentOutletInjectorDirective", function() { return ComponentOutletInjectorDirective; });
  23643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentOutletInjectorModule", function() { return ComponentOutletInjectorModule; });
  23644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicAttributesDirective", function() { return DynamicAttributesDirective; });
  23645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicAttributesModule", function() { return DynamicAttributesModule; });
  23646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicComponent", function() { return DynamicComponent; });
  23647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicComponentInjectorToken", function() { return DynamicComponentInjectorToken; });
  23648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicDirectivesDirective", function() { return DynamicDirectivesDirective; });
  23649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicDirectivesModule", function() { return DynamicDirectivesModule; });
  23650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicIoDirective", function() { return DynamicIoDirective; });
  23651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicIoModule", function() { return DynamicIoModule; });
  23652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DynamicModule", function() { return DynamicModule; });
  23653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventArgumentToken", function() { return EventArgumentToken; });
  23654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultEventArgumentFactory", function() { return defaultEventArgumentFactory; });
  23655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dynamicDirectiveDef", function() { return dynamicDirectiveDef; });
  23656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵa", function() { return DynamicIoModule; });
  23657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵb", function() { return DynamicComponentInjectorToken; });
  23658. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  23659. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
  23660. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
  23661. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  23662. /**
  23663. * @fileoverview added by tsickle
  23664. * Generated from: lib/io/types.ts
  23665. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  23666. */
  23667. /**
  23668. * @record
  23669. */
  23670. function InputsType() { }
  23671. /**
  23672. * @record
  23673. */
  23674. function OutputsType() { }
  23675. /**
  23676. * @record
  23677. */
  23678. function OutputWithArgs() { }
  23679. if (false) {}
  23680. /**
  23681. * @fileoverview added by tsickle
  23682. * Generated from: lib/io/event-argument.ts
  23683. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  23684. */
  23685. /**
  23686. * @return {?}
  23687. */
  23688. function defaultEventArgumentFactory() {
  23689. return '$event';
  23690. }
  23691. /** @type {?} */
  23692. const EventArgumentToken = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('EventArgument', {
  23693. providedIn: 'root',
  23694. factory: defaultEventArgumentFactory,
  23695. });
  23696. /**
  23697. * @fileoverview added by tsickle
  23698. * Generated from: lib/component-injector/token.ts
  23699. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  23700. */
  23701. /**
  23702. * @record
  23703. */
  23704. function DynamicComponentInjector() { }
  23705. if (false) {}
  23706. /** @type {?} */
  23707. const DynamicComponentInjectorToken = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('DynamicComponentInjector');
  23708. /**
  23709. * @deprecated Since v6.0.0 - Use {\@link DynamicComponentInjectorToken} instead
  23710. * and provide component class via `useExisting` instead of `useValue`
  23711. * @type {?}
  23712. */
  23713. const COMPONENT_INJECTOR = DynamicComponentInjectorToken;
  23714. /**
  23715. * @fileoverview added by tsickle
  23716. * Generated from: lib/component-injector/component-outlet-injector.directive.ts
  23717. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  23718. */
  23719. class ComponentOutletInjectorDirective {
  23720. /**
  23721. * @param {?} componentOutlet
  23722. */
  23723. constructor(componentOutlet) {
  23724. this.componentOutlet = componentOutlet;
  23725. }
  23726. /**
  23727. * @return {?}
  23728. */
  23729. get componentRef() {
  23730. // NOTE: Accessing private APIs of Angular
  23731. return ((/** @type {?} */ (this.componentOutlet)))._componentRef;
  23732. }
  23733. }
  23734. ComponentOutletInjectorDirective.ɵfac = function ComponentOutletInjectorDirective_Factory(t) { return new (t || ComponentOutletInjectorDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgComponentOutlet"], 1)); };
  23735. ComponentOutletInjectorDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: ComponentOutletInjectorDirective, selectors: [["", "ngComponentOutlet", ""]], exportAs: ["ndcComponentOutletInjector"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
  23736. {
  23737. provide: DynamicComponentInjectorToken,
  23738. useExisting: ComponentOutletInjectorDirective
  23739. },
  23740. ])] });
  23741. /** @nocollapse */
  23742. ComponentOutletInjectorDirective.ctorParameters = () => [
  23743. { type: _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgComponentOutlet"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }] }
  23744. ];
  23745. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ComponentOutletInjectorDirective, [{
  23746. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  23747. args: [{
  23748. // tslint:disable-next-line: directive-selector
  23749. selector: '[ngComponentOutlet]',
  23750. exportAs: 'ndcComponentOutletInjector',
  23751. providers: [
  23752. {
  23753. provide: DynamicComponentInjectorToken,
  23754. useExisting: ComponentOutletInjectorDirective
  23755. },
  23756. ]
  23757. }]
  23758. }], function () { return [{ type: _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgComponentOutlet"], decorators: [{
  23759. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  23760. }] }]; }, null); })();
  23761. if (false) {}
  23762. /**
  23763. * @fileoverview added by tsickle
  23764. * Generated from: lib/component-injector/component-outlet-injector.module.ts
  23765. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  23766. */
  23767. class ComponentOutletInjectorModule {
  23768. }
  23769. ComponentOutletInjectorModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: ComponentOutletInjectorModule });
  23770. ComponentOutletInjectorModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function ComponentOutletInjectorModule_Factory(t) { return new (t || ComponentOutletInjectorModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]] });
  23771. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](ComponentOutletInjectorModule, { declarations: function () { return [ComponentOutletInjectorDirective]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [ComponentOutletInjectorDirective]; } }); })();
  23772. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ComponentOutletInjectorModule, [{
  23773. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  23774. args: [{
  23775. imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]],
  23776. exports: [ComponentOutletInjectorDirective],
  23777. declarations: [ComponentOutletInjectorDirective]
  23778. }]
  23779. }], null, null); })();
  23780. /**
  23781. * @fileoverview added by tsickle
  23782. * Generated from: lib/component-injector/index.ts
  23783. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  23784. */
  23785. /**
  23786. * @fileoverview added by tsickle
  23787. * Generated from: lib/util.ts
  23788. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  23789. */
  23790. /**
  23791. * @param {?} val
  23792. * @return {?}
  23793. */
  23794. function createNewChange(val) {
  23795. return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["SimpleChange"](undefined, val, true);
  23796. }
  23797. /**
  23798. * @param {?} val
  23799. * @param {?} prevVal
  23800. * @return {?}
  23801. */
  23802. function createChange(val, prevVal) {
  23803. return new _angular_core__WEBPACK_IMPORTED_MODULE_0__["SimpleChange"](prevVal, val, false);
  23804. }
  23805. /**
  23806. * @return {?}
  23807. */
  23808. function noop() { }
  23809. /**
  23810. * @param {?} ctor
  23811. * @param {?} reflect
  23812. * @return {?}
  23813. */
  23814. function getCtorParamTypes(ctor, reflect) {
  23815. return reflect.getMetadata('design:paramtypes', ctor);
  23816. }
  23817. /**
  23818. * Extract type arguments from Angular Directive/Component
  23819. * @param {?} type
  23820. * @return {?}
  23821. */
  23822. function extractNgParamTypes(type) {
  23823. var _a, _b, _c;
  23824. // NOTE: Accessing private APIs of Angular
  23825. return (_c = (_b = (_a = ((/** @type {?} */ (type)))) === null || _a === void 0 ? void 0 : _a.ctorParameters) === null || _b === void 0 ? void 0 : _b.call(_a)) === null || _c === void 0 ? void 0 : _c.map((/**
  23826. * @param {?} param
  23827. * @return {?}
  23828. */
  23829. param => param.type));
  23830. }
  23831. /**
  23832. * @fileoverview added by tsickle
  23833. * Generated from: lib/io/io.service.ts
  23834. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  23835. */
  23836. /**
  23837. * @record
  23838. */
  23839. function IOMapInfo() { }
  23840. if (false) {}
  23841. /**
  23842. * @record
  23843. */
  23844. function IoInitOptions() { }
  23845. if (false) {}
  23846. /**
  23847. * @record
  23848. */
  23849. function OutputsTypeProcessed() { }
  23850. class IoService {
  23851. /**
  23852. * @param {?} differs
  23853. * @param {?} cfr
  23854. * @param {?} eventArgument
  23855. */
  23856. constructor(differs, cfr, eventArgument) {
  23857. this.differs = differs;
  23858. this.cfr = cfr;
  23859. this.eventArgument = eventArgument;
  23860. this.checkInit = this.failInit;
  23861. this.lastComponentInst = null;
  23862. this.inputsDiffer = this.differs.find({}).create();
  23863. this.compFactory = null;
  23864. this.outputsShouldDisconnect$ = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  23865. this.outputsChanged = (/**
  23866. * @return {?}
  23867. */
  23868. () => false);
  23869. }
  23870. /**
  23871. * @private
  23872. * @return {?}
  23873. */
  23874. get compRef() {
  23875. return this.compInjector.componentRef;
  23876. }
  23877. /**
  23878. * @private
  23879. * @return {?}
  23880. */
  23881. get componentInst() {
  23882. return this.compRef ? this.compRef.instance : null;
  23883. }
  23884. /**
  23885. * @private
  23886. * @return {?}
  23887. */
  23888. get componentInstChanged() {
  23889. if (this.lastComponentInst !== this.componentInst) {
  23890. this.lastComponentInst = this.componentInst;
  23891. return true;
  23892. }
  23893. else {
  23894. return false;
  23895. }
  23896. }
  23897. /**
  23898. * @private
  23899. * @return {?}
  23900. */
  23901. get compCdr() {
  23902. // tslint:disable-next-line: deprecation
  23903. return this.compRef ? this.compRef.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]) : null;
  23904. }
  23905. /**
  23906. * @return {?}
  23907. */
  23908. ngOnDestroy() {
  23909. this._disconnectOutputs();
  23910. }
  23911. /**
  23912. * @param {?} componentInjector
  23913. * @param {?=} options
  23914. * @return {?}
  23915. */
  23916. init(componentInjector, options = {}) {
  23917. this.checkInit = componentInjector ? noop : this.failInit;
  23918. this.compInjector = componentInjector;
  23919. if (options.trackOutputChanges) {
  23920. /** @type {?} */
  23921. const outputsDiffer = this.differs.find({}).create();
  23922. this.outputsChanged = (/**
  23923. * @param {?} outputs
  23924. * @return {?}
  23925. */
  23926. outputs => !!outputsDiffer.diff(outputs));
  23927. }
  23928. }
  23929. /**
  23930. * @param {?} inputs
  23931. * @param {?} outputs
  23932. * @param {?} inputsChanged
  23933. * @param {?} outputsChanged
  23934. * @return {?}
  23935. */
  23936. update(inputs, outputs, inputsChanged, outputsChanged) {
  23937. this.checkInit();
  23938. this.updateIO(inputs, outputs);
  23939. /** @type {?} */
  23940. const compChanged = this.componentInstChanged;
  23941. if (compChanged || inputsChanged) {
  23942. /** @type {?} */
  23943. const inputsChanges = this._getInputsChanges();
  23944. if (inputsChanges) {
  23945. this._updateInputChanges(inputsChanges);
  23946. }
  23947. this.updateInputs(compChanged || !this.lastInputChanges);
  23948. }
  23949. if (compChanged || outputsChanged) {
  23950. this.bindOutputs();
  23951. }
  23952. }
  23953. /**
  23954. * @return {?}
  23955. */
  23956. maybeUpdate() {
  23957. this.checkInit();
  23958. if (this.componentInstChanged) {
  23959. this.updateInputs(true);
  23960. this.bindOutputs();
  23961. return;
  23962. }
  23963. if (this.outputsChanged(this.outputs)) {
  23964. this.bindOutputs();
  23965. }
  23966. if (!this.inputs) {
  23967. return;
  23968. }
  23969. /** @type {?} */
  23970. const inputsChanges = this._getInputsChanges();
  23971. if (inputsChanges) {
  23972. /** @type {?} */
  23973. const isNotFirstChange = !!this.lastInputChanges;
  23974. this._updateInputChanges(inputsChanges);
  23975. if (isNotFirstChange) {
  23976. this.updateInputs();
  23977. }
  23978. }
  23979. }
  23980. /**
  23981. * @private
  23982. * @param {?} inputs
  23983. * @param {?} outputs
  23984. * @return {?}
  23985. */
  23986. updateIO(inputs, outputs) {
  23987. this.inputs = inputs;
  23988. this.outputs = outputs;
  23989. }
  23990. /**
  23991. * @private
  23992. * @param {?=} isFirstChange
  23993. * @return {?}
  23994. */
  23995. updateInputs(isFirstChange = false) {
  23996. if (isFirstChange) {
  23997. this._updateCompFactory();
  23998. }
  23999. /** @type {?} */
  24000. const compInst = this.componentInst;
  24001. /** @type {?} */
  24002. let inputs = this.inputs;
  24003. if (!inputs || !compInst) {
  24004. return;
  24005. }
  24006. inputs = this._resolveInputs(inputs);
  24007. Object.keys(inputs).forEach((/**
  24008. * @param {?} p
  24009. * @return {?}
  24010. */
  24011. p => (compInst[p] = inputs[p])));
  24012. // Mark component for check to re-render with new inputs
  24013. if (this.compCdr) {
  24014. this.compCdr.markForCheck();
  24015. }
  24016. this.notifyOnInputChanges(this.lastInputChanges, isFirstChange);
  24017. }
  24018. /**
  24019. * @private
  24020. * @return {?}
  24021. */
  24022. bindOutputs() {
  24023. this._disconnectOutputs();
  24024. /** @type {?} */
  24025. const compInst = this.componentInst;
  24026. /** @type {?} */
  24027. let outputs = this.outputs;
  24028. if (!outputs || !compInst) {
  24029. return;
  24030. }
  24031. outputs = this._resolveOutputs(outputs);
  24032. Object.keys(outputs)
  24033. .filter((/**
  24034. * @param {?} p
  24035. * @return {?}
  24036. */
  24037. p => compInst[p]))
  24038. .forEach((/**
  24039. * @param {?} p
  24040. * @return {?}
  24041. */
  24042. p => compInst[p]
  24043. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this.outputsShouldDisconnect$))
  24044. .subscribe((/**
  24045. * @param {?} event
  24046. * @return {?}
  24047. */
  24048. (event) => ((/** @type {?} */ (outputs[p])))(event)))));
  24049. }
  24050. /**
  24051. * @private
  24052. * @param {?=} changes
  24053. * @param {?=} forceFirstChanges
  24054. * @return {?}
  24055. */
  24056. notifyOnInputChanges(changes = {}, forceFirstChanges) {
  24057. // Exit early if component not interested to receive changes
  24058. if (!this.componentInst.ngOnChanges) {
  24059. return;
  24060. }
  24061. if (forceFirstChanges) {
  24062. changes = this._collectFirstChanges();
  24063. }
  24064. this.componentInst.ngOnChanges(changes);
  24065. }
  24066. /**
  24067. * @private
  24068. * @return {?}
  24069. */
  24070. _disconnectOutputs() {
  24071. this.outputsShouldDisconnect$.next();
  24072. }
  24073. /**
  24074. * @private
  24075. * @return {?}
  24076. */
  24077. _getInputsChanges() {
  24078. return this.inputsDiffer.diff(this.inputs);
  24079. }
  24080. /**
  24081. * @private
  24082. * @param {?} differ
  24083. * @return {?}
  24084. */
  24085. _updateInputChanges(differ) {
  24086. this.lastInputChanges = this._collectChangesFromDiffer(differ);
  24087. }
  24088. /**
  24089. * @private
  24090. * @return {?}
  24091. */
  24092. _collectFirstChanges() {
  24093. /** @type {?} */
  24094. const changes = (/** @type {?} */ ({}));
  24095. /** @type {?} */
  24096. const inputs = this.inputs;
  24097. Object.keys(inputs).forEach((/**
  24098. * @param {?} prop
  24099. * @return {?}
  24100. */
  24101. prop => (changes[prop] = createNewChange(inputs[prop]))));
  24102. return this._resolveChanges(changes);
  24103. }
  24104. /**
  24105. * @private
  24106. * @param {?} differ
  24107. * @return {?}
  24108. */
  24109. _collectChangesFromDiffer(differ) {
  24110. /** @type {?} */
  24111. const changes = {};
  24112. differ.forEachAddedItem((/**
  24113. * @param {?} record
  24114. * @return {?}
  24115. */
  24116. record => (changes[record.key] = createNewChange(record.currentValue))));
  24117. differ.forEachChangedItem((/**
  24118. * @param {?} record
  24119. * @return {?}
  24120. */
  24121. record => (changes[record.key] = createChange(record.currentValue, record.previousValue))));
  24122. return this._resolveChanges(changes);
  24123. }
  24124. /**
  24125. * @private
  24126. * @return {?}
  24127. */
  24128. _resolveCompFactory() {
  24129. try {
  24130. try {
  24131. return this.cfr.resolveComponentFactory(this.compRef.componentType);
  24132. }
  24133. catch (e) {
  24134. // Fallback if componentType does not exist (happens on NgComponentOutlet)
  24135. return this.cfr.resolveComponentFactory(this.compRef.instance.constructor);
  24136. }
  24137. }
  24138. catch (e) {
  24139. // Factory not available - bailout
  24140. return null;
  24141. }
  24142. }
  24143. /**
  24144. * @private
  24145. * @return {?}
  24146. */
  24147. _updateCompFactory() {
  24148. this.compFactory = this._resolveCompFactory();
  24149. }
  24150. /**
  24151. * @private
  24152. * @param {?} inputs
  24153. * @return {?}
  24154. */
  24155. _resolveInputs(inputs) {
  24156. if (!this.compFactory) {
  24157. return inputs;
  24158. }
  24159. return this._remapIO(inputs, this.compFactory.inputs);
  24160. }
  24161. /**
  24162. * @private
  24163. * @param {?} outputs
  24164. * @return {?}
  24165. */
  24166. _resolveOutputs(outputs) {
  24167. outputs = this._processOutputs(outputs);
  24168. if (!this.compFactory) {
  24169. return outputs;
  24170. }
  24171. return this._remapIO(outputs, this.compFactory.outputs);
  24172. }
  24173. /**
  24174. * @private
  24175. * @param {?} outputs
  24176. * @return {?}
  24177. */
  24178. _processOutputs(outputs) {
  24179. /** @type {?} */
  24180. const processedOutputs = {};
  24181. Object.keys(outputs).forEach((/**
  24182. * @param {?} key
  24183. * @return {?}
  24184. */
  24185. key => {
  24186. /** @type {?} */
  24187. const outputExpr = outputs[key];
  24188. if (typeof outputExpr === 'function') {
  24189. processedOutputs[key] = outputExpr;
  24190. }
  24191. else {
  24192. processedOutputs[key] =
  24193. outputExpr && this._processOutputArgs(outputExpr);
  24194. }
  24195. }));
  24196. return processedOutputs;
  24197. }
  24198. /**
  24199. * @private
  24200. * @param {?} output
  24201. * @return {?}
  24202. */
  24203. _processOutputArgs(output) {
  24204. const { handler } = output;
  24205. /** @type {?} */
  24206. const args = 'args' in output ? output.args || [] : [this.eventArgument];
  24207. return (/**
  24208. * @param {?} event
  24209. * @return {?}
  24210. */
  24211. event => handler(...args.map((/**
  24212. * @param {?} arg
  24213. * @return {?}
  24214. */
  24215. arg => (arg === this.eventArgument ? event : arg)))));
  24216. }
  24217. /**
  24218. * @private
  24219. * @param {?} changes
  24220. * @return {?}
  24221. */
  24222. _resolveChanges(changes) {
  24223. if (!this.compFactory) {
  24224. return changes;
  24225. }
  24226. return this._remapIO(changes, this.compFactory.inputs);
  24227. }
  24228. /**
  24229. * @private
  24230. * @template T
  24231. * @param {?} io
  24232. * @param {?} mapping
  24233. * @return {?}
  24234. */
  24235. _remapIO(io, mapping) {
  24236. /** @type {?} */
  24237. const newIO = {};
  24238. Object.keys(io).forEach((/**
  24239. * @param {?} key
  24240. * @return {?}
  24241. */
  24242. key => {
  24243. /** @type {?} */
  24244. const newKey = this._findPropByTplInMapping(key, mapping) || key;
  24245. newIO[newKey] = io[key];
  24246. }));
  24247. return (/** @type {?} */ (newIO));
  24248. }
  24249. /**
  24250. * @private
  24251. * @param {?} tplName
  24252. * @param {?} mapping
  24253. * @return {?}
  24254. */
  24255. _findPropByTplInMapping(tplName, mapping) {
  24256. for (const map of mapping) {
  24257. if (map.templateName === tplName) {
  24258. return map.propName;
  24259. }
  24260. }
  24261. return null;
  24262. }
  24263. /**
  24264. * @private
  24265. * @return {?}
  24266. */
  24267. failInit() {
  24268. throw Error('IoService: ComponentInjector was not set! Please call init() method!');
  24269. }
  24270. }
  24271. IoService.ɵfac = function IoService_Factory(t) { return new (t || IoService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](EventArgumentToken)); };
  24272. IoService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: IoService, factory: IoService.ɵfac });
  24273. /** @nocollapse */
  24274. IoService.ctorParameters = () => [
  24275. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] },
  24276. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] },
  24277. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [EventArgumentToken,] }] }
  24278. ];
  24279. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](IoService, [{
  24280. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  24281. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: String, decorators: [{
  24282. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  24283. args: [EventArgumentToken]
  24284. }] }]; }, null); })();
  24285. if (false) {}
  24286. /**
  24287. * @fileoverview added by tsickle
  24288. * Generated from: lib/io/io-factory.service.ts
  24289. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24290. */
  24291. class IoFactoryService {
  24292. /**
  24293. * @param {?} differs
  24294. * @param {?} cfr
  24295. * @param {?} eventArgument
  24296. */
  24297. constructor(differs, cfr, eventArgument) {
  24298. this.differs = differs;
  24299. this.cfr = cfr;
  24300. this.eventArgument = eventArgument;
  24301. }
  24302. /**
  24303. * @return {?}
  24304. */
  24305. create() {
  24306. return new IoService(this.differs, this.cfr, this.eventArgument);
  24307. }
  24308. }
  24309. IoFactoryService.ɵfac = function IoFactoryService_Factory(t) { return new (t || IoFactoryService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](EventArgumentToken)); };
  24310. /** @nocollapse */
  24311. IoFactoryService.ctorParameters = () => [
  24312. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] },
  24313. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] },
  24314. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [EventArgumentToken,] }] }
  24315. ];
  24316. /** @nocollapse */ IoFactoryService.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function IoFactoryService_Factory() { return new IoFactoryService(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(EventArgumentToken)); }, token: IoFactoryService, providedIn: "root" });
  24317. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](IoFactoryService, [{
  24318. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  24319. args: [{ providedIn: 'root' }]
  24320. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }, { type: String, decorators: [{
  24321. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  24322. args: [EventArgumentToken]
  24323. }] }]; }, null); })();
  24324. if (false) {}
  24325. /**
  24326. * @fileoverview added by tsickle
  24327. * Generated from: lib/io/index.ts
  24328. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24329. */
  24330. /**
  24331. * @fileoverview added by tsickle
  24332. * Generated from: lib/dynamic-io/dynamic-io.directive.ts
  24333. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24334. */
  24335. // tslint:disable-next-line: no-conflicting-lifecycle
  24336. class DynamicIoDirective {
  24337. /**
  24338. * @param {?} ioService
  24339. * @param {?=} componentInjector
  24340. */
  24341. constructor(ioService, componentInjector) {
  24342. this.ioService = ioService;
  24343. this.componentInjector = componentInjector;
  24344. this.ioService.init(this.componentInjector);
  24345. }
  24346. /**
  24347. * @private
  24348. * @return {?}
  24349. */
  24350. get inputs() {
  24351. return this.ndcDynamicInputs || this.ngComponentOutletNdcDynamicInputs;
  24352. }
  24353. /**
  24354. * @private
  24355. * @return {?}
  24356. */
  24357. get outputs() {
  24358. return this.ndcDynamicOutputs || this.ngComponentOutletNdcDynamicOutputs;
  24359. }
  24360. /**
  24361. * @param {?} changes
  24362. * @return {?}
  24363. */
  24364. ngOnChanges(changes) {
  24365. this.ioService.update(this.inputs, this.outputs, this.inputsChanged(changes), this.outputsChanged(changes));
  24366. }
  24367. /**
  24368. * @return {?}
  24369. */
  24370. ngDoCheck() {
  24371. this.ioService.maybeUpdate();
  24372. }
  24373. /**
  24374. * @private
  24375. * @param {?} changes
  24376. * @return {?}
  24377. */
  24378. inputsChanged(changes) {
  24379. return ('ngComponentOutletNdcDynamicInputs' in changes ||
  24380. 'ndcDynamicInputs' in changes);
  24381. }
  24382. /**
  24383. * @private
  24384. * @param {?} changes
  24385. * @return {?}
  24386. */
  24387. outputsChanged(changes) {
  24388. return ('ngComponentOutletNdcDynamicOutputs' in changes ||
  24389. 'ndcDynamicOutputs' in changes);
  24390. }
  24391. }
  24392. DynamicIoDirective.ɵfac = function DynamicIoDirective_Factory(t) { return new (t || DynamicIoDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](IoService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](DynamicComponentInjectorToken, 8)); };
  24393. DynamicIoDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: DynamicIoDirective, selectors: [["", "ndcDynamicInputs", ""], ["", "ndcDynamicOutputs", ""], ["", "ngComponentOutletNdcDynamicInputs", ""], ["", "ngComponentOutletNdcDynamicOutputs", ""]], inputs: { ndcDynamicInputs: "ndcDynamicInputs", ngComponentOutletNdcDynamicInputs: "ngComponentOutletNdcDynamicInputs", ndcDynamicOutputs: "ndcDynamicOutputs", ngComponentOutletNdcDynamicOutputs: "ngComponentOutletNdcDynamicOutputs" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([IoService]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  24394. /** @nocollapse */
  24395. DynamicIoDirective.ctorParameters = () => [
  24396. { type: IoService },
  24397. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [DynamicComponentInjectorToken,] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] }
  24398. ];
  24399. DynamicIoDirective.propDecorators = {
  24400. ndcDynamicInputs: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  24401. ngComponentOutletNdcDynamicInputs: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  24402. ndcDynamicOutputs: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  24403. ngComponentOutletNdcDynamicOutputs: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  24404. };
  24405. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicIoDirective, [{
  24406. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  24407. args: [{
  24408. selector: '[ndcDynamicInputs],[ndcDynamicOutputs],[ngComponentOutletNdcDynamicInputs],[ngComponentOutletNdcDynamicOutputs]',
  24409. providers: [IoService]
  24410. }]
  24411. }], function () { return [{ type: IoService }, { type: undefined, decorators: [{
  24412. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  24413. args: [DynamicComponentInjectorToken]
  24414. }, {
  24415. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  24416. }] }]; }, { ndcDynamicInputs: [{
  24417. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24418. }], ngComponentOutletNdcDynamicInputs: [{
  24419. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24420. }], ndcDynamicOutputs: [{
  24421. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24422. }], ngComponentOutletNdcDynamicOutputs: [{
  24423. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24424. }] }); })();
  24425. if (false) {}
  24426. /**
  24427. * @fileoverview added by tsickle
  24428. * Generated from: lib/dynamic-io/dynamic-io.module.ts
  24429. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24430. */
  24431. class DynamicIoModule {
  24432. }
  24433. DynamicIoModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: DynamicIoModule });
  24434. DynamicIoModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function DynamicIoModule_Factory(t) { return new (t || DynamicIoModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]], ComponentOutletInjectorModule] });
  24435. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](DynamicIoModule, { declarations: function () { return [DynamicIoDirective]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [DynamicIoDirective, ComponentOutletInjectorModule]; } }); })();
  24436. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicIoModule, [{
  24437. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  24438. args: [{
  24439. imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]],
  24440. exports: [DynamicIoDirective, ComponentOutletInjectorModule],
  24441. declarations: [DynamicIoDirective]
  24442. }]
  24443. }], null, null); })();
  24444. /**
  24445. * @fileoverview added by tsickle
  24446. * Generated from: lib/dynamic-io/index.ts
  24447. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24448. */
  24449. /**
  24450. * @fileoverview added by tsickle
  24451. * Generated from: lib/dynamic.component.ts
  24452. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24453. */
  24454. class DynamicComponent {
  24455. /**
  24456. * @param {?} vcr
  24457. * @param {?} cfr
  24458. */
  24459. constructor(vcr, cfr) {
  24460. this.vcr = vcr;
  24461. this.cfr = cfr;
  24462. this.ndcDynamicCreated = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  24463. }
  24464. /**
  24465. * @param {?} changes
  24466. * @return {?}
  24467. */
  24468. ngOnChanges(changes) {
  24469. if (changes.ndcDynamicComponent) {
  24470. this.createDynamicComponent();
  24471. }
  24472. }
  24473. /**
  24474. * @return {?}
  24475. */
  24476. createDynamicComponent() {
  24477. this.vcr.clear();
  24478. this.componentRef = null;
  24479. if (this.ndcDynamicComponent) {
  24480. this.componentRef = this.vcr.createComponent(this.cfr.resolveComponentFactory(this.ndcDynamicComponent), 0, this._resolveInjector(), this.ndcDynamicContent);
  24481. this.ndcDynamicCreated.emit(this.componentRef);
  24482. }
  24483. }
  24484. /**
  24485. * @private
  24486. * @return {?}
  24487. */
  24488. _resolveInjector() {
  24489. /** @type {?} */
  24490. let injector = this.ndcDynamicInjector || this.vcr.injector;
  24491. if (this.ndcDynamicProviders) {
  24492. injector = _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"].create({
  24493. providers: this.ndcDynamicProviders,
  24494. parent: injector,
  24495. });
  24496. }
  24497. return injector;
  24498. }
  24499. }
  24500. DynamicComponent.ɵfac = function DynamicComponent_Factory(t) { return new (t || DynamicComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"])); };
  24501. DynamicComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: DynamicComponent, selectors: [["ndc-dynamic"]], inputs: { ndcDynamicComponent: "ndcDynamicComponent", ndcDynamicInjector: "ndcDynamicInjector", ndcDynamicProviders: "ndcDynamicProviders", ndcDynamicContent: "ndcDynamicContent" }, outputs: { ndcDynamicCreated: "ndcDynamicCreated" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([
  24502. { provide: DynamicComponentInjectorToken, useExisting: DynamicComponent },
  24503. ]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 0, vars: 0, template: function DynamicComponent_Template(rf, ctx) { }, encapsulation: 2 });
  24504. /** @nocollapse */
  24505. DynamicComponent.ctorParameters = () => [
  24506. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  24507. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }
  24508. ];
  24509. DynamicComponent.propDecorators = {
  24510. ndcDynamicComponent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  24511. ndcDynamicInjector: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  24512. ndcDynamicProviders: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  24513. ndcDynamicContent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  24514. ndcDynamicCreated: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  24515. };
  24516. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicComponent, [{
  24517. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  24518. args: [{
  24519. selector: 'ndc-dynamic',
  24520. template: '',
  24521. providers: [
  24522. { provide: DynamicComponentInjectorToken, useExisting: DynamicComponent },
  24523. ]
  24524. }]
  24525. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"] }]; }, { ndcDynamicCreated: [{
  24526. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  24527. }], ndcDynamicComponent: [{
  24528. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24529. }], ndcDynamicInjector: [{
  24530. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24531. }], ndcDynamicProviders: [{
  24532. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24533. }], ndcDynamicContent: [{
  24534. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24535. }] }); })();
  24536. if (false) {}
  24537. /**
  24538. * @fileoverview added by tsickle
  24539. * Generated from: lib/dynamic.module.ts
  24540. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24541. */
  24542. class DynamicModule {
  24543. }
  24544. DynamicModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: DynamicModule });
  24545. DynamicModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function DynamicModule_Factory(t) { return new (t || DynamicModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], DynamicIoModule], DynamicIoModule] });
  24546. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](DynamicModule, { declarations: function () { return [DynamicComponent]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], DynamicIoModule]; }, exports: function () { return [DynamicComponent, DynamicIoModule]; } }); })();
  24547. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicModule, [{
  24548. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  24549. args: [{
  24550. imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"], DynamicIoModule],
  24551. exports: [DynamicComponent, DynamicIoModule],
  24552. declarations: [DynamicComponent]
  24553. }]
  24554. }], null, null); })();
  24555. /**
  24556. * @fileoverview added by tsickle
  24557. * Generated from: lib/dynamic-attributes/dynamic-attributes.directive.ts
  24558. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24559. */
  24560. /**
  24561. * @record
  24562. */
  24563. function AttributesMap() { }
  24564. /**
  24565. * @record
  24566. */
  24567. function AttributeActions() { }
  24568. if (false) {}
  24569. class DynamicAttributesDirective {
  24570. /**
  24571. * @param {?} renderer
  24572. * @param {?} differs
  24573. * @param {?} injector
  24574. * @param {?=} componentInjector
  24575. */
  24576. constructor(renderer, differs, injector, componentInjector) {
  24577. this.renderer = renderer;
  24578. this.differs = differs;
  24579. this.injector = injector;
  24580. this.componentInjector = componentInjector;
  24581. this.attrsDiffer = this.differs.find({}).create();
  24582. }
  24583. /**
  24584. * @private
  24585. * @return {?}
  24586. */
  24587. get _attributes() {
  24588. return (this.ndcDynamicAttributes || this.ngComponentOutletNdcDynamicAttributes);
  24589. }
  24590. /**
  24591. * @private
  24592. * @return {?}
  24593. */
  24594. get _nativeElement() {
  24595. var _a;
  24596. return (_a = this.componentInjector.componentRef) === null || _a === void 0 ? void 0 : _a.location.nativeElement;
  24597. }
  24598. /**
  24599. * @private
  24600. * @return {?}
  24601. */
  24602. get _compType() {
  24603. var _a;
  24604. return (_a = this.componentInjector.componentRef) === null || _a === void 0 ? void 0 : _a.componentType;
  24605. }
  24606. /**
  24607. * @private
  24608. * @return {?}
  24609. */
  24610. get _isCompChanged() {
  24611. if (this.lastCompType !== this._compType) {
  24612. this.lastCompType = this._compType;
  24613. return true;
  24614. }
  24615. return false;
  24616. }
  24617. /**
  24618. * @return {?}
  24619. */
  24620. ngDoCheck() {
  24621. /** @type {?} */
  24622. const isCompChanged = this._isCompChanged;
  24623. /** @type {?} */
  24624. const changes = this.attrsDiffer.diff(this._attributes);
  24625. if (changes) {
  24626. this.lastAttrActions = this._changesToAttrActions(changes);
  24627. }
  24628. if (changes || (isCompChanged && this.lastAttrActions)) {
  24629. this._updateAttributes(this.lastAttrActions);
  24630. }
  24631. }
  24632. /**
  24633. * @param {?} name
  24634. * @param {?} value
  24635. * @param {?=} namespace
  24636. * @return {?}
  24637. */
  24638. setAttribute(name, value, namespace) {
  24639. if (this._nativeElement) {
  24640. this.renderer.setAttribute(this._nativeElement, name, value, namespace);
  24641. }
  24642. }
  24643. /**
  24644. * @param {?} name
  24645. * @param {?=} namespace
  24646. * @return {?}
  24647. */
  24648. removeAttribute(name, namespace) {
  24649. if (this._nativeElement) {
  24650. this.renderer.removeAttribute(this._nativeElement, name, namespace);
  24651. }
  24652. }
  24653. /**
  24654. * @private
  24655. * @param {?} actions
  24656. * @return {?}
  24657. */
  24658. _updateAttributes(actions) {
  24659. // ? Early exit if no dynamic component
  24660. if (!this._compType) {
  24661. return;
  24662. }
  24663. Object.keys(actions.set).forEach((/**
  24664. * @param {?} key
  24665. * @return {?}
  24666. */
  24667. key => this.setAttribute(key, actions.set[key])));
  24668. actions.remove.forEach((/**
  24669. * @param {?} key
  24670. * @return {?}
  24671. */
  24672. key => this.removeAttribute(key)));
  24673. }
  24674. /**
  24675. * @private
  24676. * @param {?} changes
  24677. * @return {?}
  24678. */
  24679. _changesToAttrActions(changes) {
  24680. /** @type {?} */
  24681. const attrActions = {
  24682. set: {},
  24683. remove: [],
  24684. };
  24685. changes.forEachAddedItem((/**
  24686. * @param {?} r
  24687. * @return {?}
  24688. */
  24689. r => (attrActions.set[r.key] = r.currentValue)));
  24690. changes.forEachChangedItem((/**
  24691. * @param {?} r
  24692. * @return {?}
  24693. */
  24694. r => (attrActions.set[r.key] = r.currentValue)));
  24695. changes.forEachRemovedItem((/**
  24696. * @param {?} r
  24697. * @return {?}
  24698. */
  24699. r => attrActions.remove.push(r.key)));
  24700. return attrActions;
  24701. }
  24702. }
  24703. DynamicAttributesDirective.ɵfac = function DynamicAttributesDirective_Factory(t) { return new (t || DynamicAttributesDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](DynamicComponentInjectorToken, 8)); };
  24704. DynamicAttributesDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: DynamicAttributesDirective, selectors: [["", "ndcDynamicAttributes", ""], ["", "ngComponentOutletNdcDynamicAttributes", ""]], inputs: { ndcDynamicAttributes: "ndcDynamicAttributes", ngComponentOutletNdcDynamicAttributes: "ngComponentOutletNdcDynamicAttributes" }, exportAs: ["ndcDynamicAttributes"] });
  24705. /** @nocollapse */
  24706. DynamicAttributesDirective.ctorParameters = () => [
  24707. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  24708. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] },
  24709. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] },
  24710. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [DynamicComponentInjectorToken,] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] }
  24711. ];
  24712. DynamicAttributesDirective.propDecorators = {
  24713. ndcDynamicAttributes: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  24714. ngComponentOutletNdcDynamicAttributes: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  24715. };
  24716. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicAttributesDirective, [{
  24717. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  24718. args: [{
  24719. selector: '[ndcDynamicAttributes],[ngComponentOutletNdcDynamicAttributes]',
  24720. exportAs: 'ndcDynamicAttributes'
  24721. }]
  24722. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }, { type: undefined, decorators: [{
  24723. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  24724. args: [DynamicComponentInjectorToken]
  24725. }, {
  24726. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  24727. }] }]; }, { ndcDynamicAttributes: [{
  24728. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24729. }], ngComponentOutletNdcDynamicAttributes: [{
  24730. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  24731. }] }); })();
  24732. if (false) {}
  24733. /**
  24734. * @fileoverview added by tsickle
  24735. * Generated from: lib/dynamic-attributes/dynamic-attributes.module.ts
  24736. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24737. */
  24738. class DynamicAttributesModule {
  24739. }
  24740. DynamicAttributesModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: DynamicAttributesModule });
  24741. DynamicAttributesModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function DynamicAttributesModule_Factory(t) { return new (t || DynamicAttributesModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]], ComponentOutletInjectorModule] });
  24742. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](DynamicAttributesModule, { declarations: function () { return [DynamicAttributesDirective]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [DynamicAttributesDirective, ComponentOutletInjectorModule]; } }); })();
  24743. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicAttributesModule, [{
  24744. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  24745. args: [{
  24746. imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]],
  24747. exports: [DynamicAttributesDirective, ComponentOutletInjectorModule],
  24748. declarations: [DynamicAttributesDirective]
  24749. }]
  24750. }], null, null); })();
  24751. /**
  24752. * @fileoverview added by tsickle
  24753. * Generated from: lib/dynamic-attributes/index.ts
  24754. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24755. */
  24756. /**
  24757. * @fileoverview added by tsickle
  24758. * Generated from: lib/window-ref/window-ref-browser.ts
  24759. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24760. */
  24761. /**
  24762. * @return {?}
  24763. */
  24764. function browserWindowFactory() {
  24765. return window;
  24766. }
  24767. /**
  24768. * @fileoverview added by tsickle
  24769. * Generated from: lib/window-ref/window-ref.service.ts
  24770. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24771. */
  24772. /** @type {?} */
  24773. const WindowRefToken = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('WindowRef', {
  24774. providedIn: 'root',
  24775. factory: browserWindowFactory,
  24776. });
  24777. class WindowRefService {
  24778. /**
  24779. * @param {?} injector
  24780. */
  24781. constructor(injector) {
  24782. this.injector = injector;
  24783. this.nativeWindow = this.injector.get(WindowRefToken, null);
  24784. }
  24785. }
  24786. WindowRefService.ɵfac = function WindowRefService_Factory(t) { return new (t || WindowRefService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"])); };
  24787. /** @nocollapse */
  24788. WindowRefService.ctorParameters = () => [
  24789. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }
  24790. ];
  24791. /** @nocollapse */ WindowRefService.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function WindowRefService_Factory() { return new WindowRefService(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["INJECTOR"])); }, token: WindowRefService, providedIn: "root" });
  24792. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](WindowRefService, [{
  24793. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  24794. args: [{ providedIn: 'root' }]
  24795. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }]; }, null); })();
  24796. if (false) {}
  24797. /**
  24798. * @fileoverview added by tsickle
  24799. * Generated from: lib/window-ref/index.ts
  24800. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24801. */
  24802. /**
  24803. * @fileoverview added by tsickle
  24804. * Generated from: lib/dynamic-directives/dynamic-directives.directive.ts
  24805. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  24806. */
  24807. /**
  24808. * @record
  24809. * @template T
  24810. */
  24811. function DynamicDirectiveDef() { }
  24812. if (false) {}
  24813. /**
  24814. * @template T
  24815. * @param {?} type
  24816. * @param {?=} inputs
  24817. * @param {?=} outputs
  24818. * @return {?}
  24819. */
  24820. function dynamicDirectiveDef(type, inputs, outputs) {
  24821. return { type, inputs, outputs };
  24822. }
  24823. /**
  24824. * @record
  24825. * @template T
  24826. */
  24827. function DirectiveRef() { }
  24828. if (false) {}
  24829. class DynamicDirectivesDirective {
  24830. /**
  24831. * @param {?} iterableDiffers
  24832. * @param {?} ioFactoryService
  24833. * @param {?} windowRef
  24834. * @param {?=} componentInjector
  24835. */
  24836. constructor(iterableDiffers, ioFactoryService, windowRef, componentInjector) {
  24837. this.iterableDiffers = iterableDiffers;
  24838. this.ioFactoryService = ioFactoryService;
  24839. this.windowRef = windowRef;
  24840. this.componentInjector = componentInjector;
  24841. this.ndcDynamicDirectivesCreated = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  24842. this.dirRef = new Map();
  24843. this.dirIo = new Map();
  24844. this.dirsDiffer = this.iterableDiffers
  24845. .find([])
  24846. .create((/**
  24847. * @param {?} _
  24848. * @param {?} def
  24849. * @return {?}
  24850. */
  24851. (_, def) => def.type));
  24852. }
  24853. /**
  24854. * @private
  24855. * @return {?}
  24856. */
  24857. get directives() {
  24858. return (this.ndcDynamicDirectives || this.ngComponentOutletNdcDynamicDirectives);
  24859. }
  24860. /**
  24861. * @private
  24862. * @return {?}
  24863. */
  24864. get componentRef() {
  24865. return this.componentInjector.componentRef;
  24866. }
  24867. /**
  24868. * @private
  24869. * @return {?}
  24870. */
  24871. get compInstance() {
  24872. return this.componentRef && this.componentRef.instance;
  24873. }
  24874. /**
  24875. * @private
  24876. * @return {?}
  24877. */
  24878. get isCompChanged() {
  24879. if (this.lastCompInstance !== this.compInstance) {
  24880. this.lastCompInstance = this.compInstance;
  24881. return true;
  24882. }
  24883. return false;
  24884. }
  24885. /**
  24886. * @private
  24887. * @return {?}
  24888. */
  24889. get hostInjector() {
  24890. return this.componentRef.injector;
  24891. }
  24892. /**
  24893. * @private
  24894. * @return {?}
  24895. */
  24896. get hostVcr() {
  24897. // NOTE: Accessing private APIs of Angular
  24898. // tslint:disable-next-line: no-string-literal
  24899. return this.componentRef['_viewRef']['_viewContainerRef'];
  24900. }
  24901. /**
  24902. * @private
  24903. * @return {?}
  24904. */
  24905. get reflect() {
  24906. return ((/** @type {?} */ (this.windowRef.nativeWindow))).Reflect;
  24907. }
  24908. /**
  24909. * @return {?}
  24910. */
  24911. ngDoCheck() {
  24912. if (this.maybeDestroyDirectives()) {
  24913. return;
  24914. }
  24915. /** @type {?} */
  24916. const dirsChanges = this.dirsDiffer.diff(this.directives);
  24917. if (!dirsChanges) {
  24918. return this.updateDirectives();
  24919. }
  24920. this.processDirChanges(dirsChanges);
  24921. }
  24922. /**
  24923. * @return {?}
  24924. */
  24925. ngOnDestroy() {
  24926. this.destroyAllDirectives();
  24927. }
  24928. /**
  24929. * @private
  24930. * @return {?}
  24931. */
  24932. maybeDestroyDirectives() {
  24933. if (this.isCompChanged || !this.componentRef) {
  24934. this.dirsDiffer.diff([]);
  24935. this.destroyAllDirectives();
  24936. }
  24937. return !this.componentRef;
  24938. }
  24939. /**
  24940. * @private
  24941. * @param {?} changes
  24942. * @return {?}
  24943. */
  24944. processDirChanges(changes) {
  24945. changes.forEachRemovedItem((/**
  24946. * @param {?} __0
  24947. * @return {?}
  24948. */
  24949. ({ item }) => this.destroyDirective(item)));
  24950. /** @type {?} */
  24951. const createdDirs = [];
  24952. changes.forEachAddedItem((/**
  24953. * @param {?} __0
  24954. * @return {?}
  24955. */
  24956. ({ item }) => createdDirs.push(this.initDirective(item))));
  24957. if (createdDirs.length) {
  24958. this.ndcDynamicDirectivesCreated.emit(createdDirs.filter(Boolean));
  24959. }
  24960. }
  24961. /**
  24962. * @private
  24963. * @return {?}
  24964. */
  24965. updateDirectives() {
  24966. this.directives.forEach((/**
  24967. * @param {?} dir
  24968. * @return {?}
  24969. */
  24970. dir => this.updateDirective(dir)));
  24971. }
  24972. /**
  24973. * @private
  24974. * @param {?} dirDef
  24975. * @return {?}
  24976. */
  24977. updateDirective(dirDef) {
  24978. /** @type {?} */
  24979. const io = this.dirIo.get(dirDef.type);
  24980. io.update(dirDef.inputs, dirDef.outputs, false, false);
  24981. io.maybeUpdate();
  24982. }
  24983. /**
  24984. * @private
  24985. * @param {?} dirDef
  24986. * @return {?}
  24987. */
  24988. initDirective(dirDef) {
  24989. if (this.dirRef.has(dirDef.type)) {
  24990. return;
  24991. }
  24992. /** @type {?} */
  24993. const instance = this.createDirective(dirDef.type);
  24994. /** @type {?} */
  24995. const dir = {
  24996. instance,
  24997. type: dirDef.type,
  24998. injector: this.hostInjector,
  24999. hostComponent: this.componentRef.instance,
  25000. hostView: this.componentRef.hostView,
  25001. location: this.componentRef.location,
  25002. changeDetectorRef: this.componentRef.changeDetectorRef,
  25003. onDestroy: this.componentRef.onDestroy,
  25004. };
  25005. this.initDirIO(dir, dirDef.inputs, dirDef.outputs);
  25006. this.callInitHooks(instance);
  25007. this.dirRef.set(dir.type, dir);
  25008. return dir;
  25009. }
  25010. /**
  25011. * @private
  25012. * @return {?}
  25013. */
  25014. destroyAllDirectives() {
  25015. this.dirRef.forEach((/**
  25016. * @param {?} dir
  25017. * @return {?}
  25018. */
  25019. dir => this.destroyDirRef(dir)));
  25020. this.dirRef.clear();
  25021. this.dirIo.clear();
  25022. }
  25023. /**
  25024. * @private
  25025. * @param {?} dirDef
  25026. * @return {?}
  25027. */
  25028. destroyDirective(dirDef) {
  25029. this.destroyDirRef(this.dirRef.get(dirDef.type));
  25030. this.dirRef.delete(dirDef.type);
  25031. this.dirIo.delete(dirDef.type);
  25032. }
  25033. /**
  25034. * @private
  25035. * @param {?} dir
  25036. * @param {?=} inputs
  25037. * @param {?=} outputs
  25038. * @return {?}
  25039. */
  25040. initDirIO(dir, inputs, outputs) {
  25041. /** @type {?} */
  25042. const io = this.ioFactoryService.create();
  25043. io.init({ componentRef: this.dirToCompDef(dir) }, { trackOutputChanges: true });
  25044. io.update(inputs, outputs, !!inputs, !!outputs);
  25045. this.dirIo.set(dir.type, io);
  25046. }
  25047. /**
  25048. * @private
  25049. * @param {?} dir
  25050. * @return {?}
  25051. */
  25052. dirToCompDef(dir) {
  25053. return {
  25054. changeDetectorRef: this.componentRef.changeDetectorRef,
  25055. hostView: this.componentRef.hostView,
  25056. location: this.componentRef.location,
  25057. destroy: this.componentRef.destroy,
  25058. onDestroy: this.componentRef.onDestroy,
  25059. injector: this.componentRef.injector,
  25060. instance: dir.instance,
  25061. componentType: dir.type,
  25062. };
  25063. }
  25064. /**
  25065. * @private
  25066. * @param {?} dir
  25067. * @return {?}
  25068. */
  25069. destroyDirRef(dir) {
  25070. /** @type {?} */
  25071. const io = this.dirIo.get(dir.type);
  25072. io.ngOnDestroy();
  25073. if ('ngOnDestroy' in dir.instance) {
  25074. dir.instance.ngOnDestroy();
  25075. }
  25076. }
  25077. /**
  25078. * @private
  25079. * @template T
  25080. * @param {?} dirType
  25081. * @return {?}
  25082. */
  25083. createDirective(dirType) {
  25084. /** @type {?} */
  25085. const directiveInjector = _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"].create({
  25086. providers: [
  25087. {
  25088. provide: dirType,
  25089. useClass: dirType,
  25090. deps: this.resolveDirParamTypes(dirType),
  25091. },
  25092. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], useValue: this.componentRef.location },
  25093. ],
  25094. parent: this.hostInjector,
  25095. name: `DynamicDirectiveInjector:${dirType.name}@${this.componentRef.componentType.name}`,
  25096. });
  25097. return directiveInjector.get(dirType);
  25098. }
  25099. /**
  25100. * @private
  25101. * @param {?} dirType
  25102. * @return {?}
  25103. */
  25104. resolveDirParamTypes(dirType) {
  25105. var _a, _b;
  25106. return ((_b = (_a =
  25107. // First try Angular Compiler's metadata
  25108. extractNgParamTypes(dirType)) !== null && _a !== void 0 ? _a :
  25109. // Then fallback to Typescript Reflect API
  25110. getCtorParamTypes(dirType, this.reflect)) !== null && _b !== void 0 ? _b :
  25111. // Bailout
  25112. []);
  25113. }
  25114. /**
  25115. * @private
  25116. * @param {?} obj
  25117. * @return {?}
  25118. */
  25119. callInitHooks(obj) {
  25120. this.callHook(obj, 'ngOnInit');
  25121. this.callHook(obj, 'ngDoCheck');
  25122. this.callHook(obj, 'ngAfterContentInit');
  25123. this.callHook(obj, 'ngAfterContentChecked');
  25124. this.callHook(obj, 'ngAfterViewInit');
  25125. this.callHook(obj, 'ngAfterViewChecked');
  25126. }
  25127. /**
  25128. * @private
  25129. * @param {?} obj
  25130. * @param {?} hook
  25131. * @param {?=} args
  25132. * @return {?}
  25133. */
  25134. callHook(obj, hook, args = []) {
  25135. if (obj[hook]) {
  25136. obj[hook](...args);
  25137. }
  25138. }
  25139. }
  25140. DynamicDirectivesDirective.ɵfac = function DynamicDirectivesDirective_Factory(t) { return new (t || DynamicDirectivesDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](IoFactoryService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](WindowRefService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](DynamicComponentInjectorToken, 8)); };
  25141. DynamicDirectivesDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: DynamicDirectivesDirective, selectors: [["", "ndcDynamicDirectives", ""], ["", "ngComponentOutletNdcDynamicDirectives", ""]], inputs: { ndcDynamicDirectives: "ndcDynamicDirectives", ngComponentOutletNdcDynamicDirectives: "ngComponentOutletNdcDynamicDirectives" }, outputs: { ndcDynamicDirectivesCreated: "ndcDynamicDirectivesCreated" } });
  25142. /** @nocollapse */
  25143. DynamicDirectivesDirective.ctorParameters = () => [
  25144. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"] },
  25145. { type: IoFactoryService },
  25146. { type: WindowRefService },
  25147. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [DynamicComponentInjectorToken,] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }] }
  25148. ];
  25149. DynamicDirectivesDirective.propDecorators = {
  25150. ndcDynamicDirectives: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  25151. ngComponentOutletNdcDynamicDirectives: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  25152. ndcDynamicDirectivesCreated: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }]
  25153. };
  25154. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicDirectivesDirective, [{
  25155. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  25156. args: [{
  25157. selector: '[ndcDynamicDirectives],[ngComponentOutletNdcDynamicDirectives]'
  25158. }]
  25159. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"] }, { type: IoFactoryService }, { type: WindowRefService }, { type: undefined, decorators: [{
  25160. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  25161. args: [DynamicComponentInjectorToken]
  25162. }, {
  25163. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  25164. }] }]; }, { ndcDynamicDirectivesCreated: [{
  25165. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  25166. }], ndcDynamicDirectives: [{
  25167. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  25168. }], ngComponentOutletNdcDynamicDirectives: [{
  25169. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  25170. }] }); })();
  25171. if (false) {}
  25172. /**
  25173. * @fileoverview added by tsickle
  25174. * Generated from: lib/dynamic-directives/dynamic-directives.module.ts
  25175. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  25176. */
  25177. class DynamicDirectivesModule {
  25178. }
  25179. DynamicDirectivesModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: DynamicDirectivesModule });
  25180. DynamicDirectivesModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function DynamicDirectivesModule_Factory(t) { return new (t || DynamicDirectivesModule)(); }, imports: [[_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]], ComponentOutletInjectorModule] });
  25181. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](DynamicDirectivesModule, { declarations: function () { return [DynamicDirectivesDirective]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [DynamicDirectivesDirective, ComponentOutletInjectorModule]; } }); })();
  25182. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DynamicDirectivesModule, [{
  25183. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  25184. args: [{
  25185. imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]],
  25186. exports: [DynamicDirectivesDirective, ComponentOutletInjectorModule],
  25187. declarations: [DynamicDirectivesDirective]
  25188. }]
  25189. }], null, null); })();
  25190. /**
  25191. * @fileoverview added by tsickle
  25192. * Generated from: lib/dynamic-directives/index.ts
  25193. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  25194. */
  25195. /**
  25196. * @fileoverview added by tsickle
  25197. * Generated from: public-api.ts
  25198. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  25199. */
  25200. /**
  25201. * @fileoverview added by tsickle
  25202. * Generated from: ng-dynamic-component.ts
  25203. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  25204. */
  25205. //# sourceMappingURL=ng-dynamic-component.js.map
  25206. /***/ }),
  25207. /***/ "Cfvw":
  25208. /*!****************************************************************!*\
  25209. !*** ./node_modules/rxjs/_esm2015/internal/observable/from.js ***!
  25210. \****************************************************************/
  25211. /*! exports provided: from */
  25212. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25213. "use strict";
  25214. __webpack_require__.r(__webpack_exports__);
  25215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "from", function() { return from; });
  25216. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  25217. /* harmony import */ var _util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeTo */ "SeVD");
  25218. /* harmony import */ var _scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scheduled/scheduled */ "7HRe");
  25219. function from(input, scheduler) {
  25220. if (!scheduler) {
  25221. if (input instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]) {
  25222. return input;
  25223. }
  25224. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](Object(_util_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(input));
  25225. }
  25226. else {
  25227. return Object(_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_2__["scheduled"])(input, scheduler);
  25228. }
  25229. }
  25230. //# sourceMappingURL=from.js.map
  25231. /***/ }),
  25232. /***/ "CqXF":
  25233. /*!****************************************************************!*\
  25234. !*** ./node_modules/rxjs/_esm2015/internal/operators/mapTo.js ***!
  25235. \****************************************************************/
  25236. /*! exports provided: mapTo */
  25237. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25238. "use strict";
  25239. __webpack_require__.r(__webpack_exports__);
  25240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mapTo", function() { return mapTo; });
  25241. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  25242. function mapTo(value) {
  25243. return (source) => source.lift(new MapToOperator(value));
  25244. }
  25245. class MapToOperator {
  25246. constructor(value) {
  25247. this.value = value;
  25248. }
  25249. call(subscriber, source) {
  25250. return source.subscribe(new MapToSubscriber(subscriber, this.value));
  25251. }
  25252. }
  25253. class MapToSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  25254. constructor(destination, value) {
  25255. super(destination);
  25256. this.value = value;
  25257. }
  25258. _next(x) {
  25259. this.destination.next(this.value);
  25260. }
  25261. }
  25262. //# sourceMappingURL=mapTo.js.map
  25263. /***/ }),
  25264. /***/ "D0XW":
  25265. /*!****************************************************************!*\
  25266. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/async.js ***!
  25267. \****************************************************************/
  25268. /*! exports provided: async */
  25269. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25270. "use strict";
  25271. __webpack_require__.r(__webpack_exports__);
  25272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "async", function() { return async; });
  25273. /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ "3N8a");
  25274. /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncScheduler */ "IjjT");
  25275. const async = new _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__["AsyncScheduler"](_AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"]);
  25276. //# sourceMappingURL=async.js.map
  25277. /***/ }),
  25278. /***/ "DH7j":
  25279. /*!*************************************************************!*\
  25280. !*** ./node_modules/rxjs/_esm2015/internal/util/isArray.js ***!
  25281. \*************************************************************/
  25282. /*! exports provided: isArray */
  25283. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25284. "use strict";
  25285. __webpack_require__.r(__webpack_exports__);
  25286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArray", function() { return isArray; });
  25287. const isArray = (() => Array.isArray || ((x) => x && typeof x.length === 'number'))();
  25288. //# sourceMappingURL=isArray.js.map
  25289. /***/ }),
  25290. /***/ "EQ5u":
  25291. /*!*********************************************************************************!*\
  25292. !*** ./node_modules/rxjs/_esm2015/internal/observable/ConnectableObservable.js ***!
  25293. \*********************************************************************************/
  25294. /*! exports provided: ConnectableObservable, connectableObservableDescriptor */
  25295. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25296. "use strict";
  25297. __webpack_require__.r(__webpack_exports__);
  25298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConnectableObservable", function() { return ConnectableObservable; });
  25299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "connectableObservableDescriptor", function() { return connectableObservableDescriptor; });
  25300. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG");
  25301. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Observable */ "HDdC");
  25302. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  25303. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Subscription */ "quSY");
  25304. /* harmony import */ var _operators_refCount__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../operators/refCount */ "x+ZX");
  25305. class ConnectableObservable extends _Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"] {
  25306. constructor(source, subjectFactory) {
  25307. super();
  25308. this.source = source;
  25309. this.subjectFactory = subjectFactory;
  25310. this._refCount = 0;
  25311. this._isComplete = false;
  25312. }
  25313. _subscribe(subscriber) {
  25314. return this.getSubject().subscribe(subscriber);
  25315. }
  25316. getSubject() {
  25317. const subject = this._subject;
  25318. if (!subject || subject.isStopped) {
  25319. this._subject = this.subjectFactory();
  25320. }
  25321. return this._subject;
  25322. }
  25323. connect() {
  25324. let connection = this._connection;
  25325. if (!connection) {
  25326. this._isComplete = false;
  25327. connection = this._connection = new _Subscription__WEBPACK_IMPORTED_MODULE_3__["Subscription"]();
  25328. connection.add(this.source
  25329. .subscribe(new ConnectableSubscriber(this.getSubject(), this)));
  25330. if (connection.closed) {
  25331. this._connection = null;
  25332. connection = _Subscription__WEBPACK_IMPORTED_MODULE_3__["Subscription"].EMPTY;
  25333. }
  25334. }
  25335. return connection;
  25336. }
  25337. refCount() {
  25338. return Object(_operators_refCount__WEBPACK_IMPORTED_MODULE_4__["refCount"])()(this);
  25339. }
  25340. }
  25341. const connectableObservableDescriptor = (() => {
  25342. const connectableProto = ConnectableObservable.prototype;
  25343. return {
  25344. operator: { value: null },
  25345. _refCount: { value: 0, writable: true },
  25346. _subject: { value: null, writable: true },
  25347. _connection: { value: null, writable: true },
  25348. _subscribe: { value: connectableProto._subscribe },
  25349. _isComplete: { value: connectableProto._isComplete, writable: true },
  25350. getSubject: { value: connectableProto.getSubject },
  25351. connect: { value: connectableProto.connect },
  25352. refCount: { value: connectableProto.refCount }
  25353. };
  25354. })();
  25355. class ConnectableSubscriber extends _Subject__WEBPACK_IMPORTED_MODULE_0__["SubjectSubscriber"] {
  25356. constructor(destination, connectable) {
  25357. super(destination);
  25358. this.connectable = connectable;
  25359. }
  25360. _error(err) {
  25361. this._unsubscribe();
  25362. super._error(err);
  25363. }
  25364. _complete() {
  25365. this.connectable._isComplete = true;
  25366. this._unsubscribe();
  25367. super._complete();
  25368. }
  25369. _unsubscribe() {
  25370. const connectable = this.connectable;
  25371. if (connectable) {
  25372. this.connectable = null;
  25373. const connection = connectable._connection;
  25374. connectable._refCount = 0;
  25375. connectable._subject = null;
  25376. connectable._connection = null;
  25377. if (connection) {
  25378. connection.unsubscribe();
  25379. }
  25380. }
  25381. }
  25382. }
  25383. class RefCountOperator {
  25384. constructor(connectable) {
  25385. this.connectable = connectable;
  25386. }
  25387. call(subscriber, source) {
  25388. const { connectable } = this;
  25389. connectable._refCount++;
  25390. const refCounter = new RefCountSubscriber(subscriber, connectable);
  25391. const subscription = source.subscribe(refCounter);
  25392. if (!refCounter.closed) {
  25393. refCounter.connection = connectable.connect();
  25394. }
  25395. return subscription;
  25396. }
  25397. }
  25398. class RefCountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"] {
  25399. constructor(destination, connectable) {
  25400. super(destination);
  25401. this.connectable = connectable;
  25402. }
  25403. _unsubscribe() {
  25404. const { connectable } = this;
  25405. if (!connectable) {
  25406. this.connection = null;
  25407. return;
  25408. }
  25409. this.connectable = null;
  25410. const refCount = connectable._refCount;
  25411. if (refCount <= 0) {
  25412. this.connection = null;
  25413. return;
  25414. }
  25415. connectable._refCount = refCount - 1;
  25416. if (refCount > 1) {
  25417. this.connection = null;
  25418. return;
  25419. }
  25420. const { connection } = this;
  25421. const sharedConnection = connectable._connection;
  25422. this.connection = null;
  25423. if (sharedConnection && (!connection || sharedConnection === connection)) {
  25424. sharedConnection.unsubscribe();
  25425. }
  25426. }
  25427. }
  25428. //# sourceMappingURL=ConnectableObservable.js.map
  25429. /***/ }),
  25430. /***/ "EY2u":
  25431. /*!*****************************************************************!*\
  25432. !*** ./node_modules/rxjs/_esm2015/internal/observable/empty.js ***!
  25433. \*****************************************************************/
  25434. /*! exports provided: EMPTY, empty */
  25435. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25436. "use strict";
  25437. __webpack_require__.r(__webpack_exports__);
  25438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EMPTY", function() { return EMPTY; });
  25439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return empty; });
  25440. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  25441. const EMPTY = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => subscriber.complete());
  25442. function empty(scheduler) {
  25443. return scheduler ? emptyScheduled(scheduler) : EMPTY;
  25444. }
  25445. function emptyScheduled(scheduler) {
  25446. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => scheduler.schedule(() => subscriber.complete()));
  25447. }
  25448. //# sourceMappingURL=empty.js.map
  25449. /***/ }),
  25450. /***/ "F97/":
  25451. /*!*********************************************************!*\
  25452. !*** ./node_modules/rxjs/_esm2015/internal/util/not.js ***!
  25453. \*********************************************************/
  25454. /*! exports provided: not */
  25455. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25456. "use strict";
  25457. __webpack_require__.r(__webpack_exports__);
  25458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "not", function() { return not; });
  25459. function not(pred, thisArg) {
  25460. function notPred() {
  25461. return !(notPred.pred.apply(notPred.thisArg, arguments));
  25462. }
  25463. notPred.pred = pred;
  25464. notPred.thisArg = thisArg;
  25465. return notPred;
  25466. }
  25467. //# sourceMappingURL=not.js.map
  25468. /***/ }),
  25469. /***/ "FD9M":
  25470. /*!***********************************************************************!*\
  25471. !*** ./node_modules/rxjs/_esm2015/internal/operators/bufferToggle.js ***!
  25472. \***********************************************************************/
  25473. /*! exports provided: bufferToggle */
  25474. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25475. "use strict";
  25476. __webpack_require__.r(__webpack_exports__);
  25477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferToggle", function() { return bufferToggle; });
  25478. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscription */ "quSY");
  25479. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  25480. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  25481. function bufferToggle(openings, closingSelector) {
  25482. return function bufferToggleOperatorFunction(source) {
  25483. return source.lift(new BufferToggleOperator(openings, closingSelector));
  25484. };
  25485. }
  25486. class BufferToggleOperator {
  25487. constructor(openings, closingSelector) {
  25488. this.openings = openings;
  25489. this.closingSelector = closingSelector;
  25490. }
  25491. call(subscriber, source) {
  25492. return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));
  25493. }
  25494. }
  25495. class BufferToggleSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] {
  25496. constructor(destination, openings, closingSelector) {
  25497. super(destination);
  25498. this.openings = openings;
  25499. this.closingSelector = closingSelector;
  25500. this.contexts = [];
  25501. this.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, openings));
  25502. }
  25503. _next(value) {
  25504. const contexts = this.contexts;
  25505. const len = contexts.length;
  25506. for (let i = 0; i < len; i++) {
  25507. contexts[i].buffer.push(value);
  25508. }
  25509. }
  25510. _error(err) {
  25511. const contexts = this.contexts;
  25512. while (contexts.length > 0) {
  25513. const context = contexts.shift();
  25514. context.subscription.unsubscribe();
  25515. context.buffer = null;
  25516. context.subscription = null;
  25517. }
  25518. this.contexts = null;
  25519. super._error(err);
  25520. }
  25521. _complete() {
  25522. const contexts = this.contexts;
  25523. while (contexts.length > 0) {
  25524. const context = contexts.shift();
  25525. this.destination.next(context.buffer);
  25526. context.subscription.unsubscribe();
  25527. context.buffer = null;
  25528. context.subscription = null;
  25529. }
  25530. this.contexts = null;
  25531. super._complete();
  25532. }
  25533. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  25534. outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);
  25535. }
  25536. notifyComplete(innerSub) {
  25537. this.closeBuffer(innerSub.context);
  25538. }
  25539. openBuffer(value) {
  25540. try {
  25541. const closingSelector = this.closingSelector;
  25542. const closingNotifier = closingSelector.call(this, value);
  25543. if (closingNotifier) {
  25544. this.trySubscribe(closingNotifier);
  25545. }
  25546. }
  25547. catch (err) {
  25548. this._error(err);
  25549. }
  25550. }
  25551. closeBuffer(context) {
  25552. const contexts = this.contexts;
  25553. if (contexts && context) {
  25554. const { buffer, subscription } = context;
  25555. this.destination.next(buffer);
  25556. contexts.splice(contexts.indexOf(context), 1);
  25557. this.remove(subscription);
  25558. subscription.unsubscribe();
  25559. }
  25560. }
  25561. trySubscribe(closingNotifier) {
  25562. const contexts = this.contexts;
  25563. const buffer = [];
  25564. const subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]();
  25565. const context = { buffer, subscription };
  25566. contexts.push(context);
  25567. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, closingNotifier, context);
  25568. if (!innerSubscription || innerSubscription.closed) {
  25569. this.closeBuffer(context);
  25570. }
  25571. else {
  25572. innerSubscription.context = context;
  25573. this.add(innerSubscription);
  25574. subscription.add(innerSubscription);
  25575. }
  25576. }
  25577. }
  25578. //# sourceMappingURL=bufferToggle.js.map
  25579. /***/ }),
  25580. /***/ "FQpF":
  25581. /*!*****************************************************************!*\
  25582. !*** ./node_modules/rxjs/_esm2015/internal/operators/expand.js ***!
  25583. \*****************************************************************/
  25584. /*! exports provided: expand, ExpandOperator, ExpandSubscriber */
  25585. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25586. "use strict";
  25587. __webpack_require__.r(__webpack_exports__);
  25588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "expand", function() { return expand; });
  25589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandOperator", function() { return ExpandOperator; });
  25590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpandSubscriber", function() { return ExpandSubscriber; });
  25591. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  25592. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  25593. function expand(project, concurrent = Number.POSITIVE_INFINITY, scheduler = undefined) {
  25594. concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;
  25595. return (source) => source.lift(new ExpandOperator(project, concurrent, scheduler));
  25596. }
  25597. class ExpandOperator {
  25598. constructor(project, concurrent, scheduler) {
  25599. this.project = project;
  25600. this.concurrent = concurrent;
  25601. this.scheduler = scheduler;
  25602. }
  25603. call(subscriber, source) {
  25604. return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler));
  25605. }
  25606. }
  25607. class ExpandSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  25608. constructor(destination, project, concurrent, scheduler) {
  25609. super(destination);
  25610. this.project = project;
  25611. this.concurrent = concurrent;
  25612. this.scheduler = scheduler;
  25613. this.index = 0;
  25614. this.active = 0;
  25615. this.hasCompleted = false;
  25616. if (concurrent < Number.POSITIVE_INFINITY) {
  25617. this.buffer = [];
  25618. }
  25619. }
  25620. static dispatch(arg) {
  25621. const { subscriber, result, value, index } = arg;
  25622. subscriber.subscribeToProjection(result, value, index);
  25623. }
  25624. _next(value) {
  25625. const destination = this.destination;
  25626. if (destination.closed) {
  25627. this._complete();
  25628. return;
  25629. }
  25630. const index = this.index++;
  25631. if (this.active < this.concurrent) {
  25632. destination.next(value);
  25633. try {
  25634. const { project } = this;
  25635. const result = project(value, index);
  25636. if (!this.scheduler) {
  25637. this.subscribeToProjection(result, value, index);
  25638. }
  25639. else {
  25640. const state = { subscriber: this, result, value, index };
  25641. const destination = this.destination;
  25642. destination.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state));
  25643. }
  25644. }
  25645. catch (e) {
  25646. destination.error(e);
  25647. }
  25648. }
  25649. else {
  25650. this.buffer.push(value);
  25651. }
  25652. }
  25653. subscribeToProjection(result, value, index) {
  25654. this.active++;
  25655. const destination = this.destination;
  25656. destination.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, result, value, index));
  25657. }
  25658. _complete() {
  25659. this.hasCompleted = true;
  25660. if (this.hasCompleted && this.active === 0) {
  25661. this.destination.complete();
  25662. }
  25663. this.unsubscribe();
  25664. }
  25665. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  25666. this._next(innerValue);
  25667. }
  25668. notifyComplete(innerSub) {
  25669. const buffer = this.buffer;
  25670. const destination = this.destination;
  25671. destination.remove(innerSub);
  25672. this.active--;
  25673. if (buffer && buffer.length > 0) {
  25674. this._next(buffer.shift());
  25675. }
  25676. if (this.hasCompleted && this.active === 0) {
  25677. this.destination.complete();
  25678. }
  25679. }
  25680. }
  25681. //# sourceMappingURL=expand.js.map
  25682. /***/ }),
  25683. /***/ "FZB8":
  25684. /*!**************************************************************!*\
  25685. !*** ./node_modules/rxjs/_esm2015/internal/operators/min.js ***!
  25686. \**************************************************************/
  25687. /*! exports provided: min */
  25688. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25689. "use strict";
  25690. __webpack_require__.r(__webpack_exports__);
  25691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "min", function() { return min; });
  25692. /* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reduce */ "128B");
  25693. function min(comparer) {
  25694. const min = (typeof comparer === 'function')
  25695. ? (x, y) => comparer(x, y) < 0 ? x : y
  25696. : (x, y) => x < y ? x : y;
  25697. return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(min);
  25698. }
  25699. //# sourceMappingURL=min.js.map
  25700. /***/ }),
  25701. /***/ "GJmQ":
  25702. /*!********************************************************************!*\
  25703. !*** ./node_modules/rxjs/_esm2015/internal/operators/takeWhile.js ***!
  25704. \********************************************************************/
  25705. /*! exports provided: takeWhile */
  25706. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25707. "use strict";
  25708. __webpack_require__.r(__webpack_exports__);
  25709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "takeWhile", function() { return takeWhile; });
  25710. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  25711. function takeWhile(predicate, inclusive = false) {
  25712. return (source) => source.lift(new TakeWhileOperator(predicate, inclusive));
  25713. }
  25714. class TakeWhileOperator {
  25715. constructor(predicate, inclusive) {
  25716. this.predicate = predicate;
  25717. this.inclusive = inclusive;
  25718. }
  25719. call(subscriber, source) {
  25720. return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate, this.inclusive));
  25721. }
  25722. }
  25723. class TakeWhileSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  25724. constructor(destination, predicate, inclusive) {
  25725. super(destination);
  25726. this.predicate = predicate;
  25727. this.inclusive = inclusive;
  25728. this.index = 0;
  25729. }
  25730. _next(value) {
  25731. const destination = this.destination;
  25732. let result;
  25733. try {
  25734. result = this.predicate(value, this.index++);
  25735. }
  25736. catch (err) {
  25737. destination.error(err);
  25738. return;
  25739. }
  25740. this.nextOrComplete(value, result);
  25741. }
  25742. nextOrComplete(value, predicateResult) {
  25743. const destination = this.destination;
  25744. if (Boolean(predicateResult)) {
  25745. destination.next(value);
  25746. }
  25747. else {
  25748. if (this.inclusive) {
  25749. destination.next(value);
  25750. }
  25751. destination.complete();
  25752. }
  25753. }
  25754. }
  25755. //# sourceMappingURL=takeWhile.js.map
  25756. /***/ }),
  25757. /***/ "Gi4w":
  25758. /*!****************************************************************!*\
  25759. !*** ./node_modules/rxjs/_esm2015/internal/operators/every.js ***!
  25760. \****************************************************************/
  25761. /*! exports provided: every */
  25762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25763. "use strict";
  25764. __webpack_require__.r(__webpack_exports__);
  25765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "every", function() { return every; });
  25766. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  25767. function every(predicate, thisArg) {
  25768. return (source) => source.lift(new EveryOperator(predicate, thisArg, source));
  25769. }
  25770. class EveryOperator {
  25771. constructor(predicate, thisArg, source) {
  25772. this.predicate = predicate;
  25773. this.thisArg = thisArg;
  25774. this.source = source;
  25775. }
  25776. call(observer, source) {
  25777. return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));
  25778. }
  25779. }
  25780. class EverySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  25781. constructor(destination, predicate, thisArg, source) {
  25782. super(destination);
  25783. this.predicate = predicate;
  25784. this.thisArg = thisArg;
  25785. this.source = source;
  25786. this.index = 0;
  25787. this.thisArg = thisArg || this;
  25788. }
  25789. notifyComplete(everyValueMatch) {
  25790. this.destination.next(everyValueMatch);
  25791. this.destination.complete();
  25792. }
  25793. _next(value) {
  25794. let result = false;
  25795. try {
  25796. result = this.predicate.call(this.thisArg, value, this.index++, this.source);
  25797. }
  25798. catch (err) {
  25799. this.destination.error(err);
  25800. return;
  25801. }
  25802. if (!result) {
  25803. this.notifyComplete(false);
  25804. }
  25805. }
  25806. _complete() {
  25807. this.notifyComplete(true);
  25808. }
  25809. }
  25810. //# sourceMappingURL=every.js.map
  25811. /***/ }),
  25812. /***/ "GjHo":
  25813. /*!**************************************************************!*\
  25814. !*** ./node_modules/rxjs/_esm2015/internal/operators/zip.js ***!
  25815. \**************************************************************/
  25816. /*! exports provided: zip */
  25817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25818. "use strict";
  25819. __webpack_require__.r(__webpack_exports__);
  25820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return zip; });
  25821. /* harmony import */ var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/zip */ "1uah");
  25822. function zip(...observables) {
  25823. return function zipOperatorFunction(source) {
  25824. return source.lift.call(Object(_observable_zip__WEBPACK_IMPORTED_MODULE_0__["zip"])(source, ...observables));
  25825. };
  25826. }
  25827. //# sourceMappingURL=zip.js.map
  25828. /***/ }),
  25829. /***/ "Gqsl":
  25830. /*!*********************************************************************!*\
  25831. !*** ./node_modules/rxjs/_esm2015/internal/operators/repeatWhen.js ***!
  25832. \*********************************************************************/
  25833. /*! exports provided: repeatWhen */
  25834. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25835. "use strict";
  25836. __webpack_require__.r(__webpack_exports__);
  25837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "repeatWhen", function() { return repeatWhen; });
  25838. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG");
  25839. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  25840. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  25841. function repeatWhen(notifier) {
  25842. return (source) => source.lift(new RepeatWhenOperator(notifier));
  25843. }
  25844. class RepeatWhenOperator {
  25845. constructor(notifier) {
  25846. this.notifier = notifier;
  25847. }
  25848. call(subscriber, source) {
  25849. return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, source));
  25850. }
  25851. }
  25852. class RepeatWhenSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__["OuterSubscriber"] {
  25853. constructor(destination, notifier, source) {
  25854. super(destination);
  25855. this.notifier = notifier;
  25856. this.source = source;
  25857. this.sourceIsBeingSubscribedTo = true;
  25858. }
  25859. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  25860. this.sourceIsBeingSubscribedTo = true;
  25861. this.source.subscribe(this);
  25862. }
  25863. notifyComplete(innerSub) {
  25864. if (this.sourceIsBeingSubscribedTo === false) {
  25865. return super.complete();
  25866. }
  25867. }
  25868. complete() {
  25869. this.sourceIsBeingSubscribedTo = false;
  25870. if (!this.isStopped) {
  25871. if (!this.retries) {
  25872. this.subscribeToRetries();
  25873. }
  25874. if (!this.retriesSubscription || this.retriesSubscription.closed) {
  25875. return super.complete();
  25876. }
  25877. this._unsubscribeAndRecycle();
  25878. this.notifications.next();
  25879. }
  25880. }
  25881. _unsubscribe() {
  25882. const { notifications, retriesSubscription } = this;
  25883. if (notifications) {
  25884. notifications.unsubscribe();
  25885. this.notifications = null;
  25886. }
  25887. if (retriesSubscription) {
  25888. retriesSubscription.unsubscribe();
  25889. this.retriesSubscription = null;
  25890. }
  25891. this.retries = null;
  25892. }
  25893. _unsubscribeAndRecycle() {
  25894. const { _unsubscribe } = this;
  25895. this._unsubscribe = null;
  25896. super._unsubscribeAndRecycle();
  25897. this._unsubscribe = _unsubscribe;
  25898. return this;
  25899. }
  25900. subscribeToRetries() {
  25901. this.notifications = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  25902. let retries;
  25903. try {
  25904. const { notifier } = this;
  25905. retries = notifier(this.notifications);
  25906. }
  25907. catch (e) {
  25908. return super.complete();
  25909. }
  25910. this.retries = retries;
  25911. this.retriesSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, retries);
  25912. }
  25913. }
  25914. //# sourceMappingURL=repeatWhen.js.map
  25915. /***/ }),
  25916. /***/ "GyhO":
  25917. /*!******************************************************************!*\
  25918. !*** ./node_modules/rxjs/_esm2015/internal/observable/concat.js ***!
  25919. \******************************************************************/
  25920. /*! exports provided: concat */
  25921. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25922. "use strict";
  25923. __webpack_require__.r(__webpack_exports__);
  25924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return concat; });
  25925. /* harmony import */ var _of__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./of */ "LRne");
  25926. /* harmony import */ var _operators_concatAll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../operators/concatAll */ "0EUg");
  25927. function concat(...observables) {
  25928. return Object(_operators_concatAll__WEBPACK_IMPORTED_MODULE_1__["concatAll"])()(Object(_of__WEBPACK_IMPORTED_MODULE_0__["of"])(...observables));
  25929. }
  25930. //# sourceMappingURL=concat.js.map
  25931. /***/ }),
  25932. /***/ "HDdC":
  25933. /*!***********************************************************!*\
  25934. !*** ./node_modules/rxjs/_esm2015/internal/Observable.js ***!
  25935. \***********************************************************/
  25936. /*! exports provided: Observable */
  25937. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  25938. "use strict";
  25939. __webpack_require__.r(__webpack_exports__);
  25940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return Observable; });
  25941. /* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util/canReportError */ "8Qeq");
  25942. /* harmony import */ var _util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/toSubscriber */ "WyKG");
  25943. /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/observable */ "kJWO");
  25944. /* harmony import */ var _util_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/pipe */ "mCNh");
  25945. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./config */ "2fFW");
  25946. class Observable {
  25947. constructor(subscribe) {
  25948. this._isScalar = false;
  25949. if (subscribe) {
  25950. this._subscribe = subscribe;
  25951. }
  25952. }
  25953. lift(operator) {
  25954. const observable = new Observable();
  25955. observable.source = this;
  25956. observable.operator = operator;
  25957. return observable;
  25958. }
  25959. subscribe(observerOrNext, error, complete) {
  25960. const { operator } = this;
  25961. const sink = Object(_util_toSubscriber__WEBPACK_IMPORTED_MODULE_1__["toSubscriber"])(observerOrNext, error, complete);
  25962. if (operator) {
  25963. sink.add(operator.call(sink, this.source));
  25964. }
  25965. else {
  25966. sink.add(this.source || (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling && !sink.syncErrorThrowable) ?
  25967. this._subscribe(sink) :
  25968. this._trySubscribe(sink));
  25969. }
  25970. if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
  25971. if (sink.syncErrorThrowable) {
  25972. sink.syncErrorThrowable = false;
  25973. if (sink.syncErrorThrown) {
  25974. throw sink.syncErrorValue;
  25975. }
  25976. }
  25977. }
  25978. return sink;
  25979. }
  25980. _trySubscribe(sink) {
  25981. try {
  25982. return this._subscribe(sink);
  25983. }
  25984. catch (err) {
  25985. if (_config__WEBPACK_IMPORTED_MODULE_4__["config"].useDeprecatedSynchronousErrorHandling) {
  25986. sink.syncErrorThrown = true;
  25987. sink.syncErrorValue = err;
  25988. }
  25989. if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_0__["canReportError"])(sink)) {
  25990. sink.error(err);
  25991. }
  25992. else {
  25993. console.warn(err);
  25994. }
  25995. }
  25996. }
  25997. forEach(next, promiseCtor) {
  25998. promiseCtor = getPromiseCtor(promiseCtor);
  25999. return new promiseCtor((resolve, reject) => {
  26000. let subscription;
  26001. subscription = this.subscribe((value) => {
  26002. try {
  26003. next(value);
  26004. }
  26005. catch (err) {
  26006. reject(err);
  26007. if (subscription) {
  26008. subscription.unsubscribe();
  26009. }
  26010. }
  26011. }, reject, resolve);
  26012. });
  26013. }
  26014. _subscribe(subscriber) {
  26015. const { source } = this;
  26016. return source && source.subscribe(subscriber);
  26017. }
  26018. [_symbol_observable__WEBPACK_IMPORTED_MODULE_2__["observable"]]() {
  26019. return this;
  26020. }
  26021. pipe(...operations) {
  26022. if (operations.length === 0) {
  26023. return this;
  26024. }
  26025. return Object(_util_pipe__WEBPACK_IMPORTED_MODULE_3__["pipeFromArray"])(operations)(this);
  26026. }
  26027. toPromise(promiseCtor) {
  26028. promiseCtor = getPromiseCtor(promiseCtor);
  26029. return new promiseCtor((resolve, reject) => {
  26030. let value;
  26031. this.subscribe((x) => value = x, (err) => reject(err), () => resolve(value));
  26032. });
  26033. }
  26034. }
  26035. Observable.create = (subscribe) => {
  26036. return new Observable(subscribe);
  26037. };
  26038. function getPromiseCtor(promiseCtor) {
  26039. if (!promiseCtor) {
  26040. promiseCtor = _config__WEBPACK_IMPORTED_MODULE_4__["config"].Promise || Promise;
  26041. }
  26042. if (!promiseCtor) {
  26043. throw new Error('no Promise impl found');
  26044. }
  26045. return promiseCtor;
  26046. }
  26047. //# sourceMappingURL=Observable.js.map
  26048. /***/ }),
  26049. /***/ "Hh5Z":
  26050. /*!*************************************************************************!*\
  26051. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/QueueScheduler.js ***!
  26052. \*************************************************************************/
  26053. /*! exports provided: QueueScheduler */
  26054. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26055. "use strict";
  26056. __webpack_require__.r(__webpack_exports__);
  26057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueueScheduler", function() { return QueueScheduler; });
  26058. /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncScheduler */ "IjjT");
  26059. class QueueScheduler extends _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"] {
  26060. }
  26061. //# sourceMappingURL=QueueScheduler.js.map
  26062. /***/ }),
  26063. /***/ "Hkhx":
  26064. /*!*****************************************************************************!*\
  26065. !*** ./node_modules/rxjs/_esm2015/internal/observable/onErrorResumeNext.js ***!
  26066. \*****************************************************************************/
  26067. /*! exports provided: onErrorResumeNext */
  26068. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26069. "use strict";
  26070. __webpack_require__.r(__webpack_exports__);
  26071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return onErrorResumeNext; });
  26072. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  26073. /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./from */ "Cfvw");
  26074. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  26075. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./empty */ "EY2u");
  26076. function onErrorResumeNext(...sources) {
  26077. if (sources.length === 0) {
  26078. return _empty__WEBPACK_IMPORTED_MODULE_3__["EMPTY"];
  26079. }
  26080. const [first, ...remainder] = sources;
  26081. if (sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_2__["isArray"])(first)) {
  26082. return onErrorResumeNext(...first);
  26083. }
  26084. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  26085. const subNext = () => subscriber.add(onErrorResumeNext(...remainder).subscribe(subscriber));
  26086. return Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(first).subscribe({
  26087. next(value) { subscriber.next(value); },
  26088. error: subNext,
  26089. complete: subNext,
  26090. });
  26091. });
  26092. }
  26093. //# sourceMappingURL=onErrorResumeNext.js.map
  26094. /***/ }),
  26095. /***/ "HrJb":
  26096. /*!****************************************************************!*\
  26097. !*** ./node_modules/rxjs/_esm2015/internal/operators/count.js ***!
  26098. \****************************************************************/
  26099. /*! exports provided: count */
  26100. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26101. "use strict";
  26102. __webpack_require__.r(__webpack_exports__);
  26103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "count", function() { return count; });
  26104. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  26105. function count(predicate) {
  26106. return (source) => source.lift(new CountOperator(predicate, source));
  26107. }
  26108. class CountOperator {
  26109. constructor(predicate, source) {
  26110. this.predicate = predicate;
  26111. this.source = source;
  26112. }
  26113. call(subscriber, source) {
  26114. return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));
  26115. }
  26116. }
  26117. class CountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  26118. constructor(destination, predicate, source) {
  26119. super(destination);
  26120. this.predicate = predicate;
  26121. this.source = source;
  26122. this.count = 0;
  26123. this.index = 0;
  26124. }
  26125. _next(value) {
  26126. if (this.predicate) {
  26127. this._tryPredicate(value);
  26128. }
  26129. else {
  26130. this.count++;
  26131. }
  26132. }
  26133. _tryPredicate(value) {
  26134. let result;
  26135. try {
  26136. result = this.predicate(value, this.index++, this.source);
  26137. }
  26138. catch (err) {
  26139. this.destination.error(err);
  26140. return;
  26141. }
  26142. if (result) {
  26143. this.count++;
  26144. }
  26145. }
  26146. _complete() {
  26147. this.destination.next(this.count);
  26148. this.destination.complete();
  26149. }
  26150. }
  26151. //# sourceMappingURL=count.js.map
  26152. /***/ }),
  26153. /***/ "I55L":
  26154. /*!*****************************************************************!*\
  26155. !*** ./node_modules/rxjs/_esm2015/internal/util/isArrayLike.js ***!
  26156. \*****************************************************************/
  26157. /*! exports provided: isArrayLike */
  26158. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26159. "use strict";
  26160. __webpack_require__.r(__webpack_exports__);
  26161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isArrayLike", function() { return isArrayLike; });
  26162. const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function');
  26163. //# sourceMappingURL=isArrayLike.js.map
  26164. /***/ }),
  26165. /***/ "IAdc":
  26166. /*!******************************************************************!*\
  26167. !*** ./node_modules/rxjs/_esm2015/internal/operators/toArray.js ***!
  26168. \******************************************************************/
  26169. /*! exports provided: toArray */
  26170. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26171. "use strict";
  26172. __webpack_require__.r(__webpack_exports__);
  26173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return toArray; });
  26174. /* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reduce */ "128B");
  26175. function toArrayReducer(arr, item, index) {
  26176. if (index === 0) {
  26177. return [item];
  26178. }
  26179. arr.push(item);
  26180. return arr;
  26181. }
  26182. function toArray() {
  26183. return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(toArrayReducer, []);
  26184. }
  26185. //# sourceMappingURL=toArray.js.map
  26186. /***/ }),
  26187. /***/ "IjjT":
  26188. /*!*************************************************************************!*\
  26189. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsyncScheduler.js ***!
  26190. \*************************************************************************/
  26191. /*! exports provided: AsyncScheduler */
  26192. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26193. "use strict";
  26194. __webpack_require__.r(__webpack_exports__);
  26195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncScheduler", function() { return AsyncScheduler; });
  26196. /* harmony import */ var _Scheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Scheduler */ "Y/cZ");
  26197. class AsyncScheduler extends _Scheduler__WEBPACK_IMPORTED_MODULE_0__["Scheduler"] {
  26198. constructor(SchedulerAction, now = _Scheduler__WEBPACK_IMPORTED_MODULE_0__["Scheduler"].now) {
  26199. super(SchedulerAction, () => {
  26200. if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
  26201. return AsyncScheduler.delegate.now();
  26202. }
  26203. else {
  26204. return now();
  26205. }
  26206. });
  26207. this.actions = [];
  26208. this.active = false;
  26209. this.scheduled = undefined;
  26210. }
  26211. schedule(work, delay = 0, state) {
  26212. if (AsyncScheduler.delegate && AsyncScheduler.delegate !== this) {
  26213. return AsyncScheduler.delegate.schedule(work, delay, state);
  26214. }
  26215. else {
  26216. return super.schedule(work, delay, state);
  26217. }
  26218. }
  26219. flush(action) {
  26220. const { actions } = this;
  26221. if (this.active) {
  26222. actions.push(action);
  26223. return;
  26224. }
  26225. let error;
  26226. this.active = true;
  26227. do {
  26228. if (error = action.execute(action.state, action.delay)) {
  26229. break;
  26230. }
  26231. } while (action = actions.shift());
  26232. this.active = false;
  26233. if (error) {
  26234. while (action = actions.shift()) {
  26235. action.unsubscribe();
  26236. }
  26237. throw error;
  26238. }
  26239. }
  26240. }
  26241. //# sourceMappingURL=AsyncScheduler.js.map
  26242. /***/ }),
  26243. /***/ "IzEk":
  26244. /*!***************************************************************!*\
  26245. !*** ./node_modules/rxjs/_esm2015/internal/operators/take.js ***!
  26246. \***************************************************************/
  26247. /*! exports provided: take */
  26248. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26249. "use strict";
  26250. __webpack_require__.r(__webpack_exports__);
  26251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "take", function() { return take; });
  26252. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  26253. /* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/ArgumentOutOfRangeError */ "4I5i");
  26254. /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/empty */ "EY2u");
  26255. function take(count) {
  26256. return (source) => {
  26257. if (count === 0) {
  26258. return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
  26259. }
  26260. else {
  26261. return source.lift(new TakeOperator(count));
  26262. }
  26263. };
  26264. }
  26265. class TakeOperator {
  26266. constructor(total) {
  26267. this.total = total;
  26268. if (this.total < 0) {
  26269. throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"];
  26270. }
  26271. }
  26272. call(subscriber, source) {
  26273. return source.subscribe(new TakeSubscriber(subscriber, this.total));
  26274. }
  26275. }
  26276. class TakeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  26277. constructor(destination, total) {
  26278. super(destination);
  26279. this.total = total;
  26280. this.count = 0;
  26281. }
  26282. _next(value) {
  26283. const total = this.total;
  26284. const count = ++this.count;
  26285. if (count <= total) {
  26286. this.destination.next(value);
  26287. if (count === total) {
  26288. this.destination.complete();
  26289. this.unsubscribe();
  26290. }
  26291. }
  26292. }
  26293. }
  26294. //# sourceMappingURL=take.js.map
  26295. /***/ }),
  26296. /***/ "JIr8":
  26297. /*!*********************************************************************!*\
  26298. !*** ./node_modules/rxjs/_esm2015/internal/operators/catchError.js ***!
  26299. \*********************************************************************/
  26300. /*! exports provided: catchError */
  26301. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26302. "use strict";
  26303. __webpack_require__.r(__webpack_exports__);
  26304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "catchError", function() { return catchError; });
  26305. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  26306. /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv");
  26307. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  26308. function catchError(selector) {
  26309. return function catchErrorOperatorFunction(source) {
  26310. const operator = new CatchOperator(selector);
  26311. const caught = source.lift(operator);
  26312. return (operator.caught = caught);
  26313. };
  26314. }
  26315. class CatchOperator {
  26316. constructor(selector) {
  26317. this.selector = selector;
  26318. }
  26319. call(subscriber, source) {
  26320. return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));
  26321. }
  26322. }
  26323. class CatchSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  26324. constructor(destination, selector, caught) {
  26325. super(destination);
  26326. this.selector = selector;
  26327. this.caught = caught;
  26328. }
  26329. error(err) {
  26330. if (!this.isStopped) {
  26331. let result;
  26332. try {
  26333. result = this.selector(err, this.caught);
  26334. }
  26335. catch (err2) {
  26336. super.error(err2);
  26337. return;
  26338. }
  26339. this._unsubscribeAndRecycle();
  26340. const innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_1__["InnerSubscriber"](this, undefined, undefined);
  26341. this.add(innerSubscriber);
  26342. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, result, undefined, undefined, innerSubscriber);
  26343. if (innerSubscription !== innerSubscriber) {
  26344. this.add(innerSubscription);
  26345. }
  26346. }
  26347. }
  26348. }
  26349. //# sourceMappingURL=catchError.js.map
  26350. /***/ }),
  26351. /***/ "JX91":
  26352. /*!********************************************************************!*\
  26353. !*** ./node_modules/rxjs/_esm2015/internal/operators/startWith.js ***!
  26354. \********************************************************************/
  26355. /*! exports provided: startWith */
  26356. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26357. "use strict";
  26358. __webpack_require__.r(__webpack_exports__);
  26359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startWith", function() { return startWith; });
  26360. /* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/concat */ "GyhO");
  26361. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  26362. function startWith(...array) {
  26363. const scheduler = array[array.length - 1];
  26364. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__["isScheduler"])(scheduler)) {
  26365. array.pop();
  26366. return (source) => Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(array, source, scheduler);
  26367. }
  26368. else {
  26369. return (source) => Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(array, source);
  26370. }
  26371. }
  26372. //# sourceMappingURL=startWith.js.map
  26373. /***/ }),
  26374. /***/ "JmF6":
  26375. /*!*****************************************************************!*\
  26376. !*** ./node_modules/rxjs/_esm2015/internal/operators/zipAll.js ***!
  26377. \*****************************************************************/
  26378. /*! exports provided: zipAll */
  26379. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26380. "use strict";
  26381. __webpack_require__.r(__webpack_exports__);
  26382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "zipAll", function() { return zipAll; });
  26383. /* harmony import */ var _observable_zip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/zip */ "1uah");
  26384. function zipAll(project) {
  26385. return (source) => source.lift(new _observable_zip__WEBPACK_IMPORTED_MODULE_0__["ZipOperator"](project));
  26386. }
  26387. //# sourceMappingURL=zipAll.js.map
  26388. /***/ }),
  26389. /***/ "JqCM":
  26390. /*!***********************************************************************!*\
  26391. !*** ./node_modules/ngx-spinner/__ivy_ngcc__/fesm2015/ngx-spinner.js ***!
  26392. \***********************************************************************/
  26393. /*! exports provided: NgxSpinnerComponent, NgxSpinnerModule, NgxSpinnerService, ɵa */
  26394. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26395. "use strict";
  26396. __webpack_require__.r(__webpack_exports__);
  26397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgxSpinnerComponent", function() { return NgxSpinnerComponent; });
  26398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgxSpinnerModule", function() { return NgxSpinnerModule; });
  26399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgxSpinnerService", function() { return NgxSpinnerService; });
  26400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵa", function() { return SafeHtmlPipe; });
  26401. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  26402. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
  26403. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  26404. /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/animations */ "R0Ic");
  26405. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
  26406. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
  26407. function NgxSpinnerComponent_div_0_div_1_div_1_Template(rf, ctx) { if (rf & 1) {
  26408. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div");
  26409. } }
  26410. function NgxSpinnerComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
  26411. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div");
  26412. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgxSpinnerComponent_div_0_div_1_div_1_Template, 1, 0, "div", 5);
  26413. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  26414. } if (rf & 2) {
  26415. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  26416. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMap"](ctx_r1.spinner.class);
  26417. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("color", ctx_r1.spinner.color);
  26418. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  26419. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r1.spinner.divArray);
  26420. } }
  26421. function NgxSpinnerComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
  26422. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 6);
  26423. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](1, "safeHtml");
  26424. } if (rf & 2) {
  26425. const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  26426. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("innerHTML", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](1, 1, ctx_r2.template), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsanitizeHtml"]);
  26427. } }
  26428. function NgxSpinnerComponent_div_0_Template(rf, ctx) { if (rf & 1) {
  26429. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 1);
  26430. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgxSpinnerComponent_div_0_div_1_Template, 2, 5, "div", 2);
  26431. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgxSpinnerComponent_div_0_div_2_Template, 2, 3, "div", 3);
  26432. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](3, "div", 4);
  26433. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](4);
  26434. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  26435. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  26436. } if (rf & 2) {
  26437. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  26438. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("background-color", ctx_r0.spinner.bdColor)("z-index", ctx_r0.spinner.zIndex)("position", ctx_r0.spinner.fullScreen ? "fixed" : "absolute");
  26439. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("@fadeIn", "in");
  26440. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  26441. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx_r0.template);
  26442. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  26443. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r0.template);
  26444. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  26445. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("z-index", ctx_r0.spinner.zIndex);
  26446. } }
  26447. const _c0 = ["*"];
  26448. const LOADERS = {
  26449. 'ball-8bits': 16,
  26450. 'ball-atom': 4,
  26451. 'ball-beat': 3,
  26452. 'ball-circus': 5,
  26453. 'ball-climbing-dot': 4,
  26454. 'ball-clip-rotate': 1,
  26455. 'ball-clip-rotate-multiple': 2,
  26456. 'ball-clip-rotate-pulse': 2,
  26457. 'ball-elastic-dots': 5,
  26458. 'ball-fall': 3,
  26459. 'ball-fussion': 4,
  26460. 'ball-grid-beat': 9,
  26461. 'ball-grid-pulse': 9,
  26462. 'ball-newton-cradle': 4,
  26463. 'ball-pulse': 3,
  26464. 'ball-pulse-rise': 5,
  26465. 'ball-pulse-sync': 3,
  26466. 'ball-rotate': 1,
  26467. 'ball-running-dots': 5,
  26468. 'ball-scale': 1,
  26469. 'ball-scale-multiple': 3,
  26470. 'ball-scale-pulse': 2,
  26471. 'ball-scale-ripple': 1,
  26472. 'ball-scale-ripple-multiple': 3,
  26473. 'ball-spin': 8,
  26474. 'ball-spin-clockwise': 8,
  26475. 'ball-spin-clockwise-fade': 8,
  26476. 'ball-spin-clockwise-fade-rotating': 8,
  26477. 'ball-spin-fade': 8,
  26478. 'ball-spin-fade-rotating': 8,
  26479. 'ball-spin-rotate': 2,
  26480. 'ball-square-clockwise-spin': 8,
  26481. 'ball-square-spin': 8,
  26482. 'ball-triangle-path': 3,
  26483. 'ball-zig-zag': 2,
  26484. 'ball-zig-zag-deflect': 2,
  26485. 'cog': 1,
  26486. 'cube-transition': 2,
  26487. 'fire': 3,
  26488. 'line-scale': 5,
  26489. 'line-scale-party': 5,
  26490. 'line-scale-pulse-out': 5,
  26491. 'line-scale-pulse-out-rapid': 5,
  26492. 'line-spin-clockwise-fade': 8,
  26493. 'line-spin-clockwise-fade-rotating': 8,
  26494. 'line-spin-fade': 8,
  26495. 'line-spin-fade-rotating': 8,
  26496. 'pacman': 6,
  26497. 'square-jelly-box': 2,
  26498. 'square-loader': 1,
  26499. 'square-spin': 1,
  26500. 'timer': 1,
  26501. 'triangle-skew-spin': 1
  26502. };
  26503. const DEFAULTS = {
  26504. BD_COLOR: 'rgba(51,51,51,0.8)',
  26505. SPINNER_COLOR: '#fff',
  26506. SPINNER_TYPE: 'ball-scale-multiple',
  26507. Z_INDEX: 99999,
  26508. };
  26509. const PRIMARY_SPINNER = 'primary';
  26510. class NgxSpinner {
  26511. constructor(init) {
  26512. Object.assign(this, init);
  26513. }
  26514. }
  26515. class NgxSpinnerService {
  26516. /**
  26517. * Creates an instance of NgxSpinnerService.
  26518. * @memberof NgxSpinnerService
  26519. */
  26520. constructor() {
  26521. /**
  26522. * Spinner observable
  26523. *
  26524. * @memberof NgxSpinnerService
  26525. */
  26526. // private spinnerObservable = new ReplaySubject<NgxSpinner>(1);
  26527. this.spinnerObservable = new rxjs__WEBPACK_IMPORTED_MODULE_1__["BehaviorSubject"](null);
  26528. }
  26529. /**
  26530. * Get subscription of desired spinner
  26531. * @memberof NgxSpinnerService
  26532. **/
  26533. getSpinner(name) {
  26534. return this.spinnerObservable.asObservable().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])((x) => x && x.name === name));
  26535. }
  26536. /**
  26537. * To show spinner
  26538. *
  26539. * @memberof NgxSpinnerService
  26540. */
  26541. show(name = PRIMARY_SPINNER, spinner) {
  26542. setTimeout(() => {
  26543. const showPromise = new Promise((resolve, _reject) => {
  26544. if (spinner && Object.keys(spinner).length) {
  26545. spinner['name'] = name;
  26546. this.spinnerObservable.next(new NgxSpinner(Object.assign(Object.assign({}, spinner), { show: true })));
  26547. resolve(true);
  26548. }
  26549. else {
  26550. this.spinnerObservable.next(new NgxSpinner({ name, show: true }));
  26551. resolve(true);
  26552. }
  26553. });
  26554. return showPromise;
  26555. }, 10);
  26556. }
  26557. /**
  26558. * To hide spinner
  26559. *
  26560. * @memberof NgxSpinnerService
  26561. */
  26562. hide(name = PRIMARY_SPINNER, debounce = 10) {
  26563. setTimeout(() => {
  26564. const hidePromise = new Promise((resolve, _reject) => {
  26565. this.spinnerObservable.next(new NgxSpinner({ name, show: false }));
  26566. resolve(true);
  26567. });
  26568. return hidePromise;
  26569. }, debounce);
  26570. }
  26571. }
  26572. NgxSpinnerService.ɵfac = function NgxSpinnerService_Factory(t) { return new (t || NgxSpinnerService)(); };
  26573. NgxSpinnerService.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgxSpinnerService_Factory() { return new NgxSpinnerService(); }, token: NgxSpinnerService, providedIn: "root" });
  26574. NgxSpinnerService.ctorParameters = () => [];
  26575. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgxSpinnerService, [{
  26576. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  26577. args: [{
  26578. providedIn: 'root'
  26579. }]
  26580. }], function () { return []; }, null); })();
  26581. class NgxSpinnerComponent {
  26582. /**
  26583. * Creates an instance of NgxSpinnerComponent.
  26584. *
  26585. * @memberof NgxSpinnerComponent
  26586. */
  26587. constructor(spinnerService, changeDetector) {
  26588. this.spinnerService = spinnerService;
  26589. this.changeDetector = changeDetector;
  26590. /**
  26591. * Spinner Object
  26592. *
  26593. * @memberof NgxSpinnerComponent
  26594. */
  26595. this.spinner = new NgxSpinner();
  26596. /**
  26597. * Unsubscribe from spinner's observable
  26598. *
  26599. * @memberof NgxSpinnerComponent
  26600. **/
  26601. this.ngUnsubscribe = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
  26602. /**
  26603. * To set default ngx-spinner options
  26604. *
  26605. * @memberof NgxSpinnerComponent
  26606. */
  26607. this.setDefaultOptions = () => {
  26608. this.spinner = new NgxSpinner({
  26609. name: this.name,
  26610. bdColor: this.bdColor,
  26611. size: this.size,
  26612. color: this.color,
  26613. type: this.type,
  26614. fullScreen: this.fullScreen,
  26615. divArray: this.divArray,
  26616. divCount: this.divCount,
  26617. show: this.show,
  26618. zIndex: this.zIndex,
  26619. template: this.template,
  26620. });
  26621. };
  26622. this.bdColor = DEFAULTS.BD_COLOR;
  26623. this.zIndex = DEFAULTS.Z_INDEX;
  26624. this.color = DEFAULTS.SPINNER_COLOR;
  26625. this.type = DEFAULTS.SPINNER_TYPE;
  26626. this.size = 'large';
  26627. this.fullScreen = true;
  26628. this.name = PRIMARY_SPINNER;
  26629. this.template = null;
  26630. this.divArray = [];
  26631. this.divCount = 0;
  26632. this.show = false;
  26633. }
  26634. /**
  26635. * Initialization method
  26636. *
  26637. * @memberof NgxSpinnerComponent
  26638. */
  26639. ngOnInit() {
  26640. this.setDefaultOptions();
  26641. this.spinnerService.getSpinner(this.name)
  26642. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["takeUntil"])(this.ngUnsubscribe))
  26643. .subscribe((spinner) => {
  26644. this.setDefaultOptions();
  26645. Object.assign(this.spinner, spinner);
  26646. if (spinner.show) {
  26647. this.onInputChange();
  26648. }
  26649. this.changeDetector.markForCheck();
  26650. });
  26651. }
  26652. /**
  26653. * On changes event for input variables
  26654. *
  26655. * @memberof NgxSpinnerComponent
  26656. */
  26657. ngOnChanges(changes) {
  26658. for (const propName in changes) {
  26659. if (propName) {
  26660. const changedProp = changes[propName];
  26661. if (changedProp.isFirstChange()) {
  26662. return;
  26663. }
  26664. else if (typeof changedProp.currentValue !== 'undefined' && changedProp.currentValue !== changedProp.previousValue) {
  26665. if (changedProp.currentValue !== '') {
  26666. this.spinner[propName] = changedProp.currentValue;
  26667. }
  26668. }
  26669. }
  26670. }
  26671. }
  26672. /**
  26673. * To get class for spinner
  26674. *
  26675. * @memberof NgxSpinnerComponent
  26676. */
  26677. getClass(type, size) {
  26678. this.spinner.divCount = LOADERS[type];
  26679. this.spinner.divArray = Array(this.spinner.divCount).fill(0).map((x, i) => i);
  26680. let sizeClass = '';
  26681. switch (size.toLowerCase()) {
  26682. case 'small':
  26683. sizeClass = 'la-sm';
  26684. break;
  26685. case 'medium':
  26686. sizeClass = 'la-2x';
  26687. break;
  26688. case 'large':
  26689. sizeClass = 'la-3x';
  26690. break;
  26691. default:
  26692. break;
  26693. }
  26694. return 'la-' + type + ' ' + sizeClass;
  26695. }
  26696. /**
  26697. * Check if input variables have changed
  26698. *
  26699. * @memberof NgxSpinnerComponent
  26700. */
  26701. onInputChange() {
  26702. this.spinner.class = this.getClass(this.spinner.type, this.spinner.size);
  26703. }
  26704. /**
  26705. * Component destroy event
  26706. *
  26707. * @memberof NgxSpinnerComponent
  26708. */
  26709. ngOnDestroy() {
  26710. this.ngUnsubscribe.next();
  26711. this.ngUnsubscribe.complete();
  26712. }
  26713. }
  26714. NgxSpinnerComponent.ɵfac = function NgxSpinnerComponent_Factory(t) { return new (t || NgxSpinnerComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgxSpinnerService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); };
  26715. NgxSpinnerComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgxSpinnerComponent, selectors: [["ngx-spinner"]], inputs: { bdColor: "bdColor", zIndex: "zIndex", color: "color", type: "type", size: "size", fullScreen: "fullScreen", name: "name", template: "template" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c0, decls: 1, vars: 1, consts: [["class", "overlay", 3, "background-color", "z-index", "position", 4, "ngIf"], [1, "overlay"], [3, "class", "color", 4, "ngIf"], [3, "innerHTML", 4, "ngIf"], [1, "loading-text"], [4, "ngFor", "ngForOf"], [3, "innerHTML"]], template: function NgxSpinnerComponent_Template(rf, ctx) { if (rf & 1) {
  26716. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  26717. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgxSpinnerComponent_div_0_Template, 5, 11, "div", 0);
  26718. } if (rf & 2) {
  26719. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.spinner.show);
  26720. } }, directives: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgForOf"]]; }, pipes: function () { return [SafeHtmlPipe]; }, styles: [".la-ball-8bits[_ngcontent-%COMP%], .la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-8bits[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-8bits.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-8bits[_ngcontent-%COMP%]{height:12px;width:12px}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-8bits 1s ease 0s infinite;animation:ball-8bits 1s ease 0s infinite;border-radius:0;height:4px;left:50%;opacity:0;position:absolute;top:50%;transform:translate(100%,100%);width:4px}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.9375s;animation-delay:-.9375s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.875s;animation-delay:-.875s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.8125s;animation-delay:-.8125s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.75s;animation-delay:-.75s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.6875s;animation-delay:-.6875s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.625s;animation-delay:-.625s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.5625s;animation-delay:-.5625s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){-webkit-animation-delay:-.4375s;animation-delay:-.4375s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(10){-webkit-animation-delay:-.375s;animation-delay:-.375s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(11){-webkit-animation-delay:-.3125s;animation-delay:-.3125s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(12){-webkit-animation-delay:-.25s;animation-delay:-.25s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(13){-webkit-animation-delay:-.1875s;animation-delay:-.1875s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(14){-webkit-animation-delay:-.125s;animation-delay:-.125s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(15){-webkit-animation-delay:-.0625s;animation-delay:-.0625s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(16){-webkit-animation-delay:0s;animation-delay:0s}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{left:0;top:-100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){left:33.3333333333%;top:-100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){left:66.6666666667%;top:-66.6666666667%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){left:100%;top:-33.3333333333%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){left:100%;top:0}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){left:100%;top:33.3333333333%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){left:66.6666666667%;top:66.6666666667%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){left:33.3333333333%;top:100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){left:0;top:100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(10){left:-33.3333333333%;top:100%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(11){left:-66.6666666667%;top:66.6666666667%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(12){left:-100%;top:33.3333333333%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(13){left:-100%;top:0}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(14){left:-100%;top:-33.3333333333%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(15){left:-66.6666666667%;top:-66.6666666667%}.la-ball-8bits[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(16){left:-33.3333333333%;top:-100%}.la-ball-8bits.la-sm[_ngcontent-%COMP%]{height:6px;width:6px}.la-ball-8bits.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:2px;width:2px}.la-ball-8bits.la-2x[_ngcontent-%COMP%]{height:24px;width:24px}.la-ball-8bits.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:8px;width:8px}.la-ball-8bits.la-3x[_ngcontent-%COMP%]{height:36px;width:36px}.la-ball-8bits.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:12px;width:12px}@-webkit-keyframes ball-8bits{0%{opacity:1}50%{opacity:1}51%{opacity:0}}@keyframes ball-8bits{0%{opacity:1}50%{opacity:1}51%{opacity:0}}.la-ball-atom[_ngcontent-%COMP%], .la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-atom[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-atom.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-atom[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-atom-shrink 4.5s linear infinite;animation:ball-atom-shrink 4.5s linear infinite;background:#aaa;border-radius:100%;height:60%;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%;z-index:1}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){-webkit-animation:ball-atom-zindex 1.5s steps(2) 0s infinite;animation:ball-atom-zindex 1.5s steps(2) 0s infinite;background:none;height:100%;left:0;position:absolute;width:100%;z-index:0}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):before{-webkit-animation:ball-atom-position 1.5s ease 0s infinite,ball-atom-size 1.5s ease 0s infinite;animation:ball-atom-position 1.5s ease 0s infinite,ball-atom-size 1.5s ease 0s infinite;background:currentColor;border-radius:50%;content:\"\";height:10px;left:0;margin-left:-5px;margin-top:-5px;opacity:.75;position:absolute;top:0;width:10px}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.75s;animation-delay:.75s}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2):before{-webkit-animation-delay:0s,-1.125s;animation-delay:0s,-1.125s}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.25s;animation-delay:-.25s;transform:rotate(120deg)}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3):before{-webkit-animation-delay:-1s,-.75s;animation-delay:-1s,-.75s}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:.25s;animation-delay:.25s;transform:rotate(240deg)}.la-ball-atom[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4):before{-webkit-animation-delay:-.5s,-.125s;animation-delay:-.5s,-.125s}.la-ball-atom.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-atom.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):before{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-atom.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-atom.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):before{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-atom.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-atom.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):before{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-atom-position{50%{left:100%;top:100%}}@keyframes ball-atom-position{50%{left:100%;top:100%}}@-webkit-keyframes ball-atom-size{50%{transform:scale(.5)}}@keyframes ball-atom-size{50%{transform:scale(.5)}}@-webkit-keyframes ball-atom-zindex{50%{z-index:10}}@keyframes ball-atom-zindex{50%{z-index:10}}@-webkit-keyframes ball-atom-shrink{50%{transform:translate(-50%,-50%) scale(.8)}}@keyframes ball-atom-shrink{50%{transform:translate(-50%,-50%) scale(.8)}}.la-ball-beat[_ngcontent-%COMP%], .la-ball-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-beat[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-beat.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-beat[_ngcontent-%COMP%]{height:18px;width:54px}.la-ball-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-beat .7s linear -.15s infinite;animation:ball-beat .7s linear -.15s infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2n-1){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-ball-beat.la-sm[_ngcontent-%COMP%]{height:8px;width:26px}.la-ball-beat.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:2px;width:4px}.la-ball-beat.la-2x[_ngcontent-%COMP%]{height:36px;width:108px}.la-ball-beat.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:8px;width:20px}.la-ball-beat.la-3x[_ngcontent-%COMP%]{height:54px;width:162px}.la-ball-beat.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-beat{50%{opacity:.2;transform:scale(.75)}to{opacity:1;transform:scale(1)}}@keyframes ball-beat{50%{opacity:.2;transform:scale(.75)}to{opacity:1;transform:scale(1)}}.la-ball-circus[_ngcontent-%COMP%], .la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-circus[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-circus.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-circus[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-circus-position 2.5s cubic-bezier(.25,0,.75,1) infinite,ball-circus-size 2.5s cubic-bezier(.25,0,.75,1) infinite;animation:ball-circus-position 2.5s cubic-bezier(.25,0,.75,1) infinite,ball-circus-size 2.5s cubic-bezier(.25,0,.75,1) infinite;border-radius:100%;display:block;height:16px;height:100%;left:-100%;opacity:.5;position:absolute;top:0;width:16px;width:100%}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:0s,-.5s;animation-delay:0s,-.5s}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.5s,-1s;animation-delay:-.5s,-1s}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1s,-1.5s;animation-delay:-1s,-1.5s}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s,-2s;animation-delay:-1.5s,-2s}.la-ball-circus[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-2s,-2.5s;animation-delay:-2s,-2.5s}.la-ball-circus.la-sm[_ngcontent-%COMP%], .la-ball-circus.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:8px;width:8px}.la-ball-circus.la-2x[_ngcontent-%COMP%], .la-ball-circus.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-circus.la-3x[_ngcontent-%COMP%], .la-ball-circus.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:48px;width:48px}@-webkit-keyframes ball-circus-position{50%{left:100%}}@keyframes ball-circus-position{50%{left:100%}}@-webkit-keyframes ball-circus-size{50%{transform:scale(.3)}}@keyframes ball-circus-size{50%{transform:scale(.3)}}.la-ball-climbing-dot[_ngcontent-%COMP%], .la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-climbing-dot[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-climbing-dot.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-climbing-dot[_ngcontent-%COMP%]{height:32px;width:42px}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-climbing-dot-jump .6s ease-in-out infinite;animation:ball-climbing-dot-jump .6s ease-in-out infinite;border-radius:100%;bottom:32%;height:14px;left:18%;position:absolute;transform-origin:center bottom;width:14px}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){-webkit-animation:ball-climbing-dot-steps 1.8s linear infinite;animation:ball-climbing-dot-steps 1.8s linear infinite;border-radius:0;height:2px;position:absolute;right:0;top:0;transform:translate(60%);width:14px}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):nth-child(2){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):nth-child(3){-webkit-animation-delay:-.6s;animation-delay:-.6s}.la-ball-climbing-dot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child):nth-child(4){-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-ball-climbing-dot.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-ball-climbing-dot.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:6px;width:6px}.la-ball-climbing-dot.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){height:1px;width:6px}.la-ball-climbing-dot.la-2x[_ngcontent-%COMP%]{height:64px;width:84px}.la-ball-climbing-dot.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:28px;width:28px}.la-ball-climbing-dot.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){height:4px;width:28px}.la-ball-climbing-dot.la-3x[_ngcontent-%COMP%]{height:96px;width:126px}.la-ball-climbing-dot.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:42px;width:42px}.la-ball-climbing-dot.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child){height:6px;width:42px}@-webkit-keyframes ball-climbing-dot-jump{0%{transform:scaleY(.7)}20%{transform:scale(.7,1.2)}40%{transform:scale(1)}50%{bottom:125%}46%{transform:scale(1)}80%{transform:scale(.7,1.2)}90%{transform:scale(.7,1.2)}to{transform:scaleY(.7)}}@keyframes ball-climbing-dot-jump{0%{transform:scaleY(.7)}20%{transform:scale(.7,1.2)}40%{transform:scale(1)}50%{bottom:125%}46%{transform:scale(1)}80%{transform:scale(.7,1.2)}90%{transform:scale(.7,1.2)}to{transform:scaleY(.7)}}@-webkit-keyframes ball-climbing-dot-steps{0%{opacity:0;right:0;top:0}50%{opacity:1}to{opacity:0;right:100%;top:100%}}@keyframes ball-climbing-dot-steps{0%{opacity:0;right:0;top:0}50%{opacity:1}to{opacity:0;right:100%;top:100%}}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%], .la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-clip-rotate-multiple.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;animation:ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;background:transparent;border-radius:100%;border-style:solid;border-width:2px;left:50%;position:absolute;top:50%}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-left-color:transparent;border-right-color:transparent;height:32px;position:absolute;width:32px}.la-ball-clip-rotate-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation-direction:reverse;-webkit-animation-duration:.5s;animation-direction:reverse;animation-duration:.5s;border-bottom-color:transparent;border-top-color:transparent;height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px}.la-ball-clip-rotate-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:8px;width:8px}.la-ball-clip-rotate-multiple.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-clip-rotate-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px}.la-ball-clip-rotate-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:64px;width:64px}.la-ball-clip-rotate-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:32px;width:32px}.la-ball-clip-rotate-multiple.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-clip-rotate-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px}.la-ball-clip-rotate-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{height:96px;width:96px}.la-ball-clip-rotate-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:48px;width:48px}@-webkit-keyframes ball-clip-rotate-multiple-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@keyframes ball-clip-rotate-multiple-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%], .la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-clip-rotate-pulse.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;left:50%;position:absolute;top:50%}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-clip-rotate-pulse-rotate 1s cubic-bezier(.09,.57,.49,.9) infinite;animation:ball-clip-rotate-pulse-rotate 1s cubic-bezier(.09,.57,.49,.9) infinite;background:transparent;border-bottom-style:solid;border-bottom-width:2px;border-left:2px solid transparent;border-right:2px solid transparent;border-top-style:solid;border-top-width:2px;height:32px;position:absolute;width:32px}.la-ball-clip-rotate-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation:ball-clip-rotate-pulse-scale 1s cubic-bezier(.09,.57,.49,.9) infinite;animation:ball-clip-rotate-pulse-scale 1s cubic-bezier(.09,.57,.49,.9) infinite;height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-width:1px;height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:8px;width:8px}.la-ball-clip-rotate-pulse.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-clip-rotate-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-width:4px;height:64px;width:64px}.la-ball-clip-rotate-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:32px;width:32px}.la-ball-clip-rotate-pulse.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-clip-rotate-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{border-width:6px;height:96px;width:96px}.la-ball-clip-rotate-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{height:48px;width:48px}@-webkit-keyframes ball-clip-rotate-pulse-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@keyframes ball-clip-rotate-pulse-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@-webkit-keyframes ball-clip-rotate-pulse-scale{0%,to{opacity:1;transform:translate(-50%,-50%) scale(1)}30%{opacity:.3;transform:translate(-50%,-50%) scale(.15)}}@keyframes ball-clip-rotate-pulse-scale{0%,to{opacity:1;transform:translate(-50%,-50%) scale(1)}30%{opacity:.3;transform:translate(-50%,-50%) scale(.15)}}.la-ball-clip-rotate[_ngcontent-%COMP%], .la-ball-clip-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-clip-rotate[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-clip-rotate.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-clip-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-clip-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-clip-rotate .75s linear infinite;animation:ball-clip-rotate .75s linear infinite;background:transparent;border-bottom-color:transparent;border-radius:100%;border-width:2px;height:32px;width:32px}.la-ball-clip-rotate.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-clip-rotate.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px;height:16px;width:16px}.la-ball-clip-rotate.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-clip-rotate.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px;height:64px;width:64px}.la-ball-clip-rotate.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-clip-rotate.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-clip-rotate{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}@keyframes ball-clip-rotate{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.la-ball-elastic-dots[_ngcontent-%COMP%], .la-ball-elastic-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-elastic-dots[_ngcontent-%COMP%]{color:#fff;display:block}.la-ball-elastic-dots.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-elastic-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;float:none}.la-ball-elastic-dots[_ngcontent-%COMP%]{font-size:0;height:10px;text-align:center;width:120px}.la-ball-elastic-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-elastic-dots-anim 1s infinite;animation:ball-elastic-dots-anim 1s infinite;border-radius:100%;display:inline-block;height:10px;white-space:nowrap;width:10px}.la-ball-elastic-dots.la-sm[_ngcontent-%COMP%]{height:4px;width:60px}.la-ball-elastic-dots.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-elastic-dots.la-2x[_ngcontent-%COMP%]{height:20px;width:240px}.la-ball-elastic-dots.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-elastic-dots.la-3x[_ngcontent-%COMP%]{height:30px;width:360px}.la-ball-elastic-dots.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;width:30px}@-webkit-keyframes ball-elastic-dots-anim{0%,to{margin:0;transform:scale(1)}50%{margin:0 5%;transform:scale(.65)}}@keyframes ball-elastic-dots-anim{0%,to{margin:0;transform:scale(1)}50%{margin:0 5%;transform:scale(.65)}}.la-ball-fall[_ngcontent-%COMP%], .la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-fall[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-fall.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-fall[_ngcontent-%COMP%]{height:18px;width:54px}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-fall 1s ease-in-out infinite;animation:ball-fall 1s ease-in-out infinite;border-radius:100%;height:10px;margin:4px;opacity:0;width:10px}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.2s;animation-delay:-.2s}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.1s;animation-delay:-.1s}.la-ball-fall[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-fall.la-sm[_ngcontent-%COMP%]{height:8px;width:26px}.la-ball-fall.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:2px;width:4px}.la-ball-fall.la-2x[_ngcontent-%COMP%]{height:36px;width:108px}.la-ball-fall.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:8px;width:20px}.la-ball-fall.la-3x[_ngcontent-%COMP%]{height:54px;width:162px}.la-ball-fall.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-fall{0%{opacity:0;transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(0)}90%{opacity:.5}to{opacity:0;transform:translateY(145%)}}@keyframes ball-fall{0%{opacity:0;transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(0)}90%{opacity:.5}to{opacity:0;transform:translateY(145%)}}.la-ball-fussion[_ngcontent-%COMP%], .la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-fussion[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-fussion.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-fussion[_ngcontent-%COMP%]{height:8px;width:8px}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-fussion-ball1 1s ease 0s infinite;animation:ball-fussion-ball1 1s ease 0s infinite;border-radius:100%;height:12px;position:absolute;transform:translate(-50%,-50%);width:12px}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{left:50%;top:0;z-index:1}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-name:ball-fussion-ball2;animation-name:ball-fussion-ball2;left:100%;top:50%;z-index:2}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-name:ball-fussion-ball3;animation-name:ball-fussion-ball3;left:50%;top:100%;z-index:1}.la-ball-fussion[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-name:ball-fussion-ball4;animation-name:ball-fussion-ball4;left:0;top:50%;z-index:2}.la-ball-fussion.la-sm[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-fussion.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;width:6px}.la-ball-fussion.la-2x[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-fussion.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .la-ball-fussion.la-3x[_ngcontent-%COMP%]{height:24px;width:24px}.la-ball-fussion.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:36px;width:36px}@-webkit-keyframes ball-fussion-ball1{0%{opacity:.35}50%{left:200%;opacity:1;top:-100%}to{left:100%;opacity:.35;top:50%;z-index:2}}@keyframes ball-fussion-ball1{0%{opacity:.35}50%{left:200%;opacity:1;top:-100%}to{left:100%;opacity:.35;top:50%;z-index:2}}@-webkit-keyframes ball-fussion-ball2{0%{opacity:.35}50%{left:200%;opacity:1;top:200%}to{left:50%;opacity:.35;top:100%;z-index:1}}@keyframes ball-fussion-ball2{0%{opacity:.35}50%{left:200%;opacity:1;top:200%}to{left:50%;opacity:.35;top:100%;z-index:1}}@-webkit-keyframes ball-fussion-ball3{0%{opacity:.35}50%{left:-100%;opacity:1;top:200%}to{left:0;opacity:.35;top:50%;z-index:2}}@keyframes ball-fussion-ball3{0%{opacity:.35}50%{left:-100%;opacity:1;top:200%}to{left:0;opacity:.35;top:50%;z-index:2}}@-webkit-keyframes ball-fussion-ball4{0%{opacity:.35}50%{left:-100%;opacity:1;top:-100%}to{left:50%;opacity:.35;top:0;z-index:1}}@keyframes ball-fussion-ball4{0%{opacity:.35}50%{left:-100%;opacity:1;top:-100%}to{left:50%;opacity:.35;top:0;z-index:1}}.la-ball-grid-beat[_ngcontent-%COMP%], .la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-grid-beat[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-grid-beat.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-grid-beat[_ngcontent-%COMP%]{height:36px;width:36px}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation-iteration-count:infinite;-webkit-animation-name:ball-grid-beat;animation-iteration-count:infinite;animation-name:ball-grid-beat;border-radius:100%;height:8px;margin:2px;width:8px}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:.03s;-webkit-animation-duration:.65s;animation-delay:.03s;animation-duration:.65s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.09s;-webkit-animation-duration:1.02s;animation-delay:.09s;animation-duration:1.02s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.69s;-webkit-animation-duration:1.06s;animation-delay:-.69s;animation-duration:1.06s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.41s;-webkit-animation-duration:1.5s;animation-delay:-.41s;animation-duration:1.5s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:.04s;-webkit-animation-duration:1.6s;animation-delay:.04s;animation-duration:1.6s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:.07s;-webkit-animation-duration:.84s;animation-delay:.07s;animation-duration:.84s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.66s;-webkit-animation-duration:.68s;animation-delay:-.66s;animation-duration:.68s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.76s;-webkit-animation-duration:.93s;animation-delay:-.76s;animation-duration:.93s}.la-ball-grid-beat[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){-webkit-animation-delay:-.76s;-webkit-animation-duration:1.24s;animation-delay:-.76s;animation-duration:1.24s}.la-ball-grid-beat.la-sm[_ngcontent-%COMP%]{height:18px;width:18px}.la-ball-grid-beat.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:1px;width:4px}.la-ball-grid-beat.la-2x[_ngcontent-%COMP%]{height:72px;width:72px}.la-ball-grid-beat.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:4px;width:16px}.la-ball-grid-beat.la-3x[_ngcontent-%COMP%]{height:108px;width:108px}.la-ball-grid-beat.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin:6px;width:24px}@-webkit-keyframes ball-grid-beat{0%{opacity:1}50%{opacity:.35}to{opacity:1}}@keyframes ball-grid-beat{0%{opacity:1}50%{opacity:.35}to{opacity:1}}.la-ball-grid-pulse[_ngcontent-%COMP%], .la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-grid-pulse[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-grid-pulse.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-grid-pulse[_ngcontent-%COMP%]{height:36px;width:36px}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation-iteration-count:infinite;-webkit-animation-name:ball-grid-pulse;animation-iteration-count:infinite;animation-name:ball-grid-pulse;border-radius:100%;height:8px;margin:2px;width:8px}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:.03s;-webkit-animation-duration:.65s;animation-delay:.03s;animation-duration:.65s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.09s;-webkit-animation-duration:1.02s;animation-delay:.09s;animation-duration:1.02s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.69s;-webkit-animation-duration:1.06s;animation-delay:-.69s;animation-duration:1.06s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.41s;-webkit-animation-duration:1.5s;animation-delay:-.41s;animation-duration:1.5s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:.04s;-webkit-animation-duration:1.6s;animation-delay:.04s;animation-duration:1.6s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:.07s;-webkit-animation-duration:.84s;animation-delay:.07s;animation-duration:.84s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.66s;-webkit-animation-duration:.68s;animation-delay:-.66s;animation-duration:.68s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-.76s;-webkit-animation-duration:.93s;animation-delay:-.76s;animation-duration:.93s}.la-ball-grid-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){-webkit-animation-delay:-.76s;-webkit-animation-duration:1.24s;animation-delay:-.76s;animation-duration:1.24s}.la-ball-grid-pulse.la-sm[_ngcontent-%COMP%]{height:18px;width:18px}.la-ball-grid-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:1px;width:4px}.la-ball-grid-pulse.la-2x[_ngcontent-%COMP%]{height:72px;width:72px}.la-ball-grid-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:4px;width:16px}.la-ball-grid-pulse.la-3x[_ngcontent-%COMP%]{height:108px;width:108px}.la-ball-grid-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin:6px;width:24px}@-webkit-keyframes ball-grid-pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.45)}to{opacity:1;transform:scale(1)}}@keyframes ball-grid-pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.45)}to{opacity:1;transform:scale(1)}}.la-ball-newton-cradle[_ngcontent-%COMP%], .la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-newton-cradle[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-newton-cradle.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-newton-cradle[_ngcontent-%COMP%]{height:10px;width:40px}.la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;height:10px;width:10px}.la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-newton-cradle-left 1s ease-out 0s infinite;animation:ball-newton-cradle-left 1s ease-out 0s infinite;transform:translateX(0)}.la-ball-newton-cradle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation:ball-newton-cradle-right 1s ease-out 0s infinite;animation:ball-newton-cradle-right 1s ease-out 0s infinite;transform:translateX(0)}.la-ball-newton-cradle.la-sm[_ngcontent-%COMP%]{height:4px;width:20px}.la-ball-newton-cradle.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-newton-cradle.la-2x[_ngcontent-%COMP%]{height:20px;width:80px}.la-ball-newton-cradle.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-newton-cradle.la-3x[_ngcontent-%COMP%]{height:30px;width:120px}.la-ball-newton-cradle.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;width:30px}@-webkit-keyframes ball-newton-cradle-left{25%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(-100%)}50%{transform:translateX(0)}}@keyframes ball-newton-cradle-left{25%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(-100%)}50%{transform:translateX(0)}}@-webkit-keyframes ball-newton-cradle-right{50%{transform:translateX(0)}75%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(100%)}to{transform:translateX(0)}}@keyframes ball-newton-cradle-right{50%{transform:translateX(0)}75%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(100%)}to{transform:translateX(0)}}.la-ball-pulse-rise[_ngcontent-%COMP%], .la-ball-pulse-rise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-pulse-rise[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-pulse-rise.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-pulse-rise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse-rise[_ngcontent-%COMP%]{height:14px;width:70px}.la-ball-pulse-rise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-pulse-rise-even 1s cubic-bezier(.15,.36,.9,.6) 0s infinite;animation:ball-pulse-rise-even 1s cubic-bezier(.15,.36,.9,.6) 0s infinite;border-radius:100%;height:10px;margin:2px;width:10px}.la-ball-pulse-rise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2n-1){-webkit-animation-name:ball-pulse-rise-odd;animation-name:ball-pulse-rise-odd}.la-ball-pulse-rise.la-sm[_ngcontent-%COMP%]{height:6px;width:34px}.la-ball-pulse-rise.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:1px;width:4px}.la-ball-pulse-rise.la-2x[_ngcontent-%COMP%]{height:28px;width:140px}.la-ball-pulse-rise.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:4px;width:20px}.la-ball-pulse-rise.la-3x[_ngcontent-%COMP%]{height:42px;width:210px}.la-ball-pulse-rise.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:6px;width:30px}@-webkit-keyframes ball-pulse-rise-even{0%{opacity:1;transform:scale(1.1)}25%{transform:translateY(-200%)}50%{opacity:.35;transform:scale(.3)}75%{transform:translateY(200%)}to{opacity:1;transform:translateY(0);transform:scale(1)}}@keyframes ball-pulse-rise-even{0%{opacity:1;transform:scale(1.1)}25%{transform:translateY(-200%)}50%{opacity:.35;transform:scale(.3)}75%{transform:translateY(200%)}to{opacity:1;transform:translateY(0);transform:scale(1)}}@-webkit-keyframes ball-pulse-rise-odd{0%{opacity:.35;transform:scale(.4)}25%{transform:translateY(200%)}50%{opacity:1;transform:scale(1.1)}75%{transform:translateY(-200%)}to{opacity:.35;transform:translateY(0);transform:scale(.75)}}@keyframes ball-pulse-rise-odd{0%{opacity:.35;transform:scale(.4)}25%{transform:translateY(200%)}50%{opacity:1;transform:scale(1.1)}75%{transform:translateY(-200%)}to{opacity:.35;transform:translateY(0);transform:scale(.75)}}.la-ball-pulse-sync[_ngcontent-%COMP%], .la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-pulse-sync[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-pulse-sync.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse-sync[_ngcontent-%COMP%]{height:18px;width:54px}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-pulse-sync .6s ease-in-out infinite;animation:ball-pulse-sync .6s ease-in-out infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.14s;animation-delay:-.14s}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.07s;animation-delay:-.07s}.la-ball-pulse-sync[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:0s;animation-delay:0s}.la-ball-pulse-sync.la-sm[_ngcontent-%COMP%]{height:8px;width:26px}.la-ball-pulse-sync.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:2px;width:4px}.la-ball-pulse-sync.la-2x[_ngcontent-%COMP%]{height:36px;width:108px}.la-ball-pulse-sync.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:8px;width:20px}.la-ball-pulse-sync.la-3x[_ngcontent-%COMP%]{height:54px;width:162px}.la-ball-pulse-sync.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-pulse-sync{33%{transform:translateY(100%)}66%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes ball-pulse-sync{33%{transform:translateY(100%)}66%{transform:translateY(-100%)}to{transform:translateY(0)}}.la-ball-pulse[_ngcontent-%COMP%], .la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-pulse[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-pulse.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse[_ngcontent-%COMP%]{height:18px;width:54px}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.2s;animation-delay:-.2s}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.1s;animation-delay:-.1s}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-pulse 1s ease infinite;animation:ball-pulse 1s ease infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-pulse.la-sm[_ngcontent-%COMP%]{height:8px;width:26px}.la-ball-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin:2px;width:4px}.la-ball-pulse.la-2x[_ngcontent-%COMP%]{height:36px;width:108px}.la-ball-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin:8px;width:20px}.la-ball-pulse.la-3x[_ngcontent-%COMP%]{height:54px;width:162px}.la-ball-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-pulse{0%,60%,to{opacity:1;transform:scale(1)}30%{opacity:.1;transform:scale(.01)}}@keyframes ball-pulse{0%,60%,to{opacity:1;transform:scale(1)}30%{opacity:.1;transform:scale(.01)}}.la-ball-rotate[_ngcontent-%COMP%], .la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-rotate[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-rotate.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-rotate[_ngcontent-%COMP%], .la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:10px;width:10px}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-rotate-animation 1s cubic-bezier(.7,-.13,.22,.86) infinite;animation:ball-rotate-animation 1s cubic-bezier(.7,-.13,.22,.86) infinite;border-radius:100%}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{background:currentColor;border-radius:inherit;content:\"\";height:inherit;margin:inherit;opacity:.8;position:absolute;width:inherit}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{left:-150%;top:0}.la-ball-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{left:150%;top:0}.la-ball-rotate.la-sm[_ngcontent-%COMP%], .la-ball-rotate.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-rotate.la-2x[_ngcontent-%COMP%], .la-ball-rotate.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-rotate.la-3x[_ngcontent-%COMP%], .la-ball-rotate.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;width:30px}@-webkit-keyframes ball-rotate-animation{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}@keyframes ball-rotate-animation{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.la-ball-running-dots[_ngcontent-%COMP%], .la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-running-dots[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-running-dots.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-running-dots[_ngcontent-%COMP%]{height:10px;width:10px}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-running-dots-animate 2s linear infinite;animation:ball-running-dots-animate 2s linear infinite;border-radius:100%;height:10px;margin-left:-25px;position:absolute;width:10px}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:0s;animation-delay:0s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.6s;animation-delay:-1.6s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-2s;animation-delay:-2s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-2.4s;animation-delay:-2.4s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2.8s;animation-delay:-2.8s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(9){-webkit-animation-delay:-3.2s;animation-delay:-3.2s}.la-ball-running-dots[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(10){-webkit-animation-delay:-3.6s;animation-delay:-3.6s}.la-ball-running-dots.la-sm[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-running-dots.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-12px;width:4px}.la-ball-running-dots.la-2x[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-running-dots.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-50px;width:20px}.la-ball-running-dots.la-3x[_ngcontent-%COMP%]{height:30px;width:30px}.la-ball-running-dots.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-75px;width:30px}@-webkit-keyframes ball-running-dots-animate{0%,to{height:100%;transform:translateY(0) translateX(500%);width:100%}80%{transform:translateY(0) translateX(0)}85%{height:100%;transform:translateY(-125%) translateX(0);width:100%}90%{height:75%;width:200%}95%{height:100%;transform:translateY(-100%) translateX(500%);width:100%}}@keyframes ball-running-dots-animate{0%,to{height:100%;transform:translateY(0) translateX(500%);width:100%}80%{transform:translateY(0) translateX(0)}85%{height:100%;transform:translateY(-125%) translateX(0);width:100%}90%{height:75%;width:200%}95%{height:100%;transform:translateY(-100%) translateX(500%);width:100%}}.la-ball-scale-multiple[_ngcontent-%COMP%], .la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale-multiple[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale-multiple.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-multiple[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale-multiple 1s linear 0s infinite;animation:ball-scale-multiple 1s linear 0s infinite;border-radius:100%;height:32px;left:0;opacity:0;position:absolute;top:0;width:32px}.la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.la-ball-scale-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.la-ball-scale-multiple.la-sm[_ngcontent-%COMP%], .la-ball-scale-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale-multiple.la-2x[_ngcontent-%COMP%], .la-ball-scale-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale-multiple.la-3x[_ngcontent-%COMP%], .la-ball-scale-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes ball-scale-multiple{0%{opacity:0;transform:scale(0)}5%{opacity:.75}to{opacity:0;transform:scale(1)}}@keyframes ball-scale-multiple{0%{opacity:0;transform:scale(0)}5%{opacity:.75}to{opacity:0;transform:scale(1)}}.la-ball-scale-pulse[_ngcontent-%COMP%], .la-ball-scale-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale-pulse[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale-pulse.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-pulse[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale-pulse 2s ease-in-out infinite;animation:ball-scale-pulse 2s ease-in-out infinite;border-radius:100%;height:32px;left:0;opacity:.5;position:absolute;top:0;width:32px}.la-ball-scale-pulse[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation-delay:-1s;animation-delay:-1s}.la-ball-scale-pulse.la-sm[_ngcontent-%COMP%], .la-ball-scale-pulse.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale-pulse.la-2x[_ngcontent-%COMP%], .la-ball-scale-pulse.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale-pulse.la-3x[_ngcontent-%COMP%], .la-ball-scale-pulse.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes ball-scale-pulse{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes ball-scale-pulse{0%,to{transform:scale(0)}50%{transform:scale(1)}}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%], .la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale-ripple-multiple.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale-ripple-multiple 1.25s cubic-bezier(.21,.53,.56,.8) 0s infinite;animation:ball-scale-ripple-multiple 1.25s cubic-bezier(.21,.53,.56,.8) 0s infinite;background:transparent;border-radius:100%;border-width:2px;height:32px;left:0;opacity:0;position:absolute;top:0;width:32px}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:0s;animation-delay:0s}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:.25s;animation-delay:.25s}.la-ball-scale-ripple-multiple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:.5s;animation-delay:.5s}.la-ball-scale-ripple-multiple.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale-ripple-multiple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px;height:16px;width:16px}.la-ball-scale-ripple-multiple.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale-ripple-multiple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px;height:64px;width:64px}.la-ball-scale-ripple-multiple.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-scale-ripple-multiple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-scale-ripple-multiple{0%{opacity:1;transform:scale(.1)}70%{opacity:.5;transform:scale(1)}95%{opacity:0}}@keyframes ball-scale-ripple-multiple{0%{opacity:1;transform:scale(.1)}70%{opacity:.5;transform:scale(1)}95%{opacity:0}}.la-ball-scale-ripple[_ngcontent-%COMP%], .la-ball-scale-ripple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale-ripple[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale-ripple.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale-ripple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-ripple[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale-ripple[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale-ripple 1s cubic-bezier(.21,.53,.56,.8) 0s infinite;animation:ball-scale-ripple 1s cubic-bezier(.21,.53,.56,.8) 0s infinite;background:transparent;border-radius:100%;border-width:2px;height:32px;opacity:0;width:32px}.la-ball-scale-ripple.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale-ripple.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px;height:16px;width:16px}.la-ball-scale-ripple.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale-ripple.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px;height:64px;width:64px}.la-ball-scale-ripple.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-scale-ripple.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-scale-ripple{0%{opacity:1;transform:scale(.1)}70%{opacity:.65;transform:scale(1)}to{opacity:0}}@keyframes ball-scale-ripple{0%{opacity:1;transform:scale(.1)}70%{opacity:.65;transform:scale(1)}to{opacity:0}}.la-ball-scale[_ngcontent-%COMP%], .la-ball-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-scale[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-scale.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale[_ngcontent-%COMP%], .la-ball-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-scale 1s ease-in-out 0s infinite;animation:ball-scale 1s ease-in-out 0s infinite;border-radius:100%;opacity:0}.la-ball-scale.la-sm[_ngcontent-%COMP%], .la-ball-scale.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-scale.la-2x[_ngcontent-%COMP%], .la-ball-scale.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-scale.la-3x[_ngcontent-%COMP%], .la-ball-scale.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes ball-scale{0%{opacity:1;transform:scale(0)}to{opacity:0;transform:scale(1)}}@keyframes ball-scale{0%{opacity:1;transform:scale(0)}to{opacity:0;transform:scale(1)}}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%], .la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise-fade-rotating.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%]{-webkit-animation:ball-spin-clockwise-fade-rotating-rotate 6s linear infinite;animation:ball-spin-clockwise-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-clockwise-fade-rotating 1s linear infinite;animation:ball-spin-clockwise-fade-rotating 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise-fade-rotating.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-clockwise-fade-rotating.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise-fade-rotating.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-clockwise-fade-rotating.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise-fade-rotating.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-clockwise-fade-rotating.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@keyframes ball-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@-webkit-keyframes ball-spin-clockwise-fade-rotating{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes ball-spin-clockwise-fade-rotating{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%], .la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise-fade.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-clockwise-fade 1s linear infinite;animation:ball-spin-clockwise-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise-fade.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-clockwise-fade.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise-fade.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-clockwise-fade.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise-fade.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-clockwise-fade.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise-fade{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes ball-spin-clockwise-fade{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.la-ball-spin-clockwise[_ngcontent-%COMP%], .la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-clockwise[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-clockwise 1s ease-in-out infinite;animation:ball-spin-clockwise 1s ease-in-out infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-clockwise.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-clockwise.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-clockwise.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}@keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}.la-ball-spin-fade-rotating[_ngcontent-%COMP%], .la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-fade-rotating[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-fade-rotating.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-fade-rotating[_ngcontent-%COMP%]{-webkit-animation:ball-spin-fade-rotate 6s linear infinite;animation:ball-spin-fade-rotate 6s linear infinite;height:32px;width:32px}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-fade 1s linear infinite;animation:ball-spin-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-fade-rotating.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-fade-rotating.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-fade-rotating.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-fade-rotating.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-fade-rotating.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-fade-rotating.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-fade-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-fade-rotate{to{transform:rotate(1turn)}}.la-ball-spin-fade[_ngcontent-%COMP%], .la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-fade[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-fade.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-fade[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-fade 1s linear infinite;animation:ball-spin-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-fade.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-fade.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-fade.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-fade.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-fade.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin-fade.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-fade{0%,to{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.5)}}@keyframes ball-spin-fade{0%,to{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.5)}}.la-ball-spin-rotate[_ngcontent-%COMP%], .la-ball-spin-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin-rotate[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin-rotate.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-rotate[_ngcontent-%COMP%]{-webkit-animation:ball-spin-rotate 2s linear infinite;animation:ball-spin-rotate 2s linear infinite;height:32px;width:32px}.la-ball-spin-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin-bounce 2s ease-in-out infinite;animation:ball-spin-bounce 2s ease-in-out infinite;border-radius:100%;height:60%;position:absolute;top:0;width:60%}.la-ball-spin-rotate[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation-delay:-1s;animation-delay:-1s;bottom:0;top:auto}.la-ball-spin-rotate.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin-rotate.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin-rotate.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes ball-spin-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes ball-spin-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes ball-spin-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}.la-ball-spin[_ngcontent-%COMP%], .la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-spin 1s ease-in-out infinite;animation:ball-spin 1s ease-in-out infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-spin.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-spin.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-spin.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}@keyframes ball-spin{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}.la-ball-square-clockwise-spin[_ngcontent-%COMP%], .la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-square-clockwise-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-square-clockwise-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-square-clockwise-spin[_ngcontent-%COMP%]{height:26px;width:26px}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-square-clockwise-spin 1s ease-in-out infinite;animation:ball-square-clockwise-spin 1s ease-in-out infinite;border-radius:100%;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:0;top:0}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:50%;top:0}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:100%;top:0}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:100%;top:50%}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:100%;top:100%}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:50%;top:100%}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:0;top:100%}.la-ball-square-clockwise-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:0;top:50%}.la-ball-square-clockwise-spin.la-sm[_ngcontent-%COMP%]{height:12px;width:12px}.la-ball-square-clockwise-spin.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-ball-square-clockwise-spin.la-2x[_ngcontent-%COMP%]{height:52px;width:52px}.la-ball-square-clockwise-spin.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}.la-ball-square-clockwise-spin.la-3x[_ngcontent-%COMP%]{height:78px;width:78px}.la-ball-square-clockwise-spin.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:36px;margin-left:-18px;margin-top:-18px;width:36px}@-webkit-keyframes ball-square-clockwise-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}@keyframes ball-square-clockwise-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}.la-ball-square-spin[_ngcontent-%COMP%], .la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-square-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-square-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-square-spin[_ngcontent-%COMP%]{height:26px;width:26px}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:ball-square-spin 1s ease-in-out infinite;animation:ball-square-spin 1s ease-in-out infinite;border-radius:100%;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:0;top:0}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:50%;top:0}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:100%;top:0}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:100%;top:50%}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:100%;top:100%}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:50%;top:100%}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:0;top:100%}.la-ball-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:0;top:50%}.la-ball-square-spin.la-sm[_ngcontent-%COMP%]{height:12px;width:12px}.la-ball-square-spin.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-ball-square-spin.la-2x[_ngcontent-%COMP%]{height:52px;width:52px}.la-ball-square-spin.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;margin-left:-12px;margin-top:-12px;width:24px}.la-ball-square-spin.la-3x[_ngcontent-%COMP%]{height:78px;width:78px}.la-ball-square-spin.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:36px;margin-left:-18px;margin-top:-18px;width:36px}@-webkit-keyframes ball-square-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}@keyframes ball-square-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}.la-ball-triangle-path[_ngcontent-%COMP%], .la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-triangle-path[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-triangle-path.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-triangle-path[_ngcontent-%COMP%]{height:32px;width:32px}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;height:10px;left:0;position:absolute;top:0;width:10px}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-triangle-path-ball-one 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-one 2s ease-in-out 0s infinite}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation:ball-triangle-path-ball-two 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-two 2s ease-in-out 0s infinite}.la-ball-triangle-path[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation:ball-triangle-path-ball-tree 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-tree 2s ease-in-out 0s infinite}.la-ball-triangle-path.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-triangle-path.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;width:4px}.la-ball-triangle-path.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-triangle-path.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;width:20px}.la-ball-triangle-path.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-triangle-path.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;width:30px}@-webkit-keyframes ball-triangle-path-ball-one{0%{transform:translateY(220%)}17%{opacity:.25}33%{opacity:1;transform:translate(110%)}50%{opacity:.25}66%{opacity:1;transform:translate(220%,220%)}83%{opacity:.25}to{opacity:1;transform:translateY(220%)}}@keyframes ball-triangle-path-ball-one{0%{transform:translateY(220%)}17%{opacity:.25}33%{opacity:1;transform:translate(110%)}50%{opacity:.25}66%{opacity:1;transform:translate(220%,220%)}83%{opacity:.25}to{opacity:1;transform:translateY(220%)}}@-webkit-keyframes ball-triangle-path-ball-two{0%{transform:translate(110%)}17%{opacity:.25}33%{opacity:1;transform:translate(220%,220%)}50%{opacity:.25}66%{opacity:1;transform:translateY(220%)}83%{opacity:.25}to{opacity:1;transform:translate(110%)}}@keyframes ball-triangle-path-ball-two{0%{transform:translate(110%)}17%{opacity:.25}33%{opacity:1;transform:translate(220%,220%)}50%{opacity:.25}66%{opacity:1;transform:translateY(220%)}83%{opacity:.25}to{opacity:1;transform:translate(110%)}}@-webkit-keyframes ball-triangle-path-ball-tree{0%{transform:translate(220%,220%)}17%{opacity:.25}33%{opacity:1;transform:translateY(220%)}50%{opacity:.25}66%{opacity:1;transform:translate(110%)}83%{opacity:.25}to{opacity:1;transform:translate(220%,220%)}}@keyframes ball-triangle-path-ball-tree{0%{transform:translate(220%,220%)}17%{opacity:.25}33%{opacity:1;transform:translateY(220%)}50%{opacity:.25}66%{opacity:1;transform:translate(110%)}83%{opacity:.25}to{opacity:1;transform:translate(220%,220%)}}.la-ball-zig-zag-deflect[_ngcontent-%COMP%], .la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-zig-zag-deflect[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-zig-zag-deflect.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-zig-zag-deflect[_ngcontent-%COMP%]{height:32px;position:relative;width:32px}.la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;height:10px;left:50%;margin-left:-5px;margin-top:-5px;position:absolute;top:50%;width:10px}.la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-zig-deflect 1.5s linear 0s infinite;animation:ball-zig-deflect 1.5s linear 0s infinite}.la-ball-zig-zag-deflect[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation:ball-zag-deflect 1.5s linear 0s infinite;animation:ball-zag-deflect 1.5s linear 0s infinite}.la-ball-zig-zag-deflect.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-zig-zag-deflect.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-zig-zag-deflect.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-zig-zag-deflect.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-zig-zag-deflect.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-zig-zag-deflect.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-zig-deflect{17%{transform:translate(-80%,-160%)}34%{transform:translate(80%,-160%)}50%{transform:translate(0)}67%{transform:translate(80%,-160%)}84%{transform:translate(-80%,-160%)}to{transform:translate(0)}}@keyframes ball-zig-deflect{17%{transform:translate(-80%,-160%)}34%{transform:translate(80%,-160%)}50%{transform:translate(0)}67%{transform:translate(80%,-160%)}84%{transform:translate(-80%,-160%)}to{transform:translate(0)}}@-webkit-keyframes ball-zag-deflect{17%{transform:translate(80%,160%)}34%{transform:translate(-80%,160%)}50%{transform:translate(0)}67%{transform:translate(-80%,160%)}84%{transform:translate(80%,160%)}to{transform:translate(0)}}@keyframes ball-zag-deflect{17%{transform:translate(80%,160%)}34%{transform:translate(-80%,160%)}50%{transform:translate(0)}67%{transform:translate(-80%,160%)}84%{transform:translate(80%,160%)}to{transform:translate(0)}}.la-ball-zig-zag[_ngcontent-%COMP%], .la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-ball-zig-zag[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-ball-zig-zag.la-dark[_ngcontent-%COMP%]{color:#333}.la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-zig-zag[_ngcontent-%COMP%]{height:32px;position:relative;width:32px}.la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-radius:100%;height:10px;left:50%;margin-left:-5px;margin-top:-5px;position:absolute;top:50%;width:10px}.la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:ball-zig-effect .7s linear 0s infinite;animation:ball-zig-effect .7s linear 0s infinite}.la-ball-zig-zag[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation:ball-zag-effect .7s linear 0s infinite;animation:ball-zag-effect .7s linear 0s infinite}.la-ball-zig-zag.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-ball-zig-zag.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-zig-zag.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-ball-zig-zag.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-zig-zag.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-ball-zig-zag.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-zig-effect{0%{transform:translate(0)}33%{transform:translate(-75%,-150%)}66%{transform:translate(75%,-150%)}to{transform:translate(0)}}@keyframes ball-zig-effect{0%{transform:translate(0)}33%{transform:translate(-75%,-150%)}66%{transform:translate(75%,-150%)}to{transform:translate(0)}}@-webkit-keyframes ball-zag-effect{0%{transform:translate(0)}33%{transform:translate(75%,150%)}66%{transform:translate(-75%,150%)}to{transform:translate(0)}}@keyframes ball-zag-effect{0%{transform:translate(0)}33%{transform:translate(75%,150%)}66%{transform:translate(-75%,150%)}to{transform:translate(0)}}.la-cog[_ngcontent-%COMP%], .la-cog[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-cog[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-cog.la-dark[_ngcontent-%COMP%]{color:#333}.la-cog[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-cog[_ngcontent-%COMP%]{height:31px;width:31px}.la-cog[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:cog-rotate 4s linear infinite;animation:cog-rotate 4s linear infinite;background-color:transparent;border-radius:100%;border-style:dashed;border-width:2px;height:100%;width:100%}.la-cog[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{border:2px solid;border-radius:100%;content:\"\";height:100%;left:0;position:absolute;top:0;width:100%}.la-cog.la-sm[_ngcontent-%COMP%]{height:15px;width:15px}.la-cog.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .la-cog.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{border-width:1px}.la-cog.la-2x[_ngcontent-%COMP%]{height:61px;width:61px}.la-cog.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .la-cog.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{border-width:4px}.la-cog.la-3x[_ngcontent-%COMP%]{height:91px;width:91px}.la-cog.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .la-cog.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{border-width:6px}@-webkit-keyframes cog-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes cog-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.la-cube-transition[_ngcontent-%COMP%], .la-cube-transition[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-cube-transition[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-cube-transition.la-dark[_ngcontent-%COMP%]{color:#333}.la-cube-transition[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-cube-transition[_ngcontent-%COMP%]{height:32px;width:32px}.la-cube-transition[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:cube-transition 1.6s ease-in-out 0s infinite;animation:cube-transition 1.6s ease-in-out 0s infinite;border-radius:0;height:14px;left:0;margin-left:-7px;margin-top:-7px;position:absolute;top:0;width:14px}.la-cube-transition[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-cube-transition.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-cube-transition.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-cube-transition.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-cube-transition.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:28px;margin-left:-14px;margin-top:-14px;width:28px}.la-cube-transition.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-cube-transition.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:42px;margin-left:-21px;margin-top:-21px;width:42px}@-webkit-keyframes cube-transition{25%{left:100%;top:0;transform:scale(.5) rotate(-90deg)}50%{left:100%;top:100%;transform:scale(1) rotate(-180deg)}75%{left:0;top:100%;transform:scale(.5) rotate(-270deg)}to{left:0;top:0;transform:scale(1) rotate(-1turn)}}@keyframes cube-transition{25%{left:100%;top:0;transform:scale(.5) rotate(-90deg)}50%{left:100%;top:100%;transform:scale(1) rotate(-180deg)}75%{left:0;top:100%;transform:scale(.5) rotate(-270deg)}to{left:0;top:0;transform:scale(1) rotate(-1turn)}}.la-fire[_ngcontent-%COMP%], .la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-fire[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-fire.la-dark[_ngcontent-%COMP%]{color:#333}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-fire[_ngcontent-%COMP%]{height:32px;width:32px}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:fire-diamonds 1.5s linear infinite;animation:fire-diamonds 1.5s linear infinite;border-radius:0;border-radius:2px;bottom:0;height:12px;left:50%;position:absolute;transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);width:12px}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.85s;animation-delay:-.85s}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.85s;animation-delay:-1.85s}.la-fire[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-2.85s;animation-delay:-2.85s}.la-fire.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-fire.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:6px;width:6px}.la-fire.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-fire.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:24px;width:24px}.la-fire.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-fire.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:36px;width:36px}@-webkit-keyframes fire-diamonds{0%{transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}to{transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@keyframes fire-diamonds{0%{transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}to{transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}.la-line-scale-party[_ngcontent-%COMP%], .la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-scale-party[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-scale-party.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-party[_ngcontent-%COMP%]{height:32px;width:40px}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation-iteration-count:infinite;-webkit-animation-name:line-scale-party;animation-iteration-count:infinite;animation-name:line-scale-party;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.23s;-webkit-animation-duration:.43s;animation-delay:-.23s;animation-duration:.43s}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.32s;-webkit-animation-duration:.62s;animation-delay:-.32s;animation-duration:.62s}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.44s;-webkit-animation-duration:.43s;animation-delay:-.44s;animation-duration:.43s}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.31s;-webkit-animation-duration:.8s;animation-delay:-.31s;animation-duration:.8s}.la-line-scale-party[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.24s;-webkit-animation-duration:.74s;animation-delay:-.24s;animation-duration:.74s}.la-line-scale-party.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-line-scale-party.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:0 1px;width:2px}.la-line-scale-party.la-2x[_ngcontent-%COMP%]{height:64px;width:80px}.la-line-scale-party.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;margin:0 4px;width:8px}.la-line-scale-party.la-3x[_ngcontent-%COMP%]{height:96px;width:120px}.la-line-scale-party.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-party{0%{transform:scaleY(1)}50%{transform:scaleY(.3)}to{transform:scaleY(1)}}@keyframes line-scale-party{0%{transform:scaleY(1)}50%{transform:scaleY(.3)}to{transform:scaleY(1)}}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%], .la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-scale-pulse-out-rapid.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%]{height:32px;width:40px}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-scale-pulse-out-rapid .9s cubic-bezier(.11,.49,.38,.78) infinite;animation:line-scale-pulse-out-rapid .9s cubic-bezier(.11,.49,.38,.78) infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2), .la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.65s;animation-delay:-.65s}.la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-line-scale-pulse-out-rapid[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.4s;animation-delay:-.4s}.la-line-scale-pulse-out-rapid.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-line-scale-pulse-out-rapid.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:0 1px;width:2px}.la-line-scale-pulse-out-rapid.la-2x[_ngcontent-%COMP%]{height:64px;width:80px}.la-line-scale-pulse-out-rapid.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;margin:0 4px;width:8px}.la-line-scale-pulse-out-rapid.la-3x[_ngcontent-%COMP%]{height:96px;width:120px}.la-line-scale-pulse-out-rapid.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-pulse-out-rapid{0%{transform:scaley(1)}80%{transform:scaley(.3)}90%{transform:scaley(1)}}@keyframes line-scale-pulse-out-rapid{0%{transform:scaley(1)}80%{transform:scaley(.3)}90%{transform:scaley(1)}}.la-line-scale-pulse-out[_ngcontent-%COMP%], .la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-scale-pulse-out[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-scale-pulse-out.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-pulse-out[_ngcontent-%COMP%]{height:32px;width:40px}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-scale-pulse-out .9s cubic-bezier(.85,.25,.37,.85) infinite;animation:line-scale-pulse-out .9s cubic-bezier(.85,.25,.37,.85) infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2), .la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.7s;animation-delay:-.7s}.la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-line-scale-pulse-out[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-line-scale-pulse-out.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-line-scale-pulse-out.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:0 1px;width:2px}.la-line-scale-pulse-out.la-2x[_ngcontent-%COMP%]{height:64px;width:80px}.la-line-scale-pulse-out.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;margin:0 4px;width:8px}.la-line-scale-pulse-out.la-3x[_ngcontent-%COMP%]{height:96px;width:120px}.la-line-scale-pulse-out.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-pulse-out{0%{transform:scaley(1)}50%{transform:scaley(.3)}to{transform:scaley(1)}}@keyframes line-scale-pulse-out{0%{transform:scaley(1)}50%{transform:scaley(.3)}to{transform:scaley(1)}}.la-line-scale[_ngcontent-%COMP%], .la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-scale[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-scale.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale[_ngcontent-%COMP%]{height:32px;width:40px}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-scale 1.2s ease infinite;animation:line-scale 1.2s ease infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1s;animation-delay:-1s}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-line-scale.la-sm[_ngcontent-%COMP%]{height:16px;width:20px}.la-line-scale.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;margin:0 1px;width:2px}.la-line-scale.la-2x[_ngcontent-%COMP%]{height:64px;width:80px}.la-line-scale.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;margin:0 4px;width:8px}.la-line-scale.la-3x[_ngcontent-%COMP%]{height:96px;width:120px}.la-line-scale.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}@keyframes line-scale{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%], .la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-spin-clockwise-fade-rotating.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%]{-webkit-animation:line-spin-clockwise-fade-rotating-rotate 6s linear infinite;animation:line-spin-clockwise-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-spin-clockwise-fade-rotating 1s ease-in-out infinite;animation:line-spin-clockwise-fade-rotating 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-clockwise-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-clockwise-fade-rotating.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-line-spin-clockwise-fade-rotating.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-clockwise-fade-rotating.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-line-spin-clockwise-fade-rotating.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-clockwise-fade-rotating.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-line-spin-clockwise-fade-rotating.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@keyframes line-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@-webkit-keyframes line-spin-clockwise-fade-rotating{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-clockwise-fade-rotating{50%{opacity:.2}to{opacity:1}}.la-line-spin-clockwise-fade[_ngcontent-%COMP%], .la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-spin-clockwise-fade[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-spin-clockwise-fade.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-clockwise-fade[_ngcontent-%COMP%]{height:32px;width:32px}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-spin-clockwise-fade 1s ease-in-out infinite;animation:line-spin-clockwise-fade 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-clockwise-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-clockwise-fade.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-line-spin-clockwise-fade.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-clockwise-fade.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-line-spin-clockwise-fade.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-clockwise-fade.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-line-spin-clockwise-fade.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-clockwise-fade{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-clockwise-fade{50%{opacity:.2}to{opacity:1}}.la-line-spin-fade-rotating[_ngcontent-%COMP%], .la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-spin-fade-rotating[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-spin-fade-rotating.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-fade-rotating[_ngcontent-%COMP%]{-webkit-animation:ball-spin-fade-rotating-rotate 6s linear infinite;animation:ball-spin-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-spin-fade-rotating 1s ease-in-out infinite;animation:line-spin-fade-rotating 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-fade-rotating[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-fade-rotating.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-line-spin-fade-rotating.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-fade-rotating.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-line-spin-fade-rotating.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-fade-rotating.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-line-spin-fade-rotating.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes ball-spin-fade-rotating-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-fade-rotating-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes line-spin-fade-rotating{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-fade-rotating{50%{opacity:.2}to{opacity:1}}.la-line-spin-fade[_ngcontent-%COMP%], .la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-line-spin-fade[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-line-spin-fade.la-dark[_ngcontent-%COMP%]{color:#333}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-fade[_ngcontent-%COMP%]{height:32px;width:32px}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:line-spin-fade 1s ease-in-out infinite;animation:line-spin-fade 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-fade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-fade.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-line-spin-fade.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-fade.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-line-spin-fade.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-fade.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-line-spin-fade.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-fade{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-fade{50%{opacity:.2}to{opacity:1}}.la-pacman[_ngcontent-%COMP%], .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-pacman[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-pacman.la-dark[_ngcontent-%COMP%]{color:#333}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-pacman[_ngcontent-%COMP%]{height:32px;width:32px}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation:pacman-rotate-half-up .5s 0s infinite;animation:pacman-rotate-half-up .5s 0s infinite;background:transparent;border-radius:100%;border-right:solid transparent;border-style:solid;border-width:16px;height:0;position:absolute;width:0}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation-name:pacman-rotate-half-down;animation-name:pacman-rotate-half-down;top:0}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3), .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4), .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5), .la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation:pacman-balls 2s linear 0s infinite;animation:pacman-balls 2s linear 0s infinite;border-radius:100%;height:8px;left:200%;opacity:0;position:absolute;top:50%;width:8px}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3){-webkit-animation-delay:-1.44s;animation-delay:-1.44s}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4){-webkit-animation-delay:-1.94s;animation-delay:-1.94s}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5){-webkit-animation-delay:-2.44s;animation-delay:-2.44s}.la-pacman[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){-webkit-animation-delay:-2.94s;animation-delay:-2.94s}.la-pacman.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){border-width:8px;position:absolute}.la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:0}.la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3), .la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4), .la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5), .la-pacman.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){height:4px;width:4px}.la-pacman.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){border-width:32px;position:absolute}.la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:0}.la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3), .la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4), .la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5), .la-pacman.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){height:16px;width:16px}.la-pacman.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){border-width:48px;position:absolute}.la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){top:0}.la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(3), .la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(4), .la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(5), .la-pacman.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(6){height:24px;width:24px}@-webkit-keyframes pacman-rotate-half-up{0%,to{transform:rotate(270deg)}50%{transform:rotate(1turn)}}@keyframes pacman-rotate-half-up{0%,to{transform:rotate(270deg)}50%{transform:rotate(1turn)}}@-webkit-keyframes pacman-rotate-half-down{0%,to{transform:rotate(90deg)}50%{transform:rotate(0deg)}}@keyframes pacman-rotate-half-down{0%,to{transform:rotate(90deg)}50%{transform:rotate(0deg)}}@-webkit-keyframes pacman-balls{0%{left:200%;opacity:0;transform:translateY(-50%)}5%{opacity:.5}66%{opacity:1}67%{opacity:0}to{left:0;transform:translateY(-50%)}}@keyframes pacman-balls{0%{left:200%;opacity:0;transform:translateY(-50%)}5%{opacity:.5}66%{opacity:1}67%{opacity:0}to{left:0;transform:translateY(-50%)}}.la-square-jelly-box[_ngcontent-%COMP%], .la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-square-jelly-box[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-square-jelly-box.la-dark[_ngcontent-%COMP%]{color:#333}.la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-jelly-box[_ngcontent-%COMP%]{height:32px;width:32px}.la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child, .la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){left:0;position:absolute;width:100%}.la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{-webkit-animation:square-jelly-box-animate .6s linear -.1s infinite;animation:square-jelly-box-animate .6s linear -.1s infinite;border-radius:10%;height:100%;top:-25%;z-index:1}.la-square-jelly-box[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:nth-child(2){-webkit-animation:square-jelly-box-shadow .6s linear -.1s infinite;animation:square-jelly-box-shadow .6s linear -.1s infinite;background:#000;border-radius:50%;bottom:-9%;height:10%;opacity:.2}.la-square-jelly-box.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-square-jelly-box.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-square-jelly-box.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes square-jelly-box-animate{17%{border-bottom-right-radius:10%}25%{transform:translateY(25%) rotate(22.5deg)}50%{border-bottom-right-radius:100%;transform:translateY(50%) scaleY(.9) rotate(45deg)}75%{transform:translateY(25%) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes square-jelly-box-animate{17%{border-bottom-right-radius:10%}25%{transform:translateY(25%) rotate(22.5deg)}50%{border-bottom-right-radius:100%;transform:translateY(50%) scaleY(.9) rotate(45deg)}75%{transform:translateY(25%) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@-webkit-keyframes square-jelly-box-shadow{50%{transform:scaleX(1.25)}}@keyframes square-jelly-box-shadow{50%{transform:scaleX(1.25)}}.la-square-loader[_ngcontent-%COMP%], .la-square-loader[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-square-loader[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-square-loader.la-dark[_ngcontent-%COMP%]{color:#333}.la-square-loader[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-loader[_ngcontent-%COMP%]{height:32px;width:32px}.la-square-loader[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:square-loader 2s ease infinite;animation:square-loader 2s ease infinite;background:transparent;border-radius:0;border-width:2px;height:100%;width:100%}.la-square-loader[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{-webkit-animation:square-loader-inner 2s ease-in infinite;animation:square-loader-inner 2s ease-in infinite;background-color:currentColor;content:\"\";display:inline-block;vertical-align:top;width:100%}.la-square-loader.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-square-loader.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px}.la-square-loader.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-square-loader.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px}.la-square-loader.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}.la-square-loader.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px}@-webkit-keyframes square-loader{0%{transform:rotate(0deg)}25%{transform:rotate(180deg)}50%{transform:rotate(180deg)}75%{transform:rotate(1turn)}to{transform:rotate(1turn)}}@keyframes square-loader{0%{transform:rotate(0deg)}25%{transform:rotate(180deg)}50%{transform:rotate(180deg)}75%{transform:rotate(1turn)}to{transform:rotate(1turn)}}@-webkit-keyframes square-loader-inner{0%{height:0}25%{height:0}50%{height:100%}75%{height:100%}to{height:0}}@keyframes square-loader-inner{0%{height:0}25%{height:0}50%{height:100%}75%{height:100%}to{height:0}}.la-square-spin[_ngcontent-%COMP%], .la-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-square-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-square-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-spin[_ngcontent-%COMP%]{height:32px;width:32px}.la-square-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:square-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;animation:square-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;border-radius:0;height:100%;width:100%}.la-square-spin.la-sm[_ngcontent-%COMP%]{height:16px;width:16px}.la-square-spin.la-2x[_ngcontent-%COMP%]{height:64px;width:64px}.la-square-spin.la-3x[_ngcontent-%COMP%]{height:96px;width:96px}@-webkit-keyframes square-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}@keyframes square-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}.la-timer[_ngcontent-%COMP%], .la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-timer[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-timer.la-dark[_ngcontent-%COMP%]{color:#333}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-timer[_ngcontent-%COMP%], .la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:32px;width:32px}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:transparent;border-radius:100%;border-width:2px}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{-webkit-animation:timer-loader 1.25s linear infinite;-webkit-animation-delay:-625ms;animation:timer-loader 1.25s linear infinite;animation-delay:-625ms;background:currentColor;border-radius:2px;content:\"\";display:block;left:14px;margin-left:-1px;margin-top:-1px;position:absolute;top:14px;transform-origin:1px 1px 0;width:2px}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{height:12px}.la-timer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{-webkit-animation-delay:-7.5s;-webkit-animation-duration:15s;animation-delay:-7.5s;animation-duration:15s;height:8px}.la-timer.la-sm[_ngcontent-%COMP%], .la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:16px;width:16px}.la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:1px}.la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{border-radius:1px;left:7px;margin-left:-.5px;margin-top:-.5px;top:7px;transform-origin:.5px .5px 0;width:1px}.la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{height:6px}.la-timer.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{height:4px}.la-timer.la-2x[_ngcontent-%COMP%], .la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:64px;width:64px}.la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:4px}.la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{border-radius:4px;left:28px;margin-left:-2px;margin-top:-2px;top:28px;transform-origin:2px 2px 0;width:4px}.la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{height:24px}.la-timer.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{height:16px}.la-timer.la-3x[_ngcontent-%COMP%], .la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:96px;width:96px}.la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:6px}.la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after, .la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{border-radius:6px;left:42px;margin-left:-3px;margin-top:-3px;top:42px;transform-origin:3px 3px 0;width:6px}.la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:before{height:36px}.la-timer.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:after{height:24px}@-webkit-keyframes timer-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes timer-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.la-triangle-skew-spin[_ngcontent-%COMP%], .la-triangle-skew-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{box-sizing:border-box;position:relative}.la-triangle-skew-spin[_ngcontent-%COMP%]{color:#fff;display:block;font-size:0}.la-triangle-skew-spin.la-dark[_ngcontent-%COMP%]{color:#333}.la-triangle-skew-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-triangle-skew-spin[_ngcontent-%COMP%]{height:16px;width:32px}.la-triangle-skew-spin[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{-webkit-animation:triangle-skew-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;animation:triangle-skew-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;background:transparent;border-color:currentcolor transparent;border-left:none;border-right:none;border-style:solid;border-width:0 16px 16px;height:0;width:0}.la-triangle-skew-spin.la-sm[_ngcontent-%COMP%]{height:8px;width:16px}.la-triangle-skew-spin.la-sm[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:0 8px 8px}.la-triangle-skew-spin.la-2x[_ngcontent-%COMP%]{height:32px;width:64px}.la-triangle-skew-spin.la-2x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:0 32px 32px}.la-triangle-skew-spin.la-3x[_ngcontent-%COMP%]{height:48px;width:96px}.la-triangle-skew-spin.la-3x[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{border-width:0 48px 48px}@-webkit-keyframes triangle-skew-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}@keyframes triangle-skew-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}.overlay[_ngcontent-%COMP%]{height:100%;left:0;position:fixed;top:0;width:100%}.overlay[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(.loading-text){left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.loading-text[_ngcontent-%COMP%]{left:50%;position:absolute;top:60%;transform:translate(-50%,-60%)}"], data: { animation: [
  26721. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["trigger"])('fadeIn', [
  26722. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["state"])('in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["style"])({ opacity: 1 })),
  26723. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["transition"])(':enter', [
  26724. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["style"])({ opacity: 0 }),
  26725. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["animate"])(300)
  26726. ]),
  26727. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["transition"])(':leave', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["animate"])(200, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["style"])({ opacity: 0 })))
  26728. ])
  26729. ] }, changeDetection: 0 });
  26730. NgxSpinnerComponent.ctorParameters = () => [
  26731. { type: NgxSpinnerService },
  26732. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  26733. ];
  26734. NgxSpinnerComponent.propDecorators = {
  26735. bdColor: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  26736. size: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  26737. color: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  26738. type: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  26739. fullScreen: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  26740. name: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  26741. zIndex: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  26742. template: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  26743. };
  26744. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgxSpinnerComponent, [{
  26745. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  26746. args: [{
  26747. selector: 'ngx-spinner',
  26748. template: "<div [@fadeIn]=\"'in'\" *ngIf=\"spinner.show\" class=\"overlay\" [style.background-color]=\"spinner.bdColor\"\n [style.z-index]=\"spinner.zIndex\" [style.position]=\"spinner.fullScreen ? 'fixed' : 'absolute'\">\n <div *ngIf=\"!template\" [class]=\"spinner.class\" [style.color]=\"spinner.color\">\n <div *ngFor=\"let index of spinner.divArray\"></div>\n </div>\n <div *ngIf=\"template\" [innerHTML]=\"template | safeHtml\"></div>\n <div class=\"loading-text\" [style.z-index]=\"spinner.zIndex\">\n <ng-content></ng-content>\n </div>\n</div>",
  26749. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  26750. animations: [
  26751. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["trigger"])('fadeIn', [
  26752. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["state"])('in', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["style"])({ opacity: 1 })),
  26753. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["transition"])(':enter', [
  26754. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["style"])({ opacity: 0 }),
  26755. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["animate"])(300)
  26756. ]),
  26757. Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["transition"])(':leave', Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["animate"])(200, Object(_angular_animations__WEBPACK_IMPORTED_MODULE_3__["style"])({ opacity: 0 })))
  26758. ])
  26759. ],
  26760. styles: ["/*!\n * Load Awesome v1.1.0 (http://github.danielcardoso.net/load-awesome/)\n * Copyright 2015 Daniel Cardoso <@DanielCardoso>\n * Licensed under MIT\n */.la-ball-8bits,.la-ball-8bits>div{box-sizing:border-box;position:relative}.la-ball-8bits{color:#fff;display:block;font-size:0}.la-ball-8bits.la-dark{color:#333}.la-ball-8bits>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-8bits{height:12px;width:12px}.la-ball-8bits>div{-webkit-animation:ball-8bits 1s ease 0s infinite;animation:ball-8bits 1s ease 0s infinite;border-radius:0;height:4px;left:50%;opacity:0;position:absolute;top:50%;transform:translate(100%,100%);width:4px}.la-ball-8bits>div:first-child{-webkit-animation-delay:-.9375s;animation-delay:-.9375s}.la-ball-8bits>div:nth-child(2){-webkit-animation-delay:-.875s;animation-delay:-.875s}.la-ball-8bits>div:nth-child(3){-webkit-animation-delay:-.8125s;animation-delay:-.8125s}.la-ball-8bits>div:nth-child(4){-webkit-animation-delay:-.75s;animation-delay:-.75s}.la-ball-8bits>div:nth-child(5){-webkit-animation-delay:-.6875s;animation-delay:-.6875s}.la-ball-8bits>div:nth-child(6){-webkit-animation-delay:-.625s;animation-delay:-.625s}.la-ball-8bits>div:nth-child(7){-webkit-animation-delay:-.5625s;animation-delay:-.5625s}.la-ball-8bits>div:nth-child(8){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-ball-8bits>div:nth-child(9){-webkit-animation-delay:-.4375s;animation-delay:-.4375s}.la-ball-8bits>div:nth-child(10){-webkit-animation-delay:-.375s;animation-delay:-.375s}.la-ball-8bits>div:nth-child(11){-webkit-animation-delay:-.3125s;animation-delay:-.3125s}.la-ball-8bits>div:nth-child(12){-webkit-animation-delay:-.25s;animation-delay:-.25s}.la-ball-8bits>div:nth-child(13){-webkit-animation-delay:-.1875s;animation-delay:-.1875s}.la-ball-8bits>div:nth-child(14){-webkit-animation-delay:-.125s;animation-delay:-.125s}.la-ball-8bits>div:nth-child(15){-webkit-animation-delay:-.0625s;animation-delay:-.0625s}.la-ball-8bits>div:nth-child(16){-webkit-animation-delay:0s;animation-delay:0s}.la-ball-8bits>div:first-child{left:0;top:-100%}.la-ball-8bits>div:nth-child(2){left:33.3333333333%;top:-100%}.la-ball-8bits>div:nth-child(3){left:66.6666666667%;top:-66.6666666667%}.la-ball-8bits>div:nth-child(4){left:100%;top:-33.3333333333%}.la-ball-8bits>div:nth-child(5){left:100%;top:0}.la-ball-8bits>div:nth-child(6){left:100%;top:33.3333333333%}.la-ball-8bits>div:nth-child(7){left:66.6666666667%;top:66.6666666667%}.la-ball-8bits>div:nth-child(8){left:33.3333333333%;top:100%}.la-ball-8bits>div:nth-child(9){left:0;top:100%}.la-ball-8bits>div:nth-child(10){left:-33.3333333333%;top:100%}.la-ball-8bits>div:nth-child(11){left:-66.6666666667%;top:66.6666666667%}.la-ball-8bits>div:nth-child(12){left:-100%;top:33.3333333333%}.la-ball-8bits>div:nth-child(13){left:-100%;top:0}.la-ball-8bits>div:nth-child(14){left:-100%;top:-33.3333333333%}.la-ball-8bits>div:nth-child(15){left:-66.6666666667%;top:-66.6666666667%}.la-ball-8bits>div:nth-child(16){left:-33.3333333333%;top:-100%}.la-ball-8bits.la-sm{height:6px;width:6px}.la-ball-8bits.la-sm>div{height:2px;width:2px}.la-ball-8bits.la-2x{height:24px;width:24px}.la-ball-8bits.la-2x>div{height:8px;width:8px}.la-ball-8bits.la-3x{height:36px;width:36px}.la-ball-8bits.la-3x>div{height:12px;width:12px}@-webkit-keyframes ball-8bits{0%{opacity:1}50%{opacity:1}51%{opacity:0}}@keyframes ball-8bits{0%{opacity:1}50%{opacity:1}51%{opacity:0}}.la-ball-atom,.la-ball-atom>div{box-sizing:border-box;position:relative}.la-ball-atom{color:#fff;display:block;font-size:0}.la-ball-atom.la-dark{color:#333}.la-ball-atom>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-atom{height:32px;width:32px}.la-ball-atom>div:first-child{-webkit-animation:ball-atom-shrink 4.5s linear infinite;animation:ball-atom-shrink 4.5s linear infinite;background:#aaa;border-radius:100%;height:60%;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:60%;z-index:1}.la-ball-atom>div:not(:first-child){-webkit-animation:ball-atom-zindex 1.5s steps(2) 0s infinite;animation:ball-atom-zindex 1.5s steps(2) 0s infinite;background:none;height:100%;left:0;position:absolute;width:100%;z-index:0}.la-ball-atom>div:not(:first-child):before{-webkit-animation:ball-atom-position 1.5s ease 0s infinite,ball-atom-size 1.5s ease 0s infinite;animation:ball-atom-position 1.5s ease 0s infinite,ball-atom-size 1.5s ease 0s infinite;background:currentColor;border-radius:50%;content:\"\";height:10px;left:0;margin-left:-5px;margin-top:-5px;opacity:.75;position:absolute;top:0;width:10px}.la-ball-atom>div:nth-child(2){-webkit-animation-delay:.75s;animation-delay:.75s}.la-ball-atom>div:nth-child(2):before{-webkit-animation-delay:0s,-1.125s;animation-delay:0s,-1.125s}.la-ball-atom>div:nth-child(3){-webkit-animation-delay:-.25s;animation-delay:-.25s;transform:rotate(120deg)}.la-ball-atom>div:nth-child(3):before{-webkit-animation-delay:-1s,-.75s;animation-delay:-1s,-.75s}.la-ball-atom>div:nth-child(4){-webkit-animation-delay:.25s;animation-delay:.25s;transform:rotate(240deg)}.la-ball-atom>div:nth-child(4):before{-webkit-animation-delay:-.5s,-.125s;animation-delay:-.5s,-.125s}.la-ball-atom.la-sm{height:16px;width:16px}.la-ball-atom.la-sm>div:not(:first-child):before{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-atom.la-2x{height:64px;width:64px}.la-ball-atom.la-2x>div:not(:first-child):before{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-atom.la-3x{height:96px;width:96px}.la-ball-atom.la-3x>div:not(:first-child):before{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-atom-position{50%{left:100%;top:100%}}@keyframes ball-atom-position{50%{left:100%;top:100%}}@-webkit-keyframes ball-atom-size{50%{transform:scale(.5)}}@keyframes ball-atom-size{50%{transform:scale(.5)}}@-webkit-keyframes ball-atom-zindex{50%{z-index:10}}@keyframes ball-atom-zindex{50%{z-index:10}}@-webkit-keyframes ball-atom-shrink{50%{transform:translate(-50%,-50%) scale(.8)}}@keyframes ball-atom-shrink{50%{transform:translate(-50%,-50%) scale(.8)}}.la-ball-beat,.la-ball-beat>div{box-sizing:border-box;position:relative}.la-ball-beat{color:#fff;display:block;font-size:0}.la-ball-beat.la-dark{color:#333}.la-ball-beat>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-beat{height:18px;width:54px}.la-ball-beat>div{-webkit-animation:ball-beat .7s linear -.15s infinite;animation:ball-beat .7s linear -.15s infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-beat>div:nth-child(2n-1){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-ball-beat.la-sm{height:8px;width:26px}.la-ball-beat.la-sm>div{height:4px;margin:2px;width:4px}.la-ball-beat.la-2x{height:36px;width:108px}.la-ball-beat.la-2x>div{height:20px;margin:8px;width:20px}.la-ball-beat.la-3x{height:54px;width:162px}.la-ball-beat.la-3x>div{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-beat{50%{opacity:.2;transform:scale(.75)}to{opacity:1;transform:scale(1)}}@keyframes ball-beat{50%{opacity:.2;transform:scale(.75)}to{opacity:1;transform:scale(1)}}.la-ball-circus,.la-ball-circus>div{box-sizing:border-box;position:relative}.la-ball-circus{color:#fff;display:block;font-size:0}.la-ball-circus.la-dark{color:#333}.la-ball-circus>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-circus{height:16px;width:16px}.la-ball-circus>div{-webkit-animation:ball-circus-position 2.5s cubic-bezier(.25,0,.75,1) infinite,ball-circus-size 2.5s cubic-bezier(.25,0,.75,1) infinite;animation:ball-circus-position 2.5s cubic-bezier(.25,0,.75,1) infinite,ball-circus-size 2.5s cubic-bezier(.25,0,.75,1) infinite;border-radius:100%;display:block;height:16px;height:100%;left:-100%;opacity:.5;position:absolute;top:0;width:16px;width:100%}.la-ball-circus>div:first-child{-webkit-animation-delay:0s,-.5s;animation-delay:0s,-.5s}.la-ball-circus>div:nth-child(2){-webkit-animation-delay:-.5s,-1s;animation-delay:-.5s,-1s}.la-ball-circus>div:nth-child(3){-webkit-animation-delay:-1s,-1.5s;animation-delay:-1s,-1.5s}.la-ball-circus>div:nth-child(4){-webkit-animation-delay:-1.5s,-2s;animation-delay:-1.5s,-2s}.la-ball-circus>div:nth-child(5){-webkit-animation-delay:-2s,-2.5s;animation-delay:-2s,-2.5s}.la-ball-circus.la-sm,.la-ball-circus.la-sm>div{height:8px;width:8px}.la-ball-circus.la-2x,.la-ball-circus.la-2x>div{height:32px;width:32px}.la-ball-circus.la-3x,.la-ball-circus.la-3x>div{height:48px;width:48px}@-webkit-keyframes ball-circus-position{50%{left:100%}}@keyframes ball-circus-position{50%{left:100%}}@-webkit-keyframes ball-circus-size{50%{transform:scale(.3)}}@keyframes ball-circus-size{50%{transform:scale(.3)}}.la-ball-climbing-dot,.la-ball-climbing-dot>div{box-sizing:border-box;position:relative}.la-ball-climbing-dot{color:#fff;display:block;font-size:0}.la-ball-climbing-dot.la-dark{color:#333}.la-ball-climbing-dot>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-climbing-dot{height:32px;width:42px}.la-ball-climbing-dot>div:first-child{-webkit-animation:ball-climbing-dot-jump .6s ease-in-out infinite;animation:ball-climbing-dot-jump .6s ease-in-out infinite;border-radius:100%;bottom:32%;height:14px;left:18%;position:absolute;transform-origin:center bottom;width:14px}.la-ball-climbing-dot>div:not(:first-child){-webkit-animation:ball-climbing-dot-steps 1.8s linear infinite;animation:ball-climbing-dot-steps 1.8s linear infinite;border-radius:0;height:2px;position:absolute;right:0;top:0;transform:translate(60%);width:14px}.la-ball-climbing-dot>div:not(:first-child):nth-child(2){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-climbing-dot>div:not(:first-child):nth-child(3){-webkit-animation-delay:-.6s;animation-delay:-.6s}.la-ball-climbing-dot>div:not(:first-child):nth-child(4){-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-ball-climbing-dot.la-sm{height:16px;width:20px}.la-ball-climbing-dot.la-sm>div:first-child{height:6px;width:6px}.la-ball-climbing-dot.la-sm>div:not(:first-child){height:1px;width:6px}.la-ball-climbing-dot.la-2x{height:64px;width:84px}.la-ball-climbing-dot.la-2x>div:first-child{height:28px;width:28px}.la-ball-climbing-dot.la-2x>div:not(:first-child){height:4px;width:28px}.la-ball-climbing-dot.la-3x{height:96px;width:126px}.la-ball-climbing-dot.la-3x>div:first-child{height:42px;width:42px}.la-ball-climbing-dot.la-3x>div:not(:first-child){height:6px;width:42px}@-webkit-keyframes ball-climbing-dot-jump{0%{transform:scaleY(.7)}20%{transform:scale(.7,1.2)}40%{transform:scale(1)}50%{bottom:125%}46%{transform:scale(1)}80%{transform:scale(.7,1.2)}90%{transform:scale(.7,1.2)}to{transform:scaleY(.7)}}@keyframes ball-climbing-dot-jump{0%{transform:scaleY(.7)}20%{transform:scale(.7,1.2)}40%{transform:scale(1)}50%{bottom:125%}46%{transform:scale(1)}80%{transform:scale(.7,1.2)}90%{transform:scale(.7,1.2)}to{transform:scaleY(.7)}}@-webkit-keyframes ball-climbing-dot-steps{0%{opacity:0;right:0;top:0}50%{opacity:1}to{opacity:0;right:100%;top:100%}}@keyframes ball-climbing-dot-steps{0%{opacity:0;right:0;top:0}50%{opacity:1}to{opacity:0;right:100%;top:100%}}.la-ball-clip-rotate-multiple,.la-ball-clip-rotate-multiple>div{box-sizing:border-box;position:relative}.la-ball-clip-rotate-multiple{color:#fff;display:block;font-size:0}.la-ball-clip-rotate-multiple.la-dark{color:#333}.la-ball-clip-rotate-multiple>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate-multiple{height:32px;width:32px}.la-ball-clip-rotate-multiple>div{-webkit-animation:ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;animation:ball-clip-rotate-multiple-rotate 1s ease-in-out infinite;background:transparent;border-radius:100%;border-style:solid;border-width:2px;left:50%;position:absolute;top:50%}.la-ball-clip-rotate-multiple>div:first-child{border-left-color:transparent;border-right-color:transparent;height:32px;position:absolute;width:32px}.la-ball-clip-rotate-multiple>div:last-child{-webkit-animation-direction:reverse;-webkit-animation-duration:.5s;animation-direction:reverse;animation-duration:.5s;border-bottom-color:transparent;border-top-color:transparent;height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm{height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm>div{border-width:1px}.la-ball-clip-rotate-multiple.la-sm>div:first-child{height:16px;width:16px}.la-ball-clip-rotate-multiple.la-sm>div:last-child{height:8px;width:8px}.la-ball-clip-rotate-multiple.la-2x{height:64px;width:64px}.la-ball-clip-rotate-multiple.la-2x>div{border-width:4px}.la-ball-clip-rotate-multiple.la-2x>div:first-child{height:64px;width:64px}.la-ball-clip-rotate-multiple.la-2x>div:last-child{height:32px;width:32px}.la-ball-clip-rotate-multiple.la-3x{height:96px;width:96px}.la-ball-clip-rotate-multiple.la-3x>div{border-width:6px}.la-ball-clip-rotate-multiple.la-3x>div:first-child{height:96px;width:96px}.la-ball-clip-rotate-multiple.la-3x>div:last-child{height:48px;width:48px}@-webkit-keyframes ball-clip-rotate-multiple-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@keyframes ball-clip-rotate-multiple-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.la-ball-clip-rotate-pulse,.la-ball-clip-rotate-pulse>div{box-sizing:border-box;position:relative}.la-ball-clip-rotate-pulse{color:#fff;display:block;font-size:0}.la-ball-clip-rotate-pulse.la-dark{color:#333}.la-ball-clip-rotate-pulse>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate-pulse{height:32px;width:32px}.la-ball-clip-rotate-pulse>div{border-radius:100%;left:50%;position:absolute;top:50%}.la-ball-clip-rotate-pulse>div:first-child{-webkit-animation:ball-clip-rotate-pulse-rotate 1s cubic-bezier(.09,.57,.49,.9) infinite;animation:ball-clip-rotate-pulse-rotate 1s cubic-bezier(.09,.57,.49,.9) infinite;background:transparent;border-bottom-style:solid;border-bottom-width:2px;border-left:2px solid transparent;border-right:2px solid transparent;border-top-style:solid;border-top-width:2px;height:32px;position:absolute;width:32px}.la-ball-clip-rotate-pulse>div:last-child{-webkit-animation:ball-clip-rotate-pulse-scale 1s cubic-bezier(.09,.57,.49,.9) infinite;animation:ball-clip-rotate-pulse-scale 1s cubic-bezier(.09,.57,.49,.9) infinite;height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm{height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm>div:first-child{border-width:1px;height:16px;width:16px}.la-ball-clip-rotate-pulse.la-sm>div:last-child{height:8px;width:8px}.la-ball-clip-rotate-pulse.la-2x{height:64px;width:64px}.la-ball-clip-rotate-pulse.la-2x>div:first-child{border-width:4px;height:64px;width:64px}.la-ball-clip-rotate-pulse.la-2x>div:last-child{height:32px;width:32px}.la-ball-clip-rotate-pulse.la-3x{height:96px;width:96px}.la-ball-clip-rotate-pulse.la-3x>div:first-child{border-width:6px;height:96px;width:96px}.la-ball-clip-rotate-pulse.la-3x>div:last-child{height:48px;width:48px}@-webkit-keyframes ball-clip-rotate-pulse-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@keyframes ball-clip-rotate-pulse-rotate{0%{transform:translate(-50%,-50%) rotate(0deg)}50%{transform:translate(-50%,-50%) rotate(180deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}@-webkit-keyframes ball-clip-rotate-pulse-scale{0%,to{opacity:1;transform:translate(-50%,-50%) scale(1)}30%{opacity:.3;transform:translate(-50%,-50%) scale(.15)}}@keyframes ball-clip-rotate-pulse-scale{0%,to{opacity:1;transform:translate(-50%,-50%) scale(1)}30%{opacity:.3;transform:translate(-50%,-50%) scale(.15)}}.la-ball-clip-rotate,.la-ball-clip-rotate>div{box-sizing:border-box;position:relative}.la-ball-clip-rotate{color:#fff;display:block;font-size:0}.la-ball-clip-rotate.la-dark{color:#333}.la-ball-clip-rotate>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-clip-rotate{height:32px;width:32px}.la-ball-clip-rotate>div{-webkit-animation:ball-clip-rotate .75s linear infinite;animation:ball-clip-rotate .75s linear infinite;background:transparent;border-bottom-color:transparent;border-radius:100%;border-width:2px;height:32px;width:32px}.la-ball-clip-rotate.la-sm{height:16px;width:16px}.la-ball-clip-rotate.la-sm>div{border-width:1px;height:16px;width:16px}.la-ball-clip-rotate.la-2x{height:64px;width:64px}.la-ball-clip-rotate.la-2x>div{border-width:4px;height:64px;width:64px}.la-ball-clip-rotate.la-3x{height:96px;width:96px}.la-ball-clip-rotate.la-3x>div{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-clip-rotate{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}@keyframes ball-clip-rotate{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.la-ball-elastic-dots,.la-ball-elastic-dots>div{box-sizing:border-box;position:relative}.la-ball-elastic-dots{color:#fff;display:block}.la-ball-elastic-dots.la-dark{color:#333}.la-ball-elastic-dots>div{background-color:currentColor;border:0 solid;float:none}.la-ball-elastic-dots{font-size:0;height:10px;text-align:center;width:120px}.la-ball-elastic-dots>div{-webkit-animation:ball-elastic-dots-anim 1s infinite;animation:ball-elastic-dots-anim 1s infinite;border-radius:100%;display:inline-block;height:10px;white-space:nowrap;width:10px}.la-ball-elastic-dots.la-sm{height:4px;width:60px}.la-ball-elastic-dots.la-sm>div{height:4px;width:4px}.la-ball-elastic-dots.la-2x{height:20px;width:240px}.la-ball-elastic-dots.la-2x>div{height:20px;width:20px}.la-ball-elastic-dots.la-3x{height:30px;width:360px}.la-ball-elastic-dots.la-3x>div{height:30px;width:30px}@-webkit-keyframes ball-elastic-dots-anim{0%,to{margin:0;transform:scale(1)}50%{margin:0 5%;transform:scale(.65)}}@keyframes ball-elastic-dots-anim{0%,to{margin:0;transform:scale(1)}50%{margin:0 5%;transform:scale(.65)}}.la-ball-fall,.la-ball-fall>div{box-sizing:border-box;position:relative}.la-ball-fall{color:#fff;display:block;font-size:0}.la-ball-fall.la-dark{color:#333}.la-ball-fall>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-fall{height:18px;width:54px}.la-ball-fall>div{-webkit-animation:ball-fall 1s ease-in-out infinite;animation:ball-fall 1s ease-in-out infinite;border-radius:100%;height:10px;margin:4px;opacity:0;width:10px}.la-ball-fall>div:first-child{-webkit-animation-delay:-.2s;animation-delay:-.2s}.la-ball-fall>div:nth-child(2){-webkit-animation-delay:-.1s;animation-delay:-.1s}.la-ball-fall>div:nth-child(3){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-fall.la-sm{height:8px;width:26px}.la-ball-fall.la-sm>div{height:4px;margin:2px;width:4px}.la-ball-fall.la-2x{height:36px;width:108px}.la-ball-fall.la-2x>div{height:20px;margin:8px;width:20px}.la-ball-fall.la-3x{height:54px;width:162px}.la-ball-fall.la-3x>div{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-fall{0%{opacity:0;transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(0)}90%{opacity:.5}to{opacity:0;transform:translateY(145%)}}@keyframes ball-fall{0%{opacity:0;transform:translateY(-145%)}10%{opacity:.5}20%{opacity:1;transform:translateY(0)}80%{opacity:1;transform:translateY(0)}90%{opacity:.5}to{opacity:0;transform:translateY(145%)}}.la-ball-fussion,.la-ball-fussion>div{box-sizing:border-box;position:relative}.la-ball-fussion{color:#fff;display:block;font-size:0}.la-ball-fussion.la-dark{color:#333}.la-ball-fussion>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-fussion{height:8px;width:8px}.la-ball-fussion>div{-webkit-animation:ball-fussion-ball1 1s ease 0s infinite;animation:ball-fussion-ball1 1s ease 0s infinite;border-radius:100%;height:12px;position:absolute;transform:translate(-50%,-50%);width:12px}.la-ball-fussion>div:first-child{left:50%;top:0;z-index:1}.la-ball-fussion>div:nth-child(2){-webkit-animation-name:ball-fussion-ball2;animation-name:ball-fussion-ball2;left:100%;top:50%;z-index:2}.la-ball-fussion>div:nth-child(3){-webkit-animation-name:ball-fussion-ball3;animation-name:ball-fussion-ball3;left:50%;top:100%;z-index:1}.la-ball-fussion>div:nth-child(4){-webkit-animation-name:ball-fussion-ball4;animation-name:ball-fussion-ball4;left:0;top:50%;z-index:2}.la-ball-fussion.la-sm{height:4px;width:4px}.la-ball-fussion.la-sm>div{height:6px;width:6px}.la-ball-fussion.la-2x{height:16px;width:16px}.la-ball-fussion.la-2x>div,.la-ball-fussion.la-3x{height:24px;width:24px}.la-ball-fussion.la-3x>div{height:36px;width:36px}@-webkit-keyframes ball-fussion-ball1{0%{opacity:.35}50%{left:200%;opacity:1;top:-100%}to{left:100%;opacity:.35;top:50%;z-index:2}}@keyframes ball-fussion-ball1{0%{opacity:.35}50%{left:200%;opacity:1;top:-100%}to{left:100%;opacity:.35;top:50%;z-index:2}}@-webkit-keyframes ball-fussion-ball2{0%{opacity:.35}50%{left:200%;opacity:1;top:200%}to{left:50%;opacity:.35;top:100%;z-index:1}}@keyframes ball-fussion-ball2{0%{opacity:.35}50%{left:200%;opacity:1;top:200%}to{left:50%;opacity:.35;top:100%;z-index:1}}@-webkit-keyframes ball-fussion-ball3{0%{opacity:.35}50%{left:-100%;opacity:1;top:200%}to{left:0;opacity:.35;top:50%;z-index:2}}@keyframes ball-fussion-ball3{0%{opacity:.35}50%{left:-100%;opacity:1;top:200%}to{left:0;opacity:.35;top:50%;z-index:2}}@-webkit-keyframes ball-fussion-ball4{0%{opacity:.35}50%{left:-100%;opacity:1;top:-100%}to{left:50%;opacity:.35;top:0;z-index:1}}@keyframes ball-fussion-ball4{0%{opacity:.35}50%{left:-100%;opacity:1;top:-100%}to{left:50%;opacity:.35;top:0;z-index:1}}.la-ball-grid-beat,.la-ball-grid-beat>div{box-sizing:border-box;position:relative}.la-ball-grid-beat{color:#fff;display:block;font-size:0}.la-ball-grid-beat.la-dark{color:#333}.la-ball-grid-beat>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-grid-beat{height:36px;width:36px}.la-ball-grid-beat>div{-webkit-animation-iteration-count:infinite;-webkit-animation-name:ball-grid-beat;animation-iteration-count:infinite;animation-name:ball-grid-beat;border-radius:100%;height:8px;margin:2px;width:8px}.la-ball-grid-beat>div:first-child{-webkit-animation-delay:.03s;-webkit-animation-duration:.65s;animation-delay:.03s;animation-duration:.65s}.la-ball-grid-beat>div:nth-child(2){-webkit-animation-delay:.09s;-webkit-animation-duration:1.02s;animation-delay:.09s;animation-duration:1.02s}.la-ball-grid-beat>div:nth-child(3){-webkit-animation-delay:-.69s;-webkit-animation-duration:1.06s;animation-delay:-.69s;animation-duration:1.06s}.la-ball-grid-beat>div:nth-child(4){-webkit-animation-delay:-.41s;-webkit-animation-duration:1.5s;animation-delay:-.41s;animation-duration:1.5s}.la-ball-grid-beat>div:nth-child(5){-webkit-animation-delay:.04s;-webkit-animation-duration:1.6s;animation-delay:.04s;animation-duration:1.6s}.la-ball-grid-beat>div:nth-child(6){-webkit-animation-delay:.07s;-webkit-animation-duration:.84s;animation-delay:.07s;animation-duration:.84s}.la-ball-grid-beat>div:nth-child(7){-webkit-animation-delay:-.66s;-webkit-animation-duration:.68s;animation-delay:-.66s;animation-duration:.68s}.la-ball-grid-beat>div:nth-child(8){-webkit-animation-delay:-.76s;-webkit-animation-duration:.93s;animation-delay:-.76s;animation-duration:.93s}.la-ball-grid-beat>div:nth-child(9){-webkit-animation-delay:-.76s;-webkit-animation-duration:1.24s;animation-delay:-.76s;animation-duration:1.24s}.la-ball-grid-beat.la-sm{height:18px;width:18px}.la-ball-grid-beat.la-sm>div{height:4px;margin:1px;width:4px}.la-ball-grid-beat.la-2x{height:72px;width:72px}.la-ball-grid-beat.la-2x>div{height:16px;margin:4px;width:16px}.la-ball-grid-beat.la-3x{height:108px;width:108px}.la-ball-grid-beat.la-3x>div{height:24px;margin:6px;width:24px}@-webkit-keyframes ball-grid-beat{0%{opacity:1}50%{opacity:.35}to{opacity:1}}@keyframes ball-grid-beat{0%{opacity:1}50%{opacity:.35}to{opacity:1}}.la-ball-grid-pulse,.la-ball-grid-pulse>div{box-sizing:border-box;position:relative}.la-ball-grid-pulse{color:#fff;display:block;font-size:0}.la-ball-grid-pulse.la-dark{color:#333}.la-ball-grid-pulse>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-grid-pulse{height:36px;width:36px}.la-ball-grid-pulse>div{-webkit-animation-iteration-count:infinite;-webkit-animation-name:ball-grid-pulse;animation-iteration-count:infinite;animation-name:ball-grid-pulse;border-radius:100%;height:8px;margin:2px;width:8px}.la-ball-grid-pulse>div:first-child{-webkit-animation-delay:.03s;-webkit-animation-duration:.65s;animation-delay:.03s;animation-duration:.65s}.la-ball-grid-pulse>div:nth-child(2){-webkit-animation-delay:.09s;-webkit-animation-duration:1.02s;animation-delay:.09s;animation-duration:1.02s}.la-ball-grid-pulse>div:nth-child(3){-webkit-animation-delay:-.69s;-webkit-animation-duration:1.06s;animation-delay:-.69s;animation-duration:1.06s}.la-ball-grid-pulse>div:nth-child(4){-webkit-animation-delay:-.41s;-webkit-animation-duration:1.5s;animation-delay:-.41s;animation-duration:1.5s}.la-ball-grid-pulse>div:nth-child(5){-webkit-animation-delay:.04s;-webkit-animation-duration:1.6s;animation-delay:.04s;animation-duration:1.6s}.la-ball-grid-pulse>div:nth-child(6){-webkit-animation-delay:.07s;-webkit-animation-duration:.84s;animation-delay:.07s;animation-duration:.84s}.la-ball-grid-pulse>div:nth-child(7){-webkit-animation-delay:-.66s;-webkit-animation-duration:.68s;animation-delay:-.66s;animation-duration:.68s}.la-ball-grid-pulse>div:nth-child(8){-webkit-animation-delay:-.76s;-webkit-animation-duration:.93s;animation-delay:-.76s;animation-duration:.93s}.la-ball-grid-pulse>div:nth-child(9){-webkit-animation-delay:-.76s;-webkit-animation-duration:1.24s;animation-delay:-.76s;animation-duration:1.24s}.la-ball-grid-pulse.la-sm{height:18px;width:18px}.la-ball-grid-pulse.la-sm>div{height:4px;margin:1px;width:4px}.la-ball-grid-pulse.la-2x{height:72px;width:72px}.la-ball-grid-pulse.la-2x>div{height:16px;margin:4px;width:16px}.la-ball-grid-pulse.la-3x{height:108px;width:108px}.la-ball-grid-pulse.la-3x>div{height:24px;margin:6px;width:24px}@-webkit-keyframes ball-grid-pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.45)}to{opacity:1;transform:scale(1)}}@keyframes ball-grid-pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.45)}to{opacity:1;transform:scale(1)}}.la-ball-newton-cradle,.la-ball-newton-cradle>div{box-sizing:border-box;position:relative}.la-ball-newton-cradle{color:#fff;display:block;font-size:0}.la-ball-newton-cradle.la-dark{color:#333}.la-ball-newton-cradle>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-newton-cradle{height:10px;width:40px}.la-ball-newton-cradle>div{border-radius:100%;height:10px;width:10px}.la-ball-newton-cradle>div:first-child{-webkit-animation:ball-newton-cradle-left 1s ease-out 0s infinite;animation:ball-newton-cradle-left 1s ease-out 0s infinite;transform:translateX(0)}.la-ball-newton-cradle>div:last-child{-webkit-animation:ball-newton-cradle-right 1s ease-out 0s infinite;animation:ball-newton-cradle-right 1s ease-out 0s infinite;transform:translateX(0)}.la-ball-newton-cradle.la-sm{height:4px;width:20px}.la-ball-newton-cradle.la-sm>div{height:4px;width:4px}.la-ball-newton-cradle.la-2x{height:20px;width:80px}.la-ball-newton-cradle.la-2x>div{height:20px;width:20px}.la-ball-newton-cradle.la-3x{height:30px;width:120px}.la-ball-newton-cradle.la-3x>div{height:30px;width:30px}@-webkit-keyframes ball-newton-cradle-left{25%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(-100%)}50%{transform:translateX(0)}}@keyframes ball-newton-cradle-left{25%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(-100%)}50%{transform:translateX(0)}}@-webkit-keyframes ball-newton-cradle-right{50%{transform:translateX(0)}75%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(100%)}to{transform:translateX(0)}}@keyframes ball-newton-cradle-right{50%{transform:translateX(0)}75%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;transform:translateX(100%)}to{transform:translateX(0)}}.la-ball-pulse-rise,.la-ball-pulse-rise>div{box-sizing:border-box;position:relative}.la-ball-pulse-rise{color:#fff;display:block;font-size:0}.la-ball-pulse-rise.la-dark{color:#333}.la-ball-pulse-rise>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse-rise{height:14px;width:70px}.la-ball-pulse-rise>div{-webkit-animation:ball-pulse-rise-even 1s cubic-bezier(.15,.36,.9,.6) 0s infinite;animation:ball-pulse-rise-even 1s cubic-bezier(.15,.36,.9,.6) 0s infinite;border-radius:100%;height:10px;margin:2px;width:10px}.la-ball-pulse-rise>div:nth-child(2n-1){-webkit-animation-name:ball-pulse-rise-odd;animation-name:ball-pulse-rise-odd}.la-ball-pulse-rise.la-sm{height:6px;width:34px}.la-ball-pulse-rise.la-sm>div{height:4px;margin:1px;width:4px}.la-ball-pulse-rise.la-2x{height:28px;width:140px}.la-ball-pulse-rise.la-2x>div{height:20px;margin:4px;width:20px}.la-ball-pulse-rise.la-3x{height:42px;width:210px}.la-ball-pulse-rise.la-3x>div{height:30px;margin:6px;width:30px}@-webkit-keyframes ball-pulse-rise-even{0%{opacity:1;transform:scale(1.1)}25%{transform:translateY(-200%)}50%{opacity:.35;transform:scale(.3)}75%{transform:translateY(200%)}to{opacity:1;transform:translateY(0);transform:scale(1)}}@keyframes ball-pulse-rise-even{0%{opacity:1;transform:scale(1.1)}25%{transform:translateY(-200%)}50%{opacity:.35;transform:scale(.3)}75%{transform:translateY(200%)}to{opacity:1;transform:translateY(0);transform:scale(1)}}@-webkit-keyframes ball-pulse-rise-odd{0%{opacity:.35;transform:scale(.4)}25%{transform:translateY(200%)}50%{opacity:1;transform:scale(1.1)}75%{transform:translateY(-200%)}to{opacity:.35;transform:translateY(0);transform:scale(.75)}}@keyframes ball-pulse-rise-odd{0%{opacity:.35;transform:scale(.4)}25%{transform:translateY(200%)}50%{opacity:1;transform:scale(1.1)}75%{transform:translateY(-200%)}to{opacity:.35;transform:translateY(0);transform:scale(.75)}}.la-ball-pulse-sync,.la-ball-pulse-sync>div{box-sizing:border-box;position:relative}.la-ball-pulse-sync{color:#fff;display:block;font-size:0}.la-ball-pulse-sync.la-dark{color:#333}.la-ball-pulse-sync>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse-sync{height:18px;width:54px}.la-ball-pulse-sync>div{-webkit-animation:ball-pulse-sync .6s ease-in-out infinite;animation:ball-pulse-sync .6s ease-in-out infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-pulse-sync>div:first-child{-webkit-animation-delay:-.14s;animation-delay:-.14s}.la-ball-pulse-sync>div:nth-child(2){-webkit-animation-delay:-.07s;animation-delay:-.07s}.la-ball-pulse-sync>div:nth-child(3){-webkit-animation-delay:0s;animation-delay:0s}.la-ball-pulse-sync.la-sm{height:8px;width:26px}.la-ball-pulse-sync.la-sm>div{height:4px;margin:2px;width:4px}.la-ball-pulse-sync.la-2x{height:36px;width:108px}.la-ball-pulse-sync.la-2x>div{height:20px;margin:8px;width:20px}.la-ball-pulse-sync.la-3x{height:54px;width:162px}.la-ball-pulse-sync.la-3x>div{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-pulse-sync{33%{transform:translateY(100%)}66%{transform:translateY(-100%)}to{transform:translateY(0)}}@keyframes ball-pulse-sync{33%{transform:translateY(100%)}66%{transform:translateY(-100%)}to{transform:translateY(0)}}.la-ball-pulse,.la-ball-pulse>div{box-sizing:border-box;position:relative}.la-ball-pulse{color:#fff;display:block;font-size:0}.la-ball-pulse.la-dark{color:#333}.la-ball-pulse>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-pulse{height:18px;width:54px}.la-ball-pulse>div:first-child{-webkit-animation-delay:-.2s;animation-delay:-.2s}.la-ball-pulse>div:nth-child(2){-webkit-animation-delay:-.1s;animation-delay:-.1s}.la-ball-pulse>div:nth-child(3){-webkit-animation-delay:0ms;animation-delay:0ms}.la-ball-pulse>div{-webkit-animation:ball-pulse 1s ease infinite;animation:ball-pulse 1s ease infinite;border-radius:100%;height:10px;margin:4px;width:10px}.la-ball-pulse.la-sm{height:8px;width:26px}.la-ball-pulse.la-sm>div{height:4px;margin:2px;width:4px}.la-ball-pulse.la-2x{height:36px;width:108px}.la-ball-pulse.la-2x>div{height:20px;margin:8px;width:20px}.la-ball-pulse.la-3x{height:54px;width:162px}.la-ball-pulse.la-3x>div{height:30px;margin:12px;width:30px}@-webkit-keyframes ball-pulse{0%,60%,to{opacity:1;transform:scale(1)}30%{opacity:.1;transform:scale(.01)}}@keyframes ball-pulse{0%,60%,to{opacity:1;transform:scale(1)}30%{opacity:.1;transform:scale(.01)}}.la-ball-rotate,.la-ball-rotate>div{box-sizing:border-box;position:relative}.la-ball-rotate{color:#fff;display:block;font-size:0}.la-ball-rotate.la-dark{color:#333}.la-ball-rotate>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-rotate,.la-ball-rotate>div{height:10px;width:10px}.la-ball-rotate>div{-webkit-animation:ball-rotate-animation 1s cubic-bezier(.7,-.13,.22,.86) infinite;animation:ball-rotate-animation 1s cubic-bezier(.7,-.13,.22,.86) infinite;border-radius:100%}.la-ball-rotate>div:after,.la-ball-rotate>div:before{background:currentColor;border-radius:inherit;content:\"\";height:inherit;margin:inherit;opacity:.8;position:absolute;width:inherit}.la-ball-rotate>div:before{left:-150%;top:0}.la-ball-rotate>div:after{left:150%;top:0}.la-ball-rotate.la-sm,.la-ball-rotate.la-sm>div{height:4px;width:4px}.la-ball-rotate.la-2x,.la-ball-rotate.la-2x>div{height:20px;width:20px}.la-ball-rotate.la-3x,.la-ball-rotate.la-3x>div{height:30px;width:30px}@-webkit-keyframes ball-rotate-animation{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}@keyframes ball-rotate-animation{0%{transform:rotate(0deg)}50%{transform:rotate(180deg)}to{transform:rotate(1turn)}}.la-ball-running-dots,.la-ball-running-dots>div{box-sizing:border-box;position:relative}.la-ball-running-dots{color:#fff;display:block;font-size:0}.la-ball-running-dots.la-dark{color:#333}.la-ball-running-dots>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-running-dots{height:10px;width:10px}.la-ball-running-dots>div{-webkit-animation:ball-running-dots-animate 2s linear infinite;animation:ball-running-dots-animate 2s linear infinite;border-radius:100%;height:10px;margin-left:-25px;position:absolute;width:10px}.la-ball-running-dots>div:first-child{-webkit-animation-delay:0s;animation-delay:0s}.la-ball-running-dots>div:nth-child(2){-webkit-animation-delay:-.4s;animation-delay:-.4s}.la-ball-running-dots>div:nth-child(3){-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-ball-running-dots>div:nth-child(4){-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-ball-running-dots>div:nth-child(5){-webkit-animation-delay:-1.6s;animation-delay:-1.6s}.la-ball-running-dots>div:nth-child(6){-webkit-animation-delay:-2s;animation-delay:-2s}.la-ball-running-dots>div:nth-child(7){-webkit-animation-delay:-2.4s;animation-delay:-2.4s}.la-ball-running-dots>div:nth-child(8){-webkit-animation-delay:-2.8s;animation-delay:-2.8s}.la-ball-running-dots>div:nth-child(9){-webkit-animation-delay:-3.2s;animation-delay:-3.2s}.la-ball-running-dots>div:nth-child(10){-webkit-animation-delay:-3.6s;animation-delay:-3.6s}.la-ball-running-dots.la-sm{height:4px;width:4px}.la-ball-running-dots.la-sm>div{height:4px;margin-left:-12px;width:4px}.la-ball-running-dots.la-2x{height:20px;width:20px}.la-ball-running-dots.la-2x>div{height:20px;margin-left:-50px;width:20px}.la-ball-running-dots.la-3x{height:30px;width:30px}.la-ball-running-dots.la-3x>div{height:30px;margin-left:-75px;width:30px}@-webkit-keyframes ball-running-dots-animate{0%,to{height:100%;transform:translateY(0) translateX(500%);width:100%}80%{transform:translateY(0) translateX(0)}85%{height:100%;transform:translateY(-125%) translateX(0);width:100%}90%{height:75%;width:200%}95%{height:100%;transform:translateY(-100%) translateX(500%);width:100%}}@keyframes ball-running-dots-animate{0%,to{height:100%;transform:translateY(0) translateX(500%);width:100%}80%{transform:translateY(0) translateX(0)}85%{height:100%;transform:translateY(-125%) translateX(0);width:100%}90%{height:75%;width:200%}95%{height:100%;transform:translateY(-100%) translateX(500%);width:100%}}.la-ball-scale-multiple,.la-ball-scale-multiple>div{box-sizing:border-box;position:relative}.la-ball-scale-multiple{color:#fff;display:block;font-size:0}.la-ball-scale-multiple.la-dark{color:#333}.la-ball-scale-multiple>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-multiple{height:32px;width:32px}.la-ball-scale-multiple>div{-webkit-animation:ball-scale-multiple 1s linear 0s infinite;animation:ball-scale-multiple 1s linear 0s infinite;border-radius:100%;height:32px;left:0;opacity:0;position:absolute;top:0;width:32px}.la-ball-scale-multiple>div:nth-child(2){-webkit-animation-delay:.2s;animation-delay:.2s}.la-ball-scale-multiple>div:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.la-ball-scale-multiple.la-sm,.la-ball-scale-multiple.la-sm>div{height:16px;width:16px}.la-ball-scale-multiple.la-2x,.la-ball-scale-multiple.la-2x>div{height:64px;width:64px}.la-ball-scale-multiple.la-3x,.la-ball-scale-multiple.la-3x>div{height:96px;width:96px}@-webkit-keyframes ball-scale-multiple{0%{opacity:0;transform:scale(0)}5%{opacity:.75}to{opacity:0;transform:scale(1)}}@keyframes ball-scale-multiple{0%{opacity:0;transform:scale(0)}5%{opacity:.75}to{opacity:0;transform:scale(1)}}.la-ball-scale-pulse,.la-ball-scale-pulse>div{box-sizing:border-box;position:relative}.la-ball-scale-pulse{color:#fff;display:block;font-size:0}.la-ball-scale-pulse.la-dark{color:#333}.la-ball-scale-pulse>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-pulse{height:32px;width:32px}.la-ball-scale-pulse>div{-webkit-animation:ball-scale-pulse 2s ease-in-out infinite;animation:ball-scale-pulse 2s ease-in-out infinite;border-radius:100%;height:32px;left:0;opacity:.5;position:absolute;top:0;width:32px}.la-ball-scale-pulse>div:last-child{-webkit-animation-delay:-1s;animation-delay:-1s}.la-ball-scale-pulse.la-sm,.la-ball-scale-pulse.la-sm>div{height:16px;width:16px}.la-ball-scale-pulse.la-2x,.la-ball-scale-pulse.la-2x>div{height:64px;width:64px}.la-ball-scale-pulse.la-3x,.la-ball-scale-pulse.la-3x>div{height:96px;width:96px}@-webkit-keyframes ball-scale-pulse{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes ball-scale-pulse{0%,to{transform:scale(0)}50%{transform:scale(1)}}.la-ball-scale-ripple-multiple,.la-ball-scale-ripple-multiple>div{box-sizing:border-box;position:relative}.la-ball-scale-ripple-multiple{color:#fff;display:block;font-size:0}.la-ball-scale-ripple-multiple.la-dark{color:#333}.la-ball-scale-ripple-multiple>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-ripple-multiple{height:32px;width:32px}.la-ball-scale-ripple-multiple>div{-webkit-animation:ball-scale-ripple-multiple 1.25s cubic-bezier(.21,.53,.56,.8) 0s infinite;animation:ball-scale-ripple-multiple 1.25s cubic-bezier(.21,.53,.56,.8) 0s infinite;background:transparent;border-radius:100%;border-width:2px;height:32px;left:0;opacity:0;position:absolute;top:0;width:32px}.la-ball-scale-ripple-multiple>div:first-child{-webkit-animation-delay:0s;animation-delay:0s}.la-ball-scale-ripple-multiple>div:nth-child(2){-webkit-animation-delay:.25s;animation-delay:.25s}.la-ball-scale-ripple-multiple>div:nth-child(3){-webkit-animation-delay:.5s;animation-delay:.5s}.la-ball-scale-ripple-multiple.la-sm{height:16px;width:16px}.la-ball-scale-ripple-multiple.la-sm>div{border-width:1px;height:16px;width:16px}.la-ball-scale-ripple-multiple.la-2x{height:64px;width:64px}.la-ball-scale-ripple-multiple.la-2x>div{border-width:4px;height:64px;width:64px}.la-ball-scale-ripple-multiple.la-3x{height:96px;width:96px}.la-ball-scale-ripple-multiple.la-3x>div{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-scale-ripple-multiple{0%{opacity:1;transform:scale(.1)}70%{opacity:.5;transform:scale(1)}95%{opacity:0}}@keyframes ball-scale-ripple-multiple{0%{opacity:1;transform:scale(.1)}70%{opacity:.5;transform:scale(1)}95%{opacity:0}}.la-ball-scale-ripple,.la-ball-scale-ripple>div{box-sizing:border-box;position:relative}.la-ball-scale-ripple{color:#fff;display:block;font-size:0}.la-ball-scale-ripple.la-dark{color:#333}.la-ball-scale-ripple>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale-ripple{height:32px;width:32px}.la-ball-scale-ripple>div{-webkit-animation:ball-scale-ripple 1s cubic-bezier(.21,.53,.56,.8) 0s infinite;animation:ball-scale-ripple 1s cubic-bezier(.21,.53,.56,.8) 0s infinite;background:transparent;border-radius:100%;border-width:2px;height:32px;opacity:0;width:32px}.la-ball-scale-ripple.la-sm{height:16px;width:16px}.la-ball-scale-ripple.la-sm>div{border-width:1px;height:16px;width:16px}.la-ball-scale-ripple.la-2x{height:64px;width:64px}.la-ball-scale-ripple.la-2x>div{border-width:4px;height:64px;width:64px}.la-ball-scale-ripple.la-3x{height:96px;width:96px}.la-ball-scale-ripple.la-3x>div{border-width:6px;height:96px;width:96px}@-webkit-keyframes ball-scale-ripple{0%{opacity:1;transform:scale(.1)}70%{opacity:.65;transform:scale(1)}to{opacity:0}}@keyframes ball-scale-ripple{0%{opacity:1;transform:scale(.1)}70%{opacity:.65;transform:scale(1)}to{opacity:0}}.la-ball-scale,.la-ball-scale>div{box-sizing:border-box;position:relative}.la-ball-scale{color:#fff;display:block;font-size:0}.la-ball-scale.la-dark{color:#333}.la-ball-scale>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-scale,.la-ball-scale>div{height:32px;width:32px}.la-ball-scale>div{-webkit-animation:ball-scale 1s ease-in-out 0s infinite;animation:ball-scale 1s ease-in-out 0s infinite;border-radius:100%;opacity:0}.la-ball-scale.la-sm,.la-ball-scale.la-sm>div{height:16px;width:16px}.la-ball-scale.la-2x,.la-ball-scale.la-2x>div{height:64px;width:64px}.la-ball-scale.la-3x,.la-ball-scale.la-3x>div{height:96px;width:96px}@-webkit-keyframes ball-scale{0%{opacity:1;transform:scale(0)}to{opacity:0;transform:scale(1)}}@keyframes ball-scale{0%{opacity:1;transform:scale(0)}to{opacity:0;transform:scale(1)}}.la-ball-spin-clockwise-fade-rotating,.la-ball-spin-clockwise-fade-rotating>div{box-sizing:border-box;position:relative}.la-ball-spin-clockwise-fade-rotating{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise-fade-rotating.la-dark{color:#333}.la-ball-spin-clockwise-fade-rotating>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise-fade-rotating{-webkit-animation:ball-spin-clockwise-fade-rotating-rotate 6s linear infinite;animation:ball-spin-clockwise-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-ball-spin-clockwise-fade-rotating>div{-webkit-animation:ball-spin-clockwise-fade-rotating 1s linear infinite;animation:ball-spin-clockwise-fade-rotating 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise-fade-rotating>div:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise-fade-rotating>div:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise-fade-rotating>div:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise-fade-rotating>div:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise-fade-rotating>div:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise-fade-rotating>div:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise-fade-rotating>div:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise-fade-rotating>div:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise-fade-rotating.la-sm{height:16px;width:16px}.la-ball-spin-clockwise-fade-rotating.la-sm>div{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise-fade-rotating.la-2x{height:64px;width:64px}.la-ball-spin-clockwise-fade-rotating.la-2x>div{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise-fade-rotating.la-3x{height:96px;width:96px}.la-ball-spin-clockwise-fade-rotating.la-3x>div{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@keyframes ball-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@-webkit-keyframes ball-spin-clockwise-fade-rotating{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes ball-spin-clockwise-fade-rotating{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.la-ball-spin-clockwise-fade,.la-ball-spin-clockwise-fade>div{box-sizing:border-box;position:relative}.la-ball-spin-clockwise-fade{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise-fade.la-dark{color:#333}.la-ball-spin-clockwise-fade>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise-fade{height:32px;width:32px}.la-ball-spin-clockwise-fade>div{-webkit-animation:ball-spin-clockwise-fade 1s linear infinite;animation:ball-spin-clockwise-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise-fade>div:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise-fade>div:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise-fade>div:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise-fade>div:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise-fade>div:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise-fade>div:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise-fade>div:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise-fade>div:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise-fade.la-sm{height:16px;width:16px}.la-ball-spin-clockwise-fade.la-sm>div{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise-fade.la-2x{height:64px;width:64px}.la-ball-spin-clockwise-fade.la-2x>div{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise-fade.la-3x{height:96px;width:96px}.la-ball-spin-clockwise-fade.la-3x>div{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise-fade{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes ball-spin-clockwise-fade{50%{opacity:.25;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.la-ball-spin-clockwise,.la-ball-spin-clockwise>div{box-sizing:border-box;position:relative}.la-ball-spin-clockwise{color:#fff;display:block;font-size:0}.la-ball-spin-clockwise.la-dark{color:#333}.la-ball-spin-clockwise>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-clockwise{height:32px;width:32px}.la-ball-spin-clockwise>div{-webkit-animation:ball-spin-clockwise 1s ease-in-out infinite;animation:ball-spin-clockwise 1s ease-in-out infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-clockwise>div:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:5%}.la-ball-spin-clockwise>div:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-clockwise>div:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:95%;top:50%}.la-ball-spin-clockwise>div:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-clockwise>div:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-clockwise>div:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-clockwise>div:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-clockwise>div:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-clockwise.la-sm{height:16px;width:16px}.la-ball-spin-clockwise.la-sm>div{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-clockwise.la-2x{height:64px;width:64px}.la-ball-spin-clockwise.la-2x>div{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-clockwise.la-3x{height:96px;width:96px}.la-ball-spin-clockwise.la-3x>div{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}@keyframes ball-spin-clockwise{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}.la-ball-spin-fade-rotating,.la-ball-spin-fade-rotating>div{box-sizing:border-box;position:relative}.la-ball-spin-fade-rotating{color:#fff;display:block;font-size:0}.la-ball-spin-fade-rotating.la-dark{color:#333}.la-ball-spin-fade-rotating>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-fade-rotating{-webkit-animation:ball-spin-fade-rotate 6s linear infinite;animation:ball-spin-fade-rotate 6s linear infinite;height:32px;width:32px}.la-ball-spin-fade-rotating>div{-webkit-animation:ball-spin-fade 1s linear infinite;animation:ball-spin-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-fade-rotating>div:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin-fade-rotating>div:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-fade-rotating>div:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin-fade-rotating>div:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-fade-rotating>div:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-fade-rotating>div:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-fade-rotating>div:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-fade-rotating>div:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-fade-rotating.la-sm{height:16px;width:16px}.la-ball-spin-fade-rotating.la-sm>div{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-fade-rotating.la-2x{height:64px;width:64px}.la-ball-spin-fade-rotating.la-2x>div{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-fade-rotating.la-3x{height:96px;width:96px}.la-ball-spin-fade-rotating.la-3x>div{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-fade-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-fade-rotate{to{transform:rotate(1turn)}}.la-ball-spin-fade,.la-ball-spin-fade>div{box-sizing:border-box;position:relative}.la-ball-spin-fade{color:#fff;display:block;font-size:0}.la-ball-spin-fade.la-dark{color:#333}.la-ball-spin-fade>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-fade{height:32px;width:32px}.la-ball-spin-fade>div{-webkit-animation:ball-spin-fade 1s linear infinite;animation:ball-spin-fade 1s linear infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin-fade>div:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin-fade>div:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin-fade>div:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin-fade>div:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin-fade>div:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin-fade>div:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin-fade>div:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin-fade>div:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin-fade.la-sm{height:16px;width:16px}.la-ball-spin-fade.la-sm>div{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin-fade.la-2x{height:64px;width:64px}.la-ball-spin-fade.la-2x>div{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin-fade.la-3x{height:96px;width:96px}.la-ball-spin-fade.la-3x>div{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin-fade{0%,to{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.5)}}@keyframes ball-spin-fade{0%,to{opacity:1;transform:scale(1)}50%{opacity:.25;transform:scale(.5)}}.la-ball-spin-rotate,.la-ball-spin-rotate>div{box-sizing:border-box;position:relative}.la-ball-spin-rotate{color:#fff;display:block;font-size:0}.la-ball-spin-rotate.la-dark{color:#333}.la-ball-spin-rotate>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin-rotate{-webkit-animation:ball-spin-rotate 2s linear infinite;animation:ball-spin-rotate 2s linear infinite;height:32px;width:32px}.la-ball-spin-rotate>div{-webkit-animation:ball-spin-bounce 2s ease-in-out infinite;animation:ball-spin-bounce 2s ease-in-out infinite;border-radius:100%;height:60%;position:absolute;top:0;width:60%}.la-ball-spin-rotate>div:last-child{-webkit-animation-delay:-1s;animation-delay:-1s;bottom:0;top:auto}.la-ball-spin-rotate.la-sm{height:16px;width:16px}.la-ball-spin-rotate.la-2x{height:64px;width:64px}.la-ball-spin-rotate.la-3x{height:96px;width:96px}@-webkit-keyframes ball-spin-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes ball-spin-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes ball-spin-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}.la-ball-spin,.la-ball-spin>div{box-sizing:border-box;position:relative}.la-ball-spin{color:#fff;display:block;font-size:0}.la-ball-spin.la-dark{color:#333}.la-ball-spin>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-spin{height:32px;width:32px}.la-ball-spin>div{-webkit-animation:ball-spin 1s ease-in-out infinite;animation:ball-spin 1s ease-in-out infinite;border-radius:100%;height:8px;left:50%;margin-left:-4px;margin-top:-4px;position:absolute;top:50%;width:8px}.la-ball-spin>div:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:5%}.la-ball-spin>div:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:81.8198051534%;top:18.1801948466%}.la-ball-spin>div:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:95%;top:50%}.la-ball-spin>div:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:81.8198051534%;top:81.8198051534%}.la-ball-spin>div:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000005%;top:94.9999999966%}.la-ball-spin>div:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:18.1801949248%;top:81.8198046966%}.la-ball-spin>div:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:5.0000051215%;top:49.9999750815%}.la-ball-spin>div:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:18.1803700518%;top:18.179464974%}.la-ball-spin.la-sm{height:16px;width:16px}.la-ball-spin.la-sm>div{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-spin.la-2x{height:64px;width:64px}.la-ball-spin.la-2x>div{height:16px;margin-left:-8px;margin-top:-8px;width:16px}.la-ball-spin.la-3x{height:96px;width:96px}.la-ball-spin.la-3x>div{height:24px;margin-left:-12px;margin-top:-12px;width:24px}@-webkit-keyframes ball-spin{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}@keyframes ball-spin{0%,to{opacity:1;transform:scale(1)}20%{opacity:1}80%{opacity:0;transform:scale(0)}}.la-ball-square-clockwise-spin,.la-ball-square-clockwise-spin>div{box-sizing:border-box;position:relative}.la-ball-square-clockwise-spin{color:#fff;display:block;font-size:0}.la-ball-square-clockwise-spin.la-dark{color:#333}.la-ball-square-clockwise-spin>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-square-clockwise-spin{height:26px;width:26px}.la-ball-square-clockwise-spin>div{-webkit-animation:ball-square-clockwise-spin 1s ease-in-out infinite;animation:ball-square-clockwise-spin 1s ease-in-out infinite;border-radius:100%;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.la-ball-square-clockwise-spin>div:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:0;top:0}.la-ball-square-clockwise-spin>div:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:50%;top:0}.la-ball-square-clockwise-spin>div:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:100%;top:0}.la-ball-square-clockwise-spin>div:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:100%;top:50%}.la-ball-square-clockwise-spin>div:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:100%;top:100%}.la-ball-square-clockwise-spin>div:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:50%;top:100%}.la-ball-square-clockwise-spin>div:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:0;top:100%}.la-ball-square-clockwise-spin>div:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:0;top:50%}.la-ball-square-clockwise-spin.la-sm{height:12px;width:12px}.la-ball-square-clockwise-spin.la-sm>div{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-ball-square-clockwise-spin.la-2x{height:52px;width:52px}.la-ball-square-clockwise-spin.la-2x>div{height:24px;margin-left:-12px;margin-top:-12px;width:24px}.la-ball-square-clockwise-spin.la-3x{height:78px;width:78px}.la-ball-square-clockwise-spin.la-3x>div{height:36px;margin-left:-18px;margin-top:-18px;width:36px}@-webkit-keyframes ball-square-clockwise-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}@keyframes ball-square-clockwise-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}.la-ball-square-spin,.la-ball-square-spin>div{box-sizing:border-box;position:relative}.la-ball-square-spin{color:#fff;display:block;font-size:0}.la-ball-square-spin.la-dark{color:#333}.la-ball-square-spin>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-square-spin{height:26px;width:26px}.la-ball-square-spin>div{-webkit-animation:ball-square-spin 1s ease-in-out infinite;animation:ball-square-spin 1s ease-in-out infinite;border-radius:100%;height:12px;left:50%;margin-left:-6px;margin-top:-6px;position:absolute;top:50%;width:12px}.la-ball-square-spin>div:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:0;top:0}.la-ball-square-spin>div:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:50%;top:0}.la-ball-square-spin>div:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:100%;top:0}.la-ball-square-spin>div:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:100%;top:50%}.la-ball-square-spin>div:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:100%;top:100%}.la-ball-square-spin>div:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:50%;top:100%}.la-ball-square-spin>div:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:0;top:100%}.la-ball-square-spin>div:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:0;top:50%}.la-ball-square-spin.la-sm{height:12px;width:12px}.la-ball-square-spin.la-sm>div{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-ball-square-spin.la-2x{height:52px;width:52px}.la-ball-square-spin.la-2x>div{height:24px;margin-left:-12px;margin-top:-12px;width:24px}.la-ball-square-spin.la-3x{height:78px;width:78px}.la-ball-square-spin.la-3x>div{height:36px;margin-left:-18px;margin-top:-18px;width:36px}@-webkit-keyframes ball-square-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}@keyframes ball-square-spin{0%,40%,to{transform:scale(.4)}70%{transform:scale(1)}}.la-ball-triangle-path,.la-ball-triangle-path>div{box-sizing:border-box;position:relative}.la-ball-triangle-path{color:#fff;display:block;font-size:0}.la-ball-triangle-path.la-dark{color:#333}.la-ball-triangle-path>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-triangle-path{height:32px;width:32px}.la-ball-triangle-path>div{border-radius:100%;height:10px;left:0;position:absolute;top:0;width:10px}.la-ball-triangle-path>div:first-child{-webkit-animation:ball-triangle-path-ball-one 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-one 2s ease-in-out 0s infinite}.la-ball-triangle-path>div:nth-child(2){-webkit-animation:ball-triangle-path-ball-two 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-two 2s ease-in-out 0s infinite}.la-ball-triangle-path>div:nth-child(3){-webkit-animation:ball-triangle-path-ball-tree 2s ease-in-out 0s infinite;animation:ball-triangle-path-ball-tree 2s ease-in-out 0s infinite}.la-ball-triangle-path.la-sm{height:16px;width:16px}.la-ball-triangle-path.la-sm>div{height:4px;width:4px}.la-ball-triangle-path.la-2x{height:64px;width:64px}.la-ball-triangle-path.la-2x>div{height:20px;width:20px}.la-ball-triangle-path.la-3x{height:96px;width:96px}.la-ball-triangle-path.la-3x>div{height:30px;width:30px}@-webkit-keyframes ball-triangle-path-ball-one{0%{transform:translateY(220%)}17%{opacity:.25}33%{opacity:1;transform:translate(110%)}50%{opacity:.25}66%{opacity:1;transform:translate(220%,220%)}83%{opacity:.25}to{opacity:1;transform:translateY(220%)}}@keyframes ball-triangle-path-ball-one{0%{transform:translateY(220%)}17%{opacity:.25}33%{opacity:1;transform:translate(110%)}50%{opacity:.25}66%{opacity:1;transform:translate(220%,220%)}83%{opacity:.25}to{opacity:1;transform:translateY(220%)}}@-webkit-keyframes ball-triangle-path-ball-two{0%{transform:translate(110%)}17%{opacity:.25}33%{opacity:1;transform:translate(220%,220%)}50%{opacity:.25}66%{opacity:1;transform:translateY(220%)}83%{opacity:.25}to{opacity:1;transform:translate(110%)}}@keyframes ball-triangle-path-ball-two{0%{transform:translate(110%)}17%{opacity:.25}33%{opacity:1;transform:translate(220%,220%)}50%{opacity:.25}66%{opacity:1;transform:translateY(220%)}83%{opacity:.25}to{opacity:1;transform:translate(110%)}}@-webkit-keyframes ball-triangle-path-ball-tree{0%{transform:translate(220%,220%)}17%{opacity:.25}33%{opacity:1;transform:translateY(220%)}50%{opacity:.25}66%{opacity:1;transform:translate(110%)}83%{opacity:.25}to{opacity:1;transform:translate(220%,220%)}}@keyframes ball-triangle-path-ball-tree{0%{transform:translate(220%,220%)}17%{opacity:.25}33%{opacity:1;transform:translateY(220%)}50%{opacity:.25}66%{opacity:1;transform:translate(110%)}83%{opacity:.25}to{opacity:1;transform:translate(220%,220%)}}.la-ball-zig-zag-deflect,.la-ball-zig-zag-deflect>div{box-sizing:border-box;position:relative}.la-ball-zig-zag-deflect{color:#fff;display:block;font-size:0}.la-ball-zig-zag-deflect.la-dark{color:#333}.la-ball-zig-zag-deflect>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-zig-zag-deflect{height:32px;position:relative;width:32px}.la-ball-zig-zag-deflect>div{border-radius:100%;height:10px;left:50%;margin-left:-5px;margin-top:-5px;position:absolute;top:50%;width:10px}.la-ball-zig-zag-deflect>div:first-child{-webkit-animation:ball-zig-deflect 1.5s linear 0s infinite;animation:ball-zig-deflect 1.5s linear 0s infinite}.la-ball-zig-zag-deflect>div:last-child{-webkit-animation:ball-zag-deflect 1.5s linear 0s infinite;animation:ball-zag-deflect 1.5s linear 0s infinite}.la-ball-zig-zag-deflect.la-sm{height:16px;width:16px}.la-ball-zig-zag-deflect.la-sm>div{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-zig-zag-deflect.la-2x{height:64px;width:64px}.la-ball-zig-zag-deflect.la-2x>div{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-zig-zag-deflect.la-3x{height:96px;width:96px}.la-ball-zig-zag-deflect.la-3x>div{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-zig-deflect{17%{transform:translate(-80%,-160%)}34%{transform:translate(80%,-160%)}50%{transform:translate(0)}67%{transform:translate(80%,-160%)}84%{transform:translate(-80%,-160%)}to{transform:translate(0)}}@keyframes ball-zig-deflect{17%{transform:translate(-80%,-160%)}34%{transform:translate(80%,-160%)}50%{transform:translate(0)}67%{transform:translate(80%,-160%)}84%{transform:translate(-80%,-160%)}to{transform:translate(0)}}@-webkit-keyframes ball-zag-deflect{17%{transform:translate(80%,160%)}34%{transform:translate(-80%,160%)}50%{transform:translate(0)}67%{transform:translate(-80%,160%)}84%{transform:translate(80%,160%)}to{transform:translate(0)}}@keyframes ball-zag-deflect{17%{transform:translate(80%,160%)}34%{transform:translate(-80%,160%)}50%{transform:translate(0)}67%{transform:translate(-80%,160%)}84%{transform:translate(80%,160%)}to{transform:translate(0)}}.la-ball-zig-zag,.la-ball-zig-zag>div{box-sizing:border-box;position:relative}.la-ball-zig-zag{color:#fff;display:block;font-size:0}.la-ball-zig-zag.la-dark{color:#333}.la-ball-zig-zag>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-ball-zig-zag{height:32px;position:relative;width:32px}.la-ball-zig-zag>div{border-radius:100%;height:10px;left:50%;margin-left:-5px;margin-top:-5px;position:absolute;top:50%;width:10px}.la-ball-zig-zag>div:first-child{-webkit-animation:ball-zig-effect .7s linear 0s infinite;animation:ball-zig-effect .7s linear 0s infinite}.la-ball-zig-zag>div:last-child{-webkit-animation:ball-zag-effect .7s linear 0s infinite;animation:ball-zag-effect .7s linear 0s infinite}.la-ball-zig-zag.la-sm{height:16px;width:16px}.la-ball-zig-zag.la-sm>div{height:4px;margin-left:-2px;margin-top:-2px;width:4px}.la-ball-zig-zag.la-2x{height:64px;width:64px}.la-ball-zig-zag.la-2x>div{height:20px;margin-left:-10px;margin-top:-10px;width:20px}.la-ball-zig-zag.la-3x{height:96px;width:96px}.la-ball-zig-zag.la-3x>div{height:30px;margin-left:-15px;margin-top:-15px;width:30px}@-webkit-keyframes ball-zig-effect{0%{transform:translate(0)}33%{transform:translate(-75%,-150%)}66%{transform:translate(75%,-150%)}to{transform:translate(0)}}@keyframes ball-zig-effect{0%{transform:translate(0)}33%{transform:translate(-75%,-150%)}66%{transform:translate(75%,-150%)}to{transform:translate(0)}}@-webkit-keyframes ball-zag-effect{0%{transform:translate(0)}33%{transform:translate(75%,150%)}66%{transform:translate(-75%,150%)}to{transform:translate(0)}}@keyframes ball-zag-effect{0%{transform:translate(0)}33%{transform:translate(75%,150%)}66%{transform:translate(-75%,150%)}to{transform:translate(0)}}.la-cog,.la-cog>div{box-sizing:border-box;position:relative}.la-cog{color:#fff;display:block;font-size:0}.la-cog.la-dark{color:#333}.la-cog>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-cog{height:31px;width:31px}.la-cog>div{-webkit-animation:cog-rotate 4s linear infinite;animation:cog-rotate 4s linear infinite;background-color:transparent;border-radius:100%;border-style:dashed;border-width:2px;height:100%;width:100%}.la-cog>div:after{border:2px solid;border-radius:100%;content:\"\";height:100%;left:0;position:absolute;top:0;width:100%}.la-cog.la-sm{height:15px;width:15px}.la-cog.la-sm>div,.la-cog.la-sm>div:after{border-width:1px}.la-cog.la-2x{height:61px;width:61px}.la-cog.la-2x>div,.la-cog.la-2x>div:after{border-width:4px}.la-cog.la-3x{height:91px;width:91px}.la-cog.la-3x>div,.la-cog.la-3x>div:after{border-width:6px}@-webkit-keyframes cog-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes cog-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.la-cube-transition,.la-cube-transition>div{box-sizing:border-box;position:relative}.la-cube-transition{color:#fff;display:block;font-size:0}.la-cube-transition.la-dark{color:#333}.la-cube-transition>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-cube-transition{height:32px;width:32px}.la-cube-transition>div{-webkit-animation:cube-transition 1.6s ease-in-out 0s infinite;animation:cube-transition 1.6s ease-in-out 0s infinite;border-radius:0;height:14px;left:0;margin-left:-7px;margin-top:-7px;position:absolute;top:0;width:14px}.la-cube-transition>div:last-child{-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-cube-transition.la-sm{height:16px;width:16px}.la-cube-transition.la-sm>div{height:6px;margin-left:-3px;margin-top:-3px;width:6px}.la-cube-transition.la-2x{height:64px;width:64px}.la-cube-transition.la-2x>div{height:28px;margin-left:-14px;margin-top:-14px;width:28px}.la-cube-transition.la-3x{height:96px;width:96px}.la-cube-transition.la-3x>div{height:42px;margin-left:-21px;margin-top:-21px;width:42px}@-webkit-keyframes cube-transition{25%{left:100%;top:0;transform:scale(.5) rotate(-90deg)}50%{left:100%;top:100%;transform:scale(1) rotate(-180deg)}75%{left:0;top:100%;transform:scale(.5) rotate(-270deg)}to{left:0;top:0;transform:scale(1) rotate(-1turn)}}@keyframes cube-transition{25%{left:100%;top:0;transform:scale(.5) rotate(-90deg)}50%{left:100%;top:100%;transform:scale(1) rotate(-180deg)}75%{left:0;top:100%;transform:scale(.5) rotate(-270deg)}to{left:0;top:0;transform:scale(1) rotate(-1turn)}}.la-fire,.la-fire>div{box-sizing:border-box;position:relative}.la-fire{color:#fff;display:block;font-size:0}.la-fire.la-dark{color:#333}.la-fire>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-fire{height:32px;width:32px}.la-fire>div{-webkit-animation:fire-diamonds 1.5s linear infinite;animation:fire-diamonds 1.5s linear infinite;border-radius:0;border-radius:2px;bottom:0;height:12px;left:50%;position:absolute;transform:translateY(0) translateX(-50%) rotate(45deg) scale(0);width:12px}.la-fire>div:first-child{-webkit-animation-delay:-.85s;animation-delay:-.85s}.la-fire>div:nth-child(2){-webkit-animation-delay:-1.85s;animation-delay:-1.85s}.la-fire>div:nth-child(3){-webkit-animation-delay:-2.85s;animation-delay:-2.85s}.la-fire.la-sm{height:16px;width:16px}.la-fire.la-sm>div{height:6px;width:6px}.la-fire.la-2x{height:64px;width:64px}.la-fire.la-2x>div{height:24px;width:24px}.la-fire.la-3x{height:96px;width:96px}.la-fire.la-3x>div{height:36px;width:36px}@-webkit-keyframes fire-diamonds{0%{transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}to{transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}@keyframes fire-diamonds{0%{transform:translateY(75%) translateX(-50%) rotate(45deg) scale(0)}50%{transform:translateY(-87.5%) translateX(-50%) rotate(45deg) scale(1)}to{transform:translateY(-212.5%) translateX(-50%) rotate(45deg) scale(0)}}.la-line-scale-party,.la-line-scale-party>div{box-sizing:border-box;position:relative}.la-line-scale-party{color:#fff;display:block;font-size:0}.la-line-scale-party.la-dark{color:#333}.la-line-scale-party>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-party{height:32px;width:40px}.la-line-scale-party>div{-webkit-animation-iteration-count:infinite;-webkit-animation-name:line-scale-party;animation-iteration-count:infinite;animation-name:line-scale-party;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-party>div:first-child{-webkit-animation-delay:-.23s;-webkit-animation-duration:.43s;animation-delay:-.23s;animation-duration:.43s}.la-line-scale-party>div:nth-child(2){-webkit-animation-delay:-.32s;-webkit-animation-duration:.62s;animation-delay:-.32s;animation-duration:.62s}.la-line-scale-party>div:nth-child(3){-webkit-animation-delay:-.44s;-webkit-animation-duration:.43s;animation-delay:-.44s;animation-duration:.43s}.la-line-scale-party>div:nth-child(4){-webkit-animation-delay:-.31s;-webkit-animation-duration:.8s;animation-delay:-.31s;animation-duration:.8s}.la-line-scale-party>div:nth-child(5){-webkit-animation-delay:-.24s;-webkit-animation-duration:.74s;animation-delay:-.24s;animation-duration:.74s}.la-line-scale-party.la-sm{height:16px;width:20px}.la-line-scale-party.la-sm>div{height:16px;margin:0 1px;width:2px}.la-line-scale-party.la-2x{height:64px;width:80px}.la-line-scale-party.la-2x>div{height:64px;margin:0 4px;width:8px}.la-line-scale-party.la-3x{height:96px;width:120px}.la-line-scale-party.la-3x>div{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-party{0%{transform:scaleY(1)}50%{transform:scaleY(.3)}to{transform:scaleY(1)}}@keyframes line-scale-party{0%{transform:scaleY(1)}50%{transform:scaleY(.3)}to{transform:scaleY(1)}}.la-line-scale-pulse-out-rapid,.la-line-scale-pulse-out-rapid>div{box-sizing:border-box;position:relative}.la-line-scale-pulse-out-rapid{color:#fff;display:block;font-size:0}.la-line-scale-pulse-out-rapid.la-dark{color:#333}.la-line-scale-pulse-out-rapid>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-pulse-out-rapid{height:32px;width:40px}.la-line-scale-pulse-out-rapid>div{-webkit-animation:line-scale-pulse-out-rapid .9s cubic-bezier(.11,.49,.38,.78) infinite;animation:line-scale-pulse-out-rapid .9s cubic-bezier(.11,.49,.38,.78) infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-pulse-out-rapid>div:nth-child(3){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale-pulse-out-rapid>div:nth-child(2),.la-line-scale-pulse-out-rapid>div:nth-child(4){-webkit-animation-delay:-.65s;animation-delay:-.65s}.la-line-scale-pulse-out-rapid>div:first-child,.la-line-scale-pulse-out-rapid>div:nth-child(5){-webkit-animation-delay:-.4s;animation-delay:-.4s}.la-line-scale-pulse-out-rapid.la-sm{height:16px;width:20px}.la-line-scale-pulse-out-rapid.la-sm>div{height:16px;margin:0 1px;width:2px}.la-line-scale-pulse-out-rapid.la-2x{height:64px;width:80px}.la-line-scale-pulse-out-rapid.la-2x>div{height:64px;margin:0 4px;width:8px}.la-line-scale-pulse-out-rapid.la-3x{height:96px;width:120px}.la-line-scale-pulse-out-rapid.la-3x>div{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-pulse-out-rapid{0%{transform:scaley(1)}80%{transform:scaley(.3)}90%{transform:scaley(1)}}@keyframes line-scale-pulse-out-rapid{0%{transform:scaley(1)}80%{transform:scaley(.3)}90%{transform:scaley(1)}}.la-line-scale-pulse-out,.la-line-scale-pulse-out>div{box-sizing:border-box;position:relative}.la-line-scale-pulse-out{color:#fff;display:block;font-size:0}.la-line-scale-pulse-out.la-dark{color:#333}.la-line-scale-pulse-out>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale-pulse-out{height:32px;width:40px}.la-line-scale-pulse-out>div{-webkit-animation:line-scale-pulse-out .9s cubic-bezier(.85,.25,.37,.85) infinite;animation:line-scale-pulse-out .9s cubic-bezier(.85,.25,.37,.85) infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale-pulse-out>div:nth-child(3){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale-pulse-out>div:nth-child(2),.la-line-scale-pulse-out>div:nth-child(4){-webkit-animation-delay:-.7s;animation-delay:-.7s}.la-line-scale-pulse-out>div:first-child,.la-line-scale-pulse-out>div:nth-child(5){-webkit-animation-delay:-.5s;animation-delay:-.5s}.la-line-scale-pulse-out.la-sm{height:16px;width:20px}.la-line-scale-pulse-out.la-sm>div{height:16px;margin:0 1px;width:2px}.la-line-scale-pulse-out.la-2x{height:64px;width:80px}.la-line-scale-pulse-out.la-2x>div{height:64px;margin:0 4px;width:8px}.la-line-scale-pulse-out.la-3x{height:96px;width:120px}.la-line-scale-pulse-out.la-3x>div{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale-pulse-out{0%{transform:scaley(1)}50%{transform:scaley(.3)}to{transform:scaley(1)}}@keyframes line-scale-pulse-out{0%{transform:scaley(1)}50%{transform:scaley(.3)}to{transform:scaley(1)}}.la-line-scale,.la-line-scale>div{box-sizing:border-box;position:relative}.la-line-scale{color:#fff;display:block;font-size:0}.la-line-scale.la-dark{color:#333}.la-line-scale>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-scale{height:32px;width:40px}.la-line-scale>div{-webkit-animation:line-scale 1.2s ease infinite;animation:line-scale 1.2s ease infinite;border-radius:0;height:32px;margin:0 2px;width:4px}.la-line-scale>div:first-child{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.la-line-scale>div:nth-child(2){-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.la-line-scale>div:nth-child(3){-webkit-animation-delay:-1s;animation-delay:-1s}.la-line-scale>div:nth-child(4){-webkit-animation-delay:-.9s;animation-delay:-.9s}.la-line-scale>div:nth-child(5){-webkit-animation-delay:-.8s;animation-delay:-.8s}.la-line-scale.la-sm{height:16px;width:20px}.la-line-scale.la-sm>div{height:16px;margin:0 1px;width:2px}.la-line-scale.la-2x{height:64px;width:80px}.la-line-scale.la-2x>div{height:64px;margin:0 4px;width:8px}.la-line-scale.la-3x{height:96px;width:120px}.la-line-scale.la-3x>div{height:96px;margin:0 6px;width:12px}@-webkit-keyframes line-scale{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}@keyframes line-scale{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}.la-line-spin-clockwise-fade-rotating,.la-line-spin-clockwise-fade-rotating>div{box-sizing:border-box;position:relative}.la-line-spin-clockwise-fade-rotating{color:#fff;display:block;font-size:0}.la-line-spin-clockwise-fade-rotating.la-dark{color:#333}.la-line-spin-clockwise-fade-rotating>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-clockwise-fade-rotating{-webkit-animation:line-spin-clockwise-fade-rotating-rotate 6s linear infinite;animation:line-spin-clockwise-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-line-spin-clockwise-fade-rotating>div{-webkit-animation:line-spin-clockwise-fade-rotating 1s ease-in-out infinite;animation:line-spin-clockwise-fade-rotating 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-clockwise-fade-rotating>div:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-clockwise-fade-rotating>div:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-clockwise-fade-rotating>div:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-clockwise-fade-rotating>div:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-clockwise-fade-rotating>div:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-clockwise-fade-rotating>div:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-clockwise-fade-rotating>div:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-clockwise-fade-rotating>div:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-clockwise-fade-rotating.la-sm{height:16px;width:16px}.la-line-spin-clockwise-fade-rotating.la-sm>div{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-clockwise-fade-rotating.la-2x{height:64px;width:64px}.la-line-spin-clockwise-fade-rotating.la-2x>div{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-clockwise-fade-rotating.la-3x{height:96px;width:96px}.la-line-spin-clockwise-fade-rotating.la-3x>div{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@keyframes line-spin-clockwise-fade-rotating-rotate{to{transform:rotate(-1turn)}}@-webkit-keyframes line-spin-clockwise-fade-rotating{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-clockwise-fade-rotating{50%{opacity:.2}to{opacity:1}}.la-line-spin-clockwise-fade,.la-line-spin-clockwise-fade>div{box-sizing:border-box;position:relative}.la-line-spin-clockwise-fade{color:#fff;display:block;font-size:0}.la-line-spin-clockwise-fade.la-dark{color:#333}.la-line-spin-clockwise-fade>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-clockwise-fade{height:32px;width:32px}.la-line-spin-clockwise-fade>div{-webkit-animation:line-spin-clockwise-fade 1s ease-in-out infinite;animation:line-spin-clockwise-fade 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-clockwise-fade>div:first-child{-webkit-animation-delay:-.875s;animation-delay:-.875s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-clockwise-fade>div:nth-child(2){-webkit-animation-delay:-.75s;animation-delay:-.75s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-clockwise-fade>div:nth-child(3){-webkit-animation-delay:-.625s;animation-delay:-.625s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-clockwise-fade>div:nth-child(4){-webkit-animation-delay:-.5s;animation-delay:-.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-clockwise-fade>div:nth-child(5){-webkit-animation-delay:-.375s;animation-delay:-.375s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-clockwise-fade>div:nth-child(6){-webkit-animation-delay:-.25s;animation-delay:-.25s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-clockwise-fade>div:nth-child(7){-webkit-animation-delay:-.125s;animation-delay:-.125s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-clockwise-fade>div:nth-child(8){-webkit-animation-delay:0s;animation-delay:0s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-clockwise-fade.la-sm{height:16px;width:16px}.la-line-spin-clockwise-fade.la-sm>div{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-clockwise-fade.la-2x{height:64px;width:64px}.la-line-spin-clockwise-fade.la-2x>div{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-clockwise-fade.la-3x{height:96px;width:96px}.la-line-spin-clockwise-fade.la-3x>div{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-clockwise-fade{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-clockwise-fade{50%{opacity:.2}to{opacity:1}}.la-line-spin-fade-rotating,.la-line-spin-fade-rotating>div{box-sizing:border-box;position:relative}.la-line-spin-fade-rotating{color:#fff;display:block;font-size:0}.la-line-spin-fade-rotating.la-dark{color:#333}.la-line-spin-fade-rotating>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-fade-rotating{-webkit-animation:ball-spin-fade-rotating-rotate 6s linear infinite;animation:ball-spin-fade-rotating-rotate 6s linear infinite;height:32px;width:32px}.la-line-spin-fade-rotating>div{-webkit-animation:line-spin-fade-rotating 1s ease-in-out infinite;animation:line-spin-fade-rotating 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-fade-rotating>div:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-fade-rotating>div:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-fade-rotating>div:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-fade-rotating>div:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-fade-rotating>div:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-fade-rotating>div:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-fade-rotating>div:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-fade-rotating>div:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-fade-rotating.la-sm{height:16px;width:16px}.la-line-spin-fade-rotating.la-sm>div{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-fade-rotating.la-2x{height:64px;width:64px}.la-line-spin-fade-rotating.la-2x>div{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-fade-rotating.la-3x{height:96px;width:96px}.la-line-spin-fade-rotating.la-3x>div{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes ball-spin-fade-rotating-rotate{to{transform:rotate(1turn)}}@keyframes ball-spin-fade-rotating-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes line-spin-fade-rotating{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-fade-rotating{50%{opacity:.2}to{opacity:1}}.la-line-spin-fade,.la-line-spin-fade>div{box-sizing:border-box;position:relative}.la-line-spin-fade{color:#fff;display:block;font-size:0}.la-line-spin-fade.la-dark{color:#333}.la-line-spin-fade>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-line-spin-fade{height:32px;width:32px}.la-line-spin-fade>div{-webkit-animation:line-spin-fade 1s ease-in-out infinite;animation:line-spin-fade 1s ease-in-out infinite;border-radius:0;height:10px;margin:-5px 2px 2px -1px;position:absolute;width:2px}.la-line-spin-fade>div:first-child{-webkit-animation-delay:-1.125s;animation-delay:-1.125s;left:50%;top:15%;transform:rotate(0deg)}.la-line-spin-fade>div:nth-child(2){-webkit-animation-delay:-1.25s;animation-delay:-1.25s;left:74.7487373415%;top:25.2512626585%;transform:rotate(45deg)}.la-line-spin-fade>div:nth-child(3){-webkit-animation-delay:-1.375s;animation-delay:-1.375s;left:85%;top:50%;transform:rotate(90deg)}.la-line-spin-fade>div:nth-child(4){-webkit-animation-delay:-1.5s;animation-delay:-1.5s;left:74.7487373415%;top:74.7487373415%;transform:rotate(135deg)}.la-line-spin-fade>div:nth-child(5){-webkit-animation-delay:-1.625s;animation-delay:-1.625s;left:50.0000000004%;top:84.9999999974%;transform:rotate(180deg)}.la-line-spin-fade>div:nth-child(6){-webkit-animation-delay:-1.75s;animation-delay:-1.75s;left:25.2512627193%;top:74.7487369862%;transform:rotate(225deg)}.la-line-spin-fade>div:nth-child(7){-webkit-animation-delay:-1.875s;animation-delay:-1.875s;left:15.0000039834%;top:49.9999806189%;transform:rotate(270deg)}.la-line-spin-fade>div:nth-child(8){-webkit-animation-delay:-2s;animation-delay:-2s;left:25.2513989292%;top:25.2506949798%;transform:rotate(315deg)}.la-line-spin-fade.la-sm{height:16px;width:16px}.la-line-spin-fade.la-sm>div{height:4px;margin-left:0;margin-top:-2px;width:1px}.la-line-spin-fade.la-2x{height:64px;width:64px}.la-line-spin-fade.la-2x>div{height:20px;margin-left:-2px;margin-top:-10px;width:4px}.la-line-spin-fade.la-3x{height:96px;width:96px}.la-line-spin-fade.la-3x>div{height:30px;margin-left:-3px;margin-top:-15px;width:6px}@-webkit-keyframes line-spin-fade{50%{opacity:.2}to{opacity:1}}@keyframes line-spin-fade{50%{opacity:.2}to{opacity:1}}.la-pacman,.la-pacman>div{box-sizing:border-box;position:relative}.la-pacman{color:#fff;display:block;font-size:0}.la-pacman.la-dark{color:#333}.la-pacman>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-pacman{height:32px;width:32px}.la-pacman>div:first-child,.la-pacman>div:nth-child(2){-webkit-animation:pacman-rotate-half-up .5s 0s infinite;animation:pacman-rotate-half-up .5s 0s infinite;background:transparent;border-radius:100%;border-right:solid transparent;border-style:solid;border-width:16px;height:0;position:absolute;width:0}.la-pacman>div:nth-child(2){-webkit-animation-name:pacman-rotate-half-down;animation-name:pacman-rotate-half-down;top:0}.la-pacman>div:nth-child(3),.la-pacman>div:nth-child(4),.la-pacman>div:nth-child(5),.la-pacman>div:nth-child(6){-webkit-animation:pacman-balls 2s linear 0s infinite;animation:pacman-balls 2s linear 0s infinite;border-radius:100%;height:8px;left:200%;opacity:0;position:absolute;top:50%;width:8px}.la-pacman>div:nth-child(3){-webkit-animation-delay:-1.44s;animation-delay:-1.44s}.la-pacman>div:nth-child(4){-webkit-animation-delay:-1.94s;animation-delay:-1.94s}.la-pacman>div:nth-child(5){-webkit-animation-delay:-2.44s;animation-delay:-2.44s}.la-pacman>div:nth-child(6){-webkit-animation-delay:-2.94s;animation-delay:-2.94s}.la-pacman.la-sm{height:16px;width:16px}.la-pacman.la-sm>div:first-child,.la-pacman.la-sm>div:nth-child(2){border-width:8px;position:absolute}.la-pacman.la-sm>div:nth-child(2){top:0}.la-pacman.la-sm>div:nth-child(3),.la-pacman.la-sm>div:nth-child(4),.la-pacman.la-sm>div:nth-child(5),.la-pacman.la-sm>div:nth-child(6){height:4px;width:4px}.la-pacman.la-2x{height:64px;width:64px}.la-pacman.la-2x>div:first-child,.la-pacman.la-2x>div:nth-child(2){border-width:32px;position:absolute}.la-pacman.la-2x>div:nth-child(2){top:0}.la-pacman.la-2x>div:nth-child(3),.la-pacman.la-2x>div:nth-child(4),.la-pacman.la-2x>div:nth-child(5),.la-pacman.la-2x>div:nth-child(6){height:16px;width:16px}.la-pacman.la-3x{height:96px;width:96px}.la-pacman.la-3x>div:first-child,.la-pacman.la-3x>div:nth-child(2){border-width:48px;position:absolute}.la-pacman.la-3x>div:nth-child(2){top:0}.la-pacman.la-3x>div:nth-child(3),.la-pacman.la-3x>div:nth-child(4),.la-pacman.la-3x>div:nth-child(5),.la-pacman.la-3x>div:nth-child(6){height:24px;width:24px}@-webkit-keyframes pacman-rotate-half-up{0%,to{transform:rotate(270deg)}50%{transform:rotate(1turn)}}@keyframes pacman-rotate-half-up{0%,to{transform:rotate(270deg)}50%{transform:rotate(1turn)}}@-webkit-keyframes pacman-rotate-half-down{0%,to{transform:rotate(90deg)}50%{transform:rotate(0deg)}}@keyframes pacman-rotate-half-down{0%,to{transform:rotate(90deg)}50%{transform:rotate(0deg)}}@-webkit-keyframes pacman-balls{0%{left:200%;opacity:0;transform:translateY(-50%)}5%{opacity:.5}66%{opacity:1}67%{opacity:0}to{left:0;transform:translateY(-50%)}}@keyframes pacman-balls{0%{left:200%;opacity:0;transform:translateY(-50%)}5%{opacity:.5}66%{opacity:1}67%{opacity:0}to{left:0;transform:translateY(-50%)}}.la-square-jelly-box,.la-square-jelly-box>div{box-sizing:border-box;position:relative}.la-square-jelly-box{color:#fff;display:block;font-size:0}.la-square-jelly-box.la-dark{color:#333}.la-square-jelly-box>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-jelly-box{height:32px;width:32px}.la-square-jelly-box>div:first-child,.la-square-jelly-box>div:nth-child(2){left:0;position:absolute;width:100%}.la-square-jelly-box>div:first-child{-webkit-animation:square-jelly-box-animate .6s linear -.1s infinite;animation:square-jelly-box-animate .6s linear -.1s infinite;border-radius:10%;height:100%;top:-25%;z-index:1}.la-square-jelly-box>div:nth-child(2){-webkit-animation:square-jelly-box-shadow .6s linear -.1s infinite;animation:square-jelly-box-shadow .6s linear -.1s infinite;background:#000;border-radius:50%;bottom:-9%;height:10%;opacity:.2}.la-square-jelly-box.la-sm{height:16px;width:16px}.la-square-jelly-box.la-2x{height:64px;width:64px}.la-square-jelly-box.la-3x{height:96px;width:96px}@-webkit-keyframes square-jelly-box-animate{17%{border-bottom-right-radius:10%}25%{transform:translateY(25%) rotate(22.5deg)}50%{border-bottom-right-radius:100%;transform:translateY(50%) scaleY(.9) rotate(45deg)}75%{transform:translateY(25%) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@keyframes square-jelly-box-animate{17%{border-bottom-right-radius:10%}25%{transform:translateY(25%) rotate(22.5deg)}50%{border-bottom-right-radius:100%;transform:translateY(50%) scaleY(.9) rotate(45deg)}75%{transform:translateY(25%) rotate(67.5deg)}to{transform:translateY(0) rotate(90deg)}}@-webkit-keyframes square-jelly-box-shadow{50%{transform:scaleX(1.25)}}@keyframes square-jelly-box-shadow{50%{transform:scaleX(1.25)}}.la-square-loader,.la-square-loader>div{box-sizing:border-box;position:relative}.la-square-loader{color:#fff;display:block;font-size:0}.la-square-loader.la-dark{color:#333}.la-square-loader>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-loader{height:32px;width:32px}.la-square-loader>div{-webkit-animation:square-loader 2s ease infinite;animation:square-loader 2s ease infinite;background:transparent;border-radius:0;border-width:2px;height:100%;width:100%}.la-square-loader>div:after{-webkit-animation:square-loader-inner 2s ease-in infinite;animation:square-loader-inner 2s ease-in infinite;background-color:currentColor;content:\"\";display:inline-block;vertical-align:top;width:100%}.la-square-loader.la-sm{height:16px;width:16px}.la-square-loader.la-sm>div{border-width:1px}.la-square-loader.la-2x{height:64px;width:64px}.la-square-loader.la-2x>div{border-width:4px}.la-square-loader.la-3x{height:96px;width:96px}.la-square-loader.la-3x>div{border-width:6px}@-webkit-keyframes square-loader{0%{transform:rotate(0deg)}25%{transform:rotate(180deg)}50%{transform:rotate(180deg)}75%{transform:rotate(1turn)}to{transform:rotate(1turn)}}@keyframes square-loader{0%{transform:rotate(0deg)}25%{transform:rotate(180deg)}50%{transform:rotate(180deg)}75%{transform:rotate(1turn)}to{transform:rotate(1turn)}}@-webkit-keyframes square-loader-inner{0%{height:0}25%{height:0}50%{height:100%}75%{height:100%}to{height:0}}@keyframes square-loader-inner{0%{height:0}25%{height:0}50%{height:100%}75%{height:100%}to{height:0}}.la-square-spin,.la-square-spin>div{box-sizing:border-box;position:relative}.la-square-spin{color:#fff;display:block;font-size:0}.la-square-spin.la-dark{color:#333}.la-square-spin>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-square-spin{height:32px;width:32px}.la-square-spin>div{-webkit-animation:square-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;animation:square-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;border-radius:0;height:100%;width:100%}.la-square-spin.la-sm{height:16px;width:16px}.la-square-spin.la-2x{height:64px;width:64px}.la-square-spin.la-3x{height:96px;width:96px}@-webkit-keyframes square-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}@keyframes square-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}.la-timer,.la-timer>div{box-sizing:border-box;position:relative}.la-timer{color:#fff;display:block;font-size:0}.la-timer.la-dark{color:#333}.la-timer>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-timer,.la-timer>div{height:32px;width:32px}.la-timer>div{background:transparent;border-radius:100%;border-width:2px}.la-timer>div:after,.la-timer>div:before{-webkit-animation:timer-loader 1.25s linear infinite;-webkit-animation-delay:-625ms;animation:timer-loader 1.25s linear infinite;animation-delay:-625ms;background:currentColor;border-radius:2px;content:\"\";display:block;left:14px;margin-left:-1px;margin-top:-1px;position:absolute;top:14px;transform-origin:1px 1px 0;width:2px}.la-timer>div:before{height:12px}.la-timer>div:after{-webkit-animation-delay:-7.5s;-webkit-animation-duration:15s;animation-delay:-7.5s;animation-duration:15s;height:8px}.la-timer.la-sm,.la-timer.la-sm>div{height:16px;width:16px}.la-timer.la-sm>div{border-width:1px}.la-timer.la-sm>div:after,.la-timer.la-sm>div:before{border-radius:1px;left:7px;margin-left:-.5px;margin-top:-.5px;top:7px;transform-origin:.5px .5px 0;width:1px}.la-timer.la-sm>div:before{height:6px}.la-timer.la-sm>div:after{height:4px}.la-timer.la-2x,.la-timer.la-2x>div{height:64px;width:64px}.la-timer.la-2x>div{border-width:4px}.la-timer.la-2x>div:after,.la-timer.la-2x>div:before{border-radius:4px;left:28px;margin-left:-2px;margin-top:-2px;top:28px;transform-origin:2px 2px 0;width:4px}.la-timer.la-2x>div:before{height:24px}.la-timer.la-2x>div:after{height:16px}.la-timer.la-3x,.la-timer.la-3x>div{height:96px;width:96px}.la-timer.la-3x>div{border-width:6px}.la-timer.la-3x>div:after,.la-timer.la-3x>div:before{border-radius:6px;left:42px;margin-left:-3px;margin-top:-3px;top:42px;transform-origin:3px 3px 0;width:6px}.la-timer.la-3x>div:before{height:36px}.la-timer.la-3x>div:after{height:24px}@-webkit-keyframes timer-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes timer-loader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.la-triangle-skew-spin,.la-triangle-skew-spin>div{box-sizing:border-box;position:relative}.la-triangle-skew-spin{color:#fff;display:block;font-size:0}.la-triangle-skew-spin.la-dark{color:#333}.la-triangle-skew-spin>div{background-color:currentColor;border:0 solid;display:inline-block;float:none}.la-triangle-skew-spin{height:16px;width:32px}.la-triangle-skew-spin>div{-webkit-animation:triangle-skew-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;animation:triangle-skew-spin 3s cubic-bezier(.09,.57,.49,.9) 0s infinite;background:transparent;border-color:currentcolor transparent;border-left:none;border-right:none;border-style:solid;border-width:0 16px 16px;height:0;width:0}.la-triangle-skew-spin.la-sm{height:8px;width:16px}.la-triangle-skew-spin.la-sm>div{border-width:0 8px 8px}.la-triangle-skew-spin.la-2x{height:32px;width:64px}.la-triangle-skew-spin.la-2x>div{border-width:0 32px 32px}.la-triangle-skew-spin.la-3x{height:48px;width:96px}.la-triangle-skew-spin.la-3x>div{border-width:0 48px 48px}@-webkit-keyframes triangle-skew-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}@keyframes triangle-skew-spin{0%{transform:perspective(100px) rotateX(0) rotateY(0)}25%{transform:perspective(100px) rotateX(180deg) rotateY(0)}50%{transform:perspective(100px) rotateX(180deg) rotateY(180deg)}75%{transform:perspective(100px) rotateX(0) rotateY(180deg)}to{transform:perspective(100px) rotateX(0) rotateY(1turn)}}.overlay{height:100%;left:0;position:fixed;top:0;width:100%}.overlay>div:not(.loading-text){left:50%;margin:0;position:absolute;top:50%;transform:translate(-50%,-50%)}.loading-text{left:50%;position:absolute;top:60%;transform:translate(-50%,-60%)}"]
  26761. }]
  26762. }], function () { return [{ type: NgxSpinnerService }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, { bdColor: [{
  26763. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26764. }], zIndex: [{
  26765. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26766. }], color: [{
  26767. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26768. }], type: [{
  26769. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26770. }], size: [{
  26771. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26772. }], fullScreen: [{
  26773. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26774. }], name: [{
  26775. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26776. }], template: [{
  26777. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26778. }] }); })();
  26779. class SafeHtmlPipe {
  26780. constructor(_sanitizer) {
  26781. this._sanitizer = _sanitizer;
  26782. }
  26783. transform(v) {
  26784. if (v) {
  26785. return this._sanitizer.bypassSecurityTrustHtml(v);
  26786. }
  26787. }
  26788. }
  26789. SafeHtmlPipe.ɵfac = function SafeHtmlPipe_Factory(t) { return new (t || SafeHtmlPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__["DomSanitizer"])); };
  26790. SafeHtmlPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "safeHtml", type: SafeHtmlPipe, pure: true });
  26791. SafeHtmlPipe.ctorParameters = () => [
  26792. { type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__["DomSanitizer"] }
  26793. ];
  26794. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SafeHtmlPipe, [{
  26795. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  26796. args: [{
  26797. name: 'safeHtml'
  26798. }]
  26799. }], function () { return [{ type: _angular_platform_browser__WEBPACK_IMPORTED_MODULE_5__["DomSanitizer"] }]; }, null); })();
  26800. class NgxSpinnerModule {
  26801. }
  26802. NgxSpinnerModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgxSpinnerModule });
  26803. NgxSpinnerModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgxSpinnerModule_Factory(t) { return new (t || NgxSpinnerModule)(); }, imports: [[
  26804. _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"]
  26805. ]] });
  26806. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgxSpinnerModule, { declarations: function () { return [NgxSpinnerComponent, SafeHtmlPipe]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"]]; }, exports: function () { return [NgxSpinnerComponent]; } }); })();
  26807. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgxSpinnerModule, [{
  26808. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  26809. args: [{
  26810. imports: [
  26811. _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"]
  26812. ],
  26813. declarations: [NgxSpinnerComponent, SafeHtmlPipe],
  26814. exports: [NgxSpinnerComponent]
  26815. }]
  26816. }], null, null); })();
  26817. /*
  26818. * Public API Surface of ngx-spinner
  26819. */
  26820. /**
  26821. * Generated bundle index. Do not edit.
  26822. */
  26823. //# sourceMappingURL=ngx-spinner.js.map
  26824. /***/ }),
  26825. /***/ "K7De":
  26826. /*!********************************************************************!*\
  26827. !*** ./node_modules/rxjs/_esm2015/internal/operators/findIndex.js ***!
  26828. \********************************************************************/
  26829. /*! exports provided: findIndex */
  26830. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26831. "use strict";
  26832. __webpack_require__.r(__webpack_exports__);
  26833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findIndex", function() { return findIndex; });
  26834. /* harmony import */ var _operators_find__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../operators/find */ "cBqT");
  26835. function findIndex(predicate, thisArg) {
  26836. return (source) => source.lift(new _operators_find__WEBPACK_IMPORTED_MODULE_0__["FindValueOperator"](predicate, source, true, thisArg));
  26837. }
  26838. //# sourceMappingURL=findIndex.js.map
  26839. /***/ }),
  26840. /***/ "KXWd":
  26841. /*!********************************************************************************************************!*\
  26842. !*** ./node_modules/ng2-handy-syntax-highlighter/__ivy_ngcc__/esm2015/ng2-handy-syntax-highlighter.js ***!
  26843. \********************************************************************************************************/
  26844. /*! exports provided: Ng2HandySyntaxHighlighterModule, ɵb, ɵa */
  26845. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26846. "use strict";
  26847. __webpack_require__.r(__webpack_exports__);
  26848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Ng2HandySyntaxHighlighterModule", function() { return Ng2HandySyntaxHighlighterModule; });
  26849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵb", function() { return HandySyntaxHighlighterComponent; });
  26850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵa", function() { return HighlighterDirective; });
  26851. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  26852. /**
  26853. * @fileoverview added by tsickle
  26854. * @suppress {checkTypes} checked by tsc
  26855. */
  26856. class HighlighterDirective {
  26857. /**
  26858. * @param {?} eltRef
  26859. */
  26860. constructor(eltRef) {
  26861. this.eltRef = eltRef;
  26862. }
  26863. /**
  26864. * @return {?}
  26865. */
  26866. ngAfterViewInit() {
  26867. this.eltRef.nativeElement.innerHTML = Prism.highlight(this.content, Prism.languages[this.language]);
  26868. }
  26869. }
  26870. HighlighterDirective.ɵfac = function HighlighterDirective_Factory(t) { return new (t || HighlighterDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  26871. HighlighterDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: HighlighterDirective, selectors: [["", "highlighter", ""]], inputs: { language: "language", content: "content" } });
  26872. /** @nocollapse */
  26873. HighlighterDirective.ctorParameters = () => [
  26874. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], },
  26875. ];
  26876. HighlighterDirective.propDecorators = {
  26877. "language": [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] },],
  26878. "content": [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] },],
  26879. };
  26880. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HighlighterDirective, [{
  26881. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  26882. args: [{
  26883. selector: '[highlighter]'
  26884. }]
  26885. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { language: [{
  26886. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26887. }], content: [{
  26888. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26889. }] }); })();
  26890. /**
  26891. * @fileoverview added by tsickle
  26892. * @suppress {checkTypes} checked by tsc
  26893. */
  26894. class HandySyntaxHighlighterComponent {
  26895. }
  26896. HandySyntaxHighlighterComponent.ɵfac = function HandySyntaxHighlighterComponent_Factory(t) { return new (t || HandySyntaxHighlighterComponent)(); };
  26897. HandySyntaxHighlighterComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: HandySyntaxHighlighterComponent, selectors: [["handy-syntax-highlighter"]], inputs: { language: "language", content: "content" }, decls: 4, vars: 5, consts: [["highlighter", "", 3, "language", "content"]], template: function HandySyntaxHighlighterComponent_Template(rf, ctx) { if (rf & 1) {
  26898. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "pre");
  26899. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, " ");
  26900. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "code", 0);
  26901. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3, "\n ");
  26902. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  26903. } if (rf & 2) {
  26904. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassMapInterpolate1"]("language-", ctx.language, "");
  26905. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  26906. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("language", ctx.language)("content", ctx.content);
  26907. } }, directives: [HighlighterDirective], styles: [".tag[_ngcontent-%COMP%]{font-size:14px!important;padding:0!important}.h1-top[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#1f2021}pre[_ngcontent-%COMP%]{font-size:14px!important;line-height:1.4!important;padding-bottom:0!important}"] });
  26908. /** @nocollapse */
  26909. HandySyntaxHighlighterComponent.ctorParameters = () => [];
  26910. HandySyntaxHighlighterComponent.propDecorators = {
  26911. "language": [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] },],
  26912. "content": [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] },],
  26913. };
  26914. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HandySyntaxHighlighterComponent, [{
  26915. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  26916. args: [{
  26917. selector: 'handy-syntax-highlighter',
  26918. styles: [`.tag{font-size:14px!important;padding:0!important}.h1-top a{color:#1f2021}pre{font-size:14px!important;line-height:1.4!important;padding-bottom:0!important}`],
  26919. template: `
  26920. <pre class="language-{{language}}">
  26921. <code highlighter [language]="language" [content]="content"></code>
  26922. </pre>
  26923. `
  26924. }]
  26925. }], null, { language: [{
  26926. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26927. }], content: [{
  26928. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  26929. }] }); })();
  26930. /**
  26931. * @fileoverview added by tsickle
  26932. * @suppress {checkTypes} checked by tsc
  26933. */
  26934. class Ng2HandySyntaxHighlighterModule {
  26935. }
  26936. Ng2HandySyntaxHighlighterModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: Ng2HandySyntaxHighlighterModule });
  26937. Ng2HandySyntaxHighlighterModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function Ng2HandySyntaxHighlighterModule_Factory(t) { return new (t || Ng2HandySyntaxHighlighterModule)(); } });
  26938. /** @nocollapse */
  26939. Ng2HandySyntaxHighlighterModule.ctorParameters = () => [];
  26940. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](Ng2HandySyntaxHighlighterModule, { declarations: [HighlighterDirective, HandySyntaxHighlighterComponent], exports: [HandySyntaxHighlighterComponent] }); })();
  26941. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Ng2HandySyntaxHighlighterModule, [{
  26942. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  26943. args: [{
  26944. declarations: [HighlighterDirective, HandySyntaxHighlighterComponent],
  26945. exports: [HandySyntaxHighlighterComponent]
  26946. }]
  26947. }], null, null); })();
  26948. /**
  26949. * @fileoverview added by tsickle
  26950. * @suppress {checkTypes} checked by tsc
  26951. */
  26952. /**
  26953. * @fileoverview added by tsickle
  26954. * @suppress {checkTypes} checked by tsc
  26955. */
  26956. /**
  26957. * Generated bundle index. Do not edit.
  26958. */
  26959. //# sourceMappingURL=ng2-handy-syntax-highlighter.js.map
  26960. /***/ }),
  26961. /***/ "Kj3r":
  26962. /*!***********************************************************************!*\
  26963. !*** ./node_modules/rxjs/_esm2015/internal/operators/debounceTime.js ***!
  26964. \***********************************************************************/
  26965. /*! exports provided: debounceTime */
  26966. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  26967. "use strict";
  26968. __webpack_require__.r(__webpack_exports__);
  26969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "debounceTime", function() { return debounceTime; });
  26970. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  26971. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  26972. function debounceTime(dueTime, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"]) {
  26973. return (source) => source.lift(new DebounceTimeOperator(dueTime, scheduler));
  26974. }
  26975. class DebounceTimeOperator {
  26976. constructor(dueTime, scheduler) {
  26977. this.dueTime = dueTime;
  26978. this.scheduler = scheduler;
  26979. }
  26980. call(subscriber, source) {
  26981. return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));
  26982. }
  26983. }
  26984. class DebounceTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  26985. constructor(destination, dueTime, scheduler) {
  26986. super(destination);
  26987. this.dueTime = dueTime;
  26988. this.scheduler = scheduler;
  26989. this.debouncedSubscription = null;
  26990. this.lastValue = null;
  26991. this.hasValue = false;
  26992. }
  26993. _next(value) {
  26994. this.clearDebounce();
  26995. this.lastValue = value;
  26996. this.hasValue = true;
  26997. this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));
  26998. }
  26999. _complete() {
  27000. this.debouncedNext();
  27001. this.destination.complete();
  27002. }
  27003. debouncedNext() {
  27004. this.clearDebounce();
  27005. if (this.hasValue) {
  27006. const { lastValue } = this;
  27007. this.lastValue = null;
  27008. this.hasValue = false;
  27009. this.destination.next(lastValue);
  27010. }
  27011. }
  27012. clearDebounce() {
  27013. const debouncedSubscription = this.debouncedSubscription;
  27014. if (debouncedSubscription !== null) {
  27015. this.remove(debouncedSubscription);
  27016. debouncedSubscription.unsubscribe();
  27017. this.debouncedSubscription = null;
  27018. }
  27019. }
  27020. }
  27021. function dispatchNext(subscriber) {
  27022. subscriber.debouncedNext();
  27023. }
  27024. //# sourceMappingURL=debounceTime.js.map
  27025. /***/ }),
  27026. /***/ "Kqap":
  27027. /*!***************************************************************!*\
  27028. !*** ./node_modules/rxjs/_esm2015/internal/operators/scan.js ***!
  27029. \***************************************************************/
  27030. /*! exports provided: scan */
  27031. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27032. "use strict";
  27033. __webpack_require__.r(__webpack_exports__);
  27034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return scan; });
  27035. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  27036. function scan(accumulator, seed) {
  27037. let hasSeed = false;
  27038. if (arguments.length >= 2) {
  27039. hasSeed = true;
  27040. }
  27041. return function scanOperatorFunction(source) {
  27042. return source.lift(new ScanOperator(accumulator, seed, hasSeed));
  27043. };
  27044. }
  27045. class ScanOperator {
  27046. constructor(accumulator, seed, hasSeed = false) {
  27047. this.accumulator = accumulator;
  27048. this.seed = seed;
  27049. this.hasSeed = hasSeed;
  27050. }
  27051. call(subscriber, source) {
  27052. return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));
  27053. }
  27054. }
  27055. class ScanSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  27056. constructor(destination, accumulator, _seed, hasSeed) {
  27057. super(destination);
  27058. this.accumulator = accumulator;
  27059. this._seed = _seed;
  27060. this.hasSeed = hasSeed;
  27061. this.index = 0;
  27062. }
  27063. get seed() {
  27064. return this._seed;
  27065. }
  27066. set seed(value) {
  27067. this.hasSeed = true;
  27068. this._seed = value;
  27069. }
  27070. _next(value) {
  27071. if (!this.hasSeed) {
  27072. this.seed = value;
  27073. this.destination.next(value);
  27074. }
  27075. else {
  27076. return this._tryNext(value);
  27077. }
  27078. }
  27079. _tryNext(value) {
  27080. const index = this.index++;
  27081. let result;
  27082. try {
  27083. result = this.accumulator(this.seed, value, index);
  27084. }
  27085. catch (err) {
  27086. this.destination.error(err);
  27087. }
  27088. this.seed = result;
  27089. this.destination.next(result);
  27090. }
  27091. }
  27092. //# sourceMappingURL=scan.js.map
  27093. /***/ }),
  27094. /***/ "KqfI":
  27095. /*!**********************************************************!*\
  27096. !*** ./node_modules/rxjs/_esm2015/internal/util/noop.js ***!
  27097. \**********************************************************/
  27098. /*! exports provided: noop */
  27099. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27100. "use strict";
  27101. __webpack_require__.r(__webpack_exports__);
  27102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return noop; });
  27103. function noop() { }
  27104. //# sourceMappingURL=noop.js.map
  27105. /***/ }),
  27106. /***/ "LRne":
  27107. /*!**************************************************************!*\
  27108. !*** ./node_modules/rxjs/_esm2015/internal/observable/of.js ***!
  27109. \**************************************************************/
  27110. /*! exports provided: of */
  27111. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27112. "use strict";
  27113. __webpack_require__.r(__webpack_exports__);
  27114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "of", function() { return of; });
  27115. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  27116. /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fromArray */ "yCtX");
  27117. /* harmony import */ var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scheduled/scheduleArray */ "jZKg");
  27118. function of(...args) {
  27119. let scheduler = args[args.length - 1];
  27120. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__["isScheduler"])(scheduler)) {
  27121. args.pop();
  27122. return Object(_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(args, scheduler);
  27123. }
  27124. else {
  27125. return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__["fromArray"])(args);
  27126. }
  27127. }
  27128. //# sourceMappingURL=of.js.map
  27129. /***/ }),
  27130. /***/ "Lhse":
  27131. /*!****************************************************************!*\
  27132. !*** ./node_modules/rxjs/_esm2015/internal/symbol/iterator.js ***!
  27133. \****************************************************************/
  27134. /*! exports provided: getSymbolIterator, iterator, $$iterator */
  27135. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27136. "use strict";
  27137. __webpack_require__.r(__webpack_exports__);
  27138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSymbolIterator", function() { return getSymbolIterator; });
  27139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iterator", function() { return iterator; });
  27140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "$$iterator", function() { return $$iterator; });
  27141. function getSymbolIterator() {
  27142. if (typeof Symbol !== 'function' || !Symbol.iterator) {
  27143. return '@@iterator';
  27144. }
  27145. return Symbol.iterator;
  27146. }
  27147. const iterator = getSymbolIterator();
  27148. const $$iterator = iterator;
  27149. //# sourceMappingURL=iterator.js.map
  27150. /***/ }),
  27151. /***/ "Ljk9":
  27152. /*!***********************************************************************************!*\
  27153. !*** ./node_modules/angular-gridster2/__ivy_ngcc__/fesm2015/angular-gridster2.js ***!
  27154. \***********************************************************************************/
  27155. /*! exports provided: CompactType, DirTypes, DisplayGrid, GridType, GridsterComponent, GridsterComponentInterface, GridsterConfigService, GridsterItemComponent, GridsterItemComponentInterface, GridsterModule, GridsterPush, GridsterPushResize, GridsterSwap, ɵa */
  27156. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  27157. "use strict";
  27158. __webpack_require__.r(__webpack_exports__);
  27159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompactType", function() { return CompactType; });
  27160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirTypes", function() { return DirTypes; });
  27161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DisplayGrid", function() { return DisplayGrid; });
  27162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridType", function() { return GridType; });
  27163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterComponent", function() { return GridsterComponent; });
  27164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterComponentInterface", function() { return GridsterComponentInterface; });
  27165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterConfigService", function() { return GridsterConfigService; });
  27166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterItemComponent", function() { return GridsterItemComponent; });
  27167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterItemComponentInterface", function() { return GridsterItemComponentInterface; });
  27168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterModule", function() { return GridsterModule; });
  27169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterPush", function() { return GridsterPush; });
  27170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterPushResize", function() { return GridsterPushResize; });
  27171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GridsterSwap", function() { return GridsterSwap; });
  27172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵa", function() { return GridsterPreviewComponent; });
  27173. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  27174. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
  27175. function GridsterComponent_div_0_Template(rf, ctx) { if (rf & 1) {
  27176. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 3);
  27177. } if (rf & 2) {
  27178. const i_r3 = ctx.index;
  27179. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  27180. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", ctx_r0.gridRenderer.getGridColumnStyle(i_r3));
  27181. } }
  27182. function GridsterComponent_div_1_Template(rf, ctx) { if (rf & 1) {
  27183. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 4);
  27184. } if (rf & 2) {
  27185. const i_r5 = ctx.index;
  27186. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  27187. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngStyle", ctx_r1.gridRenderer.getGridRowStyle(i_r5));
  27188. } }
  27189. const _c0 = ["*"];
  27190. function GridsterItemComponent_div_1_Template(rf, ctx) { if (rf & 1) {
  27191. const _r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  27192. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
  27193. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GridsterItemComponent_div_1_Template_div_mousedown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r8.resize.dragStartDelay($event); })("touchstart", function GridsterItemComponent_div_1_Template_div_touchstart_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r9); const ctx_r10 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r10.resize.dragStartDelay($event); });
  27194. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  27195. } }
  27196. function GridsterItemComponent_div_2_Template(rf, ctx) { if (rf & 1) {
  27197. const _r12 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  27198. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 9);
  27199. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GridsterItemComponent_div_2_Template_div_mousedown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r11.resize.dragStartDelay($event); })("touchstart", function GridsterItemComponent_div_2_Template_div_touchstart_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r12); const ctx_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r13.resize.dragStartDelay($event); });
  27200. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  27201. } }
  27202. function GridsterItemComponent_div_3_Template(rf, ctx) { if (rf & 1) {
  27203. const _r15 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  27204. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 10);
  27205. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GridsterItemComponent_div_3_Template_div_mousedown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r14.resize.dragStartDelay($event); })("touchstart", function GridsterItemComponent_div_3_Template_div_touchstart_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r15); const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r16.resize.dragStartDelay($event); });
  27206. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  27207. } }
  27208. function GridsterItemComponent_div_4_Template(rf, ctx) { if (rf & 1) {
  27209. const _r18 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  27210. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 11);
  27211. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GridsterItemComponent_div_4_Template_div_mousedown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r17 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r17.resize.dragStartDelay($event); })("touchstart", function GridsterItemComponent_div_4_Template_div_touchstart_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r18); const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r19.resize.dragStartDelay($event); });
  27212. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  27213. } }
  27214. function GridsterItemComponent_div_5_Template(rf, ctx) { if (rf & 1) {
  27215. const _r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  27216. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
  27217. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GridsterItemComponent_div_5_Template_div_mousedown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r20.resize.dragStartDelay($event); })("touchstart", function GridsterItemComponent_div_5_Template_div_touchstart_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r21); const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r22.resize.dragStartDelay($event); });
  27218. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  27219. } }
  27220. function GridsterItemComponent_div_6_Template(rf, ctx) { if (rf & 1) {
  27221. const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  27222. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 13);
  27223. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GridsterItemComponent_div_6_Template_div_mousedown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r24); const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r23.resize.dragStartDelay($event); })("touchstart", function GridsterItemComponent_div_6_Template_div_touchstart_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r24); const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r25.resize.dragStartDelay($event); });
  27224. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  27225. } }
  27226. function GridsterItemComponent_div_7_Template(rf, ctx) { if (rf & 1) {
  27227. const _r27 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  27228. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 14);
  27229. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GridsterItemComponent_div_7_Template_div_mousedown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r27); const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r26.resize.dragStartDelay($event); })("touchstart", function GridsterItemComponent_div_7_Template_div_touchstart_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r27); const ctx_r28 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r28.resize.dragStartDelay($event); });
  27230. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  27231. } }
  27232. function GridsterItemComponent_div_8_Template(rf, ctx) { if (rf & 1) {
  27233. const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  27234. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 15);
  27235. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function GridsterItemComponent_div_8_Template_div_mousedown_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r29.resize.dragStartDelay($event); })("touchstart", function GridsterItemComponent_div_8_Template_div_touchstart_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r31.resize.dragStartDelay($event); });
  27236. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  27237. } }
  27238. class GridsterComponentInterface {
  27239. }
  27240. var GridType;
  27241. (function (GridType) {
  27242. GridType["Fit"] = "fit";
  27243. GridType["ScrollVertical"] = "scrollVertical";
  27244. GridType["ScrollHorizontal"] = "scrollHorizontal";
  27245. GridType["Fixed"] = "fixed";
  27246. GridType["VerticalFixed"] = "verticalFixed";
  27247. GridType["HorizontalFixed"] = "horizontalFixed";
  27248. })(GridType || (GridType = {}));
  27249. var DisplayGrid;
  27250. (function (DisplayGrid) {
  27251. DisplayGrid["Always"] = "always";
  27252. DisplayGrid["OnDragAndResize"] = "onDrag&Resize";
  27253. DisplayGrid["None"] = "none";
  27254. })(DisplayGrid || (DisplayGrid = {}));
  27255. var CompactType;
  27256. (function (CompactType) {
  27257. CompactType["None"] = "none";
  27258. CompactType["CompactUp"] = "compactUp";
  27259. CompactType["CompactLeft"] = "compactLeft";
  27260. CompactType["CompactUpAndLeft"] = "compactUp&Left";
  27261. CompactType["CompactLeftAndUp"] = "compactLeft&Up";
  27262. CompactType["CompactRight"] = "compactRight";
  27263. CompactType["CompactUpAndRight"] = "compactUp&Right";
  27264. CompactType["CompactRightAndUp"] = "compactRight&Up";
  27265. })(CompactType || (CompactType = {}));
  27266. var DirTypes;
  27267. (function (DirTypes) {
  27268. DirTypes["LTR"] = "ltr";
  27269. DirTypes["RTL"] = "rtl";
  27270. })(DirTypes || (DirTypes = {}));
  27271. class GridsterCompact {
  27272. constructor(gridster) {
  27273. this.gridster = gridster;
  27274. }
  27275. destroy() {
  27276. // @ts-ignore
  27277. delete this.gridster;
  27278. }
  27279. checkCompact() {
  27280. if (this.gridster.$options.compactType !== CompactType.None) {
  27281. if (this.gridster.$options.compactType === CompactType.CompactUp) {
  27282. this.checkCompactUp();
  27283. }
  27284. else if (this.gridster.$options.compactType === CompactType.CompactLeft) {
  27285. this.checkCompactLeft();
  27286. }
  27287. else if (this.gridster.$options.compactType === CompactType.CompactUpAndLeft) {
  27288. this.checkCompactUp();
  27289. this.checkCompactLeft();
  27290. }
  27291. else if (this.gridster.$options.compactType === CompactType.CompactLeftAndUp) {
  27292. this.checkCompactLeft();
  27293. this.checkCompactUp();
  27294. }
  27295. else if (this.gridster.$options.compactType === CompactType.CompactRight) {
  27296. this.checkCompactRight();
  27297. }
  27298. else if (this.gridster.$options.compactType === CompactType.CompactUpAndRight) {
  27299. this.checkCompactUp();
  27300. this.checkCompactRight();
  27301. }
  27302. else if (this.gridster.$options.compactType === CompactType.CompactRightAndUp) {
  27303. this.checkCompactRight();
  27304. this.checkCompactUp();
  27305. }
  27306. }
  27307. }
  27308. checkCompactItem(item) {
  27309. if (this.gridster.$options.compactType !== CompactType.None) {
  27310. if (this.gridster.$options.compactType === CompactType.CompactUp) {
  27311. this.moveUpTillCollision(item);
  27312. }
  27313. else if (this.gridster.$options.compactType === CompactType.CompactLeft) {
  27314. this.moveLeftTillCollision(item);
  27315. }
  27316. else if (this.gridster.$options.compactType === CompactType.CompactUpAndLeft) {
  27317. this.moveUpTillCollision(item);
  27318. this.moveLeftTillCollision(item);
  27319. }
  27320. else if (this.gridster.$options.compactType === CompactType.CompactLeftAndUp) {
  27321. this.moveLeftTillCollision(item);
  27322. this.moveUpTillCollision(item);
  27323. }
  27324. else if (this.gridster.$options.compactType === CompactType.CompactUpAndRight) {
  27325. this.moveUpTillCollision(item);
  27326. this.moveRightTillCollision(item);
  27327. }
  27328. }
  27329. }
  27330. checkCompactUp() {
  27331. let widgetMovedUp = false;
  27332. let widget;
  27333. let moved;
  27334. const l = this.gridster.grid.length;
  27335. for (let i = 0; i < l; i++) {
  27336. widget = this.gridster.grid[i];
  27337. if (widget.$item.compactEnabled === false) {
  27338. continue;
  27339. }
  27340. moved = this.moveUpTillCollision(widget.$item);
  27341. if (moved) {
  27342. widgetMovedUp = true;
  27343. widget.item.y = widget.$item.y;
  27344. widget.itemChanged();
  27345. }
  27346. }
  27347. if (widgetMovedUp) {
  27348. this.checkCompact();
  27349. }
  27350. }
  27351. moveUpTillCollision(item) {
  27352. item.y -= 1;
  27353. if (this.gridster.checkCollision(item)) {
  27354. item.y += 1;
  27355. return false;
  27356. }
  27357. else {
  27358. this.moveUpTillCollision(item);
  27359. return true;
  27360. }
  27361. }
  27362. checkCompactLeft() {
  27363. let widgetMovedUp = false;
  27364. let widget;
  27365. let moved;
  27366. const l = this.gridster.grid.length;
  27367. for (let i = 0; i < l; i++) {
  27368. widget = this.gridster.grid[i];
  27369. if (widget.$item.compactEnabled === false) {
  27370. continue;
  27371. }
  27372. moved = this.moveLeftTillCollision(widget.$item);
  27373. if (moved) {
  27374. widgetMovedUp = true;
  27375. widget.item.x = widget.$item.x;
  27376. widget.itemChanged();
  27377. }
  27378. }
  27379. if (widgetMovedUp) {
  27380. this.checkCompact();
  27381. }
  27382. }
  27383. checkCompactRight() {
  27384. let widgetMovedUp = false;
  27385. let widget;
  27386. let moved;
  27387. const l = this.gridster.grid.length;
  27388. for (let i = 0; i < l; i++) {
  27389. widget = this.gridster.grid[i];
  27390. if (widget.$item.compactEnabled === false) {
  27391. continue;
  27392. }
  27393. moved = this.moveRightTillCollision(widget.$item);
  27394. if (moved) {
  27395. widgetMovedUp = true;
  27396. widget.item.x = widget.$item.x;
  27397. widget.itemChanged();
  27398. }
  27399. }
  27400. if (widgetMovedUp) {
  27401. this.checkCompact();
  27402. }
  27403. }
  27404. moveLeftTillCollision(item) {
  27405. item.x -= 1;
  27406. if (this.gridster.checkCollision(item)) {
  27407. item.x += 1;
  27408. return false;
  27409. }
  27410. else {
  27411. this.moveLeftTillCollision(item);
  27412. return true;
  27413. }
  27414. }
  27415. moveRightTillCollision(item) {
  27416. item.x += 1;
  27417. if (this.gridster.checkCollision(item)) {
  27418. item.x -= 1;
  27419. return false;
  27420. }
  27421. else {
  27422. this.moveRightTillCollision(item);
  27423. return true;
  27424. }
  27425. }
  27426. }
  27427. GridsterCompact.ɵfac = function GridsterCompact_Factory(t) { return new (t || GridsterCompact)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterComponentInterface)); };
  27428. GridsterCompact.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterCompact, factory: GridsterCompact.ɵfac });
  27429. GridsterCompact.ctorParameters = () => [
  27430. { type: GridsterComponentInterface }
  27431. ];
  27432. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterCompact, [{
  27433. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  27434. }], function () { return [{ type: GridsterComponentInterface }]; }, null); })();
  27435. const GridsterConfigService = {
  27436. gridType: GridType.Fit,
  27437. scale: 1,
  27438. // 'scrollVertical' will fit on width and height of the items will be the same as the width
  27439. // 'scrollHorizontal' will fit on height and width of the items will be the same as the height
  27440. // 'fixed' will set the rows and columns dimensions based on fixedColWidth and fixedRowHeight options
  27441. // 'verticalFixed' will set the rows to fixedRowHeight and columns width will fit the space available
  27442. // 'horizontalFixed' will set the columns to fixedColWidth and rows height will fit the space available
  27443. fixedColWidth: 250,
  27444. fixedRowHeight: 250,
  27445. keepFixedHeightInMobile: false,
  27446. keepFixedWidthInMobile: false,
  27447. setGridSize: false,
  27448. compactType: CompactType.None,
  27449. mobileBreakpoint: 640,
  27450. allowMultiLayer: false,
  27451. defaultLayerIndex: 0,
  27452. maxLayerIndex: 2,
  27453. baseLayerIndex: 1,
  27454. minCols: 1,
  27455. maxCols: 100,
  27456. minRows: 1,
  27457. maxRows: 100,
  27458. defaultItemCols: 1,
  27459. defaultItemRows: 1,
  27460. maxItemCols: 50,
  27461. maxItemRows: 50,
  27462. minItemCols: 1,
  27463. minItemRows: 1,
  27464. minItemArea: 1,
  27465. maxItemArea: 2500,
  27466. margin: 10,
  27467. outerMargin: true,
  27468. outerMarginTop: null,
  27469. outerMarginRight: null,
  27470. outerMarginBottom: null,
  27471. outerMarginLeft: null,
  27472. useTransformPositioning: true,
  27473. scrollSensitivity: 10,
  27474. scrollSpeed: 20,
  27475. initCallback: undefined,
  27476. destroyCallback: undefined,
  27477. gridSizeChangedCallback: undefined,
  27478. itemChangeCallback: undefined,
  27479. // Arguments: gridsterItem, gridsterItemComponent
  27480. itemResizeCallback: undefined,
  27481. // Arguments: gridsterItem, gridsterItemComponent
  27482. itemInitCallback: undefined,
  27483. // Arguments: gridsterItem, gridsterItemComponent
  27484. itemRemovedCallback: undefined,
  27485. // Arguments: gridsterItem, gridsterItemComponent
  27486. itemValidateCallback: undefined,
  27487. // Arguments: gridsterItem
  27488. enableEmptyCellClick: false,
  27489. enableEmptyCellContextMenu: false,
  27490. enableEmptyCellDrop: false,
  27491. enableEmptyCellDrag: false,
  27492. enableOccupiedCellDrop: false,
  27493. emptyCellClickCallback: undefined,
  27494. emptyCellContextMenuCallback: undefined,
  27495. emptyCellDropCallback: undefined,
  27496. emptyCellDragCallback: undefined,
  27497. emptyCellDragMaxCols: 50,
  27498. emptyCellDragMaxRows: 50,
  27499. // Arguments: event, gridsterItem{x, y, rows: defaultItemRows, cols: defaultItemCols}
  27500. ignoreMarginInRow: false,
  27501. draggable: {
  27502. delayStart: 0,
  27503. enabled: false,
  27504. ignoreContentClass: 'gridster-item-content',
  27505. ignoreContent: false,
  27506. dragHandleClass: 'drag-handler',
  27507. stop: undefined,
  27508. start: undefined,
  27509. // Arguments: item, gridsterItem, event
  27510. dropOverItems: false,
  27511. dropOverItemsCallback: undefined // callback on drop over another item
  27512. // Arguments: source, target, gridComponent
  27513. },
  27514. resizable: {
  27515. delayStart: 0,
  27516. enabled: false,
  27517. handles: {
  27518. s: true,
  27519. e: true,
  27520. n: true,
  27521. w: true,
  27522. se: true,
  27523. ne: true,
  27524. sw: true,
  27525. nw: true
  27526. },
  27527. stop: undefined,
  27528. start: undefined // callback when resizing an item starts.
  27529. // Arguments: item, gridsterItem, event
  27530. },
  27531. swap: true,
  27532. swapWhileDragging: false,
  27533. pushItems: false,
  27534. disablePushOnDrag: false,
  27535. disablePushOnResize: false,
  27536. pushDirections: { north: true, east: true, south: true, west: true },
  27537. pushResizeItems: false,
  27538. displayGrid: DisplayGrid.OnDragAndResize,
  27539. disableWindowResize: false,
  27540. disableWarnings: false,
  27541. scrollToNewItems: false,
  27542. disableScrollHorizontal: false,
  27543. disableScrollVertical: false,
  27544. disableAutoPositionOnConflict: false,
  27545. dirType: DirTypes.LTR,
  27546. };
  27547. class GridsterUtils {
  27548. // tslint:disable-next-line:no-any
  27549. static merge(obj1, obj2, properties) {
  27550. for (const p in obj2) {
  27551. if (obj2[p] !== void 0 && properties.hasOwnProperty(p)) {
  27552. if (typeof obj2[p] === 'object') {
  27553. obj1[p] = GridsterUtils.merge(obj1[p], obj2[p], properties[p]);
  27554. }
  27555. else {
  27556. obj1[p] = obj2[p];
  27557. }
  27558. }
  27559. }
  27560. return obj1;
  27561. }
  27562. static debounce(func, wait) {
  27563. let timeout;
  27564. return function () {
  27565. const context = this;
  27566. const args = arguments;
  27567. const later = () => {
  27568. timeout = undefined;
  27569. func.apply(context, args);
  27570. };
  27571. clearTimeout(timeout);
  27572. timeout = setTimeout(later, wait);
  27573. };
  27574. }
  27575. // tslint:disable-next-line:no-any
  27576. static checkTouchEvent(e) {
  27577. if (e.clientX === undefined && e.touches) {
  27578. if (e.touches && e.touches.length) {
  27579. e.clientX = e.touches[0].clientX;
  27580. e.clientY = e.touches[0].clientY;
  27581. }
  27582. else if (e.changedTouches && e.changedTouches.length) {
  27583. e.clientX = e.changedTouches[0].clientX;
  27584. e.clientY = e.changedTouches[0].clientY;
  27585. }
  27586. }
  27587. }
  27588. static checkContentClassForEvent(gridster, e) {
  27589. if (gridster.$options.draggable.ignoreContent) {
  27590. if (!GridsterUtils.checkDragHandleClass(e.target, e.currentTarget, gridster.$options.draggable.dragHandleClass, gridster.$options.draggable.ignoreContentClass)) {
  27591. return true;
  27592. }
  27593. }
  27594. else {
  27595. if (GridsterUtils.checkContentClass(e.target, e.currentTarget, gridster.$options.draggable.ignoreContentClass)) {
  27596. return true;
  27597. }
  27598. }
  27599. return false;
  27600. }
  27601. static checkContentClassForEmptyCellClickEvent(gridster, e) {
  27602. return GridsterUtils.checkContentClass(e.target, e.currentTarget, gridster.$options.draggable.ignoreContentClass)
  27603. || GridsterUtils.checkContentClass(e.target, e.currentTarget, gridster.$options.draggable.dragHandleClass);
  27604. }
  27605. static checkDragHandleClass(target, current, dragHandleClass, ignoreContentClass) {
  27606. if (!target || target === current) {
  27607. return false;
  27608. }
  27609. if (target.hasAttribute('class')) {
  27610. // @ts-ignore
  27611. const classnames = target.getAttribute('class').split(' ');
  27612. if (classnames.indexOf(dragHandleClass) > -1) {
  27613. return true;
  27614. }
  27615. if (classnames.indexOf(ignoreContentClass) > -1) {
  27616. return false;
  27617. }
  27618. }
  27619. // @ts-ignore
  27620. return GridsterUtils.checkDragHandleClass(target.parentNode, current, dragHandleClass, ignoreContentClass);
  27621. }
  27622. static checkContentClass(target, current, contentClass) {
  27623. if (!target || target === current) {
  27624. return false;
  27625. }
  27626. // @ts-ignore
  27627. if (target.hasAttribute('class') && target.getAttribute('class').split(' ').indexOf(contentClass) > -1) {
  27628. return true;
  27629. }
  27630. else {
  27631. // @ts-ignore
  27632. return GridsterUtils.checkContentClass(target.parentNode, current, contentClass);
  27633. }
  27634. }
  27635. static compareItems(a, b) {
  27636. if (a.y > b.y) {
  27637. return -1;
  27638. }
  27639. else if (a.y < b.y) {
  27640. return 1;
  27641. }
  27642. else if (a.x > b.x) {
  27643. return -1;
  27644. }
  27645. else {
  27646. return 1;
  27647. }
  27648. }
  27649. }
  27650. GridsterUtils.ɵfac = function GridsterUtils_Factory(t) { return new (t || GridsterUtils)(); };
  27651. GridsterUtils.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterUtils, factory: GridsterUtils.ɵfac });
  27652. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterUtils, [{
  27653. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  27654. }], null, null); })();
  27655. class GridsterEmptyCell {
  27656. constructor(gridster) {
  27657. this.gridster = gridster;
  27658. }
  27659. destroy() {
  27660. // @ts-ignore
  27661. delete this.initialItem;
  27662. // @ts-ignore
  27663. delete this.gridster.movingItem;
  27664. if (this.gridster.previewStyle) {
  27665. this.gridster.previewStyle();
  27666. }
  27667. // @ts-ignore
  27668. delete this.gridster;
  27669. if (this.emptyCellExit) {
  27670. this.emptyCellExit();
  27671. this.emptyCellExit = null;
  27672. }
  27673. }
  27674. updateOptions() {
  27675. if (this.gridster.$options.enableEmptyCellClick && !this.emptyCellClick && this.gridster.options.emptyCellClickCallback) {
  27676. this.emptyCellClick = this.gridster.renderer.listen(this.gridster.el, 'click', this.emptyCellClickCb.bind(this));
  27677. this.emptyCellClickTouch = this.gridster.renderer.listen(this.gridster.el, 'touchend', this.emptyCellClickCb.bind(this));
  27678. }
  27679. else if (!this.gridster.$options.enableEmptyCellClick && this.emptyCellClick && this.emptyCellClickTouch) {
  27680. this.emptyCellClick();
  27681. this.emptyCellClickTouch();
  27682. this.emptyCellClick = null;
  27683. this.emptyCellClickTouch = null;
  27684. }
  27685. if (this.gridster.$options.enableEmptyCellContextMenu && !this.emptyCellContextMenu &&
  27686. this.gridster.options.emptyCellContextMenuCallback) {
  27687. this.emptyCellContextMenu = this.gridster.renderer.listen(this.gridster.el, 'contextmenu', this.emptyCellContextMenuCb.bind(this));
  27688. }
  27689. else if (!this.gridster.$options.enableEmptyCellContextMenu && this.emptyCellContextMenu) {
  27690. this.emptyCellContextMenu();
  27691. this.emptyCellContextMenu = null;
  27692. }
  27693. if (this.gridster.$options.enableEmptyCellDrop && !this.emptyCellDrop && this.gridster.options.emptyCellDropCallback) {
  27694. this.emptyCellDrop = this.gridster.renderer.listen(this.gridster.el, 'drop', this.emptyCellDragDrop.bind(this));
  27695. this.gridster.zone.runOutsideAngular(() => {
  27696. this.emptyCellMove = this.gridster.renderer.listen(this.gridster.el, 'dragover', this.emptyCellDragOver.bind(this));
  27697. });
  27698. this.emptyCellExit = this.gridster.renderer.listen('document', 'dragend', () => {
  27699. this.gridster.movingItem = null;
  27700. this.gridster.previewStyle();
  27701. });
  27702. }
  27703. else if (!this.gridster.$options.enableEmptyCellDrop && this.emptyCellDrop && this.emptyCellMove && this.emptyCellExit) {
  27704. this.emptyCellDrop();
  27705. this.emptyCellMove();
  27706. this.emptyCellExit();
  27707. this.emptyCellMove = null;
  27708. this.emptyCellDrop = null;
  27709. this.emptyCellExit = null;
  27710. }
  27711. if (this.gridster.$options.enableEmptyCellDrag && !this.emptyCellDrag && this.gridster.options.emptyCellDragCallback) {
  27712. this.emptyCellDrag = this.gridster.renderer.listen(this.gridster.el, 'mousedown', this.emptyCellMouseDown.bind(this));
  27713. this.emptyCellDragTouch = this.gridster.renderer.listen(this.gridster.el, 'touchstart', this.emptyCellMouseDown.bind(this));
  27714. }
  27715. else if (!this.gridster.$options.enableEmptyCellDrag && this.emptyCellDrag && this.emptyCellDragTouch) {
  27716. this.emptyCellDrag();
  27717. this.emptyCellDragTouch();
  27718. this.emptyCellDrag = null;
  27719. this.emptyCellDragTouch = null;
  27720. }
  27721. }
  27722. emptyCellClickCb(e) {
  27723. if (this.gridster.movingItem || GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster, e)) {
  27724. return;
  27725. }
  27726. const item = this.getValidItemFromEvent(e);
  27727. if (!item) {
  27728. return;
  27729. }
  27730. if (this.gridster.options.emptyCellClickCallback) {
  27731. this.gridster.options.emptyCellClickCallback(e, item);
  27732. }
  27733. this.gridster.cdRef.markForCheck();
  27734. }
  27735. emptyCellContextMenuCb(e) {
  27736. if (this.gridster.movingItem || GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster, e)) {
  27737. return;
  27738. }
  27739. e.preventDefault();
  27740. e.stopPropagation();
  27741. const item = this.getValidItemFromEvent(e);
  27742. if (!item) {
  27743. return;
  27744. }
  27745. if (this.gridster.options.emptyCellContextMenuCallback) {
  27746. this.gridster.options.emptyCellContextMenuCallback(e, item);
  27747. }
  27748. this.gridster.cdRef.markForCheck();
  27749. }
  27750. emptyCellDragDrop(e) {
  27751. const item = this.getValidItemFromEvent(e);
  27752. if (!item) {
  27753. return;
  27754. }
  27755. if (this.gridster.options.emptyCellDropCallback) {
  27756. this.gridster.options.emptyCellDropCallback(e, item);
  27757. }
  27758. this.gridster.cdRef.markForCheck();
  27759. }
  27760. emptyCellDragOver(e) {
  27761. e.preventDefault();
  27762. e.stopPropagation();
  27763. const item = this.getValidItemFromEvent(e);
  27764. if (item) {
  27765. if (e.dataTransfer) {
  27766. e.dataTransfer.dropEffect = 'move';
  27767. }
  27768. this.gridster.movingItem = item;
  27769. }
  27770. else {
  27771. if (e.dataTransfer) {
  27772. e.dataTransfer.dropEffect = 'none';
  27773. }
  27774. this.gridster.movingItem = null;
  27775. }
  27776. this.gridster.previewStyle();
  27777. }
  27778. emptyCellMouseDown(e) {
  27779. if (GridsterUtils.checkContentClassForEmptyCellClickEvent(this.gridster, e)) {
  27780. return;
  27781. }
  27782. e.preventDefault();
  27783. e.stopPropagation();
  27784. const item = this.getValidItemFromEvent(e);
  27785. const leftMouseButtonCode = 1;
  27786. if (!item || e.buttons !== leftMouseButtonCode) {
  27787. return;
  27788. }
  27789. this.initialItem = item;
  27790. this.gridster.movingItem = item;
  27791. this.gridster.previewStyle();
  27792. this.gridster.zone.runOutsideAngular(() => {
  27793. this.emptyCellMMove = this.gridster.renderer.listen('window', 'mousemove', this.emptyCellMouseMove.bind(this));
  27794. this.emptyCellMMoveTouch = this.gridster.renderer.listen('window', 'touchmove', this.emptyCellMouseMove.bind(this));
  27795. });
  27796. this.emptyCellUp = this.gridster.renderer.listen('window', 'mouseup', this.emptyCellMouseUp.bind(this));
  27797. this.emptyCellUpTouch = this.gridster.renderer.listen('window', 'touchend', this.emptyCellMouseUp.bind(this));
  27798. }
  27799. emptyCellMouseMove(e) {
  27800. e.preventDefault();
  27801. e.stopPropagation();
  27802. const item = this.getValidItemFromEvent(e, this.initialItem);
  27803. if (!item) {
  27804. return;
  27805. }
  27806. this.gridster.movingItem = item;
  27807. this.gridster.previewStyle();
  27808. }
  27809. emptyCellMouseUp(e) {
  27810. this.emptyCellMMove();
  27811. this.emptyCellMMoveTouch();
  27812. this.emptyCellUp();
  27813. this.emptyCellUpTouch();
  27814. const item = this.getValidItemFromEvent(e, this.initialItem);
  27815. if (item) {
  27816. this.gridster.movingItem = item;
  27817. }
  27818. if (this.gridster.options.emptyCellDragCallback && this.gridster.movingItem) {
  27819. this.gridster.options.emptyCellDragCallback(e, this.gridster.movingItem);
  27820. }
  27821. setTimeout(() => {
  27822. this.initialItem = null;
  27823. if (this.gridster) {
  27824. this.gridster.movingItem = null;
  27825. this.gridster.previewStyle();
  27826. }
  27827. });
  27828. this.gridster.cdRef.markForCheck();
  27829. }
  27830. getPixelsX(e, rect) {
  27831. const scale = this.gridster.options.scale;
  27832. if (scale) {
  27833. return (e.clientX - rect.left) / scale + this.gridster.el.scrollLeft - this.gridster.gridRenderer.getLeftMargin();
  27834. }
  27835. return e.clientX + this.gridster.el.scrollLeft - rect.left - this.gridster.gridRenderer.getLeftMargin();
  27836. }
  27837. getPixelsY(e, rect) {
  27838. const scale = this.gridster.options.scale;
  27839. if (scale) {
  27840. return (e.clientY - rect.top) / scale + this.gridster.el.scrollTop - this.gridster.gridRenderer.getTopMargin();
  27841. }
  27842. return e.clientY + this.gridster.el.scrollTop - rect.top - this.gridster.gridRenderer.getTopMargin();
  27843. }
  27844. getValidItemFromEvent(e, oldItem) {
  27845. e.preventDefault();
  27846. e.stopPropagation();
  27847. GridsterUtils.checkTouchEvent(e);
  27848. const rect = this.gridster.el.getBoundingClientRect();
  27849. const x = this.getPixelsX(e, rect);
  27850. const y = this.getPixelsY(e, rect);
  27851. const item = {
  27852. x: this.gridster.pixelsToPositionX(x, Math.floor, true),
  27853. y: this.gridster.pixelsToPositionY(y, Math.floor, true),
  27854. cols: this.gridster.$options.defaultItemCols,
  27855. rows: this.gridster.$options.defaultItemRows
  27856. };
  27857. if (oldItem) {
  27858. item.cols = Math.min(Math.abs(oldItem.x - item.x) + 1, this.gridster.$options.emptyCellDragMaxCols);
  27859. item.rows = Math.min(Math.abs(oldItem.y - item.y) + 1, this.gridster.$options.emptyCellDragMaxRows);
  27860. if (oldItem.x < item.x) {
  27861. item.x = oldItem.x;
  27862. }
  27863. else if (oldItem.x - item.x > this.gridster.$options.emptyCellDragMaxCols - 1) {
  27864. item.x = this.gridster.movingItem ? this.gridster.movingItem.x : 0;
  27865. }
  27866. if (oldItem.y < item.y) {
  27867. item.y = oldItem.y;
  27868. }
  27869. else if (oldItem.y - item.y > this.gridster.$options.emptyCellDragMaxRows - 1) {
  27870. item.y = this.gridster.movingItem ? this.gridster.movingItem.y : 0;
  27871. }
  27872. }
  27873. if (!this.gridster.$options.enableOccupiedCellDrop && this.gridster.checkCollision(item)) {
  27874. return;
  27875. }
  27876. return item;
  27877. }
  27878. }
  27879. GridsterEmptyCell.ɵfac = function GridsterEmptyCell_Factory(t) { return new (t || GridsterEmptyCell)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterComponentInterface)); };
  27880. GridsterEmptyCell.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterEmptyCell, factory: GridsterEmptyCell.ɵfac });
  27881. GridsterEmptyCell.ctorParameters = () => [
  27882. { type: GridsterComponentInterface }
  27883. ];
  27884. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterEmptyCell, [{
  27885. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  27886. }], function () { return [{ type: GridsterComponentInterface }]; }, null); })();
  27887. class GridsterRenderer {
  27888. constructor(gridster) {
  27889. this.gridster = gridster;
  27890. }
  27891. destroy() {
  27892. // @ts-ignore
  27893. delete this.gridster;
  27894. }
  27895. updateItem(el, item, renderer) {
  27896. if (this.gridster.mobile) {
  27897. this.clearCellPosition(renderer, el);
  27898. if (this.gridster.$options.keepFixedHeightInMobile) {
  27899. renderer.setStyle(el, 'height', (item.rows * this.gridster.$options.fixedRowHeight) + 'px');
  27900. }
  27901. else {
  27902. renderer.setStyle(el, 'height', (item.rows * this.gridster.curWidth / item.cols) + 'px');
  27903. }
  27904. if (this.gridster.$options.keepFixedWidthInMobile) {
  27905. renderer.setStyle(el, 'width', this.gridster.$options.fixedColWidth + 'px');
  27906. }
  27907. else {
  27908. renderer.setStyle(el, 'width', '');
  27909. }
  27910. renderer.setStyle(el, 'margin-bottom', this.gridster.$options.margin + 'px');
  27911. renderer.setStyle(el, DirTypes.LTR ? 'margin-right' : 'margin-left', '');
  27912. }
  27913. else {
  27914. const x = Math.round(this.gridster.curColWidth * item.x);
  27915. const y = Math.round(this.gridster.curRowHeight * item.y);
  27916. const width = this.gridster.curColWidth * item.cols - this.gridster.$options.margin;
  27917. const height = (this.gridster.curRowHeight * item.rows - this.gridster.$options.margin);
  27918. // set the cell style
  27919. this.setCellPosition(renderer, el, x, y);
  27920. renderer.setStyle(el, 'width', width + 'px');
  27921. renderer.setStyle(el, 'height', height + 'px');
  27922. let marginBottom = null;
  27923. let marginRight = null;
  27924. if (this.gridster.$options.outerMargin) {
  27925. if (this.gridster.rows === item.rows + item.y) {
  27926. if (this.gridster.$options.outerMarginBottom !== null) {
  27927. marginBottom = this.gridster.$options.outerMarginBottom + 'px';
  27928. }
  27929. else {
  27930. marginBottom = this.gridster.$options.margin + 'px';
  27931. }
  27932. }
  27933. if (this.gridster.columns === item.cols + item.x) {
  27934. if (this.gridster.$options.outerMarginBottom !== null) {
  27935. marginRight = this.gridster.$options.outerMarginRight + 'px';
  27936. }
  27937. else {
  27938. marginRight = this.gridster.$options.margin + 'px';
  27939. }
  27940. }
  27941. }
  27942. renderer.setStyle(el, 'margin-bottom', marginBottom);
  27943. renderer.setStyle(el, DirTypes.LTR ? 'margin-right' : 'margin-left', marginRight);
  27944. }
  27945. }
  27946. updateGridster() {
  27947. let addClass = '';
  27948. let removeClass1 = '';
  27949. let removeClass2 = '';
  27950. let removeClass3 = '';
  27951. if (this.gridster.$options.gridType === GridType.Fit) {
  27952. addClass = GridType.Fit;
  27953. removeClass1 = GridType.ScrollVertical;
  27954. removeClass2 = GridType.ScrollHorizontal;
  27955. removeClass3 = GridType.Fixed;
  27956. }
  27957. else if (this.gridster.$options.gridType === GridType.ScrollVertical) {
  27958. this.gridster.curRowHeight = this.gridster.curColWidth;
  27959. addClass = GridType.ScrollVertical;
  27960. removeClass1 = GridType.Fit;
  27961. removeClass2 = GridType.ScrollHorizontal;
  27962. removeClass3 = GridType.Fixed;
  27963. }
  27964. else if (this.gridster.$options.gridType === GridType.ScrollHorizontal) {
  27965. this.gridster.curColWidth = this.gridster.curRowHeight;
  27966. addClass = GridType.ScrollHorizontal;
  27967. removeClass1 = GridType.Fit;
  27968. removeClass2 = GridType.ScrollVertical;
  27969. removeClass3 = GridType.Fixed;
  27970. }
  27971. else if (this.gridster.$options.gridType === GridType.Fixed) {
  27972. this.gridster.curColWidth = this.gridster.$options.fixedColWidth +
  27973. (this.gridster.$options.ignoreMarginInRow ? 0 : this.gridster.$options.margin);
  27974. this.gridster.curRowHeight = this.gridster.$options.fixedRowHeight +
  27975. (this.gridster.$options.ignoreMarginInRow ? 0 : this.gridster.$options.margin);
  27976. addClass = GridType.Fixed;
  27977. removeClass1 = GridType.Fit;
  27978. removeClass2 = GridType.ScrollVertical;
  27979. removeClass3 = GridType.ScrollHorizontal;
  27980. }
  27981. else if (this.gridster.$options.gridType === GridType.VerticalFixed) {
  27982. this.gridster.curRowHeight = this.gridster.$options.fixedRowHeight +
  27983. (this.gridster.$options.ignoreMarginInRow ? 0 : this.gridster.$options.margin);
  27984. addClass = GridType.ScrollVertical;
  27985. removeClass1 = GridType.Fit;
  27986. removeClass2 = GridType.ScrollHorizontal;
  27987. removeClass3 = GridType.Fixed;
  27988. }
  27989. else if (this.gridster.$options.gridType === GridType.HorizontalFixed) {
  27990. this.gridster.curColWidth = this.gridster.$options.fixedColWidth +
  27991. (this.gridster.$options.ignoreMarginInRow ? 0 : this.gridster.$options.margin);
  27992. addClass = GridType.ScrollHorizontal;
  27993. removeClass1 = GridType.Fit;
  27994. removeClass2 = GridType.ScrollVertical;
  27995. removeClass3 = GridType.Fixed;
  27996. }
  27997. if (this.gridster.mobile || this.gridster.$options.setGridSize && this.gridster.$options.gridType !== GridType.Fit) {
  27998. this.gridster.renderer.removeClass(this.gridster.el, addClass);
  27999. }
  28000. else {
  28001. this.gridster.renderer.addClass(this.gridster.el, addClass);
  28002. }
  28003. this.gridster.renderer.removeClass(this.gridster.el, removeClass1);
  28004. this.gridster.renderer.removeClass(this.gridster.el, removeClass2);
  28005. this.gridster.renderer.removeClass(this.gridster.el, removeClass3);
  28006. }
  28007. getGridColumnStyle(i) {
  28008. return Object.assign(Object.assign({}, this.getLeftPosition(this.gridster.curColWidth * i)), { width: this.gridster.curColWidth - this.gridster.$options.margin + 'px', height: this.gridster.gridRows.length * this.gridster.curRowHeight - this.gridster.$options.margin + 'px' });
  28009. }
  28010. getGridRowStyle(i) {
  28011. return Object.assign(Object.assign({}, this.getTopPosition(this.gridster.curRowHeight * i)), { width: this.gridster.gridColumns.length * this.gridster.curColWidth - this.gridster.$options.margin + 'px', height: this.gridster.curRowHeight - this.gridster.$options.margin + 'px' });
  28012. }
  28013. getLeftPosition(d) {
  28014. const dPosition = this.gridster.$options.dirType === DirTypes.RTL ? -d : d;
  28015. if (this.gridster.$options.useTransformPositioning) {
  28016. return {
  28017. transform: 'translateX(' + dPosition + 'px)',
  28018. };
  28019. }
  28020. else {
  28021. return {
  28022. left: (this.getLeftMargin() + dPosition) + 'px'
  28023. };
  28024. }
  28025. }
  28026. getTopPosition(d) {
  28027. if (this.gridster.$options.useTransformPositioning) {
  28028. return {
  28029. transform: 'translateY(' + d + 'px)',
  28030. };
  28031. }
  28032. else {
  28033. return {
  28034. top: this.getTopMargin() + d + 'px'
  28035. };
  28036. }
  28037. }
  28038. clearCellPosition(renderer, el) {
  28039. if (this.gridster.$options.useTransformPositioning) {
  28040. renderer.setStyle(el, 'transform', '');
  28041. }
  28042. else {
  28043. renderer.setStyle(el, 'top', '');
  28044. renderer.setStyle(el, 'left', '');
  28045. }
  28046. }
  28047. setCellPosition(renderer, el, x, y) {
  28048. const xPosition = this.gridster.$options.dirType === DirTypes.RTL ? -x : x;
  28049. if (this.gridster.$options.useTransformPositioning) {
  28050. const transform = 'translate3d(' + xPosition + 'px, ' + y + 'px, 0)';
  28051. renderer.setStyle(el, 'transform', transform);
  28052. }
  28053. else {
  28054. renderer.setStyle(el, 'left', this.getLeftMargin() + xPosition + 'px');
  28055. renderer.setStyle(el, 'top', this.getTopMargin() + y + 'px');
  28056. }
  28057. }
  28058. getLeftMargin() {
  28059. if (this.gridster.$options.outerMargin) {
  28060. if (this.gridster.$options.outerMarginLeft !== null) {
  28061. return this.gridster.$options.outerMarginLeft;
  28062. }
  28063. else {
  28064. return this.gridster.$options.margin;
  28065. }
  28066. }
  28067. else {
  28068. return 0;
  28069. }
  28070. }
  28071. getTopMargin() {
  28072. if (this.gridster.$options.outerMargin) {
  28073. if (this.gridster.$options.outerMarginTop !== null) {
  28074. return this.gridster.$options.outerMarginTop;
  28075. }
  28076. else {
  28077. return this.gridster.$options.margin;
  28078. }
  28079. }
  28080. else {
  28081. return 0;
  28082. }
  28083. }
  28084. }
  28085. GridsterRenderer.ɵfac = function GridsterRenderer_Factory(t) { return new (t || GridsterRenderer)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterComponentInterface)); };
  28086. GridsterRenderer.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterRenderer, factory: GridsterRenderer.ɵfac });
  28087. GridsterRenderer.ctorParameters = () => [
  28088. { type: GridsterComponentInterface }
  28089. ];
  28090. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterRenderer, [{
  28091. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  28092. }], function () { return [{ type: GridsterComponentInterface }]; }, null); })();
  28093. class GridsterComponent {
  28094. constructor(el, renderer, cdRef, zone) {
  28095. this.renderer = renderer;
  28096. this.cdRef = cdRef;
  28097. this.zone = zone;
  28098. this.columns = 0;
  28099. this.rows = 0;
  28100. this.gridColumns = [];
  28101. this.gridRows = [];
  28102. this.el = el.nativeElement;
  28103. this.$options = JSON.parse(JSON.stringify(GridsterConfigService));
  28104. this.calculateLayoutDebounce = GridsterUtils.debounce(this.calculateLayout.bind(this), 0);
  28105. this.mobile = false;
  28106. this.curWidth = 0;
  28107. this.curHeight = 0;
  28108. this.grid = [];
  28109. this.curColWidth = 0;
  28110. this.curRowHeight = 0;
  28111. this.dragInProgress = false;
  28112. this.emptyCell = new GridsterEmptyCell(this);
  28113. this.compact = new GridsterCompact(this);
  28114. this.gridRenderer = new GridsterRenderer(this);
  28115. }
  28116. // ------ Function for swapWhileDragging option
  28117. // identical to checkCollision() except that here we add boundaries.
  28118. static checkCollisionTwoItemsForSwaping(item, item2) {
  28119. // if the cols or rows of the items are 1 , doesnt make any sense to set a boundary. Only if the item is bigger we set a boundary
  28120. const horizontalBoundaryItem1 = item.cols === 1 ? 0 : 1;
  28121. const horizontalBoundaryItem2 = item2.cols === 1 ? 0 : 1;
  28122. const verticalBoundaryItem1 = item.rows === 1 ? 0 : 1;
  28123. const verticalBoundaryItem2 = item2.rows === 1 ? 0 : 1;
  28124. return item.x + horizontalBoundaryItem1 < item2.x + item2.cols
  28125. && item.x + item.cols > item2.x + horizontalBoundaryItem2
  28126. && item.y + verticalBoundaryItem1 < item2.y + item2.rows
  28127. && item.y + item.rows > item2.y + verticalBoundaryItem2;
  28128. }
  28129. checkCollisionTwoItems(item, item2) {
  28130. const collision = item.x < item2.x + item2.cols
  28131. && item.x + item.cols > item2.x
  28132. && item.y < item2.y + item2.rows
  28133. && item.y + item.rows > item2.y;
  28134. if (!collision) {
  28135. return false;
  28136. }
  28137. if (!this.$options.allowMultiLayer) {
  28138. return true;
  28139. }
  28140. const defaultLayerIndex = this.$options.defaultLayerIndex;
  28141. const layerIndex = item.layerIndex === undefined ? defaultLayerIndex : item.layerIndex;
  28142. const layerIndex2 = item2.layerIndex === undefined ? defaultLayerIndex : item2.layerIndex;
  28143. return layerIndex === layerIndex2;
  28144. }
  28145. ngOnInit() {
  28146. if (this.options.initCallback) {
  28147. this.options.initCallback(this);
  28148. }
  28149. }
  28150. ngOnChanges(changes) {
  28151. if (changes.options) {
  28152. this.setOptions();
  28153. this.options.api = {
  28154. optionsChanged: this.optionsChanged.bind(this),
  28155. resize: this.onResize.bind(this),
  28156. getNextPossiblePosition: this.getNextPossiblePosition.bind(this),
  28157. getFirstPossiblePosition: this.getFirstPossiblePosition.bind(this),
  28158. getLastPossiblePosition: this.getLastPossiblePosition.bind(this),
  28159. getItemComponent: (item) => this.getItemComponent(item)
  28160. };
  28161. this.columns = this.$options.minCols;
  28162. this.rows = this.$options.minRows;
  28163. this.setGridSize();
  28164. this.calculateLayout();
  28165. }
  28166. }
  28167. resize() {
  28168. let height;
  28169. let width;
  28170. if (this.$options.gridType === 'fit' && !this.mobile) {
  28171. width = this.el.offsetWidth;
  28172. height = this.el.offsetHeight;
  28173. }
  28174. else {
  28175. width = this.el.clientWidth;
  28176. height = this.el.clientHeight;
  28177. }
  28178. if ((width !== this.curWidth || height !== this.curHeight) && this.checkIfToResize()) {
  28179. this.onResize();
  28180. }
  28181. }
  28182. setOptions() {
  28183. this.$options = GridsterUtils.merge(this.$options, this.options, this.$options);
  28184. if (!this.$options.disableWindowResize && !this.windowResize) {
  28185. this.windowResize = this.renderer.listen('window', 'resize', this.onResize.bind(this));
  28186. }
  28187. else if (this.$options.disableWindowResize && this.windowResize) {
  28188. this.windowResize();
  28189. this.windowResize = null;
  28190. }
  28191. this.emptyCell.updateOptions();
  28192. }
  28193. optionsChanged() {
  28194. this.setOptions();
  28195. let widgetsIndex = this.grid.length - 1;
  28196. let widget;
  28197. for (; widgetsIndex >= 0; widgetsIndex--) {
  28198. widget = this.grid[widgetsIndex];
  28199. widget.updateOptions();
  28200. }
  28201. this.calculateLayout();
  28202. }
  28203. ngOnDestroy() {
  28204. if (this.windowResize) {
  28205. this.windowResize();
  28206. }
  28207. if (this.options && this.options.destroyCallback) {
  28208. this.options.destroyCallback(this);
  28209. }
  28210. if (this.options && this.options.api) {
  28211. this.options.api.resize = undefined;
  28212. this.options.api.optionsChanged = undefined;
  28213. this.options.api.getNextPossiblePosition = undefined;
  28214. this.options.api = undefined;
  28215. }
  28216. this.emptyCell.destroy();
  28217. // @ts-ignore
  28218. delete this.emptyCell;
  28219. this.compact.destroy();
  28220. // @ts-ignore
  28221. delete this.compact;
  28222. }
  28223. onResize() {
  28224. if (this.options.setGridSize) { // reset width/height so the size is recalculated afterwards
  28225. this.renderer.setStyle(this.el, 'width', '');
  28226. this.renderer.setStyle(this.el, 'height', '');
  28227. }
  28228. this.setGridSize();
  28229. this.calculateLayout();
  28230. }
  28231. checkIfToResize() {
  28232. const clientWidth = this.el.clientWidth;
  28233. const offsetWidth = this.el.offsetWidth;
  28234. const scrollWidth = this.el.scrollWidth;
  28235. const clientHeight = this.el.clientHeight;
  28236. const offsetHeight = this.el.offsetHeight;
  28237. const scrollHeight = this.el.scrollHeight;
  28238. const verticalScrollPresent = clientWidth < offsetWidth && scrollHeight > offsetHeight
  28239. && scrollHeight - offsetHeight < offsetWidth - clientWidth;
  28240. const horizontalScrollPresent = clientHeight < offsetHeight
  28241. && scrollWidth > offsetWidth && scrollWidth - offsetWidth < offsetHeight - clientHeight;
  28242. if (verticalScrollPresent) {
  28243. return false;
  28244. }
  28245. return !horizontalScrollPresent;
  28246. }
  28247. setGridSize() {
  28248. const el = this.el;
  28249. let width;
  28250. let height;
  28251. if (this.$options.setGridSize || this.$options.gridType === GridType.Fit && !this.mobile) {
  28252. width = el.offsetWidth;
  28253. height = el.offsetHeight;
  28254. }
  28255. else {
  28256. width = el.clientWidth;
  28257. height = el.clientHeight;
  28258. }
  28259. this.curWidth = width;
  28260. this.curHeight = height;
  28261. }
  28262. setGridDimensions() {
  28263. this.setGridSize();
  28264. if (!this.mobile && this.$options.mobileBreakpoint > this.curWidth) {
  28265. this.mobile = !this.mobile;
  28266. this.renderer.addClass(this.el, 'mobile');
  28267. }
  28268. else if (this.mobile && this.$options.mobileBreakpoint < this.curWidth) {
  28269. this.mobile = !this.mobile;
  28270. this.renderer.removeClass(this.el, 'mobile');
  28271. }
  28272. let rows = this.$options.minRows;
  28273. let columns = this.$options.minCols;
  28274. let widgetsIndex = this.grid.length - 1;
  28275. let widget;
  28276. for (; widgetsIndex >= 0; widgetsIndex--) {
  28277. widget = this.grid[widgetsIndex];
  28278. if (!widget.notPlaced) {
  28279. rows = Math.max(rows, widget.$item.y + widget.$item.rows);
  28280. columns = Math.max(columns, widget.$item.x + widget.$item.cols);
  28281. }
  28282. }
  28283. if (this.columns !== columns || this.rows !== rows) {
  28284. this.columns = columns;
  28285. this.rows = rows;
  28286. if (this.options.gridSizeChangedCallback) {
  28287. this.options.gridSizeChangedCallback(this);
  28288. }
  28289. }
  28290. }
  28291. calculateLayout() {
  28292. if (this.compact) {
  28293. this.compact.checkCompact();
  28294. }
  28295. this.setGridDimensions();
  28296. if (this.$options.outerMargin) {
  28297. let marginWidth = -this.$options.margin;
  28298. if (this.$options.outerMarginLeft !== null) {
  28299. marginWidth += this.$options.outerMarginLeft;
  28300. this.renderer.setStyle(this.el, 'padding-left', this.$options.outerMarginLeft + 'px');
  28301. }
  28302. else {
  28303. marginWidth += this.$options.margin;
  28304. this.renderer.setStyle(this.el, 'padding-left', this.$options.margin + 'px');
  28305. }
  28306. if (this.$options.outerMarginRight !== null) {
  28307. marginWidth += this.$options.outerMarginRight;
  28308. this.renderer.setStyle(this.el, 'padding-right', this.$options.outerMarginRight + 'px');
  28309. }
  28310. else {
  28311. marginWidth += this.$options.margin;
  28312. this.renderer.setStyle(this.el, 'padding-right', this.$options.margin + 'px');
  28313. }
  28314. this.curColWidth = (this.curWidth - marginWidth) / this.columns;
  28315. let marginHeight = -this.$options.margin;
  28316. if (this.$options.outerMarginTop !== null) {
  28317. marginHeight += this.$options.outerMarginTop;
  28318. this.renderer.setStyle(this.el, 'padding-top', this.$options.outerMarginTop + 'px');
  28319. }
  28320. else {
  28321. marginHeight += this.$options.margin;
  28322. this.renderer.setStyle(this.el, 'padding-top', this.$options.margin + 'px');
  28323. }
  28324. if (this.$options.outerMarginBottom !== null) {
  28325. marginHeight += this.$options.outerMarginBottom;
  28326. this.renderer.setStyle(this.el, 'padding-bottom', this.$options.outerMarginBottom + 'px');
  28327. }
  28328. else {
  28329. marginHeight += this.$options.margin;
  28330. this.renderer.setStyle(this.el, 'padding-bottom', this.$options.margin + 'px');
  28331. }
  28332. this.curRowHeight = (this.curHeight - marginHeight) / this.rows;
  28333. }
  28334. else {
  28335. this.curColWidth = (this.curWidth + this.$options.margin) / this.columns;
  28336. this.curRowHeight = (this.curHeight + this.$options.margin) / this.rows;
  28337. this.renderer.setStyle(this.el, 'padding-left', 0 + 'px');
  28338. this.renderer.setStyle(this.el, 'padding-right', 0 + 'px');
  28339. this.renderer.setStyle(this.el, 'padding-top', 0 + 'px');
  28340. this.renderer.setStyle(this.el, 'padding-bottom', 0 + 'px');
  28341. }
  28342. this.gridRenderer.updateGridster();
  28343. if (this.$options.setGridSize) {
  28344. this.renderer.addClass(this.el, 'gridSize');
  28345. if (!this.mobile) {
  28346. this.renderer.setStyle(this.el, 'width', (this.columns * this.curColWidth + this.$options.margin) + 'px');
  28347. this.renderer.setStyle(this.el, 'height', (this.rows * this.curRowHeight + this.$options.margin) + 'px');
  28348. }
  28349. }
  28350. else {
  28351. this.renderer.removeClass(this.el, 'gridSize');
  28352. this.renderer.setStyle(this.el, 'width', '');
  28353. this.renderer.setStyle(this.el, 'height', '');
  28354. }
  28355. this.updateGrid();
  28356. let widgetsIndex = this.grid.length - 1;
  28357. let widget;
  28358. for (; widgetsIndex >= 0; widgetsIndex--) {
  28359. widget = this.grid[widgetsIndex];
  28360. widget.setSize();
  28361. widget.drag.toggle();
  28362. widget.resize.toggle();
  28363. }
  28364. setTimeout(this.resize.bind(this), 100);
  28365. }
  28366. updateGrid() {
  28367. if (this.$options.displayGrid === 'always' && !this.mobile) {
  28368. this.renderer.addClass(this.el, 'display-grid');
  28369. }
  28370. else if (this.$options.displayGrid === 'onDrag&Resize' && this.dragInProgress) {
  28371. this.renderer.addClass(this.el, 'display-grid');
  28372. }
  28373. else if (this.$options.displayGrid === 'none' || !this.dragInProgress || this.mobile) {
  28374. this.renderer.removeClass(this.el, 'display-grid');
  28375. }
  28376. this.setGridDimensions();
  28377. this.gridColumns.length = GridsterComponent.getNewArrayLength(this.columns, this.curWidth, this.curColWidth);
  28378. this.gridRows.length = GridsterComponent.getNewArrayLength(this.rows, this.curHeight, this.curRowHeight);
  28379. this.cdRef.markForCheck();
  28380. }
  28381. addItem(itemComponent) {
  28382. if (itemComponent.$item.cols === undefined) {
  28383. itemComponent.$item.cols = this.$options.defaultItemCols;
  28384. itemComponent.item.cols = itemComponent.$item.cols;
  28385. itemComponent.itemChanged();
  28386. }
  28387. if (itemComponent.$item.rows === undefined) {
  28388. itemComponent.$item.rows = this.$options.defaultItemRows;
  28389. itemComponent.item.rows = itemComponent.$item.rows;
  28390. itemComponent.itemChanged();
  28391. }
  28392. if (itemComponent.$item.x === -1 || itemComponent.$item.y === -1) {
  28393. this.autoPositionItem(itemComponent);
  28394. }
  28395. else if (this.checkCollision(itemComponent.$item)) {
  28396. if (!this.$options.disableWarnings) {
  28397. itemComponent.notPlaced = true;
  28398. console.warn('Can\'t be placed in the bounds of the dashboard, trying to auto position!/n' +
  28399. JSON.stringify(itemComponent.item, ['cols', 'rows', 'x', 'y']));
  28400. }
  28401. if (!this.$options.disableAutoPositionOnConflict) {
  28402. this.autoPositionItem(itemComponent);
  28403. }
  28404. else {
  28405. itemComponent.notPlaced = true;
  28406. }
  28407. }
  28408. this.grid.push(itemComponent);
  28409. this.calculateLayoutDebounce();
  28410. }
  28411. removeItem(itemComponent) {
  28412. this.grid.splice(this.grid.indexOf(itemComponent), 1);
  28413. this.calculateLayoutDebounce();
  28414. if (this.options.itemRemovedCallback) {
  28415. this.options.itemRemovedCallback(itemComponent.item, itemComponent);
  28416. }
  28417. }
  28418. checkCollision(item) {
  28419. let collision = false;
  28420. if (this.options.itemValidateCallback) {
  28421. collision = !this.options.itemValidateCallback(item);
  28422. }
  28423. if (!collision && this.checkGridCollision(item)) {
  28424. collision = true;
  28425. }
  28426. if (!collision) {
  28427. const c = this.findItemWithItem(item);
  28428. if (c) {
  28429. collision = c;
  28430. }
  28431. }
  28432. return collision;
  28433. }
  28434. checkGridCollision(item) {
  28435. const noNegativePosition = item.y > -1 && item.x > -1;
  28436. const maxGridCols = item.cols + item.x <= this.$options.maxCols;
  28437. const maxGridRows = item.rows + item.y <= this.$options.maxRows;
  28438. const maxItemCols = item.maxItemCols === undefined ? this.$options.maxItemCols : item.maxItemCols;
  28439. const minItemCols = item.minItemCols === undefined ? this.$options.minItemCols : item.minItemCols;
  28440. const maxItemRows = item.maxItemRows === undefined ? this.$options.maxItemRows : item.maxItemRows;
  28441. const minItemRows = item.minItemRows === undefined ? this.$options.minItemRows : item.minItemRows;
  28442. const inColsLimits = item.cols <= maxItemCols && item.cols >= minItemCols;
  28443. const inRowsLimits = item.rows <= maxItemRows && item.rows >= minItemRows;
  28444. const minAreaLimit = item.minItemArea === undefined ? this.$options.minItemArea : item.minItemArea;
  28445. const maxAreaLimit = item.maxItemArea === undefined ? this.$options.maxItemArea : item.maxItemArea;
  28446. const area = item.cols * item.rows;
  28447. const inMinArea = minAreaLimit <= area;
  28448. const inMaxArea = maxAreaLimit >= area;
  28449. return !(noNegativePosition && maxGridCols && maxGridRows && inColsLimits && inRowsLimits && inMinArea && inMaxArea);
  28450. }
  28451. findItemWithItem(item) {
  28452. let widgetsIndex = 0;
  28453. let widget;
  28454. for (; widgetsIndex < this.grid.length; widgetsIndex++) {
  28455. widget = this.grid[widgetsIndex];
  28456. if (widget.$item !== item && this.checkCollisionTwoItems(widget.$item, item)) {
  28457. return widget;
  28458. }
  28459. }
  28460. return false;
  28461. }
  28462. findItemsWithItem(item) {
  28463. const a = [];
  28464. let widgetsIndex = 0;
  28465. let widget;
  28466. for (; widgetsIndex < this.grid.length; widgetsIndex++) {
  28467. widget = this.grid[widgetsIndex];
  28468. if (widget.$item !== item && this.checkCollisionTwoItems(widget.$item, item)) {
  28469. a.push(widget);
  28470. }
  28471. }
  28472. return a;
  28473. }
  28474. autoPositionItem(itemComponent) {
  28475. if (this.getNextPossiblePosition(itemComponent.$item)) {
  28476. itemComponent.notPlaced = false;
  28477. itemComponent.item.x = itemComponent.$item.x;
  28478. itemComponent.item.y = itemComponent.$item.y;
  28479. itemComponent.itemChanged();
  28480. }
  28481. else {
  28482. itemComponent.notPlaced = true;
  28483. if (!this.$options.disableWarnings) {
  28484. console.warn('Can\'t be placed in the bounds of the dashboard!/n' +
  28485. JSON.stringify(itemComponent.item, ['cols', 'rows', 'x', 'y']));
  28486. }
  28487. }
  28488. }
  28489. getNextPossiblePosition(newItem, startingFrom = {}) {
  28490. if (newItem.cols === -1) {
  28491. newItem.cols = this.$options.defaultItemCols;
  28492. }
  28493. if (newItem.rows === -1) {
  28494. newItem.rows = this.$options.defaultItemRows;
  28495. }
  28496. this.setGridDimensions();
  28497. let rowsIndex = startingFrom.y || 0;
  28498. let colsIndex;
  28499. for (; rowsIndex < this.rows; rowsIndex++) {
  28500. newItem.y = rowsIndex;
  28501. colsIndex = startingFrom.x || 0;
  28502. for (; colsIndex < this.columns; colsIndex++) {
  28503. newItem.x = colsIndex;
  28504. if (!this.checkCollision(newItem)) {
  28505. return true;
  28506. }
  28507. }
  28508. }
  28509. const canAddToRows = this.$options.maxRows >= this.rows + newItem.rows;
  28510. const canAddToColumns = this.$options.maxCols >= this.columns + newItem.cols;
  28511. const addToRows = this.rows <= this.columns && canAddToRows;
  28512. if (!addToRows && canAddToColumns) {
  28513. newItem.x = this.columns;
  28514. newItem.y = 0;
  28515. return true;
  28516. }
  28517. else if (canAddToRows) {
  28518. newItem.y = this.rows;
  28519. newItem.x = 0;
  28520. return true;
  28521. }
  28522. return false;
  28523. }
  28524. getFirstPossiblePosition(item) {
  28525. const tmpItem = Object.assign({}, item);
  28526. this.getNextPossiblePosition(tmpItem);
  28527. return tmpItem;
  28528. }
  28529. getLastPossiblePosition(item) {
  28530. let farthestItem = { y: 0, x: 0 };
  28531. farthestItem = this.grid.reduce((prev, curr) => {
  28532. const currCoords = { y: curr.$item.y + curr.$item.rows - 1, x: curr.$item.x + curr.$item.cols - 1 };
  28533. if (GridsterUtils.compareItems(prev, currCoords) === 1) {
  28534. return currCoords;
  28535. }
  28536. else {
  28537. return prev;
  28538. }
  28539. }, farthestItem);
  28540. const tmpItem = Object.assign({}, item);
  28541. this.getNextPossiblePosition(tmpItem, farthestItem);
  28542. return tmpItem;
  28543. }
  28544. pixelsToPositionX(x, roundingMethod, noLimit) {
  28545. const position = roundingMethod(x / this.curColWidth);
  28546. if (noLimit) {
  28547. return position;
  28548. }
  28549. else {
  28550. return Math.max(position, 0);
  28551. }
  28552. }
  28553. pixelsToPositionY(y, roundingMethod, noLimit) {
  28554. const position = roundingMethod(y / this.curRowHeight);
  28555. if (noLimit) {
  28556. return position;
  28557. }
  28558. else {
  28559. return Math.max(position, 0);
  28560. }
  28561. }
  28562. positionXToPixels(x) {
  28563. return x * this.curColWidth;
  28564. }
  28565. positionYToPixels(y) {
  28566. return y * this.curRowHeight;
  28567. }
  28568. getItemComponent(item) {
  28569. return this.grid.find(c => c.item === item);
  28570. }
  28571. // ------ Functions for swapWhileDragging option
  28572. // identical to checkCollision() except that this function calls findItemWithItemForSwaping() instead of findItemWithItem()
  28573. checkCollisionForSwaping(item) {
  28574. let collision = false;
  28575. if (this.options.itemValidateCallback) {
  28576. collision = !this.options.itemValidateCallback(item);
  28577. }
  28578. if (!collision && this.checkGridCollision(item)) {
  28579. collision = true;
  28580. }
  28581. if (!collision) {
  28582. const c = this.findItemWithItemForSwaping(item);
  28583. if (c) {
  28584. collision = c;
  28585. }
  28586. }
  28587. return collision;
  28588. }
  28589. // identical to findItemWithItem() except that this function calls checkCollisionTwoItemsForSwaping() instead of checkCollisionTwoItems()
  28590. findItemWithItemForSwaping(item) {
  28591. let widgetsIndex = this.grid.length - 1;
  28592. let widget;
  28593. for (; widgetsIndex > -1; widgetsIndex--) {
  28594. widget = this.grid[widgetsIndex];
  28595. if (widget.$item !== item && GridsterComponent.checkCollisionTwoItemsForSwaping(widget.$item, item)) {
  28596. return widget;
  28597. }
  28598. }
  28599. return false;
  28600. }
  28601. // ------ End of functions for swapWhileDragging option
  28602. // tslint:disable-next-line:member-ordering
  28603. static getNewArrayLength(length, overallSize, size) {
  28604. const newLength = Math.max(length, Math.floor(overallSize / size));
  28605. if (newLength < 0) {
  28606. return 0;
  28607. }
  28608. if (Number.isFinite(newLength)) {
  28609. return Math.floor(newLength);
  28610. }
  28611. return 0;
  28612. }
  28613. }
  28614. GridsterComponent.ɵfac = function GridsterComponent_Factory(t) { return new (t || GridsterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  28615. GridsterComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GridsterComponent, selectors: [["gridster"]], inputs: { options: "options" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c0, decls: 4, vars: 2, consts: [["class", "gridster-column", 3, "ngStyle", 4, "ngFor", "ngForOf"], ["class", "gridster-row", 3, "ngStyle", 4, "ngFor", "ngForOf"], [1, "gridster-preview"], [1, "gridster-column", 3, "ngStyle"], [1, "gridster-row", 3, "ngStyle"]], template: function GridsterComponent_Template(rf, ctx) { if (rf & 1) {
  28616. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  28617. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, GridsterComponent_div_0_Template, 1, 1, "div", 0);
  28618. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, GridsterComponent_div_1_Template, 1, 1, "div", 1);
  28619. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](2);
  28620. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "gridster-preview", 2);
  28621. } if (rf & 2) {
  28622. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.gridColumns);
  28623. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  28624. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx.gridRows);
  28625. } }, directives: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgForOf"], GridsterPreviewComponent, _angular_common__WEBPACK_IMPORTED_MODULE_1__["NgStyle"]]; }, styles: ["gridster{-ms-user-select:none;-webkit-user-select:none;background:grey;box-sizing:border-box;display:block;height:100%;position:relative;user-select:none;width:100%}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:auto;width:auto}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{box-sizing:border-box;display:none;position:absolute;transition:.3s}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid #fff;border-right:1px solid #fff}gridster .gridster-row{border-bottom:1px solid #fff;border-top:1px solid #fff}"], encapsulation: 2 });
  28626. GridsterComponent.ctorParameters = () => [
  28627. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"],] }] },
  28628. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"],] }] },
  28629. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"],] }] },
  28630. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"],] }] }
  28631. ];
  28632. GridsterComponent.propDecorators = {
  28633. options: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  28634. };
  28635. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterComponent, [{
  28636. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  28637. args: [{
  28638. // tslint:disable-next-line:component-selector
  28639. selector: 'gridster',
  28640. template: "<div class=\"gridster-column\" *ngFor=\"let column of gridColumns; let i = index;\"\n [ngStyle]=\"gridRenderer.getGridColumnStyle(i)\"></div>\n<div class=\"gridster-row\" *ngFor=\"let row of gridRows; let i = index;\"\n [ngStyle]=\"gridRenderer.getGridRowStyle(i)\"></div>\n<ng-content></ng-content>\n<gridster-preview class=\"gridster-preview\"></gridster-preview>\n",
  28641. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  28642. styles: ["gridster{-ms-user-select:none;-webkit-user-select:none;background:grey;box-sizing:border-box;display:block;height:100%;position:relative;user-select:none;width:100%}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:auto;width:auto}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{box-sizing:border-box;display:none;position:absolute;transition:.3s}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid #fff;border-right:1px solid #fff}gridster .gridster-row{border-bottom:1px solid #fff;border-top:1px solid #fff}"]
  28643. }]
  28644. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], decorators: [{
  28645. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  28646. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]
  28647. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], decorators: [{
  28648. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  28649. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]]
  28650. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"], decorators: [{
  28651. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  28652. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]]
  28653. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], decorators: [{
  28654. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  28655. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]]
  28656. }] }]; }, { options: [{
  28657. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  28658. }] }); })();
  28659. class GridsterItemComponentInterface {
  28660. }
  28661. class GridsterPush {
  28662. constructor(gridsterItem) {
  28663. this.iteration = 0;
  28664. this.pushedItems = [];
  28665. this.pushedItemsTemp = [];
  28666. this.pushedItemsTempPath = [];
  28667. this.pushedItemsPath = [];
  28668. this.gridsterItem = gridsterItem;
  28669. this.gridster = gridsterItem.gridster;
  28670. this.tryPattern = {
  28671. fromEast: [this.tryWest, this.trySouth, this.tryNorth, this.tryEast],
  28672. fromWest: [this.tryEast, this.trySouth, this.tryNorth, this.tryWest],
  28673. fromNorth: [this.trySouth, this.tryEast, this.tryWest, this.tryNorth],
  28674. fromSouth: [this.tryNorth, this.tryEast, this.tryWest, this.trySouth]
  28675. };
  28676. this.fromSouth = 'fromSouth';
  28677. this.fromNorth = 'fromNorth';
  28678. this.fromEast = 'fromEast';
  28679. this.fromWest = 'fromWest';
  28680. }
  28681. destroy() {
  28682. // @ts-ignore
  28683. delete this.gridster;
  28684. // @ts-ignore
  28685. delete this.gridsterItem;
  28686. }
  28687. pushItems(direction, disable) {
  28688. if (this.gridster.$options.pushItems && !disable) {
  28689. this.pushedItemsOrder = [];
  28690. this.iteration = 0;
  28691. const pushed = this.push(this.gridsterItem, direction);
  28692. if (!pushed) {
  28693. this.restoreTempItems();
  28694. }
  28695. this.pushedItemsOrder = [];
  28696. this.pushedItemsTemp = [];
  28697. this.pushedItemsTempPath = [];
  28698. return pushed;
  28699. }
  28700. else {
  28701. return false;
  28702. }
  28703. }
  28704. restoreTempItems() {
  28705. let i = this.pushedItemsTemp.length - 1;
  28706. for (; i > -1; i--) {
  28707. this.removeFromTempPushed(this.pushedItemsTemp[i]);
  28708. }
  28709. }
  28710. restoreItems() {
  28711. let i = 0;
  28712. const l = this.pushedItems.length;
  28713. let pushedItem;
  28714. for (; i < l; i++) {
  28715. pushedItem = this.pushedItems[i];
  28716. pushedItem.$item.x = pushedItem.item.x || 0;
  28717. pushedItem.$item.y = pushedItem.item.y || 0;
  28718. pushedItem.setSize();
  28719. }
  28720. this.pushedItems = [];
  28721. this.pushedItemsPath = [];
  28722. }
  28723. setPushedItems() {
  28724. let i = 0;
  28725. const l = this.pushedItems.length;
  28726. let pushedItem;
  28727. for (; i < l; i++) {
  28728. pushedItem = this.pushedItems[i];
  28729. pushedItem.checkItemChanges(pushedItem.$item, pushedItem.item);
  28730. }
  28731. this.pushedItems = [];
  28732. this.pushedItemsPath = [];
  28733. }
  28734. checkPushBack() {
  28735. let i = this.pushedItems.length - 1;
  28736. let change = false;
  28737. for (; i > -1; i--) {
  28738. if (this.checkPushedItem(this.pushedItems[i], i)) {
  28739. change = true;
  28740. }
  28741. }
  28742. if (change) {
  28743. this.checkPushBack();
  28744. }
  28745. }
  28746. push(gridsterItem, direction) {
  28747. if (this.iteration > 100) {
  28748. console.warn('max iteration reached');
  28749. return false;
  28750. }
  28751. if (this.gridster.checkGridCollision(gridsterItem.$item)) {
  28752. return false;
  28753. }
  28754. if (direction === '') {
  28755. return false;
  28756. }
  28757. const conflicts = this.gridster.findItemsWithItem(gridsterItem.$item);
  28758. const invert = direction === this.fromNorth || direction === this.fromWest;
  28759. // sort the list of conflicts in order of [y,x]. Invert when the push is from north and west
  28760. // this is done so they don't conflict witch each other and revert positions, keeping the previous order
  28761. conflicts.sort((a, b) => {
  28762. if (invert) {
  28763. return b.$item.y - a.$item.y || b.$item.x - a.$item.x;
  28764. }
  28765. else {
  28766. return a.$item.y - b.$item.y || a.$item.x - b.$item.x;
  28767. }
  28768. });
  28769. let i = 0;
  28770. let itemCollision;
  28771. let makePush = true;
  28772. const pushedItems = [];
  28773. for (; i < conflicts.length; i++) {
  28774. itemCollision = conflicts[i];
  28775. if (itemCollision === this.gridsterItem) {
  28776. continue;
  28777. }
  28778. if (!itemCollision.canBeDragged()) {
  28779. makePush = false;
  28780. break;
  28781. }
  28782. const p = this.pushedItemsTemp.indexOf(itemCollision);
  28783. if (p > -1 && this.pushedItemsTempPath[p].length > 10) { // stop if item is pushed more than 10 times to break infinite loops
  28784. makePush = false;
  28785. break;
  28786. }
  28787. if (this.tryPattern[direction][0].call(this, itemCollision, gridsterItem)) {
  28788. this.pushedItemsOrder.push(itemCollision);
  28789. pushedItems.push(itemCollision);
  28790. }
  28791. else if (this.tryPattern[direction][1].call(this, itemCollision, gridsterItem)) {
  28792. this.pushedItemsOrder.push(itemCollision);
  28793. pushedItems.push(itemCollision);
  28794. }
  28795. else if (this.tryPattern[direction][2].call(this, itemCollision, gridsterItem)) {
  28796. this.pushedItemsOrder.push(itemCollision);
  28797. pushedItems.push(itemCollision);
  28798. }
  28799. else if (this.tryPattern[direction][3].call(this, itemCollision, gridsterItem)) {
  28800. this.pushedItemsOrder.push(itemCollision);
  28801. pushedItems.push(itemCollision);
  28802. }
  28803. else {
  28804. makePush = false;
  28805. break;
  28806. }
  28807. }
  28808. if (!makePush) {
  28809. i = this.pushedItemsOrder.lastIndexOf(pushedItems[0]);
  28810. if (i > -1) {
  28811. let j = this.pushedItemsOrder.length - 1;
  28812. for (; j >= i; j--) {
  28813. itemCollision = this.pushedItemsOrder[j];
  28814. this.pushedItemsOrder.pop();
  28815. this.removeFromTempPushed(itemCollision);
  28816. this.removeFromPushedItem(itemCollision);
  28817. }
  28818. }
  28819. }
  28820. this.iteration++;
  28821. return makePush;
  28822. }
  28823. trySouth(gridsterItemCollide, gridsterItem) {
  28824. if (!this.gridster.$options.pushDirections.south) {
  28825. return false;
  28826. }
  28827. this.addToTempPushed(gridsterItemCollide);
  28828. gridsterItemCollide.$item.y = gridsterItem.$item.y + gridsterItem.$item.rows;
  28829. if (this.push(gridsterItemCollide, this.fromNorth)) {
  28830. gridsterItemCollide.setSize();
  28831. this.addToPushed(gridsterItemCollide);
  28832. return true;
  28833. }
  28834. else {
  28835. this.removeFromTempPushed(gridsterItemCollide);
  28836. }
  28837. return false;
  28838. }
  28839. tryNorth(gridsterItemCollide, gridsterItem) {
  28840. if (!this.gridster.$options.pushDirections.north) {
  28841. return false;
  28842. }
  28843. this.addToTempPushed(gridsterItemCollide);
  28844. gridsterItemCollide.$item.y = gridsterItem.$item.y - gridsterItemCollide.$item.rows;
  28845. if (this.push(gridsterItemCollide, this.fromSouth)) {
  28846. gridsterItemCollide.setSize();
  28847. this.addToPushed(gridsterItemCollide);
  28848. return true;
  28849. }
  28850. else {
  28851. this.removeFromTempPushed(gridsterItemCollide);
  28852. }
  28853. return false;
  28854. }
  28855. tryEast(gridsterItemCollide, gridsterItem) {
  28856. if (!this.gridster.$options.pushDirections.east) {
  28857. return false;
  28858. }
  28859. this.addToTempPushed(gridsterItemCollide);
  28860. gridsterItemCollide.$item.x = gridsterItem.$item.x + gridsterItem.$item.cols;
  28861. if (this.push(gridsterItemCollide, this.fromWest)) {
  28862. gridsterItemCollide.setSize();
  28863. this.addToPushed(gridsterItemCollide);
  28864. return true;
  28865. }
  28866. else {
  28867. this.removeFromTempPushed(gridsterItemCollide);
  28868. }
  28869. return false;
  28870. }
  28871. tryWest(gridsterItemCollide, gridsterItem) {
  28872. if (!this.gridster.$options.pushDirections.west) {
  28873. return false;
  28874. }
  28875. this.addToTempPushed(gridsterItemCollide);
  28876. gridsterItemCollide.$item.x = gridsterItem.$item.x - gridsterItemCollide.$item.cols;
  28877. if (this.push(gridsterItemCollide, this.fromEast)) {
  28878. gridsterItemCollide.setSize();
  28879. this.addToPushed(gridsterItemCollide);
  28880. return true;
  28881. }
  28882. else {
  28883. this.removeFromTempPushed(gridsterItemCollide);
  28884. }
  28885. return false;
  28886. }
  28887. addToTempPushed(gridsterItem) {
  28888. let i = this.pushedItemsTemp.indexOf(gridsterItem);
  28889. if (i === -1) {
  28890. i = this.pushedItemsTemp.push(gridsterItem) - 1;
  28891. this.pushedItemsTempPath[i] = [];
  28892. }
  28893. this.pushedItemsTempPath[i].push({ x: gridsterItem.$item.x, y: gridsterItem.$item.y });
  28894. }
  28895. removeFromTempPushed(gridsterItem) {
  28896. const i = this.pushedItemsTemp.indexOf(gridsterItem);
  28897. const tempPosition = this.pushedItemsTempPath[i].pop();
  28898. if (!tempPosition) {
  28899. return;
  28900. }
  28901. gridsterItem.$item.x = tempPosition.x;
  28902. gridsterItem.$item.y = tempPosition.y;
  28903. gridsterItem.setSize();
  28904. if (!this.pushedItemsTempPath[i].length) {
  28905. this.pushedItemsTemp.splice(i, 1);
  28906. this.pushedItemsTempPath.splice(i, 1);
  28907. }
  28908. }
  28909. addToPushed(gridsterItem) {
  28910. if (this.pushedItems.indexOf(gridsterItem) < 0) {
  28911. this.pushedItems.push(gridsterItem);
  28912. this.pushedItemsPath.push([{ x: gridsterItem.item.x || 0, y: gridsterItem.item.y || 0 },
  28913. { x: gridsterItem.$item.x, y: gridsterItem.$item.y }]);
  28914. }
  28915. else {
  28916. const i = this.pushedItems.indexOf(gridsterItem);
  28917. this.pushedItemsPath[i].push({ x: gridsterItem.$item.x, y: gridsterItem.$item.y });
  28918. }
  28919. }
  28920. removeFromPushed(i) {
  28921. if (i > -1) {
  28922. this.pushedItems.splice(i, 1);
  28923. this.pushedItemsPath.splice(i, 1);
  28924. }
  28925. }
  28926. removeFromPushedItem(gridsterItem) {
  28927. const i = this.pushedItems.indexOf(gridsterItem);
  28928. if (i > -1) {
  28929. this.pushedItemsPath[i].pop();
  28930. if (!this.pushedItemsPath.length) {
  28931. this.pushedItems.splice(i, 1);
  28932. this.pushedItemsPath.splice(i, 1);
  28933. }
  28934. }
  28935. }
  28936. checkPushedItem(pushedItem, i) {
  28937. const path = this.pushedItemsPath[i];
  28938. let j = path.length - 2;
  28939. let lastPosition;
  28940. let x;
  28941. let y;
  28942. let change = false;
  28943. for (; j > -1; j--) {
  28944. lastPosition = path[j];
  28945. x = pushedItem.$item.x;
  28946. y = pushedItem.$item.y;
  28947. pushedItem.$item.x = lastPosition.x;
  28948. pushedItem.$item.y = lastPosition.y;
  28949. if (!this.gridster.findItemWithItem(pushedItem.$item)) {
  28950. pushedItem.setSize();
  28951. path.splice(j + 1, path.length - j - 1);
  28952. change = true;
  28953. }
  28954. else {
  28955. pushedItem.$item.x = x;
  28956. pushedItem.$item.y = y;
  28957. }
  28958. }
  28959. if (path.length < 2) {
  28960. this.removeFromPushed(i);
  28961. }
  28962. return change;
  28963. }
  28964. }
  28965. GridsterPush.ɵfac = function GridsterPush_Factory(t) { return new (t || GridsterPush)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterItemComponentInterface)); };
  28966. GridsterPush.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterPush, factory: GridsterPush.ɵfac });
  28967. GridsterPush.ctorParameters = () => [
  28968. { type: GridsterItemComponentInterface }
  28969. ];
  28970. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterPush, [{
  28971. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  28972. }], function () { return [{ type: GridsterItemComponentInterface }]; }, null); })();
  28973. let scrollSensitivity;
  28974. let scrollSpeed;
  28975. const intervalDuration = 50;
  28976. let gridsterElement;
  28977. let resizeEvent;
  28978. let resizeEventType;
  28979. let intervalE;
  28980. let intervalW;
  28981. let intervalN;
  28982. let intervalS;
  28983. function scroll(gridster, left, top, width, height, e, lastMouse, calculateItemPosition, resize, resizeEventScrollType) {
  28984. scrollSensitivity = gridster.$options.scrollSensitivity;
  28985. scrollSpeed = gridster.$options.scrollSpeed;
  28986. gridsterElement = gridster.el;
  28987. resizeEvent = resize;
  28988. resizeEventType = resizeEventScrollType;
  28989. const offsetWidth = gridsterElement.offsetWidth;
  28990. const offsetHeight = gridsterElement.offsetHeight;
  28991. const offsetLeft = gridsterElement.scrollLeft;
  28992. const offsetTop = gridsterElement.scrollTop;
  28993. const elemTopOffset = top - offsetTop;
  28994. const elemBottomOffset = offsetHeight + offsetTop - top - height;
  28995. if (!gridster.$options.disableScrollVertical) {
  28996. if (lastMouse.clientY < e.clientY && elemBottomOffset < scrollSensitivity) {
  28997. cancelN();
  28998. if ((resizeEvent && resizeEventType && !resizeEventType.s) || intervalS) {
  28999. return;
  29000. }
  29001. intervalS = startVertical(1, calculateItemPosition, lastMouse);
  29002. }
  29003. else if (lastMouse.clientY > e.clientY && offsetTop > 0 && elemTopOffset < scrollSensitivity) {
  29004. cancelS();
  29005. if ((resizeEvent && resizeEventType && !resizeEventType.n) || intervalN) {
  29006. return;
  29007. }
  29008. intervalN = startVertical(-1, calculateItemPosition, lastMouse);
  29009. }
  29010. else if (lastMouse.clientY !== e.clientY) {
  29011. cancelVertical();
  29012. }
  29013. }
  29014. const elemRightOffset = offsetLeft + offsetWidth - left - width;
  29015. const elemLeftOffset = left - offsetLeft;
  29016. if (!gridster.$options.disableScrollHorizontal) {
  29017. if (lastMouse.clientX < e.clientX && elemRightOffset <= scrollSensitivity) {
  29018. cancelW();
  29019. if ((resizeEvent && resizeEventType && !resizeEventType.e) || intervalE) {
  29020. return;
  29021. }
  29022. intervalE = startHorizontal(1, calculateItemPosition, lastMouse);
  29023. }
  29024. else if (lastMouse.clientX > e.clientX && offsetLeft > 0 && elemLeftOffset < scrollSensitivity) {
  29025. cancelE();
  29026. if ((resizeEvent && resizeEventType && !resizeEventType.w) || intervalW) {
  29027. return;
  29028. }
  29029. intervalW = startHorizontal(-1, calculateItemPosition, lastMouse);
  29030. }
  29031. else if (lastMouse.clientX !== e.clientX) {
  29032. cancelHorizontal();
  29033. }
  29034. }
  29035. }
  29036. function startVertical(sign, calculateItemPosition, lastMouse) {
  29037. let clientY = lastMouse.clientY;
  29038. return setInterval(() => {
  29039. if (!gridsterElement || sign === -1 && gridsterElement.scrollTop - scrollSpeed < 0) {
  29040. cancelVertical();
  29041. }
  29042. // @ts-ignore
  29043. gridsterElement.scrollTop += sign * scrollSpeed;
  29044. clientY += sign * scrollSpeed;
  29045. calculateItemPosition({ clientX: lastMouse.clientX, clientY });
  29046. }, intervalDuration);
  29047. }
  29048. function startHorizontal(sign, calculateItemPosition, lastMouse) {
  29049. let clientX = lastMouse.clientX;
  29050. return setInterval(() => {
  29051. if (!gridsterElement || sign === -1 && gridsterElement.scrollLeft - scrollSpeed < 0) {
  29052. cancelHorizontal();
  29053. }
  29054. // @ts-ignore
  29055. gridsterElement.scrollLeft += sign * scrollSpeed;
  29056. clientX += sign * scrollSpeed;
  29057. calculateItemPosition({ clientX, clientY: lastMouse.clientY });
  29058. }, intervalDuration);
  29059. }
  29060. function cancelScroll() {
  29061. cancelHorizontal();
  29062. cancelVertical();
  29063. gridsterElement = null;
  29064. }
  29065. function cancelHorizontal() {
  29066. cancelE();
  29067. cancelW();
  29068. }
  29069. function cancelVertical() {
  29070. cancelN();
  29071. cancelS();
  29072. }
  29073. function cancelE() {
  29074. if (intervalE) {
  29075. clearInterval(intervalE);
  29076. intervalE = 0;
  29077. }
  29078. }
  29079. function cancelW() {
  29080. if (intervalW) {
  29081. clearInterval(intervalW);
  29082. intervalW = 0;
  29083. }
  29084. }
  29085. function cancelS() {
  29086. if (intervalS) {
  29087. clearInterval(intervalS);
  29088. intervalS = 0;
  29089. }
  29090. }
  29091. function cancelN() {
  29092. if (intervalN) {
  29093. clearInterval(intervalN);
  29094. intervalN = 0;
  29095. }
  29096. }
  29097. class GridsterSwap {
  29098. constructor(gridsterItem) {
  29099. this.gridsterItem = gridsterItem;
  29100. this.gridster = gridsterItem.gridster;
  29101. }
  29102. destroy() {
  29103. // @ts-ignore
  29104. delete this.gridster;
  29105. // @ts-ignore
  29106. delete this.gridsterItem;
  29107. delete this.swapedItem;
  29108. }
  29109. swapItems() {
  29110. if (this.gridster.$options.swap) {
  29111. this.checkSwapBack();
  29112. this.checkSwap(this.gridsterItem);
  29113. }
  29114. }
  29115. checkSwapBack() {
  29116. if (this.swapedItem) {
  29117. const x = this.swapedItem.$item.x;
  29118. const y = this.swapedItem.$item.y;
  29119. this.swapedItem.$item.x = this.swapedItem.item.x || 0;
  29120. this.swapedItem.$item.y = this.swapedItem.item.y || 0;
  29121. if (this.gridster.checkCollision(this.swapedItem.$item)) {
  29122. this.swapedItem.$item.x = x;
  29123. this.swapedItem.$item.y = y;
  29124. }
  29125. else {
  29126. this.swapedItem.setSize();
  29127. this.gridsterItem.$item.x = this.gridsterItem.item.x || 0;
  29128. this.gridsterItem.$item.y = this.gridsterItem.item.y || 0;
  29129. this.swapedItem = undefined;
  29130. }
  29131. }
  29132. }
  29133. restoreSwapItem() {
  29134. if (this.swapedItem) {
  29135. this.swapedItem.$item.x = this.swapedItem.item.x || 0;
  29136. this.swapedItem.$item.y = this.swapedItem.item.y || 0;
  29137. this.swapedItem.setSize();
  29138. this.swapedItem = undefined;
  29139. }
  29140. }
  29141. setSwapItem() {
  29142. if (this.swapedItem) {
  29143. this.swapedItem.checkItemChanges(this.swapedItem.$item, this.swapedItem.item);
  29144. this.swapedItem = undefined;
  29145. }
  29146. }
  29147. checkSwap(pushedBy) {
  29148. let gridsterItemCollision;
  29149. if (this.gridster.$options.swapWhileDragging) {
  29150. gridsterItemCollision = this.gridster.checkCollisionForSwaping(pushedBy.$item);
  29151. }
  29152. else {
  29153. gridsterItemCollision = this.gridster.checkCollision(pushedBy.$item);
  29154. }
  29155. if (gridsterItemCollision && gridsterItemCollision !== true && gridsterItemCollision.canBeDragged()) {
  29156. const gridsterItemCollide = gridsterItemCollision;
  29157. const copyCollisionX = gridsterItemCollide.$item.x;
  29158. const copyCollisionY = gridsterItemCollide.$item.y;
  29159. const copyX = pushedBy.$item.x;
  29160. const copyY = pushedBy.$item.y;
  29161. gridsterItemCollide.$item.x = pushedBy.item.x || 0;
  29162. gridsterItemCollide.$item.y = pushedBy.item.y || 0;
  29163. pushedBy.$item.x = gridsterItemCollide.item.x || 0;
  29164. pushedBy.$item.y = gridsterItemCollide.item.y || 0;
  29165. if (this.gridster.checkCollision(gridsterItemCollide.$item) || this.gridster.checkCollision(pushedBy.$item)) {
  29166. pushedBy.$item.x = copyX;
  29167. pushedBy.$item.y = copyY;
  29168. gridsterItemCollide.$item.x = copyCollisionX;
  29169. gridsterItemCollide.$item.y = copyCollisionY;
  29170. }
  29171. else {
  29172. gridsterItemCollide.setSize();
  29173. this.swapedItem = gridsterItemCollide;
  29174. if (this.gridster.$options.swapWhileDragging) {
  29175. this.gridsterItem.checkItemChanges(this.gridsterItem.$item, this.gridsterItem.item);
  29176. this.setSwapItem();
  29177. }
  29178. }
  29179. }
  29180. }
  29181. }
  29182. GridsterSwap.ɵfac = function GridsterSwap_Factory(t) { return new (t || GridsterSwap)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterItemComponentInterface)); };
  29183. GridsterSwap.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterSwap, factory: GridsterSwap.ɵfac });
  29184. GridsterSwap.ctorParameters = () => [
  29185. { type: GridsterItemComponentInterface }
  29186. ];
  29187. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterSwap, [{
  29188. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  29189. }], function () { return [{ type: GridsterItemComponentInterface }]; }, null); })();
  29190. class GridsterDraggable {
  29191. constructor(gridsterItem, gridster, zone) {
  29192. this.zone = zone;
  29193. this.collision = false;
  29194. this.gridsterItem = gridsterItem;
  29195. this.gridster = gridster;
  29196. this.lastMouse = {
  29197. clientX: 0,
  29198. clientY: 0
  29199. };
  29200. this.path = [];
  29201. }
  29202. destroy() {
  29203. if (this.gridster.previewStyle) {
  29204. this.gridster.previewStyle(true);
  29205. }
  29206. // @ts-ignore
  29207. delete this.gridsterItem;
  29208. // @ts-ignore
  29209. delete this.gridster;
  29210. // @ts-ignore
  29211. delete this.collision;
  29212. if (this.mousedown) {
  29213. this.mousedown();
  29214. this.touchstart();
  29215. }
  29216. }
  29217. dragStart(e) {
  29218. if (e.which && e.which !== 1) {
  29219. return;
  29220. }
  29221. if (this.gridster.options.draggable && this.gridster.options.draggable.start) {
  29222. this.gridster.options.draggable.start(this.gridsterItem.item, this.gridsterItem, e);
  29223. }
  29224. e.stopPropagation();
  29225. e.preventDefault();
  29226. this.dragFunction = this.dragMove.bind(this);
  29227. this.dragStopFunction = this.dragStop.bind(this);
  29228. this.zone.runOutsideAngular(() => {
  29229. this.mousemove = this.gridsterItem.renderer.listen('document', 'mousemove', this.dragFunction);
  29230. this.touchmove = this.gridster.renderer.listen(this.gridster.el, 'touchmove', this.dragFunction);
  29231. });
  29232. this.mouseup = this.gridsterItem.renderer.listen('document', 'mouseup', this.dragStopFunction);
  29233. this.mouseleave = this.gridsterItem.renderer.listen('document', 'mouseleave', this.dragStopFunction);
  29234. this.cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', this.dragStopFunction);
  29235. this.touchend = this.gridsterItem.renderer.listen('document', 'touchend', this.dragStopFunction);
  29236. this.touchcancel = this.gridsterItem.renderer.listen('document', 'touchcancel', this.dragStopFunction);
  29237. this.gridsterItem.renderer.addClass(this.gridsterItem.el, 'gridster-item-moving');
  29238. this.margin = this.gridster.$options.margin;
  29239. this.offsetLeft = this.gridster.el.scrollLeft - this.gridster.el.offsetLeft;
  29240. this.offsetTop = this.gridster.el.scrollTop - this.gridster.el.offsetTop;
  29241. this.left = this.gridsterItem.left - this.margin;
  29242. this.top = this.gridsterItem.top - this.margin;
  29243. this.originalClientX = e.clientX;
  29244. this.originalClientY = e.clientY;
  29245. this.width = this.gridsterItem.width;
  29246. this.height = this.gridsterItem.height;
  29247. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29248. this.diffLeft = (e.clientX - this.gridster.el.scrollWidth + this.gridsterItem.left);
  29249. }
  29250. else {
  29251. this.diffLeft = e.clientX + this.offsetLeft - this.margin - this.left;
  29252. }
  29253. this.diffTop = e.clientY + this.offsetTop - this.margin - this.top;
  29254. this.gridster.movingItem = this.gridsterItem.$item;
  29255. this.gridster.previewStyle(true);
  29256. this.push = new GridsterPush(this.gridsterItem);
  29257. this.swap = new GridsterSwap(this.gridsterItem);
  29258. this.gridster.dragInProgress = true;
  29259. this.gridster.updateGrid();
  29260. this.path.push({ x: this.gridsterItem.item.x || 0, y: this.gridsterItem.item.y || 0 });
  29261. }
  29262. dragMove(e) {
  29263. e.stopPropagation();
  29264. e.preventDefault();
  29265. GridsterUtils.checkTouchEvent(e);
  29266. this.offsetLeft = this.gridster.el.scrollLeft - this.gridster.el.offsetLeft;
  29267. this.offsetTop = this.gridster.el.scrollTop - this.gridster.el.offsetTop;
  29268. scroll(this.gridster, this.left, this.top, this.width, this.height, e, this.lastMouse, this.calculateItemPositionFromMousePosition.bind(this));
  29269. this.calculateItemPositionFromMousePosition(e);
  29270. }
  29271. calculateItemPositionFromMousePosition(e) {
  29272. if (this.gridster.options.scale) {
  29273. this.calculateItemPositionWithScale(e, this.gridster.options.scale);
  29274. }
  29275. else {
  29276. this.calculateItemPositionWithoutScale(e);
  29277. }
  29278. this.calculateItemPosition();
  29279. this.lastMouse.clientX = e.clientX;
  29280. this.lastMouse.clientY = e.clientY;
  29281. this.zone.run(() => {
  29282. this.gridster.updateGrid();
  29283. });
  29284. }
  29285. calculateItemPositionWithScale(e, scale) {
  29286. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29287. this.left = this.gridster.el.scrollWidth - this.originalClientX + ((e.clientX - this.originalClientX) / scale) + this.diffLeft;
  29288. }
  29289. else {
  29290. this.left = this.originalClientX + ((e.clientX - this.originalClientX) / scale) + this.offsetLeft - this.diffLeft;
  29291. }
  29292. this.top = this.originalClientY + ((e.clientY - this.originalClientY) / scale) + this.offsetTop - this.diffTop;
  29293. }
  29294. calculateItemPositionWithoutScale(e) {
  29295. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29296. this.left = this.gridster.el.scrollWidth - e.clientX + this.diffLeft;
  29297. }
  29298. else {
  29299. this.left = e.clientX + this.offsetLeft - this.diffLeft;
  29300. }
  29301. this.top = e.clientY + this.offsetTop - this.diffTop;
  29302. }
  29303. dragStop(e) {
  29304. e.stopPropagation();
  29305. e.preventDefault();
  29306. cancelScroll();
  29307. this.cancelOnBlur();
  29308. this.mousemove();
  29309. this.mouseup();
  29310. this.mouseleave();
  29311. this.touchmove();
  29312. this.touchend();
  29313. this.touchcancel();
  29314. this.gridsterItem.renderer.removeClass(this.gridsterItem.el, 'gridster-item-moving');
  29315. this.gridster.dragInProgress = false;
  29316. this.gridster.updateGrid();
  29317. this.path = [];
  29318. if (this.gridster.options.draggable && this.gridster.options.draggable.stop) {
  29319. Promise.resolve(this.gridster.options.draggable.stop(this.gridsterItem.item, this.gridsterItem, e))
  29320. .then(this.makeDrag.bind(this), this.cancelDrag.bind(this));
  29321. }
  29322. else {
  29323. this.makeDrag();
  29324. }
  29325. setTimeout(() => {
  29326. if (this.gridster) {
  29327. this.gridster.movingItem = null;
  29328. this.gridster.previewStyle(true);
  29329. }
  29330. });
  29331. }
  29332. cancelDrag() {
  29333. this.gridsterItem.$item.x = this.gridsterItem.item.x || 0;
  29334. this.gridsterItem.$item.y = this.gridsterItem.item.y || 0;
  29335. this.gridsterItem.setSize();
  29336. if (this.push) {
  29337. this.push.restoreItems();
  29338. }
  29339. if (this.swap) {
  29340. this.swap.restoreSwapItem();
  29341. }
  29342. if (this.push) {
  29343. this.push.destroy();
  29344. // @ts-ignore
  29345. delete this.push;
  29346. }
  29347. if (this.swap) {
  29348. this.swap.destroy();
  29349. // @ts-ignore
  29350. delete this.swap;
  29351. }
  29352. }
  29353. makeDrag() {
  29354. if (this.gridster.$options.draggable.dropOverItems && this.gridster.options.draggable
  29355. && this.gridster.options.draggable.dropOverItemsCallback
  29356. && this.collision && this.collision !== true && this.collision.$item) {
  29357. this.gridster.options.draggable.dropOverItemsCallback(this.gridsterItem.item, this.collision.item, this.gridster);
  29358. }
  29359. this.collision = false;
  29360. this.gridsterItem.setSize();
  29361. this.gridsterItem.checkItemChanges(this.gridsterItem.$item, this.gridsterItem.item);
  29362. if (this.push) {
  29363. this.push.setPushedItems();
  29364. }
  29365. if (this.swap) {
  29366. this.swap.setSwapItem();
  29367. }
  29368. if (this.push) {
  29369. this.push.destroy();
  29370. // @ts-ignore
  29371. delete this.push;
  29372. }
  29373. if (this.swap) {
  29374. this.swap.destroy();
  29375. // @ts-ignore
  29376. delete this.swap;
  29377. }
  29378. }
  29379. calculateItemPosition() {
  29380. this.gridster.movingItem = this.gridsterItem.$item;
  29381. this.positionX = this.gridster.pixelsToPositionX(this.left, Math.round);
  29382. this.positionY = this.gridster.pixelsToPositionY(this.top, Math.round);
  29383. this.positionXBackup = this.gridsterItem.$item.x;
  29384. this.positionYBackup = this.gridsterItem.$item.y;
  29385. this.gridsterItem.$item.x = this.positionX;
  29386. if (this.gridster.checkGridCollision(this.gridsterItem.$item)) {
  29387. this.gridsterItem.$item.x = this.positionXBackup;
  29388. }
  29389. this.gridsterItem.$item.y = this.positionY;
  29390. if (this.gridster.checkGridCollision(this.gridsterItem.$item)) {
  29391. this.gridsterItem.$item.y = this.positionYBackup;
  29392. }
  29393. this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer, this.gridsterItem.el, this.left, this.top);
  29394. if (this.positionXBackup !== this.gridsterItem.$item.x || this.positionYBackup !== this.gridsterItem.$item.y) {
  29395. const lastPosition = this.path[this.path.length - 1];
  29396. let direction = '';
  29397. if (lastPosition.x < this.gridsterItem.$item.x) {
  29398. direction = this.push.fromWest;
  29399. }
  29400. else if (lastPosition.x > this.gridsterItem.$item.x) {
  29401. direction = this.push.fromEast;
  29402. }
  29403. else if (lastPosition.y < this.gridsterItem.$item.y) {
  29404. direction = this.push.fromNorth;
  29405. }
  29406. else if (lastPosition.y > this.gridsterItem.$item.y) {
  29407. direction = this.push.fromSouth;
  29408. }
  29409. this.push.pushItems(direction, this.gridster.$options.disablePushOnDrag);
  29410. this.swap.swapItems();
  29411. this.collision = this.gridster.checkCollision(this.gridsterItem.$item);
  29412. if (this.collision) {
  29413. this.gridsterItem.$item.x = this.positionXBackup;
  29414. this.gridsterItem.$item.y = this.positionYBackup;
  29415. if (this.gridster.$options.draggable.dropOverItems && this.collision !== true && this.collision.$item) {
  29416. this.gridster.movingItem = null;
  29417. }
  29418. }
  29419. else {
  29420. this.path.push({ x: this.gridsterItem.$item.x, y: this.gridsterItem.$item.y });
  29421. }
  29422. this.push.checkPushBack();
  29423. }
  29424. this.gridster.previewStyle(true);
  29425. }
  29426. toggle() {
  29427. const enableDrag = this.gridsterItem.canBeDragged();
  29428. if (!this.enabled && enableDrag) {
  29429. this.enabled = !this.enabled;
  29430. this.dragStartFunction = this.dragStartDelay.bind(this);
  29431. this.mousedown = this.gridsterItem.renderer.listen(this.gridsterItem.el, 'mousedown', this.dragStartFunction);
  29432. this.touchstart = this.gridsterItem.renderer.listen(this.gridsterItem.el, 'touchstart', this.dragStartFunction);
  29433. }
  29434. else if (this.enabled && !enableDrag) {
  29435. this.enabled = !this.enabled;
  29436. this.mousedown();
  29437. this.touchstart();
  29438. }
  29439. }
  29440. dragStartDelay(e) {
  29441. if (e.target.hasAttribute('class') && e.target.getAttribute('class').split(' ').indexOf('gridster-item-resizable-handler') > -1) {
  29442. return;
  29443. }
  29444. if (GridsterUtils.checkContentClassForEvent(this.gridster, e)) {
  29445. return;
  29446. }
  29447. GridsterUtils.checkTouchEvent(e);
  29448. if (!this.gridster.$options.draggable.delayStart) {
  29449. this.dragStart(e);
  29450. return;
  29451. }
  29452. const timeout = setTimeout(() => {
  29453. this.dragStart(e);
  29454. cancelDrag();
  29455. }, this.gridster.$options.draggable.delayStart);
  29456. const cancelMouse = this.gridsterItem.renderer.listen('document', 'mouseup', cancelDrag);
  29457. const cancelMouseLeave = this.gridsterItem.renderer.listen('document', 'mouseleave', cancelDrag);
  29458. const cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', cancelDrag);
  29459. const cancelTouchMove = this.gridsterItem.renderer.listen('document', 'touchmove', cancelMove);
  29460. const cancelTouchEnd = this.gridsterItem.renderer.listen('document', 'touchend', cancelDrag);
  29461. const cancelTouchCancel = this.gridsterItem.renderer.listen('document', 'touchcancel', cancelDrag);
  29462. function cancelMove(eventMove) {
  29463. GridsterUtils.checkTouchEvent(eventMove);
  29464. if (Math.abs(eventMove.clientX - e.clientX) > 9 || Math.abs(eventMove.clientY - e.clientY) > 9) {
  29465. cancelDrag();
  29466. }
  29467. }
  29468. function cancelDrag() {
  29469. clearTimeout(timeout);
  29470. cancelOnBlur();
  29471. cancelMouse();
  29472. cancelMouseLeave();
  29473. cancelTouchMove();
  29474. cancelTouchEnd();
  29475. cancelTouchCancel();
  29476. }
  29477. }
  29478. }
  29479. GridsterDraggable.ɵfac = function GridsterDraggable_Factory(t) { return new (t || GridsterDraggable)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterItemComponentInterface), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterComponentInterface), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  29480. GridsterDraggable.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterDraggable, factory: GridsterDraggable.ɵfac });
  29481. GridsterDraggable.ctorParameters = () => [
  29482. { type: GridsterItemComponentInterface },
  29483. { type: GridsterComponentInterface },
  29484. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }
  29485. ];
  29486. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterDraggable, [{
  29487. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  29488. }], function () { return [{ type: GridsterItemComponentInterface }, { type: GridsterComponentInterface }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }]; }, null); })();
  29489. class GridsterPushResize {
  29490. constructor(gridsterItem) {
  29491. this.pushedItems = [];
  29492. this.pushedItemsPath = [];
  29493. this.gridsterItem = gridsterItem;
  29494. this.gridster = gridsterItem.gridster;
  29495. this.tryPattern = {
  29496. fromEast: this.tryWest,
  29497. fromWest: this.tryEast,
  29498. fromNorth: this.trySouth,
  29499. fromSouth: this.tryNorth
  29500. };
  29501. this.fromSouth = 'fromSouth';
  29502. this.fromNorth = 'fromNorth';
  29503. this.fromEast = 'fromEast';
  29504. this.fromWest = 'fromWest';
  29505. }
  29506. destroy() {
  29507. // @ts-ignore
  29508. delete this.gridster;
  29509. // @ts-ignore
  29510. delete this.gridsterItem;
  29511. }
  29512. pushItems(direction) {
  29513. if (this.gridster.$options.pushResizeItems) {
  29514. return this.push(this.gridsterItem, direction);
  29515. }
  29516. else {
  29517. return false;
  29518. }
  29519. }
  29520. restoreItems() {
  29521. let i = 0;
  29522. const l = this.pushedItems.length;
  29523. let pushedItem;
  29524. for (; i < l; i++) {
  29525. pushedItem = this.pushedItems[i];
  29526. pushedItem.$item.x = pushedItem.item.x || 0;
  29527. pushedItem.$item.y = pushedItem.item.y || 0;
  29528. pushedItem.$item.cols = pushedItem.item.cols || 1;
  29529. pushedItem.$item.row = pushedItem.item.row || 1;
  29530. pushedItem.setSize();
  29531. }
  29532. this.pushedItems = [];
  29533. this.pushedItemsPath = [];
  29534. }
  29535. setPushedItems() {
  29536. let i = 0;
  29537. const l = this.pushedItems.length;
  29538. let pushedItem;
  29539. for (; i < l; i++) {
  29540. pushedItem = this.pushedItems[i];
  29541. pushedItem.checkItemChanges(pushedItem.$item, pushedItem.item);
  29542. }
  29543. this.pushedItems = [];
  29544. this.pushedItemsPath = [];
  29545. }
  29546. checkPushBack() {
  29547. let i = this.pushedItems.length - 1;
  29548. let change = false;
  29549. for (; i > -1; i--) {
  29550. if (this.checkPushedItem(this.pushedItems[i], i)) {
  29551. change = true;
  29552. }
  29553. }
  29554. if (change) {
  29555. this.checkPushBack();
  29556. }
  29557. }
  29558. push(gridsterItem, direction) {
  29559. const gridsterItemCollision = this.gridster.checkCollision(gridsterItem.$item);
  29560. if (gridsterItemCollision && gridsterItemCollision !== true &&
  29561. gridsterItemCollision !== this.gridsterItem && gridsterItemCollision.canBeResized()) {
  29562. if (this.tryPattern[direction].call(this, gridsterItemCollision, gridsterItem, direction)) {
  29563. return true;
  29564. }
  29565. }
  29566. else if (gridsterItemCollision === false) {
  29567. return true;
  29568. }
  29569. return false;
  29570. }
  29571. trySouth(gridsterItemCollide, gridsterItem, direction) {
  29572. const backUpY = gridsterItemCollide.$item.y;
  29573. const backUpRows = gridsterItemCollide.$item.rows;
  29574. gridsterItemCollide.$item.y = gridsterItem.$item.y + gridsterItem.$item.rows;
  29575. gridsterItemCollide.$item.rows = backUpRows + backUpY - gridsterItemCollide.$item.y;
  29576. if (!this.gridster.checkCollisionTwoItems(gridsterItemCollide.$item, gridsterItem.$item)
  29577. && !this.gridster.checkGridCollision(gridsterItemCollide.$item)) {
  29578. gridsterItemCollide.setSize();
  29579. this.addToPushed(gridsterItemCollide);
  29580. this.push(gridsterItem, direction);
  29581. return true;
  29582. }
  29583. else {
  29584. gridsterItemCollide.$item.y = backUpY;
  29585. gridsterItemCollide.$item.rows = backUpRows;
  29586. }
  29587. return false;
  29588. }
  29589. tryNorth(gridsterItemCollide, gridsterItem, direction) {
  29590. const backUpRows = gridsterItemCollide.$item.rows;
  29591. gridsterItemCollide.$item.rows = gridsterItem.$item.y - gridsterItemCollide.$item.y;
  29592. if (!this.gridster.checkCollisionTwoItems(gridsterItemCollide.$item, gridsterItem.$item)
  29593. && !this.gridster.checkGridCollision(gridsterItemCollide.$item)) {
  29594. gridsterItemCollide.setSize();
  29595. this.addToPushed(gridsterItemCollide);
  29596. this.push(gridsterItem, direction);
  29597. return true;
  29598. }
  29599. else {
  29600. gridsterItemCollide.$item.rows = backUpRows;
  29601. }
  29602. return false;
  29603. }
  29604. tryEast(gridsterItemCollide, gridsterItem, direction) {
  29605. const backUpX = gridsterItemCollide.$item.x;
  29606. const backUpCols = gridsterItemCollide.$item.cols;
  29607. gridsterItemCollide.$item.x = gridsterItem.$item.x + gridsterItem.$item.cols;
  29608. gridsterItemCollide.$item.cols = backUpCols + backUpX - gridsterItemCollide.$item.x;
  29609. if (!this.gridster.checkCollisionTwoItems(gridsterItemCollide.$item, gridsterItem.$item)
  29610. && !this.gridster.checkGridCollision(gridsterItemCollide.$item)) {
  29611. gridsterItemCollide.setSize();
  29612. this.addToPushed(gridsterItemCollide);
  29613. this.push(gridsterItem, direction);
  29614. return true;
  29615. }
  29616. else {
  29617. gridsterItemCollide.$item.x = backUpX;
  29618. gridsterItemCollide.$item.cols = backUpCols;
  29619. }
  29620. return false;
  29621. }
  29622. tryWest(gridsterItemCollide, gridsterItem, direction) {
  29623. const backUpCols = gridsterItemCollide.$item.cols;
  29624. gridsterItemCollide.$item.cols = gridsterItem.$item.x - gridsterItemCollide.$item.x;
  29625. if (!this.gridster.checkCollisionTwoItems(gridsterItemCollide.$item, gridsterItem.$item)
  29626. && !this.gridster.checkGridCollision(gridsterItemCollide.$item)) {
  29627. gridsterItemCollide.setSize();
  29628. this.addToPushed(gridsterItemCollide);
  29629. this.push(gridsterItem, direction);
  29630. return true;
  29631. }
  29632. else {
  29633. gridsterItemCollide.$item.cols = backUpCols;
  29634. }
  29635. return false;
  29636. }
  29637. addToPushed(gridsterItem) {
  29638. if (this.pushedItems.indexOf(gridsterItem) < 0) {
  29639. this.pushedItems.push(gridsterItem);
  29640. this.pushedItemsPath.push([
  29641. {
  29642. x: gridsterItem.item.x || 0,
  29643. y: gridsterItem.item.y || 0,
  29644. cols: gridsterItem.item.cols || 0,
  29645. rows: gridsterItem.item.rows || 0
  29646. },
  29647. {
  29648. x: gridsterItem.$item.x,
  29649. y: gridsterItem.$item.y,
  29650. cols: gridsterItem.$item.cols,
  29651. rows: gridsterItem.$item.rows
  29652. }
  29653. ]);
  29654. }
  29655. else {
  29656. const i = this.pushedItems.indexOf(gridsterItem);
  29657. this.pushedItemsPath[i].push({
  29658. x: gridsterItem.$item.x,
  29659. y: gridsterItem.$item.y,
  29660. cols: gridsterItem.$item.cols,
  29661. rows: gridsterItem.$item.rows
  29662. });
  29663. }
  29664. }
  29665. removeFromPushed(i) {
  29666. if (i > -1) {
  29667. this.pushedItems.splice(i, 1);
  29668. this.pushedItemsPath.splice(i, 1);
  29669. }
  29670. }
  29671. checkPushedItem(pushedItem, i) {
  29672. const path = this.pushedItemsPath[i];
  29673. let j = path.length - 2;
  29674. let lastPosition;
  29675. let x;
  29676. let y;
  29677. let cols;
  29678. let rows;
  29679. for (; j > -1; j--) {
  29680. lastPosition = path[j];
  29681. x = pushedItem.$item.x;
  29682. y = pushedItem.$item.y;
  29683. cols = pushedItem.$item.cols;
  29684. rows = pushedItem.$item.rows;
  29685. pushedItem.$item.x = lastPosition.x;
  29686. pushedItem.$item.y = lastPosition.y;
  29687. pushedItem.$item.cols = lastPosition.cols;
  29688. pushedItem.$item.rows = lastPosition.rows;
  29689. if (!this.gridster.findItemWithItem(pushedItem.$item)) {
  29690. pushedItem.setSize();
  29691. path.splice(j + 1, path.length - 1 - j);
  29692. }
  29693. else {
  29694. pushedItem.$item.x = x;
  29695. pushedItem.$item.y = y;
  29696. pushedItem.$item.cols = cols;
  29697. pushedItem.$item.rows = rows;
  29698. }
  29699. }
  29700. if (path.length < 2) {
  29701. this.removeFromPushed(i);
  29702. return true;
  29703. }
  29704. return false;
  29705. }
  29706. }
  29707. GridsterPushResize.ɵfac = function GridsterPushResize_Factory(t) { return new (t || GridsterPushResize)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterItemComponentInterface)); };
  29708. GridsterPushResize.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterPushResize, factory: GridsterPushResize.ɵfac });
  29709. GridsterPushResize.ctorParameters = () => [
  29710. { type: GridsterItemComponentInterface }
  29711. ];
  29712. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterPushResize, [{
  29713. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  29714. }], function () { return [{ type: GridsterItemComponentInterface }]; }, null); })();
  29715. class GridsterResizable {
  29716. constructor(gridsterItem, gridster, zone) {
  29717. this.zone = zone;
  29718. this.gridsterItem = gridsterItem;
  29719. this.gridster = gridster;
  29720. this.lastMouse = {
  29721. clientX: 0,
  29722. clientY: 0
  29723. };
  29724. this.itemBackup = [0, 0, 0, 0];
  29725. this.resizeEventScrollType = { w: false, e: false, n: false, s: false };
  29726. }
  29727. destroy() {
  29728. if (this.gridster.previewStyle) {
  29729. this.gridster.previewStyle();
  29730. }
  29731. // @ts-ignore
  29732. delete this.gridsterItem;
  29733. // @ts-ignore
  29734. delete this.gridster;
  29735. }
  29736. dragStart(e) {
  29737. var _a, _b, _c;
  29738. if (e.which && e.which !== 1) {
  29739. return;
  29740. }
  29741. if (this.gridster.options.resizable && this.gridster.options.resizable.start) {
  29742. this.gridster.options.resizable.start(this.gridsterItem.item, this.gridsterItem, e);
  29743. }
  29744. e.stopPropagation();
  29745. e.preventDefault();
  29746. this.dragFunction = this.dragMove.bind(this);
  29747. this.dragStopFunction = this.dragStop.bind(this);
  29748. this.zone.runOutsideAngular(() => {
  29749. this.mousemove = this.gridsterItem.renderer.listen('document', 'mousemove', this.dragFunction);
  29750. this.touchmove = this.gridster.renderer.listen(this.gridster.el, 'touchmove', this.dragFunction);
  29751. });
  29752. this.mouseup = this.gridsterItem.renderer.listen('document', 'mouseup', this.dragStopFunction);
  29753. this.mouseleave = this.gridsterItem.renderer.listen('document', 'mouseleave', this.dragStopFunction);
  29754. this.cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', this.dragStopFunction);
  29755. this.touchend = this.gridsterItem.renderer.listen('document', 'touchend', this.dragStopFunction);
  29756. this.touchcancel = this.gridsterItem.renderer.listen('document', 'touchcancel', this.dragStopFunction);
  29757. this.gridsterItem.renderer.addClass(this.gridsterItem.el, 'gridster-item-resizing');
  29758. this.lastMouse.clientX = e.clientX;
  29759. this.lastMouse.clientY = e.clientY;
  29760. this.left = this.gridsterItem.left;
  29761. this.top = this.gridsterItem.top;
  29762. this.originalClientX = e.clientX;
  29763. this.originalClientY = e.clientY;
  29764. this.width = this.gridsterItem.width;
  29765. this.height = this.gridsterItem.height;
  29766. this.bottom = this.gridsterItem.top + this.gridsterItem.height;
  29767. this.right = this.gridsterItem.left + this.gridsterItem.width;
  29768. this.margin = this.gridster.$options.margin;
  29769. this.offsetLeft = this.gridster.el.scrollLeft - this.gridster.el.offsetLeft;
  29770. this.offsetTop = this.gridster.el.scrollTop - this.gridster.el.offsetTop;
  29771. this.diffLeft = e.clientX + this.offsetLeft - this.left;
  29772. this.diffRight = e.clientX + this.offsetLeft - this.right;
  29773. this.diffTop = e.clientY + this.offsetTop - this.top;
  29774. this.diffBottom = e.clientY + this.offsetTop - this.bottom;
  29775. this.minHeight = this.gridster.positionYToPixels(this.gridsterItem.$item.minItemRows || this.gridster.$options.minItemRows)
  29776. - this.margin;
  29777. this.minWidth = this.gridster.positionXToPixels(this.gridsterItem.$item.minItemCols || this.gridster.$options.minItemCols)
  29778. - this.margin;
  29779. this.gridster.movingItem = this.gridsterItem.$item;
  29780. this.gridster.previewStyle();
  29781. this.push = new GridsterPush(this.gridsterItem);
  29782. this.pushResize = new GridsterPushResize(this.gridsterItem);
  29783. this.gridster.dragInProgress = true;
  29784. this.gridster.updateGrid();
  29785. if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.hasAttribute('class')) && e.target.getAttribute('class').split(' ').indexOf('handle-n') > -1) {
  29786. this.resizeEventScrollType.n = true;
  29787. this.directionFunction = this.handleN;
  29788. }
  29789. else if (((_b = e.target) === null || _b === void 0 ? void 0 : _b.hasAttribute('class')) && e.target.getAttribute('class').split(' ').indexOf('handle-w') > -1) {
  29790. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29791. this.resizeEventScrollType.e = true;
  29792. this.directionFunction = this.handleE;
  29793. }
  29794. else {
  29795. this.resizeEventScrollType.w = true;
  29796. this.directionFunction = this.handleW;
  29797. }
  29798. }
  29799. else if (((_c = e.target) === null || _c === void 0 ? void 0 : _c.hasAttribute('class')) && e.target.getAttribute('class').split(' ').indexOf('handle-s') > -1) {
  29800. this.resizeEventScrollType.s = true;
  29801. this.directionFunction = this.handleS;
  29802. }
  29803. else if (e.target.hasAttribute('class') && e.target.getAttribute('class').split(' ').indexOf('handle-e') > -1) {
  29804. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29805. this.resizeEventScrollType.w = true;
  29806. this.directionFunction = this.handleW;
  29807. }
  29808. else {
  29809. this.resizeEventScrollType.e = true;
  29810. this.directionFunction = this.handleE;
  29811. }
  29812. }
  29813. else if (e.target.hasAttribute('class') && e.target.getAttribute('class').split(' ').indexOf('handle-nw') > -1) {
  29814. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29815. this.resizeEventScrollType.n = true;
  29816. this.resizeEventScrollType.e = true;
  29817. this.directionFunction = this.handleNE;
  29818. }
  29819. else {
  29820. this.resizeEventScrollType.n = true;
  29821. this.resizeEventScrollType.w = true;
  29822. this.directionFunction = this.handleNW;
  29823. }
  29824. }
  29825. else if (e.target.hasAttribute('class') && e.target.getAttribute('class').split(' ').indexOf('handle-ne') > -1) {
  29826. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29827. this.resizeEventScrollType.n = true;
  29828. this.resizeEventScrollType.w = true;
  29829. this.directionFunction = this.handleNW;
  29830. }
  29831. else {
  29832. this.resizeEventScrollType.n = true;
  29833. this.resizeEventScrollType.e = true;
  29834. this.directionFunction = this.handleNE;
  29835. }
  29836. }
  29837. else if (e.target.hasAttribute('class') && e.target.getAttribute('class').split(' ').indexOf('handle-sw') > -1) {
  29838. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29839. this.resizeEventScrollType.s = true;
  29840. this.resizeEventScrollType.e = true;
  29841. this.directionFunction = this.handleSE;
  29842. }
  29843. else {
  29844. this.resizeEventScrollType.s = true;
  29845. this.resizeEventScrollType.w = true;
  29846. this.directionFunction = this.handleSW;
  29847. }
  29848. }
  29849. else if (e.target.hasAttribute('class') && e.target.getAttribute('class').split(' ').indexOf('handle-se') > -1) {
  29850. if (this.gridster.$options.dirType === DirTypes.RTL) {
  29851. this.resizeEventScrollType.s = true;
  29852. this.resizeEventScrollType.w = true;
  29853. this.directionFunction = this.handleSW;
  29854. }
  29855. else {
  29856. this.resizeEventScrollType.s = true;
  29857. this.resizeEventScrollType.e = true;
  29858. this.directionFunction = this.handleSE;
  29859. }
  29860. }
  29861. }
  29862. dragMove(e) {
  29863. e.stopPropagation();
  29864. e.preventDefault();
  29865. GridsterUtils.checkTouchEvent(e);
  29866. this.offsetTop = this.gridster.el.scrollTop - this.gridster.el.offsetTop;
  29867. this.offsetLeft = this.gridster.el.scrollLeft - this.gridster.el.offsetLeft;
  29868. scroll(this.gridster, this.left, this.top, this.width, this.height, e, this.lastMouse, this.directionFunction.bind(this), true, this.resizeEventScrollType);
  29869. const scale = this.gridster.options.scale || 1;
  29870. this.directionFunction({
  29871. clientX: this.originalClientX + (e.clientX - this.originalClientX) / scale,
  29872. clientY: this.originalClientY + (e.clientY - this.originalClientY) / scale
  29873. });
  29874. this.lastMouse.clientX = e.clientX;
  29875. this.lastMouse.clientY = e.clientY;
  29876. this.zone.run(() => {
  29877. this.gridster.updateGrid();
  29878. });
  29879. }
  29880. dragStop(e) {
  29881. e.stopPropagation();
  29882. e.preventDefault();
  29883. cancelScroll();
  29884. this.mousemove();
  29885. this.mouseup();
  29886. this.mouseleave();
  29887. this.cancelOnBlur();
  29888. this.touchmove();
  29889. this.touchend();
  29890. this.touchcancel();
  29891. this.gridster.dragInProgress = false;
  29892. this.gridster.updateGrid();
  29893. if (this.gridster.options.resizable && this.gridster.options.resizable.stop) {
  29894. Promise.resolve(this.gridster.options.resizable.stop(this.gridsterItem.item, this.gridsterItem, e))
  29895. .then(this.makeResize.bind(this), this.cancelResize.bind(this));
  29896. }
  29897. else {
  29898. this.makeResize();
  29899. }
  29900. setTimeout(() => {
  29901. this.gridsterItem.renderer.removeClass(this.gridsterItem.el, 'gridster-item-resizing');
  29902. if (this.gridster) {
  29903. this.gridster.movingItem = null;
  29904. this.gridster.previewStyle();
  29905. }
  29906. });
  29907. }
  29908. cancelResize() {
  29909. this.gridsterItem.$item.cols = this.gridsterItem.item.cols || 1;
  29910. this.gridsterItem.$item.rows = this.gridsterItem.item.rows || 1;
  29911. this.gridsterItem.$item.x = this.gridsterItem.item.x || 0;
  29912. this.gridsterItem.$item.y = this.gridsterItem.item.y || 0;
  29913. this.gridsterItem.setSize();
  29914. this.push.restoreItems();
  29915. this.pushResize.restoreItems();
  29916. this.push.destroy();
  29917. // @ts-ignore
  29918. delete this.push;
  29919. this.pushResize.destroy();
  29920. // @ts-ignore
  29921. delete this.pushResize;
  29922. }
  29923. makeResize() {
  29924. this.gridsterItem.setSize();
  29925. this.gridsterItem.checkItemChanges(this.gridsterItem.$item, this.gridsterItem.item);
  29926. this.push.setPushedItems();
  29927. this.pushResize.setPushedItems();
  29928. this.push.destroy();
  29929. // @ts-ignore
  29930. delete this.push;
  29931. this.pushResize.destroy();
  29932. // @ts-ignore
  29933. delete this.pushResize;
  29934. }
  29935. handleN(e) {
  29936. this.top = e.clientY + this.offsetTop - this.diffTop;
  29937. this.height = this.bottom - this.top;
  29938. if (this.minHeight > this.height) {
  29939. this.height = this.minHeight;
  29940. this.top = this.bottom - this.minHeight;
  29941. }
  29942. this.newPosition = this.gridster.pixelsToPositionY(this.top + this.margin, Math.floor);
  29943. if (this.gridsterItem.$item.y !== this.newPosition) {
  29944. this.itemBackup[1] = this.gridsterItem.$item.y;
  29945. this.itemBackup[3] = this.gridsterItem.$item.rows;
  29946. this.gridsterItem.$item.rows += this.gridsterItem.$item.y - this.newPosition;
  29947. this.gridsterItem.$item.y = this.newPosition;
  29948. this.pushResize.pushItems(this.pushResize.fromSouth);
  29949. this.push.pushItems(this.push.fromSouth, this.gridster.$options.disablePushOnResize);
  29950. if (this.gridster.checkCollision(this.gridsterItem.$item)) {
  29951. this.gridsterItem.$item.y = this.itemBackup[1];
  29952. this.gridsterItem.$item.rows = this.itemBackup[3];
  29953. this.setItemTop(this.gridster.positionYToPixels(this.gridsterItem.$item.y));
  29954. this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows) - this.margin);
  29955. return;
  29956. }
  29957. else {
  29958. this.gridster.previewStyle();
  29959. }
  29960. this.pushResize.checkPushBack();
  29961. this.push.checkPushBack();
  29962. }
  29963. this.setItemTop(this.top);
  29964. this.setItemHeight(this.height);
  29965. }
  29966. handleW(e) {
  29967. this.left = e.clientX + this.offsetLeft - this.diffLeft;
  29968. this.width = this.right - this.left;
  29969. if (this.minWidth > this.width) {
  29970. this.width = this.minWidth;
  29971. this.left = this.right - this.minWidth;
  29972. }
  29973. this.newPosition = this.gridster.pixelsToPositionX(this.left + this.margin, Math.floor);
  29974. if (this.gridsterItem.$item.x !== this.newPosition) {
  29975. this.itemBackup[0] = this.gridsterItem.$item.x;
  29976. this.itemBackup[2] = this.gridsterItem.$item.cols;
  29977. this.gridsterItem.$item.cols += this.gridsterItem.$item.x - this.newPosition;
  29978. this.gridsterItem.$item.x = this.newPosition;
  29979. this.pushResize.pushItems(this.pushResize.fromEast);
  29980. this.push.pushItems(this.push.fromEast, this.gridster.$options.disablePushOnResize);
  29981. if (this.gridster.checkCollision(this.gridsterItem.$item)) {
  29982. this.gridsterItem.$item.x = this.itemBackup[0];
  29983. this.gridsterItem.$item.cols = this.itemBackup[2];
  29984. this.setItemLeft(this.gridster.positionXToPixels(this.gridsterItem.$item.x));
  29985. this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols) - this.margin);
  29986. return;
  29987. }
  29988. else {
  29989. this.gridster.previewStyle();
  29990. }
  29991. this.pushResize.checkPushBack();
  29992. this.push.checkPushBack();
  29993. }
  29994. this.setItemLeft(this.left);
  29995. this.setItemWidth(this.width);
  29996. }
  29997. handleS(e) {
  29998. this.height = e.clientY + this.offsetTop - this.diffBottom - this.top;
  29999. if (this.minHeight > this.height) {
  30000. this.height = this.minHeight;
  30001. }
  30002. this.bottom = this.top + this.height;
  30003. this.newPosition = this.gridster.pixelsToPositionY(this.bottom, Math.ceil);
  30004. if ((this.gridsterItem.$item.y + this.gridsterItem.$item.rows) !== this.newPosition) {
  30005. this.itemBackup[3] = this.gridsterItem.$item.rows;
  30006. this.gridsterItem.$item.rows = this.newPosition - this.gridsterItem.$item.y;
  30007. this.pushResize.pushItems(this.pushResize.fromNorth);
  30008. this.push.pushItems(this.push.fromNorth, this.gridster.$options.disablePushOnResize);
  30009. if (this.gridster.checkCollision(this.gridsterItem.$item)) {
  30010. this.gridsterItem.$item.rows = this.itemBackup[3];
  30011. this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows) - this.margin);
  30012. return;
  30013. }
  30014. else {
  30015. this.gridster.previewStyle();
  30016. }
  30017. this.pushResize.checkPushBack();
  30018. this.push.checkPushBack();
  30019. }
  30020. this.setItemHeight(this.height);
  30021. }
  30022. handleE(e) {
  30023. this.width = e.clientX + this.offsetLeft - this.diffRight - this.left;
  30024. if (this.minWidth > this.width) {
  30025. this.width = this.minWidth;
  30026. }
  30027. this.right = this.left + this.width;
  30028. this.newPosition = this.gridster.pixelsToPositionX(this.right, Math.ceil);
  30029. if ((this.gridsterItem.$item.x + this.gridsterItem.$item.cols) !== this.newPosition) {
  30030. this.itemBackup[2] = this.gridsterItem.$item.cols;
  30031. this.gridsterItem.$item.cols = this.newPosition - this.gridsterItem.$item.x;
  30032. this.pushResize.pushItems(this.pushResize.fromWest);
  30033. this.push.pushItems(this.push.fromWest, this.gridster.$options.disablePushOnResize);
  30034. if (this.gridster.checkCollision(this.gridsterItem.$item)) {
  30035. this.gridsterItem.$item.cols = this.itemBackup[2];
  30036. this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols) - this.margin);
  30037. return;
  30038. }
  30039. else {
  30040. this.gridster.previewStyle();
  30041. }
  30042. this.pushResize.checkPushBack();
  30043. this.push.checkPushBack();
  30044. }
  30045. this.setItemWidth(this.width);
  30046. }
  30047. handleNW(e) {
  30048. this.handleN(e);
  30049. this.handleW(e);
  30050. }
  30051. handleNE(e) {
  30052. this.handleN(e);
  30053. this.handleE(e);
  30054. }
  30055. handleSW(e) {
  30056. this.handleS(e);
  30057. this.handleW(e);
  30058. }
  30059. handleSE(e) {
  30060. this.handleS(e);
  30061. this.handleE(e);
  30062. }
  30063. toggle() {
  30064. this.resizeEnabled = this.gridsterItem.canBeResized();
  30065. }
  30066. dragStartDelay(e) {
  30067. GridsterUtils.checkTouchEvent(e);
  30068. if (!this.gridster.$options.resizable.delayStart) {
  30069. this.dragStart(e);
  30070. return;
  30071. }
  30072. const timeout = setTimeout(() => {
  30073. this.dragStart(e);
  30074. cancelDrag();
  30075. }, this.gridster.$options.resizable.delayStart);
  30076. const cancelMouse = this.gridsterItem.renderer.listen('document', 'mouseup', cancelDrag);
  30077. const cancelMouseLeave = this.gridsterItem.renderer.listen('document', 'mouseleave', cancelDrag);
  30078. const cancelOnBlur = this.gridsterItem.renderer.listen('window', 'blur', cancelDrag);
  30079. const cancelTouchMove = this.gridsterItem.renderer.listen('document', 'touchmove', cancelMove);
  30080. const cancelTouchEnd = this.gridsterItem.renderer.listen('document', 'touchend', cancelDrag);
  30081. const cancelTouchCancel = this.gridsterItem.renderer.listen('document', 'touchcancel', cancelDrag);
  30082. function cancelMove(eventMove) {
  30083. GridsterUtils.checkTouchEvent(eventMove);
  30084. if (Math.abs(eventMove.clientX - e.clientX) > 9
  30085. || Math.abs(eventMove.clientY - e.clientY) > 9) {
  30086. cancelDrag();
  30087. }
  30088. }
  30089. function cancelDrag() {
  30090. clearTimeout(timeout);
  30091. cancelOnBlur();
  30092. cancelMouse();
  30093. cancelMouseLeave();
  30094. cancelTouchMove();
  30095. cancelTouchEnd();
  30096. cancelTouchCancel();
  30097. }
  30098. }
  30099. setItemTop(top) {
  30100. this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer, this.gridsterItem.el, this.left, top);
  30101. }
  30102. setItemLeft(left) {
  30103. this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer, this.gridsterItem.el, left, this.top);
  30104. }
  30105. setItemHeight(height) {
  30106. this.gridsterItem.renderer.setStyle(this.gridsterItem.el, 'height', height + 'px');
  30107. }
  30108. setItemWidth(width) {
  30109. this.gridsterItem.renderer.setStyle(this.gridsterItem.el, 'width', width + 'px');
  30110. }
  30111. }
  30112. GridsterResizable.ɵfac = function GridsterResizable_Factory(t) { return new (t || GridsterResizable)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterItemComponentInterface), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](GridsterComponentInterface), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  30113. GridsterResizable.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: GridsterResizable, factory: GridsterResizable.ɵfac });
  30114. GridsterResizable.ctorParameters = () => [
  30115. { type: GridsterItemComponentInterface },
  30116. { type: GridsterComponentInterface },
  30117. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }
  30118. ];
  30119. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterResizable, [{
  30120. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  30121. }], function () { return [{ type: GridsterItemComponentInterface }, { type: GridsterComponentInterface }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }]; }, null); })();
  30122. class GridsterItemComponent {
  30123. constructor(el, gridster, renderer, zone) {
  30124. this.renderer = renderer;
  30125. this.zone = zone;
  30126. this.el = el.nativeElement;
  30127. this.$item = {
  30128. cols: -1,
  30129. rows: -1,
  30130. x: -1,
  30131. y: -1,
  30132. };
  30133. this.gridster = gridster;
  30134. this.drag = new GridsterDraggable(this, gridster, this.zone);
  30135. this.resize = new GridsterResizable(this, gridster, this.zone);
  30136. }
  30137. get zIndex() {
  30138. return this.getLayerIndex() + this.gridster.$options.baseLayerIndex;
  30139. }
  30140. ngOnInit() {
  30141. this.gridster.addItem(this);
  30142. }
  30143. ngOnChanges(changes) {
  30144. if (changes.item) {
  30145. this.updateOptions();
  30146. if (!this.init) {
  30147. this.gridster.calculateLayoutDebounce();
  30148. }
  30149. }
  30150. }
  30151. updateOptions() {
  30152. this.$item = GridsterUtils.merge(this.$item, this.item, {
  30153. cols: undefined,
  30154. rows: undefined,
  30155. x: undefined,
  30156. y: undefined,
  30157. layerIndex: undefined,
  30158. dragEnabled: undefined,
  30159. resizeEnabled: undefined,
  30160. compactEnabled: undefined,
  30161. maxItemRows: undefined,
  30162. minItemRows: undefined,
  30163. maxItemCols: undefined,
  30164. minItemCols: undefined,
  30165. maxItemArea: undefined,
  30166. minItemArea: undefined,
  30167. });
  30168. }
  30169. ngOnDestroy() {
  30170. this.gridster.removeItem(this);
  30171. // @ts-ignore
  30172. delete this.gridster;
  30173. this.drag.destroy();
  30174. // @ts-ignore
  30175. delete this.drag;
  30176. this.resize.destroy();
  30177. // @ts-ignore
  30178. delete this.resize;
  30179. }
  30180. setSize() {
  30181. this.renderer.setStyle(this.el, 'display', this.notPlaced ? '' : 'block');
  30182. this.gridster.gridRenderer.updateItem(this.el, this.$item, this.renderer);
  30183. this.updateItemSize();
  30184. }
  30185. updateItemSize() {
  30186. const top = this.$item.y * this.gridster.curRowHeight;
  30187. const left = this.$item.x * this.gridster.curColWidth;
  30188. const width = this.$item.cols * this.gridster.curColWidth - this.gridster.$options.margin;
  30189. const height = this.$item.rows * this.gridster.curRowHeight - this.gridster.$options.margin;
  30190. this.top = top;
  30191. this.left = left;
  30192. if (!this.init && width > 0 && height > 0) {
  30193. this.init = true;
  30194. if (this.item.initCallback) {
  30195. this.item.initCallback(this.item, this);
  30196. }
  30197. if (this.gridster.options.itemInitCallback) {
  30198. this.gridster.options.itemInitCallback(this.item, this);
  30199. }
  30200. if (this.gridster.$options.scrollToNewItems) {
  30201. this.el.scrollIntoView(false);
  30202. }
  30203. }
  30204. if (width !== this.width || height !== this.height) {
  30205. this.width = width;
  30206. this.height = height;
  30207. if (this.gridster.options.itemResizeCallback) {
  30208. this.gridster.options.itemResizeCallback(this.item, this);
  30209. }
  30210. }
  30211. }
  30212. itemChanged() {
  30213. if (this.gridster.options.itemChangeCallback) {
  30214. this.gridster.options.itemChangeCallback(this.item, this);
  30215. }
  30216. }
  30217. checkItemChanges(newValue, oldValue) {
  30218. if (newValue.rows === oldValue.rows && newValue.cols === oldValue.cols && newValue.x === oldValue.x && newValue.y === oldValue.y) {
  30219. return;
  30220. }
  30221. if (this.gridster.checkCollision(this.$item)) {
  30222. this.$item.x = oldValue.x || 0;
  30223. this.$item.y = oldValue.y || 0;
  30224. this.$item.cols = oldValue.cols || 1;
  30225. this.$item.rows = oldValue.rows || 1;
  30226. this.setSize();
  30227. }
  30228. else {
  30229. this.item.cols = this.$item.cols;
  30230. this.item.rows = this.$item.rows;
  30231. this.item.x = this.$item.x;
  30232. this.item.y = this.$item.y;
  30233. this.gridster.calculateLayoutDebounce();
  30234. this.itemChanged();
  30235. }
  30236. }
  30237. canBeDragged() {
  30238. return !this.gridster.mobile &&
  30239. (this.$item.dragEnabled === undefined ? this.gridster.$options.draggable.enabled : this.$item.dragEnabled);
  30240. }
  30241. canBeResized() {
  30242. return !this.gridster.mobile &&
  30243. (this.$item.resizeEnabled === undefined ? this.gridster.$options.resizable.enabled : this.$item.resizeEnabled);
  30244. }
  30245. bringToFront(offset) {
  30246. if (offset && offset <= 0) {
  30247. return;
  30248. }
  30249. const layerIndex = this.getLayerIndex();
  30250. const topIndex = this.gridster.$options.maxLayerIndex;
  30251. if (layerIndex < topIndex) {
  30252. const targetIndex = offset ? layerIndex + offset : topIndex;
  30253. this.item.layerIndex = this.$item.layerIndex = targetIndex > topIndex ? topIndex : targetIndex;
  30254. }
  30255. }
  30256. sendToBack(offset) {
  30257. if (offset && offset <= 0) {
  30258. return;
  30259. }
  30260. const layerIndex = this.getLayerIndex();
  30261. if (layerIndex > 0) {
  30262. const targetIndex = offset ? layerIndex - offset : 0;
  30263. this.item.layerIndex = this.$item.layerIndex = targetIndex < 0 ? 0 : targetIndex;
  30264. }
  30265. }
  30266. getLayerIndex() {
  30267. if (this.item.layerIndex !== undefined) {
  30268. return this.item.layerIndex;
  30269. }
  30270. if (this.gridster.$options.defaultLayerIndex !== undefined) {
  30271. return this.gridster.$options.defaultLayerIndex;
  30272. }
  30273. return 0;
  30274. }
  30275. }
  30276. GridsterItemComponent.ɵfac = function GridsterItemComponent_Factory(t) { return new (t || GridsterItemComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridsterComponent), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  30277. GridsterItemComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GridsterItemComponent, selectors: [["gridster-item"]], hostVars: 2, hostBindings: function GridsterItemComponent_HostBindings(rf, ctx) { if (rf & 2) {
  30278. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstyleProp"]("z-index", ctx.zIndex);
  30279. } }, inputs: { item: "item" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c0, decls: 9, vars: 8, consts: [["class", "gridster-item-resizable-handler handle-s", 3, "mousedown", "touchstart", 4, "ngIf"], ["class", "gridster-item-resizable-handler handle-e", 3, "mousedown", "touchstart", 4, "ngIf"], ["class", "gridster-item-resizable-handler handle-n", 3, "mousedown", "touchstart", 4, "ngIf"], ["class", "gridster-item-resizable-handler handle-w", 3, "mousedown", "touchstart", 4, "ngIf"], ["class", "gridster-item-resizable-handler handle-se", 3, "mousedown", "touchstart", 4, "ngIf"], ["class", "gridster-item-resizable-handler handle-ne", 3, "mousedown", "touchstart", 4, "ngIf"], ["class", "gridster-item-resizable-handler handle-sw", 3, "mousedown", "touchstart", 4, "ngIf"], ["class", "gridster-item-resizable-handler handle-nw", 3, "mousedown", "touchstart", 4, "ngIf"], [1, "gridster-item-resizable-handler", "handle-s", 3, "mousedown", "touchstart"], [1, "gridster-item-resizable-handler", "handle-e", 3, "mousedown", "touchstart"], [1, "gridster-item-resizable-handler", "handle-n", 3, "mousedown", "touchstart"], [1, "gridster-item-resizable-handler", "handle-w", 3, "mousedown", "touchstart"], [1, "gridster-item-resizable-handler", "handle-se", 3, "mousedown", "touchstart"], [1, "gridster-item-resizable-handler", "handle-ne", 3, "mousedown", "touchstart"], [1, "gridster-item-resizable-handler", "handle-sw", 3, "mousedown", "touchstart"], [1, "gridster-item-resizable-handler", "handle-nw", 3, "mousedown", "touchstart"]], template: function GridsterItemComponent_Template(rf, ctx) { if (rf & 1) {
  30280. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  30281. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);
  30282. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, GridsterItemComponent_div_1_Template, 1, 0, "div", 0);
  30283. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, GridsterItemComponent_div_2_Template, 1, 0, "div", 1);
  30284. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, GridsterItemComponent_div_3_Template, 1, 0, "div", 2);
  30285. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, GridsterItemComponent_div_4_Template, 1, 0, "div", 3);
  30286. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, GridsterItemComponent_div_5_Template, 1, 0, "div", 4);
  30287. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, GridsterItemComponent_div_6_Template, 1, 0, "div", 5);
  30288. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, GridsterItemComponent_div_7_Template, 1, 0, "div", 6);
  30289. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, GridsterItemComponent_div_8_Template, 1, 0, "div", 7);
  30290. } if (rf & 2) {
  30291. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  30292. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gridster.$options.resizable.handles.s && ctx.resize.resizeEnabled);
  30293. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  30294. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gridster.$options.resizable.handles.e && ctx.resize.resizeEnabled);
  30295. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  30296. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gridster.$options.resizable.handles.n && ctx.resize.resizeEnabled);
  30297. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  30298. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gridster.$options.resizable.handles.w && ctx.resize.resizeEnabled);
  30299. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  30300. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gridster.$options.resizable.handles.se && ctx.resize.resizeEnabled);
  30301. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  30302. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gridster.$options.resizable.handles.ne && ctx.resize.resizeEnabled);
  30303. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  30304. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gridster.$options.resizable.handles.sw && ctx.resize.resizeEnabled);
  30305. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  30306. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.gridster.$options.resizable.handles.nw && ctx.resize.resizeEnabled);
  30307. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_1__["NgIf"]], styles: ["gridster-item{-ms-user-select:text;-webkit-user-select:text;background:#fff;box-sizing:border-box;display:none;overflow:hidden;position:absolute;transition:.3s;user-select:text;z-index:1}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-moving,gridster-item.gridster-item-resizing{box-shadow:0 0 5px 5px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);transition:0s;z-index:2}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;left:0;right:0;top:0}.gridster-item-resizable-handler.handle-e{bottom:0;cursor:ew-resize;right:0;top:0;width:10px}.gridster-item-resizable-handler.handle-s{bottom:0;cursor:ns-resize;height:10px;left:0;right:0}.gridster-item-resizable-handler.handle-w{bottom:0;cursor:ew-resize;left:0;top:0;width:10px}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;height:10px;right:0;top:0;width:10px}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;height:10px;left:0;top:0;width:10px}.gridster-item-resizable-handler.handle-se{border-color:transparent;border-style:solid;border-width:0 0 10px 10px;bottom:0;cursor:se-resize;height:0;right:0;width:0}.gridster-item-resizable-handler.handle-sw{bottom:0;cursor:sw-resize;height:10px;left:0;width:10px}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:transparent transparent #ccc}"], encapsulation: 2 });
  30308. GridsterItemComponent.ctorParameters = () => [
  30309. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"],] }] },
  30310. { type: GridsterComponent },
  30311. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"],] }] },
  30312. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"],] }] }
  30313. ];
  30314. GridsterItemComponent.propDecorators = {
  30315. item: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  30316. zIndex: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['style.z-index',] }]
  30317. };
  30318. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterItemComponent, [{
  30319. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  30320. args: [{
  30321. selector: 'gridster-item',
  30322. template: "<ng-content></ng-content>\n<div (mousedown)=\"resize.dragStartDelay($event)\" (touchstart)=\"resize.dragStartDelay($event)\"\n *ngIf=\"gridster.$options.resizable.handles.s && resize.resizeEnabled\"\n class=\"gridster-item-resizable-handler handle-s\"></div>\n<div (mousedown)=\"resize.dragStartDelay($event)\" (touchstart)=\"resize.dragStartDelay($event)\"\n *ngIf=\"gridster.$options.resizable.handles.e && resize.resizeEnabled\"\n class=\"gridster-item-resizable-handler handle-e\"></div>\n<div (mousedown)=\"resize.dragStartDelay($event)\" (touchstart)=\"resize.dragStartDelay($event)\"\n *ngIf=\"gridster.$options.resizable.handles.n && resize.resizeEnabled\"\n class=\"gridster-item-resizable-handler handle-n\"></div>\n<div (mousedown)=\"resize.dragStartDelay($event)\" (touchstart)=\"resize.dragStartDelay($event)\"\n *ngIf=\"gridster.$options.resizable.handles.w && resize.resizeEnabled\"\n class=\"gridster-item-resizable-handler handle-w\"></div>\n<div (mousedown)=\"resize.dragStartDelay($event)\" (touchstart)=\"resize.dragStartDelay($event)\"\n *ngIf=\"gridster.$options.resizable.handles.se && resize.resizeEnabled\"\n class=\"gridster-item-resizable-handler handle-se\"></div>\n<div (mousedown)=\"resize.dragStartDelay($event)\" (touchstart)=\"resize.dragStartDelay($event)\"\n *ngIf=\"gridster.$options.resizable.handles.ne && resize.resizeEnabled\"\n class=\"gridster-item-resizable-handler handle-ne\"></div>\n<div (mousedown)=\"resize.dragStartDelay($event)\" (touchstart)=\"resize.dragStartDelay($event)\"\n *ngIf=\"gridster.$options.resizable.handles.sw && resize.resizeEnabled\"\n class=\"gridster-item-resizable-handler handle-sw\"></div>\n<div (mousedown)=\"resize.dragStartDelay($event)\" (touchstart)=\"resize.dragStartDelay($event)\"\n *ngIf=\"gridster.$options.resizable.handles.nw && resize.resizeEnabled\"\n class=\"gridster-item-resizable-handler handle-nw\"></div>\n",
  30323. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  30324. styles: ["gridster-item{-ms-user-select:text;-webkit-user-select:text;background:#fff;box-sizing:border-box;display:none;overflow:hidden;position:absolute;transition:.3s;user-select:text;z-index:1}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-moving,gridster-item.gridster-item-resizing{box-shadow:0 0 5px 5px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);transition:0s;z-index:2}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;left:0;right:0;top:0}.gridster-item-resizable-handler.handle-e{bottom:0;cursor:ew-resize;right:0;top:0;width:10px}.gridster-item-resizable-handler.handle-s{bottom:0;cursor:ns-resize;height:10px;left:0;right:0}.gridster-item-resizable-handler.handle-w{bottom:0;cursor:ew-resize;left:0;top:0;width:10px}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;height:10px;right:0;top:0;width:10px}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;height:10px;left:0;top:0;width:10px}.gridster-item-resizable-handler.handle-se{border-color:transparent;border-style:solid;border-width:0 0 10px 10px;bottom:0;cursor:se-resize;height:0;right:0;width:0}.gridster-item-resizable-handler.handle-sw{bottom:0;cursor:sw-resize;height:10px;left:0;width:10px}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:transparent transparent #ccc}"]
  30325. }]
  30326. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], decorators: [{
  30327. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  30328. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]
  30329. }] }, { type: GridsterComponent }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], decorators: [{
  30330. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  30331. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]]
  30332. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"], decorators: [{
  30333. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  30334. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]]
  30335. }] }]; }, { zIndex: [{
  30336. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  30337. args: ['style.z-index']
  30338. }], item: [{
  30339. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  30340. }] }); })();
  30341. class GridsterPreviewComponent {
  30342. constructor(el, gridster, renderer) {
  30343. this.renderer = renderer;
  30344. this.el = el.nativeElement;
  30345. this.gridster = gridster;
  30346. this.gridster.previewStyle = this.previewStyle.bind(this);
  30347. }
  30348. ngOnDestroy() {
  30349. // @ts-ignore
  30350. delete this.el;
  30351. // @ts-ignore
  30352. delete this.gridster.previewStyle;
  30353. // @ts-ignore
  30354. delete this.gridster;
  30355. }
  30356. previewStyle(drag) {
  30357. if (!this.gridster.movingItem) {
  30358. this.renderer.setStyle(this.el, 'display', '');
  30359. }
  30360. else {
  30361. if (this.gridster.compact && drag) {
  30362. this.gridster.compact.checkCompactItem(this.gridster.movingItem);
  30363. }
  30364. this.renderer.setStyle(this.el, 'display', 'block');
  30365. this.gridster.gridRenderer.updateItem(this.el, this.gridster.movingItem, this.renderer);
  30366. }
  30367. }
  30368. }
  30369. GridsterPreviewComponent.ɵfac = function GridsterPreviewComponent_Factory(t) { return new (t || GridsterPreviewComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](GridsterComponent), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"])); };
  30370. GridsterPreviewComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: GridsterPreviewComponent, selectors: [["gridster-preview"]], decls: 0, vars: 0, template: function GridsterPreviewComponent_Template(rf, ctx) { }, styles: ["gridster-preview{background:rgba(0,0,0,.15);display:none;position:absolute}"], encapsulation: 2 });
  30371. GridsterPreviewComponent.ctorParameters = () => [
  30372. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"],] }] },
  30373. { type: GridsterComponent },
  30374. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"],] }] }
  30375. ];
  30376. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterPreviewComponent, [{
  30377. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  30378. args: [{
  30379. selector: 'gridster-preview',
  30380. template: '',
  30381. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  30382. styles: ["gridster-preview{background:rgba(0,0,0,.15);display:none;position:absolute}"]
  30383. }]
  30384. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], decorators: [{
  30385. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  30386. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]]
  30387. }] }, { type: GridsterComponent }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"], decorators: [{
  30388. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  30389. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]]
  30390. }] }]; }, null); })();
  30391. class GridsterModule {
  30392. }
  30393. GridsterModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: GridsterModule });
  30394. GridsterModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function GridsterModule_Factory(t) { return new (t || GridsterModule)(); }, imports: [[
  30395. _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]
  30396. ]] });
  30397. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](GridsterModule, { declarations: function () { return [GridsterComponent, GridsterItemComponent, GridsterPreviewComponent]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]]; }, exports: function () { return [GridsterComponent, GridsterItemComponent]; } }); })();
  30398. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](GridsterModule, [{
  30399. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  30400. args: [{
  30401. declarations: [
  30402. GridsterComponent,
  30403. GridsterItemComponent,
  30404. GridsterPreviewComponent
  30405. ],
  30406. imports: [
  30407. _angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]
  30408. ],
  30409. exports: [GridsterComponent, GridsterItemComponent]
  30410. }]
  30411. }], null, null); })();
  30412. /*
  30413. * Public API Surface of gridster
  30414. */
  30415. /**
  30416. * Generated bundle index. Do not edit.
  30417. */
  30418. //# sourceMappingURL=angular-gridster2.js.map
  30419. /***/ }),
  30420. /***/ "MBAA":
  30421. /*!***************************************************************************!*\
  30422. !*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleIterable.js ***!
  30423. \***************************************************************************/
  30424. /*! exports provided: scheduleIterable */
  30425. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30426. "use strict";
  30427. __webpack_require__.r(__webpack_exports__);
  30428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleIterable", function() { return scheduleIterable; });
  30429. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  30430. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY");
  30431. /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../symbol/iterator */ "Lhse");
  30432. function scheduleIterable(input, scheduler) {
  30433. if (!input) {
  30434. throw new Error('Iterable cannot be null');
  30435. }
  30436. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  30437. const sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
  30438. let iterator;
  30439. sub.add(() => {
  30440. if (iterator && typeof iterator.return === 'function') {
  30441. iterator.return();
  30442. }
  30443. });
  30444. sub.add(scheduler.schedule(() => {
  30445. iterator = input[_symbol_iterator__WEBPACK_IMPORTED_MODULE_2__["iterator"]]();
  30446. sub.add(scheduler.schedule(function () {
  30447. if (subscriber.closed) {
  30448. return;
  30449. }
  30450. let value;
  30451. let done;
  30452. try {
  30453. const result = iterator.next();
  30454. value = result.value;
  30455. done = result.done;
  30456. }
  30457. catch (err) {
  30458. subscriber.error(err);
  30459. return;
  30460. }
  30461. if (done) {
  30462. subscriber.complete();
  30463. }
  30464. else {
  30465. subscriber.next(value);
  30466. this.schedule();
  30467. }
  30468. }));
  30469. }));
  30470. return sub;
  30471. });
  30472. }
  30473. //# sourceMappingURL=scheduleIterable.js.map
  30474. /***/ }),
  30475. /***/ "MtjB":
  30476. /*!********************************************************************!*\
  30477. !*** ./node_modules/rxjs/_esm2015/internal/operators/retryWhen.js ***!
  30478. \********************************************************************/
  30479. /*! exports provided: retryWhen */
  30480. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30481. "use strict";
  30482. __webpack_require__.r(__webpack_exports__);
  30483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retryWhen", function() { return retryWhen; });
  30484. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG");
  30485. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  30486. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  30487. function retryWhen(notifier) {
  30488. return (source) => source.lift(new RetryWhenOperator(notifier, source));
  30489. }
  30490. class RetryWhenOperator {
  30491. constructor(notifier, source) {
  30492. this.notifier = notifier;
  30493. this.source = source;
  30494. }
  30495. call(subscriber, source) {
  30496. return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));
  30497. }
  30498. }
  30499. class RetryWhenSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__["OuterSubscriber"] {
  30500. constructor(destination, notifier, source) {
  30501. super(destination);
  30502. this.notifier = notifier;
  30503. this.source = source;
  30504. }
  30505. error(err) {
  30506. if (!this.isStopped) {
  30507. let errors = this.errors;
  30508. let retries = this.retries;
  30509. let retriesSubscription = this.retriesSubscription;
  30510. if (!retries) {
  30511. errors = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  30512. try {
  30513. const { notifier } = this;
  30514. retries = notifier(errors);
  30515. }
  30516. catch (e) {
  30517. return super.error(e);
  30518. }
  30519. retriesSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, retries);
  30520. }
  30521. else {
  30522. this.errors = null;
  30523. this.retriesSubscription = null;
  30524. }
  30525. this._unsubscribeAndRecycle();
  30526. this.errors = errors;
  30527. this.retries = retries;
  30528. this.retriesSubscription = retriesSubscription;
  30529. errors.next(err);
  30530. }
  30531. }
  30532. _unsubscribe() {
  30533. const { errors, retriesSubscription } = this;
  30534. if (errors) {
  30535. errors.unsubscribe();
  30536. this.errors = null;
  30537. }
  30538. if (retriesSubscription) {
  30539. retriesSubscription.unsubscribe();
  30540. this.retriesSubscription = null;
  30541. }
  30542. this.retries = null;
  30543. }
  30544. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  30545. const { _unsubscribe } = this;
  30546. this._unsubscribe = null;
  30547. this._unsubscribeAndRecycle();
  30548. this._unsubscribe = _unsubscribe;
  30549. this.source.subscribe(this);
  30550. }
  30551. }
  30552. //# sourceMappingURL=retryWhen.js.map
  30553. /***/ }),
  30554. /***/ "NH6c":
  30555. /*!******************************************!*\
  30556. !*** ./node_modules/vkbeautify/index.js ***!
  30557. \******************************************/
  30558. /*! no static exports found */
  30559. /***/ (function(module, exports) {
  30560. /**
  30561. * vkBeautify - javascript plugin to pretty-print or minify text in XML, JSON, CSS and SQL formats.
  30562. *
  30563. * Copyright (c) 2012 Vadim Kiryukhin
  30564. * vkiryukhin @ gmail.com
  30565. * http://www.eslinstructor.net/vkbeautify/
  30566. *
  30567. * Dual licensed under the MIT and GPL licenses:
  30568. * http://www.opensource.org/licenses/mit-license.php
  30569. * http://www.gnu.org/licenses/gpl.html
  30570. *
  30571. * Pretty print
  30572. *
  30573. * vkbeautify.xml(text [,indent_pattern]);
  30574. * vkbeautify.json(text [,indent_pattern]);
  30575. * vkbeautify.css(text [,indent_pattern]);
  30576. * vkbeautify.sql(text [,indent_pattern]);
  30577. *
  30578. * @text - String; text to beatufy;
  30579. * @indent_pattern - Integer | String;
  30580. * Integer: number of white spaces;
  30581. * String: character string to visualize indentation ( can also be a set of white spaces )
  30582. * Minify
  30583. *
  30584. * vkbeautify.xmlmin(text [,preserve_comments]);
  30585. * vkbeautify.jsonmin(text);
  30586. * vkbeautify.cssmin(text [,preserve_comments]);
  30587. * vkbeautify.sqlmin(text);
  30588. *
  30589. * @text - String; text to minify;
  30590. * @preserve_comments - Bool; [optional];
  30591. * Set this flag to true to prevent removing comments from @text ( minxml and mincss functions only. )
  30592. *
  30593. * Examples:
  30594. * vkbeautify.xml(text); // pretty print XML
  30595. * vkbeautify.json(text, 4 ); // pretty print JSON
  30596. * vkbeautify.css(text, '. . . .'); // pretty print CSS
  30597. * vkbeautify.sql(text, '----'); // pretty print SQL
  30598. *
  30599. * vkbeautify.xmlmin(text, true);// minify XML, preserve comments
  30600. * vkbeautify.jsonmin(text);// minify JSON
  30601. * vkbeautify.cssmin(text);// minify CSS, remove comments ( default )
  30602. * vkbeautify.sqlmin(text);// minify SQL
  30603. *
  30604. */
  30605. function createShiftArr(step) {
  30606. var space = ' ';
  30607. if ( isNaN(parseInt(step)) ) { // argument is string
  30608. space = step;
  30609. } else { // argument is integer
  30610. switch(step) {
  30611. case 1: space = ' '; break;
  30612. case 2: space = ' '; break;
  30613. case 3: space = ' '; break;
  30614. case 4: space = ' '; break;
  30615. case 5: space = ' '; break;
  30616. case 6: space = ' '; break;
  30617. case 7: space = ' '; break;
  30618. case 8: space = ' '; break;
  30619. case 9: space = ' '; break;
  30620. case 10: space = ' '; break;
  30621. case 11: space = ' '; break;
  30622. case 12: space = ' '; break;
  30623. }
  30624. }
  30625. var shift = ['\n']; // array of shifts
  30626. for(var ix=0;ix<100;ix++) {
  30627. shift.push(shift[ix]+space);
  30628. }
  30629. return shift;
  30630. }
  30631. function vkbeautify(){
  30632. this.step = ' '; // 4 spaces
  30633. this.shift = createShiftArr(this.step);
  30634. };
  30635. vkbeautify.prototype.xml = function(text,step) {
  30636. var ar = text.replace(/>\s{0,}</g,"><")
  30637. .replace(/</g,"~::~<")
  30638. .replace(/\s*xmlns\:/g,"~::~xmlns:")
  30639. .replace(/\s*xmlns\=/g,"~::~xmlns=")
  30640. .split('~::~'),
  30641. len = ar.length,
  30642. inComment = false,
  30643. deep = 0,
  30644. str = '',
  30645. ix = 0,
  30646. shift = step ? createShiftArr(step) : this.shift;
  30647. for(ix=0;ix<len;ix++) {
  30648. // start comment or <![CDATA[...]]> or <!DOCTYPE //
  30649. if(ar[ix].search(/<!/) > -1) {
  30650. str += shift[deep]+ar[ix];
  30651. inComment = true;
  30652. // end comment or <![CDATA[...]]> //
  30653. if(ar[ix].search(/-->/) > -1 || ar[ix].search(/\]>/) > -1 || ar[ix].search(/!DOCTYPE/) > -1 ) {
  30654. inComment = false;
  30655. }
  30656. } else
  30657. // end comment or <![CDATA[...]]> //
  30658. if(ar[ix].search(/-->/) > -1 || ar[ix].search(/\]>/) > -1) {
  30659. str += ar[ix];
  30660. inComment = false;
  30661. } else
  30662. // <elm></elm> //
  30663. if( /^<\w/.exec(ar[ix-1]) && /^<\/\w/.exec(ar[ix]) &&
  30664. /^<[\w:\-\.\,]+/.exec(ar[ix-1]) == /^<\/[\w:\-\.\,]+/.exec(ar[ix])[0].replace('/','')) {
  30665. str += ar[ix];
  30666. if(!inComment) deep--;
  30667. } else
  30668. // <elm> //
  30669. if(ar[ix].search(/<\w/) > -1 && ar[ix].search(/<\//) == -1 && ar[ix].search(/\/>/) == -1 ) {
  30670. str = !inComment ? str += shift[deep++]+ar[ix] : str += ar[ix];
  30671. } else
  30672. // <elm>...</elm> //
  30673. if(ar[ix].search(/<\w/) > -1 && ar[ix].search(/<\//) > -1) {
  30674. str = !inComment ? str += shift[deep]+ar[ix] : str += ar[ix];
  30675. } else
  30676. // </elm> //
  30677. if(ar[ix].search(/<\//) > -1) {
  30678. str = !inComment ? str += shift[--deep]+ar[ix] : str += ar[ix];
  30679. } else
  30680. // <elm/> //
  30681. if(ar[ix].search(/\/>/) > -1 ) {
  30682. str = !inComment ? str += shift[deep]+ar[ix] : str += ar[ix];
  30683. } else
  30684. // <? xml ... ?> //
  30685. if(ar[ix].search(/<\?/) > -1) {
  30686. str += shift[deep]+ar[ix];
  30687. } else
  30688. // xmlns //
  30689. if( ar[ix].search(/xmlns\:/) > -1 || ar[ix].search(/xmlns\=/) > -1) {
  30690. str += shift[deep]+ar[ix];
  30691. }
  30692. else {
  30693. str += ar[ix];
  30694. }
  30695. }
  30696. return (str[0] == '\n') ? str.slice(1) : str;
  30697. }
  30698. vkbeautify.prototype.json = function(text,step) {
  30699. var step = step ? step : this.step;
  30700. if (typeof JSON === 'undefined' ) return text;
  30701. if ( typeof text === "string" ) return JSON.stringify(JSON.parse(text), null, step);
  30702. if ( typeof text === "object" ) return JSON.stringify(text, null, step);
  30703. return text; // text is not string nor object
  30704. }
  30705. vkbeautify.prototype.css = function(text, step) {
  30706. var ar = text.replace(/\s{1,}/g,' ')
  30707. .replace(/\{/g,"{~::~")
  30708. .replace(/\}/g,"~::~}~::~")
  30709. .replace(/\;/g,";~::~")
  30710. .replace(/\/\*/g,"~::~/*")
  30711. .replace(/\*\//g,"*/~::~")
  30712. .replace(/~::~\s{0,}~::~/g,"~::~")
  30713. .split('~::~'),
  30714. len = ar.length,
  30715. deep = 0,
  30716. str = '',
  30717. ix = 0,
  30718. shift = step ? createShiftArr(step) : this.shift;
  30719. for(ix=0;ix<len;ix++) {
  30720. if( /\{/.exec(ar[ix])) {
  30721. str += shift[deep++]+ar[ix];
  30722. } else
  30723. if( /\}/.exec(ar[ix])) {
  30724. str += shift[--deep]+ar[ix];
  30725. } else
  30726. if( /\*\\/.exec(ar[ix])) {
  30727. str += shift[deep]+ar[ix];
  30728. }
  30729. else {
  30730. str += shift[deep]+ar[ix];
  30731. }
  30732. }
  30733. return str.replace(/^\n{1,}/,'');
  30734. }
  30735. //----------------------------------------------------------------------------
  30736. function isSubquery(str, parenthesisLevel) {
  30737. return parenthesisLevel - (str.replace(/\(/g,'').length - str.replace(/\)/g,'').length )
  30738. }
  30739. function split_sql(str, tab) {
  30740. return str.replace(/\s{1,}/g," ")
  30741. .replace(/ AND /ig,"~::~"+tab+tab+"AND ")
  30742. .replace(/ BETWEEN /ig,"~::~"+tab+"BETWEEN ")
  30743. .replace(/ CASE /ig,"~::~"+tab+"CASE ")
  30744. .replace(/ ELSE /ig,"~::~"+tab+"ELSE ")
  30745. .replace(/ END /ig,"~::~"+tab+"END ")
  30746. .replace(/ FROM /ig,"~::~FROM ")
  30747. .replace(/ GROUP\s{1,}BY/ig,"~::~GROUP BY ")
  30748. .replace(/ HAVING /ig,"~::~HAVING ")
  30749. //.replace(/ SET /ig," SET~::~")
  30750. .replace(/ IN /ig," IN ")
  30751. .replace(/ JOIN /ig,"~::~JOIN ")
  30752. .replace(/ CROSS~::~{1,}JOIN /ig,"~::~CROSS JOIN ")
  30753. .replace(/ INNER~::~{1,}JOIN /ig,"~::~INNER JOIN ")
  30754. .replace(/ LEFT~::~{1,}JOIN /ig,"~::~LEFT JOIN ")
  30755. .replace(/ RIGHT~::~{1,}JOIN /ig,"~::~RIGHT JOIN ")
  30756. .replace(/ ON /ig,"~::~"+tab+"ON ")
  30757. .replace(/ OR /ig,"~::~"+tab+tab+"OR ")
  30758. .replace(/ ORDER\s{1,}BY/ig,"~::~ORDER BY ")
  30759. .replace(/ OVER /ig,"~::~"+tab+"OVER ")
  30760. .replace(/\(\s{0,}SELECT /ig,"~::~(SELECT ")
  30761. .replace(/\)\s{0,}SELECT /ig,")~::~SELECT ")
  30762. .replace(/ THEN /ig," THEN~::~"+tab+"")
  30763. .replace(/ UNION /ig,"~::~UNION~::~")
  30764. .replace(/ USING /ig,"~::~USING ")
  30765. .replace(/ WHEN /ig,"~::~"+tab+"WHEN ")
  30766. .replace(/ WHERE /ig,"~::~WHERE ")
  30767. .replace(/ WITH /ig,"~::~WITH ")
  30768. //.replace(/\,\s{0,}\(/ig,",~::~( ")
  30769. //.replace(/\,/ig,",~::~"+tab+tab+"")
  30770. .replace(/ ALL /ig," ALL ")
  30771. .replace(/ AS /ig," AS ")
  30772. .replace(/ ASC /ig," ASC ")
  30773. .replace(/ DESC /ig," DESC ")
  30774. .replace(/ DISTINCT /ig," DISTINCT ")
  30775. .replace(/ EXISTS /ig," EXISTS ")
  30776. .replace(/ NOT /ig," NOT ")
  30777. .replace(/ NULL /ig," NULL ")
  30778. .replace(/ LIKE /ig," LIKE ")
  30779. .replace(/\s{0,}SELECT /ig,"SELECT ")
  30780. .replace(/\s{0,}UPDATE /ig,"UPDATE ")
  30781. .replace(/ SET /ig," SET ")
  30782. .replace(/~::~{1,}/g,"~::~")
  30783. .split('~::~');
  30784. }
  30785. vkbeautify.prototype.sql = function(text,step) {
  30786. var ar_by_quote = text.replace(/\s{1,}/g," ")
  30787. .replace(/\'/ig,"~::~\'")
  30788. .split('~::~'),
  30789. len = ar_by_quote.length,
  30790. ar = [],
  30791. deep = 0,
  30792. tab = this.step,//+this.step,
  30793. inComment = true,
  30794. inQuote = false,
  30795. parenthesisLevel = 0,
  30796. str = '',
  30797. ix = 0,
  30798. shift = step ? createShiftArr(step) : this.shift;;
  30799. for(ix=0;ix<len;ix++) {
  30800. if(ix%2) {
  30801. ar = ar.concat(ar_by_quote[ix]);
  30802. } else {
  30803. ar = ar.concat(split_sql(ar_by_quote[ix], tab) );
  30804. }
  30805. }
  30806. len = ar.length;
  30807. for(ix=0;ix<len;ix++) {
  30808. parenthesisLevel = isSubquery(ar[ix], parenthesisLevel);
  30809. if( /\s{0,}\s{0,}SELECT\s{0,}/.exec(ar[ix])) {
  30810. ar[ix] = ar[ix].replace(/\,/g,",\n"+tab+tab+"")
  30811. }
  30812. if( /\s{0,}\s{0,}SET\s{0,}/.exec(ar[ix])) {
  30813. ar[ix] = ar[ix].replace(/\,/g,",\n"+tab+tab+"")
  30814. }
  30815. if( /\s{0,}\(\s{0,}SELECT\s{0,}/.exec(ar[ix])) {
  30816. deep++;
  30817. str += shift[deep]+ar[ix];
  30818. } else
  30819. if( /\'/.exec(ar[ix]) ) {
  30820. if(parenthesisLevel<1 && deep) {
  30821. deep--;
  30822. }
  30823. str += ar[ix];
  30824. }
  30825. else {
  30826. str += shift[deep]+ar[ix];
  30827. if(parenthesisLevel<1 && deep) {
  30828. deep--;
  30829. }
  30830. }
  30831. var junk = 0;
  30832. }
  30833. str = str.replace(/^\n{1,}/,'').replace(/\n{1,}/g,"\n");
  30834. return str;
  30835. }
  30836. vkbeautify.prototype.xmlmin = function(text, preserveComments) {
  30837. var str = preserveComments ? text
  30838. : text.replace(/\<![ \r\n\t]*(--([^\-]|[\r\n]|-[^\-])*--[ \r\n\t]*)\>/g,"")
  30839. .replace(/[ \r\n\t]{1,}xmlns/g, ' xmlns');
  30840. return str.replace(/>\s{0,}</g,"><");
  30841. }
  30842. vkbeautify.prototype.jsonmin = function(text) {
  30843. if (typeof JSON === 'undefined' ) return text;
  30844. return JSON.stringify(JSON.parse(text), null, 0);
  30845. }
  30846. vkbeautify.prototype.cssmin = function(text, preserveComments) {
  30847. var str = preserveComments ? text
  30848. : text.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"") ;
  30849. return str.replace(/\s{1,}/g,' ')
  30850. .replace(/\{\s{1,}/g,"{")
  30851. .replace(/\}\s{1,}/g,"}")
  30852. .replace(/\;\s{1,}/g,";")
  30853. .replace(/\/\*\s{1,}/g,"/*")
  30854. .replace(/\*\/\s{1,}/g,"*/");
  30855. }
  30856. vkbeautify.prototype.sqlmin = function(text) {
  30857. return text.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")");
  30858. }
  30859. module.exports = new vkbeautify();
  30860. /***/ }),
  30861. /***/ "NHP+":
  30862. /*!*************************************************************!*\
  30863. !*** ./node_modules/rxjs/_esm2015/internal/AsyncSubject.js ***!
  30864. \*************************************************************/
  30865. /*! exports provided: AsyncSubject */
  30866. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30867. "use strict";
  30868. __webpack_require__.r(__webpack_exports__);
  30869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncSubject", function() { return AsyncSubject; });
  30870. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subject */ "XNiG");
  30871. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Subscription */ "quSY");
  30872. class AsyncSubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"] {
  30873. constructor() {
  30874. super(...arguments);
  30875. this.value = null;
  30876. this.hasNext = false;
  30877. this.hasCompleted = false;
  30878. }
  30879. _subscribe(subscriber) {
  30880. if (this.hasError) {
  30881. subscriber.error(this.thrownError);
  30882. return _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"].EMPTY;
  30883. }
  30884. else if (this.hasCompleted && this.hasNext) {
  30885. subscriber.next(this.value);
  30886. subscriber.complete();
  30887. return _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"].EMPTY;
  30888. }
  30889. return super._subscribe(subscriber);
  30890. }
  30891. next(value) {
  30892. if (!this.hasCompleted) {
  30893. this.value = value;
  30894. this.hasNext = true;
  30895. }
  30896. }
  30897. error(error) {
  30898. if (!this.hasCompleted) {
  30899. super.error(error);
  30900. }
  30901. }
  30902. complete() {
  30903. this.hasCompleted = true;
  30904. if (this.hasNext) {
  30905. super.next(this.value);
  30906. }
  30907. super.complete();
  30908. }
  30909. }
  30910. //# sourceMappingURL=AsyncSubject.js.map
  30911. /***/ }),
  30912. /***/ "NJ4a":
  30913. /*!*********************************************************************!*\
  30914. !*** ./node_modules/rxjs/_esm2015/internal/util/hostReportError.js ***!
  30915. \*********************************************************************/
  30916. /*! exports provided: hostReportError */
  30917. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30918. "use strict";
  30919. __webpack_require__.r(__webpack_exports__);
  30920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hostReportError", function() { return hostReportError; });
  30921. function hostReportError(err) {
  30922. setTimeout(() => { throw err; }, 0);
  30923. }
  30924. //# sourceMappingURL=hostReportError.js.map
  30925. /***/ }),
  30926. /***/ "NJ9Y":
  30927. /*!***************************************************************!*\
  30928. !*** ./node_modules/rxjs/_esm2015/internal/operators/last.js ***!
  30929. \***************************************************************/
  30930. /*! exports provided: last */
  30931. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30932. "use strict";
  30933. __webpack_require__.r(__webpack_exports__);
  30934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "last", function() { return last; });
  30935. /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/EmptyError */ "sVev");
  30936. /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ "pLZG");
  30937. /* harmony import */ var _takeLast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./takeLast */ "BFxc");
  30938. /* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./throwIfEmpty */ "XDbj");
  30939. /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./defaultIfEmpty */ "xbPD");
  30940. /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/identity */ "SpAZ");
  30941. function last(predicate, defaultValue) {
  30942. const hasDefaultValue = arguments.length >= 2;
  30943. return (source) => source.pipe(predicate ? Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])((v, i) => predicate(v, i, source)) : _util_identity__WEBPACK_IMPORTED_MODULE_5__["identity"], Object(_takeLast__WEBPACK_IMPORTED_MODULE_2__["takeLast"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_4__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_3__["throwIfEmpty"])(() => new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]()));
  30944. }
  30945. //# sourceMappingURL=last.js.map
  30946. /***/ }),
  30947. /***/ "NNCq":
  30948. /*!*****************************************************************!*\
  30949. !*** ./node_modules/rxjs/_esm2015/internal/observable/range.js ***!
  30950. \*****************************************************************/
  30951. /*! exports provided: range, dispatch */
  30952. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  30953. "use strict";
  30954. __webpack_require__.r(__webpack_exports__);
  30955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "range", function() { return range; });
  30956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; });
  30957. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  30958. function range(start = 0, count, scheduler) {
  30959. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  30960. if (count === undefined) {
  30961. count = start;
  30962. start = 0;
  30963. }
  30964. let index = 0;
  30965. let current = start;
  30966. if (scheduler) {
  30967. return scheduler.schedule(dispatch, 0, {
  30968. index, count, start, subscriber
  30969. });
  30970. }
  30971. else {
  30972. do {
  30973. if (index++ >= count) {
  30974. subscriber.complete();
  30975. break;
  30976. }
  30977. subscriber.next(current++);
  30978. if (subscriber.closed) {
  30979. break;
  30980. }
  30981. } while (true);
  30982. }
  30983. return undefined;
  30984. });
  30985. }
  30986. function dispatch(state) {
  30987. const { start, index, count, subscriber } = state;
  30988. if (index >= count) {
  30989. subscriber.complete();
  30990. return;
  30991. }
  30992. subscriber.next(start);
  30993. if (subscriber.closed) {
  30994. return;
  30995. }
  30996. state.index = index + 1;
  30997. state.start = start + 1;
  30998. this.schedule(state);
  30999. }
  31000. //# sourceMappingURL=range.js.map
  31001. /***/ }),
  31002. /***/ "NXyV":
  31003. /*!*****************************************************************!*\
  31004. !*** ./node_modules/rxjs/_esm2015/internal/observable/defer.js ***!
  31005. \*****************************************************************/
  31006. /*! exports provided: defer */
  31007. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31008. "use strict";
  31009. __webpack_require__.r(__webpack_exports__);
  31010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defer", function() { return defer; });
  31011. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  31012. /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./from */ "Cfvw");
  31013. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./empty */ "EY2u");
  31014. function defer(observableFactory) {
  31015. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  31016. let input;
  31017. try {
  31018. input = observableFactory();
  31019. }
  31020. catch (err) {
  31021. subscriber.error(err);
  31022. return undefined;
  31023. }
  31024. const source = input ? Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(input) : Object(_empty__WEBPACK_IMPORTED_MODULE_2__["empty"])();
  31025. return source.subscribe(subscriber);
  31026. });
  31027. }
  31028. //# sourceMappingURL=defer.js.map
  31029. /***/ }),
  31030. /***/ "NfdI":
  31031. /*!******************************************************************!*\
  31032. !*** ./node_modules/rxjs/_esm2015/internal/operators/publish.js ***!
  31033. \******************************************************************/
  31034. /*! exports provided: publish */
  31035. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31036. "use strict";
  31037. __webpack_require__.r(__webpack_exports__);
  31038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publish", function() { return publish; });
  31039. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG");
  31040. /* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./multicast */ "oB13");
  31041. function publish(selector) {
  31042. return selector ?
  31043. Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(() => new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"](), selector) :
  31044. Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]());
  31045. }
  31046. //# sourceMappingURL=publish.js.map
  31047. /***/ }),
  31048. /***/ "Nv8m":
  31049. /*!****************************************************************!*\
  31050. !*** ./node_modules/rxjs/_esm2015/internal/observable/race.js ***!
  31051. \****************************************************************/
  31052. /*! exports provided: race, RaceOperator, RaceSubscriber */
  31053. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31054. "use strict";
  31055. __webpack_require__.r(__webpack_exports__);
  31056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "race", function() { return race; });
  31057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RaceOperator", function() { return RaceOperator; });
  31058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RaceSubscriber", function() { return RaceSubscriber; });
  31059. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  31060. /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./fromArray */ "yCtX");
  31061. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  31062. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  31063. function race(...observables) {
  31064. if (observables.length === 1) {
  31065. if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) {
  31066. observables = observables[0];
  31067. }
  31068. else {
  31069. return observables[0];
  31070. }
  31071. }
  31072. return Object(_fromArray__WEBPACK_IMPORTED_MODULE_1__["fromArray"])(observables, undefined).lift(new RaceOperator());
  31073. }
  31074. class RaceOperator {
  31075. call(subscriber, source) {
  31076. return source.subscribe(new RaceSubscriber(subscriber));
  31077. }
  31078. }
  31079. class RaceSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] {
  31080. constructor(destination) {
  31081. super(destination);
  31082. this.hasFirst = false;
  31083. this.observables = [];
  31084. this.subscriptions = [];
  31085. }
  31086. _next(observable) {
  31087. this.observables.push(observable);
  31088. }
  31089. _complete() {
  31090. const observables = this.observables;
  31091. const len = observables.length;
  31092. if (len === 0) {
  31093. this.destination.complete();
  31094. }
  31095. else {
  31096. for (let i = 0; i < len && !this.hasFirst; i++) {
  31097. let observable = observables[i];
  31098. let subscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, observable, observable, i);
  31099. if (this.subscriptions) {
  31100. this.subscriptions.push(subscription);
  31101. }
  31102. this.add(subscription);
  31103. }
  31104. this.observables = null;
  31105. }
  31106. }
  31107. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  31108. if (!this.hasFirst) {
  31109. this.hasFirst = true;
  31110. for (let i = 0; i < this.subscriptions.length; i++) {
  31111. if (i !== outerIndex) {
  31112. let subscription = this.subscriptions[i];
  31113. subscription.unsubscribe();
  31114. this.remove(subscription);
  31115. }
  31116. }
  31117. this.subscriptions = null;
  31118. }
  31119. this.destination.next(innerValue);
  31120. }
  31121. }
  31122. //# sourceMappingURL=race.js.map
  31123. /***/ }),
  31124. /***/ "O4y0":
  31125. /*!*********************************************************************************!*\
  31126. !*** ./node_modules/rxjs/_esm2015/internal/observable/SubscribeOnObservable.js ***!
  31127. \*********************************************************************************/
  31128. /*! exports provided: SubscribeOnObservable */
  31129. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31130. "use strict";
  31131. __webpack_require__.r(__webpack_exports__);
  31132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubscribeOnObservable", function() { return SubscribeOnObservable; });
  31133. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  31134. /* harmony import */ var _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/asap */ "7Hc7");
  31135. /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isNumeric */ "Y7HM");
  31136. class SubscribeOnObservable extends _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"] {
  31137. constructor(source, delayTime = 0, scheduler = _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"]) {
  31138. super();
  31139. this.source = source;
  31140. this.delayTime = delayTime;
  31141. this.scheduler = scheduler;
  31142. if (!Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(delayTime) || delayTime < 0) {
  31143. this.delayTime = 0;
  31144. }
  31145. if (!scheduler || typeof scheduler.schedule !== 'function') {
  31146. this.scheduler = _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"];
  31147. }
  31148. }
  31149. static create(source, delay = 0, scheduler = _scheduler_asap__WEBPACK_IMPORTED_MODULE_1__["asap"]) {
  31150. return new SubscribeOnObservable(source, delay, scheduler);
  31151. }
  31152. static dispatch(arg) {
  31153. const { source, subscriber } = arg;
  31154. return this.add(source.subscribe(subscriber));
  31155. }
  31156. _subscribe(subscriber) {
  31157. const delay = this.delayTime;
  31158. const source = this.source;
  31159. const scheduler = this.scheduler;
  31160. return scheduler.schedule(SubscribeOnObservable.dispatch, delay, {
  31161. source, subscriber
  31162. });
  31163. }
  31164. }
  31165. //# sourceMappingURL=SubscribeOnObservable.js.map
  31166. /***/ }),
  31167. /***/ "OQgR":
  31168. /*!******************************************************************!*\
  31169. !*** ./node_modules/rxjs/_esm2015/internal/operators/groupBy.js ***!
  31170. \******************************************************************/
  31171. /*! exports provided: groupBy, GroupedObservable */
  31172. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31173. "use strict";
  31174. __webpack_require__.r(__webpack_exports__);
  31175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "groupBy", function() { return groupBy; });
  31176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GroupedObservable", function() { return GroupedObservable; });
  31177. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  31178. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY");
  31179. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Observable */ "HDdC");
  31180. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../Subject */ "XNiG");
  31181. function groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {
  31182. return (source) => source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));
  31183. }
  31184. class GroupByOperator {
  31185. constructor(keySelector, elementSelector, durationSelector, subjectSelector) {
  31186. this.keySelector = keySelector;
  31187. this.elementSelector = elementSelector;
  31188. this.durationSelector = durationSelector;
  31189. this.subjectSelector = subjectSelector;
  31190. }
  31191. call(subscriber, source) {
  31192. return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));
  31193. }
  31194. }
  31195. class GroupBySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  31196. constructor(destination, keySelector, elementSelector, durationSelector, subjectSelector) {
  31197. super(destination);
  31198. this.keySelector = keySelector;
  31199. this.elementSelector = elementSelector;
  31200. this.durationSelector = durationSelector;
  31201. this.subjectSelector = subjectSelector;
  31202. this.groups = null;
  31203. this.attemptedToUnsubscribe = false;
  31204. this.count = 0;
  31205. }
  31206. _next(value) {
  31207. let key;
  31208. try {
  31209. key = this.keySelector(value);
  31210. }
  31211. catch (err) {
  31212. this.error(err);
  31213. return;
  31214. }
  31215. this._group(value, key);
  31216. }
  31217. _group(value, key) {
  31218. let groups = this.groups;
  31219. if (!groups) {
  31220. groups = this.groups = new Map();
  31221. }
  31222. let group = groups.get(key);
  31223. let element;
  31224. if (this.elementSelector) {
  31225. try {
  31226. element = this.elementSelector(value);
  31227. }
  31228. catch (err) {
  31229. this.error(err);
  31230. }
  31231. }
  31232. else {
  31233. element = value;
  31234. }
  31235. if (!group) {
  31236. group = (this.subjectSelector ? this.subjectSelector() : new _Subject__WEBPACK_IMPORTED_MODULE_3__["Subject"]());
  31237. groups.set(key, group);
  31238. const groupedObservable = new GroupedObservable(key, group, this);
  31239. this.destination.next(groupedObservable);
  31240. if (this.durationSelector) {
  31241. let duration;
  31242. try {
  31243. duration = this.durationSelector(new GroupedObservable(key, group));
  31244. }
  31245. catch (err) {
  31246. this.error(err);
  31247. return;
  31248. }
  31249. this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));
  31250. }
  31251. }
  31252. if (!group.closed) {
  31253. group.next(element);
  31254. }
  31255. }
  31256. _error(err) {
  31257. const groups = this.groups;
  31258. if (groups) {
  31259. groups.forEach((group, key) => {
  31260. group.error(err);
  31261. });
  31262. groups.clear();
  31263. }
  31264. this.destination.error(err);
  31265. }
  31266. _complete() {
  31267. const groups = this.groups;
  31268. if (groups) {
  31269. groups.forEach((group, key) => {
  31270. group.complete();
  31271. });
  31272. groups.clear();
  31273. }
  31274. this.destination.complete();
  31275. }
  31276. removeGroup(key) {
  31277. this.groups.delete(key);
  31278. }
  31279. unsubscribe() {
  31280. if (!this.closed) {
  31281. this.attemptedToUnsubscribe = true;
  31282. if (this.count === 0) {
  31283. super.unsubscribe();
  31284. }
  31285. }
  31286. }
  31287. }
  31288. class GroupDurationSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  31289. constructor(key, group, parent) {
  31290. super(group);
  31291. this.key = key;
  31292. this.group = group;
  31293. this.parent = parent;
  31294. }
  31295. _next(value) {
  31296. this.complete();
  31297. }
  31298. _unsubscribe() {
  31299. const { parent, key } = this;
  31300. this.key = this.parent = null;
  31301. if (parent) {
  31302. parent.removeGroup(key);
  31303. }
  31304. }
  31305. }
  31306. class GroupedObservable extends _Observable__WEBPACK_IMPORTED_MODULE_2__["Observable"] {
  31307. constructor(key, groupSubject, refCountSubscription) {
  31308. super();
  31309. this.key = key;
  31310. this.groupSubject = groupSubject;
  31311. this.refCountSubscription = refCountSubscription;
  31312. }
  31313. _subscribe(subscriber) {
  31314. const subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
  31315. const { refCountSubscription, groupSubject } = this;
  31316. if (refCountSubscription && !refCountSubscription.closed) {
  31317. subscription.add(new InnerRefCountSubscription(refCountSubscription));
  31318. }
  31319. subscription.add(groupSubject.subscribe(subscriber));
  31320. return subscription;
  31321. }
  31322. }
  31323. class InnerRefCountSubscription extends _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"] {
  31324. constructor(parent) {
  31325. super();
  31326. this.parent = parent;
  31327. parent.count++;
  31328. }
  31329. unsubscribe() {
  31330. const parent = this.parent;
  31331. if (!parent.closed && !this.closed) {
  31332. super.unsubscribe();
  31333. parent.count -= 1;
  31334. if (parent.count === 0 && parent.attemptedToUnsubscribe) {
  31335. parent.unsubscribe();
  31336. }
  31337. }
  31338. }
  31339. }
  31340. //# sourceMappingURL=groupBy.js.map
  31341. /***/ }),
  31342. /***/ "OsX3":
  31343. /*!*********************************************************************!*\
  31344. !*** ./node_modules/rxjs/_esm2015/internal/operators/bufferTime.js ***!
  31345. \*********************************************************************/
  31346. /*! exports provided: bufferTime */
  31347. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31348. "use strict";
  31349. __webpack_require__.r(__webpack_exports__);
  31350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferTime", function() { return bufferTime; });
  31351. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  31352. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  31353. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  31354. function bufferTime(bufferTimeSpan) {
  31355. let length = arguments.length;
  31356. let scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"];
  31357. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_2__["isScheduler"])(arguments[arguments.length - 1])) {
  31358. scheduler = arguments[arguments.length - 1];
  31359. length--;
  31360. }
  31361. let bufferCreationInterval = null;
  31362. if (length >= 2) {
  31363. bufferCreationInterval = arguments[1];
  31364. }
  31365. let maxBufferSize = Number.POSITIVE_INFINITY;
  31366. if (length >= 3) {
  31367. maxBufferSize = arguments[2];
  31368. }
  31369. return function bufferTimeOperatorFunction(source) {
  31370. return source.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));
  31371. };
  31372. }
  31373. class BufferTimeOperator {
  31374. constructor(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
  31375. this.bufferTimeSpan = bufferTimeSpan;
  31376. this.bufferCreationInterval = bufferCreationInterval;
  31377. this.maxBufferSize = maxBufferSize;
  31378. this.scheduler = scheduler;
  31379. }
  31380. call(subscriber, source) {
  31381. return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler));
  31382. }
  31383. }
  31384. class Context {
  31385. constructor() {
  31386. this.buffer = [];
  31387. }
  31388. }
  31389. class BufferTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"] {
  31390. constructor(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {
  31391. super(destination);
  31392. this.bufferTimeSpan = bufferTimeSpan;
  31393. this.bufferCreationInterval = bufferCreationInterval;
  31394. this.maxBufferSize = maxBufferSize;
  31395. this.scheduler = scheduler;
  31396. this.contexts = [];
  31397. const context = this.openContext();
  31398. this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;
  31399. if (this.timespanOnly) {
  31400. const timeSpanOnlyState = { subscriber: this, context, bufferTimeSpan };
  31401. this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));
  31402. }
  31403. else {
  31404. const closeState = { subscriber: this, context };
  31405. const creationState = { bufferTimeSpan, bufferCreationInterval, subscriber: this, scheduler };
  31406. this.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));
  31407. this.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));
  31408. }
  31409. }
  31410. _next(value) {
  31411. const contexts = this.contexts;
  31412. const len = contexts.length;
  31413. let filledBufferContext;
  31414. for (let i = 0; i < len; i++) {
  31415. const context = contexts[i];
  31416. const buffer = context.buffer;
  31417. buffer.push(value);
  31418. if (buffer.length == this.maxBufferSize) {
  31419. filledBufferContext = context;
  31420. }
  31421. }
  31422. if (filledBufferContext) {
  31423. this.onBufferFull(filledBufferContext);
  31424. }
  31425. }
  31426. _error(err) {
  31427. this.contexts.length = 0;
  31428. super._error(err);
  31429. }
  31430. _complete() {
  31431. const { contexts, destination } = this;
  31432. while (contexts.length > 0) {
  31433. const context = contexts.shift();
  31434. destination.next(context.buffer);
  31435. }
  31436. super._complete();
  31437. }
  31438. _unsubscribe() {
  31439. this.contexts = null;
  31440. }
  31441. onBufferFull(context) {
  31442. this.closeContext(context);
  31443. const closeAction = context.closeAction;
  31444. closeAction.unsubscribe();
  31445. this.remove(closeAction);
  31446. if (!this.closed && this.timespanOnly) {
  31447. context = this.openContext();
  31448. const bufferTimeSpan = this.bufferTimeSpan;
  31449. const timeSpanOnlyState = { subscriber: this, context, bufferTimeSpan };
  31450. this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));
  31451. }
  31452. }
  31453. openContext() {
  31454. const context = new Context();
  31455. this.contexts.push(context);
  31456. return context;
  31457. }
  31458. closeContext(context) {
  31459. this.destination.next(context.buffer);
  31460. const contexts = this.contexts;
  31461. const spliceIndex = contexts ? contexts.indexOf(context) : -1;
  31462. if (spliceIndex >= 0) {
  31463. contexts.splice(contexts.indexOf(context), 1);
  31464. }
  31465. }
  31466. }
  31467. function dispatchBufferTimeSpanOnly(state) {
  31468. const subscriber = state.subscriber;
  31469. const prevContext = state.context;
  31470. if (prevContext) {
  31471. subscriber.closeContext(prevContext);
  31472. }
  31473. if (!subscriber.closed) {
  31474. state.context = subscriber.openContext();
  31475. state.context.closeAction = this.schedule(state, state.bufferTimeSpan);
  31476. }
  31477. }
  31478. function dispatchBufferCreation(state) {
  31479. const { bufferCreationInterval, bufferTimeSpan, subscriber, scheduler } = state;
  31480. const context = subscriber.openContext();
  31481. const action = this;
  31482. if (!subscriber.closed) {
  31483. subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, { subscriber, context }));
  31484. action.schedule(state, bufferCreationInterval);
  31485. }
  31486. }
  31487. function dispatchBufferClose(arg) {
  31488. const { subscriber, context } = arg;
  31489. subscriber.closeContext(context);
  31490. }
  31491. //# sourceMappingURL=bufferTime.js.map
  31492. /***/ }),
  31493. /***/ "PZkE":
  31494. /*!**********************************************************************************!*\
  31495. !*** ./node_modules/rxjs/_esm2015/internal/operators/distinctUntilKeyChanged.js ***!
  31496. \**********************************************************************************/
  31497. /*! exports provided: distinctUntilKeyChanged */
  31498. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31499. "use strict";
  31500. __webpack_require__.r(__webpack_exports__);
  31501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function() { return distinctUntilKeyChanged; });
  31502. /* harmony import */ var _distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./distinctUntilChanged */ "/uUt");
  31503. function distinctUntilKeyChanged(key, compare) {
  31504. return Object(_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_0__["distinctUntilChanged"])((x, y) => compare ? compare(x[key], y[key]) : x[key] === y[key]);
  31505. }
  31506. //# sourceMappingURL=distinctUntilKeyChanged.js.map
  31507. /***/ }),
  31508. /***/ "PfrF":
  31509. /*!*********************************************************************!*\
  31510. !*** ./node_modules/rxjs/_esm2015/internal/operators/bufferWhen.js ***!
  31511. \*********************************************************************/
  31512. /*! exports provided: bufferWhen */
  31513. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31514. "use strict";
  31515. __webpack_require__.r(__webpack_exports__);
  31516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bufferWhen", function() { return bufferWhen; });
  31517. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscription */ "quSY");
  31518. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  31519. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  31520. function bufferWhen(closingSelector) {
  31521. return function (source) {
  31522. return source.lift(new BufferWhenOperator(closingSelector));
  31523. };
  31524. }
  31525. class BufferWhenOperator {
  31526. constructor(closingSelector) {
  31527. this.closingSelector = closingSelector;
  31528. }
  31529. call(subscriber, source) {
  31530. return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));
  31531. }
  31532. }
  31533. class BufferWhenSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__["OuterSubscriber"] {
  31534. constructor(destination, closingSelector) {
  31535. super(destination);
  31536. this.closingSelector = closingSelector;
  31537. this.subscribing = false;
  31538. this.openBuffer();
  31539. }
  31540. _next(value) {
  31541. this.buffer.push(value);
  31542. }
  31543. _complete() {
  31544. const buffer = this.buffer;
  31545. if (buffer) {
  31546. this.destination.next(buffer);
  31547. }
  31548. super._complete();
  31549. }
  31550. _unsubscribe() {
  31551. this.buffer = null;
  31552. this.subscribing = false;
  31553. }
  31554. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  31555. this.openBuffer();
  31556. }
  31557. notifyComplete() {
  31558. if (this.subscribing) {
  31559. this.complete();
  31560. }
  31561. else {
  31562. this.openBuffer();
  31563. }
  31564. }
  31565. openBuffer() {
  31566. let { closingSubscription } = this;
  31567. if (closingSubscription) {
  31568. this.remove(closingSubscription);
  31569. closingSubscription.unsubscribe();
  31570. }
  31571. const buffer = this.buffer;
  31572. if (this.buffer) {
  31573. this.destination.next(buffer);
  31574. }
  31575. this.buffer = [];
  31576. let closingNotifier;
  31577. try {
  31578. const { closingSelector } = this;
  31579. closingNotifier = closingSelector();
  31580. }
  31581. catch (err) {
  31582. return this.error(err);
  31583. }
  31584. closingSubscription = new _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"]();
  31585. this.closingSubscription = closingSubscription;
  31586. this.add(closingSubscription);
  31587. this.subscribing = true;
  31588. closingSubscription.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, closingNotifier));
  31589. this.subscribing = false;
  31590. }
  31591. }
  31592. //# sourceMappingURL=bufferWhen.js.map
  31593. /***/ }),
  31594. /***/ "PqYM":
  31595. /*!*****************************************************************!*\
  31596. !*** ./node_modules/rxjs/_esm2015/internal/observable/timer.js ***!
  31597. \*****************************************************************/
  31598. /*! exports provided: timer */
  31599. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31600. "use strict";
  31601. __webpack_require__.r(__webpack_exports__);
  31602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return timer; });
  31603. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  31604. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  31605. /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isNumeric */ "Y7HM");
  31606. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  31607. function timer(dueTime = 0, periodOrScheduler, scheduler) {
  31608. let period = -1;
  31609. if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(periodOrScheduler)) {
  31610. period = Number(periodOrScheduler) < 1 && 1 || Number(periodOrScheduler);
  31611. }
  31612. else if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_3__["isScheduler"])(periodOrScheduler)) {
  31613. scheduler = periodOrScheduler;
  31614. }
  31615. if (!Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_3__["isScheduler"])(scheduler)) {
  31616. scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
  31617. }
  31618. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  31619. const due = Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(dueTime)
  31620. ? dueTime
  31621. : (+dueTime - scheduler.now());
  31622. return scheduler.schedule(dispatch, due, {
  31623. index: 0, period, subscriber
  31624. });
  31625. });
  31626. }
  31627. function dispatch(state) {
  31628. const { index, period, subscriber } = state;
  31629. subscriber.next(index);
  31630. if (subscriber.closed) {
  31631. return;
  31632. }
  31633. else if (period === -1) {
  31634. return subscriber.complete();
  31635. }
  31636. state.index = index + 1;
  31637. this.schedule(state, period);
  31638. }
  31639. //# sourceMappingURL=timer.js.map
  31640. /***/ }),
  31641. /***/ "Pz8W":
  31642. /*!*********************************************************************!*\
  31643. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsapAction.js ***!
  31644. \*********************************************************************/
  31645. /*! exports provided: AsapAction */
  31646. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31647. "use strict";
  31648. __webpack_require__.r(__webpack_exports__);
  31649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsapAction", function() { return AsapAction; });
  31650. /* harmony import */ var _util_Immediate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/Immediate */ "c7jc");
  31651. /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncAction */ "3N8a");
  31652. class AsapAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_1__["AsyncAction"] {
  31653. constructor(scheduler, work) {
  31654. super(scheduler, work);
  31655. this.scheduler = scheduler;
  31656. this.work = work;
  31657. }
  31658. requestAsyncId(scheduler, id, delay = 0) {
  31659. if (delay !== null && delay > 0) {
  31660. return super.requestAsyncId(scheduler, id, delay);
  31661. }
  31662. scheduler.actions.push(this);
  31663. return scheduler.scheduled || (scheduler.scheduled = _util_Immediate__WEBPACK_IMPORTED_MODULE_0__["Immediate"].setImmediate(scheduler.flush.bind(scheduler, null)));
  31664. }
  31665. recycleAsyncId(scheduler, id, delay = 0) {
  31666. if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
  31667. return super.recycleAsyncId(scheduler, id, delay);
  31668. }
  31669. if (scheduler.actions.length === 0) {
  31670. _util_Immediate__WEBPACK_IMPORTED_MODULE_0__["Immediate"].clearImmediate(id);
  31671. scheduler.scheduled = undefined;
  31672. }
  31673. return undefined;
  31674. }
  31675. }
  31676. //# sourceMappingURL=AsapAction.js.map
  31677. /***/ }),
  31678. /***/ "QIAL":
  31679. /*!*************************************************************************!*\
  31680. !*** ./node_modules/rxjs/_esm2015/internal/util/isInteropObservable.js ***!
  31681. \*************************************************************************/
  31682. /*! exports provided: isInteropObservable */
  31683. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31684. "use strict";
  31685. __webpack_require__.r(__webpack_exports__);
  31686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInteropObservable", function() { return isInteropObservable; });
  31687. /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbol/observable */ "kJWO");
  31688. function isInteropObservable(input) {
  31689. return input && typeof input[_symbol_observable__WEBPACK_IMPORTED_MODULE_0__["observable"]] === 'function';
  31690. }
  31691. //# sourceMappingURL=isInteropObservable.js.map
  31692. /***/ }),
  31693. /***/ "Qn8I":
  31694. /*!*****************************************************************!*\
  31695. !*** ./node_modules/rxjs/_esm2015/internal/observable/using.js ***!
  31696. \*****************************************************************/
  31697. /*! exports provided: using */
  31698. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31699. "use strict";
  31700. __webpack_require__.r(__webpack_exports__);
  31701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "using", function() { return using; });
  31702. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  31703. /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./from */ "Cfvw");
  31704. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./empty */ "EY2u");
  31705. function using(resourceFactory, observableFactory) {
  31706. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  31707. let resource;
  31708. try {
  31709. resource = resourceFactory();
  31710. }
  31711. catch (err) {
  31712. subscriber.error(err);
  31713. return undefined;
  31714. }
  31715. let result;
  31716. try {
  31717. result = observableFactory(resource);
  31718. }
  31719. catch (err) {
  31720. subscriber.error(err);
  31721. return undefined;
  31722. }
  31723. const source = result ? Object(_from__WEBPACK_IMPORTED_MODULE_1__["from"])(result) : _empty__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
  31724. const subscription = source.subscribe(subscriber);
  31725. return () => {
  31726. subscription.unsubscribe();
  31727. if (resource) {
  31728. resource.unsubscribe();
  31729. }
  31730. };
  31731. });
  31732. }
  31733. //# sourceMappingURL=using.js.map
  31734. /***/ }),
  31735. /***/ "QqCr":
  31736. /*!************************************************************************!*\
  31737. !*** ./node_modules/rxjs/_esm2015/internal/observable/bindCallback.js ***!
  31738. \************************************************************************/
  31739. /*! exports provided: bindCallback */
  31740. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31741. "use strict";
  31742. __webpack_require__.r(__webpack_exports__);
  31743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "bindCallback", function() { return bindCallback; });
  31744. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  31745. /* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../AsyncSubject */ "NHP+");
  31746. /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/map */ "lJxs");
  31747. /* harmony import */ var _util_canReportError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/canReportError */ "8Qeq");
  31748. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  31749. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  31750. function bindCallback(callbackFunc, resultSelector, scheduler) {
  31751. if (resultSelector) {
  31752. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_5__["isScheduler"])(resultSelector)) {
  31753. scheduler = resultSelector;
  31754. }
  31755. else {
  31756. return (...args) => bindCallback(callbackFunc, scheduler)(...args).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])((args) => Object(_util_isArray__WEBPACK_IMPORTED_MODULE_4__["isArray"])(args) ? resultSelector(...args) : resultSelector(args)));
  31757. }
  31758. }
  31759. return function (...args) {
  31760. const context = this;
  31761. let subject;
  31762. const params = {
  31763. context,
  31764. subject,
  31765. callbackFunc,
  31766. scheduler,
  31767. };
  31768. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  31769. if (!scheduler) {
  31770. if (!subject) {
  31771. subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();
  31772. const handler = (...innerArgs) => {
  31773. subject.next(innerArgs.length <= 1 ? innerArgs[0] : innerArgs);
  31774. subject.complete();
  31775. };
  31776. try {
  31777. callbackFunc.apply(context, [...args, handler]);
  31778. }
  31779. catch (err) {
  31780. if (Object(_util_canReportError__WEBPACK_IMPORTED_MODULE_3__["canReportError"])(subject)) {
  31781. subject.error(err);
  31782. }
  31783. else {
  31784. console.warn(err);
  31785. }
  31786. }
  31787. }
  31788. return subject.subscribe(subscriber);
  31789. }
  31790. else {
  31791. const state = {
  31792. args, subscriber, params,
  31793. };
  31794. return scheduler.schedule(dispatch, 0, state);
  31795. }
  31796. });
  31797. };
  31798. }
  31799. function dispatch(state) {
  31800. const self = this;
  31801. const { args, subscriber, params } = state;
  31802. const { callbackFunc, context, scheduler } = params;
  31803. let { subject } = params;
  31804. if (!subject) {
  31805. subject = params.subject = new _AsyncSubject__WEBPACK_IMPORTED_MODULE_1__["AsyncSubject"]();
  31806. const handler = (...innerArgs) => {
  31807. const value = innerArgs.length <= 1 ? innerArgs[0] : innerArgs;
  31808. this.add(scheduler.schedule(dispatchNext, 0, { value, subject }));
  31809. };
  31810. try {
  31811. callbackFunc.apply(context, [...args, handler]);
  31812. }
  31813. catch (err) {
  31814. subject.error(err);
  31815. }
  31816. }
  31817. this.add(subject.subscribe(subscriber));
  31818. }
  31819. function dispatchNext(state) {
  31820. const { value, subject } = state;
  31821. subject.next(value);
  31822. subject.complete();
  31823. }
  31824. function dispatchError(state) {
  31825. const { err, subject } = state;
  31826. subject.error(err);
  31827. }
  31828. //# sourceMappingURL=bindCallback.js.map
  31829. /***/ }),
  31830. /***/ "R0Ic":
  31831. /*!******************************************************************************!*\
  31832. !*** ./node_modules/@angular/animations/__ivy_ngcc__/fesm2015/animations.js ***!
  31833. \******************************************************************************/
  31834. /*! exports provided: AUTO_STYLE, AnimationBuilder, AnimationFactory, NoopAnimationPlayer, animate, animateChild, animation, group, keyframes, query, sequence, stagger, state, style, transition, trigger, useAnimation, ɵAnimationGroupPlayer, ɵPRE_STYLE */
  31835. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  31836. "use strict";
  31837. __webpack_require__.r(__webpack_exports__);
  31838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AUTO_STYLE", function() { return AUTO_STYLE; });
  31839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationBuilder", function() { return AnimationBuilder; });
  31840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationFactory", function() { return AnimationFactory; });
  31841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoopAnimationPlayer", function() { return NoopAnimationPlayer; });
  31842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animate", function() { return animate; });
  31843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animateChild", function() { return animateChild; });
  31844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animation", function() { return animation; });
  31845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "group", function() { return group; });
  31846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyframes", function() { return keyframes; });
  31847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "query", function() { return query; });
  31848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequence", function() { return sequence; });
  31849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "stagger", function() { return stagger; });
  31850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "state", function() { return state; });
  31851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "style", function() { return style; });
  31852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return transition; });
  31853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trigger", function() { return trigger; });
  31854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "useAnimation", function() { return useAnimation; });
  31855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimationGroupPlayer", function() { return AnimationGroupPlayer; });
  31856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵPRE_STYLE", function() { return ɵPRE_STYLE; });
  31857. /**
  31858. * @license Angular v11.0.4
  31859. * (c) 2010-2020 Google LLC. https://angular.io/
  31860. * License: MIT
  31861. */
  31862. /**
  31863. * An injectable service that produces an animation sequence programmatically within an
  31864. * Angular component or directive.
  31865. * Provided by the `BrowserAnimationsModule` or `NoopAnimationsModule`.
  31866. *
  31867. * @usageNotes
  31868. *
  31869. * To use this service, add it to your component or directive as a dependency.
  31870. * The service is instantiated along with your component.
  31871. *
  31872. * Apps do not typically need to create their own animation players, but if you
  31873. * do need to, follow these steps:
  31874. *
  31875. * 1. Use the `build()` method to create a programmatic animation using the
  31876. * `animate()` function. The method returns an `AnimationFactory` instance.
  31877. *
  31878. * 2. Use the factory object to create an `AnimationPlayer` and attach it to a DOM element.
  31879. *
  31880. * 3. Use the player object to control the animation programmatically.
  31881. *
  31882. * For example:
  31883. *
  31884. * ```ts
  31885. * // import the service from BrowserAnimationsModule
  31886. * import {AnimationBuilder} from '@angular/animations';
  31887. * // require the service as a dependency
  31888. * class MyCmp {
  31889. * constructor(private _builder: AnimationBuilder) {}
  31890. *
  31891. * makeAnimation(element: any) {
  31892. * // first define a reusable animation
  31893. * const myAnimation = this._builder.build([
  31894. * style({ width: 0 }),
  31895. * animate(1000, style({ width: '100px' }))
  31896. * ]);
  31897. *
  31898. * // use the returned factory object to create a player
  31899. * const player = myAnimation.create(element);
  31900. *
  31901. * player.play();
  31902. * }
  31903. * }
  31904. * ```
  31905. *
  31906. * @publicApi
  31907. */
  31908. class AnimationBuilder {
  31909. }
  31910. /**
  31911. * A factory object returned from the `AnimationBuilder`.`build()` method.
  31912. *
  31913. * @publicApi
  31914. */
  31915. class AnimationFactory {
  31916. }
  31917. /**
  31918. * @license
  31919. * Copyright Google LLC All Rights Reserved.
  31920. *
  31921. * Use of this source code is governed by an MIT-style license that can be
  31922. * found in the LICENSE file at https://angular.io/license
  31923. */
  31924. /**
  31925. * Specifies automatic styling.
  31926. *
  31927. * @publicApi
  31928. */
  31929. const AUTO_STYLE = '*';
  31930. /**
  31931. * Creates a named animation trigger, containing a list of `state()`
  31932. * and `transition()` entries to be evaluated when the expression
  31933. * bound to the trigger changes.
  31934. *
  31935. * @param name An identifying string.
  31936. * @param definitions An animation definition object, containing an array of `state()`
  31937. * and `transition()` declarations.
  31938. *
  31939. * @return An object that encapsulates the trigger data.
  31940. *
  31941. * @usageNotes
  31942. * Define an animation trigger in the `animations` section of `@Component` metadata.
  31943. * In the template, reference the trigger by name and bind it to a trigger expression that
  31944. * evaluates to a defined animation state, using the following format:
  31945. *
  31946. * `[@triggerName]="expression"`
  31947. *
  31948. * Animation trigger bindings convert all values to strings, and then match the
  31949. * previous and current values against any linked transitions.
  31950. * Booleans can be specified as `1` or `true` and `0` or `false`.
  31951. *
  31952. * ### Usage Example
  31953. *
  31954. * The following example creates an animation trigger reference based on the provided
  31955. * name value.
  31956. * The provided animation value is expected to be an array consisting of state and
  31957. * transition declarations.
  31958. *
  31959. * ```typescript
  31960. * @Component({
  31961. * selector: "my-component",
  31962. * templateUrl: "my-component-tpl.html",
  31963. * animations: [
  31964. * trigger("myAnimationTrigger", [
  31965. * state(...),
  31966. * state(...),
  31967. * transition(...),
  31968. * transition(...)
  31969. * ])
  31970. * ]
  31971. * })
  31972. * class MyComponent {
  31973. * myStatusExp = "something";
  31974. * }
  31975. * ```
  31976. *
  31977. * The template associated with this component makes use of the defined trigger
  31978. * by binding to an element within its template code.
  31979. *
  31980. * ```html
  31981. * <!-- somewhere inside of my-component-tpl.html -->
  31982. * <div [@myAnimationTrigger]="myStatusExp">...</div>
  31983. * ```
  31984. *
  31985. * ### Using an inline function
  31986. * The `transition` animation method also supports reading an inline function which can decide
  31987. * if its associated animation should be run.
  31988. *
  31989. * ```typescript
  31990. * // this method is run each time the `myAnimationTrigger` trigger value changes.
  31991. * function myInlineMatcherFn(fromState: string, toState: string, element: any, params: {[key:
  31992. string]: any}): boolean {
  31993. * // notice that `element` and `params` are also available here
  31994. * return toState == 'yes-please-animate';
  31995. * }
  31996. *
  31997. * @Component({
  31998. * selector: 'my-component',
  31999. * templateUrl: 'my-component-tpl.html',
  32000. * animations: [
  32001. * trigger('myAnimationTrigger', [
  32002. * transition(myInlineMatcherFn, [
  32003. * // the animation sequence code
  32004. * ]),
  32005. * ])
  32006. * ]
  32007. * })
  32008. * class MyComponent {
  32009. * myStatusExp = "yes-please-animate";
  32010. * }
  32011. * ```
  32012. *
  32013. * ### Disabling Animations
  32014. * When true, the special animation control binding `@.disabled` binding prevents
  32015. * all animations from rendering.
  32016. * Place the `@.disabled` binding on an element to disable
  32017. * animations on the element itself, as well as any inner animation triggers
  32018. * within the element.
  32019. *
  32020. * The following example shows how to use this feature:
  32021. *
  32022. * ```typescript
  32023. * @Component({
  32024. * selector: 'my-component',
  32025. * template: `
  32026. * <div [@.disabled]="isDisabled">
  32027. * <div [@childAnimation]="exp"></div>
  32028. * </div>
  32029. * `,
  32030. * animations: [
  32031. * trigger("childAnimation", [
  32032. * // ...
  32033. * ])
  32034. * ]
  32035. * })
  32036. * class MyComponent {
  32037. * isDisabled = true;
  32038. * exp = '...';
  32039. * }
  32040. * ```
  32041. *
  32042. * When `@.disabled` is true, it prevents the `@childAnimation` trigger from animating,
  32043. * along with any inner animations.
  32044. *
  32045. * ### Disable animations application-wide
  32046. * When an area of the template is set to have animations disabled,
  32047. * **all** inner components have their animations disabled as well.
  32048. * This means that you can disable all animations for an app
  32049. * by placing a host binding set on `@.disabled` on the topmost Angular component.
  32050. *
  32051. * ```typescript
  32052. * import {Component, HostBinding} from '@angular/core';
  32053. *
  32054. * @Component({
  32055. * selector: 'app-component',
  32056. * templateUrl: 'app.component.html',
  32057. * })
  32058. * class AppComponent {
  32059. * @HostBinding('@.disabled')
  32060. * public animationsDisabled = true;
  32061. * }
  32062. * ```
  32063. *
  32064. * ### Overriding disablement of inner animations
  32065. * Despite inner animations being disabled, a parent animation can `query()`
  32066. * for inner elements located in disabled areas of the template and still animate
  32067. * them if needed. This is also the case for when a sub animation is
  32068. * queried by a parent and then later animated using `animateChild()`.
  32069. *
  32070. * ### Detecting when an animation is disabled
  32071. * If a region of the DOM (or the entire application) has its animations disabled, the animation
  32072. * trigger callbacks still fire, but for zero seconds. When the callback fires, it provides
  32073. * an instance of an `AnimationEvent`. If animations are disabled,
  32074. * the `.disabled` flag on the event is true.
  32075. *
  32076. * @publicApi
  32077. */
  32078. function trigger(name, definitions) {
  32079. return { type: 7 /* Trigger */, name, definitions, options: {} };
  32080. }
  32081. /**
  32082. * Defines an animation step that combines styling information with timing information.
  32083. *
  32084. * @param timings Sets `AnimateTimings` for the parent animation.
  32085. * A string in the format "duration [delay] [easing]".
  32086. * - Duration and delay are expressed as a number and optional time unit,
  32087. * such as "1s" or "10ms" for one second and 10 milliseconds, respectively.
  32088. * The default unit is milliseconds.
  32089. * - The easing value controls how the animation accelerates and decelerates
  32090. * during its runtime. Value is one of `ease`, `ease-in`, `ease-out`,
  32091. * `ease-in-out`, or a `cubic-bezier()` function call.
  32092. * If not supplied, no easing is applied.
  32093. *
  32094. * For example, the string "1s 100ms ease-out" specifies a duration of
  32095. * 1000 milliseconds, and delay of 100 ms, and the "ease-out" easing style,
  32096. * which decelerates near the end of the duration.
  32097. * @param styles Sets AnimationStyles for the parent animation.
  32098. * A function call to either `style()` or `keyframes()`
  32099. * that returns a collection of CSS style entries to be applied to the parent animation.
  32100. * When null, uses the styles from the destination state.
  32101. * This is useful when describing an animation step that will complete an animation;
  32102. * see "Animating to the final state" in `transitions()`.
  32103. * @returns An object that encapsulates the animation step.
  32104. *
  32105. * @usageNotes
  32106. * Call within an animation `sequence()`, `{@link animations/group group()}`, or
  32107. * `transition()` call to specify an animation step
  32108. * that applies given style data to the parent animation for a given amount of time.
  32109. *
  32110. * ### Syntax Examples
  32111. * **Timing examples**
  32112. *
  32113. * The following examples show various `timings` specifications.
  32114. * - `animate(500)` : Duration is 500 milliseconds.
  32115. * - `animate("1s")` : Duration is 1000 milliseconds.
  32116. * - `animate("100ms 0.5s")` : Duration is 100 milliseconds, delay is 500 milliseconds.
  32117. * - `animate("5s ease-in")` : Duration is 5000 milliseconds, easing in.
  32118. * - `animate("5s 10ms cubic-bezier(.17,.67,.88,.1)")` : Duration is 5000 milliseconds, delay is 10
  32119. * milliseconds, easing according to a bezier curve.
  32120. *
  32121. * **Style examples**
  32122. *
  32123. * The following example calls `style()` to set a single CSS style.
  32124. * ```typescript
  32125. * animate(500, style({ background: "red" }))
  32126. * ```
  32127. * The following example calls `keyframes()` to set a CSS style
  32128. * to different values for successive keyframes.
  32129. * ```typescript
  32130. * animate(500, keyframes(
  32131. * [
  32132. * style({ background: "blue" }),
  32133. * style({ background: "red" })
  32134. * ])
  32135. * ```
  32136. *
  32137. * @publicApi
  32138. */
  32139. function animate(timings, styles = null) {
  32140. return { type: 4 /* Animate */, styles, timings };
  32141. }
  32142. /**
  32143. * @description Defines a list of animation steps to be run in parallel.
  32144. *
  32145. * @param steps An array of animation step objects.
  32146. * - When steps are defined by `style()` or `animate()`
  32147. * function calls, each call within the group is executed instantly.
  32148. * - To specify offset styles to be applied at a later time, define steps with
  32149. * `keyframes()`, or use `animate()` calls with a delay value.
  32150. * For example:
  32151. *
  32152. * ```typescript
  32153. * group([
  32154. * animate("1s", style({ background: "black" })),
  32155. * animate("2s", style({ color: "white" }))
  32156. * ])
  32157. * ```
  32158. *
  32159. * @param options An options object containing a delay and
  32160. * developer-defined parameters that provide styling defaults and
  32161. * can be overridden on invocation.
  32162. *
  32163. * @return An object that encapsulates the group data.
  32164. *
  32165. * @usageNotes
  32166. * Grouped animations are useful when a series of styles must be
  32167. * animated at different starting times and closed off at different ending times.
  32168. *
  32169. * When called within a `sequence()` or a
  32170. * `transition()` call, does not continue to the next
  32171. * instruction until all of the inner animation steps have completed.
  32172. *
  32173. * @publicApi
  32174. */
  32175. function group(steps, options = null) {
  32176. return { type: 3 /* Group */, steps, options };
  32177. }
  32178. /**
  32179. * Defines a list of animation steps to be run sequentially, one by one.
  32180. *
  32181. * @param steps An array of animation step objects.
  32182. * - Steps defined by `style()` calls apply the styling data immediately.
  32183. * - Steps defined by `animate()` calls apply the styling data over time
  32184. * as specified by the timing data.
  32185. *
  32186. * ```typescript
  32187. * sequence([
  32188. * style({ opacity: 0 }),
  32189. * animate("1s", style({ opacity: 1 }))
  32190. * ])
  32191. * ```
  32192. *
  32193. * @param options An options object containing a delay and
  32194. * developer-defined parameters that provide styling defaults and
  32195. * can be overridden on invocation.
  32196. *
  32197. * @return An object that encapsulates the sequence data.
  32198. *
  32199. * @usageNotes
  32200. * When you pass an array of steps to a
  32201. * `transition()` call, the steps run sequentially by default.
  32202. * Compare this to the `{@link animations/group group()}` call, which runs animation steps in
  32203. *parallel.
  32204. *
  32205. * When a sequence is used within a `{@link animations/group group()}` or a `transition()` call,
  32206. * execution continues to the next instruction only after each of the inner animation
  32207. * steps have completed.
  32208. *
  32209. * @publicApi
  32210. **/
  32211. function sequence(steps, options = null) {
  32212. return { type: 2 /* Sequence */, steps, options };
  32213. }
  32214. /**
  32215. * Declares a key/value object containing CSS properties/styles that
  32216. * can then be used for an animation `state`, within an animation `sequence`,
  32217. * or as styling data for calls to `animate()` and `keyframes()`.
  32218. *
  32219. * @param tokens A set of CSS styles or HTML styles associated with an animation state.
  32220. * The value can be any of the following:
  32221. * - A key-value style pair associating a CSS property with a value.
  32222. * - An array of key-value style pairs.
  32223. * - An asterisk (*), to use auto-styling, where styles are derived from the element
  32224. * being animated and applied to the animation when it starts.
  32225. *
  32226. * Auto-styling can be used to define a state that depends on layout or other
  32227. * environmental factors.
  32228. *
  32229. * @return An object that encapsulates the style data.
  32230. *
  32231. * @usageNotes
  32232. * The following examples create animation styles that collect a set of
  32233. * CSS property values:
  32234. *
  32235. * ```typescript
  32236. * // string values for CSS properties
  32237. * style({ background: "red", color: "blue" })
  32238. *
  32239. * // numerical pixel values
  32240. * style({ width: 100, height: 0 })
  32241. * ```
  32242. *
  32243. * The following example uses auto-styling to allow a component to animate from
  32244. * a height of 0 up to the height of the parent element:
  32245. *
  32246. * ```
  32247. * style({ height: 0 }),
  32248. * animate("1s", style({ height: "*" }))
  32249. * ```
  32250. *
  32251. * @publicApi
  32252. **/
  32253. function style(tokens) {
  32254. return { type: 6 /* Style */, styles: tokens, offset: null };
  32255. }
  32256. /**
  32257. * Declares an animation state within a trigger attached to an element.
  32258. *
  32259. * @param name One or more names for the defined state in a comma-separated string.
  32260. * The following reserved state names can be supplied to define a style for specific use
  32261. * cases:
  32262. *
  32263. * - `void` You can associate styles with this name to be used when
  32264. * the element is detached from the application. For example, when an `ngIf` evaluates
  32265. * to false, the state of the associated element is void.
  32266. * - `*` (asterisk) Indicates the default state. You can associate styles with this name
  32267. * to be used as the fallback when the state that is being animated is not declared
  32268. * within the trigger.
  32269. *
  32270. * @param styles A set of CSS styles associated with this state, created using the
  32271. * `style()` function.
  32272. * This set of styles persists on the element once the state has been reached.
  32273. * @param options Parameters that can be passed to the state when it is invoked.
  32274. * 0 or more key-value pairs.
  32275. * @return An object that encapsulates the new state data.
  32276. *
  32277. * @usageNotes
  32278. * Use the `trigger()` function to register states to an animation trigger.
  32279. * Use the `transition()` function to animate between states.
  32280. * When a state is active within a component, its associated styles persist on the element,
  32281. * even when the animation ends.
  32282. *
  32283. * @publicApi
  32284. **/
  32285. function state(name, styles, options) {
  32286. return { type: 0 /* State */, name, styles, options };
  32287. }
  32288. /**
  32289. * Defines a set of animation styles, associating each style with an optional `offset` value.
  32290. *
  32291. * @param steps A set of animation styles with optional offset data.
  32292. * The optional `offset` value for a style specifies a percentage of the total animation
  32293. * time at which that style is applied.
  32294. * @returns An object that encapsulates the keyframes data.
  32295. *
  32296. * @usageNotes
  32297. * Use with the `animate()` call. Instead of applying animations
  32298. * from the current state
  32299. * to the destination state, keyframes describe how each style entry is applied and at what point
  32300. * within the animation arc.
  32301. * Compare [CSS Keyframe Animations](https://www.w3schools.com/css/css3_animations.asp).
  32302. *
  32303. * ### Usage
  32304. *
  32305. * In the following example, the offset values describe
  32306. * when each `backgroundColor` value is applied. The color is red at the start, and changes to
  32307. * blue when 20% of the total time has elapsed.
  32308. *
  32309. * ```typescript
  32310. * // the provided offset values
  32311. * animate("5s", keyframes([
  32312. * style({ backgroundColor: "red", offset: 0 }),
  32313. * style({ backgroundColor: "blue", offset: 0.2 }),
  32314. * style({ backgroundColor: "orange", offset: 0.3 }),
  32315. * style({ backgroundColor: "black", offset: 1 })
  32316. * ]))
  32317. * ```
  32318. *
  32319. * If there are no `offset` values specified in the style entries, the offsets
  32320. * are calculated automatically.
  32321. *
  32322. * ```typescript
  32323. * animate("5s", keyframes([
  32324. * style({ backgroundColor: "red" }) // offset = 0
  32325. * style({ backgroundColor: "blue" }) // offset = 0.33
  32326. * style({ backgroundColor: "orange" }) // offset = 0.66
  32327. * style({ backgroundColor: "black" }) // offset = 1
  32328. * ]))
  32329. *```
  32330. * @publicApi
  32331. */
  32332. function keyframes(steps) {
  32333. return { type: 5 /* Keyframes */, steps };
  32334. }
  32335. /**
  32336. * Declares an animation transition as a sequence of animation steps to run when a given
  32337. * condition is satisfied. The condition is a Boolean expression or function that compares
  32338. * the previous and current animation states, and returns true if this transition should occur.
  32339. * When the state criteria of a defined transition are met, the associated animation is
  32340. * triggered.
  32341. *
  32342. * @param stateChangeExpr A Boolean expression or function that compares the previous and current
  32343. * animation states, and returns true if this transition should occur. Note that "true" and "false"
  32344. * match 1 and 0, respectively. An expression is evaluated each time a state change occurs in the
  32345. * animation trigger element.
  32346. * The animation steps run when the expression evaluates to true.
  32347. *
  32348. * - A state-change string takes the form "state1 => state2", where each side is a defined animation
  32349. * state, or an asterix (*) to refer to a dynamic start or end state.
  32350. * - The expression string can contain multiple comma-separated statements;
  32351. * for example "state1 => state2, state3 => state4".
  32352. * - Special values `:enter` and `:leave` initiate a transition on the entry and exit states,
  32353. * equivalent to "void => *" and "* => void".
  32354. * - Special values `:increment` and `:decrement` initiate a transition when a numeric value has
  32355. * increased or decreased in value.
  32356. * - A function is executed each time a state change occurs in the animation trigger element.
  32357. * The animation steps run when the function returns true.
  32358. *
  32359. * @param steps One or more animation objects, as returned by the `animate()` or
  32360. * `sequence()` function, that form a transformation from one state to another.
  32361. * A sequence is used by default when you pass an array.
  32362. * @param options An options object that can contain a delay value for the start of the animation,
  32363. * and additional developer-defined parameters. Provided values for additional parameters are used
  32364. * as defaults, and override values can be passed to the caller on invocation.
  32365. * @returns An object that encapsulates the transition data.
  32366. *
  32367. * @usageNotes
  32368. * The template associated with a component binds an animation trigger to an element.
  32369. *
  32370. * ```HTML
  32371. * <!-- somewhere inside of my-component-tpl.html -->
  32372. * <div [@myAnimationTrigger]="myStatusExp">...</div>
  32373. * ```
  32374. *
  32375. * All transitions are defined within an animation trigger,
  32376. * along with named states that the transitions change to and from.
  32377. *
  32378. * ```typescript
  32379. * trigger("myAnimationTrigger", [
  32380. * // define states
  32381. * state("on", style({ background: "green" })),
  32382. * state("off", style({ background: "grey" })),
  32383. * ...]
  32384. * ```
  32385. *
  32386. * Note that when you call the `sequence()` function within a `{@link animations/group group()}`
  32387. * or a `transition()` call, execution does not continue to the next instruction
  32388. * until each of the inner animation steps have completed.
  32389. *
  32390. * ### Syntax examples
  32391. *
  32392. * The following examples define transitions between the two defined states (and default states),
  32393. * using various options:
  32394. *
  32395. * ```typescript
  32396. * // Transition occurs when the state value
  32397. * // bound to "myAnimationTrigger" changes from "on" to "off"
  32398. * transition("on => off", animate(500))
  32399. * // Run the same animation for both directions
  32400. * transition("on <=> off", animate(500))
  32401. * // Define multiple state-change pairs separated by commas
  32402. * transition("on => off, off => void", animate(500))
  32403. * ```
  32404. *
  32405. * ### Special values for state-change expressions
  32406. *
  32407. * - Catch-all state change for when an element is inserted into the page and the
  32408. * destination state is unknown:
  32409. *
  32410. * ```typescript
  32411. * transition("void => *", [
  32412. * style({ opacity: 0 }),
  32413. * animate(500)
  32414. * ])
  32415. * ```
  32416. *
  32417. * - Capture a state change between any states:
  32418. *
  32419. * `transition("* => *", animate("1s 0s"))`
  32420. *
  32421. * - Entry and exit transitions:
  32422. *
  32423. * ```typescript
  32424. * transition(":enter", [
  32425. * style({ opacity: 0 }),
  32426. * animate(500, style({ opacity: 1 }))
  32427. * ]),
  32428. * transition(":leave", [
  32429. * animate(500, style({ opacity: 0 }))
  32430. * ])
  32431. * ```
  32432. *
  32433. * - Use `:increment` and `:decrement` to initiate transitions:
  32434. *
  32435. * ```typescript
  32436. * transition(":increment", group([
  32437. * query(':enter', [
  32438. * style({ left: '100%' }),
  32439. * animate('0.5s ease-out', style('*'))
  32440. * ]),
  32441. * query(':leave', [
  32442. * animate('0.5s ease-out', style({ left: '-100%' }))
  32443. * ])
  32444. * ]))
  32445. *
  32446. * transition(":decrement", group([
  32447. * query(':enter', [
  32448. * style({ left: '100%' }),
  32449. * animate('0.5s ease-out', style('*'))
  32450. * ]),
  32451. * query(':leave', [
  32452. * animate('0.5s ease-out', style({ left: '-100%' }))
  32453. * ])
  32454. * ]))
  32455. * ```
  32456. *
  32457. * ### State-change functions
  32458. *
  32459. * Here is an example of a `fromState` specified as a state-change function that invokes an
  32460. * animation when true:
  32461. *
  32462. * ```typescript
  32463. * transition((fromState, toState) =>
  32464. * {
  32465. * return fromState == "off" && toState == "on";
  32466. * },
  32467. * animate("1s 0s"))
  32468. * ```
  32469. *
  32470. * ### Animating to the final state
  32471. *
  32472. * If the final step in a transition is a call to `animate()` that uses a timing value
  32473. * with no style data, that step is automatically considered the final animation arc,
  32474. * for the element to reach the final state. Angular automatically adds or removes
  32475. * CSS styles to ensure that the element is in the correct final state.
  32476. *
  32477. * The following example defines a transition that starts by hiding the element,
  32478. * then makes sure that it animates properly to whatever state is currently active for trigger:
  32479. *
  32480. * ```typescript
  32481. * transition("void => *", [
  32482. * style({ opacity: 0 }),
  32483. * animate(500)
  32484. * ])
  32485. * ```
  32486. * ### Boolean value matching
  32487. * If a trigger binding value is a Boolean, it can be matched using a transition expression
  32488. * that compares true and false or 1 and 0. For example:
  32489. *
  32490. * ```
  32491. * // in the template
  32492. * <div [@openClose]="open ? true : false">...</div>
  32493. * // in the component metadata
  32494. * trigger('openClose', [
  32495. * state('true', style({ height: '*' })),
  32496. * state('false', style({ height: '0px' })),
  32497. * transition('false <=> true', animate(500))
  32498. * ])
  32499. * ```
  32500. *
  32501. * @publicApi
  32502. **/
  32503. function transition(stateChangeExpr, steps, options = null) {
  32504. return { type: 1 /* Transition */, expr: stateChangeExpr, animation: steps, options };
  32505. }
  32506. /**
  32507. * Produces a reusable animation that can be invoked in another animation or sequence,
  32508. * by calling the `useAnimation()` function.
  32509. *
  32510. * @param steps One or more animation objects, as returned by the `animate()`
  32511. * or `sequence()` function, that form a transformation from one state to another.
  32512. * A sequence is used by default when you pass an array.
  32513. * @param options An options object that can contain a delay value for the start of the
  32514. * animation, and additional developer-defined parameters.
  32515. * Provided values for additional parameters are used as defaults,
  32516. * and override values can be passed to the caller on invocation.
  32517. * @returns An object that encapsulates the animation data.
  32518. *
  32519. * @usageNotes
  32520. * The following example defines a reusable animation, providing some default parameter
  32521. * values.
  32522. *
  32523. * ```typescript
  32524. * var fadeAnimation = animation([
  32525. * style({ opacity: '{{ start }}' }),
  32526. * animate('{{ time }}',
  32527. * style({ opacity: '{{ end }}'}))
  32528. * ],
  32529. * { params: { time: '1000ms', start: 0, end: 1 }});
  32530. * ```
  32531. *
  32532. * The following invokes the defined animation with a call to `useAnimation()`,
  32533. * passing in override parameter values.
  32534. *
  32535. * ```js
  32536. * useAnimation(fadeAnimation, {
  32537. * params: {
  32538. * time: '2s',
  32539. * start: 1,
  32540. * end: 0
  32541. * }
  32542. * })
  32543. * ```
  32544. *
  32545. * If any of the passed-in parameter values are missing from this call,
  32546. * the default values are used. If one or more parameter values are missing before a step is
  32547. * animated, `useAnimation()` throws an error.
  32548. *
  32549. * @publicApi
  32550. */
  32551. function animation(steps, options = null) {
  32552. return { type: 8 /* Reference */, animation: steps, options };
  32553. }
  32554. /**
  32555. * Executes a queried inner animation element within an animation sequence.
  32556. *
  32557. * @param options An options object that can contain a delay value for the start of the
  32558. * animation, and additional override values for developer-defined parameters.
  32559. * @return An object that encapsulates the child animation data.
  32560. *
  32561. * @usageNotes
  32562. * Each time an animation is triggered in Angular, the parent animation
  32563. * has priority and any child animations are blocked. In order
  32564. * for a child animation to run, the parent animation must query each of the elements
  32565. * containing child animations, and run them using this function.
  32566. *
  32567. * Note that this feature is designed to be used with `query()` and it will only work
  32568. * with animations that are assigned using the Angular animation library. CSS keyframes
  32569. * and transitions are not handled by this API.
  32570. *
  32571. * @publicApi
  32572. */
  32573. function animateChild(options = null) {
  32574. return { type: 9 /* AnimateChild */, options };
  32575. }
  32576. /**
  32577. * Starts a reusable animation that is created using the `animation()` function.
  32578. *
  32579. * @param animation The reusable animation to start.
  32580. * @param options An options object that can contain a delay value for the start of
  32581. * the animation, and additional override values for developer-defined parameters.
  32582. * @return An object that contains the animation parameters.
  32583. *
  32584. * @publicApi
  32585. */
  32586. function useAnimation(animation, options = null) {
  32587. return { type: 10 /* AnimateRef */, animation, options };
  32588. }
  32589. /**
  32590. * Finds one or more inner elements within the current element that is
  32591. * being animated within a sequence. Use with `animate()`.
  32592. *
  32593. * @param selector The element to query, or a set of elements that contain Angular-specific
  32594. * characteristics, specified with one or more of the following tokens.
  32595. * - `query(":enter")` or `query(":leave")` : Query for newly inserted/removed elements.
  32596. * - `query(":animating")` : Query all currently animating elements.
  32597. * - `query("@triggerName")` : Query elements that contain an animation trigger.
  32598. * - `query("@*")` : Query all elements that contain an animation triggers.
  32599. * - `query(":self")` : Include the current element into the animation sequence.
  32600. *
  32601. * @param animation One or more animation steps to apply to the queried element or elements.
  32602. * An array is treated as an animation sequence.
  32603. * @param options An options object. Use the 'limit' field to limit the total number of
  32604. * items to collect.
  32605. * @return An object that encapsulates the query data.
  32606. *
  32607. * @usageNotes
  32608. * Tokens can be merged into a combined query selector string. For example:
  32609. *
  32610. * ```typescript
  32611. * query(':self, .record:enter, .record:leave, @subTrigger', [...])
  32612. * ```
  32613. *
  32614. * The `query()` function collects multiple elements and works internally by using
  32615. * `element.querySelectorAll`. Use the `limit` field of an options object to limit
  32616. * the total number of items to be collected. For example:
  32617. *
  32618. * ```js
  32619. * query('div', [
  32620. * animate(...),
  32621. * animate(...)
  32622. * ], { limit: 1 })
  32623. * ```
  32624. *
  32625. * By default, throws an error when zero items are found. Set the
  32626. * `optional` flag to ignore this error. For example:
  32627. *
  32628. * ```js
  32629. * query('.some-element-that-may-not-be-there', [
  32630. * animate(...),
  32631. * animate(...)
  32632. * ], { optional: true })
  32633. * ```
  32634. *
  32635. * ### Usage Example
  32636. *
  32637. * The following example queries for inner elements and animates them
  32638. * individually using `animate()`.
  32639. *
  32640. * ```typescript
  32641. * @Component({
  32642. * selector: 'inner',
  32643. * template: `
  32644. * <div [@queryAnimation]="exp">
  32645. * <h1>Title</h1>
  32646. * <div class="content">
  32647. * Blah blah blah
  32648. * </div>
  32649. * </div>
  32650. * `,
  32651. * animations: [
  32652. * trigger('queryAnimation', [
  32653. * transition('* => goAnimate', [
  32654. * // hide the inner elements
  32655. * query('h1', style({ opacity: 0 })),
  32656. * query('.content', style({ opacity: 0 })),
  32657. *
  32658. * // animate the inner elements in, one by one
  32659. * query('h1', animate(1000, style({ opacity: 1 }))),
  32660. * query('.content', animate(1000, style({ opacity: 1 }))),
  32661. * ])
  32662. * ])
  32663. * ]
  32664. * })
  32665. * class Cmp {
  32666. * exp = '';
  32667. *
  32668. * goAnimate() {
  32669. * this.exp = 'goAnimate';
  32670. * }
  32671. * }
  32672. * ```
  32673. *
  32674. * @publicApi
  32675. */
  32676. function query(selector, animation, options = null) {
  32677. return { type: 11 /* Query */, selector, animation, options };
  32678. }
  32679. /**
  32680. * Use within an animation `query()` call to issue a timing gap after
  32681. * each queried item is animated.
  32682. *
  32683. * @param timings A delay value.
  32684. * @param animation One ore more animation steps.
  32685. * @returns An object that encapsulates the stagger data.
  32686. *
  32687. * @usageNotes
  32688. * In the following example, a container element wraps a list of items stamped out
  32689. * by an `ngFor`. The container element contains an animation trigger that will later be set
  32690. * to query for each of the inner items.
  32691. *
  32692. * Each time items are added, the opacity fade-in animation runs,
  32693. * and each removed item is faded out.
  32694. * When either of these animations occur, the stagger effect is
  32695. * applied after each item's animation is started.
  32696. *
  32697. * ```html
  32698. * <!-- list.component.html -->
  32699. * <button (click)="toggle()">Show / Hide Items</button>
  32700. * <hr />
  32701. * <div [@listAnimation]="items.length">
  32702. * <div *ngFor="let item of items">
  32703. * {{ item }}
  32704. * </div>
  32705. * </div>
  32706. * ```
  32707. *
  32708. * Here is the component code:
  32709. *
  32710. * ```typescript
  32711. * import {trigger, transition, style, animate, query, stagger} from '@angular/animations';
  32712. * @Component({
  32713. * templateUrl: 'list.component.html',
  32714. * animations: [
  32715. * trigger('listAnimation', [
  32716. * ...
  32717. * ])
  32718. * ]
  32719. * })
  32720. * class ListComponent {
  32721. * items = [];
  32722. *
  32723. * showItems() {
  32724. * this.items = [0,1,2,3,4];
  32725. * }
  32726. *
  32727. * hideItems() {
  32728. * this.items = [];
  32729. * }
  32730. *
  32731. * toggle() {
  32732. * this.items.length ? this.hideItems() : this.showItems();
  32733. * }
  32734. * }
  32735. * ```
  32736. *
  32737. * Here is the animation trigger code:
  32738. *
  32739. * ```typescript
  32740. * trigger('listAnimation', [
  32741. * transition('* => *', [ // each time the binding value changes
  32742. * query(':leave', [
  32743. * stagger(100, [
  32744. * animate('0.5s', style({ opacity: 0 }))
  32745. * ])
  32746. * ]),
  32747. * query(':enter', [
  32748. * style({ opacity: 0 }),
  32749. * stagger(100, [
  32750. * animate('0.5s', style({ opacity: 1 }))
  32751. * ])
  32752. * ])
  32753. * ])
  32754. * ])
  32755. * ```
  32756. *
  32757. * @publicApi
  32758. */
  32759. function stagger(timings, animation) {
  32760. return { type: 12 /* Stagger */, timings, animation };
  32761. }
  32762. /**
  32763. * @license
  32764. * Copyright Google LLC All Rights Reserved.
  32765. *
  32766. * Use of this source code is governed by an MIT-style license that can be
  32767. * found in the LICENSE file at https://angular.io/license
  32768. */
  32769. function scheduleMicroTask(cb) {
  32770. Promise.resolve(null).then(cb);
  32771. }
  32772. /**
  32773. * @license
  32774. * Copyright Google LLC All Rights Reserved.
  32775. *
  32776. * Use of this source code is governed by an MIT-style license that can be
  32777. * found in the LICENSE file at https://angular.io/license
  32778. */
  32779. /**
  32780. * An empty programmatic controller for reusable animations.
  32781. * Used internally when animations are disabled, to avoid
  32782. * checking for the null case when an animation player is expected.
  32783. *
  32784. * @see `animate()`
  32785. * @see `AnimationPlayer`
  32786. * @see `GroupPlayer`
  32787. *
  32788. * @publicApi
  32789. */
  32790. class NoopAnimationPlayer {
  32791. constructor(duration = 0, delay = 0) {
  32792. this._onDoneFns = [];
  32793. this._onStartFns = [];
  32794. this._onDestroyFns = [];
  32795. this._started = false;
  32796. this._destroyed = false;
  32797. this._finished = false;
  32798. this._position = 0;
  32799. this.parentPlayer = null;
  32800. this.totalTime = duration + delay;
  32801. }
  32802. _onFinish() {
  32803. if (!this._finished) {
  32804. this._finished = true;
  32805. this._onDoneFns.forEach(fn => fn());
  32806. this._onDoneFns = [];
  32807. }
  32808. }
  32809. onStart(fn) {
  32810. this._onStartFns.push(fn);
  32811. }
  32812. onDone(fn) {
  32813. this._onDoneFns.push(fn);
  32814. }
  32815. onDestroy(fn) {
  32816. this._onDestroyFns.push(fn);
  32817. }
  32818. hasStarted() {
  32819. return this._started;
  32820. }
  32821. init() { }
  32822. play() {
  32823. if (!this.hasStarted()) {
  32824. this._onStart();
  32825. this.triggerMicrotask();
  32826. }
  32827. this._started = true;
  32828. }
  32829. /** @internal */
  32830. triggerMicrotask() {
  32831. scheduleMicroTask(() => this._onFinish());
  32832. }
  32833. _onStart() {
  32834. this._onStartFns.forEach(fn => fn());
  32835. this._onStartFns = [];
  32836. }
  32837. pause() { }
  32838. restart() { }
  32839. finish() {
  32840. this._onFinish();
  32841. }
  32842. destroy() {
  32843. if (!this._destroyed) {
  32844. this._destroyed = true;
  32845. if (!this.hasStarted()) {
  32846. this._onStart();
  32847. }
  32848. this.finish();
  32849. this._onDestroyFns.forEach(fn => fn());
  32850. this._onDestroyFns = [];
  32851. }
  32852. }
  32853. reset() { }
  32854. setPosition(position) {
  32855. this._position = this.totalTime ? position * this.totalTime : 1;
  32856. }
  32857. getPosition() {
  32858. return this.totalTime ? this._position / this.totalTime : 1;
  32859. }
  32860. /** @internal */
  32861. triggerCallback(phaseName) {
  32862. const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
  32863. methods.forEach(fn => fn());
  32864. methods.length = 0;
  32865. }
  32866. }
  32867. /**
  32868. * @license
  32869. * Copyright Google LLC All Rights Reserved.
  32870. *
  32871. * Use of this source code is governed by an MIT-style license that can be
  32872. * found in the LICENSE file at https://angular.io/license
  32873. */
  32874. /**
  32875. * A programmatic controller for a group of reusable animations.
  32876. * Used internally to control animations.
  32877. *
  32878. * @see `AnimationPlayer`
  32879. * @see `{@link animations/group group()}`
  32880. *
  32881. */
  32882. class AnimationGroupPlayer {
  32883. constructor(_players) {
  32884. this._onDoneFns = [];
  32885. this._onStartFns = [];
  32886. this._finished = false;
  32887. this._started = false;
  32888. this._destroyed = false;
  32889. this._onDestroyFns = [];
  32890. this.parentPlayer = null;
  32891. this.totalTime = 0;
  32892. this.players = _players;
  32893. let doneCount = 0;
  32894. let destroyCount = 0;
  32895. let startCount = 0;
  32896. const total = this.players.length;
  32897. if (total == 0) {
  32898. scheduleMicroTask(() => this._onFinish());
  32899. }
  32900. else {
  32901. this.players.forEach(player => {
  32902. player.onDone(() => {
  32903. if (++doneCount == total) {
  32904. this._onFinish();
  32905. }
  32906. });
  32907. player.onDestroy(() => {
  32908. if (++destroyCount == total) {
  32909. this._onDestroy();
  32910. }
  32911. });
  32912. player.onStart(() => {
  32913. if (++startCount == total) {
  32914. this._onStart();
  32915. }
  32916. });
  32917. });
  32918. }
  32919. this.totalTime = this.players.reduce((time, player) => Math.max(time, player.totalTime), 0);
  32920. }
  32921. _onFinish() {
  32922. if (!this._finished) {
  32923. this._finished = true;
  32924. this._onDoneFns.forEach(fn => fn());
  32925. this._onDoneFns = [];
  32926. }
  32927. }
  32928. init() {
  32929. this.players.forEach(player => player.init());
  32930. }
  32931. onStart(fn) {
  32932. this._onStartFns.push(fn);
  32933. }
  32934. _onStart() {
  32935. if (!this.hasStarted()) {
  32936. this._started = true;
  32937. this._onStartFns.forEach(fn => fn());
  32938. this._onStartFns = [];
  32939. }
  32940. }
  32941. onDone(fn) {
  32942. this._onDoneFns.push(fn);
  32943. }
  32944. onDestroy(fn) {
  32945. this._onDestroyFns.push(fn);
  32946. }
  32947. hasStarted() {
  32948. return this._started;
  32949. }
  32950. play() {
  32951. if (!this.parentPlayer) {
  32952. this.init();
  32953. }
  32954. this._onStart();
  32955. this.players.forEach(player => player.play());
  32956. }
  32957. pause() {
  32958. this.players.forEach(player => player.pause());
  32959. }
  32960. restart() {
  32961. this.players.forEach(player => player.restart());
  32962. }
  32963. finish() {
  32964. this._onFinish();
  32965. this.players.forEach(player => player.finish());
  32966. }
  32967. destroy() {
  32968. this._onDestroy();
  32969. }
  32970. _onDestroy() {
  32971. if (!this._destroyed) {
  32972. this._destroyed = true;
  32973. this._onFinish();
  32974. this.players.forEach(player => player.destroy());
  32975. this._onDestroyFns.forEach(fn => fn());
  32976. this._onDestroyFns = [];
  32977. }
  32978. }
  32979. reset() {
  32980. this.players.forEach(player => player.reset());
  32981. this._destroyed = false;
  32982. this._finished = false;
  32983. this._started = false;
  32984. }
  32985. setPosition(p) {
  32986. const timeAtPosition = p * this.totalTime;
  32987. this.players.forEach(player => {
  32988. const position = player.totalTime ? Math.min(1, timeAtPosition / player.totalTime) : 1;
  32989. player.setPosition(position);
  32990. });
  32991. }
  32992. getPosition() {
  32993. const longestPlayer = this.players.reduce((longestSoFar, player) => {
  32994. const newPlayerIsLongest = longestSoFar === null || player.totalTime > longestSoFar.totalTime;
  32995. return newPlayerIsLongest ? player : longestSoFar;
  32996. }, null);
  32997. return longestPlayer != null ? longestPlayer.getPosition() : 0;
  32998. }
  32999. beforeDestroy() {
  33000. this.players.forEach(player => {
  33001. if (player.beforeDestroy) {
  33002. player.beforeDestroy();
  33003. }
  33004. });
  33005. }
  33006. /** @internal */
  33007. triggerCallback(phaseName) {
  33008. const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
  33009. methods.forEach(fn => fn());
  33010. methods.length = 0;
  33011. }
  33012. }
  33013. /**
  33014. * @license
  33015. * Copyright Google LLC All Rights Reserved.
  33016. *
  33017. * Use of this source code is governed by an MIT-style license that can be
  33018. * found in the LICENSE file at https://angular.io/license
  33019. */
  33020. const ɵPRE_STYLE = '!';
  33021. /**
  33022. * @license
  33023. * Copyright Google LLC All Rights Reserved.
  33024. *
  33025. * Use of this source code is governed by an MIT-style license that can be
  33026. * found in the LICENSE file at https://angular.io/license
  33027. */
  33028. /**
  33029. * @license
  33030. * Copyright Google LLC All Rights Reserved.
  33031. *
  33032. * Use of this source code is governed by an MIT-style license that can be
  33033. * found in the LICENSE file at https://angular.io/license
  33034. */
  33035. /**
  33036. * @license
  33037. * Copyright Google LLC All Rights Reserved.
  33038. *
  33039. * Use of this source code is governed by an MIT-style license that can be
  33040. * found in the LICENSE file at https://angular.io/license
  33041. */
  33042. /**
  33043. * Generated bundle index. Do not edit.
  33044. */
  33045. //# sourceMappingURL=animations.js.map
  33046. /***/ }),
  33047. /***/ "R1ws":
  33048. /*!************************************************************************************!*\
  33049. !*** ./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/animations.js ***!
  33050. \************************************************************************************/
  33051. /*! exports provided: ANIMATION_MODULE_TYPE, BrowserAnimationsModule, NoopAnimationsModule, ɵAnimationRenderer, ɵAnimationRendererFactory, ɵBrowserAnimationBuilder, ɵBrowserAnimationFactory, ɵInjectableAnimationEngine, ɵangular_packages_platform_browser_animations_animations_a, ɵangular_packages_platform_browser_animations_animations_b, ɵangular_packages_platform_browser_animations_animations_c, ɵangular_packages_platform_browser_animations_animations_d, ɵangular_packages_platform_browser_animations_animations_e, ɵangular_packages_platform_browser_animations_animations_f */
  33052. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33053. "use strict";
  33054. __webpack_require__.r(__webpack_exports__);
  33055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANIMATION_MODULE_TYPE", function() { return ANIMATION_MODULE_TYPE; });
  33056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserAnimationsModule", function() { return BrowserAnimationsModule; });
  33057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoopAnimationsModule", function() { return NoopAnimationsModule; });
  33058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimationRenderer", function() { return AnimationRenderer; });
  33059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimationRendererFactory", function() { return AnimationRendererFactory; });
  33060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBrowserAnimationBuilder", function() { return BrowserAnimationBuilder; });
  33061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBrowserAnimationFactory", function() { return BrowserAnimationFactory; });
  33062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵInjectableAnimationEngine", function() { return InjectableAnimationEngine; });
  33063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_a", function() { return instantiateSupportedAnimationDriver; });
  33064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_b", function() { return instantiateDefaultStyleNormalizer; });
  33065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_c", function() { return instantiateRendererFactory; });
  33066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_d", function() { return BROWSER_ANIMATIONS_PROVIDERS; });
  33067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_e", function() { return BROWSER_NOOP_ANIMATIONS_PROVIDERS; });
  33068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_animations_animations_f", function() { return BaseAnimationRenderer; });
  33069. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  33070. /* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "jhN1");
  33071. /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/animations */ "R0Ic");
  33072. /* harmony import */ var _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/animations/browser */ "t9l1");
  33073. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
  33074. /**
  33075. * @license Angular v11.0.4
  33076. * (c) 2010-2020 Google LLC. https://angular.io/
  33077. * License: MIT
  33078. */
  33079. /**
  33080. * @license
  33081. * Copyright Google LLC All Rights Reserved.
  33082. *
  33083. * Use of this source code is governed by an MIT-style license that can be
  33084. * found in the LICENSE file at https://angular.io/license
  33085. */
  33086. class BrowserAnimationBuilder extends _angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationBuilder"] {
  33087. constructor(rootRenderer, doc) {
  33088. super();
  33089. this._nextAnimationId = 0;
  33090. const typeData = { id: '0', encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None, styles: [], data: { animation: [] } };
  33091. this._renderer = rootRenderer.createRenderer(doc.body, typeData);
  33092. }
  33093. build(animation) {
  33094. const id = this._nextAnimationId.toString();
  33095. this._nextAnimationId++;
  33096. const entry = Array.isArray(animation) ? Object(_angular_animations__WEBPACK_IMPORTED_MODULE_2__["sequence"])(animation) : animation;
  33097. issueAnimationCommand(this._renderer, null, id, 'register', [entry]);
  33098. return new BrowserAnimationFactory(id, this._renderer);
  33099. }
  33100. }
  33101. BrowserAnimationBuilder.ɵfac = function BrowserAnimationBuilder_Factory(t) { return new (t || BrowserAnimationBuilder)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"])); };
  33102. BrowserAnimationBuilder.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: BrowserAnimationBuilder, factory: BrowserAnimationBuilder.ɵfac });
  33103. BrowserAnimationBuilder.ctorParameters = () => [
  33104. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] },
  33105. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"],] }] }
  33106. ];
  33107. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserAnimationBuilder, [{
  33108. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  33109. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] }, { type: undefined, decorators: [{
  33110. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  33111. args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
  33112. }] }]; }, null); })();
  33113. class BrowserAnimationFactory extends _angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationFactory"] {
  33114. constructor(_id, _renderer) {
  33115. super();
  33116. this._id = _id;
  33117. this._renderer = _renderer;
  33118. }
  33119. create(element, options) {
  33120. return new RendererAnimationPlayer(this._id, element, options || {}, this._renderer);
  33121. }
  33122. }
  33123. class RendererAnimationPlayer {
  33124. constructor(id, element, options, _renderer) {
  33125. this.id = id;
  33126. this.element = element;
  33127. this._renderer = _renderer;
  33128. this.parentPlayer = null;
  33129. this._started = false;
  33130. this.totalTime = 0;
  33131. this._command('create', options);
  33132. }
  33133. _listen(eventName, callback) {
  33134. return this._renderer.listen(this.element, `@@${this.id}:${eventName}`, callback);
  33135. }
  33136. _command(command, ...args) {
  33137. return issueAnimationCommand(this._renderer, this.element, this.id, command, args);
  33138. }
  33139. onDone(fn) {
  33140. this._listen('done', fn);
  33141. }
  33142. onStart(fn) {
  33143. this._listen('start', fn);
  33144. }
  33145. onDestroy(fn) {
  33146. this._listen('destroy', fn);
  33147. }
  33148. init() {
  33149. this._command('init');
  33150. }
  33151. hasStarted() {
  33152. return this._started;
  33153. }
  33154. play() {
  33155. this._command('play');
  33156. this._started = true;
  33157. }
  33158. pause() {
  33159. this._command('pause');
  33160. }
  33161. restart() {
  33162. this._command('restart');
  33163. }
  33164. finish() {
  33165. this._command('finish');
  33166. }
  33167. destroy() {
  33168. this._command('destroy');
  33169. }
  33170. reset() {
  33171. this._command('reset');
  33172. }
  33173. setPosition(p) {
  33174. this._command('setPosition', p);
  33175. }
  33176. getPosition() {
  33177. var _a, _b;
  33178. return (_b = (_a = this._renderer.engine.players[+this.id]) === null || _a === void 0 ? void 0 : _a.getPosition()) !== null && _b !== void 0 ? _b : 0;
  33179. }
  33180. }
  33181. function issueAnimationCommand(renderer, element, id, command, args) {
  33182. return renderer.setProperty(element, `@@${id}:${command}`, args);
  33183. }
  33184. const ANIMATION_PREFIX = '@';
  33185. const DISABLE_ANIMATIONS_FLAG = '@.disabled';
  33186. class AnimationRendererFactory {
  33187. constructor(delegate, engine, _zone) {
  33188. this.delegate = delegate;
  33189. this.engine = engine;
  33190. this._zone = _zone;
  33191. this._currentId = 0;
  33192. this._microtaskId = 1;
  33193. this._animationCallbacksBuffer = [];
  33194. this._rendererCache = new Map();
  33195. this._cdRecurDepth = 0;
  33196. this.promise = Promise.resolve(0);
  33197. engine.onRemovalComplete = (element, delegate) => {
  33198. // Note: if an component element has a leave animation, and the component
  33199. // a host leave animation, the view engine will call `removeChild` for the parent
  33200. // component renderer as well as for the child component renderer.
  33201. // Therefore, we need to check if we already removed the element.
  33202. if (delegate && delegate.parentNode(element)) {
  33203. delegate.removeChild(element.parentNode, element);
  33204. }
  33205. };
  33206. }
  33207. createRenderer(hostElement, type) {
  33208. const EMPTY_NAMESPACE_ID = '';
  33209. // cache the delegates to find out which cached delegate can
  33210. // be used by which cached renderer
  33211. const delegate = this.delegate.createRenderer(hostElement, type);
  33212. if (!hostElement || !type || !type.data || !type.data['animation']) {
  33213. let renderer = this._rendererCache.get(delegate);
  33214. if (!renderer) {
  33215. renderer = new BaseAnimationRenderer(EMPTY_NAMESPACE_ID, delegate, this.engine);
  33216. // only cache this result when the base renderer is used
  33217. this._rendererCache.set(delegate, renderer);
  33218. }
  33219. return renderer;
  33220. }
  33221. const componentId = type.id;
  33222. const namespaceId = type.id + '-' + this._currentId;
  33223. this._currentId++;
  33224. this.engine.register(namespaceId, hostElement);
  33225. const registerTrigger = (trigger) => {
  33226. if (Array.isArray(trigger)) {
  33227. trigger.forEach(registerTrigger);
  33228. }
  33229. else {
  33230. this.engine.registerTrigger(componentId, namespaceId, hostElement, trigger.name, trigger);
  33231. }
  33232. };
  33233. const animationTriggers = type.data['animation'];
  33234. animationTriggers.forEach(registerTrigger);
  33235. return new AnimationRenderer(this, namespaceId, delegate, this.engine);
  33236. }
  33237. begin() {
  33238. this._cdRecurDepth++;
  33239. if (this.delegate.begin) {
  33240. this.delegate.begin();
  33241. }
  33242. }
  33243. _scheduleCountTask() {
  33244. // always use promise to schedule microtask instead of use Zone
  33245. this.promise.then(() => {
  33246. this._microtaskId++;
  33247. });
  33248. }
  33249. /** @internal */
  33250. scheduleListenerCallback(count, fn, data) {
  33251. if (count >= 0 && count < this._microtaskId) {
  33252. this._zone.run(() => fn(data));
  33253. return;
  33254. }
  33255. if (this._animationCallbacksBuffer.length == 0) {
  33256. Promise.resolve(null).then(() => {
  33257. this._zone.run(() => {
  33258. this._animationCallbacksBuffer.forEach(tuple => {
  33259. const [fn, data] = tuple;
  33260. fn(data);
  33261. });
  33262. this._animationCallbacksBuffer = [];
  33263. });
  33264. });
  33265. }
  33266. this._animationCallbacksBuffer.push([fn, data]);
  33267. }
  33268. end() {
  33269. this._cdRecurDepth--;
  33270. // this is to prevent animations from running twice when an inner
  33271. // component does CD when a parent component instead has inserted it
  33272. if (this._cdRecurDepth == 0) {
  33273. this._zone.runOutsideAngular(() => {
  33274. this._scheduleCountTask();
  33275. this.engine.flush(this._microtaskId);
  33276. });
  33277. }
  33278. if (this.delegate.end) {
  33279. this.delegate.end();
  33280. }
  33281. }
  33282. whenRenderingDone() {
  33283. return this.engine.whenRenderingDone();
  33284. }
  33285. }
  33286. AnimationRendererFactory.ɵfac = function AnimationRendererFactory_Factory(t) { return new (t || AnimationRendererFactory)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"])); };
  33287. AnimationRendererFactory.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: AnimationRendererFactory, factory: AnimationRendererFactory.ɵfac });
  33288. AnimationRendererFactory.ctorParameters = () => [
  33289. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] },
  33290. { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"] },
  33291. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }
  33292. ];
  33293. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AnimationRendererFactory, [{
  33294. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  33295. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }]; }, null); })();
  33296. class BaseAnimationRenderer {
  33297. constructor(namespaceId, delegate, engine) {
  33298. this.namespaceId = namespaceId;
  33299. this.delegate = delegate;
  33300. this.engine = engine;
  33301. this.destroyNode = this.delegate.destroyNode ? (n) => delegate.destroyNode(n) : null;
  33302. }
  33303. get data() {
  33304. return this.delegate.data;
  33305. }
  33306. destroy() {
  33307. this.engine.destroy(this.namespaceId, this.delegate);
  33308. this.delegate.destroy();
  33309. }
  33310. createElement(name, namespace) {
  33311. return this.delegate.createElement(name, namespace);
  33312. }
  33313. createComment(value) {
  33314. return this.delegate.createComment(value);
  33315. }
  33316. createText(value) {
  33317. return this.delegate.createText(value);
  33318. }
  33319. appendChild(parent, newChild) {
  33320. this.delegate.appendChild(parent, newChild);
  33321. this.engine.onInsert(this.namespaceId, newChild, parent, false);
  33322. }
  33323. insertBefore(parent, newChild, refChild, isMove = true) {
  33324. this.delegate.insertBefore(parent, newChild, refChild);
  33325. // If `isMove` true than we should animate this insert.
  33326. this.engine.onInsert(this.namespaceId, newChild, parent, isMove);
  33327. }
  33328. removeChild(parent, oldChild, isHostElement) {
  33329. this.engine.onRemove(this.namespaceId, oldChild, this.delegate, isHostElement);
  33330. }
  33331. selectRootElement(selectorOrNode, preserveContent) {
  33332. return this.delegate.selectRootElement(selectorOrNode, preserveContent);
  33333. }
  33334. parentNode(node) {
  33335. return this.delegate.parentNode(node);
  33336. }
  33337. nextSibling(node) {
  33338. return this.delegate.nextSibling(node);
  33339. }
  33340. setAttribute(el, name, value, namespace) {
  33341. this.delegate.setAttribute(el, name, value, namespace);
  33342. }
  33343. removeAttribute(el, name, namespace) {
  33344. this.delegate.removeAttribute(el, name, namespace);
  33345. }
  33346. addClass(el, name) {
  33347. this.delegate.addClass(el, name);
  33348. }
  33349. removeClass(el, name) {
  33350. this.delegate.removeClass(el, name);
  33351. }
  33352. setStyle(el, style, value, flags) {
  33353. this.delegate.setStyle(el, style, value, flags);
  33354. }
  33355. removeStyle(el, style, flags) {
  33356. this.delegate.removeStyle(el, style, flags);
  33357. }
  33358. setProperty(el, name, value) {
  33359. if (name.charAt(0) == ANIMATION_PREFIX && name == DISABLE_ANIMATIONS_FLAG) {
  33360. this.disableAnimations(el, !!value);
  33361. }
  33362. else {
  33363. this.delegate.setProperty(el, name, value);
  33364. }
  33365. }
  33366. setValue(node, value) {
  33367. this.delegate.setValue(node, value);
  33368. }
  33369. listen(target, eventName, callback) {
  33370. return this.delegate.listen(target, eventName, callback);
  33371. }
  33372. disableAnimations(element, value) {
  33373. this.engine.disableAnimations(element, value);
  33374. }
  33375. }
  33376. class AnimationRenderer extends BaseAnimationRenderer {
  33377. constructor(factory, namespaceId, delegate, engine) {
  33378. super(namespaceId, delegate, engine);
  33379. this.factory = factory;
  33380. this.namespaceId = namespaceId;
  33381. }
  33382. setProperty(el, name, value) {
  33383. if (name.charAt(0) == ANIMATION_PREFIX) {
  33384. if (name.charAt(1) == '.' && name == DISABLE_ANIMATIONS_FLAG) {
  33385. value = value === undefined ? true : !!value;
  33386. this.disableAnimations(el, value);
  33387. }
  33388. else {
  33389. this.engine.process(this.namespaceId, el, name.substr(1), value);
  33390. }
  33391. }
  33392. else {
  33393. this.delegate.setProperty(el, name, value);
  33394. }
  33395. }
  33396. listen(target, eventName, callback) {
  33397. if (eventName.charAt(0) == ANIMATION_PREFIX) {
  33398. const element = resolveElementFromTarget(target);
  33399. let name = eventName.substr(1);
  33400. let phase = '';
  33401. // @listener.phase is for trigger animation callbacks
  33402. // @@listener is for animation builder callbacks
  33403. if (name.charAt(0) != ANIMATION_PREFIX) {
  33404. [name, phase] = parseTriggerCallbackName(name);
  33405. }
  33406. return this.engine.listen(this.namespaceId, element, name, phase, event => {
  33407. const countId = event['_data'] || -1;
  33408. this.factory.scheduleListenerCallback(countId, callback, event);
  33409. });
  33410. }
  33411. return this.delegate.listen(target, eventName, callback);
  33412. }
  33413. }
  33414. function resolveElementFromTarget(target) {
  33415. switch (target) {
  33416. case 'body':
  33417. return document.body;
  33418. case 'document':
  33419. return document;
  33420. case 'window':
  33421. return window;
  33422. default:
  33423. return target;
  33424. }
  33425. }
  33426. function parseTriggerCallbackName(triggerName) {
  33427. const dotIndex = triggerName.indexOf('.');
  33428. const trigger = triggerName.substring(0, dotIndex);
  33429. const phase = triggerName.substr(dotIndex + 1);
  33430. return [trigger, phase];
  33431. }
  33432. /**
  33433. * @license
  33434. * Copyright Google LLC All Rights Reserved.
  33435. *
  33436. * Use of this source code is governed by an MIT-style license that can be
  33437. * found in the LICENSE file at https://angular.io/license
  33438. */
  33439. class InjectableAnimationEngine extends _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"] {
  33440. constructor(doc, driver, normalizer) {
  33441. super(doc.body, driver, normalizer);
  33442. }
  33443. }
  33444. InjectableAnimationEngine.ɵfac = function InjectableAnimationEngine_Factory(t) { return new (t || InjectableAnimationEngine)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"])); };
  33445. InjectableAnimationEngine.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: InjectableAnimationEngine, factory: InjectableAnimationEngine.ɵfac });
  33446. InjectableAnimationEngine.ctorParameters = () => [
  33447. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"],] }] },
  33448. { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"] },
  33449. { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"] }
  33450. ];
  33451. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](InjectableAnimationEngine, [{
  33452. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  33453. }], function () { return [{ type: undefined, decorators: [{
  33454. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  33455. args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
  33456. }] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"] }, { type: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"] }]; }, null); })();
  33457. function instantiateSupportedAnimationDriver() {
  33458. return Object(_angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵsupportsWebAnimations"])() ? new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵWebAnimationsDriver"]() : new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵCssKeyframesDriver"]();
  33459. }
  33460. function instantiateDefaultStyleNormalizer() {
  33461. return new _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵWebAnimationsStyleNormalizer"]();
  33462. }
  33463. function instantiateRendererFactory(renderer, engine, zone) {
  33464. return new AnimationRendererFactory(renderer, engine, zone);
  33465. }
  33466. /**
  33467. * @publicApi
  33468. */
  33469. const ANIMATION_MODULE_TYPE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('AnimationModuleType');
  33470. const SHARED_ANIMATION_PROVIDERS = [
  33471. { provide: _angular_animations__WEBPACK_IMPORTED_MODULE_2__["AnimationBuilder"], useClass: BrowserAnimationBuilder },
  33472. { provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationStyleNormalizer"], useFactory: instantiateDefaultStyleNormalizer },
  33473. { provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"], useClass: InjectableAnimationEngine }, {
  33474. provide: _angular_core__WEBPACK_IMPORTED_MODULE_0__["RendererFactory2"],
  33475. useFactory: instantiateRendererFactory,
  33476. deps: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["ɵDomRendererFactory2"], _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵAnimationEngine"], _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]]
  33477. }
  33478. ];
  33479. /**
  33480. * Separate providers from the actual module so that we can do a local modification in Google3 to
  33481. * include them in the BrowserModule.
  33482. */
  33483. const BROWSER_ANIMATIONS_PROVIDERS = [
  33484. { provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"], useFactory: instantiateSupportedAnimationDriver },
  33485. { provide: ANIMATION_MODULE_TYPE, useValue: 'BrowserAnimations' }, ...SHARED_ANIMATION_PROVIDERS
  33486. ];
  33487. /**
  33488. * Separate providers from the actual module so that we can do a local modification in Google3 to
  33489. * include them in the BrowserTestingModule.
  33490. */
  33491. const BROWSER_NOOP_ANIMATIONS_PROVIDERS = [
  33492. { provide: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["AnimationDriver"], useClass: _angular_animations_browser__WEBPACK_IMPORTED_MODULE_3__["ɵNoopAnimationDriver"] },
  33493. { provide: ANIMATION_MODULE_TYPE, useValue: 'NoopAnimations' }, ...SHARED_ANIMATION_PROVIDERS
  33494. ];
  33495. /**
  33496. * @license
  33497. * Copyright Google LLC All Rights Reserved.
  33498. *
  33499. * Use of this source code is governed by an MIT-style license that can be
  33500. * found in the LICENSE file at https://angular.io/license
  33501. */
  33502. /**
  33503. * Exports `BrowserModule` with additional [dependency-injection providers](guide/glossary#provider)
  33504. * for use with animations. See [Animations](guide/animations).
  33505. * @publicApi
  33506. */
  33507. class BrowserAnimationsModule {
  33508. }
  33509. BrowserAnimationsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: BrowserAnimationsModule });
  33510. BrowserAnimationsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function BrowserAnimationsModule_Factory(t) { return new (t || BrowserAnimationsModule)(); }, providers: BROWSER_ANIMATIONS_PROVIDERS, imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]] });
  33511. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](BrowserAnimationsModule, { exports: function () { return [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]]; } }); })();
  33512. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserAnimationsModule, [{
  33513. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  33514. args: [{
  33515. exports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]],
  33516. providers: BROWSER_ANIMATIONS_PROVIDERS
  33517. }]
  33518. }], null, null); })();
  33519. /**
  33520. * A null player that must be imported to allow disabling of animations.
  33521. * @publicApi
  33522. */
  33523. class NoopAnimationsModule {
  33524. }
  33525. NoopAnimationsModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NoopAnimationsModule });
  33526. NoopAnimationsModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NoopAnimationsModule_Factory(t) { return new (t || NoopAnimationsModule)(); }, providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS, imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]] });
  33527. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NoopAnimationsModule, { exports: function () { return [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]]; } }); })();
  33528. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NoopAnimationsModule, [{
  33529. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  33530. args: [{
  33531. exports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["BrowserModule"]],
  33532. providers: BROWSER_NOOP_ANIMATIONS_PROVIDERS
  33533. }]
  33534. }], null, null); })();
  33535. /**
  33536. * @license
  33537. * Copyright Google LLC All Rights Reserved.
  33538. *
  33539. * Use of this source code is governed by an MIT-style license that can be
  33540. * found in the LICENSE file at https://angular.io/license
  33541. */
  33542. /**
  33543. * @license
  33544. * Copyright Google LLC All Rights Reserved.
  33545. *
  33546. * Use of this source code is governed by an MIT-style license that can be
  33547. * found in the LICENSE file at https://angular.io/license
  33548. */
  33549. /**
  33550. * @license
  33551. * Copyright Google LLC All Rights Reserved.
  33552. *
  33553. * Use of this source code is governed by an MIT-style license that can be
  33554. * found in the LICENSE file at https://angular.io/license
  33555. */
  33556. /**
  33557. * @license
  33558. * Copyright Google LLC All Rights Reserved.
  33559. *
  33560. * Use of this source code is governed by an MIT-style license that can be
  33561. * found in the LICENSE file at https://angular.io/license
  33562. */
  33563. /**
  33564. * Generated bundle index. Do not edit.
  33565. */
  33566. //# sourceMappingURL=animations.js.map
  33567. /***/ }),
  33568. /***/ "RUbi":
  33569. /*!************************************************************************!*\
  33570. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AsapScheduler.js ***!
  33571. \************************************************************************/
  33572. /*! exports provided: AsapScheduler */
  33573. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33574. "use strict";
  33575. __webpack_require__.r(__webpack_exports__);
  33576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsapScheduler", function() { return AsapScheduler; });
  33577. /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncScheduler */ "IjjT");
  33578. class AsapScheduler extends _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"] {
  33579. flush(action) {
  33580. this.active = true;
  33581. this.scheduled = undefined;
  33582. const { actions } = this;
  33583. let error;
  33584. let index = -1;
  33585. let count = actions.length;
  33586. action = action || actions.shift();
  33587. do {
  33588. if (error = action.execute(action.state, action.delay)) {
  33589. break;
  33590. }
  33591. } while (++index < count && (action = actions.shift()));
  33592. this.active = false;
  33593. if (error) {
  33594. while (++index < count && (action = actions.shift())) {
  33595. action.unsubscribe();
  33596. }
  33597. throw error;
  33598. }
  33599. }
  33600. }
  33601. //# sourceMappingURL=AsapScheduler.js.map
  33602. /***/ }),
  33603. /***/ "SeVD":
  33604. /*!*****************************************************************!*\
  33605. !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeTo.js ***!
  33606. \*****************************************************************/
  33607. /*! exports provided: subscribeTo */
  33608. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33609. "use strict";
  33610. __webpack_require__.r(__webpack_exports__);
  33611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeTo", function() { return subscribeTo; });
  33612. /* harmony import */ var _subscribeToArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./subscribeToArray */ "ngJS");
  33613. /* harmony import */ var _subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./subscribeToPromise */ "a7t3");
  33614. /* harmony import */ var _subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./subscribeToIterable */ "pLzU");
  33615. /* harmony import */ var _subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./subscribeToObservable */ "CRDf");
  33616. /* harmony import */ var _isArrayLike__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./isArrayLike */ "I55L");
  33617. /* harmony import */ var _isPromise__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./isPromise */ "c2HN");
  33618. /* harmony import */ var _isObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./isObject */ "XoHu");
  33619. /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../symbol/iterator */ "Lhse");
  33620. /* harmony import */ var _symbol_observable__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../symbol/observable */ "kJWO");
  33621. const subscribeTo = (result) => {
  33622. if (!!result && typeof result[_symbol_observable__WEBPACK_IMPORTED_MODULE_8__["observable"]] === 'function') {
  33623. return Object(_subscribeToObservable__WEBPACK_IMPORTED_MODULE_3__["subscribeToObservable"])(result);
  33624. }
  33625. else if (Object(_isArrayLike__WEBPACK_IMPORTED_MODULE_4__["isArrayLike"])(result)) {
  33626. return Object(_subscribeToArray__WEBPACK_IMPORTED_MODULE_0__["subscribeToArray"])(result);
  33627. }
  33628. else if (Object(_isPromise__WEBPACK_IMPORTED_MODULE_5__["isPromise"])(result)) {
  33629. return Object(_subscribeToPromise__WEBPACK_IMPORTED_MODULE_1__["subscribeToPromise"])(result);
  33630. }
  33631. else if (!!result && typeof result[_symbol_iterator__WEBPACK_IMPORTED_MODULE_7__["iterator"]] === 'function') {
  33632. return Object(_subscribeToIterable__WEBPACK_IMPORTED_MODULE_2__["subscribeToIterable"])(result);
  33633. }
  33634. else {
  33635. const value = Object(_isObject__WEBPACK_IMPORTED_MODULE_6__["isObject"])(result) ? 'an invalid object' : `'${result}'`;
  33636. const msg = `You provided ${value} where a stream was expected.`
  33637. + ' You can provide an Observable, Promise, Array, or Iterable.';
  33638. throw new TypeError(msg);
  33639. }
  33640. };
  33641. //# sourceMappingURL=subscribeTo.js.map
  33642. /***/ }),
  33643. /***/ "SpAZ":
  33644. /*!**************************************************************!*\
  33645. !*** ./node_modules/rxjs/_esm2015/internal/util/identity.js ***!
  33646. \**************************************************************/
  33647. /*! exports provided: identity */
  33648. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33649. "use strict";
  33650. __webpack_require__.r(__webpack_exports__);
  33651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return identity; });
  33652. function identity(x) {
  33653. return x;
  33654. }
  33655. //# sourceMappingURL=identity.js.map
  33656. /***/ }),
  33657. /***/ "SxV6":
  33658. /*!****************************************************************!*\
  33659. !*** ./node_modules/rxjs/_esm2015/internal/operators/first.js ***!
  33660. \****************************************************************/
  33661. /*! exports provided: first */
  33662. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  33663. "use strict";
  33664. __webpack_require__.r(__webpack_exports__);
  33665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "first", function() { return first; });
  33666. /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/EmptyError */ "sVev");
  33667. /* harmony import */ var _filter__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./filter */ "pLZG");
  33668. /* harmony import */ var _take__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./take */ "IzEk");
  33669. /* harmony import */ var _defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./defaultIfEmpty */ "xbPD");
  33670. /* harmony import */ var _throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./throwIfEmpty */ "XDbj");
  33671. /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../util/identity */ "SpAZ");
  33672. function first(predicate, defaultValue) {
  33673. const hasDefaultValue = arguments.length >= 2;
  33674. return (source) => source.pipe(predicate ? Object(_filter__WEBPACK_IMPORTED_MODULE_1__["filter"])((v, i) => predicate(v, i, source)) : _util_identity__WEBPACK_IMPORTED_MODULE_5__["identity"], Object(_take__WEBPACK_IMPORTED_MODULE_2__["take"])(1), hasDefaultValue ? Object(_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_3__["defaultIfEmpty"])(defaultValue) : Object(_throwIfEmpty__WEBPACK_IMPORTED_MODULE_4__["throwIfEmpty"])(() => new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]()));
  33675. }
  33676. //# sourceMappingURL=first.js.map
  33677. /***/ }),
  33678. /***/ "Texg":
  33679. /*!*******************************************!*\
  33680. !*** ./node_modules/dexie/dist/dexie.mjs ***!
  33681. \*******************************************/
  33682. /*! exports provided: default */
  33683. /***/ (function(__webpack_module__, __webpack_exports__, __webpack_require__) {
  33684. "use strict";
  33685. __webpack_require__.r(__webpack_exports__);
  33686. /*
  33687. * Dexie.js - a minimalistic wrapper for IndexedDB
  33688. * ===============================================
  33689. *
  33690. * By David Fahlander, david.fahlander@gmail.com
  33691. *
  33692. * Version 3.0.2, Fri Jul 31 2020
  33693. *
  33694. * http://dexie.org
  33695. *
  33696. * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/
  33697. */
  33698. var __assign = function() {
  33699. __assign = Object.assign || function __assign(t) {
  33700. for (var s, i = 1, n = arguments.length; i < n; i++) {
  33701. s = arguments[i];
  33702. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  33703. }
  33704. return t;
  33705. };
  33706. return __assign.apply(this, arguments);
  33707. };
  33708. function __spreadArrays() {
  33709. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  33710. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  33711. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  33712. r[k] = a[j];
  33713. return r;
  33714. }
  33715. var keys = Object.keys;
  33716. var isArray = Array.isArray;
  33717. var _global = typeof self !== 'undefined' ? self :
  33718. typeof window !== 'undefined' ? window :
  33719. global;
  33720. if (typeof Promise !== 'undefined' && !_global.Promise) {
  33721. _global.Promise = Promise;
  33722. }
  33723. function extend(obj, extension) {
  33724. if (typeof extension !== 'object')
  33725. return obj;
  33726. keys(extension).forEach(function (key) {
  33727. obj[key] = extension[key];
  33728. });
  33729. return obj;
  33730. }
  33731. var getProto = Object.getPrototypeOf;
  33732. var _hasOwn = {}.hasOwnProperty;
  33733. function hasOwn(obj, prop) {
  33734. return _hasOwn.call(obj, prop);
  33735. }
  33736. function props(proto, extension) {
  33737. if (typeof extension === 'function')
  33738. extension = extension(getProto(proto));
  33739. keys(extension).forEach(function (key) {
  33740. setProp(proto, key, extension[key]);
  33741. });
  33742. }
  33743. var defineProperty = Object.defineProperty;
  33744. function setProp(obj, prop, functionOrGetSet, options) {
  33745. defineProperty(obj, prop, extend(functionOrGetSet && hasOwn(functionOrGetSet, "get") && typeof functionOrGetSet.get === 'function' ?
  33746. { get: functionOrGetSet.get, set: functionOrGetSet.set, configurable: true } :
  33747. { value: functionOrGetSet, configurable: true, writable: true }, options));
  33748. }
  33749. function derive(Child) {
  33750. return {
  33751. from: function (Parent) {
  33752. Child.prototype = Object.create(Parent.prototype);
  33753. setProp(Child.prototype, "constructor", Child);
  33754. return {
  33755. extend: props.bind(null, Child.prototype)
  33756. };
  33757. }
  33758. };
  33759. }
  33760. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  33761. function getPropertyDescriptor(obj, prop) {
  33762. var pd = getOwnPropertyDescriptor(obj, prop);
  33763. var proto;
  33764. return pd || (proto = getProto(obj)) && getPropertyDescriptor(proto, prop);
  33765. }
  33766. var _slice = [].slice;
  33767. function slice(args, start, end) {
  33768. return _slice.call(args, start, end);
  33769. }
  33770. function override(origFunc, overridedFactory) {
  33771. return overridedFactory(origFunc);
  33772. }
  33773. function assert(b) {
  33774. if (!b)
  33775. throw new Error("Assertion Failed");
  33776. }
  33777. function asap(fn) {
  33778. if (_global.setImmediate)
  33779. setImmediate(fn);
  33780. else
  33781. setTimeout(fn, 0);
  33782. }
  33783. function arrayToObject(array, extractor) {
  33784. return array.reduce(function (result, item, i) {
  33785. var nameAndValue = extractor(item, i);
  33786. if (nameAndValue)
  33787. result[nameAndValue[0]] = nameAndValue[1];
  33788. return result;
  33789. }, {});
  33790. }
  33791. function tryCatch(fn, onerror, args) {
  33792. try {
  33793. fn.apply(null, args);
  33794. }
  33795. catch (ex) {
  33796. onerror && onerror(ex);
  33797. }
  33798. }
  33799. function getByKeyPath(obj, keyPath) {
  33800. if (hasOwn(obj, keyPath))
  33801. return obj[keyPath];
  33802. if (!keyPath)
  33803. return obj;
  33804. if (typeof keyPath !== 'string') {
  33805. var rv = [];
  33806. for (var i = 0, l = keyPath.length; i < l; ++i) {
  33807. var val = getByKeyPath(obj, keyPath[i]);
  33808. rv.push(val);
  33809. }
  33810. return rv;
  33811. }
  33812. var period = keyPath.indexOf('.');
  33813. if (period !== -1) {
  33814. var innerObj = obj[keyPath.substr(0, period)];
  33815. return innerObj === undefined ? undefined : getByKeyPath(innerObj, keyPath.substr(period + 1));
  33816. }
  33817. return undefined;
  33818. }
  33819. function setByKeyPath(obj, keyPath, value) {
  33820. if (!obj || keyPath === undefined)
  33821. return;
  33822. if ('isFrozen' in Object && Object.isFrozen(obj))
  33823. return;
  33824. if (typeof keyPath !== 'string' && 'length' in keyPath) {
  33825. assert(typeof value !== 'string' && 'length' in value);
  33826. for (var i = 0, l = keyPath.length; i < l; ++i) {
  33827. setByKeyPath(obj, keyPath[i], value[i]);
  33828. }
  33829. }
  33830. else {
  33831. var period = keyPath.indexOf('.');
  33832. if (period !== -1) {
  33833. var currentKeyPath = keyPath.substr(0, period);
  33834. var remainingKeyPath = keyPath.substr(period + 1);
  33835. if (remainingKeyPath === "")
  33836. if (value === undefined) {
  33837. if (isArray(obj) && !isNaN(parseInt(currentKeyPath)))
  33838. obj.splice(currentKeyPath, 1);
  33839. else
  33840. delete obj[currentKeyPath];
  33841. }
  33842. else
  33843. obj[currentKeyPath] = value;
  33844. else {
  33845. var innerObj = obj[currentKeyPath];
  33846. if (!innerObj)
  33847. innerObj = (obj[currentKeyPath] = {});
  33848. setByKeyPath(innerObj, remainingKeyPath, value);
  33849. }
  33850. }
  33851. else {
  33852. if (value === undefined) {
  33853. if (isArray(obj) && !isNaN(parseInt(keyPath)))
  33854. obj.splice(keyPath, 1);
  33855. else
  33856. delete obj[keyPath];
  33857. }
  33858. else
  33859. obj[keyPath] = value;
  33860. }
  33861. }
  33862. }
  33863. function delByKeyPath(obj, keyPath) {
  33864. if (typeof keyPath === 'string')
  33865. setByKeyPath(obj, keyPath, undefined);
  33866. else if ('length' in keyPath)
  33867. [].map.call(keyPath, function (kp) {
  33868. setByKeyPath(obj, kp, undefined);
  33869. });
  33870. }
  33871. function shallowClone(obj) {
  33872. var rv = {};
  33873. for (var m in obj) {
  33874. if (hasOwn(obj, m))
  33875. rv[m] = obj[m];
  33876. }
  33877. return rv;
  33878. }
  33879. var concat = [].concat;
  33880. function flatten(a) {
  33881. return concat.apply([], a);
  33882. }
  33883. var intrinsicTypeNames = "Boolean,String,Date,RegExp,Blob,File,FileList,ArrayBuffer,DataView,Uint8ClampedArray,ImageData,Map,Set"
  33884. .split(',').concat(flatten([8, 16, 32, 64].map(function (num) { return ["Int", "Uint", "Float"].map(function (t) { return t + num + "Array"; }); }))).filter(function (t) { return _global[t]; });
  33885. var intrinsicTypes = intrinsicTypeNames.map(function (t) { return _global[t]; });
  33886. var intrinsicTypeNameSet = arrayToObject(intrinsicTypeNames, function (x) { return [x, true]; });
  33887. function deepClone(any) {
  33888. if (!any || typeof any !== 'object')
  33889. return any;
  33890. var rv;
  33891. if (isArray(any)) {
  33892. rv = [];
  33893. for (var i = 0, l = any.length; i < l; ++i) {
  33894. rv.push(deepClone(any[i]));
  33895. }
  33896. }
  33897. else if (intrinsicTypes.indexOf(any.constructor) >= 0) {
  33898. rv = any;
  33899. }
  33900. else {
  33901. rv = any.constructor ? Object.create(any.constructor.prototype) : {};
  33902. for (var prop in any) {
  33903. if (hasOwn(any, prop)) {
  33904. rv[prop] = deepClone(any[prop]);
  33905. }
  33906. }
  33907. }
  33908. return rv;
  33909. }
  33910. var toString = {}.toString;
  33911. function toStringTag(o) {
  33912. return toString.call(o).slice(8, -1);
  33913. }
  33914. var getValueOf = function (val, type) {
  33915. return type === "Array" ? '' + val.map(function (v) { return getValueOf(v, toStringTag(v)); }) :
  33916. type === "ArrayBuffer" ? '' + new Uint8Array(val) :
  33917. type === "Date" ? val.getTime() :
  33918. ArrayBuffer.isView(val) ? '' + new Uint8Array(val.buffer) :
  33919. val;
  33920. };
  33921. function getObjectDiff(a, b, rv, prfx) {
  33922. rv = rv || {};
  33923. prfx = prfx || '';
  33924. keys(a).forEach(function (prop) {
  33925. if (!hasOwn(b, prop))
  33926. rv[prfx + prop] = undefined;
  33927. else {
  33928. var ap = a[prop], bp = b[prop];
  33929. if (typeof ap === 'object' && typeof bp === 'object' && ap && bp) {
  33930. var apTypeName = toStringTag(ap);
  33931. var bpTypeName = toStringTag(bp);
  33932. if (apTypeName === bpTypeName) {
  33933. if (intrinsicTypeNameSet[apTypeName]) {
  33934. if (getValueOf(ap, apTypeName) !== getValueOf(bp, bpTypeName)) {
  33935. rv[prfx + prop] = b[prop];
  33936. }
  33937. }
  33938. else {
  33939. getObjectDiff(ap, bp, rv, prfx + prop + ".");
  33940. }
  33941. }
  33942. else {
  33943. rv[prfx + prop] = b[prop];
  33944. }
  33945. }
  33946. else if (ap !== bp)
  33947. rv[prfx + prop] = b[prop];
  33948. }
  33949. });
  33950. keys(b).forEach(function (prop) {
  33951. if (!hasOwn(a, prop)) {
  33952. rv[prfx + prop] = b[prop];
  33953. }
  33954. });
  33955. return rv;
  33956. }
  33957. var iteratorSymbol = typeof Symbol !== 'undefined' && Symbol.iterator;
  33958. var getIteratorOf = iteratorSymbol ? function (x) {
  33959. var i;
  33960. return x != null && (i = x[iteratorSymbol]) && i.apply(x);
  33961. } : function () { return null; };
  33962. var NO_CHAR_ARRAY = {};
  33963. function getArrayOf(arrayLike) {
  33964. var i, a, x, it;
  33965. if (arguments.length === 1) {
  33966. if (isArray(arrayLike))
  33967. return arrayLike.slice();
  33968. if (this === NO_CHAR_ARRAY && typeof arrayLike === 'string')
  33969. return [arrayLike];
  33970. if ((it = getIteratorOf(arrayLike))) {
  33971. a = [];
  33972. while (x = it.next(), !x.done)
  33973. a.push(x.value);
  33974. return a;
  33975. }
  33976. if (arrayLike == null)
  33977. return [arrayLike];
  33978. i = arrayLike.length;
  33979. if (typeof i === 'number') {
  33980. a = new Array(i);
  33981. while (i--)
  33982. a[i] = arrayLike[i];
  33983. return a;
  33984. }
  33985. return [arrayLike];
  33986. }
  33987. i = arguments.length;
  33988. a = new Array(i);
  33989. while (i--)
  33990. a[i] = arguments[i];
  33991. return a;
  33992. }
  33993. var isAsyncFunction = typeof Symbol !== 'undefined'
  33994. ? function (fn) { return fn[Symbol.toStringTag] === 'AsyncFunction'; }
  33995. : function () { return false; };
  33996. var debug = typeof location !== 'undefined' &&
  33997. /^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
  33998. function setDebug(value, filter) {
  33999. debug = value;
  34000. libraryFilter = filter;
  34001. }
  34002. var libraryFilter = function () { return true; };
  34003. var NEEDS_THROW_FOR_STACK = !new Error("").stack;
  34004. function getErrorWithStack() {
  34005. if (NEEDS_THROW_FOR_STACK)
  34006. try {
  34007. throw new Error();
  34008. }
  34009. catch (e) {
  34010. return e;
  34011. }
  34012. return new Error();
  34013. }
  34014. function prettyStack(exception, numIgnoredFrames) {
  34015. var stack = exception.stack;
  34016. if (!stack)
  34017. return "";
  34018. numIgnoredFrames = (numIgnoredFrames || 0);
  34019. if (stack.indexOf(exception.name) === 0)
  34020. numIgnoredFrames += (exception.name + exception.message).split('\n').length;
  34021. return stack.split('\n')
  34022. .slice(numIgnoredFrames)
  34023. .filter(libraryFilter)
  34024. .map(function (frame) { return "\n" + frame; })
  34025. .join('');
  34026. }
  34027. var dexieErrorNames = [
  34028. 'Modify',
  34029. 'Bulk',
  34030. 'OpenFailed',
  34031. 'VersionChange',
  34032. 'Schema',
  34033. 'Upgrade',
  34034. 'InvalidTable',
  34035. 'MissingAPI',
  34036. 'NoSuchDatabase',
  34037. 'InvalidArgument',
  34038. 'SubTransaction',
  34039. 'Unsupported',
  34040. 'Internal',
  34041. 'DatabaseClosed',
  34042. 'PrematureCommit',
  34043. 'ForeignAwait'
  34044. ];
  34045. var idbDomErrorNames = [
  34046. 'Unknown',
  34047. 'Constraint',
  34048. 'Data',
  34049. 'TransactionInactive',
  34050. 'ReadOnly',
  34051. 'Version',
  34052. 'NotFound',
  34053. 'InvalidState',
  34054. 'InvalidAccess',
  34055. 'Abort',
  34056. 'Timeout',
  34057. 'QuotaExceeded',
  34058. 'Syntax',
  34059. 'DataClone'
  34060. ];
  34061. var errorList = dexieErrorNames.concat(idbDomErrorNames);
  34062. var defaultTexts = {
  34063. VersionChanged: "Database version changed by other database connection",
  34064. DatabaseClosed: "Database has been closed",
  34065. Abort: "Transaction aborted",
  34066. TransactionInactive: "Transaction has already completed or failed"
  34067. };
  34068. function DexieError(name, msg) {
  34069. this._e = getErrorWithStack();
  34070. this.name = name;
  34071. this.message = msg;
  34072. }
  34073. derive(DexieError).from(Error).extend({
  34074. stack: {
  34075. get: function () {
  34076. return this._stack ||
  34077. (this._stack = this.name + ": " + this.message + prettyStack(this._e, 2));
  34078. }
  34079. },
  34080. toString: function () { return this.name + ": " + this.message; }
  34081. });
  34082. function getMultiErrorMessage(msg, failures) {
  34083. return msg + ". Errors: " + Object.keys(failures)
  34084. .map(function (key) { return failures[key].toString(); })
  34085. .filter(function (v, i, s) { return s.indexOf(v) === i; })
  34086. .join('\n');
  34087. }
  34088. function ModifyError(msg, failures, successCount, failedKeys) {
  34089. this._e = getErrorWithStack();
  34090. this.failures = failures;
  34091. this.failedKeys = failedKeys;
  34092. this.successCount = successCount;
  34093. this.message = getMultiErrorMessage(msg, failures);
  34094. }
  34095. derive(ModifyError).from(DexieError);
  34096. function BulkError(msg, failures) {
  34097. this._e = getErrorWithStack();
  34098. this.name = "BulkError";
  34099. this.failures = failures;
  34100. this.message = getMultiErrorMessage(msg, failures);
  34101. }
  34102. derive(BulkError).from(DexieError);
  34103. var errnames = errorList.reduce(function (obj, name) { return (obj[name] = name + "Error", obj); }, {});
  34104. var BaseException = DexieError;
  34105. var exceptions = errorList.reduce(function (obj, name) {
  34106. var fullName = name + "Error";
  34107. function DexieError(msgOrInner, inner) {
  34108. this._e = getErrorWithStack();
  34109. this.name = fullName;
  34110. if (!msgOrInner) {
  34111. this.message = defaultTexts[name] || fullName;
  34112. this.inner = null;
  34113. }
  34114. else if (typeof msgOrInner === 'string') {
  34115. this.message = "" + msgOrInner + (!inner ? '' : '\n ' + inner);
  34116. this.inner = inner || null;
  34117. }
  34118. else if (typeof msgOrInner === 'object') {
  34119. this.message = msgOrInner.name + " " + msgOrInner.message;
  34120. this.inner = msgOrInner;
  34121. }
  34122. }
  34123. derive(DexieError).from(BaseException);
  34124. obj[name] = DexieError;
  34125. return obj;
  34126. }, {});
  34127. exceptions.Syntax = SyntaxError;
  34128. exceptions.Type = TypeError;
  34129. exceptions.Range = RangeError;
  34130. var exceptionMap = idbDomErrorNames.reduce(function (obj, name) {
  34131. obj[name + "Error"] = exceptions[name];
  34132. return obj;
  34133. }, {});
  34134. function mapError(domError, message) {
  34135. if (!domError || domError instanceof DexieError || domError instanceof TypeError || domError instanceof SyntaxError || !domError.name || !exceptionMap[domError.name])
  34136. return domError;
  34137. var rv = new exceptionMap[domError.name](message || domError.message, domError);
  34138. if ("stack" in domError) {
  34139. setProp(rv, "stack", { get: function () {
  34140. return this.inner.stack;
  34141. } });
  34142. }
  34143. return rv;
  34144. }
  34145. var fullNameExceptions = errorList.reduce(function (obj, name) {
  34146. if (["Syntax", "Type", "Range"].indexOf(name) === -1)
  34147. obj[name + "Error"] = exceptions[name];
  34148. return obj;
  34149. }, {});
  34150. fullNameExceptions.ModifyError = ModifyError;
  34151. fullNameExceptions.DexieError = DexieError;
  34152. fullNameExceptions.BulkError = BulkError;
  34153. function nop() { }
  34154. function mirror(val) { return val; }
  34155. function pureFunctionChain(f1, f2) {
  34156. if (f1 == null || f1 === mirror)
  34157. return f2;
  34158. return function (val) {
  34159. return f2(f1(val));
  34160. };
  34161. }
  34162. function callBoth(on1, on2) {
  34163. return function () {
  34164. on1.apply(this, arguments);
  34165. on2.apply(this, arguments);
  34166. };
  34167. }
  34168. function hookCreatingChain(f1, f2) {
  34169. if (f1 === nop)
  34170. return f2;
  34171. return function () {
  34172. var res = f1.apply(this, arguments);
  34173. if (res !== undefined)
  34174. arguments[0] = res;
  34175. var onsuccess = this.onsuccess,
  34176. onerror = this.onerror;
  34177. this.onsuccess = null;
  34178. this.onerror = null;
  34179. var res2 = f2.apply(this, arguments);
  34180. if (onsuccess)
  34181. this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;
  34182. if (onerror)
  34183. this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;
  34184. return res2 !== undefined ? res2 : res;
  34185. };
  34186. }
  34187. function hookDeletingChain(f1, f2) {
  34188. if (f1 === nop)
  34189. return f2;
  34190. return function () {
  34191. f1.apply(this, arguments);
  34192. var onsuccess = this.onsuccess,
  34193. onerror = this.onerror;
  34194. this.onsuccess = this.onerror = null;
  34195. f2.apply(this, arguments);
  34196. if (onsuccess)
  34197. this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;
  34198. if (onerror)
  34199. this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;
  34200. };
  34201. }
  34202. function hookUpdatingChain(f1, f2) {
  34203. if (f1 === nop)
  34204. return f2;
  34205. return function (modifications) {
  34206. var res = f1.apply(this, arguments);
  34207. extend(modifications, res);
  34208. var onsuccess = this.onsuccess,
  34209. onerror = this.onerror;
  34210. this.onsuccess = null;
  34211. this.onerror = null;
  34212. var res2 = f2.apply(this, arguments);
  34213. if (onsuccess)
  34214. this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;
  34215. if (onerror)
  34216. this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;
  34217. return res === undefined ?
  34218. (res2 === undefined ? undefined : res2) :
  34219. (extend(res, res2));
  34220. };
  34221. }
  34222. function reverseStoppableEventChain(f1, f2) {
  34223. if (f1 === nop)
  34224. return f2;
  34225. return function () {
  34226. if (f2.apply(this, arguments) === false)
  34227. return false;
  34228. return f1.apply(this, arguments);
  34229. };
  34230. }
  34231. function promisableChain(f1, f2) {
  34232. if (f1 === nop)
  34233. return f2;
  34234. return function () {
  34235. var res = f1.apply(this, arguments);
  34236. if (res && typeof res.then === 'function') {
  34237. var thiz = this, i = arguments.length, args = new Array(i);
  34238. while (i--)
  34239. args[i] = arguments[i];
  34240. return res.then(function () {
  34241. return f2.apply(thiz, args);
  34242. });
  34243. }
  34244. return f2.apply(this, arguments);
  34245. };
  34246. }
  34247. var INTERNAL = {};
  34248. var LONG_STACKS_CLIP_LIMIT = 100;
  34249. var MAX_LONG_STACKS = 20;
  34250. var ZONE_ECHO_LIMIT = 100;
  34251. var _a = typeof Promise === 'undefined' ?
  34252. [] :
  34253. (function () {
  34254. var globalP = Promise.resolve();
  34255. if (typeof crypto === 'undefined' || !crypto.subtle)
  34256. return [globalP, globalP.__proto__, globalP];
  34257. var nativeP = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
  34258. return [
  34259. nativeP,
  34260. nativeP.__proto__,
  34261. globalP
  34262. ];
  34263. })();
  34264. var resolvedNativePromise = _a[0];
  34265. var nativePromiseProto = _a[1];
  34266. var resolvedGlobalPromise = _a[2];
  34267. var nativePromiseThen = nativePromiseProto && nativePromiseProto.then;
  34268. var NativePromise = resolvedNativePromise && resolvedNativePromise.constructor;
  34269. var patchGlobalPromise = !!resolvedGlobalPromise;
  34270. var stack_being_generated = false;
  34271. var schedulePhysicalTick = resolvedGlobalPromise ?
  34272. function () { resolvedGlobalPromise.then(physicalTick); }
  34273. :
  34274. _global.setImmediate ?
  34275. setImmediate.bind(null, physicalTick) :
  34276. _global.MutationObserver ?
  34277. function () {
  34278. var hiddenDiv = document.createElement("div");
  34279. (new MutationObserver(function () {
  34280. physicalTick();
  34281. hiddenDiv = null;
  34282. })).observe(hiddenDiv, { attributes: true });
  34283. hiddenDiv.setAttribute('i', '1');
  34284. } :
  34285. function () { setTimeout(physicalTick, 0); };
  34286. var asap$1 = function (callback, args) {
  34287. microtickQueue.push([callback, args]);
  34288. if (needsNewPhysicalTick) {
  34289. schedulePhysicalTick();
  34290. needsNewPhysicalTick = false;
  34291. }
  34292. };
  34293. var isOutsideMicroTick = true;
  34294. var needsNewPhysicalTick = true;
  34295. var unhandledErrors = [];
  34296. var rejectingErrors = [];
  34297. var currentFulfiller = null;
  34298. var rejectionMapper = mirror;
  34299. var globalPSD = {
  34300. id: 'global',
  34301. global: true,
  34302. ref: 0,
  34303. unhandleds: [],
  34304. onunhandled: globalError,
  34305. pgp: false,
  34306. env: {},
  34307. finalize: function () {
  34308. this.unhandleds.forEach(function (uh) {
  34309. try {
  34310. globalError(uh[0], uh[1]);
  34311. }
  34312. catch (e) { }
  34313. });
  34314. }
  34315. };
  34316. var PSD = globalPSD;
  34317. var microtickQueue = [];
  34318. var numScheduledCalls = 0;
  34319. var tickFinalizers = [];
  34320. function DexiePromise(fn) {
  34321. if (typeof this !== 'object')
  34322. throw new TypeError('Promises must be constructed via new');
  34323. this._listeners = [];
  34324. this.onuncatched = nop;
  34325. this._lib = false;
  34326. var psd = (this._PSD = PSD);
  34327. if (debug) {
  34328. this._stackHolder = getErrorWithStack();
  34329. this._prev = null;
  34330. this._numPrev = 0;
  34331. }
  34332. if (typeof fn !== 'function') {
  34333. if (fn !== INTERNAL)
  34334. throw new TypeError('Not a function');
  34335. this._state = arguments[1];
  34336. this._value = arguments[2];
  34337. if (this._state === false)
  34338. handleRejection(this, this._value);
  34339. return;
  34340. }
  34341. this._state = null;
  34342. this._value = null;
  34343. ++psd.ref;
  34344. executePromiseTask(this, fn);
  34345. }
  34346. var thenProp = {
  34347. get: function () {
  34348. var psd = PSD, microTaskId = totalEchoes;
  34349. function then(onFulfilled, onRejected) {
  34350. var _this = this;
  34351. var possibleAwait = !psd.global && (psd !== PSD || microTaskId !== totalEchoes);
  34352. if (possibleAwait)
  34353. decrementExpectedAwaits();
  34354. var rv = new DexiePromise(function (resolve, reject) {
  34355. propagateToListener(_this, new Listener(nativeAwaitCompatibleWrap(onFulfilled, psd, possibleAwait), nativeAwaitCompatibleWrap(onRejected, psd, possibleAwait), resolve, reject, psd));
  34356. });
  34357. debug && linkToPreviousPromise(rv, this);
  34358. return rv;
  34359. }
  34360. then.prototype = INTERNAL;
  34361. return then;
  34362. },
  34363. set: function (value) {
  34364. setProp(this, 'then', value && value.prototype === INTERNAL ?
  34365. thenProp :
  34366. {
  34367. get: function () {
  34368. return value;
  34369. },
  34370. set: thenProp.set
  34371. });
  34372. }
  34373. };
  34374. props(DexiePromise.prototype, {
  34375. then: thenProp,
  34376. _then: function (onFulfilled, onRejected) {
  34377. propagateToListener(this, new Listener(null, null, onFulfilled, onRejected, PSD));
  34378. },
  34379. catch: function (onRejected) {
  34380. if (arguments.length === 1)
  34381. return this.then(null, onRejected);
  34382. var type = arguments[0], handler = arguments[1];
  34383. return typeof type === 'function' ? this.then(null, function (err) {
  34384. return err instanceof type ? handler(err) : PromiseReject(err);
  34385. })
  34386. : this.then(null, function (err) {
  34387. return err && err.name === type ? handler(err) : PromiseReject(err);
  34388. });
  34389. },
  34390. finally: function (onFinally) {
  34391. return this.then(function (value) {
  34392. onFinally();
  34393. return value;
  34394. }, function (err) {
  34395. onFinally();
  34396. return PromiseReject(err);
  34397. });
  34398. },
  34399. stack: {
  34400. get: function () {
  34401. if (this._stack)
  34402. return this._stack;
  34403. try {
  34404. stack_being_generated = true;
  34405. var stacks = getStack(this, [], MAX_LONG_STACKS);
  34406. var stack = stacks.join("\nFrom previous: ");
  34407. if (this._state !== null)
  34408. this._stack = stack;
  34409. return stack;
  34410. }
  34411. finally {
  34412. stack_being_generated = false;
  34413. }
  34414. }
  34415. },
  34416. timeout: function (ms, msg) {
  34417. var _this = this;
  34418. return ms < Infinity ?
  34419. new DexiePromise(function (resolve, reject) {
  34420. var handle = setTimeout(function () { return reject(new exceptions.Timeout(msg)); }, ms);
  34421. _this.then(resolve, reject).finally(clearTimeout.bind(null, handle));
  34422. }) : this;
  34423. }
  34424. });
  34425. if (typeof Symbol !== 'undefined' && Symbol.toStringTag)
  34426. setProp(DexiePromise.prototype, Symbol.toStringTag, 'Dexie.Promise');
  34427. globalPSD.env = snapShot();
  34428. function Listener(onFulfilled, onRejected, resolve, reject, zone) {
  34429. this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
  34430. this.onRejected = typeof onRejected === 'function' ? onRejected : null;
  34431. this.resolve = resolve;
  34432. this.reject = reject;
  34433. this.psd = zone;
  34434. }
  34435. props(DexiePromise, {
  34436. all: function () {
  34437. var values = getArrayOf.apply(null, arguments)
  34438. .map(onPossibleParallellAsync);
  34439. return new DexiePromise(function (resolve, reject) {
  34440. if (values.length === 0)
  34441. resolve([]);
  34442. var remaining = values.length;
  34443. values.forEach(function (a, i) { return DexiePromise.resolve(a).then(function (x) {
  34444. values[i] = x;
  34445. if (!--remaining)
  34446. resolve(values);
  34447. }, reject); });
  34448. });
  34449. },
  34450. resolve: function (value) {
  34451. if (value instanceof DexiePromise)
  34452. return value;
  34453. if (value && typeof value.then === 'function')
  34454. return new DexiePromise(function (resolve, reject) {
  34455. value.then(resolve, reject);
  34456. });
  34457. var rv = new DexiePromise(INTERNAL, true, value);
  34458. linkToPreviousPromise(rv, currentFulfiller);
  34459. return rv;
  34460. },
  34461. reject: PromiseReject,
  34462. race: function () {
  34463. var values = getArrayOf.apply(null, arguments).map(onPossibleParallellAsync);
  34464. return new DexiePromise(function (resolve, reject) {
  34465. values.map(function (value) { return DexiePromise.resolve(value).then(resolve, reject); });
  34466. });
  34467. },
  34468. PSD: {
  34469. get: function () { return PSD; },
  34470. set: function (value) { return PSD = value; }
  34471. },
  34472. newPSD: newScope,
  34473. usePSD: usePSD,
  34474. scheduler: {
  34475. get: function () { return asap$1; },
  34476. set: function (value) { asap$1 = value; }
  34477. },
  34478. rejectionMapper: {
  34479. get: function () { return rejectionMapper; },
  34480. set: function (value) { rejectionMapper = value; }
  34481. },
  34482. follow: function (fn, zoneProps) {
  34483. return new DexiePromise(function (resolve, reject) {
  34484. return newScope(function (resolve, reject) {
  34485. var psd = PSD;
  34486. psd.unhandleds = [];
  34487. psd.onunhandled = reject;
  34488. psd.finalize = callBoth(function () {
  34489. var _this = this;
  34490. run_at_end_of_this_or_next_physical_tick(function () {
  34491. _this.unhandleds.length === 0 ? resolve() : reject(_this.unhandleds[0]);
  34492. });
  34493. }, psd.finalize);
  34494. fn();
  34495. }, zoneProps, resolve, reject);
  34496. });
  34497. }
  34498. });
  34499. if (NativePromise) {
  34500. if (NativePromise.allSettled)
  34501. setProp(DexiePromise, "allSettled", function () {
  34502. var possiblePromises = getArrayOf.apply(null, arguments).map(onPossibleParallellAsync);
  34503. return new DexiePromise(function (resolve) {
  34504. if (possiblePromises.length === 0)
  34505. resolve([]);
  34506. var remaining = possiblePromises.length;
  34507. var results = new Array(remaining);
  34508. possiblePromises.forEach(function (p, i) { return DexiePromise.resolve(p).then(function (value) { return results[i] = { status: "fulfilled", value: value }; }, function (reason) { return results[i] = { status: "rejected", reason: reason }; })
  34509. .then(function () { return --remaining || resolve(results); }); });
  34510. });
  34511. });
  34512. if (NativePromise.any && typeof AggregateError !== 'undefined')
  34513. setProp(DexiePromise, "any", function () {
  34514. var possiblePromises = getArrayOf.apply(null, arguments).map(onPossibleParallellAsync);
  34515. return new DexiePromise(function (resolve, reject) {
  34516. if (possiblePromises.length === 0)
  34517. reject(new AggregateError([]));
  34518. var remaining = possiblePromises.length;
  34519. var failures = new Array(remaining);
  34520. possiblePromises.forEach(function (p, i) { return DexiePromise.resolve(p).then(function (value) { return resolve(value); }, function (failure) {
  34521. failures[i] = failure;
  34522. if (!--remaining)
  34523. reject(new AggregateError(failures));
  34524. }); });
  34525. });
  34526. });
  34527. }
  34528. function executePromiseTask(promise, fn) {
  34529. try {
  34530. fn(function (value) {
  34531. if (promise._state !== null)
  34532. return;
  34533. if (value === promise)
  34534. throw new TypeError('A promise cannot be resolved with itself.');
  34535. var shouldExecuteTick = promise._lib && beginMicroTickScope();
  34536. if (value && typeof value.then === 'function') {
  34537. executePromiseTask(promise, function (resolve, reject) {
  34538. value instanceof DexiePromise ?
  34539. value._then(resolve, reject) :
  34540. value.then(resolve, reject);
  34541. });
  34542. }
  34543. else {
  34544. promise._state = true;
  34545. promise._value = value;
  34546. propagateAllListeners(promise);
  34547. }
  34548. if (shouldExecuteTick)
  34549. endMicroTickScope();
  34550. }, handleRejection.bind(null, promise));
  34551. }
  34552. catch (ex) {
  34553. handleRejection(promise, ex);
  34554. }
  34555. }
  34556. function handleRejection(promise, reason) {
  34557. rejectingErrors.push(reason);
  34558. if (promise._state !== null)
  34559. return;
  34560. var shouldExecuteTick = promise._lib && beginMicroTickScope();
  34561. reason = rejectionMapper(reason);
  34562. promise._state = false;
  34563. promise._value = reason;
  34564. debug && reason !== null && typeof reason === 'object' && !reason._promise && tryCatch(function () {
  34565. var origProp = getPropertyDescriptor(reason, "stack");
  34566. reason._promise = promise;
  34567. setProp(reason, "stack", {
  34568. get: function () {
  34569. return stack_being_generated ?
  34570. origProp && (origProp.get ?
  34571. origProp.get.apply(reason) :
  34572. origProp.value) :
  34573. promise.stack;
  34574. }
  34575. });
  34576. });
  34577. addPossiblyUnhandledError(promise);
  34578. propagateAllListeners(promise);
  34579. if (shouldExecuteTick)
  34580. endMicroTickScope();
  34581. }
  34582. function propagateAllListeners(promise) {
  34583. var listeners = promise._listeners;
  34584. promise._listeners = [];
  34585. for (var i = 0, len = listeners.length; i < len; ++i) {
  34586. propagateToListener(promise, listeners[i]);
  34587. }
  34588. var psd = promise._PSD;
  34589. --psd.ref || psd.finalize();
  34590. if (numScheduledCalls === 0) {
  34591. ++numScheduledCalls;
  34592. asap$1(function () {
  34593. if (--numScheduledCalls === 0)
  34594. finalizePhysicalTick();
  34595. }, []);
  34596. }
  34597. }
  34598. function propagateToListener(promise, listener) {
  34599. if (promise._state === null) {
  34600. promise._listeners.push(listener);
  34601. return;
  34602. }
  34603. var cb = promise._state ? listener.onFulfilled : listener.onRejected;
  34604. if (cb === null) {
  34605. return (promise._state ? listener.resolve : listener.reject)(promise._value);
  34606. }
  34607. ++listener.psd.ref;
  34608. ++numScheduledCalls;
  34609. asap$1(callListener, [cb, promise, listener]);
  34610. }
  34611. function callListener(cb, promise, listener) {
  34612. try {
  34613. currentFulfiller = promise;
  34614. var ret, value = promise._value;
  34615. if (promise._state) {
  34616. ret = cb(value);
  34617. }
  34618. else {
  34619. if (rejectingErrors.length)
  34620. rejectingErrors = [];
  34621. ret = cb(value);
  34622. if (rejectingErrors.indexOf(value) === -1)
  34623. markErrorAsHandled(promise);
  34624. }
  34625. listener.resolve(ret);
  34626. }
  34627. catch (e) {
  34628. listener.reject(e);
  34629. }
  34630. finally {
  34631. currentFulfiller = null;
  34632. if (--numScheduledCalls === 0)
  34633. finalizePhysicalTick();
  34634. --listener.psd.ref || listener.psd.finalize();
  34635. }
  34636. }
  34637. function getStack(promise, stacks, limit) {
  34638. if (stacks.length === limit)
  34639. return stacks;
  34640. var stack = "";
  34641. if (promise._state === false) {
  34642. var failure = promise._value, errorName, message;
  34643. if (failure != null) {
  34644. errorName = failure.name || "Error";
  34645. message = failure.message || failure;
  34646. stack = prettyStack(failure, 0);
  34647. }
  34648. else {
  34649. errorName = failure;
  34650. message = "";
  34651. }
  34652. stacks.push(errorName + (message ? ": " + message : "") + stack);
  34653. }
  34654. if (debug) {
  34655. stack = prettyStack(promise._stackHolder, 2);
  34656. if (stack && stacks.indexOf(stack) === -1)
  34657. stacks.push(stack);
  34658. if (promise._prev)
  34659. getStack(promise._prev, stacks, limit);
  34660. }
  34661. return stacks;
  34662. }
  34663. function linkToPreviousPromise(promise, prev) {
  34664. var numPrev = prev ? prev._numPrev + 1 : 0;
  34665. if (numPrev < LONG_STACKS_CLIP_LIMIT) {
  34666. promise._prev = prev;
  34667. promise._numPrev = numPrev;
  34668. }
  34669. }
  34670. function physicalTick() {
  34671. beginMicroTickScope() && endMicroTickScope();
  34672. }
  34673. function beginMicroTickScope() {
  34674. var wasRootExec = isOutsideMicroTick;
  34675. isOutsideMicroTick = false;
  34676. needsNewPhysicalTick = false;
  34677. return wasRootExec;
  34678. }
  34679. function endMicroTickScope() {
  34680. var callbacks, i, l;
  34681. do {
  34682. while (microtickQueue.length > 0) {
  34683. callbacks = microtickQueue;
  34684. microtickQueue = [];
  34685. l = callbacks.length;
  34686. for (i = 0; i < l; ++i) {
  34687. var item = callbacks[i];
  34688. item[0].apply(null, item[1]);
  34689. }
  34690. }
  34691. } while (microtickQueue.length > 0);
  34692. isOutsideMicroTick = true;
  34693. needsNewPhysicalTick = true;
  34694. }
  34695. function finalizePhysicalTick() {
  34696. var unhandledErrs = unhandledErrors;
  34697. unhandledErrors = [];
  34698. unhandledErrs.forEach(function (p) {
  34699. p._PSD.onunhandled.call(null, p._value, p);
  34700. });
  34701. var finalizers = tickFinalizers.slice(0);
  34702. var i = finalizers.length;
  34703. while (i)
  34704. finalizers[--i]();
  34705. }
  34706. function run_at_end_of_this_or_next_physical_tick(fn) {
  34707. function finalizer() {
  34708. fn();
  34709. tickFinalizers.splice(tickFinalizers.indexOf(finalizer), 1);
  34710. }
  34711. tickFinalizers.push(finalizer);
  34712. ++numScheduledCalls;
  34713. asap$1(function () {
  34714. if (--numScheduledCalls === 0)
  34715. finalizePhysicalTick();
  34716. }, []);
  34717. }
  34718. function addPossiblyUnhandledError(promise) {
  34719. if (!unhandledErrors.some(function (p) { return p._value === promise._value; }))
  34720. unhandledErrors.push(promise);
  34721. }
  34722. function markErrorAsHandled(promise) {
  34723. var i = unhandledErrors.length;
  34724. while (i)
  34725. if (unhandledErrors[--i]._value === promise._value) {
  34726. unhandledErrors.splice(i, 1);
  34727. return;
  34728. }
  34729. }
  34730. function PromiseReject(reason) {
  34731. return new DexiePromise(INTERNAL, false, reason);
  34732. }
  34733. function wrap(fn, errorCatcher) {
  34734. var psd = PSD;
  34735. return function () {
  34736. var wasRootExec = beginMicroTickScope(), outerScope = PSD;
  34737. try {
  34738. switchToZone(psd, true);
  34739. return fn.apply(this, arguments);
  34740. }
  34741. catch (e) {
  34742. errorCatcher && errorCatcher(e);
  34743. }
  34744. finally {
  34745. switchToZone(outerScope, false);
  34746. if (wasRootExec)
  34747. endMicroTickScope();
  34748. }
  34749. };
  34750. }
  34751. var task = { awaits: 0, echoes: 0, id: 0 };
  34752. var taskCounter = 0;
  34753. var zoneStack = [];
  34754. var zoneEchoes = 0;
  34755. var totalEchoes = 0;
  34756. var zone_id_counter = 0;
  34757. function newScope(fn, props$$1, a1, a2) {
  34758. var parent = PSD, psd = Object.create(parent);
  34759. psd.parent = parent;
  34760. psd.ref = 0;
  34761. psd.global = false;
  34762. psd.id = ++zone_id_counter;
  34763. var globalEnv = globalPSD.env;
  34764. psd.env = patchGlobalPromise ? {
  34765. Promise: DexiePromise,
  34766. PromiseProp: { value: DexiePromise, configurable: true, writable: true },
  34767. all: DexiePromise.all,
  34768. race: DexiePromise.race,
  34769. allSettled: DexiePromise.allSettled,
  34770. any: DexiePromise.any,
  34771. resolve: DexiePromise.resolve,
  34772. reject: DexiePromise.reject,
  34773. nthen: getPatchedPromiseThen(globalEnv.nthen, psd),
  34774. gthen: getPatchedPromiseThen(globalEnv.gthen, psd)
  34775. } : {};
  34776. if (props$$1)
  34777. extend(psd, props$$1);
  34778. ++parent.ref;
  34779. psd.finalize = function () {
  34780. --this.parent.ref || this.parent.finalize();
  34781. };
  34782. var rv = usePSD(psd, fn, a1, a2);
  34783. if (psd.ref === 0)
  34784. psd.finalize();
  34785. return rv;
  34786. }
  34787. function incrementExpectedAwaits() {
  34788. if (!task.id)
  34789. task.id = ++taskCounter;
  34790. ++task.awaits;
  34791. task.echoes += ZONE_ECHO_LIMIT;
  34792. return task.id;
  34793. }
  34794. function decrementExpectedAwaits(sourceTaskId) {
  34795. if (!task.awaits || (sourceTaskId && sourceTaskId !== task.id))
  34796. return;
  34797. if (--task.awaits === 0)
  34798. task.id = 0;
  34799. task.echoes = task.awaits * ZONE_ECHO_LIMIT;
  34800. }
  34801. if (('' + nativePromiseThen).indexOf('[native code]') === -1) {
  34802. incrementExpectedAwaits = decrementExpectedAwaits = nop;
  34803. }
  34804. function onPossibleParallellAsync(possiblePromise) {
  34805. if (task.echoes && possiblePromise && possiblePromise.constructor === NativePromise) {
  34806. incrementExpectedAwaits();
  34807. return possiblePromise.then(function (x) {
  34808. decrementExpectedAwaits();
  34809. return x;
  34810. }, function (e) {
  34811. decrementExpectedAwaits();
  34812. return rejection(e);
  34813. });
  34814. }
  34815. return possiblePromise;
  34816. }
  34817. function zoneEnterEcho(targetZone) {
  34818. ++totalEchoes;
  34819. if (!task.echoes || --task.echoes === 0) {
  34820. task.echoes = task.id = 0;
  34821. }
  34822. zoneStack.push(PSD);
  34823. switchToZone(targetZone, true);
  34824. }
  34825. function zoneLeaveEcho() {
  34826. var zone = zoneStack[zoneStack.length - 1];
  34827. zoneStack.pop();
  34828. switchToZone(zone, false);
  34829. }
  34830. function switchToZone(targetZone, bEnteringZone) {
  34831. var currentZone = PSD;
  34832. if (bEnteringZone ? task.echoes && (!zoneEchoes++ || targetZone !== PSD) : zoneEchoes && (!--zoneEchoes || targetZone !== PSD)) {
  34833. enqueueNativeMicroTask(bEnteringZone ? zoneEnterEcho.bind(null, targetZone) : zoneLeaveEcho);
  34834. }
  34835. if (targetZone === PSD)
  34836. return;
  34837. PSD = targetZone;
  34838. if (currentZone === globalPSD)
  34839. globalPSD.env = snapShot();
  34840. if (patchGlobalPromise) {
  34841. var GlobalPromise_1 = globalPSD.env.Promise;
  34842. var targetEnv = targetZone.env;
  34843. nativePromiseProto.then = targetEnv.nthen;
  34844. GlobalPromise_1.prototype.then = targetEnv.gthen;
  34845. if (currentZone.global || targetZone.global) {
  34846. Object.defineProperty(_global, 'Promise', targetEnv.PromiseProp);
  34847. GlobalPromise_1.all = targetEnv.all;
  34848. GlobalPromise_1.race = targetEnv.race;
  34849. GlobalPromise_1.resolve = targetEnv.resolve;
  34850. GlobalPromise_1.reject = targetEnv.reject;
  34851. if (targetEnv.allSettled)
  34852. GlobalPromise_1.allSettled = targetEnv.allSettled;
  34853. if (targetEnv.any)
  34854. GlobalPromise_1.any = targetEnv.any;
  34855. }
  34856. }
  34857. }
  34858. function snapShot() {
  34859. var GlobalPromise = _global.Promise;
  34860. return patchGlobalPromise ? {
  34861. Promise: GlobalPromise,
  34862. PromiseProp: Object.getOwnPropertyDescriptor(_global, "Promise"),
  34863. all: GlobalPromise.all,
  34864. race: GlobalPromise.race,
  34865. allSettled: GlobalPromise.allSettled,
  34866. any: GlobalPromise.any,
  34867. resolve: GlobalPromise.resolve,
  34868. reject: GlobalPromise.reject,
  34869. nthen: nativePromiseProto.then,
  34870. gthen: GlobalPromise.prototype.then
  34871. } : {};
  34872. }
  34873. function usePSD(psd, fn, a1, a2, a3) {
  34874. var outerScope = PSD;
  34875. try {
  34876. switchToZone(psd, true);
  34877. return fn(a1, a2, a3);
  34878. }
  34879. finally {
  34880. switchToZone(outerScope, false);
  34881. }
  34882. }
  34883. function enqueueNativeMicroTask(job) {
  34884. nativePromiseThen.call(resolvedNativePromise, job);
  34885. }
  34886. function nativeAwaitCompatibleWrap(fn, zone, possibleAwait) {
  34887. return typeof fn !== 'function' ? fn : function () {
  34888. var outerZone = PSD;
  34889. if (possibleAwait)
  34890. incrementExpectedAwaits();
  34891. switchToZone(zone, true);
  34892. try {
  34893. return fn.apply(this, arguments);
  34894. }
  34895. finally {
  34896. switchToZone(outerZone, false);
  34897. }
  34898. };
  34899. }
  34900. function getPatchedPromiseThen(origThen, zone) {
  34901. return function (onResolved, onRejected) {
  34902. return origThen.call(this, nativeAwaitCompatibleWrap(onResolved, zone, false), nativeAwaitCompatibleWrap(onRejected, zone, false));
  34903. };
  34904. }
  34905. var UNHANDLEDREJECTION = "unhandledrejection";
  34906. function globalError(err, promise) {
  34907. var rv;
  34908. try {
  34909. rv = promise.onuncatched(err);
  34910. }
  34911. catch (e) { }
  34912. if (rv !== false)
  34913. try {
  34914. var event, eventData = { promise: promise, reason: err };
  34915. if (_global.document && document.createEvent) {
  34916. event = document.createEvent('Event');
  34917. event.initEvent(UNHANDLEDREJECTION, true, true);
  34918. extend(event, eventData);
  34919. }
  34920. else if (_global.CustomEvent) {
  34921. event = new CustomEvent(UNHANDLEDREJECTION, { detail: eventData });
  34922. extend(event, eventData);
  34923. }
  34924. if (event && _global.dispatchEvent) {
  34925. dispatchEvent(event);
  34926. if (!_global.PromiseRejectionEvent && _global.onunhandledrejection)
  34927. try {
  34928. _global.onunhandledrejection(event);
  34929. }
  34930. catch (_) { }
  34931. }
  34932. if (debug && event && !event.defaultPrevented) {
  34933. console.warn("Unhandled rejection: " + (err.stack || err));
  34934. }
  34935. }
  34936. catch (e) { }
  34937. }
  34938. var rejection = DexiePromise.reject;
  34939. function tempTransaction(db, mode, storeNames, fn) {
  34940. if (!db._state.openComplete && (!PSD.letThrough)) {
  34941. if (!db._state.isBeingOpened) {
  34942. if (!db._options.autoOpen)
  34943. return rejection(new exceptions.DatabaseClosed());
  34944. db.open().catch(nop);
  34945. }
  34946. return db._state.dbReadyPromise.then(function () { return tempTransaction(db, mode, storeNames, fn); });
  34947. }
  34948. else {
  34949. var trans = db._createTransaction(mode, storeNames, db._dbSchema);
  34950. try {
  34951. trans.create();
  34952. }
  34953. catch (ex) {
  34954. return rejection(ex);
  34955. }
  34956. return trans._promise(mode, function (resolve, reject) {
  34957. return newScope(function () {
  34958. PSD.trans = trans;
  34959. return fn(resolve, reject, trans);
  34960. });
  34961. }).then(function (result) {
  34962. return trans._completion.then(function () { return result; });
  34963. });
  34964. }
  34965. }
  34966. var DEXIE_VERSION = '3.0.2';
  34967. var maxString = String.fromCharCode(65535);
  34968. var minKey = -Infinity;
  34969. var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.";
  34970. var STRING_EXPECTED = "String expected.";
  34971. var connections = [];
  34972. var isIEOrEdge = typeof navigator !== 'undefined' && /(MSIE|Trident|Edge)/.test(navigator.userAgent);
  34973. var hasIEDeleteObjectStoreBug = isIEOrEdge;
  34974. var hangsOnDeleteLargeKeyRange = isIEOrEdge;
  34975. var dexieStackFrameFilter = function (frame) { return !/(dexie\.js|dexie\.min\.js)/.test(frame); };
  34976. var DBNAMES_DB = '__dbnames';
  34977. var READONLY = 'readonly';
  34978. var READWRITE = 'readwrite';
  34979. function combine(filter1, filter2) {
  34980. return filter1 ?
  34981. filter2 ?
  34982. function () { return filter1.apply(this, arguments) && filter2.apply(this, arguments); } :
  34983. filter1 :
  34984. filter2;
  34985. }
  34986. var AnyRange = {
  34987. type: 3 ,
  34988. lower: -Infinity,
  34989. lowerOpen: false,
  34990. upper: [[]],
  34991. upperOpen: false
  34992. };
  34993. var Table = (function () {
  34994. function Table() {
  34995. }
  34996. Table.prototype._trans = function (mode, fn, writeLocked) {
  34997. var trans = this._tx || PSD.trans;
  34998. var tableName = this.name;
  34999. function checkTableInTransaction(resolve, reject, trans) {
  35000. if (!trans.schema[tableName])
  35001. throw new exceptions.NotFound("Table " + tableName + " not part of transaction");
  35002. return fn(trans.idbtrans, trans);
  35003. }
  35004. var wasRootExec = beginMicroTickScope();
  35005. try {
  35006. return trans && trans.db === this.db ?
  35007. trans === PSD.trans ?
  35008. trans._promise(mode, checkTableInTransaction, writeLocked) :
  35009. newScope(function () { return trans._promise(mode, checkTableInTransaction, writeLocked); }, { trans: trans, transless: PSD.transless || PSD }) :
  35010. tempTransaction(this.db, mode, [this.name], checkTableInTransaction);
  35011. }
  35012. finally {
  35013. if (wasRootExec)
  35014. endMicroTickScope();
  35015. }
  35016. };
  35017. Table.prototype.get = function (keyOrCrit, cb) {
  35018. var _this = this;
  35019. if (keyOrCrit && keyOrCrit.constructor === Object)
  35020. return this.where(keyOrCrit).first(cb);
  35021. return this._trans('readonly', function (trans) {
  35022. return _this.core.get({ trans: trans, key: keyOrCrit })
  35023. .then(function (res) { return _this.hook.reading.fire(res); });
  35024. }).then(cb);
  35025. };
  35026. Table.prototype.where = function (indexOrCrit) {
  35027. if (typeof indexOrCrit === 'string')
  35028. return new this.db.WhereClause(this, indexOrCrit);
  35029. if (isArray(indexOrCrit))
  35030. return new this.db.WhereClause(this, "[" + indexOrCrit.join('+') + "]");
  35031. var keyPaths = keys(indexOrCrit);
  35032. if (keyPaths.length === 1)
  35033. return this
  35034. .where(keyPaths[0])
  35035. .equals(indexOrCrit[keyPaths[0]]);
  35036. var compoundIndex = this.schema.indexes.concat(this.schema.primKey).filter(function (ix) {
  35037. return ix.compound &&
  35038. keyPaths.every(function (keyPath) { return ix.keyPath.indexOf(keyPath) >= 0; }) &&
  35039. ix.keyPath.every(function (keyPath) { return keyPaths.indexOf(keyPath) >= 0; });
  35040. })[0];
  35041. if (compoundIndex && this.db._maxKey !== maxString)
  35042. return this
  35043. .where(compoundIndex.name)
  35044. .equals(compoundIndex.keyPath.map(function (kp) { return indexOrCrit[kp]; }));
  35045. if (!compoundIndex && debug)
  35046. console.warn("The query " + JSON.stringify(indexOrCrit) + " on " + this.name + " would benefit of a " +
  35047. ("compound index [" + keyPaths.join('+') + "]"));
  35048. var idxByName = this.schema.idxByName;
  35049. var idb = this.db._deps.indexedDB;
  35050. function equals(a, b) {
  35051. try {
  35052. return idb.cmp(a, b) === 0;
  35053. }
  35054. catch (e) {
  35055. return false;
  35056. }
  35057. }
  35058. var _a = keyPaths.reduce(function (_a, keyPath) {
  35059. var prevIndex = _a[0], prevFilterFn = _a[1];
  35060. var index = idxByName[keyPath];
  35061. var value = indexOrCrit[keyPath];
  35062. return [
  35063. prevIndex || index,
  35064. prevIndex || !index ?
  35065. combine(prevFilterFn, index && index.multi ?
  35066. function (x) {
  35067. var prop = getByKeyPath(x, keyPath);
  35068. return isArray(prop) && prop.some(function (item) { return equals(value, item); });
  35069. } : function (x) { return equals(value, getByKeyPath(x, keyPath)); })
  35070. : prevFilterFn
  35071. ];
  35072. }, [null, null]), idx = _a[0], filterFunction = _a[1];
  35073. return idx ?
  35074. this.where(idx.name).equals(indexOrCrit[idx.keyPath])
  35075. .filter(filterFunction) :
  35076. compoundIndex ?
  35077. this.filter(filterFunction) :
  35078. this.where(keyPaths).equals('');
  35079. };
  35080. Table.prototype.filter = function (filterFunction) {
  35081. return this.toCollection().and(filterFunction);
  35082. };
  35083. Table.prototype.count = function (thenShortcut) {
  35084. return this.toCollection().count(thenShortcut);
  35085. };
  35086. Table.prototype.offset = function (offset) {
  35087. return this.toCollection().offset(offset);
  35088. };
  35089. Table.prototype.limit = function (numRows) {
  35090. return this.toCollection().limit(numRows);
  35091. };
  35092. Table.prototype.each = function (callback) {
  35093. return this.toCollection().each(callback);
  35094. };
  35095. Table.prototype.toArray = function (thenShortcut) {
  35096. return this.toCollection().toArray(thenShortcut);
  35097. };
  35098. Table.prototype.toCollection = function () {
  35099. return new this.db.Collection(new this.db.WhereClause(this));
  35100. };
  35101. Table.prototype.orderBy = function (index) {
  35102. return new this.db.Collection(new this.db.WhereClause(this, isArray(index) ?
  35103. "[" + index.join('+') + "]" :
  35104. index));
  35105. };
  35106. Table.prototype.reverse = function () {
  35107. return this.toCollection().reverse();
  35108. };
  35109. Table.prototype.mapToClass = function (constructor) {
  35110. this.schema.mappedClass = constructor;
  35111. var readHook = function (obj) {
  35112. if (!obj)
  35113. return obj;
  35114. var res = Object.create(constructor.prototype);
  35115. for (var m in obj)
  35116. if (hasOwn(obj, m))
  35117. try {
  35118. res[m] = obj[m];
  35119. }
  35120. catch (_) { }
  35121. return res;
  35122. };
  35123. if (this.schema.readHook) {
  35124. this.hook.reading.unsubscribe(this.schema.readHook);
  35125. }
  35126. this.schema.readHook = readHook;
  35127. this.hook("reading", readHook);
  35128. return constructor;
  35129. };
  35130. Table.prototype.defineClass = function () {
  35131. function Class(content) {
  35132. extend(this, content);
  35133. }
  35134. return this.mapToClass(Class);
  35135. };
  35136. Table.prototype.add = function (obj, key) {
  35137. var _this = this;
  35138. return this._trans('readwrite', function (trans) {
  35139. return _this.core.mutate({ trans: trans, type: 'add', keys: key != null ? [key] : null, values: [obj] });
  35140. }).then(function (res) { return res.numFailures ? DexiePromise.reject(res.failures[0]) : res.lastResult; })
  35141. .then(function (lastResult) {
  35142. if (!_this.core.schema.primaryKey.outbound) {
  35143. try {
  35144. setByKeyPath(obj, _this.core.schema.primaryKey.keyPath, lastResult);
  35145. }
  35146. catch (_) { }
  35147. }
  35148. return lastResult;
  35149. });
  35150. };
  35151. Table.prototype.update = function (keyOrObject, modifications) {
  35152. if (typeof modifications !== 'object' || isArray(modifications))
  35153. throw new exceptions.InvalidArgument("Modifications must be an object.");
  35154. if (typeof keyOrObject === 'object' && !isArray(keyOrObject)) {
  35155. keys(modifications).forEach(function (keyPath) {
  35156. setByKeyPath(keyOrObject, keyPath, modifications[keyPath]);
  35157. });
  35158. var key = getByKeyPath(keyOrObject, this.schema.primKey.keyPath);
  35159. if (key === undefined)
  35160. return rejection(new exceptions.InvalidArgument("Given object does not contain its primary key"));
  35161. return this.where(":id").equals(key).modify(modifications);
  35162. }
  35163. else {
  35164. return this.where(":id").equals(keyOrObject).modify(modifications);
  35165. }
  35166. };
  35167. Table.prototype.put = function (obj, key) {
  35168. var _this = this;
  35169. return this._trans('readwrite', function (trans) { return _this.core.mutate({ trans: trans, type: 'put', values: [obj], keys: key != null ? [key] : null }); })
  35170. .then(function (res) { return res.numFailures ? DexiePromise.reject(res.failures[0]) : res.lastResult; })
  35171. .then(function (lastResult) {
  35172. if (!_this.core.schema.primaryKey.outbound) {
  35173. try {
  35174. setByKeyPath(obj, _this.core.schema.primaryKey.keyPath, lastResult);
  35175. }
  35176. catch (_) { }
  35177. }
  35178. return lastResult;
  35179. });
  35180. };
  35181. Table.prototype.delete = function (key) {
  35182. var _this = this;
  35183. return this._trans('readwrite', function (trans) { return _this.core.mutate({ trans: trans, type: 'delete', keys: [key] }); })
  35184. .then(function (res) { return res.numFailures ? DexiePromise.reject(res.failures[0]) : undefined; });
  35185. };
  35186. Table.prototype.clear = function () {
  35187. var _this = this;
  35188. return this._trans('readwrite', function (trans) { return _this.core.mutate({ trans: trans, type: 'deleteRange', range: AnyRange }); })
  35189. .then(function (res) { return res.numFailures ? DexiePromise.reject(res.failures[0]) : undefined; });
  35190. };
  35191. Table.prototype.bulkGet = function (keys$$1) {
  35192. var _this = this;
  35193. return this._trans('readonly', function (trans) {
  35194. return _this.core.getMany({
  35195. keys: keys$$1,
  35196. trans: trans
  35197. }).then(function (result) { return result.map(function (res) { return _this.hook.reading.fire(res); }); });
  35198. });
  35199. };
  35200. Table.prototype.bulkAdd = function (objects, keysOrOptions, options) {
  35201. var _this = this;
  35202. var keys$$1 = Array.isArray(keysOrOptions) ? keysOrOptions : undefined;
  35203. options = options || (keys$$1 ? undefined : keysOrOptions);
  35204. var wantResults = options ? options.allKeys : undefined;
  35205. return this._trans('readwrite', function (trans) {
  35206. var outbound = _this.core.schema.primaryKey.outbound;
  35207. if (!outbound && keys$$1)
  35208. throw new exceptions.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");
  35209. if (keys$$1 && keys$$1.length !== objects.length)
  35210. throw new exceptions.InvalidArgument("Arguments objects and keys must have the same length");
  35211. var numObjects = objects.length;
  35212. return _this.core.mutate({ trans: trans, type: 'add', keys: keys$$1, values: objects, wantResults: wantResults })
  35213. .then(function (_a) {
  35214. var numFailures = _a.numFailures, results = _a.results, lastResult = _a.lastResult, failures = _a.failures;
  35215. var result = wantResults ? results : lastResult;
  35216. if (numFailures === 0)
  35217. return result;
  35218. throw new BulkError(_this.name + ".bulkAdd(): " + numFailures + " of " + numObjects + " operations failed", Object.keys(failures).map(function (pos) { return failures[pos]; }));
  35219. });
  35220. });
  35221. };
  35222. Table.prototype.bulkPut = function (objects, keysOrOptions, options) {
  35223. var _this = this;
  35224. var keys$$1 = Array.isArray(keysOrOptions) ? keysOrOptions : undefined;
  35225. options = options || (keys$$1 ? undefined : keysOrOptions);
  35226. var wantResults = options ? options.allKeys : undefined;
  35227. return this._trans('readwrite', function (trans) {
  35228. var outbound = _this.core.schema.primaryKey.outbound;
  35229. if (!outbound && keys$$1)
  35230. throw new exceptions.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");
  35231. if (keys$$1 && keys$$1.length !== objects.length)
  35232. throw new exceptions.InvalidArgument("Arguments objects and keys must have the same length");
  35233. var numObjects = objects.length;
  35234. return _this.core.mutate({ trans: trans, type: 'put', keys: keys$$1, values: objects, wantResults: wantResults })
  35235. .then(function (_a) {
  35236. var numFailures = _a.numFailures, results = _a.results, lastResult = _a.lastResult, failures = _a.failures;
  35237. var result = wantResults ? results : lastResult;
  35238. if (numFailures === 0)
  35239. return result;
  35240. throw new BulkError(_this.name + ".bulkPut(): " + numFailures + " of " + numObjects + " operations failed", Object.keys(failures).map(function (pos) { return failures[pos]; }));
  35241. });
  35242. });
  35243. };
  35244. Table.prototype.bulkDelete = function (keys$$1) {
  35245. var _this = this;
  35246. var numKeys = keys$$1.length;
  35247. return this._trans('readwrite', function (trans) {
  35248. return _this.core.mutate({ trans: trans, type: 'delete', keys: keys$$1 });
  35249. }).then(function (_a) {
  35250. var numFailures = _a.numFailures, lastResult = _a.lastResult, failures = _a.failures;
  35251. if (numFailures === 0)
  35252. return lastResult;
  35253. throw new BulkError(_this.name + ".bulkDelete(): " + numFailures + " of " + numKeys + " operations failed", failures);
  35254. });
  35255. };
  35256. return Table;
  35257. }());
  35258. function Events(ctx) {
  35259. var evs = {};
  35260. var rv = function (eventName, subscriber) {
  35261. if (subscriber) {
  35262. var i = arguments.length, args = new Array(i - 1);
  35263. while (--i)
  35264. args[i - 1] = arguments[i];
  35265. evs[eventName].subscribe.apply(null, args);
  35266. return ctx;
  35267. }
  35268. else if (typeof (eventName) === 'string') {
  35269. return evs[eventName];
  35270. }
  35271. };
  35272. rv.addEventType = add;
  35273. for (var i = 1, l = arguments.length; i < l; ++i) {
  35274. add(arguments[i]);
  35275. }
  35276. return rv;
  35277. function add(eventName, chainFunction, defaultFunction) {
  35278. if (typeof eventName === 'object')
  35279. return addConfiguredEvents(eventName);
  35280. if (!chainFunction)
  35281. chainFunction = reverseStoppableEventChain;
  35282. if (!defaultFunction)
  35283. defaultFunction = nop;
  35284. var context = {
  35285. subscribers: [],
  35286. fire: defaultFunction,
  35287. subscribe: function (cb) {
  35288. if (context.subscribers.indexOf(cb) === -1) {
  35289. context.subscribers.push(cb);
  35290. context.fire = chainFunction(context.fire, cb);
  35291. }
  35292. },
  35293. unsubscribe: function (cb) {
  35294. context.subscribers = context.subscribers.filter(function (fn) { return fn !== cb; });
  35295. context.fire = context.subscribers.reduce(chainFunction, defaultFunction);
  35296. }
  35297. };
  35298. evs[eventName] = rv[eventName] = context;
  35299. return context;
  35300. }
  35301. function addConfiguredEvents(cfg) {
  35302. keys(cfg).forEach(function (eventName) {
  35303. var args = cfg[eventName];
  35304. if (isArray(args)) {
  35305. add(eventName, cfg[eventName][0], cfg[eventName][1]);
  35306. }
  35307. else if (args === 'asap') {
  35308. var context = add(eventName, mirror, function fire() {
  35309. var i = arguments.length, args = new Array(i);
  35310. while (i--)
  35311. args[i] = arguments[i];
  35312. context.subscribers.forEach(function (fn) {
  35313. asap(function fireEvent() {
  35314. fn.apply(null, args);
  35315. });
  35316. });
  35317. });
  35318. }
  35319. else
  35320. throw new exceptions.InvalidArgument("Invalid event config");
  35321. });
  35322. }
  35323. }
  35324. function makeClassConstructor(prototype, constructor) {
  35325. derive(constructor).from({ prototype: prototype });
  35326. return constructor;
  35327. }
  35328. function createTableConstructor(db) {
  35329. return makeClassConstructor(Table.prototype, function Table$$1(name, tableSchema, trans) {
  35330. this.db = db;
  35331. this._tx = trans;
  35332. this.name = name;
  35333. this.schema = tableSchema;
  35334. this.hook = db._allTables[name] ? db._allTables[name].hook : Events(null, {
  35335. "creating": [hookCreatingChain, nop],
  35336. "reading": [pureFunctionChain, mirror],
  35337. "updating": [hookUpdatingChain, nop],
  35338. "deleting": [hookDeletingChain, nop]
  35339. });
  35340. });
  35341. }
  35342. function isPlainKeyRange(ctx, ignoreLimitFilter) {
  35343. return !(ctx.filter || ctx.algorithm || ctx.or) &&
  35344. (ignoreLimitFilter ? ctx.justLimit : !ctx.replayFilter);
  35345. }
  35346. function addFilter(ctx, fn) {
  35347. ctx.filter = combine(ctx.filter, fn);
  35348. }
  35349. function addReplayFilter(ctx, factory, isLimitFilter) {
  35350. var curr = ctx.replayFilter;
  35351. ctx.replayFilter = curr ? function () { return combine(curr(), factory()); } : factory;
  35352. ctx.justLimit = isLimitFilter && !curr;
  35353. }
  35354. function addMatchFilter(ctx, fn) {
  35355. ctx.isMatch = combine(ctx.isMatch, fn);
  35356. }
  35357. function getIndexOrStore(ctx, coreSchema) {
  35358. if (ctx.isPrimKey)
  35359. return coreSchema.primaryKey;
  35360. var index = coreSchema.getIndexByKeyPath(ctx.index);
  35361. if (!index)
  35362. throw new exceptions.Schema("KeyPath " + ctx.index + " on object store " + coreSchema.name + " is not indexed");
  35363. return index;
  35364. }
  35365. function openCursor(ctx, coreTable, trans) {
  35366. var index = getIndexOrStore(ctx, coreTable.schema);
  35367. return coreTable.openCursor({
  35368. trans: trans,
  35369. values: !ctx.keysOnly,
  35370. reverse: ctx.dir === 'prev',
  35371. unique: !!ctx.unique,
  35372. query: {
  35373. index: index,
  35374. range: ctx.range
  35375. }
  35376. });
  35377. }
  35378. function iter(ctx, fn, coreTrans, coreTable) {
  35379. var filter = ctx.replayFilter ? combine(ctx.filter, ctx.replayFilter()) : ctx.filter;
  35380. if (!ctx.or) {
  35381. return iterate(openCursor(ctx, coreTable, coreTrans), combine(ctx.algorithm, filter), fn, !ctx.keysOnly && ctx.valueMapper);
  35382. }
  35383. else {
  35384. var set_1 = {};
  35385. var union = function (item, cursor, advance) {
  35386. if (!filter || filter(cursor, advance, function (result) { return cursor.stop(result); }, function (err) { return cursor.fail(err); })) {
  35387. var primaryKey = cursor.primaryKey;
  35388. var key = '' + primaryKey;
  35389. if (key === '[object ArrayBuffer]')
  35390. key = '' + new Uint8Array(primaryKey);
  35391. if (!hasOwn(set_1, key)) {
  35392. set_1[key] = true;
  35393. fn(item, cursor, advance);
  35394. }
  35395. }
  35396. };
  35397. return Promise.all([
  35398. ctx.or._iterate(union, coreTrans),
  35399. iterate(openCursor(ctx, coreTable, coreTrans), ctx.algorithm, union, !ctx.keysOnly && ctx.valueMapper)
  35400. ]);
  35401. }
  35402. }
  35403. function iterate(cursorPromise, filter, fn, valueMapper) {
  35404. var mappedFn = valueMapper ? function (x, c, a) { return fn(valueMapper(x), c, a); } : fn;
  35405. var wrappedFn = wrap(mappedFn);
  35406. return cursorPromise.then(function (cursor) {
  35407. if (cursor) {
  35408. return cursor.start(function () {
  35409. var c = function () { return cursor.continue(); };
  35410. if (!filter || filter(cursor, function (advancer) { return c = advancer; }, function (val) { cursor.stop(val); c = nop; }, function (e) { cursor.fail(e); c = nop; }))
  35411. wrappedFn(cursor.value, cursor, function (advancer) { return c = advancer; });
  35412. c();
  35413. });
  35414. }
  35415. });
  35416. }
  35417. var Collection = (function () {
  35418. function Collection() {
  35419. }
  35420. Collection.prototype._read = function (fn, cb) {
  35421. var ctx = this._ctx;
  35422. return ctx.error ?
  35423. ctx.table._trans(null, rejection.bind(null, ctx.error)) :
  35424. ctx.table._trans('readonly', fn).then(cb);
  35425. };
  35426. Collection.prototype._write = function (fn) {
  35427. var ctx = this._ctx;
  35428. return ctx.error ?
  35429. ctx.table._trans(null, rejection.bind(null, ctx.error)) :
  35430. ctx.table._trans('readwrite', fn, "locked");
  35431. };
  35432. Collection.prototype._addAlgorithm = function (fn) {
  35433. var ctx = this._ctx;
  35434. ctx.algorithm = combine(ctx.algorithm, fn);
  35435. };
  35436. Collection.prototype._iterate = function (fn, coreTrans) {
  35437. return iter(this._ctx, fn, coreTrans, this._ctx.table.core);
  35438. };
  35439. Collection.prototype.clone = function (props$$1) {
  35440. var rv = Object.create(this.constructor.prototype), ctx = Object.create(this._ctx);
  35441. if (props$$1)
  35442. extend(ctx, props$$1);
  35443. rv._ctx = ctx;
  35444. return rv;
  35445. };
  35446. Collection.prototype.raw = function () {
  35447. this._ctx.valueMapper = null;
  35448. return this;
  35449. };
  35450. Collection.prototype.each = function (fn) {
  35451. var ctx = this._ctx;
  35452. return this._read(function (trans) { return iter(ctx, fn, trans, ctx.table.core); });
  35453. };
  35454. Collection.prototype.count = function (cb) {
  35455. var _this = this;
  35456. return this._read(function (trans) {
  35457. var ctx = _this._ctx;
  35458. var coreTable = ctx.table.core;
  35459. if (isPlainKeyRange(ctx, true)) {
  35460. return coreTable.count({
  35461. trans: trans,
  35462. query: {
  35463. index: getIndexOrStore(ctx, coreTable.schema),
  35464. range: ctx.range
  35465. }
  35466. }).then(function (count) { return Math.min(count, ctx.limit); });
  35467. }
  35468. else {
  35469. var count = 0;
  35470. return iter(ctx, function () { ++count; return false; }, trans, coreTable)
  35471. .then(function () { return count; });
  35472. }
  35473. }).then(cb);
  35474. };
  35475. Collection.prototype.sortBy = function (keyPath, cb) {
  35476. var parts = keyPath.split('.').reverse(), lastPart = parts[0], lastIndex = parts.length - 1;
  35477. function getval(obj, i) {
  35478. if (i)
  35479. return getval(obj[parts[i]], i - 1);
  35480. return obj[lastPart];
  35481. }
  35482. var order = this._ctx.dir === "next" ? 1 : -1;
  35483. function sorter(a, b) {
  35484. var aVal = getval(a, lastIndex), bVal = getval(b, lastIndex);
  35485. return aVal < bVal ? -order : aVal > bVal ? order : 0;
  35486. }
  35487. return this.toArray(function (a) {
  35488. return a.sort(sorter);
  35489. }).then(cb);
  35490. };
  35491. Collection.prototype.toArray = function (cb) {
  35492. var _this = this;
  35493. return this._read(function (trans) {
  35494. var ctx = _this._ctx;
  35495. if (ctx.dir === 'next' && isPlainKeyRange(ctx, true) && ctx.limit > 0) {
  35496. var valueMapper_1 = ctx.valueMapper;
  35497. var index = getIndexOrStore(ctx, ctx.table.core.schema);
  35498. return ctx.table.core.query({
  35499. trans: trans,
  35500. limit: ctx.limit,
  35501. values: true,
  35502. query: {
  35503. index: index,
  35504. range: ctx.range
  35505. }
  35506. }).then(function (_a) {
  35507. var result = _a.result;
  35508. return valueMapper_1 ? result.map(valueMapper_1) : result;
  35509. });
  35510. }
  35511. else {
  35512. var a_1 = [];
  35513. return iter(ctx, function (item) { return a_1.push(item); }, trans, ctx.table.core).then(function () { return a_1; });
  35514. }
  35515. }, cb);
  35516. };
  35517. Collection.prototype.offset = function (offset) {
  35518. var ctx = this._ctx;
  35519. if (offset <= 0)
  35520. return this;
  35521. ctx.offset += offset;
  35522. if (isPlainKeyRange(ctx)) {
  35523. addReplayFilter(ctx, function () {
  35524. var offsetLeft = offset;
  35525. return function (cursor, advance) {
  35526. if (offsetLeft === 0)
  35527. return true;
  35528. if (offsetLeft === 1) {
  35529. --offsetLeft;
  35530. return false;
  35531. }
  35532. advance(function () {
  35533. cursor.advance(offsetLeft);
  35534. offsetLeft = 0;
  35535. });
  35536. return false;
  35537. };
  35538. });
  35539. }
  35540. else {
  35541. addReplayFilter(ctx, function () {
  35542. var offsetLeft = offset;
  35543. return function () { return (--offsetLeft < 0); };
  35544. });
  35545. }
  35546. return this;
  35547. };
  35548. Collection.prototype.limit = function (numRows) {
  35549. this._ctx.limit = Math.min(this._ctx.limit, numRows);
  35550. addReplayFilter(this._ctx, function () {
  35551. var rowsLeft = numRows;
  35552. return function (cursor, advance, resolve) {
  35553. if (--rowsLeft <= 0)
  35554. advance(resolve);
  35555. return rowsLeft >= 0;
  35556. };
  35557. }, true);
  35558. return this;
  35559. };
  35560. Collection.prototype.until = function (filterFunction, bIncludeStopEntry) {
  35561. addFilter(this._ctx, function (cursor, advance, resolve) {
  35562. if (filterFunction(cursor.value)) {
  35563. advance(resolve);
  35564. return bIncludeStopEntry;
  35565. }
  35566. else {
  35567. return true;
  35568. }
  35569. });
  35570. return this;
  35571. };
  35572. Collection.prototype.first = function (cb) {
  35573. return this.limit(1).toArray(function (a) { return a[0]; }).then(cb);
  35574. };
  35575. Collection.prototype.last = function (cb) {
  35576. return this.reverse().first(cb);
  35577. };
  35578. Collection.prototype.filter = function (filterFunction) {
  35579. addFilter(this._ctx, function (cursor) {
  35580. return filterFunction(cursor.value);
  35581. });
  35582. addMatchFilter(this._ctx, filterFunction);
  35583. return this;
  35584. };
  35585. Collection.prototype.and = function (filter) {
  35586. return this.filter(filter);
  35587. };
  35588. Collection.prototype.or = function (indexName) {
  35589. return new this.db.WhereClause(this._ctx.table, indexName, this);
  35590. };
  35591. Collection.prototype.reverse = function () {
  35592. this._ctx.dir = (this._ctx.dir === "prev" ? "next" : "prev");
  35593. if (this._ondirectionchange)
  35594. this._ondirectionchange(this._ctx.dir);
  35595. return this;
  35596. };
  35597. Collection.prototype.desc = function () {
  35598. return this.reverse();
  35599. };
  35600. Collection.prototype.eachKey = function (cb) {
  35601. var ctx = this._ctx;
  35602. ctx.keysOnly = !ctx.isMatch;
  35603. return this.each(function (val, cursor) { cb(cursor.key, cursor); });
  35604. };
  35605. Collection.prototype.eachUniqueKey = function (cb) {
  35606. this._ctx.unique = "unique";
  35607. return this.eachKey(cb);
  35608. };
  35609. Collection.prototype.eachPrimaryKey = function (cb) {
  35610. var ctx = this._ctx;
  35611. ctx.keysOnly = !ctx.isMatch;
  35612. return this.each(function (val, cursor) { cb(cursor.primaryKey, cursor); });
  35613. };
  35614. Collection.prototype.keys = function (cb) {
  35615. var ctx = this._ctx;
  35616. ctx.keysOnly = !ctx.isMatch;
  35617. var a = [];
  35618. return this.each(function (item, cursor) {
  35619. a.push(cursor.key);
  35620. }).then(function () {
  35621. return a;
  35622. }).then(cb);
  35623. };
  35624. Collection.prototype.primaryKeys = function (cb) {
  35625. var ctx = this._ctx;
  35626. if (ctx.dir === 'next' && isPlainKeyRange(ctx, true) && ctx.limit > 0) {
  35627. return this._read(function (trans) {
  35628. var index = getIndexOrStore(ctx, ctx.table.core.schema);
  35629. return ctx.table.core.query({
  35630. trans: trans,
  35631. values: false,
  35632. limit: ctx.limit,
  35633. query: {
  35634. index: index,
  35635. range: ctx.range
  35636. }
  35637. });
  35638. }).then(function (_a) {
  35639. var result = _a.result;
  35640. return result;
  35641. }).then(cb);
  35642. }
  35643. ctx.keysOnly = !ctx.isMatch;
  35644. var a = [];
  35645. return this.each(function (item, cursor) {
  35646. a.push(cursor.primaryKey);
  35647. }).then(function () {
  35648. return a;
  35649. }).then(cb);
  35650. };
  35651. Collection.prototype.uniqueKeys = function (cb) {
  35652. this._ctx.unique = "unique";
  35653. return this.keys(cb);
  35654. };
  35655. Collection.prototype.firstKey = function (cb) {
  35656. return this.limit(1).keys(function (a) { return a[0]; }).then(cb);
  35657. };
  35658. Collection.prototype.lastKey = function (cb) {
  35659. return this.reverse().firstKey(cb);
  35660. };
  35661. Collection.prototype.distinct = function () {
  35662. var ctx = this._ctx, idx = ctx.index && ctx.table.schema.idxByName[ctx.index];
  35663. if (!idx || !idx.multi)
  35664. return this;
  35665. var set = {};
  35666. addFilter(this._ctx, function (cursor) {
  35667. var strKey = cursor.primaryKey.toString();
  35668. var found = hasOwn(set, strKey);
  35669. set[strKey] = true;
  35670. return !found;
  35671. });
  35672. return this;
  35673. };
  35674. Collection.prototype.modify = function (changes) {
  35675. var _this = this;
  35676. var ctx = this._ctx;
  35677. return this._write(function (trans) {
  35678. var modifyer;
  35679. if (typeof changes === 'function') {
  35680. modifyer = changes;
  35681. }
  35682. else {
  35683. var keyPaths = keys(changes);
  35684. var numKeys = keyPaths.length;
  35685. modifyer = function (item) {
  35686. var anythingModified = false;
  35687. for (var i = 0; i < numKeys; ++i) {
  35688. var keyPath = keyPaths[i], val = changes[keyPath];
  35689. if (getByKeyPath(item, keyPath) !== val) {
  35690. setByKeyPath(item, keyPath, val);
  35691. anythingModified = true;
  35692. }
  35693. }
  35694. return anythingModified;
  35695. };
  35696. }
  35697. var coreTable = ctx.table.core;
  35698. var _a = coreTable.schema.primaryKey, outbound = _a.outbound, extractKey = _a.extractKey;
  35699. var limit = 'testmode' in Dexie ? 1 : 2000;
  35700. var cmp = _this.db.core.cmp;
  35701. var totalFailures = [];
  35702. var successCount = 0;
  35703. var failedKeys = [];
  35704. var applyMutateResult = function (expectedCount, res) {
  35705. var failures = res.failures, numFailures = res.numFailures;
  35706. successCount += expectedCount - numFailures;
  35707. for (var _i = 0, _a = keys(failures); _i < _a.length; _i++) {
  35708. var pos = _a[_i];
  35709. totalFailures.push(failures[pos]);
  35710. }
  35711. };
  35712. return _this.clone().primaryKeys().then(function (keys$$1) {
  35713. var nextChunk = function (offset) {
  35714. var count = Math.min(limit, keys$$1.length - offset);
  35715. return coreTable.getMany({ trans: trans, keys: keys$$1.slice(offset, offset + count) }).then(function (values) {
  35716. var addValues = [];
  35717. var putValues = [];
  35718. var putKeys = outbound ? [] : null;
  35719. var deleteKeys = [];
  35720. for (var i = 0; i < count; ++i) {
  35721. var origValue = values[i];
  35722. var ctx_1 = {
  35723. value: deepClone(origValue),
  35724. primKey: keys$$1[offset + i]
  35725. };
  35726. if (modifyer.call(ctx_1, ctx_1.value, ctx_1) !== false) {
  35727. if (ctx_1.value == null) {
  35728. deleteKeys.push(keys$$1[offset + i]);
  35729. }
  35730. else if (!outbound && cmp(extractKey(origValue), extractKey(ctx_1.value)) !== 0) {
  35731. deleteKeys.push(keys$$1[offset + i]);
  35732. addValues.push(ctx_1.value);
  35733. }
  35734. else {
  35735. putValues.push(ctx_1.value);
  35736. if (outbound)
  35737. putKeys.push(keys$$1[offset + i]);
  35738. }
  35739. }
  35740. }
  35741. return Promise.resolve(addValues.length > 0 &&
  35742. coreTable.mutate({ trans: trans, type: 'add', values: addValues })
  35743. .then(function (res) {
  35744. for (var pos in res.failures) {
  35745. deleteKeys.splice(parseInt(pos), 1);
  35746. }
  35747. applyMutateResult(addValues.length, res);
  35748. })).then(function (res) { return putValues.length > 0 &&
  35749. coreTable.mutate({ trans: trans, type: 'put', keys: putKeys, values: putValues })
  35750. .then(function (res) { return applyMutateResult(putValues.length, res); }); }).then(function () { return deleteKeys.length > 0 &&
  35751. coreTable.mutate({ trans: trans, type: 'delete', keys: deleteKeys })
  35752. .then(function (res) { return applyMutateResult(deleteKeys.length, res); }); }).then(function () {
  35753. return keys$$1.length > offset + count && nextChunk(offset + limit);
  35754. });
  35755. });
  35756. };
  35757. return nextChunk(0).then(function () {
  35758. if (totalFailures.length > 0)
  35759. throw new ModifyError("Error modifying one or more objects", totalFailures, successCount, failedKeys);
  35760. return keys$$1.length;
  35761. });
  35762. });
  35763. });
  35764. };
  35765. Collection.prototype.delete = function () {
  35766. var ctx = this._ctx, range = ctx.range;
  35767. if (isPlainKeyRange(ctx) &&
  35768. ((ctx.isPrimKey && !hangsOnDeleteLargeKeyRange) || range.type === 3 ))
  35769. {
  35770. return this._write(function (trans) {
  35771. var primaryKey = ctx.table.core.schema.primaryKey;
  35772. var coreRange = range;
  35773. return ctx.table.core.count({ trans: trans, query: { index: primaryKey, range: coreRange } }).then(function (count) {
  35774. return ctx.table.core.mutate({ trans: trans, type: 'deleteRange', range: coreRange })
  35775. .then(function (_a) {
  35776. var failures = _a.failures, lastResult = _a.lastResult, results = _a.results, numFailures = _a.numFailures;
  35777. if (numFailures)
  35778. throw new ModifyError("Could not delete some values", Object.keys(failures).map(function (pos) { return failures[pos]; }), count - numFailures);
  35779. return count - numFailures;
  35780. });
  35781. });
  35782. });
  35783. }
  35784. return this.modify(function (value, ctx) { return ctx.value = null; });
  35785. };
  35786. return Collection;
  35787. }());
  35788. function createCollectionConstructor(db) {
  35789. return makeClassConstructor(Collection.prototype, function Collection$$1(whereClause, keyRangeGenerator) {
  35790. this.db = db;
  35791. var keyRange = AnyRange, error = null;
  35792. if (keyRangeGenerator)
  35793. try {
  35794. keyRange = keyRangeGenerator();
  35795. }
  35796. catch (ex) {
  35797. error = ex;
  35798. }
  35799. var whereCtx = whereClause._ctx;
  35800. var table = whereCtx.table;
  35801. var readingHook = table.hook.reading.fire;
  35802. this._ctx = {
  35803. table: table,
  35804. index: whereCtx.index,
  35805. isPrimKey: (!whereCtx.index || (table.schema.primKey.keyPath && whereCtx.index === table.schema.primKey.name)),
  35806. range: keyRange,
  35807. keysOnly: false,
  35808. dir: "next",
  35809. unique: "",
  35810. algorithm: null,
  35811. filter: null,
  35812. replayFilter: null,
  35813. justLimit: true,
  35814. isMatch: null,
  35815. offset: 0,
  35816. limit: Infinity,
  35817. error: error,
  35818. or: whereCtx.or,
  35819. valueMapper: readingHook !== mirror ? readingHook : null
  35820. };
  35821. });
  35822. }
  35823. function simpleCompare(a, b) {
  35824. return a < b ? -1 : a === b ? 0 : 1;
  35825. }
  35826. function simpleCompareReverse(a, b) {
  35827. return a > b ? -1 : a === b ? 0 : 1;
  35828. }
  35829. function fail(collectionOrWhereClause, err, T) {
  35830. var collection = collectionOrWhereClause instanceof WhereClause ?
  35831. new collectionOrWhereClause.Collection(collectionOrWhereClause) :
  35832. collectionOrWhereClause;
  35833. collection._ctx.error = T ? new T(err) : new TypeError(err);
  35834. return collection;
  35835. }
  35836. function emptyCollection(whereClause) {
  35837. return new whereClause.Collection(whereClause, function () { return rangeEqual(""); }).limit(0);
  35838. }
  35839. function upperFactory(dir) {
  35840. return dir === "next" ?
  35841. function (s) { return s.toUpperCase(); } :
  35842. function (s) { return s.toLowerCase(); };
  35843. }
  35844. function lowerFactory(dir) {
  35845. return dir === "next" ?
  35846. function (s) { return s.toLowerCase(); } :
  35847. function (s) { return s.toUpperCase(); };
  35848. }
  35849. function nextCasing(key, lowerKey, upperNeedle, lowerNeedle, cmp, dir) {
  35850. var length = Math.min(key.length, lowerNeedle.length);
  35851. var llp = -1;
  35852. for (var i = 0; i < length; ++i) {
  35853. var lwrKeyChar = lowerKey[i];
  35854. if (lwrKeyChar !== lowerNeedle[i]) {
  35855. if (cmp(key[i], upperNeedle[i]) < 0)
  35856. return key.substr(0, i) + upperNeedle[i] + upperNeedle.substr(i + 1);
  35857. if (cmp(key[i], lowerNeedle[i]) < 0)
  35858. return key.substr(0, i) + lowerNeedle[i] + upperNeedle.substr(i + 1);
  35859. if (llp >= 0)
  35860. return key.substr(0, llp) + lowerKey[llp] + upperNeedle.substr(llp + 1);
  35861. return null;
  35862. }
  35863. if (cmp(key[i], lwrKeyChar) < 0)
  35864. llp = i;
  35865. }
  35866. if (length < lowerNeedle.length && dir === "next")
  35867. return key + upperNeedle.substr(key.length);
  35868. if (length < key.length && dir === "prev")
  35869. return key.substr(0, upperNeedle.length);
  35870. return (llp < 0 ? null : key.substr(0, llp) + lowerNeedle[llp] + upperNeedle.substr(llp + 1));
  35871. }
  35872. function addIgnoreCaseAlgorithm(whereClause, match, needles, suffix) {
  35873. var upper, lower, compare, upperNeedles, lowerNeedles, direction, nextKeySuffix, needlesLen = needles.length;
  35874. if (!needles.every(function (s) { return typeof s === 'string'; })) {
  35875. return fail(whereClause, STRING_EXPECTED);
  35876. }
  35877. function initDirection(dir) {
  35878. upper = upperFactory(dir);
  35879. lower = lowerFactory(dir);
  35880. compare = (dir === "next" ? simpleCompare : simpleCompareReverse);
  35881. var needleBounds = needles.map(function (needle) {
  35882. return { lower: lower(needle), upper: upper(needle) };
  35883. }).sort(function (a, b) {
  35884. return compare(a.lower, b.lower);
  35885. });
  35886. upperNeedles = needleBounds.map(function (nb) { return nb.upper; });
  35887. lowerNeedles = needleBounds.map(function (nb) { return nb.lower; });
  35888. direction = dir;
  35889. nextKeySuffix = (dir === "next" ? "" : suffix);
  35890. }
  35891. initDirection("next");
  35892. var c = new whereClause.Collection(whereClause, function () { return createRange(upperNeedles[0], lowerNeedles[needlesLen - 1] + suffix); });
  35893. c._ondirectionchange = function (direction) {
  35894. initDirection(direction);
  35895. };
  35896. var firstPossibleNeedle = 0;
  35897. c._addAlgorithm(function (cursor, advance, resolve) {
  35898. var key = cursor.key;
  35899. if (typeof key !== 'string')
  35900. return false;
  35901. var lowerKey = lower(key);
  35902. if (match(lowerKey, lowerNeedles, firstPossibleNeedle)) {
  35903. return true;
  35904. }
  35905. else {
  35906. var lowestPossibleCasing = null;
  35907. for (var i = firstPossibleNeedle; i < needlesLen; ++i) {
  35908. var casing = nextCasing(key, lowerKey, upperNeedles[i], lowerNeedles[i], compare, direction);
  35909. if (casing === null && lowestPossibleCasing === null)
  35910. firstPossibleNeedle = i + 1;
  35911. else if (lowestPossibleCasing === null || compare(lowestPossibleCasing, casing) > 0) {
  35912. lowestPossibleCasing = casing;
  35913. }
  35914. }
  35915. if (lowestPossibleCasing !== null) {
  35916. advance(function () { cursor.continue(lowestPossibleCasing + nextKeySuffix); });
  35917. }
  35918. else {
  35919. advance(resolve);
  35920. }
  35921. return false;
  35922. }
  35923. });
  35924. return c;
  35925. }
  35926. function createRange(lower, upper, lowerOpen, upperOpen) {
  35927. return {
  35928. type: 2 ,
  35929. lower: lower,
  35930. upper: upper,
  35931. lowerOpen: lowerOpen,
  35932. upperOpen: upperOpen
  35933. };
  35934. }
  35935. function rangeEqual(value) {
  35936. return {
  35937. type: 1 ,
  35938. lower: value,
  35939. upper: value
  35940. };
  35941. }
  35942. var WhereClause = (function () {
  35943. function WhereClause() {
  35944. }
  35945. Object.defineProperty(WhereClause.prototype, "Collection", {
  35946. get: function () {
  35947. return this._ctx.table.db.Collection;
  35948. },
  35949. enumerable: true,
  35950. configurable: true
  35951. });
  35952. WhereClause.prototype.between = function (lower, upper, includeLower, includeUpper) {
  35953. includeLower = includeLower !== false;
  35954. includeUpper = includeUpper === true;
  35955. try {
  35956. if ((this._cmp(lower, upper) > 0) ||
  35957. (this._cmp(lower, upper) === 0 && (includeLower || includeUpper) && !(includeLower && includeUpper)))
  35958. return emptyCollection(this);
  35959. return new this.Collection(this, function () { return createRange(lower, upper, !includeLower, !includeUpper); });
  35960. }
  35961. catch (e) {
  35962. return fail(this, INVALID_KEY_ARGUMENT);
  35963. }
  35964. };
  35965. WhereClause.prototype.equals = function (value) {
  35966. return new this.Collection(this, function () { return rangeEqual(value); });
  35967. };
  35968. WhereClause.prototype.above = function (value) {
  35969. if (value == null)
  35970. return fail(this, INVALID_KEY_ARGUMENT);
  35971. return new this.Collection(this, function () { return createRange(value, undefined, true); });
  35972. };
  35973. WhereClause.prototype.aboveOrEqual = function (value) {
  35974. if (value == null)
  35975. return fail(this, INVALID_KEY_ARGUMENT);
  35976. return new this.Collection(this, function () { return createRange(value, undefined, false); });
  35977. };
  35978. WhereClause.prototype.below = function (value) {
  35979. if (value == null)
  35980. return fail(this, INVALID_KEY_ARGUMENT);
  35981. return new this.Collection(this, function () { return createRange(undefined, value, false, true); });
  35982. };
  35983. WhereClause.prototype.belowOrEqual = function (value) {
  35984. if (value == null)
  35985. return fail(this, INVALID_KEY_ARGUMENT);
  35986. return new this.Collection(this, function () { return createRange(undefined, value); });
  35987. };
  35988. WhereClause.prototype.startsWith = function (str) {
  35989. if (typeof str !== 'string')
  35990. return fail(this, STRING_EXPECTED);
  35991. return this.between(str, str + maxString, true, true);
  35992. };
  35993. WhereClause.prototype.startsWithIgnoreCase = function (str) {
  35994. if (str === "")
  35995. return this.startsWith(str);
  35996. return addIgnoreCaseAlgorithm(this, function (x, a) { return x.indexOf(a[0]) === 0; }, [str], maxString);
  35997. };
  35998. WhereClause.prototype.equalsIgnoreCase = function (str) {
  35999. return addIgnoreCaseAlgorithm(this, function (x, a) { return x === a[0]; }, [str], "");
  36000. };
  36001. WhereClause.prototype.anyOfIgnoreCase = function () {
  36002. var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);
  36003. if (set.length === 0)
  36004. return emptyCollection(this);
  36005. return addIgnoreCaseAlgorithm(this, function (x, a) { return a.indexOf(x) !== -1; }, set, "");
  36006. };
  36007. WhereClause.prototype.startsWithAnyOfIgnoreCase = function () {
  36008. var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);
  36009. if (set.length === 0)
  36010. return emptyCollection(this);
  36011. return addIgnoreCaseAlgorithm(this, function (x, a) { return a.some(function (n) { return x.indexOf(n) === 0; }); }, set, maxString);
  36012. };
  36013. WhereClause.prototype.anyOf = function () {
  36014. var _this = this;
  36015. var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);
  36016. var compare = this._cmp;
  36017. try {
  36018. set.sort(compare);
  36019. }
  36020. catch (e) {
  36021. return fail(this, INVALID_KEY_ARGUMENT);
  36022. }
  36023. if (set.length === 0)
  36024. return emptyCollection(this);
  36025. var c = new this.Collection(this, function () { return createRange(set[0], set[set.length - 1]); });
  36026. c._ondirectionchange = function (direction) {
  36027. compare = (direction === "next" ?
  36028. _this._ascending :
  36029. _this._descending);
  36030. set.sort(compare);
  36031. };
  36032. var i = 0;
  36033. c._addAlgorithm(function (cursor, advance, resolve) {
  36034. var key = cursor.key;
  36035. while (compare(key, set[i]) > 0) {
  36036. ++i;
  36037. if (i === set.length) {
  36038. advance(resolve);
  36039. return false;
  36040. }
  36041. }
  36042. if (compare(key, set[i]) === 0) {
  36043. return true;
  36044. }
  36045. else {
  36046. advance(function () { cursor.continue(set[i]); });
  36047. return false;
  36048. }
  36049. });
  36050. return c;
  36051. };
  36052. WhereClause.prototype.notEqual = function (value) {
  36053. return this.inAnyRange([[minKey, value], [value, this.db._maxKey]], { includeLowers: false, includeUppers: false });
  36054. };
  36055. WhereClause.prototype.noneOf = function () {
  36056. var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);
  36057. if (set.length === 0)
  36058. return new this.Collection(this);
  36059. try {
  36060. set.sort(this._ascending);
  36061. }
  36062. catch (e) {
  36063. return fail(this, INVALID_KEY_ARGUMENT);
  36064. }
  36065. var ranges = set.reduce(function (res, val) { return res ?
  36066. res.concat([[res[res.length - 1][1], val]]) :
  36067. [[minKey, val]]; }, null);
  36068. ranges.push([set[set.length - 1], this.db._maxKey]);
  36069. return this.inAnyRange(ranges, { includeLowers: false, includeUppers: false });
  36070. };
  36071. WhereClause.prototype.inAnyRange = function (ranges, options) {
  36072. var _this = this;
  36073. var cmp = this._cmp, ascending = this._ascending, descending = this._descending, min = this._min, max = this._max;
  36074. if (ranges.length === 0)
  36075. return emptyCollection(this);
  36076. if (!ranges.every(function (range) {
  36077. return range[0] !== undefined &&
  36078. range[1] !== undefined &&
  36079. ascending(range[0], range[1]) <= 0;
  36080. })) {
  36081. return fail(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", exceptions.InvalidArgument);
  36082. }
  36083. var includeLowers = !options || options.includeLowers !== false;
  36084. var includeUppers = options && options.includeUppers === true;
  36085. function addRange(ranges, newRange) {
  36086. var i = 0, l = ranges.length;
  36087. for (; i < l; ++i) {
  36088. var range = ranges[i];
  36089. if (cmp(newRange[0], range[1]) < 0 && cmp(newRange[1], range[0]) > 0) {
  36090. range[0] = min(range[0], newRange[0]);
  36091. range[1] = max(range[1], newRange[1]);
  36092. break;
  36093. }
  36094. }
  36095. if (i === l)
  36096. ranges.push(newRange);
  36097. return ranges;
  36098. }
  36099. var sortDirection = ascending;
  36100. function rangeSorter(a, b) { return sortDirection(a[0], b[0]); }
  36101. var set;
  36102. try {
  36103. set = ranges.reduce(addRange, []);
  36104. set.sort(rangeSorter);
  36105. }
  36106. catch (ex) {
  36107. return fail(this, INVALID_KEY_ARGUMENT);
  36108. }
  36109. var rangePos = 0;
  36110. var keyIsBeyondCurrentEntry = includeUppers ?
  36111. function (key) { return ascending(key, set[rangePos][1]) > 0; } :
  36112. function (key) { return ascending(key, set[rangePos][1]) >= 0; };
  36113. var keyIsBeforeCurrentEntry = includeLowers ?
  36114. function (key) { return descending(key, set[rangePos][0]) > 0; } :
  36115. function (key) { return descending(key, set[rangePos][0]) >= 0; };
  36116. function keyWithinCurrentRange(key) {
  36117. return !keyIsBeyondCurrentEntry(key) && !keyIsBeforeCurrentEntry(key);
  36118. }
  36119. var checkKey = keyIsBeyondCurrentEntry;
  36120. var c = new this.Collection(this, function () { return createRange(set[0][0], set[set.length - 1][1], !includeLowers, !includeUppers); });
  36121. c._ondirectionchange = function (direction) {
  36122. if (direction === "next") {
  36123. checkKey = keyIsBeyondCurrentEntry;
  36124. sortDirection = ascending;
  36125. }
  36126. else {
  36127. checkKey = keyIsBeforeCurrentEntry;
  36128. sortDirection = descending;
  36129. }
  36130. set.sort(rangeSorter);
  36131. };
  36132. c._addAlgorithm(function (cursor, advance, resolve) {
  36133. var key = cursor.key;
  36134. while (checkKey(key)) {
  36135. ++rangePos;
  36136. if (rangePos === set.length) {
  36137. advance(resolve);
  36138. return false;
  36139. }
  36140. }
  36141. if (keyWithinCurrentRange(key)) {
  36142. return true;
  36143. }
  36144. else if (_this._cmp(key, set[rangePos][1]) === 0 || _this._cmp(key, set[rangePos][0]) === 0) {
  36145. return false;
  36146. }
  36147. else {
  36148. advance(function () {
  36149. if (sortDirection === ascending)
  36150. cursor.continue(set[rangePos][0]);
  36151. else
  36152. cursor.continue(set[rangePos][1]);
  36153. });
  36154. return false;
  36155. }
  36156. });
  36157. return c;
  36158. };
  36159. WhereClause.prototype.startsWithAnyOf = function () {
  36160. var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);
  36161. if (!set.every(function (s) { return typeof s === 'string'; })) {
  36162. return fail(this, "startsWithAnyOf() only works with strings");
  36163. }
  36164. if (set.length === 0)
  36165. return emptyCollection(this);
  36166. return this.inAnyRange(set.map(function (str) { return [str, str + maxString]; }));
  36167. };
  36168. return WhereClause;
  36169. }());
  36170. function createWhereClauseConstructor(db) {
  36171. return makeClassConstructor(WhereClause.prototype, function WhereClause$$1(table, index, orCollection) {
  36172. this.db = db;
  36173. this._ctx = {
  36174. table: table,
  36175. index: index === ":id" ? null : index,
  36176. or: orCollection
  36177. };
  36178. var indexedDB = db._deps.indexedDB;
  36179. if (!indexedDB)
  36180. throw new exceptions.MissingAPI("indexedDB API missing");
  36181. this._cmp = this._ascending = indexedDB.cmp.bind(indexedDB);
  36182. this._descending = function (a, b) { return indexedDB.cmp(b, a); };
  36183. this._max = function (a, b) { return indexedDB.cmp(a, b) > 0 ? a : b; };
  36184. this._min = function (a, b) { return indexedDB.cmp(a, b) < 0 ? a : b; };
  36185. this._IDBKeyRange = db._deps.IDBKeyRange;
  36186. });
  36187. }
  36188. function safariMultiStoreFix(storeNames) {
  36189. return storeNames.length === 1 ? storeNames[0] : storeNames;
  36190. }
  36191. function getMaxKey(IdbKeyRange) {
  36192. try {
  36193. IdbKeyRange.only([[]]);
  36194. return [[]];
  36195. }
  36196. catch (e) {
  36197. return maxString;
  36198. }
  36199. }
  36200. function eventRejectHandler(reject) {
  36201. return wrap(function (event) {
  36202. preventDefault(event);
  36203. reject(event.target.error);
  36204. return false;
  36205. });
  36206. }
  36207. function preventDefault(event) {
  36208. if (event.stopPropagation)
  36209. event.stopPropagation();
  36210. if (event.preventDefault)
  36211. event.preventDefault();
  36212. }
  36213. var Transaction = (function () {
  36214. function Transaction() {
  36215. }
  36216. Transaction.prototype._lock = function () {
  36217. assert(!PSD.global);
  36218. ++this._reculock;
  36219. if (this._reculock === 1 && !PSD.global)
  36220. PSD.lockOwnerFor = this;
  36221. return this;
  36222. };
  36223. Transaction.prototype._unlock = function () {
  36224. assert(!PSD.global);
  36225. if (--this._reculock === 0) {
  36226. if (!PSD.global)
  36227. PSD.lockOwnerFor = null;
  36228. while (this._blockedFuncs.length > 0 && !this._locked()) {
  36229. var fnAndPSD = this._blockedFuncs.shift();
  36230. try {
  36231. usePSD(fnAndPSD[1], fnAndPSD[0]);
  36232. }
  36233. catch (e) { }
  36234. }
  36235. }
  36236. return this;
  36237. };
  36238. Transaction.prototype._locked = function () {
  36239. return this._reculock && PSD.lockOwnerFor !== this;
  36240. };
  36241. Transaction.prototype.create = function (idbtrans) {
  36242. var _this = this;
  36243. if (!this.mode)
  36244. return this;
  36245. var idbdb = this.db.idbdb;
  36246. var dbOpenError = this.db._state.dbOpenError;
  36247. assert(!this.idbtrans);
  36248. if (!idbtrans && !idbdb) {
  36249. switch (dbOpenError && dbOpenError.name) {
  36250. case "DatabaseClosedError":
  36251. throw new exceptions.DatabaseClosed(dbOpenError);
  36252. case "MissingAPIError":
  36253. throw new exceptions.MissingAPI(dbOpenError.message, dbOpenError);
  36254. default:
  36255. throw new exceptions.OpenFailed(dbOpenError);
  36256. }
  36257. }
  36258. if (!this.active)
  36259. throw new exceptions.TransactionInactive();
  36260. assert(this._completion._state === null);
  36261. idbtrans = this.idbtrans = idbtrans || idbdb.transaction(safariMultiStoreFix(this.storeNames), this.mode);
  36262. idbtrans.onerror = wrap(function (ev) {
  36263. preventDefault(ev);
  36264. _this._reject(idbtrans.error);
  36265. });
  36266. idbtrans.onabort = wrap(function (ev) {
  36267. preventDefault(ev);
  36268. _this.active && _this._reject(new exceptions.Abort(idbtrans.error));
  36269. _this.active = false;
  36270. _this.on("abort").fire(ev);
  36271. });
  36272. idbtrans.oncomplete = wrap(function () {
  36273. _this.active = false;
  36274. _this._resolve();
  36275. });
  36276. return this;
  36277. };
  36278. Transaction.prototype._promise = function (mode, fn, bWriteLock) {
  36279. var _this = this;
  36280. if (mode === 'readwrite' && this.mode !== 'readwrite')
  36281. return rejection(new exceptions.ReadOnly("Transaction is readonly"));
  36282. if (!this.active)
  36283. return rejection(new exceptions.TransactionInactive());
  36284. if (this._locked()) {
  36285. return new DexiePromise(function (resolve, reject) {
  36286. _this._blockedFuncs.push([function () {
  36287. _this._promise(mode, fn, bWriteLock).then(resolve, reject);
  36288. }, PSD]);
  36289. });
  36290. }
  36291. else if (bWriteLock) {
  36292. return newScope(function () {
  36293. var p = new DexiePromise(function (resolve, reject) {
  36294. _this._lock();
  36295. var rv = fn(resolve, reject, _this);
  36296. if (rv && rv.then)
  36297. rv.then(resolve, reject);
  36298. });
  36299. p.finally(function () { return _this._unlock(); });
  36300. p._lib = true;
  36301. return p;
  36302. });
  36303. }
  36304. else {
  36305. var p = new DexiePromise(function (resolve, reject) {
  36306. var rv = fn(resolve, reject, _this);
  36307. if (rv && rv.then)
  36308. rv.then(resolve, reject);
  36309. });
  36310. p._lib = true;
  36311. return p;
  36312. }
  36313. };
  36314. Transaction.prototype._root = function () {
  36315. return this.parent ? this.parent._root() : this;
  36316. };
  36317. Transaction.prototype.waitFor = function (promiseLike) {
  36318. var root = this._root();
  36319. var promise = DexiePromise.resolve(promiseLike);
  36320. if (root._waitingFor) {
  36321. root._waitingFor = root._waitingFor.then(function () { return promise; });
  36322. }
  36323. else {
  36324. root._waitingFor = promise;
  36325. root._waitingQueue = [];
  36326. var store = root.idbtrans.objectStore(root.storeNames[0]);
  36327. (function spin() {
  36328. ++root._spinCount;
  36329. while (root._waitingQueue.length)
  36330. (root._waitingQueue.shift())();
  36331. if (root._waitingFor)
  36332. store.get(-Infinity).onsuccess = spin;
  36333. }());
  36334. }
  36335. var currentWaitPromise = root._waitingFor;
  36336. return new DexiePromise(function (resolve, reject) {
  36337. promise.then(function (res) { return root._waitingQueue.push(wrap(resolve.bind(null, res))); }, function (err) { return root._waitingQueue.push(wrap(reject.bind(null, err))); }).finally(function () {
  36338. if (root._waitingFor === currentWaitPromise) {
  36339. root._waitingFor = null;
  36340. }
  36341. });
  36342. });
  36343. };
  36344. Transaction.prototype.abort = function () {
  36345. this.active && this._reject(new exceptions.Abort());
  36346. this.active = false;
  36347. };
  36348. Transaction.prototype.table = function (tableName) {
  36349. var memoizedTables = (this._memoizedTables || (this._memoizedTables = {}));
  36350. if (hasOwn(memoizedTables, tableName))
  36351. return memoizedTables[tableName];
  36352. var tableSchema = this.schema[tableName];
  36353. if (!tableSchema) {
  36354. throw new exceptions.NotFound("Table " + tableName + " not part of transaction");
  36355. }
  36356. var transactionBoundTable = new this.db.Table(tableName, tableSchema, this);
  36357. transactionBoundTable.core = this.db.core.table(tableName);
  36358. memoizedTables[tableName] = transactionBoundTable;
  36359. return transactionBoundTable;
  36360. };
  36361. return Transaction;
  36362. }());
  36363. function createTransactionConstructor(db) {
  36364. return makeClassConstructor(Transaction.prototype, function Transaction$$1(mode, storeNames, dbschema, parent) {
  36365. var _this = this;
  36366. this.db = db;
  36367. this.mode = mode;
  36368. this.storeNames = storeNames;
  36369. this.schema = dbschema;
  36370. this.idbtrans = null;
  36371. this.on = Events(this, "complete", "error", "abort");
  36372. this.parent = parent || null;
  36373. this.active = true;
  36374. this._reculock = 0;
  36375. this._blockedFuncs = [];
  36376. this._resolve = null;
  36377. this._reject = null;
  36378. this._waitingFor = null;
  36379. this._waitingQueue = null;
  36380. this._spinCount = 0;
  36381. this._completion = new DexiePromise(function (resolve, reject) {
  36382. _this._resolve = resolve;
  36383. _this._reject = reject;
  36384. });
  36385. this._completion.then(function () {
  36386. _this.active = false;
  36387. _this.on.complete.fire();
  36388. }, function (e) {
  36389. var wasActive = _this.active;
  36390. _this.active = false;
  36391. _this.on.error.fire(e);
  36392. _this.parent ?
  36393. _this.parent._reject(e) :
  36394. wasActive && _this.idbtrans && _this.idbtrans.abort();
  36395. return rejection(e);
  36396. });
  36397. });
  36398. }
  36399. function createIndexSpec(name, keyPath, unique, multi, auto, compound, isPrimKey) {
  36400. return {
  36401. name: name,
  36402. keyPath: keyPath,
  36403. unique: unique,
  36404. multi: multi,
  36405. auto: auto,
  36406. compound: compound,
  36407. src: (unique && !isPrimKey ? '&' : '') + (multi ? '*' : '') + (auto ? "++" : "") + nameFromKeyPath(keyPath)
  36408. };
  36409. }
  36410. function nameFromKeyPath(keyPath) {
  36411. return typeof keyPath === 'string' ?
  36412. keyPath :
  36413. keyPath ? ('[' + [].join.call(keyPath, '+') + ']') : "";
  36414. }
  36415. function createTableSchema(name, primKey, indexes) {
  36416. return {
  36417. name: name,
  36418. primKey: primKey,
  36419. indexes: indexes,
  36420. mappedClass: null,
  36421. idxByName: arrayToObject(indexes, function (index) { return [index.name, index]; })
  36422. };
  36423. }
  36424. function getKeyExtractor(keyPath) {
  36425. if (keyPath == null) {
  36426. return function () { return undefined; };
  36427. }
  36428. else if (typeof keyPath === 'string') {
  36429. return getSinglePathKeyExtractor(keyPath);
  36430. }
  36431. else {
  36432. return function (obj) { return getByKeyPath(obj, keyPath); };
  36433. }
  36434. }
  36435. function getSinglePathKeyExtractor(keyPath) {
  36436. var split = keyPath.split('.');
  36437. if (split.length === 1) {
  36438. return function (obj) { return obj[keyPath]; };
  36439. }
  36440. else {
  36441. return function (obj) { return getByKeyPath(obj, keyPath); };
  36442. }
  36443. }
  36444. function getEffectiveKeys(primaryKey, req) {
  36445. if (req.type === 'delete')
  36446. return req.keys;
  36447. return req.keys || req.values.map(primaryKey.extractKey);
  36448. }
  36449. function getExistingValues(table, req, effectiveKeys) {
  36450. return req.type === 'add' ? Promise.resolve(new Array(req.values.length)) :
  36451. table.getMany({ trans: req.trans, keys: effectiveKeys });
  36452. }
  36453. function arrayify(arrayLike) {
  36454. return [].slice.call(arrayLike);
  36455. }
  36456. var _id_counter = 0;
  36457. function getKeyPathAlias(keyPath) {
  36458. return keyPath == null ?
  36459. ":id" :
  36460. typeof keyPath === 'string' ?
  36461. keyPath :
  36462. "[" + keyPath.join('+') + "]";
  36463. }
  36464. function createDBCore(db, indexedDB, IdbKeyRange, tmpTrans) {
  36465. var cmp = indexedDB.cmp.bind(indexedDB);
  36466. function extractSchema(db, trans) {
  36467. var tables = arrayify(db.objectStoreNames);
  36468. return {
  36469. schema: {
  36470. name: db.name,
  36471. tables: tables.map(function (table) { return trans.objectStore(table); }).map(function (store) {
  36472. var keyPath = store.keyPath, autoIncrement = store.autoIncrement;
  36473. var compound = isArray(keyPath);
  36474. var outbound = keyPath == null;
  36475. var indexByKeyPath = {};
  36476. var result = {
  36477. name: store.name,
  36478. primaryKey: {
  36479. name: null,
  36480. isPrimaryKey: true,
  36481. outbound: outbound,
  36482. compound: compound,
  36483. keyPath: keyPath,
  36484. autoIncrement: autoIncrement,
  36485. unique: true,
  36486. extractKey: getKeyExtractor(keyPath)
  36487. },
  36488. indexes: arrayify(store.indexNames).map(function (indexName) { return store.index(indexName); })
  36489. .map(function (index) {
  36490. var name = index.name, unique = index.unique, multiEntry = index.multiEntry, keyPath = index.keyPath;
  36491. var compound = isArray(keyPath);
  36492. var result = {
  36493. name: name,
  36494. compound: compound,
  36495. keyPath: keyPath,
  36496. unique: unique,
  36497. multiEntry: multiEntry,
  36498. extractKey: getKeyExtractor(keyPath)
  36499. };
  36500. indexByKeyPath[getKeyPathAlias(keyPath)] = result;
  36501. return result;
  36502. }),
  36503. getIndexByKeyPath: function (keyPath) { return indexByKeyPath[getKeyPathAlias(keyPath)]; }
  36504. };
  36505. indexByKeyPath[":id"] = result.primaryKey;
  36506. if (keyPath != null) {
  36507. indexByKeyPath[getKeyPathAlias(keyPath)] = result.primaryKey;
  36508. }
  36509. return result;
  36510. })
  36511. },
  36512. hasGetAll: tables.length > 0 && ('getAll' in trans.objectStore(tables[0])) &&
  36513. !(typeof navigator !== 'undefined' && /Safari/.test(navigator.userAgent) &&
  36514. !/(Chrome\/|Edge\/)/.test(navigator.userAgent) &&
  36515. [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604)
  36516. };
  36517. }
  36518. function makeIDBKeyRange(range) {
  36519. if (range.type === 3 )
  36520. return null;
  36521. if (range.type === 4 )
  36522. throw new Error("Cannot convert never type to IDBKeyRange");
  36523. var lower = range.lower, upper = range.upper, lowerOpen = range.lowerOpen, upperOpen = range.upperOpen;
  36524. var idbRange = lower === undefined ?
  36525. upper === undefined ?
  36526. null :
  36527. IdbKeyRange.upperBound(upper, !!upperOpen) :
  36528. upper === undefined ?
  36529. IdbKeyRange.lowerBound(lower, !!lowerOpen) :
  36530. IdbKeyRange.bound(lower, upper, !!lowerOpen, !!upperOpen);
  36531. return idbRange;
  36532. }
  36533. function createDbCoreTable(tableSchema) {
  36534. var tableName = tableSchema.name;
  36535. function mutate(_a) {
  36536. var trans = _a.trans, type = _a.type, keys$$1 = _a.keys, values = _a.values, range = _a.range, wantResults = _a.wantResults;
  36537. return new Promise(function (resolve, reject) {
  36538. resolve = wrap(resolve);
  36539. var store = trans.objectStore(tableName);
  36540. var outbound = store.keyPath == null;
  36541. var isAddOrPut = type === "put" || type === "add";
  36542. if (!isAddOrPut && type !== 'delete' && type !== 'deleteRange')
  36543. throw new Error("Invalid operation type: " + type);
  36544. var length = (keys$$1 || values || { length: 1 }).length;
  36545. if (keys$$1 && values && keys$$1.length !== values.length) {
  36546. throw new Error("Given keys array must have same length as given values array.");
  36547. }
  36548. if (length === 0)
  36549. return resolve({ numFailures: 0, failures: {}, results: [], lastResult: undefined });
  36550. var results = wantResults && __spreadArrays((keys$$1 ?
  36551. keys$$1 :
  36552. getEffectiveKeys(tableSchema.primaryKey, { type: type, keys: keys$$1, values: values })));
  36553. var req;
  36554. var failures = [];
  36555. var numFailures = 0;
  36556. var errorHandler = function (event) {
  36557. ++numFailures;
  36558. preventDefault(event);
  36559. if (results)
  36560. results[event.target._reqno] = undefined;
  36561. failures[event.target._reqno] = event.target.error;
  36562. };
  36563. var setResult = function (_a) {
  36564. var target = _a.target;
  36565. results[target._reqno] = target.result;
  36566. };
  36567. if (type === 'deleteRange') {
  36568. if (range.type === 4 )
  36569. return resolve({ numFailures: numFailures, failures: failures, results: results, lastResult: undefined });
  36570. if (range.type === 3 )
  36571. req = store.clear();
  36572. else
  36573. req = store.delete(makeIDBKeyRange(range));
  36574. }
  36575. else {
  36576. var _a = isAddOrPut ?
  36577. outbound ?
  36578. [values, keys$$1] :
  36579. [values, null] :
  36580. [keys$$1, null], args1 = _a[0], args2 = _a[1];
  36581. if (isAddOrPut) {
  36582. for (var i = 0; i < length; ++i) {
  36583. req = (args2 && args2[i] !== undefined ?
  36584. store[type](args1[i], args2[i]) :
  36585. store[type](args1[i]));
  36586. req._reqno = i;
  36587. if (results && results[i] === undefined) {
  36588. req.onsuccess = setResult;
  36589. }
  36590. req.onerror = errorHandler;
  36591. }
  36592. }
  36593. else {
  36594. for (var i = 0; i < length; ++i) {
  36595. req = store[type](args1[i]);
  36596. req._reqno = i;
  36597. req.onerror = errorHandler;
  36598. }
  36599. }
  36600. }
  36601. var done = function (event) {
  36602. var lastResult = event.target.result;
  36603. if (results)
  36604. results[length - 1] = lastResult;
  36605. resolve({
  36606. numFailures: numFailures,
  36607. failures: failures,
  36608. results: results,
  36609. lastResult: lastResult
  36610. });
  36611. };
  36612. req.onerror = function (event) {
  36613. errorHandler(event);
  36614. done(event);
  36615. };
  36616. req.onsuccess = done;
  36617. });
  36618. }
  36619. function openCursor(_a) {
  36620. var trans = _a.trans, values = _a.values, query = _a.query, reverse = _a.reverse, unique = _a.unique;
  36621. return new Promise(function (resolve, reject) {
  36622. resolve = wrap(resolve);
  36623. var index = query.index, range = query.range;
  36624. var store = trans.objectStore(tableName);
  36625. var source = index.isPrimaryKey ?
  36626. store :
  36627. store.index(index.name);
  36628. var direction = reverse ?
  36629. unique ?
  36630. "prevunique" :
  36631. "prev" :
  36632. unique ?
  36633. "nextunique" :
  36634. "next";
  36635. var req = values || !('openKeyCursor' in source) ?
  36636. source.openCursor(makeIDBKeyRange(range), direction) :
  36637. source.openKeyCursor(makeIDBKeyRange(range), direction);
  36638. req.onerror = eventRejectHandler(reject);
  36639. req.onsuccess = wrap(function (ev) {
  36640. var cursor = req.result;
  36641. if (!cursor) {
  36642. resolve(null);
  36643. return;
  36644. }
  36645. cursor.___id = ++_id_counter;
  36646. cursor.done = false;
  36647. var _cursorContinue = cursor.continue.bind(cursor);
  36648. var _cursorContinuePrimaryKey = cursor.continuePrimaryKey;
  36649. if (_cursorContinuePrimaryKey)
  36650. _cursorContinuePrimaryKey = _cursorContinuePrimaryKey.bind(cursor);
  36651. var _cursorAdvance = cursor.advance.bind(cursor);
  36652. var doThrowCursorIsNotStarted = function () { throw new Error("Cursor not started"); };
  36653. var doThrowCursorIsStopped = function () { throw new Error("Cursor not stopped"); };
  36654. cursor.trans = trans;
  36655. cursor.stop = cursor.continue = cursor.continuePrimaryKey = cursor.advance = doThrowCursorIsNotStarted;
  36656. cursor.fail = wrap(reject);
  36657. cursor.next = function () {
  36658. var _this = this;
  36659. var gotOne = 1;
  36660. return this.start(function () { return gotOne-- ? _this.continue() : _this.stop(); }).then(function () { return _this; });
  36661. };
  36662. cursor.start = function (callback) {
  36663. var iterationPromise = new Promise(function (resolveIteration, rejectIteration) {
  36664. resolveIteration = wrap(resolveIteration);
  36665. req.onerror = eventRejectHandler(rejectIteration);
  36666. cursor.fail = rejectIteration;
  36667. cursor.stop = function (value) {
  36668. cursor.stop = cursor.continue = cursor.continuePrimaryKey = cursor.advance = doThrowCursorIsStopped;
  36669. resolveIteration(value);
  36670. };
  36671. });
  36672. var guardedCallback = function () {
  36673. if (req.result) {
  36674. try {
  36675. callback();
  36676. }
  36677. catch (err) {
  36678. cursor.fail(err);
  36679. }
  36680. }
  36681. else {
  36682. cursor.done = true;
  36683. cursor.start = function () { throw new Error("Cursor behind last entry"); };
  36684. cursor.stop();
  36685. }
  36686. };
  36687. req.onsuccess = wrap(function (ev) {
  36688. req.onsuccess = guardedCallback;
  36689. guardedCallback();
  36690. });
  36691. cursor.continue = _cursorContinue;
  36692. cursor.continuePrimaryKey = _cursorContinuePrimaryKey;
  36693. cursor.advance = _cursorAdvance;
  36694. guardedCallback();
  36695. return iterationPromise;
  36696. };
  36697. resolve(cursor);
  36698. }, reject);
  36699. });
  36700. }
  36701. function query(hasGetAll) {
  36702. return function (request) {
  36703. return new Promise(function (resolve, reject) {
  36704. resolve = wrap(resolve);
  36705. var trans = request.trans, values = request.values, limit = request.limit, query = request.query;
  36706. var nonInfinitLimit = limit === Infinity ? undefined : limit;
  36707. var index = query.index, range = query.range;
  36708. var store = trans.objectStore(tableName);
  36709. var source = index.isPrimaryKey ? store : store.index(index.name);
  36710. var idbKeyRange = makeIDBKeyRange(range);
  36711. if (limit === 0)
  36712. return resolve({ result: [] });
  36713. if (hasGetAll) {
  36714. var req = values ?
  36715. source.getAll(idbKeyRange, nonInfinitLimit) :
  36716. source.getAllKeys(idbKeyRange, nonInfinitLimit);
  36717. req.onsuccess = function (event) { return resolve({ result: event.target.result }); };
  36718. req.onerror = eventRejectHandler(reject);
  36719. }
  36720. else {
  36721. var count_1 = 0;
  36722. var req_1 = values || !('openKeyCursor' in source) ?
  36723. source.openCursor(idbKeyRange) :
  36724. source.openKeyCursor(idbKeyRange);
  36725. var result_1 = [];
  36726. req_1.onsuccess = function (event) {
  36727. var cursor = req_1.result;
  36728. if (!cursor)
  36729. return resolve({ result: result_1 });
  36730. result_1.push(values ? cursor.value : cursor.primaryKey);
  36731. if (++count_1 === limit)
  36732. return resolve({ result: result_1 });
  36733. cursor.continue();
  36734. };
  36735. req_1.onerror = eventRejectHandler(reject);
  36736. }
  36737. });
  36738. };
  36739. }
  36740. return {
  36741. name: tableName,
  36742. schema: tableSchema,
  36743. mutate: mutate,
  36744. getMany: function (_a) {
  36745. var trans = _a.trans, keys$$1 = _a.keys;
  36746. return new Promise(function (resolve, reject) {
  36747. resolve = wrap(resolve);
  36748. var store = trans.objectStore(tableName);
  36749. var length = keys$$1.length;
  36750. var result = new Array(length);
  36751. var keyCount = 0;
  36752. var callbackCount = 0;
  36753. var valueCount = 0;
  36754. var req;
  36755. var successHandler = function (event) {
  36756. var req = event.target;
  36757. if ((result[req._pos] = req.result) != null)
  36758. ++valueCount;
  36759. if (++callbackCount === keyCount)
  36760. resolve(result);
  36761. };
  36762. var errorHandler = eventRejectHandler(reject);
  36763. for (var i = 0; i < length; ++i) {
  36764. var key = keys$$1[i];
  36765. if (key != null) {
  36766. req = store.get(keys$$1[i]);
  36767. req._pos = i;
  36768. req.onsuccess = successHandler;
  36769. req.onerror = errorHandler;
  36770. ++keyCount;
  36771. }
  36772. }
  36773. if (keyCount === 0)
  36774. resolve(result);
  36775. });
  36776. },
  36777. get: function (_a) {
  36778. var trans = _a.trans, key = _a.key;
  36779. return new Promise(function (resolve, reject) {
  36780. resolve = wrap(resolve);
  36781. var store = trans.objectStore(tableName);
  36782. var req = store.get(key);
  36783. req.onsuccess = function (event) { return resolve(event.target.result); };
  36784. req.onerror = eventRejectHandler(reject);
  36785. });
  36786. },
  36787. query: query(hasGetAll),
  36788. openCursor: openCursor,
  36789. count: function (_a) {
  36790. var query = _a.query, trans = _a.trans;
  36791. var index = query.index, range = query.range;
  36792. return new Promise(function (resolve, reject) {
  36793. var store = trans.objectStore(tableName);
  36794. var source = index.isPrimaryKey ? store : store.index(index.name);
  36795. var idbKeyRange = makeIDBKeyRange(range);
  36796. var req = idbKeyRange ? source.count(idbKeyRange) : source.count();
  36797. req.onsuccess = wrap(function (ev) { return resolve(ev.target.result); });
  36798. req.onerror = eventRejectHandler(reject);
  36799. });
  36800. }
  36801. };
  36802. }
  36803. var _a = extractSchema(db, tmpTrans), schema = _a.schema, hasGetAll = _a.hasGetAll;
  36804. var tables = schema.tables.map(function (tableSchema) { return createDbCoreTable(tableSchema); });
  36805. var tableMap = {};
  36806. tables.forEach(function (table) { return tableMap[table.name] = table; });
  36807. return {
  36808. stack: "dbcore",
  36809. transaction: db.transaction.bind(db),
  36810. table: function (name) {
  36811. var result = tableMap[name];
  36812. if (!result)
  36813. throw new Error("Table '" + name + "' not found");
  36814. return tableMap[name];
  36815. },
  36816. cmp: cmp,
  36817. MIN_KEY: -Infinity,
  36818. MAX_KEY: getMaxKey(IdbKeyRange),
  36819. schema: schema
  36820. };
  36821. }
  36822. function createMiddlewareStack(stackImpl, middlewares) {
  36823. return middlewares.reduce(function (down, _a) {
  36824. var create = _a.create;
  36825. return (__assign(__assign({}, down), create(down)));
  36826. }, stackImpl);
  36827. }
  36828. function createMiddlewareStacks(middlewares, idbdb, _a, tmpTrans) {
  36829. var IDBKeyRange = _a.IDBKeyRange, indexedDB = _a.indexedDB;
  36830. var dbcore = createMiddlewareStack(createDBCore(idbdb, indexedDB, IDBKeyRange, tmpTrans), middlewares.dbcore);
  36831. return {
  36832. dbcore: dbcore
  36833. };
  36834. }
  36835. function generateMiddlewareStacks(db, tmpTrans) {
  36836. var idbdb = tmpTrans.db;
  36837. var stacks = createMiddlewareStacks(db._middlewares, idbdb, db._deps, tmpTrans);
  36838. db.core = stacks.dbcore;
  36839. db.tables.forEach(function (table) {
  36840. var tableName = table.name;
  36841. if (db.core.schema.tables.some(function (tbl) { return tbl.name === tableName; })) {
  36842. table.core = db.core.table(tableName);
  36843. if (db[tableName] instanceof db.Table) {
  36844. db[tableName].core = table.core;
  36845. }
  36846. }
  36847. });
  36848. }
  36849. function setApiOnPlace(db, objs, tableNames, dbschema) {
  36850. tableNames.forEach(function (tableName) {
  36851. var schema = dbschema[tableName];
  36852. objs.forEach(function (obj) {
  36853. if (!(tableName in obj)) {
  36854. if (obj === db.Transaction.prototype || obj instanceof db.Transaction) {
  36855. setProp(obj, tableName, {
  36856. get: function () { return this.table(tableName); },
  36857. set: function (value) {
  36858. defineProperty(this, tableName, { value: value, writable: true, configurable: true, enumerable: true });
  36859. }
  36860. });
  36861. }
  36862. else {
  36863. obj[tableName] = new db.Table(tableName, schema);
  36864. }
  36865. }
  36866. });
  36867. });
  36868. }
  36869. function removeTablesApi(db, objs) {
  36870. objs.forEach(function (obj) {
  36871. for (var key in obj) {
  36872. if (obj[key] instanceof db.Table)
  36873. delete obj[key];
  36874. }
  36875. });
  36876. }
  36877. function lowerVersionFirst(a, b) {
  36878. return a._cfg.version - b._cfg.version;
  36879. }
  36880. function runUpgraders(db, oldVersion, idbUpgradeTrans, reject) {
  36881. var globalSchema = db._dbSchema;
  36882. var trans = db._createTransaction('readwrite', db._storeNames, globalSchema);
  36883. trans.create(idbUpgradeTrans);
  36884. trans._completion.catch(reject);
  36885. var rejectTransaction = trans._reject.bind(trans);
  36886. var transless = PSD.transless || PSD;
  36887. newScope(function () {
  36888. PSD.trans = trans;
  36889. PSD.transless = transless;
  36890. if (oldVersion === 0) {
  36891. keys(globalSchema).forEach(function (tableName) {
  36892. createTable(idbUpgradeTrans, tableName, globalSchema[tableName].primKey, globalSchema[tableName].indexes);
  36893. });
  36894. generateMiddlewareStacks(db, idbUpgradeTrans);
  36895. DexiePromise.follow(function () { return db.on.populate.fire(trans); }).catch(rejectTransaction);
  36896. }
  36897. else
  36898. updateTablesAndIndexes(db, oldVersion, trans, idbUpgradeTrans).catch(rejectTransaction);
  36899. });
  36900. }
  36901. function updateTablesAndIndexes(db, oldVersion, trans, idbUpgradeTrans) {
  36902. var queue = [];
  36903. var versions = db._versions;
  36904. var globalSchema = db._dbSchema = buildGlobalSchema(db, db.idbdb, idbUpgradeTrans);
  36905. var anyContentUpgraderHasRun = false;
  36906. var versToRun = versions.filter(function (v) { return v._cfg.version >= oldVersion; });
  36907. versToRun.forEach(function (version) {
  36908. queue.push(function () {
  36909. var oldSchema = globalSchema;
  36910. var newSchema = version._cfg.dbschema;
  36911. adjustToExistingIndexNames(db, oldSchema, idbUpgradeTrans);
  36912. adjustToExistingIndexNames(db, newSchema, idbUpgradeTrans);
  36913. globalSchema = db._dbSchema = newSchema;
  36914. var diff = getSchemaDiff(oldSchema, newSchema);
  36915. diff.add.forEach(function (tuple) {
  36916. createTable(idbUpgradeTrans, tuple[0], tuple[1].primKey, tuple[1].indexes);
  36917. });
  36918. diff.change.forEach(function (change) {
  36919. if (change.recreate) {
  36920. throw new exceptions.Upgrade("Not yet support for changing primary key");
  36921. }
  36922. else {
  36923. var store_1 = idbUpgradeTrans.objectStore(change.name);
  36924. change.add.forEach(function (idx) { return addIndex(store_1, idx); });
  36925. change.change.forEach(function (idx) {
  36926. store_1.deleteIndex(idx.name);
  36927. addIndex(store_1, idx);
  36928. });
  36929. change.del.forEach(function (idxName) { return store_1.deleteIndex(idxName); });
  36930. }
  36931. });
  36932. var contentUpgrade = version._cfg.contentUpgrade;
  36933. if (contentUpgrade && version._cfg.version > oldVersion) {
  36934. generateMiddlewareStacks(db, idbUpgradeTrans);
  36935. anyContentUpgraderHasRun = true;
  36936. var upgradeSchema_1 = shallowClone(newSchema);
  36937. diff.del.forEach(function (table) {
  36938. upgradeSchema_1[table] = oldSchema[table];
  36939. });
  36940. removeTablesApi(db, [db.Transaction.prototype]);
  36941. setApiOnPlace(db, [db.Transaction.prototype], keys(upgradeSchema_1), upgradeSchema_1);
  36942. trans.schema = upgradeSchema_1;
  36943. var contentUpgradeIsAsync_1 = isAsyncFunction(contentUpgrade);
  36944. if (contentUpgradeIsAsync_1) {
  36945. incrementExpectedAwaits();
  36946. }
  36947. var returnValue_1;
  36948. var promiseFollowed = DexiePromise.follow(function () {
  36949. returnValue_1 = contentUpgrade(trans);
  36950. if (returnValue_1) {
  36951. if (contentUpgradeIsAsync_1) {
  36952. var decrementor = decrementExpectedAwaits.bind(null, null);
  36953. returnValue_1.then(decrementor, decrementor);
  36954. }
  36955. }
  36956. });
  36957. return (returnValue_1 && typeof returnValue_1.then === 'function' ?
  36958. DexiePromise.resolve(returnValue_1) : promiseFollowed.then(function () { return returnValue_1; }));
  36959. }
  36960. });
  36961. queue.push(function (idbtrans) {
  36962. if (!anyContentUpgraderHasRun || !hasIEDeleteObjectStoreBug) {
  36963. var newSchema = version._cfg.dbschema;
  36964. deleteRemovedTables(newSchema, idbtrans);
  36965. }
  36966. removeTablesApi(db, [db.Transaction.prototype]);
  36967. setApiOnPlace(db, [db.Transaction.prototype], db._storeNames, db._dbSchema);
  36968. trans.schema = db._dbSchema;
  36969. });
  36970. });
  36971. function runQueue() {
  36972. return queue.length ? DexiePromise.resolve(queue.shift()(trans.idbtrans)).then(runQueue) :
  36973. DexiePromise.resolve();
  36974. }
  36975. return runQueue().then(function () {
  36976. createMissingTables(globalSchema, idbUpgradeTrans);
  36977. });
  36978. }
  36979. function getSchemaDiff(oldSchema, newSchema) {
  36980. var diff = {
  36981. del: [],
  36982. add: [],
  36983. change: []
  36984. };
  36985. var table;
  36986. for (table in oldSchema) {
  36987. if (!newSchema[table])
  36988. diff.del.push(table);
  36989. }
  36990. for (table in newSchema) {
  36991. var oldDef = oldSchema[table], newDef = newSchema[table];
  36992. if (!oldDef) {
  36993. diff.add.push([table, newDef]);
  36994. }
  36995. else {
  36996. var change = {
  36997. name: table,
  36998. def: newDef,
  36999. recreate: false,
  37000. del: [],
  37001. add: [],
  37002. change: []
  37003. };
  37004. if (oldDef.primKey.src !== newDef.primKey.src &&
  37005. !isIEOrEdge
  37006. ) {
  37007. change.recreate = true;
  37008. diff.change.push(change);
  37009. }
  37010. else {
  37011. var oldIndexes = oldDef.idxByName;
  37012. var newIndexes = newDef.idxByName;
  37013. var idxName = void 0;
  37014. for (idxName in oldIndexes) {
  37015. if (!newIndexes[idxName])
  37016. change.del.push(idxName);
  37017. }
  37018. for (idxName in newIndexes) {
  37019. var oldIdx = oldIndexes[idxName], newIdx = newIndexes[idxName];
  37020. if (!oldIdx)
  37021. change.add.push(newIdx);
  37022. else if (oldIdx.src !== newIdx.src)
  37023. change.change.push(newIdx);
  37024. }
  37025. if (change.del.length > 0 || change.add.length > 0 || change.change.length > 0) {
  37026. diff.change.push(change);
  37027. }
  37028. }
  37029. }
  37030. }
  37031. return diff;
  37032. }
  37033. function createTable(idbtrans, tableName, primKey, indexes) {
  37034. var store = idbtrans.db.createObjectStore(tableName, primKey.keyPath ?
  37035. { keyPath: primKey.keyPath, autoIncrement: primKey.auto } :
  37036. { autoIncrement: primKey.auto });
  37037. indexes.forEach(function (idx) { return addIndex(store, idx); });
  37038. return store;
  37039. }
  37040. function createMissingTables(newSchema, idbtrans) {
  37041. keys(newSchema).forEach(function (tableName) {
  37042. if (!idbtrans.db.objectStoreNames.contains(tableName)) {
  37043. createTable(idbtrans, tableName, newSchema[tableName].primKey, newSchema[tableName].indexes);
  37044. }
  37045. });
  37046. }
  37047. function deleteRemovedTables(newSchema, idbtrans) {
  37048. for (var i = 0; i < idbtrans.db.objectStoreNames.length; ++i) {
  37049. var storeName = idbtrans.db.objectStoreNames[i];
  37050. if (newSchema[storeName] == null) {
  37051. idbtrans.db.deleteObjectStore(storeName);
  37052. }
  37053. }
  37054. }
  37055. function addIndex(store, idx) {
  37056. store.createIndex(idx.name, idx.keyPath, { unique: idx.unique, multiEntry: idx.multi });
  37057. }
  37058. function buildGlobalSchema(db, idbdb, tmpTrans) {
  37059. var globalSchema = {};
  37060. var dbStoreNames = slice(idbdb.objectStoreNames, 0);
  37061. dbStoreNames.forEach(function (storeName) {
  37062. var store = tmpTrans.objectStore(storeName);
  37063. var keyPath = store.keyPath;
  37064. var primKey = createIndexSpec(nameFromKeyPath(keyPath), keyPath || "", false, false, !!store.autoIncrement, keyPath && typeof keyPath !== "string", true);
  37065. var indexes = [];
  37066. for (var j = 0; j < store.indexNames.length; ++j) {
  37067. var idbindex = store.index(store.indexNames[j]);
  37068. keyPath = idbindex.keyPath;
  37069. var index = createIndexSpec(idbindex.name, keyPath, !!idbindex.unique, !!idbindex.multiEntry, false, keyPath && typeof keyPath !== "string", false);
  37070. indexes.push(index);
  37071. }
  37072. globalSchema[storeName] = createTableSchema(storeName, primKey, indexes);
  37073. });
  37074. return globalSchema;
  37075. }
  37076. function readGlobalSchema(db, idbdb, tmpTrans) {
  37077. db.verno = idbdb.version / 10;
  37078. var globalSchema = db._dbSchema = buildGlobalSchema(db, idbdb, tmpTrans);
  37079. db._storeNames = slice(idbdb.objectStoreNames, 0);
  37080. setApiOnPlace(db, [db._allTables], keys(globalSchema), globalSchema);
  37081. }
  37082. function adjustToExistingIndexNames(db, schema, idbtrans) {
  37083. var storeNames = idbtrans.db.objectStoreNames;
  37084. for (var i = 0; i < storeNames.length; ++i) {
  37085. var storeName = storeNames[i];
  37086. var store = idbtrans.objectStore(storeName);
  37087. db._hasGetAll = 'getAll' in store;
  37088. for (var j = 0; j < store.indexNames.length; ++j) {
  37089. var indexName = store.indexNames[j];
  37090. var keyPath = store.index(indexName).keyPath;
  37091. var dexieName = typeof keyPath === 'string' ? keyPath : "[" + slice(keyPath).join('+') + "]";
  37092. if (schema[storeName]) {
  37093. var indexSpec = schema[storeName].idxByName[dexieName];
  37094. if (indexSpec) {
  37095. indexSpec.name = indexName;
  37096. delete schema[storeName].idxByName[dexieName];
  37097. schema[storeName].idxByName[indexName] = indexSpec;
  37098. }
  37099. }
  37100. }
  37101. }
  37102. if (typeof navigator !== 'undefined' && /Safari/.test(navigator.userAgent) &&
  37103. !/(Chrome\/|Edge\/)/.test(navigator.userAgent) &&
  37104. _global.WorkerGlobalScope && _global instanceof _global.WorkerGlobalScope &&
  37105. [].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1] < 604) {
  37106. db._hasGetAll = false;
  37107. }
  37108. }
  37109. function parseIndexSyntax(primKeyAndIndexes) {
  37110. return primKeyAndIndexes.split(',').map(function (index, indexNum) {
  37111. index = index.trim();
  37112. var name = index.replace(/([&*]|\+\+)/g, "");
  37113. var keyPath = /^\[/.test(name) ? name.match(/^\[(.*)\]$/)[1].split('+') : name;
  37114. return createIndexSpec(name, keyPath || null, /\&/.test(index), /\*/.test(index), /\+\+/.test(index), isArray(keyPath), indexNum === 0);
  37115. });
  37116. }
  37117. var Version = (function () {
  37118. function Version() {
  37119. }
  37120. Version.prototype._parseStoresSpec = function (stores, outSchema) {
  37121. keys(stores).forEach(function (tableName) {
  37122. if (stores[tableName] !== null) {
  37123. var indexes = parseIndexSyntax(stores[tableName]);
  37124. var primKey = indexes.shift();
  37125. if (primKey.multi)
  37126. throw new exceptions.Schema("Primary key cannot be multi-valued");
  37127. indexes.forEach(function (idx) {
  37128. if (idx.auto)
  37129. throw new exceptions.Schema("Only primary key can be marked as autoIncrement (++)");
  37130. if (!idx.keyPath)
  37131. throw new exceptions.Schema("Index must have a name and cannot be an empty string");
  37132. });
  37133. outSchema[tableName] = createTableSchema(tableName, primKey, indexes);
  37134. }
  37135. });
  37136. };
  37137. Version.prototype.stores = function (stores) {
  37138. var db = this.db;
  37139. this._cfg.storesSource = this._cfg.storesSource ?
  37140. extend(this._cfg.storesSource, stores) :
  37141. stores;
  37142. var versions = db._versions;
  37143. var storesSpec = {};
  37144. var dbschema = {};
  37145. versions.forEach(function (version) {
  37146. extend(storesSpec, version._cfg.storesSource);
  37147. dbschema = (version._cfg.dbschema = {});
  37148. version._parseStoresSpec(storesSpec, dbschema);
  37149. });
  37150. db._dbSchema = dbschema;
  37151. removeTablesApi(db, [db._allTables, db, db.Transaction.prototype]);
  37152. setApiOnPlace(db, [db._allTables, db, db.Transaction.prototype, this._cfg.tables], keys(dbschema), dbschema);
  37153. db._storeNames = keys(dbschema);
  37154. return this;
  37155. };
  37156. Version.prototype.upgrade = function (upgradeFunction) {
  37157. this._cfg.contentUpgrade = upgradeFunction;
  37158. return this;
  37159. };
  37160. return Version;
  37161. }());
  37162. function createVersionConstructor(db) {
  37163. return makeClassConstructor(Version.prototype, function Version$$1(versionNumber) {
  37164. this.db = db;
  37165. this._cfg = {
  37166. version: versionNumber,
  37167. storesSource: null,
  37168. dbschema: {},
  37169. tables: {},
  37170. contentUpgrade: null
  37171. };
  37172. });
  37173. }
  37174. var databaseEnumerator;
  37175. function DatabaseEnumerator(indexedDB) {
  37176. var hasDatabasesNative = indexedDB && typeof indexedDB.databases === 'function';
  37177. var dbNamesTable;
  37178. if (!hasDatabasesNative) {
  37179. var db = new Dexie(DBNAMES_DB, { addons: [] });
  37180. db.version(1).stores({ dbnames: 'name' });
  37181. dbNamesTable = db.table('dbnames');
  37182. }
  37183. return {
  37184. getDatabaseNames: function () {
  37185. return hasDatabasesNative
  37186. ?
  37187. DexiePromise.resolve(indexedDB.databases()).then(function (infos) { return infos
  37188. .map(function (info) { return info.name; })
  37189. .filter(function (name) { return name !== DBNAMES_DB; }); })
  37190. :
  37191. dbNamesTable.toCollection().primaryKeys();
  37192. },
  37193. add: function (name) {
  37194. return !hasDatabasesNative && name !== DBNAMES_DB && dbNamesTable.put({ name: name }).catch(nop);
  37195. },
  37196. remove: function (name) {
  37197. return !hasDatabasesNative && name !== DBNAMES_DB && dbNamesTable.delete(name).catch(nop);
  37198. }
  37199. };
  37200. }
  37201. function initDatabaseEnumerator(indexedDB) {
  37202. try {
  37203. databaseEnumerator = DatabaseEnumerator(indexedDB);
  37204. }
  37205. catch (e) { }
  37206. }
  37207. function vip(fn) {
  37208. return newScope(function () {
  37209. PSD.letThrough = true;
  37210. return fn();
  37211. });
  37212. }
  37213. function dexieOpen(db) {
  37214. var state = db._state;
  37215. var indexedDB = db._deps.indexedDB;
  37216. if (state.isBeingOpened || db.idbdb)
  37217. return state.dbReadyPromise.then(function () { return state.dbOpenError ?
  37218. rejection(state.dbOpenError) :
  37219. db; });
  37220. debug && (state.openCanceller._stackHolder = getErrorWithStack());
  37221. state.isBeingOpened = true;
  37222. state.dbOpenError = null;
  37223. state.openComplete = false;
  37224. var resolveDbReady = state.dbReadyResolve,
  37225. upgradeTransaction = null;
  37226. return DexiePromise.race([state.openCanceller, new DexiePromise(function (resolve, reject) {
  37227. if (!indexedDB)
  37228. throw new exceptions.MissingAPI("indexedDB API not found. If using IE10+, make sure to run your code on a server URL " +
  37229. "(not locally). If using old Safari versions, make sure to include indexedDB polyfill.");
  37230. var dbName = db.name;
  37231. var req = state.autoSchema ?
  37232. indexedDB.open(dbName) :
  37233. indexedDB.open(dbName, Math.round(db.verno * 10));
  37234. if (!req)
  37235. throw new exceptions.MissingAPI("IndexedDB API not available");
  37236. req.onerror = eventRejectHandler(reject);
  37237. req.onblocked = wrap(db._fireOnBlocked);
  37238. req.onupgradeneeded = wrap(function (e) {
  37239. upgradeTransaction = req.transaction;
  37240. if (state.autoSchema && !db._options.allowEmptyDB) {
  37241. req.onerror = preventDefault;
  37242. upgradeTransaction.abort();
  37243. req.result.close();
  37244. var delreq = indexedDB.deleteDatabase(dbName);
  37245. delreq.onsuccess = delreq.onerror = wrap(function () {
  37246. reject(new exceptions.NoSuchDatabase("Database " + dbName + " doesnt exist"));
  37247. });
  37248. }
  37249. else {
  37250. upgradeTransaction.onerror = eventRejectHandler(reject);
  37251. var oldVer = e.oldVersion > Math.pow(2, 62) ? 0 : e.oldVersion;
  37252. db.idbdb = req.result;
  37253. runUpgraders(db, oldVer / 10, upgradeTransaction, reject);
  37254. }
  37255. }, reject);
  37256. req.onsuccess = wrap(function () {
  37257. upgradeTransaction = null;
  37258. var idbdb = db.idbdb = req.result;
  37259. var objectStoreNames = slice(idbdb.objectStoreNames);
  37260. if (objectStoreNames.length > 0)
  37261. try {
  37262. var tmpTrans = idbdb.transaction(safariMultiStoreFix(objectStoreNames), 'readonly');
  37263. if (state.autoSchema)
  37264. readGlobalSchema(db, idbdb, tmpTrans);
  37265. else
  37266. adjustToExistingIndexNames(db, db._dbSchema, tmpTrans);
  37267. generateMiddlewareStacks(db, tmpTrans);
  37268. }
  37269. catch (e) {
  37270. }
  37271. connections.push(db);
  37272. idbdb.onversionchange = wrap(function (ev) {
  37273. state.vcFired = true;
  37274. db.on("versionchange").fire(ev);
  37275. });
  37276. databaseEnumerator.add(dbName);
  37277. resolve();
  37278. }, reject);
  37279. })]).then(function () {
  37280. state.onReadyBeingFired = [];
  37281. return DexiePromise.resolve(vip(db.on.ready.fire)).then(function fireRemainders() {
  37282. if (state.onReadyBeingFired.length > 0) {
  37283. var remainders = state.onReadyBeingFired.reduce(promisableChain, nop);
  37284. state.onReadyBeingFired = [];
  37285. return DexiePromise.resolve(vip(remainders)).then(fireRemainders);
  37286. }
  37287. });
  37288. }).finally(function () {
  37289. state.onReadyBeingFired = null;
  37290. }).then(function () {
  37291. state.isBeingOpened = false;
  37292. return db;
  37293. }).catch(function (err) {
  37294. try {
  37295. upgradeTransaction && upgradeTransaction.abort();
  37296. }
  37297. catch (e) { }
  37298. state.isBeingOpened = false;
  37299. db.close();
  37300. state.dbOpenError = err;
  37301. return rejection(state.dbOpenError);
  37302. }).finally(function () {
  37303. state.openComplete = true;
  37304. resolveDbReady();
  37305. });
  37306. }
  37307. function awaitIterator(iterator) {
  37308. var callNext = function (result) { return iterator.next(result); }, doThrow = function (error) { return iterator.throw(error); }, onSuccess = step(callNext), onError = step(doThrow);
  37309. function step(getNext) {
  37310. return function (val) {
  37311. var next = getNext(val), value = next.value;
  37312. return next.done ? value :
  37313. (!value || typeof value.then !== 'function' ?
  37314. isArray(value) ? Promise.all(value).then(onSuccess, onError) : onSuccess(value) :
  37315. value.then(onSuccess, onError));
  37316. };
  37317. }
  37318. return step(callNext)();
  37319. }
  37320. function extractTransactionArgs(mode, _tableArgs_, scopeFunc) {
  37321. var i = arguments.length;
  37322. if (i < 2)
  37323. throw new exceptions.InvalidArgument("Too few arguments");
  37324. var args = new Array(i - 1);
  37325. while (--i)
  37326. args[i - 1] = arguments[i];
  37327. scopeFunc = args.pop();
  37328. var tables = flatten(args);
  37329. return [mode, tables, scopeFunc];
  37330. }
  37331. function enterTransactionScope(db, mode, storeNames, parentTransaction, scopeFunc) {
  37332. return DexiePromise.resolve().then(function () {
  37333. var transless = PSD.transless || PSD;
  37334. var trans = db._createTransaction(mode, storeNames, db._dbSchema, parentTransaction);
  37335. var zoneProps = {
  37336. trans: trans,
  37337. transless: transless
  37338. };
  37339. if (parentTransaction) {
  37340. trans.idbtrans = parentTransaction.idbtrans;
  37341. }
  37342. else {
  37343. trans.create();
  37344. }
  37345. var scopeFuncIsAsync = isAsyncFunction(scopeFunc);
  37346. if (scopeFuncIsAsync) {
  37347. incrementExpectedAwaits();
  37348. }
  37349. var returnValue;
  37350. var promiseFollowed = DexiePromise.follow(function () {
  37351. returnValue = scopeFunc.call(trans, trans);
  37352. if (returnValue) {
  37353. if (scopeFuncIsAsync) {
  37354. var decrementor = decrementExpectedAwaits.bind(null, null);
  37355. returnValue.then(decrementor, decrementor);
  37356. }
  37357. else if (typeof returnValue.next === 'function' && typeof returnValue.throw === 'function') {
  37358. returnValue = awaitIterator(returnValue);
  37359. }
  37360. }
  37361. }, zoneProps);
  37362. return (returnValue && typeof returnValue.then === 'function' ?
  37363. DexiePromise.resolve(returnValue).then(function (x) { return trans.active ?
  37364. x
  37365. : rejection(new exceptions.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn")); })
  37366. : promiseFollowed.then(function () { return returnValue; })).then(function (x) {
  37367. if (parentTransaction)
  37368. trans._resolve();
  37369. return trans._completion.then(function () { return x; });
  37370. }).catch(function (e) {
  37371. trans._reject(e);
  37372. return rejection(e);
  37373. });
  37374. });
  37375. }
  37376. function pad(a, value, count) {
  37377. var result = isArray(a) ? a.slice() : [a];
  37378. for (var i = 0; i < count; ++i)
  37379. result.push(value);
  37380. return result;
  37381. }
  37382. function createVirtualIndexMiddleware(down) {
  37383. return __assign(__assign({}, down), { table: function (tableName) {
  37384. var table = down.table(tableName);
  37385. var schema = table.schema;
  37386. var indexLookup = {};
  37387. var allVirtualIndexes = [];
  37388. function addVirtualIndexes(keyPath, keyTail, lowLevelIndex) {
  37389. var keyPathAlias = getKeyPathAlias(keyPath);
  37390. var indexList = (indexLookup[keyPathAlias] = indexLookup[keyPathAlias] || []);
  37391. var keyLength = keyPath == null ? 0 : typeof keyPath === 'string' ? 1 : keyPath.length;
  37392. var isVirtual = keyTail > 0;
  37393. var virtualIndex = __assign(__assign({}, lowLevelIndex), { isVirtual: isVirtual, isPrimaryKey: !isVirtual && lowLevelIndex.isPrimaryKey, keyTail: keyTail,
  37394. keyLength: keyLength, extractKey: getKeyExtractor(keyPath), unique: !isVirtual && lowLevelIndex.unique });
  37395. indexList.push(virtualIndex);
  37396. if (!virtualIndex.isPrimaryKey) {
  37397. allVirtualIndexes.push(virtualIndex);
  37398. }
  37399. if (keyLength > 1) {
  37400. var virtualKeyPath = keyLength === 2 ?
  37401. keyPath[0] :
  37402. keyPath.slice(0, keyLength - 1);
  37403. addVirtualIndexes(virtualKeyPath, keyTail + 1, lowLevelIndex);
  37404. }
  37405. indexList.sort(function (a, b) { return a.keyTail - b.keyTail; });
  37406. return virtualIndex;
  37407. }
  37408. var primaryKey = addVirtualIndexes(schema.primaryKey.keyPath, 0, schema.primaryKey);
  37409. indexLookup[":id"] = [primaryKey];
  37410. for (var _i = 0, _a = schema.indexes; _i < _a.length; _i++) {
  37411. var index = _a[_i];
  37412. addVirtualIndexes(index.keyPath, 0, index);
  37413. }
  37414. function findBestIndex(keyPath) {
  37415. var result = indexLookup[getKeyPathAlias(keyPath)];
  37416. return result && result[0];
  37417. }
  37418. function translateRange(range, keyTail) {
  37419. return {
  37420. type: range.type === 1 ?
  37421. 2 :
  37422. range.type,
  37423. lower: pad(range.lower, range.lowerOpen ? down.MAX_KEY : down.MIN_KEY, keyTail),
  37424. lowerOpen: true,
  37425. upper: pad(range.upper, range.upperOpen ? down.MIN_KEY : down.MAX_KEY, keyTail),
  37426. upperOpen: true
  37427. };
  37428. }
  37429. function translateRequest(req) {
  37430. var index = req.query.index;
  37431. return index.isVirtual ? __assign(__assign({}, req), { query: {
  37432. index: index,
  37433. range: translateRange(req.query.range, index.keyTail)
  37434. } }) : req;
  37435. }
  37436. var result = __assign(__assign({}, table), { schema: __assign(__assign({}, schema), { primaryKey: primaryKey, indexes: allVirtualIndexes, getIndexByKeyPath: findBestIndex }), count: function (req) {
  37437. return table.count(translateRequest(req));
  37438. },
  37439. query: function (req) {
  37440. return table.query(translateRequest(req));
  37441. },
  37442. openCursor: function (req) {
  37443. var _a = req.query.index, keyTail = _a.keyTail, isVirtual = _a.isVirtual, keyLength = _a.keyLength;
  37444. if (!isVirtual)
  37445. return table.openCursor(req);
  37446. function createVirtualCursor(cursor) {
  37447. function _continue(key) {
  37448. key != null ?
  37449. cursor.continue(pad(key, req.reverse ? down.MAX_KEY : down.MIN_KEY, keyTail)) :
  37450. req.unique ?
  37451. cursor.continue(pad(cursor.key, req.reverse ? down.MIN_KEY : down.MAX_KEY, keyTail)) :
  37452. cursor.continue();
  37453. }
  37454. var virtualCursor = Object.create(cursor, {
  37455. continue: { value: _continue },
  37456. continuePrimaryKey: {
  37457. value: function (key, primaryKey) {
  37458. cursor.continuePrimaryKey(pad(key, down.MAX_KEY, keyTail), primaryKey);
  37459. }
  37460. },
  37461. key: {
  37462. get: function () {
  37463. var key = cursor.key;
  37464. return keyLength === 1 ?
  37465. key[0] :
  37466. key.slice(0, keyLength);
  37467. }
  37468. },
  37469. value: {
  37470. get: function () {
  37471. return cursor.value;
  37472. }
  37473. }
  37474. });
  37475. return virtualCursor;
  37476. }
  37477. return table.openCursor(translateRequest(req))
  37478. .then(function (cursor) { return cursor && createVirtualCursor(cursor); });
  37479. } });
  37480. return result;
  37481. } });
  37482. }
  37483. var virtualIndexMiddleware = {
  37484. stack: "dbcore",
  37485. name: "VirtualIndexMiddleware",
  37486. level: 1,
  37487. create: createVirtualIndexMiddleware
  37488. };
  37489. var hooksMiddleware = {
  37490. stack: "dbcore",
  37491. name: "HooksMiddleware",
  37492. level: 2,
  37493. create: function (downCore) { return (__assign(__assign({}, downCore), { table: function (tableName) {
  37494. var downTable = downCore.table(tableName);
  37495. var primaryKey = downTable.schema.primaryKey;
  37496. var tableMiddleware = __assign(__assign({}, downTable), { mutate: function (req) {
  37497. var dxTrans = PSD.trans;
  37498. var _a = dxTrans.table(tableName).hook, deleting = _a.deleting, creating = _a.creating, updating = _a.updating;
  37499. switch (req.type) {
  37500. case 'add':
  37501. if (creating.fire === nop)
  37502. break;
  37503. return dxTrans._promise('readwrite', function () { return addPutOrDelete(req); }, true);
  37504. case 'put':
  37505. if (creating.fire === nop && updating.fire === nop)
  37506. break;
  37507. return dxTrans._promise('readwrite', function () { return addPutOrDelete(req); }, true);
  37508. case 'delete':
  37509. if (deleting.fire === nop)
  37510. break;
  37511. return dxTrans._promise('readwrite', function () { return addPutOrDelete(req); }, true);
  37512. case 'deleteRange':
  37513. if (deleting.fire === nop)
  37514. break;
  37515. return dxTrans._promise('readwrite', function () { return deleteRange(req); }, true);
  37516. }
  37517. return downTable.mutate(req);
  37518. function addPutOrDelete(req) {
  37519. var dxTrans = PSD.trans;
  37520. var keys$$1 = req.keys || getEffectiveKeys(primaryKey, req);
  37521. if (!keys$$1)
  37522. throw new Error("Keys missing");
  37523. req = req.type === 'add' || req.type === 'put' ? __assign(__assign({}, req), { keys: keys$$1, wantResults: true }) :
  37524. __assign({}, req);
  37525. if (req.type !== 'delete')
  37526. req.values = __spreadArrays(req.values);
  37527. if (req.keys)
  37528. req.keys = __spreadArrays(req.keys);
  37529. return getExistingValues(downTable, req, keys$$1).then(function (existingValues) {
  37530. var contexts = keys$$1.map(function (key, i) {
  37531. var existingValue = existingValues[i];
  37532. var ctx = { onerror: null, onsuccess: null };
  37533. if (req.type === 'delete') {
  37534. deleting.fire.call(ctx, key, existingValue, dxTrans);
  37535. }
  37536. else if (req.type === 'add' || existingValue === undefined) {
  37537. var generatedPrimaryKey = creating.fire.call(ctx, key, req.values[i], dxTrans);
  37538. if (key == null && generatedPrimaryKey != null) {
  37539. key = generatedPrimaryKey;
  37540. req.keys[i] = key;
  37541. if (!primaryKey.outbound) {
  37542. setByKeyPath(req.values[i], primaryKey.keyPath, key);
  37543. }
  37544. }
  37545. }
  37546. else {
  37547. var objectDiff = getObjectDiff(existingValue, req.values[i]);
  37548. var additionalChanges_1 = updating.fire.call(ctx, objectDiff, key, existingValue, dxTrans);
  37549. if (additionalChanges_1) {
  37550. var requestedValue_1 = req.values[i];
  37551. Object.keys(additionalChanges_1).forEach(function (keyPath) {
  37552. setByKeyPath(requestedValue_1, keyPath, additionalChanges_1[keyPath]);
  37553. });
  37554. }
  37555. }
  37556. return ctx;
  37557. });
  37558. return downTable.mutate(req).then(function (_a) {
  37559. var failures = _a.failures, results = _a.results, numFailures = _a.numFailures, lastResult = _a.lastResult;
  37560. for (var i = 0; i < keys$$1.length; ++i) {
  37561. var primKey = results ? results[i] : keys$$1[i];
  37562. var ctx = contexts[i];
  37563. if (primKey == null) {
  37564. ctx.onerror && ctx.onerror(failures[i]);
  37565. }
  37566. else {
  37567. ctx.onsuccess && ctx.onsuccess(req.type === 'put' && existingValues[i] ?
  37568. req.values[i] :
  37569. primKey
  37570. );
  37571. }
  37572. }
  37573. return { failures: failures, results: results, numFailures: numFailures, lastResult: lastResult };
  37574. }).catch(function (error) {
  37575. contexts.forEach(function (ctx) { return ctx.onerror && ctx.onerror(error); });
  37576. return Promise.reject(error);
  37577. });
  37578. });
  37579. }
  37580. function deleteRange(req) {
  37581. return deleteNextChunk(req.trans, req.range, 10000);
  37582. }
  37583. function deleteNextChunk(trans, range, limit) {
  37584. return downTable.query({ trans: trans, values: false, query: { index: primaryKey, range: range }, limit: limit })
  37585. .then(function (_a) {
  37586. var result = _a.result;
  37587. return addPutOrDelete({ type: 'delete', keys: result, trans: trans }).then(function (res) {
  37588. if (res.numFailures > 0)
  37589. return Promise.reject(res.failures[0]);
  37590. if (result.length < limit) {
  37591. return { failures: [], numFailures: 0, lastResult: undefined };
  37592. }
  37593. else {
  37594. return deleteNextChunk(trans, __assign(__assign({}, range), { lower: result[result.length - 1], lowerOpen: true }), limit);
  37595. }
  37596. });
  37597. });
  37598. }
  37599. } });
  37600. return tableMiddleware;
  37601. } })); }
  37602. };
  37603. var Dexie = (function () {
  37604. function Dexie(name, options) {
  37605. var _this = this;
  37606. this._middlewares = {};
  37607. this.verno = 0;
  37608. var deps = Dexie.dependencies;
  37609. this._options = options = __assign({
  37610. addons: Dexie.addons, autoOpen: true,
  37611. indexedDB: deps.indexedDB, IDBKeyRange: deps.IDBKeyRange }, options);
  37612. this._deps = {
  37613. indexedDB: options.indexedDB,
  37614. IDBKeyRange: options.IDBKeyRange
  37615. };
  37616. var addons = options.addons;
  37617. this._dbSchema = {};
  37618. this._versions = [];
  37619. this._storeNames = [];
  37620. this._allTables = {};
  37621. this.idbdb = null;
  37622. var state = {
  37623. dbOpenError: null,
  37624. isBeingOpened: false,
  37625. onReadyBeingFired: null,
  37626. openComplete: false,
  37627. dbReadyResolve: nop,
  37628. dbReadyPromise: null,
  37629. cancelOpen: nop,
  37630. openCanceller: null,
  37631. autoSchema: true
  37632. };
  37633. state.dbReadyPromise = new DexiePromise(function (resolve) {
  37634. state.dbReadyResolve = resolve;
  37635. });
  37636. state.openCanceller = new DexiePromise(function (_, reject) {
  37637. state.cancelOpen = reject;
  37638. });
  37639. this._state = state;
  37640. this.name = name;
  37641. this.on = Events(this, "populate", "blocked", "versionchange", { ready: [promisableChain, nop] });
  37642. this.on.ready.subscribe = override(this.on.ready.subscribe, function (subscribe) {
  37643. return function (subscriber, bSticky) {
  37644. Dexie.vip(function () {
  37645. var state = _this._state;
  37646. if (state.openComplete) {
  37647. if (!state.dbOpenError)
  37648. DexiePromise.resolve().then(subscriber);
  37649. if (bSticky)
  37650. subscribe(subscriber);
  37651. }
  37652. else if (state.onReadyBeingFired) {
  37653. state.onReadyBeingFired.push(subscriber);
  37654. if (bSticky)
  37655. subscribe(subscriber);
  37656. }
  37657. else {
  37658. subscribe(subscriber);
  37659. var db_1 = _this;
  37660. if (!bSticky)
  37661. subscribe(function unsubscribe() {
  37662. db_1.on.ready.unsubscribe(subscriber);
  37663. db_1.on.ready.unsubscribe(unsubscribe);
  37664. });
  37665. }
  37666. });
  37667. };
  37668. });
  37669. this.Collection = createCollectionConstructor(this);
  37670. this.Table = createTableConstructor(this);
  37671. this.Transaction = createTransactionConstructor(this);
  37672. this.Version = createVersionConstructor(this);
  37673. this.WhereClause = createWhereClauseConstructor(this);
  37674. this.on("versionchange", function (ev) {
  37675. if (ev.newVersion > 0)
  37676. console.warn("Another connection wants to upgrade database '" + _this.name + "'. Closing db now to resume the upgrade.");
  37677. else
  37678. console.warn("Another connection wants to delete database '" + _this.name + "'. Closing db now to resume the delete request.");
  37679. _this.close();
  37680. });
  37681. this.on("blocked", function (ev) {
  37682. if (!ev.newVersion || ev.newVersion < ev.oldVersion)
  37683. console.warn("Dexie.delete('" + _this.name + "') was blocked");
  37684. else
  37685. console.warn("Upgrade '" + _this.name + "' blocked by other connection holding version " + ev.oldVersion / 10);
  37686. });
  37687. this._maxKey = getMaxKey(options.IDBKeyRange);
  37688. this._createTransaction = function (mode, storeNames, dbschema, parentTransaction) { return new _this.Transaction(mode, storeNames, dbschema, parentTransaction); };
  37689. this._fireOnBlocked = function (ev) {
  37690. _this.on("blocked").fire(ev);
  37691. connections
  37692. .filter(function (c) { return c.name === _this.name && c !== _this && !c._state.vcFired; })
  37693. .map(function (c) { return c.on("versionchange").fire(ev); });
  37694. };
  37695. this.use(virtualIndexMiddleware);
  37696. this.use(hooksMiddleware);
  37697. addons.forEach(function (addon) { return addon(_this); });
  37698. }
  37699. Dexie.prototype.version = function (versionNumber) {
  37700. if (isNaN(versionNumber) || versionNumber < 0.1)
  37701. throw new exceptions.Type("Given version is not a positive number");
  37702. versionNumber = Math.round(versionNumber * 10) / 10;
  37703. if (this.idbdb || this._state.isBeingOpened)
  37704. throw new exceptions.Schema("Cannot add version when database is open");
  37705. this.verno = Math.max(this.verno, versionNumber);
  37706. var versions = this._versions;
  37707. var versionInstance = versions.filter(function (v) { return v._cfg.version === versionNumber; })[0];
  37708. if (versionInstance)
  37709. return versionInstance;
  37710. versionInstance = new this.Version(versionNumber);
  37711. versions.push(versionInstance);
  37712. versions.sort(lowerVersionFirst);
  37713. versionInstance.stores({});
  37714. this._state.autoSchema = false;
  37715. return versionInstance;
  37716. };
  37717. Dexie.prototype._whenReady = function (fn) {
  37718. var _this = this;
  37719. return this._state.openComplete || PSD.letThrough ? fn() : new DexiePromise(function (resolve, reject) {
  37720. if (!_this._state.isBeingOpened) {
  37721. if (!_this._options.autoOpen) {
  37722. reject(new exceptions.DatabaseClosed());
  37723. return;
  37724. }
  37725. _this.open().catch(nop);
  37726. }
  37727. _this._state.dbReadyPromise.then(resolve, reject);
  37728. }).then(fn);
  37729. };
  37730. Dexie.prototype.use = function (_a) {
  37731. var stack = _a.stack, create = _a.create, level = _a.level, name = _a.name;
  37732. if (name)
  37733. this.unuse({ stack: stack, name: name });
  37734. var middlewares = this._middlewares[stack] || (this._middlewares[stack] = []);
  37735. middlewares.push({ stack: stack, create: create, level: level == null ? 10 : level, name: name });
  37736. middlewares.sort(function (a, b) { return a.level - b.level; });
  37737. return this;
  37738. };
  37739. Dexie.prototype.unuse = function (_a) {
  37740. var stack = _a.stack, name = _a.name, create = _a.create;
  37741. if (stack && this._middlewares[stack]) {
  37742. this._middlewares[stack] = this._middlewares[stack].filter(function (mw) {
  37743. return create ? mw.create !== create :
  37744. name ? mw.name !== name :
  37745. false;
  37746. });
  37747. }
  37748. return this;
  37749. };
  37750. Dexie.prototype.open = function () {
  37751. return dexieOpen(this);
  37752. };
  37753. Dexie.prototype.close = function () {
  37754. var idx = connections.indexOf(this), state = this._state;
  37755. if (idx >= 0)
  37756. connections.splice(idx, 1);
  37757. if (this.idbdb) {
  37758. try {
  37759. this.idbdb.close();
  37760. }
  37761. catch (e) { }
  37762. this.idbdb = null;
  37763. }
  37764. this._options.autoOpen = false;
  37765. state.dbOpenError = new exceptions.DatabaseClosed();
  37766. if (state.isBeingOpened)
  37767. state.cancelOpen(state.dbOpenError);
  37768. state.dbReadyPromise = new DexiePromise(function (resolve) {
  37769. state.dbReadyResolve = resolve;
  37770. });
  37771. state.openCanceller = new DexiePromise(function (_, reject) {
  37772. state.cancelOpen = reject;
  37773. });
  37774. };
  37775. Dexie.prototype.delete = function () {
  37776. var _this = this;
  37777. var hasArguments = arguments.length > 0;
  37778. var state = this._state;
  37779. return new DexiePromise(function (resolve, reject) {
  37780. var doDelete = function () {
  37781. _this.close();
  37782. var req = _this._deps.indexedDB.deleteDatabase(_this.name);
  37783. req.onsuccess = wrap(function () {
  37784. databaseEnumerator.remove(_this.name);
  37785. resolve();
  37786. });
  37787. req.onerror = eventRejectHandler(reject);
  37788. req.onblocked = _this._fireOnBlocked;
  37789. };
  37790. if (hasArguments)
  37791. throw new exceptions.InvalidArgument("Arguments not allowed in db.delete()");
  37792. if (state.isBeingOpened) {
  37793. state.dbReadyPromise.then(doDelete);
  37794. }
  37795. else {
  37796. doDelete();
  37797. }
  37798. });
  37799. };
  37800. Dexie.prototype.backendDB = function () {
  37801. return this.idbdb;
  37802. };
  37803. Dexie.prototype.isOpen = function () {
  37804. return this.idbdb !== null;
  37805. };
  37806. Dexie.prototype.hasBeenClosed = function () {
  37807. var dbOpenError = this._state.dbOpenError;
  37808. return dbOpenError && (dbOpenError.name === 'DatabaseClosed');
  37809. };
  37810. Dexie.prototype.hasFailed = function () {
  37811. return this._state.dbOpenError !== null;
  37812. };
  37813. Dexie.prototype.dynamicallyOpened = function () {
  37814. return this._state.autoSchema;
  37815. };
  37816. Object.defineProperty(Dexie.prototype, "tables", {
  37817. get: function () {
  37818. var _this = this;
  37819. return keys(this._allTables).map(function (name) { return _this._allTables[name]; });
  37820. },
  37821. enumerable: true,
  37822. configurable: true
  37823. });
  37824. Dexie.prototype.transaction = function () {
  37825. var args = extractTransactionArgs.apply(this, arguments);
  37826. return this._transaction.apply(this, args);
  37827. };
  37828. Dexie.prototype._transaction = function (mode, tables, scopeFunc) {
  37829. var _this = this;
  37830. var parentTransaction = PSD.trans;
  37831. if (!parentTransaction || parentTransaction.db !== this || mode.indexOf('!') !== -1)
  37832. parentTransaction = null;
  37833. var onlyIfCompatible = mode.indexOf('?') !== -1;
  37834. mode = mode.replace('!', '').replace('?', '');
  37835. var idbMode, storeNames;
  37836. try {
  37837. storeNames = tables.map(function (table) {
  37838. var storeName = table instanceof _this.Table ? table.name : table;
  37839. if (typeof storeName !== 'string')
  37840. throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");
  37841. return storeName;
  37842. });
  37843. if (mode == "r" || mode === READONLY)
  37844. idbMode = READONLY;
  37845. else if (mode == "rw" || mode == READWRITE)
  37846. idbMode = READWRITE;
  37847. else
  37848. throw new exceptions.InvalidArgument("Invalid transaction mode: " + mode);
  37849. if (parentTransaction) {
  37850. if (parentTransaction.mode === READONLY && idbMode === READWRITE) {
  37851. if (onlyIfCompatible) {
  37852. parentTransaction = null;
  37853. }
  37854. else
  37855. throw new exceptions.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");
  37856. }
  37857. if (parentTransaction) {
  37858. storeNames.forEach(function (storeName) {
  37859. if (parentTransaction && parentTransaction.storeNames.indexOf(storeName) === -1) {
  37860. if (onlyIfCompatible) {
  37861. parentTransaction = null;
  37862. }
  37863. else
  37864. throw new exceptions.SubTransaction("Table " + storeName +
  37865. " not included in parent transaction.");
  37866. }
  37867. });
  37868. }
  37869. if (onlyIfCompatible && parentTransaction && !parentTransaction.active) {
  37870. parentTransaction = null;
  37871. }
  37872. }
  37873. }
  37874. catch (e) {
  37875. return parentTransaction ?
  37876. parentTransaction._promise(null, function (_, reject) { reject(e); }) :
  37877. rejection(e);
  37878. }
  37879. var enterTransaction = enterTransactionScope.bind(null, this, idbMode, storeNames, parentTransaction, scopeFunc);
  37880. return (parentTransaction ?
  37881. parentTransaction._promise(idbMode, enterTransaction, "lock") :
  37882. PSD.trans ?
  37883. usePSD(PSD.transless, function () { return _this._whenReady(enterTransaction); }) :
  37884. this._whenReady(enterTransaction));
  37885. };
  37886. Dexie.prototype.table = function (tableName) {
  37887. if (!hasOwn(this._allTables, tableName)) {
  37888. throw new exceptions.InvalidTable("Table " + tableName + " does not exist");
  37889. }
  37890. return this._allTables[tableName];
  37891. };
  37892. return Dexie;
  37893. }());
  37894. var Dexie$1 = Dexie;
  37895. props(Dexie$1, __assign(__assign({}, fullNameExceptions), {
  37896. delete: function (databaseName) {
  37897. var db = new Dexie$1(databaseName);
  37898. return db.delete();
  37899. },
  37900. exists: function (name) {
  37901. return new Dexie$1(name, { addons: [] }).open().then(function (db) {
  37902. db.close();
  37903. return true;
  37904. }).catch('NoSuchDatabaseError', function () { return false; });
  37905. },
  37906. getDatabaseNames: function (cb) {
  37907. return databaseEnumerator ?
  37908. databaseEnumerator.getDatabaseNames().then(cb) :
  37909. DexiePromise.resolve([]);
  37910. },
  37911. defineClass: function () {
  37912. function Class(content) {
  37913. extend(this, content);
  37914. }
  37915. return Class;
  37916. },
  37917. ignoreTransaction: function (scopeFunc) {
  37918. return PSD.trans ?
  37919. usePSD(PSD.transless, scopeFunc) :
  37920. scopeFunc();
  37921. },
  37922. vip: vip, async: function (generatorFn) {
  37923. return function () {
  37924. try {
  37925. var rv = awaitIterator(generatorFn.apply(this, arguments));
  37926. if (!rv || typeof rv.then !== 'function')
  37927. return DexiePromise.resolve(rv);
  37928. return rv;
  37929. }
  37930. catch (e) {
  37931. return rejection(e);
  37932. }
  37933. };
  37934. }, spawn: function (generatorFn, args, thiz) {
  37935. try {
  37936. var rv = awaitIterator(generatorFn.apply(thiz, args || []));
  37937. if (!rv || typeof rv.then !== 'function')
  37938. return DexiePromise.resolve(rv);
  37939. return rv;
  37940. }
  37941. catch (e) {
  37942. return rejection(e);
  37943. }
  37944. },
  37945. currentTransaction: {
  37946. get: function () { return PSD.trans || null; }
  37947. }, waitFor: function (promiseOrFunction, optionalTimeout) {
  37948. var promise = DexiePromise.resolve(typeof promiseOrFunction === 'function' ?
  37949. Dexie$1.ignoreTransaction(promiseOrFunction) :
  37950. promiseOrFunction)
  37951. .timeout(optionalTimeout || 60000);
  37952. return PSD.trans ?
  37953. PSD.trans.waitFor(promise) :
  37954. promise;
  37955. },
  37956. Promise: DexiePromise,
  37957. debug: {
  37958. get: function () { return debug; },
  37959. set: function (value) {
  37960. setDebug(value, value === 'dexie' ? function () { return true; } : dexieStackFrameFilter);
  37961. }
  37962. },
  37963. derive: derive, extend: extend, props: props, override: override,
  37964. Events: Events,
  37965. getByKeyPath: getByKeyPath, setByKeyPath: setByKeyPath, delByKeyPath: delByKeyPath, shallowClone: shallowClone, deepClone: deepClone, getObjectDiff: getObjectDiff, asap: asap,
  37966. minKey: minKey,
  37967. addons: [],
  37968. connections: connections,
  37969. errnames: errnames,
  37970. dependencies: (function () {
  37971. try {
  37972. return {
  37973. indexedDB: _global.indexedDB || _global.mozIndexedDB || _global.webkitIndexedDB || _global.msIndexedDB,
  37974. IDBKeyRange: _global.IDBKeyRange || _global.webkitIDBKeyRange
  37975. };
  37976. }
  37977. catch (e) {
  37978. return { indexedDB: null, IDBKeyRange: null };
  37979. }
  37980. })(),
  37981. semVer: DEXIE_VERSION, version: DEXIE_VERSION.split('.')
  37982. .map(function (n) { return parseInt(n); })
  37983. .reduce(function (p, c, i) { return p + (c / Math.pow(10, i * 2)); }),
  37984. default: Dexie$1,
  37985. Dexie: Dexie$1 }));
  37986. Dexie$1.maxKey = getMaxKey(Dexie$1.dependencies.IDBKeyRange);
  37987. initDatabaseEnumerator(Dexie.dependencies.indexedDB);
  37988. DexiePromise.rejectionMapper = mapError;
  37989. setDebug(debug, dexieStackFrameFilter);
  37990. /* harmony default export */ __webpack_exports__["default"] = (Dexie);
  37991. //# sourceMappingURL=dexie.mjs.map
  37992. /***/ }),
  37993. /***/ "UGaM":
  37994. /*!**************************************************************************!*\
  37995. !*** ./node_modules/rxjs/_esm2015/internal/operators/publishBehavior.js ***!
  37996. \**************************************************************************/
  37997. /*! exports provided: publishBehavior */
  37998. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  37999. "use strict";
  38000. __webpack_require__.r(__webpack_exports__);
  38001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publishBehavior", function() { return publishBehavior; });
  38002. /* harmony import */ var _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../BehaviorSubject */ "2Vo4");
  38003. /* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./multicast */ "oB13");
  38004. function publishBehavior(value) {
  38005. return (source) => Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _BehaviorSubject__WEBPACK_IMPORTED_MODULE_0__["BehaviorSubject"](value))(source);
  38006. }
  38007. //# sourceMappingURL=publishBehavior.js.map
  38008. /***/ }),
  38009. /***/ "UHp3":
  38010. /*!*********************************************************************!*\
  38011. !*** ./node_modules/rxjs/_esm2015/internal/operators/windowTime.js ***!
  38012. \*********************************************************************/
  38013. /*! exports provided: windowTime */
  38014. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38015. "use strict";
  38016. __webpack_require__.r(__webpack_exports__);
  38017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowTime", function() { return windowTime; });
  38018. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG");
  38019. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  38020. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  38021. /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isNumeric */ "Y7HM");
  38022. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  38023. function windowTime(windowTimeSpan) {
  38024. let scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
  38025. let windowCreationInterval = null;
  38026. let maxWindowSize = Number.POSITIVE_INFINITY;
  38027. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[3])) {
  38028. scheduler = arguments[3];
  38029. }
  38030. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[2])) {
  38031. scheduler = arguments[2];
  38032. }
  38033. else if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_3__["isNumeric"])(arguments[2])) {
  38034. maxWindowSize = arguments[2];
  38035. }
  38036. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_4__["isScheduler"])(arguments[1])) {
  38037. scheduler = arguments[1];
  38038. }
  38039. else if (Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_3__["isNumeric"])(arguments[1])) {
  38040. windowCreationInterval = arguments[1];
  38041. }
  38042. return function windowTimeOperatorFunction(source) {
  38043. return source.lift(new WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler));
  38044. };
  38045. }
  38046. class WindowTimeOperator {
  38047. constructor(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {
  38048. this.windowTimeSpan = windowTimeSpan;
  38049. this.windowCreationInterval = windowCreationInterval;
  38050. this.maxWindowSize = maxWindowSize;
  38051. this.scheduler = scheduler;
  38052. }
  38053. call(subscriber, source) {
  38054. return source.subscribe(new WindowTimeSubscriber(subscriber, this.windowTimeSpan, this.windowCreationInterval, this.maxWindowSize, this.scheduler));
  38055. }
  38056. }
  38057. class CountedSubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"] {
  38058. constructor() {
  38059. super(...arguments);
  38060. this._numberOfNextedValues = 0;
  38061. }
  38062. next(value) {
  38063. this._numberOfNextedValues++;
  38064. super.next(value);
  38065. }
  38066. get numberOfNextedValues() {
  38067. return this._numberOfNextedValues;
  38068. }
  38069. }
  38070. class WindowTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_2__["Subscriber"] {
  38071. constructor(destination, windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {
  38072. super(destination);
  38073. this.destination = destination;
  38074. this.windowTimeSpan = windowTimeSpan;
  38075. this.windowCreationInterval = windowCreationInterval;
  38076. this.maxWindowSize = maxWindowSize;
  38077. this.scheduler = scheduler;
  38078. this.windows = [];
  38079. const window = this.openWindow();
  38080. if (windowCreationInterval !== null && windowCreationInterval >= 0) {
  38081. const closeState = { subscriber: this, window, context: null };
  38082. const creationState = { windowTimeSpan, windowCreationInterval, subscriber: this, scheduler };
  38083. this.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState));
  38084. this.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState));
  38085. }
  38086. else {
  38087. const timeSpanOnlyState = { subscriber: this, window, windowTimeSpan };
  38088. this.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState));
  38089. }
  38090. }
  38091. _next(value) {
  38092. const windows = this.windows;
  38093. const len = windows.length;
  38094. for (let i = 0; i < len; i++) {
  38095. const window = windows[i];
  38096. if (!window.closed) {
  38097. window.next(value);
  38098. if (window.numberOfNextedValues >= this.maxWindowSize) {
  38099. this.closeWindow(window);
  38100. }
  38101. }
  38102. }
  38103. }
  38104. _error(err) {
  38105. const windows = this.windows;
  38106. while (windows.length > 0) {
  38107. windows.shift().error(err);
  38108. }
  38109. this.destination.error(err);
  38110. }
  38111. _complete() {
  38112. const windows = this.windows;
  38113. while (windows.length > 0) {
  38114. const window = windows.shift();
  38115. if (!window.closed) {
  38116. window.complete();
  38117. }
  38118. }
  38119. this.destination.complete();
  38120. }
  38121. openWindow() {
  38122. const window = new CountedSubject();
  38123. this.windows.push(window);
  38124. const destination = this.destination;
  38125. destination.next(window);
  38126. return window;
  38127. }
  38128. closeWindow(window) {
  38129. window.complete();
  38130. const windows = this.windows;
  38131. windows.splice(windows.indexOf(window), 1);
  38132. }
  38133. }
  38134. function dispatchWindowTimeSpanOnly(state) {
  38135. const { subscriber, windowTimeSpan, window } = state;
  38136. if (window) {
  38137. subscriber.closeWindow(window);
  38138. }
  38139. state.window = subscriber.openWindow();
  38140. this.schedule(state, windowTimeSpan);
  38141. }
  38142. function dispatchWindowCreation(state) {
  38143. const { windowTimeSpan, subscriber, scheduler, windowCreationInterval } = state;
  38144. const window = subscriber.openWindow();
  38145. const action = this;
  38146. let context = { action, subscription: null };
  38147. const timeSpanState = { subscriber, window, context };
  38148. context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState);
  38149. action.add(context.subscription);
  38150. action.schedule(state, windowCreationInterval);
  38151. }
  38152. function dispatchWindowClose(state) {
  38153. const { subscriber, window, context } = state;
  38154. if (context && context.action && context.subscription) {
  38155. context.action.remove(context.subscription);
  38156. }
  38157. subscriber.closeWindow(window);
  38158. }
  38159. //# sourceMappingURL=windowTime.js.map
  38160. /***/ }),
  38161. /***/ "UXbc":
  38162. /*!*********************************************************************!*\
  38163. !*** ./node_modules/rxjs/_esm2015/internal/operators/mergeMapTo.js ***!
  38164. \*********************************************************************/
  38165. /*! exports provided: mergeMapTo */
  38166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38167. "use strict";
  38168. __webpack_require__.r(__webpack_exports__);
  38169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeMapTo", function() { return mergeMapTo; });
  38170. /* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeMap */ "5+tZ");
  38171. function mergeMapTo(innerObservable, resultSelector, concurrent = Number.POSITIVE_INFINITY) {
  38172. if (typeof resultSelector === 'function') {
  38173. return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(() => innerObservable, resultSelector, concurrent);
  38174. }
  38175. if (typeof resultSelector === 'number') {
  38176. concurrent = resultSelector;
  38177. }
  38178. return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(() => innerObservable, concurrent);
  38179. }
  38180. //# sourceMappingURL=mergeMapTo.js.map
  38181. /***/ }),
  38182. /***/ "UXun":
  38183. /*!**********************************************************************!*\
  38184. !*** ./node_modules/rxjs/_esm2015/internal/operators/shareReplay.js ***!
  38185. \**********************************************************************/
  38186. /*! exports provided: shareReplay */
  38187. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38188. "use strict";
  38189. __webpack_require__.r(__webpack_exports__);
  38190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "shareReplay", function() { return shareReplay; });
  38191. /* harmony import */ var _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../ReplaySubject */ "jtHE");
  38192. function shareReplay(configOrBufferSize, windowTime, scheduler) {
  38193. let config;
  38194. if (configOrBufferSize && typeof configOrBufferSize === 'object') {
  38195. config = configOrBufferSize;
  38196. }
  38197. else {
  38198. config = {
  38199. bufferSize: configOrBufferSize,
  38200. windowTime,
  38201. refCount: false,
  38202. scheduler
  38203. };
  38204. }
  38205. return (source) => source.lift(shareReplayOperator(config));
  38206. }
  38207. function shareReplayOperator({ bufferSize = Number.POSITIVE_INFINITY, windowTime = Number.POSITIVE_INFINITY, refCount: useRefCount, scheduler }) {
  38208. let subject;
  38209. let refCount = 0;
  38210. let subscription;
  38211. let hasError = false;
  38212. let isComplete = false;
  38213. return function shareReplayOperation(source) {
  38214. refCount++;
  38215. if (!subject || hasError) {
  38216. hasError = false;
  38217. subject = new _ReplaySubject__WEBPACK_IMPORTED_MODULE_0__["ReplaySubject"](bufferSize, windowTime, scheduler);
  38218. subscription = source.subscribe({
  38219. next(value) { subject.next(value); },
  38220. error(err) {
  38221. hasError = true;
  38222. subject.error(err);
  38223. },
  38224. complete() {
  38225. isComplete = true;
  38226. subscription = undefined;
  38227. subject.complete();
  38228. },
  38229. });
  38230. }
  38231. const innerSub = subject.subscribe(this);
  38232. this.add(() => {
  38233. refCount--;
  38234. innerSub.unsubscribe();
  38235. if (subscription && !isComplete && useRefCount && refCount === 0) {
  38236. subscription.unsubscribe();
  38237. subscription = undefined;
  38238. subject = undefined;
  38239. }
  38240. });
  38241. };
  38242. }
  38243. //# sourceMappingURL=shareReplay.js.map
  38244. /***/ }),
  38245. /***/ "VRyK":
  38246. /*!*****************************************************************!*\
  38247. !*** ./node_modules/rxjs/_esm2015/internal/observable/merge.js ***!
  38248. \*****************************************************************/
  38249. /*! exports provided: merge */
  38250. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38251. "use strict";
  38252. __webpack_require__.r(__webpack_exports__);
  38253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; });
  38254. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  38255. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  38256. /* harmony import */ var _operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/mergeAll */ "bHdf");
  38257. /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./fromArray */ "yCtX");
  38258. function merge(...observables) {
  38259. let concurrent = Number.POSITIVE_INFINITY;
  38260. let scheduler = null;
  38261. let last = observables[observables.length - 1];
  38262. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_1__["isScheduler"])(last)) {
  38263. scheduler = observables.pop();
  38264. if (observables.length > 1 && typeof observables[observables.length - 1] === 'number') {
  38265. concurrent = observables.pop();
  38266. }
  38267. }
  38268. else if (typeof last === 'number') {
  38269. concurrent = observables.pop();
  38270. }
  38271. if (scheduler === null && observables.length === 1 && observables[0] instanceof _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]) {
  38272. return observables[0];
  38273. }
  38274. return Object(_operators_mergeAll__WEBPACK_IMPORTED_MODULE_2__["mergeAll"])(concurrent)(Object(_fromArray__WEBPACK_IMPORTED_MODULE_3__["fromArray"])(observables, scheduler));
  38275. }
  38276. //# sourceMappingURL=merge.js.map
  38277. /***/ }),
  38278. /***/ "Vpsf":
  38279. /*!*******************************************************************************!*\
  38280. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameAction.js ***!
  38281. \*******************************************************************************/
  38282. /*! exports provided: AnimationFrameAction */
  38283. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38284. "use strict";
  38285. __webpack_require__.r(__webpack_exports__);
  38286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationFrameAction", function() { return AnimationFrameAction; });
  38287. /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ "3N8a");
  38288. class AnimationFrameAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"] {
  38289. constructor(scheduler, work) {
  38290. super(scheduler, work);
  38291. this.scheduler = scheduler;
  38292. this.work = work;
  38293. }
  38294. requestAsyncId(scheduler, id, delay = 0) {
  38295. if (delay !== null && delay > 0) {
  38296. return super.requestAsyncId(scheduler, id, delay);
  38297. }
  38298. scheduler.actions.push(this);
  38299. return scheduler.scheduled || (scheduler.scheduled = requestAnimationFrame(() => scheduler.flush(null)));
  38300. }
  38301. recycleAsyncId(scheduler, id, delay = 0) {
  38302. if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
  38303. return super.recycleAsyncId(scheduler, id, delay);
  38304. }
  38305. if (scheduler.actions.length === 0) {
  38306. cancelAnimationFrame(id);
  38307. scheduler.scheduled = undefined;
  38308. }
  38309. return undefined;
  38310. }
  38311. }
  38312. //# sourceMappingURL=AnimationFrameAction.js.map
  38313. /***/ }),
  38314. /***/ "WMd4":
  38315. /*!*************************************************************!*\
  38316. !*** ./node_modules/rxjs/_esm2015/internal/Notification.js ***!
  38317. \*************************************************************/
  38318. /*! exports provided: NotificationKind, Notification */
  38319. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38320. "use strict";
  38321. __webpack_require__.r(__webpack_exports__);
  38322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationKind", function() { return NotificationKind; });
  38323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return Notification; });
  38324. /* harmony import */ var _observable_empty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./observable/empty */ "EY2u");
  38325. /* harmony import */ var _observable_of__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./observable/of */ "LRne");
  38326. /* harmony import */ var _observable_throwError__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./observable/throwError */ "z6cu");
  38327. var NotificationKind;
  38328. (function (NotificationKind) {
  38329. NotificationKind["NEXT"] = "N";
  38330. NotificationKind["ERROR"] = "E";
  38331. NotificationKind["COMPLETE"] = "C";
  38332. })(NotificationKind || (NotificationKind = {}));
  38333. class Notification {
  38334. constructor(kind, value, error) {
  38335. this.kind = kind;
  38336. this.value = value;
  38337. this.error = error;
  38338. this.hasValue = kind === 'N';
  38339. }
  38340. observe(observer) {
  38341. switch (this.kind) {
  38342. case 'N':
  38343. return observer.next && observer.next(this.value);
  38344. case 'E':
  38345. return observer.error && observer.error(this.error);
  38346. case 'C':
  38347. return observer.complete && observer.complete();
  38348. }
  38349. }
  38350. do(next, error, complete) {
  38351. const kind = this.kind;
  38352. switch (kind) {
  38353. case 'N':
  38354. return next && next(this.value);
  38355. case 'E':
  38356. return error && error(this.error);
  38357. case 'C':
  38358. return complete && complete();
  38359. }
  38360. }
  38361. accept(nextOrObserver, error, complete) {
  38362. if (nextOrObserver && typeof nextOrObserver.next === 'function') {
  38363. return this.observe(nextOrObserver);
  38364. }
  38365. else {
  38366. return this.do(nextOrObserver, error, complete);
  38367. }
  38368. }
  38369. toObservable() {
  38370. const kind = this.kind;
  38371. switch (kind) {
  38372. case 'N':
  38373. return Object(_observable_of__WEBPACK_IMPORTED_MODULE_1__["of"])(this.value);
  38374. case 'E':
  38375. return Object(_observable_throwError__WEBPACK_IMPORTED_MODULE_2__["throwError"])(this.error);
  38376. case 'C':
  38377. return Object(_observable_empty__WEBPACK_IMPORTED_MODULE_0__["empty"])();
  38378. }
  38379. throw new Error('unexpected notification kind value');
  38380. }
  38381. static createNext(value) {
  38382. if (typeof value !== 'undefined') {
  38383. return new Notification('N', value);
  38384. }
  38385. return Notification.undefinedValueNotification;
  38386. }
  38387. static createError(err) {
  38388. return new Notification('E', undefined, err);
  38389. }
  38390. static createComplete() {
  38391. return Notification.completeNotification;
  38392. }
  38393. }
  38394. Notification.completeNotification = new Notification('C');
  38395. Notification.undefinedValueNotification = new Notification('N', undefined);
  38396. //# sourceMappingURL=Notification.js.map
  38397. /***/ }),
  38398. /***/ "WPMC":
  38399. /*!********************************************************************!*\
  38400. !*** ./node_modules/rxjs/_esm2015/internal/observable/generate.js ***!
  38401. \********************************************************************/
  38402. /*! exports provided: generate */
  38403. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38404. "use strict";
  38405. __webpack_require__.r(__webpack_exports__);
  38406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return generate; });
  38407. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  38408. /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ "SpAZ");
  38409. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  38410. function generate(initialStateOrOptions, condition, iterate, resultSelectorOrObservable, scheduler) {
  38411. let resultSelector;
  38412. let initialState;
  38413. if (arguments.length == 1) {
  38414. const options = initialStateOrOptions;
  38415. initialState = options.initialState;
  38416. condition = options.condition;
  38417. iterate = options.iterate;
  38418. resultSelector = options.resultSelector || _util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"];
  38419. scheduler = options.scheduler;
  38420. }
  38421. else if (resultSelectorOrObservable === undefined || Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_2__["isScheduler"])(resultSelectorOrObservable)) {
  38422. initialState = initialStateOrOptions;
  38423. resultSelector = _util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"];
  38424. scheduler = resultSelectorOrObservable;
  38425. }
  38426. else {
  38427. initialState = initialStateOrOptions;
  38428. resultSelector = resultSelectorOrObservable;
  38429. }
  38430. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  38431. let state = initialState;
  38432. if (scheduler) {
  38433. return scheduler.schedule(dispatch, 0, {
  38434. subscriber,
  38435. iterate,
  38436. condition,
  38437. resultSelector,
  38438. state
  38439. });
  38440. }
  38441. do {
  38442. if (condition) {
  38443. let conditionResult;
  38444. try {
  38445. conditionResult = condition(state);
  38446. }
  38447. catch (err) {
  38448. subscriber.error(err);
  38449. return undefined;
  38450. }
  38451. if (!conditionResult) {
  38452. subscriber.complete();
  38453. break;
  38454. }
  38455. }
  38456. let value;
  38457. try {
  38458. value = resultSelector(state);
  38459. }
  38460. catch (err) {
  38461. subscriber.error(err);
  38462. return undefined;
  38463. }
  38464. subscriber.next(value);
  38465. if (subscriber.closed) {
  38466. break;
  38467. }
  38468. try {
  38469. state = iterate(state);
  38470. }
  38471. catch (err) {
  38472. subscriber.error(err);
  38473. return undefined;
  38474. }
  38475. } while (true);
  38476. return undefined;
  38477. });
  38478. }
  38479. function dispatch(state) {
  38480. const { subscriber, condition } = state;
  38481. if (subscriber.closed) {
  38482. return undefined;
  38483. }
  38484. if (state.needIterate) {
  38485. try {
  38486. state.state = state.iterate(state.state);
  38487. }
  38488. catch (err) {
  38489. subscriber.error(err);
  38490. return undefined;
  38491. }
  38492. }
  38493. else {
  38494. state.needIterate = true;
  38495. }
  38496. if (condition) {
  38497. let conditionResult;
  38498. try {
  38499. conditionResult = condition(state.state);
  38500. }
  38501. catch (err) {
  38502. subscriber.error(err);
  38503. return undefined;
  38504. }
  38505. if (!conditionResult) {
  38506. subscriber.complete();
  38507. return undefined;
  38508. }
  38509. if (subscriber.closed) {
  38510. return undefined;
  38511. }
  38512. }
  38513. let value;
  38514. try {
  38515. value = state.resultSelector(state.state);
  38516. }
  38517. catch (err) {
  38518. subscriber.error(err);
  38519. return undefined;
  38520. }
  38521. if (subscriber.closed) {
  38522. return undefined;
  38523. }
  38524. subscriber.next(value);
  38525. if (subscriber.closed) {
  38526. return undefined;
  38527. }
  38528. return this.schedule(state);
  38529. }
  38530. //# sourceMappingURL=generate.js.map
  38531. /***/ }),
  38532. /***/ "WyKG":
  38533. /*!******************************************************************!*\
  38534. !*** ./node_modules/rxjs/_esm2015/internal/util/toSubscriber.js ***!
  38535. \******************************************************************/
  38536. /*! exports provided: toSubscriber */
  38537. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38538. "use strict";
  38539. __webpack_require__.r(__webpack_exports__);
  38540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "toSubscriber", function() { return toSubscriber; });
  38541. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  38542. /* harmony import */ var _symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../symbol/rxSubscriber */ "2QA8");
  38543. /* harmony import */ var _Observer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Observer */ "gRHU");
  38544. function toSubscriber(nextOrObserver, error, complete) {
  38545. if (nextOrObserver) {
  38546. if (nextOrObserver instanceof _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"]) {
  38547. return nextOrObserver;
  38548. }
  38549. if (nextOrObserver[_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__["rxSubscriber"]]) {
  38550. return nextOrObserver[_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_1__["rxSubscriber"]]();
  38551. }
  38552. }
  38553. if (!nextOrObserver && !error && !complete) {
  38554. return new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](_Observer__WEBPACK_IMPORTED_MODULE_2__["empty"]);
  38555. }
  38556. return new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](nextOrObserver, error, complete);
  38557. }
  38558. //# sourceMappingURL=toSubscriber.js.map
  38559. /***/ }),
  38560. /***/ "XDbj":
  38561. /*!***********************************************************************!*\
  38562. !*** ./node_modules/rxjs/_esm2015/internal/operators/throwIfEmpty.js ***!
  38563. \***********************************************************************/
  38564. /*! exports provided: throwIfEmpty */
  38565. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38566. "use strict";
  38567. __webpack_require__.r(__webpack_exports__);
  38568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throwIfEmpty", function() { return throwIfEmpty; });
  38569. /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/EmptyError */ "sVev");
  38570. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  38571. function throwIfEmpty(errorFactory = defaultErrorFactory) {
  38572. return (source) => {
  38573. return source.lift(new ThrowIfEmptyOperator(errorFactory));
  38574. };
  38575. }
  38576. class ThrowIfEmptyOperator {
  38577. constructor(errorFactory) {
  38578. this.errorFactory = errorFactory;
  38579. }
  38580. call(subscriber, source) {
  38581. return source.subscribe(new ThrowIfEmptySubscriber(subscriber, this.errorFactory));
  38582. }
  38583. }
  38584. class ThrowIfEmptySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"] {
  38585. constructor(destination, errorFactory) {
  38586. super(destination);
  38587. this.errorFactory = errorFactory;
  38588. this.hasValue = false;
  38589. }
  38590. _next(value) {
  38591. this.hasValue = true;
  38592. this.destination.next(value);
  38593. }
  38594. _complete() {
  38595. if (!this.hasValue) {
  38596. let err;
  38597. try {
  38598. err = this.errorFactory();
  38599. }
  38600. catch (e) {
  38601. err = e;
  38602. }
  38603. this.destination.error(err);
  38604. }
  38605. else {
  38606. return this.destination.complete();
  38607. }
  38608. }
  38609. }
  38610. function defaultErrorFactory() {
  38611. return new _util_EmptyError__WEBPACK_IMPORTED_MODULE_0__["EmptyError"]();
  38612. }
  38613. //# sourceMappingURL=throwIfEmpty.js.map
  38614. /***/ }),
  38615. /***/ "XNiG":
  38616. /*!********************************************************!*\
  38617. !*** ./node_modules/rxjs/_esm2015/internal/Subject.js ***!
  38618. \********************************************************/
  38619. /*! exports provided: SubjectSubscriber, Subject, AnonymousSubject */
  38620. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38621. "use strict";
  38622. __webpack_require__.r(__webpack_exports__);
  38623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubjectSubscriber", function() { return SubjectSubscriber; });
  38624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Subject", function() { return Subject; });
  38625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnonymousSubject", function() { return AnonymousSubject; });
  38626. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Observable */ "HDdC");
  38627. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Subscriber */ "7o/Q");
  38628. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Subscription */ "quSY");
  38629. /* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/ObjectUnsubscribedError */ "9ppp");
  38630. /* harmony import */ var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./SubjectSubscription */ "Ylt2");
  38631. /* harmony import */ var _internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../internal/symbol/rxSubscriber */ "2QA8");
  38632. class SubjectSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_1__["Subscriber"] {
  38633. constructor(destination) {
  38634. super(destination);
  38635. this.destination = destination;
  38636. }
  38637. }
  38638. class Subject extends _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"] {
  38639. constructor() {
  38640. super();
  38641. this.observers = [];
  38642. this.closed = false;
  38643. this.isStopped = false;
  38644. this.hasError = false;
  38645. this.thrownError = null;
  38646. }
  38647. [_internal_symbol_rxSubscriber__WEBPACK_IMPORTED_MODULE_5__["rxSubscriber"]]() {
  38648. return new SubjectSubscriber(this);
  38649. }
  38650. lift(operator) {
  38651. const subject = new AnonymousSubject(this, this);
  38652. subject.operator = operator;
  38653. return subject;
  38654. }
  38655. next(value) {
  38656. if (this.closed) {
  38657. throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
  38658. }
  38659. if (!this.isStopped) {
  38660. const { observers } = this;
  38661. const len = observers.length;
  38662. const copy = observers.slice();
  38663. for (let i = 0; i < len; i++) {
  38664. copy[i].next(value);
  38665. }
  38666. }
  38667. }
  38668. error(err) {
  38669. if (this.closed) {
  38670. throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
  38671. }
  38672. this.hasError = true;
  38673. this.thrownError = err;
  38674. this.isStopped = true;
  38675. const { observers } = this;
  38676. const len = observers.length;
  38677. const copy = observers.slice();
  38678. for (let i = 0; i < len; i++) {
  38679. copy[i].error(err);
  38680. }
  38681. this.observers.length = 0;
  38682. }
  38683. complete() {
  38684. if (this.closed) {
  38685. throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
  38686. }
  38687. this.isStopped = true;
  38688. const { observers } = this;
  38689. const len = observers.length;
  38690. const copy = observers.slice();
  38691. for (let i = 0; i < len; i++) {
  38692. copy[i].complete();
  38693. }
  38694. this.observers.length = 0;
  38695. }
  38696. unsubscribe() {
  38697. this.isStopped = true;
  38698. this.closed = true;
  38699. this.observers = null;
  38700. }
  38701. _trySubscribe(subscriber) {
  38702. if (this.closed) {
  38703. throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
  38704. }
  38705. else {
  38706. return super._trySubscribe(subscriber);
  38707. }
  38708. }
  38709. _subscribe(subscriber) {
  38710. if (this.closed) {
  38711. throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_3__["ObjectUnsubscribedError"]();
  38712. }
  38713. else if (this.hasError) {
  38714. subscriber.error(this.thrownError);
  38715. return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
  38716. }
  38717. else if (this.isStopped) {
  38718. subscriber.complete();
  38719. return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
  38720. }
  38721. else {
  38722. this.observers.push(subscriber);
  38723. return new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_4__["SubjectSubscription"](this, subscriber);
  38724. }
  38725. }
  38726. asObservable() {
  38727. const observable = new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]();
  38728. observable.source = this;
  38729. return observable;
  38730. }
  38731. }
  38732. Subject.create = (destination, source) => {
  38733. return new AnonymousSubject(destination, source);
  38734. };
  38735. class AnonymousSubject extends Subject {
  38736. constructor(destination, source) {
  38737. super();
  38738. this.destination = destination;
  38739. this.source = source;
  38740. }
  38741. next(value) {
  38742. const { destination } = this;
  38743. if (destination && destination.next) {
  38744. destination.next(value);
  38745. }
  38746. }
  38747. error(err) {
  38748. const { destination } = this;
  38749. if (destination && destination.error) {
  38750. this.destination.error(err);
  38751. }
  38752. }
  38753. complete() {
  38754. const { destination } = this;
  38755. if (destination && destination.complete) {
  38756. this.destination.complete();
  38757. }
  38758. }
  38759. _subscribe(subscriber) {
  38760. const { source } = this;
  38761. if (source) {
  38762. return this.source.subscribe(subscriber);
  38763. }
  38764. else {
  38765. return _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
  38766. }
  38767. }
  38768. }
  38769. //# sourceMappingURL=Subject.js.map
  38770. /***/ }),
  38771. /***/ "XoHu":
  38772. /*!**************************************************************!*\
  38773. !*** ./node_modules/rxjs/_esm2015/internal/util/isObject.js ***!
  38774. \**************************************************************/
  38775. /*! exports provided: isObject */
  38776. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38777. "use strict";
  38778. __webpack_require__.r(__webpack_exports__);
  38779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isObject", function() { return isObject; });
  38780. function isObject(x) {
  38781. return x !== null && typeof x === 'object';
  38782. }
  38783. //# sourceMappingURL=isObject.js.map
  38784. /***/ }),
  38785. /***/ "XqQ8":
  38786. /*!*********************************************************************!*\
  38787. !*** ./node_modules/rxjs/_esm2015/internal/operators/exhaustMap.js ***!
  38788. \*********************************************************************/
  38789. /*! exports provided: exhaustMap */
  38790. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38791. "use strict";
  38792. __webpack_require__.r(__webpack_exports__);
  38793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exhaustMap", function() { return exhaustMap; });
  38794. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  38795. /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv");
  38796. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  38797. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map */ "lJxs");
  38798. /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../observable/from */ "Cfvw");
  38799. function exhaustMap(project, resultSelector) {
  38800. if (resultSelector) {
  38801. return (source) => source.pipe(exhaustMap((a, i) => Object(_observable_from__WEBPACK_IMPORTED_MODULE_4__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_3__["map"])((b, ii) => resultSelector(a, b, i, ii)))));
  38802. }
  38803. return (source) => source.lift(new ExhaustMapOperator(project));
  38804. }
  38805. class ExhaustMapOperator {
  38806. constructor(project) {
  38807. this.project = project;
  38808. }
  38809. call(subscriber, source) {
  38810. return source.subscribe(new ExhaustMapSubscriber(subscriber, this.project));
  38811. }
  38812. }
  38813. class ExhaustMapSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  38814. constructor(destination, project) {
  38815. super(destination);
  38816. this.project = project;
  38817. this.hasSubscription = false;
  38818. this.hasCompleted = false;
  38819. this.index = 0;
  38820. }
  38821. _next(value) {
  38822. if (!this.hasSubscription) {
  38823. this.tryNext(value);
  38824. }
  38825. }
  38826. tryNext(value) {
  38827. let result;
  38828. const index = this.index++;
  38829. try {
  38830. result = this.project(value, index);
  38831. }
  38832. catch (err) {
  38833. this.destination.error(err);
  38834. return;
  38835. }
  38836. this.hasSubscription = true;
  38837. this._innerSub(result, value, index);
  38838. }
  38839. _innerSub(result, value, index) {
  38840. const innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_1__["InnerSubscriber"](this, value, index);
  38841. const destination = this.destination;
  38842. destination.add(innerSubscriber);
  38843. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, result, undefined, undefined, innerSubscriber);
  38844. if (innerSubscription !== innerSubscriber) {
  38845. destination.add(innerSubscription);
  38846. }
  38847. }
  38848. _complete() {
  38849. this.hasCompleted = true;
  38850. if (!this.hasSubscription) {
  38851. this.destination.complete();
  38852. }
  38853. this.unsubscribe();
  38854. }
  38855. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  38856. this.destination.next(innerValue);
  38857. }
  38858. notifyError(err) {
  38859. this.destination.error(err);
  38860. }
  38861. notifyComplete(innerSub) {
  38862. const destination = this.destination;
  38863. destination.remove(innerSub);
  38864. this.hasSubscription = false;
  38865. if (this.hasCompleted) {
  38866. this.destination.complete();
  38867. }
  38868. }
  38869. }
  38870. //# sourceMappingURL=exhaustMap.js.map
  38871. /***/ }),
  38872. /***/ "Y/cZ":
  38873. /*!**********************************************************!*\
  38874. !*** ./node_modules/rxjs/_esm2015/internal/Scheduler.js ***!
  38875. \**********************************************************/
  38876. /*! exports provided: Scheduler */
  38877. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38878. "use strict";
  38879. __webpack_require__.r(__webpack_exports__);
  38880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Scheduler", function() { return Scheduler; });
  38881. class Scheduler {
  38882. constructor(SchedulerAction, now = Scheduler.now) {
  38883. this.SchedulerAction = SchedulerAction;
  38884. this.now = now;
  38885. }
  38886. schedule(work, delay = 0, state) {
  38887. return new this.SchedulerAction(this, work).schedule(state, delay);
  38888. }
  38889. }
  38890. Scheduler.now = () => Date.now();
  38891. //# sourceMappingURL=Scheduler.js.map
  38892. /***/ }),
  38893. /***/ "Y6u4":
  38894. /*!******************************************************************!*\
  38895. !*** ./node_modules/rxjs/_esm2015/internal/util/TimeoutError.js ***!
  38896. \******************************************************************/
  38897. /*! exports provided: TimeoutError */
  38898. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38899. "use strict";
  38900. __webpack_require__.r(__webpack_exports__);
  38901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TimeoutError", function() { return TimeoutError; });
  38902. const TimeoutErrorImpl = (() => {
  38903. function TimeoutErrorImpl() {
  38904. Error.call(this);
  38905. this.message = 'Timeout has occurred';
  38906. this.name = 'TimeoutError';
  38907. return this;
  38908. }
  38909. TimeoutErrorImpl.prototype = Object.create(Error.prototype);
  38910. return TimeoutErrorImpl;
  38911. })();
  38912. const TimeoutError = TimeoutErrorImpl;
  38913. //# sourceMappingURL=TimeoutError.js.map
  38914. /***/ }),
  38915. /***/ "Y6wi":
  38916. /*!********************************************************************!*\
  38917. !*** ./node_modules/rxjs/_esm2015/internal/operators/switchAll.js ***!
  38918. \********************************************************************/
  38919. /*! exports provided: switchAll */
  38920. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38921. "use strict";
  38922. __webpack_require__.r(__webpack_exports__);
  38923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchAll", function() { return switchAll; });
  38924. /* harmony import */ var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./switchMap */ "eIep");
  38925. /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ "SpAZ");
  38926. function switchAll() {
  38927. return Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"]);
  38928. }
  38929. //# sourceMappingURL=switchAll.js.map
  38930. /***/ }),
  38931. /***/ "Y7HM":
  38932. /*!***************************************************************!*\
  38933. !*** ./node_modules/rxjs/_esm2015/internal/util/isNumeric.js ***!
  38934. \***************************************************************/
  38935. /*! exports provided: isNumeric */
  38936. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38937. "use strict";
  38938. __webpack_require__.r(__webpack_exports__);
  38939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumeric", function() { return isNumeric; });
  38940. /* harmony import */ var _isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./isArray */ "DH7j");
  38941. function isNumeric(val) {
  38942. return !Object(_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(val) && (val - parseFloat(val) + 1) >= 0;
  38943. }
  38944. //# sourceMappingURL=isNumeric.js.map
  38945. /***/ }),
  38946. /***/ "Ylt2":
  38947. /*!********************************************************************!*\
  38948. !*** ./node_modules/rxjs/_esm2015/internal/SubjectSubscription.js ***!
  38949. \********************************************************************/
  38950. /*! exports provided: SubjectSubscription */
  38951. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38952. "use strict";
  38953. __webpack_require__.r(__webpack_exports__);
  38954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SubjectSubscription", function() { return SubjectSubscription; });
  38955. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subscription */ "quSY");
  38956. class SubjectSubscription extends _Subscription__WEBPACK_IMPORTED_MODULE_0__["Subscription"] {
  38957. constructor(subject, subscriber) {
  38958. super();
  38959. this.subject = subject;
  38960. this.subscriber = subscriber;
  38961. this.closed = false;
  38962. }
  38963. unsubscribe() {
  38964. if (this.closed) {
  38965. return;
  38966. }
  38967. this.closed = true;
  38968. const subject = this.subject;
  38969. const observers = subject.observers;
  38970. this.subject = null;
  38971. if (!observers || observers.length === 0 || subject.isStopped || subject.closed) {
  38972. return;
  38973. }
  38974. const subscriberIndex = observers.indexOf(this.subscriber);
  38975. if (subscriberIndex !== -1) {
  38976. observers.splice(subscriberIndex, 1);
  38977. }
  38978. }
  38979. }
  38980. //# sourceMappingURL=SubjectSubscription.js.map
  38981. /***/ }),
  38982. /***/ "YuR2":
  38983. /*!**********************************************************************!*\
  38984. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/QueueAction.js ***!
  38985. \**********************************************************************/
  38986. /*! exports provided: QueueAction */
  38987. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  38988. "use strict";
  38989. __webpack_require__.r(__webpack_exports__);
  38990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueueAction", function() { return QueueAction; });
  38991. /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ "3N8a");
  38992. class QueueAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"] {
  38993. constructor(scheduler, work) {
  38994. super(scheduler, work);
  38995. this.scheduler = scheduler;
  38996. this.work = work;
  38997. }
  38998. schedule(state, delay = 0) {
  38999. if (delay > 0) {
  39000. return super.schedule(state, delay);
  39001. }
  39002. this.delay = delay;
  39003. this.state = state;
  39004. this.scheduler.flush(this);
  39005. return this;
  39006. }
  39007. execute(state, delay) {
  39008. return (delay > 0 || this.closed) ?
  39009. super.execute(state, delay) :
  39010. this._execute(state, delay);
  39011. }
  39012. requestAsyncId(scheduler, id, delay = 0) {
  39013. if ((delay !== null && delay > 0) || (delay === null && this.delay > 0)) {
  39014. return super.requestAsyncId(scheduler, id, delay);
  39015. }
  39016. return scheduler.flush(this);
  39017. }
  39018. }
  39019. //# sourceMappingURL=QueueAction.js.map
  39020. /***/ }),
  39021. /***/ "ZOsW":
  39022. /*!****************************************************************************************!*\
  39023. !*** ./node_modules/@ng-select/ng-select/__ivy_ngcc__/fesm2015/ng-select-ng-select.js ***!
  39024. \****************************************************************************************/
  39025. /*! exports provided: NgSelectComponent, NgSelectConfig, NgSelectModule, SELECTION_MODEL_FACTORY, ɵb, ɵc, ɵd, ɵe, ɵf, ɵg, ɵh, ɵi, ɵj, ɵk, ɵl, ɵm, ɵn, ɵo, ɵp, ɵq, ɵr, ɵs */
  39026. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  39027. "use strict";
  39028. __webpack_require__.r(__webpack_exports__);
  39029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgSelectComponent", function() { return NgSelectComponent; });
  39030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgSelectConfig", function() { return NgSelectConfig; });
  39031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgSelectModule", function() { return NgSelectModule; });
  39032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SELECTION_MODEL_FACTORY", function() { return SELECTION_MODEL_FACTORY; });
  39033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵb", function() { return DefaultSelectionModelFactory; });
  39034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵc", function() { return DefaultSelectionModel; });
  39035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵd", function() { return NgDropdownPanelService; });
  39036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵe", function() { return NgItemLabelDirective; });
  39037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵf", function() { return NgOptionTemplateDirective; });
  39038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵg", function() { return NgOptgroupTemplateDirective; });
  39039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵh", function() { return NgLabelTemplateDirective; });
  39040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵi", function() { return NgMultiLabelTemplateDirective; });
  39041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵj", function() { return NgHeaderTemplateDirective; });
  39042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵk", function() { return NgFooterTemplateDirective; });
  39043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵl", function() { return NgNotFoundTemplateDirective; });
  39044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵm", function() { return NgTypeToSearchTemplateDirective; });
  39045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵn", function() { return NgLoadingTextTemplateDirective; });
  39046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵo", function() { return NgTagTemplateDirective; });
  39047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵp", function() { return NgLoadingSpinnerTemplateDirective; });
  39048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵq", function() { return NgDropdownPanelComponent; });
  39049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵr", function() { return NgOptionComponent; });
  39050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵs", function() { return ConsoleService; });
  39051. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  39052. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
  39053. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  39054. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
  39055. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ "ofXK");
  39056. /**
  39057. * @fileoverview added by tsickle
  39058. * Generated from: lib/value-utils.ts
  39059. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  39060. */
  39061. /** @type {?} */
  39062. const _c0 = ["content"];
  39063. const _c1 = ["scroll"];
  39064. const _c2 = ["padding"];
  39065. const _c3 = function (a0) { return { searchTerm: a0 }; };
  39066. function NgDropdownPanelComponent_div_0_Template(rf, ctx) { if (rf & 1) {
  39067. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 6);
  39068. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](1, 7);
  39069. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39070. } if (rf & 2) {
  39071. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  39072. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39073. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r0.headerTemplate)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c3, ctx_r0.filterValue));
  39074. } }
  39075. function NgDropdownPanelComponent_div_8_Template(rf, ctx) { if (rf & 1) {
  39076. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 8);
  39077. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainer"](1, 7);
  39078. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39079. } if (rf & 2) {
  39080. const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  39081. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39082. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r4.footerTemplate)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c3, ctx_r4.filterValue));
  39083. } }
  39084. const _c4 = ["*"];
  39085. const _c5 = ["searchInput"];
  39086. function NgSelectComponent_ng_container_4_div_1_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  39087. const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  39088. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 15);
  39089. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgSelectComponent_ng_container_4_div_1_ng_template_1_Template_span_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r13); const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit; const ctx_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r11.unselect(item_r7); });
  39090. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1, "\u00D7");
  39091. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39092. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](2, "span", 16);
  39093. } if (rf & 2) {
  39094. const item_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  39095. const ctx_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  39096. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  39097. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngItemLabel", item_r7.label)("escape", ctx_r9.escapeHTML);
  39098. } }
  39099. function NgSelectComponent_ng_container_4_div_1_ng_template_3_Template(rf, ctx) { }
  39100. const _c6 = function (a0, a1, a2) { return { item: a0, clear: a1, label: a2 }; };
  39101. function NgSelectComponent_ng_container_4_div_1_Template(rf, ctx) { if (rf & 1) {
  39102. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 12);
  39103. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_container_4_div_1_ng_template_1_Template, 3, 2, "ng-template", null, 13, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  39104. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_container_4_div_1_ng_template_3_Template, 0, 0, "ng-template", 14);
  39105. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39106. } if (rf & 2) {
  39107. const item_r7 = ctx.$implicit;
  39108. const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  39109. const ctx_r6 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  39110. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-value-disabled", item_r7.disabled);
  39111. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  39112. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r6.labelTemplate || _r8)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction3"](4, _c6, item_r7.value, ctx_r6.clearItem, item_r7.label));
  39113. } }
  39114. function NgSelectComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
  39115. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
  39116. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_container_4_div_1_Template, 4, 8, "div", 11);
  39117. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  39118. } if (rf & 2) {
  39119. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  39120. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39121. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r0.selectedItems)("ngForTrackBy", ctx_r0.trackByOption);
  39122. } }
  39123. function NgSelectComponent_5_ng_template_0_Template(rf, ctx) { }
  39124. const _c7 = function (a0, a1) { return { items: a0, clear: a1 }; };
  39125. function NgSelectComponent_5_Template(rf, ctx) { if (rf & 1) {
  39126. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgSelectComponent_5_ng_template_0_Template, 0, 0, "ng-template", 14);
  39127. } if (rf & 2) {
  39128. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  39129. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r1.multiLabelTemplate)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction2"](2, _c7, ctx_r1.selectedValues, ctx_r1.clearItem));
  39130. } }
  39131. function NgSelectComponent_ng_container_9_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  39132. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "div", 19);
  39133. } }
  39134. function NgSelectComponent_ng_container_9_ng_template_3_Template(rf, ctx) { }
  39135. function NgSelectComponent_ng_container_9_Template(rf, ctx) { if (rf & 1) {
  39136. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
  39137. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_container_9_ng_template_1_Template, 1, 0, "ng-template", null, 17, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  39138. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_container_9_ng_template_3_Template, 0, 0, "ng-template", 18);
  39139. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  39140. } if (rf & 2) {
  39141. const _r16 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  39142. const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  39143. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  39144. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r3.loadingSpinnerTemplate || _r16);
  39145. } }
  39146. function NgSelectComponent_span_10_Template(rf, ctx) { if (rf & 1) {
  39147. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 20);
  39148. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 21);
  39149. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "\u00D7");
  39150. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39151. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39152. } if (rf & 2) {
  39153. const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  39154. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpropertyInterpolate"]("title", ctx_r4.clearAllText);
  39155. } }
  39156. function NgSelectComponent_ng_dropdown_panel_13_div_2_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  39157. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "span", 27);
  39158. } if (rf & 2) {
  39159. const item_r24 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]().$implicit;
  39160. const ctx_r26 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  39161. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngItemLabel", item_r24.label)("escape", ctx_r26.escapeHTML);
  39162. } }
  39163. function NgSelectComponent_ng_dropdown_panel_13_div_2_ng_template_3_Template(rf, ctx) { }
  39164. const _c8 = function (a0, a1, a2, a3) { return { item: a0, item$: a1, index: a2, searchTerm: a3 }; };
  39165. function NgSelectComponent_ng_dropdown_panel_13_div_2_Template(rf, ctx) { if (rf & 1) {
  39166. const _r30 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  39167. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 25);
  39168. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function NgSelectComponent_ng_dropdown_panel_13_div_2_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const item_r24 = ctx.$implicit; const ctx_r29 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r29.toggleItem(item_r24); })("mouseover", function NgSelectComponent_ng_dropdown_panel_13_div_2_Template_div_mouseover_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r30); const item_r24 = ctx.$implicit; const ctx_r31 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r31.onItemHover(item_r24); });
  39169. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_div_2_ng_template_1_Template, 1, 2, "ng-template", null, 26, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  39170. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_div_2_ng_template_3_Template, 0, 0, "ng-template", 14);
  39171. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39172. } if (rf & 2) {
  39173. const item_r24 = ctx.$implicit;
  39174. const _r25 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  39175. const ctx_r19 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  39176. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-option-disabled", item_r24.disabled)("ng-option-selected", item_r24.selected)("ng-optgroup", item_r24.children)("ng-option", !item_r24.children)("ng-option-child", !!item_r24.parent)("ng-option-marked", item_r24 === ctx_r19.itemsList.markedItem);
  39177. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("role", item_r24.children ? "group" : "option")("aria-selected", item_r24.selected)("id", item_r24 == null ? null : item_r24.htmlId);
  39178. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  39179. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", item_r24.children ? ctx_r19.optgroupTemplate || _r25 : ctx_r19.optionTemplate || _r25)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction4"](17, _c8, item_r24.value, item_r24, item_r24.index, ctx_r19.searchTerm));
  39180. } }
  39181. function NgSelectComponent_ng_dropdown_panel_13_div_3_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  39182. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
  39183. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "span", 30);
  39184. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2);
  39185. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39186. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
  39187. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39188. } if (rf & 2) {
  39189. const ctx_r33 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
  39190. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  39191. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r33.addTagText);
  39192. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39193. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate1"]("\"", ctx_r33.searchTerm, "\"");
  39194. } }
  39195. function NgSelectComponent_ng_dropdown_panel_13_div_3_ng_template_3_Template(rf, ctx) { }
  39196. function NgSelectComponent_ng_dropdown_panel_13_div_3_Template(rf, ctx) { if (rf & 1) {
  39197. const _r36 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  39198. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 28);
  39199. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mouseover", function NgSelectComponent_ng_dropdown_panel_13_div_3_Template_div_mouseover_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r35.itemsList.unmarkItem(); })("click", function NgSelectComponent_ng_dropdown_panel_13_div_3_Template_div_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r36); const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2); return ctx_r37.selectTag(); });
  39200. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_div_3_ng_template_1_Template, 4, 2, "ng-template", null, 29, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  39201. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_div_3_ng_template_3_Template, 0, 0, "ng-template", 14);
  39202. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39203. } if (rf & 2) {
  39204. const _r32 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  39205. const ctx_r20 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  39206. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-option-marked", !ctx_r20.itemsList.markedItem);
  39207. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  39208. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r20.tagTemplate || _r32)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](4, _c3, ctx_r20.searchTerm));
  39209. } }
  39210. function NgSelectComponent_ng_dropdown_panel_13_ng_container_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  39211. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
  39212. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  39213. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39214. } if (rf & 2) {
  39215. const ctx_r39 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
  39216. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39217. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r39.notFoundText);
  39218. } }
  39219. function NgSelectComponent_ng_dropdown_panel_13_ng_container_4_ng_template_3_Template(rf, ctx) { }
  39220. function NgSelectComponent_ng_dropdown_panel_13_ng_container_4_Template(rf, ctx) { if (rf & 1) {
  39221. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
  39222. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_ng_container_4_ng_template_1_Template, 2, 1, "ng-template", null, 31, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  39223. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_ng_container_4_ng_template_3_Template, 0, 0, "ng-template", 14);
  39224. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  39225. } if (rf & 2) {
  39226. const _r38 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  39227. const ctx_r21 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  39228. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  39229. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r21.notFoundTemplate || _r38)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c3, ctx_r21.searchTerm));
  39230. } }
  39231. function NgSelectComponent_ng_dropdown_panel_13_ng_container_5_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  39232. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
  39233. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  39234. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39235. } if (rf & 2) {
  39236. const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
  39237. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39238. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r42.typeToSearchText);
  39239. } }
  39240. function NgSelectComponent_ng_dropdown_panel_13_ng_container_5_ng_template_3_Template(rf, ctx) { }
  39241. function NgSelectComponent_ng_dropdown_panel_13_ng_container_5_Template(rf, ctx) { if (rf & 1) {
  39242. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
  39243. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_ng_container_5_ng_template_1_Template, 2, 1, "ng-template", null, 33, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  39244. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_ng_container_5_ng_template_3_Template, 0, 0, "ng-template", 18);
  39245. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  39246. } if (rf & 2) {
  39247. const _r41 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  39248. const ctx_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  39249. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  39250. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r22.typeToSearchTemplate || _r41);
  39251. } }
  39252. function NgSelectComponent_ng_dropdown_panel_13_ng_container_6_ng_template_1_Template(rf, ctx) { if (rf & 1) {
  39253. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 32);
  39254. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
  39255. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39256. } if (rf & 2) {
  39257. const ctx_r45 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](3);
  39258. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39259. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx_r45.loadingText);
  39260. } }
  39261. function NgSelectComponent_ng_dropdown_panel_13_ng_container_6_ng_template_3_Template(rf, ctx) { }
  39262. function NgSelectComponent_ng_dropdown_panel_13_ng_container_6_Template(rf, ctx) { if (rf & 1) {
  39263. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](0);
  39264. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](1, NgSelectComponent_ng_dropdown_panel_13_ng_container_6_ng_template_1_Template, 2, 1, "ng-template", null, 34, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplateRefExtractor"]);
  39265. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_ng_container_6_ng_template_3_Template, 0, 0, "ng-template", 14);
  39266. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  39267. } if (rf & 2) {
  39268. const _r44 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](2);
  39269. const ctx_r23 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](2);
  39270. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  39271. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngTemplateOutlet", ctx_r23.loadingTextTemplate || _r44)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpureFunction1"](2, _c3, ctx_r23.searchTerm));
  39272. } }
  39273. function NgSelectComponent_ng_dropdown_panel_13_Template(rf, ctx) { if (rf & 1) {
  39274. const _r48 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  39275. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "ng-dropdown-panel", 22);
  39276. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("update", function NgSelectComponent_ng_dropdown_panel_13_Template_ng_dropdown_panel_update_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48); const ctx_r47 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r47.viewPortItems = $event; })("scroll", function NgSelectComponent_ng_dropdown_panel_13_Template_ng_dropdown_panel_scroll_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48); const ctx_r49 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r49.scroll.emit($event); })("scrollToEnd", function NgSelectComponent_ng_dropdown_panel_13_Template_ng_dropdown_panel_scrollToEnd_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r50.scrollToEnd.emit($event); })("outsideClick", function NgSelectComponent_ng_dropdown_panel_13_Template_ng_dropdown_panel_outsideClick_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r48); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); return ctx_r51.close(); });
  39277. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerStart"](1);
  39278. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](2, NgSelectComponent_ng_dropdown_panel_13_div_2_Template, 4, 22, "div", 23);
  39279. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](3, NgSelectComponent_ng_dropdown_panel_13_div_3_Template, 4, 6, "div", 24);
  39280. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementContainerEnd"]();
  39281. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, NgSelectComponent_ng_dropdown_panel_13_ng_container_4_Template, 4, 4, "ng-container", 3);
  39282. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, NgSelectComponent_ng_dropdown_panel_13_ng_container_5_Template, 4, 1, "ng-container", 3);
  39283. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, NgSelectComponent_ng_dropdown_panel_13_ng_container_6_Template, 4, 4, "ng-container", 3);
  39284. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  39285. } if (rf & 2) {
  39286. const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
  39287. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-select-multiple", ctx_r5.multiple);
  39288. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("virtualScroll", ctx_r5.virtualScroll)("bufferAmount", ctx_r5.bufferAmount)("appendTo", ctx_r5.appendTo)("position", ctx_r5.dropdownPosition)("headerTemplate", ctx_r5.headerTemplate)("footerTemplate", ctx_r5.footerTemplate)("filterValue", ctx_r5.searchTerm)("items", ctx_r5.itemsList.filteredItems)("markedItem", ctx_r5.itemsList.markedItem)("ngClass", ctx_r5.appendTo ? ctx_r5.classes : null)("id", ctx_r5.dropdownId);
  39289. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  39290. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngForOf", ctx_r5.viewPortItems)("ngForTrackBy", ctx_r5.trackByOption);
  39291. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39292. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.showAddTag);
  39293. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39294. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.showNoItemsFound());
  39295. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39296. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.showTypeToSearch());
  39297. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  39298. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx_r5.loading && ctx_r5.itemsList.filteredItems.length === 0);
  39299. } }
  39300. const unescapedHTMLExp = /[&<>"']/g;
  39301. /** @type {?} */
  39302. const hasUnescapedHTMLExp = RegExp(unescapedHTMLExp.source);
  39303. /** @type {?} */
  39304. const htmlEscapes = {
  39305. '&': '&amp;',
  39306. '<': '&lt;',
  39307. '>': '&gt;',
  39308. '"': '&quot;',
  39309. '\'': '&#39;'
  39310. };
  39311. /**
  39312. * @param {?} string
  39313. * @return {?}
  39314. */
  39315. function escapeHTML(string) {
  39316. return (string && hasUnescapedHTMLExp.test(string)) ?
  39317. string.replace(unescapedHTMLExp, (/**
  39318. * @param {?} chr
  39319. * @return {?}
  39320. */
  39321. chr => htmlEscapes[chr])) :
  39322. string;
  39323. }
  39324. /**
  39325. * @param {?} value
  39326. * @return {?}
  39327. */
  39328. function isDefined(value) {
  39329. return value !== undefined && value !== null;
  39330. }
  39331. /**
  39332. * @param {?} value
  39333. * @return {?}
  39334. */
  39335. function isObject(value) {
  39336. return typeof value === 'object' && isDefined(value);
  39337. }
  39338. /**
  39339. * @param {?} value
  39340. * @return {?}
  39341. */
  39342. function isPromise(value) {
  39343. return value instanceof Promise;
  39344. }
  39345. /**
  39346. * @param {?} value
  39347. * @return {?}
  39348. */
  39349. function isFunction(value) {
  39350. return value instanceof Function;
  39351. }
  39352. /**
  39353. * @fileoverview added by tsickle
  39354. * Generated from: lib/ng-templates.directive.ts
  39355. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  39356. */
  39357. class NgItemLabelDirective {
  39358. /**
  39359. * @param {?} element
  39360. */
  39361. constructor(element) {
  39362. this.element = element;
  39363. this.escape = true;
  39364. }
  39365. /**
  39366. * @param {?} changes
  39367. * @return {?}
  39368. */
  39369. ngOnChanges(changes) {
  39370. this.element.nativeElement.innerHTML = this.escape ?
  39371. escapeHTML(this.ngItemLabel) :
  39372. this.ngItemLabel;
  39373. }
  39374. }
  39375. NgItemLabelDirective.ɵfac = function NgItemLabelDirective_Factory(t) { return new (t || NgItemLabelDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  39376. NgItemLabelDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgItemLabelDirective, selectors: [["", "ngItemLabel", ""]], inputs: { escape: "escape", ngItemLabel: "ngItemLabel" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  39377. /** @nocollapse */
  39378. NgItemLabelDirective.ctorParameters = () => [
  39379. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  39380. ];
  39381. NgItemLabelDirective.propDecorators = {
  39382. ngItemLabel: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  39383. escape: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  39384. };
  39385. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgItemLabelDirective, [{
  39386. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39387. args: [{ selector: '[ngItemLabel]' }]
  39388. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { escape: [{
  39389. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  39390. }], ngItemLabel: [{
  39391. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  39392. }] }); })();
  39393. if (false) {}
  39394. class NgOptionTemplateDirective {
  39395. /**
  39396. * @param {?} template
  39397. */
  39398. constructor(template) {
  39399. this.template = template;
  39400. }
  39401. }
  39402. NgOptionTemplateDirective.ɵfac = function NgOptionTemplateDirective_Factory(t) { return new (t || NgOptionTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39403. NgOptionTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgOptionTemplateDirective, selectors: [["", "ng-option-tmp", ""]] });
  39404. /** @nocollapse */
  39405. NgOptionTemplateDirective.ctorParameters = () => [
  39406. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39407. ];
  39408. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgOptionTemplateDirective, [{
  39409. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39410. args: [{ selector: '[ng-option-tmp]' }]
  39411. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39412. if (false) {}
  39413. class NgOptgroupTemplateDirective {
  39414. /**
  39415. * @param {?} template
  39416. */
  39417. constructor(template) {
  39418. this.template = template;
  39419. }
  39420. }
  39421. NgOptgroupTemplateDirective.ɵfac = function NgOptgroupTemplateDirective_Factory(t) { return new (t || NgOptgroupTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39422. NgOptgroupTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgOptgroupTemplateDirective, selectors: [["", "ng-optgroup-tmp", ""]] });
  39423. /** @nocollapse */
  39424. NgOptgroupTemplateDirective.ctorParameters = () => [
  39425. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39426. ];
  39427. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgOptgroupTemplateDirective, [{
  39428. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39429. args: [{ selector: '[ng-optgroup-tmp]' }]
  39430. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39431. if (false) {}
  39432. class NgLabelTemplateDirective {
  39433. /**
  39434. * @param {?} template
  39435. */
  39436. constructor(template) {
  39437. this.template = template;
  39438. }
  39439. }
  39440. NgLabelTemplateDirective.ɵfac = function NgLabelTemplateDirective_Factory(t) { return new (t || NgLabelTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39441. NgLabelTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgLabelTemplateDirective, selectors: [["", "ng-label-tmp", ""]] });
  39442. /** @nocollapse */
  39443. NgLabelTemplateDirective.ctorParameters = () => [
  39444. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39445. ];
  39446. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLabelTemplateDirective, [{
  39447. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39448. args: [{ selector: '[ng-label-tmp]' }]
  39449. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39450. if (false) {}
  39451. class NgMultiLabelTemplateDirective {
  39452. /**
  39453. * @param {?} template
  39454. */
  39455. constructor(template) {
  39456. this.template = template;
  39457. }
  39458. }
  39459. NgMultiLabelTemplateDirective.ɵfac = function NgMultiLabelTemplateDirective_Factory(t) { return new (t || NgMultiLabelTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39460. NgMultiLabelTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgMultiLabelTemplateDirective, selectors: [["", "ng-multi-label-tmp", ""]] });
  39461. /** @nocollapse */
  39462. NgMultiLabelTemplateDirective.ctorParameters = () => [
  39463. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39464. ];
  39465. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgMultiLabelTemplateDirective, [{
  39466. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39467. args: [{ selector: '[ng-multi-label-tmp]' }]
  39468. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39469. if (false) {}
  39470. class NgHeaderTemplateDirective {
  39471. /**
  39472. * @param {?} template
  39473. */
  39474. constructor(template) {
  39475. this.template = template;
  39476. }
  39477. }
  39478. NgHeaderTemplateDirective.ɵfac = function NgHeaderTemplateDirective_Factory(t) { return new (t || NgHeaderTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39479. NgHeaderTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgHeaderTemplateDirective, selectors: [["", "ng-header-tmp", ""]] });
  39480. /** @nocollapse */
  39481. NgHeaderTemplateDirective.ctorParameters = () => [
  39482. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39483. ];
  39484. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgHeaderTemplateDirective, [{
  39485. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39486. args: [{ selector: '[ng-header-tmp]' }]
  39487. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39488. if (false) {}
  39489. class NgFooterTemplateDirective {
  39490. /**
  39491. * @param {?} template
  39492. */
  39493. constructor(template) {
  39494. this.template = template;
  39495. }
  39496. }
  39497. NgFooterTemplateDirective.ɵfac = function NgFooterTemplateDirective_Factory(t) { return new (t || NgFooterTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39498. NgFooterTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgFooterTemplateDirective, selectors: [["", "ng-footer-tmp", ""]] });
  39499. /** @nocollapse */
  39500. NgFooterTemplateDirective.ctorParameters = () => [
  39501. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39502. ];
  39503. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgFooterTemplateDirective, [{
  39504. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39505. args: [{ selector: '[ng-footer-tmp]' }]
  39506. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39507. if (false) {}
  39508. class NgNotFoundTemplateDirective {
  39509. /**
  39510. * @param {?} template
  39511. */
  39512. constructor(template) {
  39513. this.template = template;
  39514. }
  39515. }
  39516. NgNotFoundTemplateDirective.ɵfac = function NgNotFoundTemplateDirective_Factory(t) { return new (t || NgNotFoundTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39517. NgNotFoundTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgNotFoundTemplateDirective, selectors: [["", "ng-notfound-tmp", ""]] });
  39518. /** @nocollapse */
  39519. NgNotFoundTemplateDirective.ctorParameters = () => [
  39520. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39521. ];
  39522. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgNotFoundTemplateDirective, [{
  39523. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39524. args: [{ selector: '[ng-notfound-tmp]' }]
  39525. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39526. if (false) {}
  39527. class NgTypeToSearchTemplateDirective {
  39528. /**
  39529. * @param {?} template
  39530. */
  39531. constructor(template) {
  39532. this.template = template;
  39533. }
  39534. }
  39535. NgTypeToSearchTemplateDirective.ɵfac = function NgTypeToSearchTemplateDirective_Factory(t) { return new (t || NgTypeToSearchTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39536. NgTypeToSearchTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgTypeToSearchTemplateDirective, selectors: [["", "ng-typetosearch-tmp", ""]] });
  39537. /** @nocollapse */
  39538. NgTypeToSearchTemplateDirective.ctorParameters = () => [
  39539. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39540. ];
  39541. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgTypeToSearchTemplateDirective, [{
  39542. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39543. args: [{ selector: '[ng-typetosearch-tmp]' }]
  39544. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39545. if (false) {}
  39546. class NgLoadingTextTemplateDirective {
  39547. /**
  39548. * @param {?} template
  39549. */
  39550. constructor(template) {
  39551. this.template = template;
  39552. }
  39553. }
  39554. NgLoadingTextTemplateDirective.ɵfac = function NgLoadingTextTemplateDirective_Factory(t) { return new (t || NgLoadingTextTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39555. NgLoadingTextTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgLoadingTextTemplateDirective, selectors: [["", "ng-loadingtext-tmp", ""]] });
  39556. /** @nocollapse */
  39557. NgLoadingTextTemplateDirective.ctorParameters = () => [
  39558. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39559. ];
  39560. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLoadingTextTemplateDirective, [{
  39561. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39562. args: [{ selector: '[ng-loadingtext-tmp]' }]
  39563. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39564. if (false) {}
  39565. class NgTagTemplateDirective {
  39566. /**
  39567. * @param {?} template
  39568. */
  39569. constructor(template) {
  39570. this.template = template;
  39571. }
  39572. }
  39573. NgTagTemplateDirective.ɵfac = function NgTagTemplateDirective_Factory(t) { return new (t || NgTagTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39574. NgTagTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgTagTemplateDirective, selectors: [["", "ng-tag-tmp", ""]] });
  39575. /** @nocollapse */
  39576. NgTagTemplateDirective.ctorParameters = () => [
  39577. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39578. ];
  39579. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgTagTemplateDirective, [{
  39580. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39581. args: [{ selector: '[ng-tag-tmp]' }]
  39582. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39583. if (false) {}
  39584. class NgLoadingSpinnerTemplateDirective {
  39585. /**
  39586. * @param {?} template
  39587. */
  39588. constructor(template) {
  39589. this.template = template;
  39590. }
  39591. }
  39592. NgLoadingSpinnerTemplateDirective.ɵfac = function NgLoadingSpinnerTemplateDirective_Factory(t) { return new (t || NgLoadingSpinnerTemplateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  39593. NgLoadingSpinnerTemplateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgLoadingSpinnerTemplateDirective, selectors: [["", "ng-loadingspinner-tmp", ""]] });
  39594. /** @nocollapse */
  39595. NgLoadingSpinnerTemplateDirective.ctorParameters = () => [
  39596. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  39597. ];
  39598. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLoadingSpinnerTemplateDirective, [{
  39599. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  39600. args: [{ selector: '[ng-loadingspinner-tmp]' }]
  39601. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, null); })();
  39602. if (false) {}
  39603. /**
  39604. * @fileoverview added by tsickle
  39605. * Generated from: lib/console.service.ts
  39606. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  39607. */
  39608. class ConsoleService {
  39609. /**
  39610. * @param {?} message
  39611. * @return {?}
  39612. */
  39613. warn(message) {
  39614. console.warn(message);
  39615. }
  39616. }
  39617. ConsoleService.ɵfac = function ConsoleService_Factory(t) { return new (t || ConsoleService)(); };
  39618. /** @nocollapse */ ConsoleService.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function ConsoleService_Factory() { return new ConsoleService(); }, token: ConsoleService, providedIn: "root" });
  39619. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ConsoleService, [{
  39620. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  39621. args: [{ providedIn: 'root' }]
  39622. }], null, null); })();
  39623. /**
  39624. * @fileoverview added by tsickle
  39625. * Generated from: lib/id.ts
  39626. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  39627. */
  39628. /**
  39629. * @return {?}
  39630. */
  39631. function newId() {
  39632. // First character is an 'a', it's good practice to tag id to begin with a letter
  39633. return 'axxxxxxxxxxx'.replace(/[x]/g, (/**
  39634. * @param {?} _
  39635. * @return {?}
  39636. */
  39637. function (_) {
  39638. // tslint:disable-next-line:no-bitwise
  39639. /** @type {?} */
  39640. const val = Math.random() * 16 | 0;
  39641. return val.toString(16);
  39642. }));
  39643. }
  39644. /**
  39645. * @fileoverview added by tsickle
  39646. * Generated from: lib/search-helper.ts
  39647. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  39648. */
  39649. /** @type {?} */
  39650. const diacritics = {
  39651. '\u24B6': 'A',
  39652. '\uFF21': 'A',
  39653. '\u00C0': 'A',
  39654. '\u00C1': 'A',
  39655. '\u00C2': 'A',
  39656. '\u1EA6': 'A',
  39657. '\u1EA4': 'A',
  39658. '\u1EAA': 'A',
  39659. '\u1EA8': 'A',
  39660. '\u00C3': 'A',
  39661. '\u0100': 'A',
  39662. '\u0102': 'A',
  39663. '\u1EB0': 'A',
  39664. '\u1EAE': 'A',
  39665. '\u1EB4': 'A',
  39666. '\u1EB2': 'A',
  39667. '\u0226': 'A',
  39668. '\u01E0': 'A',
  39669. '\u00C4': 'A',
  39670. '\u01DE': 'A',
  39671. '\u1EA2': 'A',
  39672. '\u00C5': 'A',
  39673. '\u01FA': 'A',
  39674. '\u01CD': 'A',
  39675. '\u0200': 'A',
  39676. '\u0202': 'A',
  39677. '\u1EA0': 'A',
  39678. '\u1EAC': 'A',
  39679. '\u1EB6': 'A',
  39680. '\u1E00': 'A',
  39681. '\u0104': 'A',
  39682. '\u023A': 'A',
  39683. '\u2C6F': 'A',
  39684. '\uA732': 'AA',
  39685. '\u00C6': 'AE',
  39686. '\u01FC': 'AE',
  39687. '\u01E2': 'AE',
  39688. '\uA734': 'AO',
  39689. '\uA736': 'AU',
  39690. '\uA738': 'AV',
  39691. '\uA73A': 'AV',
  39692. '\uA73C': 'AY',
  39693. '\u24B7': 'B',
  39694. '\uFF22': 'B',
  39695. '\u1E02': 'B',
  39696. '\u1E04': 'B',
  39697. '\u1E06': 'B',
  39698. '\u0243': 'B',
  39699. '\u0182': 'B',
  39700. '\u0181': 'B',
  39701. '\u24B8': 'C',
  39702. '\uFF23': 'C',
  39703. '\u0106': 'C',
  39704. '\u0108': 'C',
  39705. '\u010A': 'C',
  39706. '\u010C': 'C',
  39707. '\u00C7': 'C',
  39708. '\u1E08': 'C',
  39709. '\u0187': 'C',
  39710. '\u023B': 'C',
  39711. '\uA73E': 'C',
  39712. '\u24B9': 'D',
  39713. '\uFF24': 'D',
  39714. '\u1E0A': 'D',
  39715. '\u010E': 'D',
  39716. '\u1E0C': 'D',
  39717. '\u1E10': 'D',
  39718. '\u1E12': 'D',
  39719. '\u1E0E': 'D',
  39720. '\u0110': 'D',
  39721. '\u018B': 'D',
  39722. '\u018A': 'D',
  39723. '\u0189': 'D',
  39724. '\uA779': 'D',
  39725. '\u01F1': 'DZ',
  39726. '\u01C4': 'DZ',
  39727. '\u01F2': 'Dz',
  39728. '\u01C5': 'Dz',
  39729. '\u24BA': 'E',
  39730. '\uFF25': 'E',
  39731. '\u00C8': 'E',
  39732. '\u00C9': 'E',
  39733. '\u00CA': 'E',
  39734. '\u1EC0': 'E',
  39735. '\u1EBE': 'E',
  39736. '\u1EC4': 'E',
  39737. '\u1EC2': 'E',
  39738. '\u1EBC': 'E',
  39739. '\u0112': 'E',
  39740. '\u1E14': 'E',
  39741. '\u1E16': 'E',
  39742. '\u0114': 'E',
  39743. '\u0116': 'E',
  39744. '\u00CB': 'E',
  39745. '\u1EBA': 'E',
  39746. '\u011A': 'E',
  39747. '\u0204': 'E',
  39748. '\u0206': 'E',
  39749. '\u1EB8': 'E',
  39750. '\u1EC6': 'E',
  39751. '\u0228': 'E',
  39752. '\u1E1C': 'E',
  39753. '\u0118': 'E',
  39754. '\u1E18': 'E',
  39755. '\u1E1A': 'E',
  39756. '\u0190': 'E',
  39757. '\u018E': 'E',
  39758. '\u24BB': 'F',
  39759. '\uFF26': 'F',
  39760. '\u1E1E': 'F',
  39761. '\u0191': 'F',
  39762. '\uA77B': 'F',
  39763. '\u24BC': 'G',
  39764. '\uFF27': 'G',
  39765. '\u01F4': 'G',
  39766. '\u011C': 'G',
  39767. '\u1E20': 'G',
  39768. '\u011E': 'G',
  39769. '\u0120': 'G',
  39770. '\u01E6': 'G',
  39771. '\u0122': 'G',
  39772. '\u01E4': 'G',
  39773. '\u0193': 'G',
  39774. '\uA7A0': 'G',
  39775. '\uA77D': 'G',
  39776. '\uA77E': 'G',
  39777. '\u24BD': 'H',
  39778. '\uFF28': 'H',
  39779. '\u0124': 'H',
  39780. '\u1E22': 'H',
  39781. '\u1E26': 'H',
  39782. '\u021E': 'H',
  39783. '\u1E24': 'H',
  39784. '\u1E28': 'H',
  39785. '\u1E2A': 'H',
  39786. '\u0126': 'H',
  39787. '\u2C67': 'H',
  39788. '\u2C75': 'H',
  39789. '\uA78D': 'H',
  39790. '\u24BE': 'I',
  39791. '\uFF29': 'I',
  39792. '\u00CC': 'I',
  39793. '\u00CD': 'I',
  39794. '\u00CE': 'I',
  39795. '\u0128': 'I',
  39796. '\u012A': 'I',
  39797. '\u012C': 'I',
  39798. '\u0130': 'I',
  39799. '\u00CF': 'I',
  39800. '\u1E2E': 'I',
  39801. '\u1EC8': 'I',
  39802. '\u01CF': 'I',
  39803. '\u0208': 'I',
  39804. '\u020A': 'I',
  39805. '\u1ECA': 'I',
  39806. '\u012E': 'I',
  39807. '\u1E2C': 'I',
  39808. '\u0197': 'I',
  39809. '\u24BF': 'J',
  39810. '\uFF2A': 'J',
  39811. '\u0134': 'J',
  39812. '\u0248': 'J',
  39813. '\u24C0': 'K',
  39814. '\uFF2B': 'K',
  39815. '\u1E30': 'K',
  39816. '\u01E8': 'K',
  39817. '\u1E32': 'K',
  39818. '\u0136': 'K',
  39819. '\u1E34': 'K',
  39820. '\u0198': 'K',
  39821. '\u2C69': 'K',
  39822. '\uA740': 'K',
  39823. '\uA742': 'K',
  39824. '\uA744': 'K',
  39825. '\uA7A2': 'K',
  39826. '\u24C1': 'L',
  39827. '\uFF2C': 'L',
  39828. '\u013F': 'L',
  39829. '\u0139': 'L',
  39830. '\u013D': 'L',
  39831. '\u1E36': 'L',
  39832. '\u1E38': 'L',
  39833. '\u013B': 'L',
  39834. '\u1E3C': 'L',
  39835. '\u1E3A': 'L',
  39836. '\u0141': 'L',
  39837. '\u023D': 'L',
  39838. '\u2C62': 'L',
  39839. '\u2C60': 'L',
  39840. '\uA748': 'L',
  39841. '\uA746': 'L',
  39842. '\uA780': 'L',
  39843. '\u01C7': 'LJ',
  39844. '\u01C8': 'Lj',
  39845. '\u24C2': 'M',
  39846. '\uFF2D': 'M',
  39847. '\u1E3E': 'M',
  39848. '\u1E40': 'M',
  39849. '\u1E42': 'M',
  39850. '\u2C6E': 'M',
  39851. '\u019C': 'M',
  39852. '\u24C3': 'N',
  39853. '\uFF2E': 'N',
  39854. '\u01F8': 'N',
  39855. '\u0143': 'N',
  39856. '\u00D1': 'N',
  39857. '\u1E44': 'N',
  39858. '\u0147': 'N',
  39859. '\u1E46': 'N',
  39860. '\u0145': 'N',
  39861. '\u1E4A': 'N',
  39862. '\u1E48': 'N',
  39863. '\u0220': 'N',
  39864. '\u019D': 'N',
  39865. '\uA790': 'N',
  39866. '\uA7A4': 'N',
  39867. '\u01CA': 'NJ',
  39868. '\u01CB': 'Nj',
  39869. '\u24C4': 'O',
  39870. '\uFF2F': 'O',
  39871. '\u00D2': 'O',
  39872. '\u00D3': 'O',
  39873. '\u00D4': 'O',
  39874. '\u1ED2': 'O',
  39875. '\u1ED0': 'O',
  39876. '\u1ED6': 'O',
  39877. '\u1ED4': 'O',
  39878. '\u00D5': 'O',
  39879. '\u1E4C': 'O',
  39880. '\u022C': 'O',
  39881. '\u1E4E': 'O',
  39882. '\u014C': 'O',
  39883. '\u1E50': 'O',
  39884. '\u1E52': 'O',
  39885. '\u014E': 'O',
  39886. '\u022E': 'O',
  39887. '\u0230': 'O',
  39888. '\u00D6': 'O',
  39889. '\u022A': 'O',
  39890. '\u1ECE': 'O',
  39891. '\u0150': 'O',
  39892. '\u01D1': 'O',
  39893. '\u020C': 'O',
  39894. '\u020E': 'O',
  39895. '\u01A0': 'O',
  39896. '\u1EDC': 'O',
  39897. '\u1EDA': 'O',
  39898. '\u1EE0': 'O',
  39899. '\u1EDE': 'O',
  39900. '\u1EE2': 'O',
  39901. '\u1ECC': 'O',
  39902. '\u1ED8': 'O',
  39903. '\u01EA': 'O',
  39904. '\u01EC': 'O',
  39905. '\u00D8': 'O',
  39906. '\u01FE': 'O',
  39907. '\u0186': 'O',
  39908. '\u019F': 'O',
  39909. '\uA74A': 'O',
  39910. '\uA74C': 'O',
  39911. '\u01A2': 'OI',
  39912. '\uA74E': 'OO',
  39913. '\u0222': 'OU',
  39914. '\u24C5': 'P',
  39915. '\uFF30': 'P',
  39916. '\u1E54': 'P',
  39917. '\u1E56': 'P',
  39918. '\u01A4': 'P',
  39919. '\u2C63': 'P',
  39920. '\uA750': 'P',
  39921. '\uA752': 'P',
  39922. '\uA754': 'P',
  39923. '\u24C6': 'Q',
  39924. '\uFF31': 'Q',
  39925. '\uA756': 'Q',
  39926. '\uA758': 'Q',
  39927. '\u024A': 'Q',
  39928. '\u24C7': 'R',
  39929. '\uFF32': 'R',
  39930. '\u0154': 'R',
  39931. '\u1E58': 'R',
  39932. '\u0158': 'R',
  39933. '\u0210': 'R',
  39934. '\u0212': 'R',
  39935. '\u1E5A': 'R',
  39936. '\u1E5C': 'R',
  39937. '\u0156': 'R',
  39938. '\u1E5E': 'R',
  39939. '\u024C': 'R',
  39940. '\u2C64': 'R',
  39941. '\uA75A': 'R',
  39942. '\uA7A6': 'R',
  39943. '\uA782': 'R',
  39944. '\u24C8': 'S',
  39945. '\uFF33': 'S',
  39946. '\u1E9E': 'S',
  39947. '\u015A': 'S',
  39948. '\u1E64': 'S',
  39949. '\u015C': 'S',
  39950. '\u1E60': 'S',
  39951. '\u0160': 'S',
  39952. '\u1E66': 'S',
  39953. '\u1E62': 'S',
  39954. '\u1E68': 'S',
  39955. '\u0218': 'S',
  39956. '\u015E': 'S',
  39957. '\u2C7E': 'S',
  39958. '\uA7A8': 'S',
  39959. '\uA784': 'S',
  39960. '\u24C9': 'T',
  39961. '\uFF34': 'T',
  39962. '\u1E6A': 'T',
  39963. '\u0164': 'T',
  39964. '\u1E6C': 'T',
  39965. '\u021A': 'T',
  39966. '\u0162': 'T',
  39967. '\u1E70': 'T',
  39968. '\u1E6E': 'T',
  39969. '\u0166': 'T',
  39970. '\u01AC': 'T',
  39971. '\u01AE': 'T',
  39972. '\u023E': 'T',
  39973. '\uA786': 'T',
  39974. '\uA728': 'TZ',
  39975. '\u24CA': 'U',
  39976. '\uFF35': 'U',
  39977. '\u00D9': 'U',
  39978. '\u00DA': 'U',
  39979. '\u00DB': 'U',
  39980. '\u0168': 'U',
  39981. '\u1E78': 'U',
  39982. '\u016A': 'U',
  39983. '\u1E7A': 'U',
  39984. '\u016C': 'U',
  39985. '\u00DC': 'U',
  39986. '\u01DB': 'U',
  39987. '\u01D7': 'U',
  39988. '\u01D5': 'U',
  39989. '\u01D9': 'U',
  39990. '\u1EE6': 'U',
  39991. '\u016E': 'U',
  39992. '\u0170': 'U',
  39993. '\u01D3': 'U',
  39994. '\u0214': 'U',
  39995. '\u0216': 'U',
  39996. '\u01AF': 'U',
  39997. '\u1EEA': 'U',
  39998. '\u1EE8': 'U',
  39999. '\u1EEE': 'U',
  40000. '\u1EEC': 'U',
  40001. '\u1EF0': 'U',
  40002. '\u1EE4': 'U',
  40003. '\u1E72': 'U',
  40004. '\u0172': 'U',
  40005. '\u1E76': 'U',
  40006. '\u1E74': 'U',
  40007. '\u0244': 'U',
  40008. '\u24CB': 'V',
  40009. '\uFF36': 'V',
  40010. '\u1E7C': 'V',
  40011. '\u1E7E': 'V',
  40012. '\u01B2': 'V',
  40013. '\uA75E': 'V',
  40014. '\u0245': 'V',
  40015. '\uA760': 'VY',
  40016. '\u24CC': 'W',
  40017. '\uFF37': 'W',
  40018. '\u1E80': 'W',
  40019. '\u1E82': 'W',
  40020. '\u0174': 'W',
  40021. '\u1E86': 'W',
  40022. '\u1E84': 'W',
  40023. '\u1E88': 'W',
  40024. '\u2C72': 'W',
  40025. '\u24CD': 'X',
  40026. '\uFF38': 'X',
  40027. '\u1E8A': 'X',
  40028. '\u1E8C': 'X',
  40029. '\u24CE': 'Y',
  40030. '\uFF39': 'Y',
  40031. '\u1EF2': 'Y',
  40032. '\u00DD': 'Y',
  40033. '\u0176': 'Y',
  40034. '\u1EF8': 'Y',
  40035. '\u0232': 'Y',
  40036. '\u1E8E': 'Y',
  40037. '\u0178': 'Y',
  40038. '\u1EF6': 'Y',
  40039. '\u1EF4': 'Y',
  40040. '\u01B3': 'Y',
  40041. '\u024E': 'Y',
  40042. '\u1EFE': 'Y',
  40043. '\u24CF': 'Z',
  40044. '\uFF3A': 'Z',
  40045. '\u0179': 'Z',
  40046. '\u1E90': 'Z',
  40047. '\u017B': 'Z',
  40048. '\u017D': 'Z',
  40049. '\u1E92': 'Z',
  40050. '\u1E94': 'Z',
  40051. '\u01B5': 'Z',
  40052. '\u0224': 'Z',
  40053. '\u2C7F': 'Z',
  40054. '\u2C6B': 'Z',
  40055. '\uA762': 'Z',
  40056. '\u24D0': 'a',
  40057. '\uFF41': 'a',
  40058. '\u1E9A': 'a',
  40059. '\u00E0': 'a',
  40060. '\u00E1': 'a',
  40061. '\u00E2': 'a',
  40062. '\u1EA7': 'a',
  40063. '\u1EA5': 'a',
  40064. '\u1EAB': 'a',
  40065. '\u1EA9': 'a',
  40066. '\u00E3': 'a',
  40067. '\u0101': 'a',
  40068. '\u0103': 'a',
  40069. '\u1EB1': 'a',
  40070. '\u1EAF': 'a',
  40071. '\u1EB5': 'a',
  40072. '\u1EB3': 'a',
  40073. '\u0227': 'a',
  40074. '\u01E1': 'a',
  40075. '\u00E4': 'a',
  40076. '\u01DF': 'a',
  40077. '\u1EA3': 'a',
  40078. '\u00E5': 'a',
  40079. '\u01FB': 'a',
  40080. '\u01CE': 'a',
  40081. '\u0201': 'a',
  40082. '\u0203': 'a',
  40083. '\u1EA1': 'a',
  40084. '\u1EAD': 'a',
  40085. '\u1EB7': 'a',
  40086. '\u1E01': 'a',
  40087. '\u0105': 'a',
  40088. '\u2C65': 'a',
  40089. '\u0250': 'a',
  40090. '\uA733': 'aa',
  40091. '\u00E6': 'ae',
  40092. '\u01FD': 'ae',
  40093. '\u01E3': 'ae',
  40094. '\uA735': 'ao',
  40095. '\uA737': 'au',
  40096. '\uA739': 'av',
  40097. '\uA73B': 'av',
  40098. '\uA73D': 'ay',
  40099. '\u24D1': 'b',
  40100. '\uFF42': 'b',
  40101. '\u1E03': 'b',
  40102. '\u1E05': 'b',
  40103. '\u1E07': 'b',
  40104. '\u0180': 'b',
  40105. '\u0183': 'b',
  40106. '\u0253': 'b',
  40107. '\u24D2': 'c',
  40108. '\uFF43': 'c',
  40109. '\u0107': 'c',
  40110. '\u0109': 'c',
  40111. '\u010B': 'c',
  40112. '\u010D': 'c',
  40113. '\u00E7': 'c',
  40114. '\u1E09': 'c',
  40115. '\u0188': 'c',
  40116. '\u023C': 'c',
  40117. '\uA73F': 'c',
  40118. '\u2184': 'c',
  40119. '\u24D3': 'd',
  40120. '\uFF44': 'd',
  40121. '\u1E0B': 'd',
  40122. '\u010F': 'd',
  40123. '\u1E0D': 'd',
  40124. '\u1E11': 'd',
  40125. '\u1E13': 'd',
  40126. '\u1E0F': 'd',
  40127. '\u0111': 'd',
  40128. '\u018C': 'd',
  40129. '\u0256': 'd',
  40130. '\u0257': 'd',
  40131. '\uA77A': 'd',
  40132. '\u01F3': 'dz',
  40133. '\u01C6': 'dz',
  40134. '\u24D4': 'e',
  40135. '\uFF45': 'e',
  40136. '\u00E8': 'e',
  40137. '\u00E9': 'e',
  40138. '\u00EA': 'e',
  40139. '\u1EC1': 'e',
  40140. '\u1EBF': 'e',
  40141. '\u1EC5': 'e',
  40142. '\u1EC3': 'e',
  40143. '\u1EBD': 'e',
  40144. '\u0113': 'e',
  40145. '\u1E15': 'e',
  40146. '\u1E17': 'e',
  40147. '\u0115': 'e',
  40148. '\u0117': 'e',
  40149. '\u00EB': 'e',
  40150. '\u1EBB': 'e',
  40151. '\u011B': 'e',
  40152. '\u0205': 'e',
  40153. '\u0207': 'e',
  40154. '\u1EB9': 'e',
  40155. '\u1EC7': 'e',
  40156. '\u0229': 'e',
  40157. '\u1E1D': 'e',
  40158. '\u0119': 'e',
  40159. '\u1E19': 'e',
  40160. '\u1E1B': 'e',
  40161. '\u0247': 'e',
  40162. '\u025B': 'e',
  40163. '\u01DD': 'e',
  40164. '\u24D5': 'f',
  40165. '\uFF46': 'f',
  40166. '\u1E1F': 'f',
  40167. '\u0192': 'f',
  40168. '\uA77C': 'f',
  40169. '\u24D6': 'g',
  40170. '\uFF47': 'g',
  40171. '\u01F5': 'g',
  40172. '\u011D': 'g',
  40173. '\u1E21': 'g',
  40174. '\u011F': 'g',
  40175. '\u0121': 'g',
  40176. '\u01E7': 'g',
  40177. '\u0123': 'g',
  40178. '\u01E5': 'g',
  40179. '\u0260': 'g',
  40180. '\uA7A1': 'g',
  40181. '\u1D79': 'g',
  40182. '\uA77F': 'g',
  40183. '\u24D7': 'h',
  40184. '\uFF48': 'h',
  40185. '\u0125': 'h',
  40186. '\u1E23': 'h',
  40187. '\u1E27': 'h',
  40188. '\u021F': 'h',
  40189. '\u1E25': 'h',
  40190. '\u1E29': 'h',
  40191. '\u1E2B': 'h',
  40192. '\u1E96': 'h',
  40193. '\u0127': 'h',
  40194. '\u2C68': 'h',
  40195. '\u2C76': 'h',
  40196. '\u0265': 'h',
  40197. '\u0195': 'hv',
  40198. '\u24D8': 'i',
  40199. '\uFF49': 'i',
  40200. '\u00EC': 'i',
  40201. '\u00ED': 'i',
  40202. '\u00EE': 'i',
  40203. '\u0129': 'i',
  40204. '\u012B': 'i',
  40205. '\u012D': 'i',
  40206. '\u00EF': 'i',
  40207. '\u1E2F': 'i',
  40208. '\u1EC9': 'i',
  40209. '\u01D0': 'i',
  40210. '\u0209': 'i',
  40211. '\u020B': 'i',
  40212. '\u1ECB': 'i',
  40213. '\u012F': 'i',
  40214. '\u1E2D': 'i',
  40215. '\u0268': 'i',
  40216. '\u0131': 'i',
  40217. '\u24D9': 'j',
  40218. '\uFF4A': 'j',
  40219. '\u0135': 'j',
  40220. '\u01F0': 'j',
  40221. '\u0249': 'j',
  40222. '\u24DA': 'k',
  40223. '\uFF4B': 'k',
  40224. '\u1E31': 'k',
  40225. '\u01E9': 'k',
  40226. '\u1E33': 'k',
  40227. '\u0137': 'k',
  40228. '\u1E35': 'k',
  40229. '\u0199': 'k',
  40230. '\u2C6A': 'k',
  40231. '\uA741': 'k',
  40232. '\uA743': 'k',
  40233. '\uA745': 'k',
  40234. '\uA7A3': 'k',
  40235. '\u24DB': 'l',
  40236. '\uFF4C': 'l',
  40237. '\u0140': 'l',
  40238. '\u013A': 'l',
  40239. '\u013E': 'l',
  40240. '\u1E37': 'l',
  40241. '\u1E39': 'l',
  40242. '\u013C': 'l',
  40243. '\u1E3D': 'l',
  40244. '\u1E3B': 'l',
  40245. '\u017F': 'l',
  40246. '\u0142': 'l',
  40247. '\u019A': 'l',
  40248. '\u026B': 'l',
  40249. '\u2C61': 'l',
  40250. '\uA749': 'l',
  40251. '\uA781': 'l',
  40252. '\uA747': 'l',
  40253. '\u01C9': 'lj',
  40254. '\u24DC': 'm',
  40255. '\uFF4D': 'm',
  40256. '\u1E3F': 'm',
  40257. '\u1E41': 'm',
  40258. '\u1E43': 'm',
  40259. '\u0271': 'm',
  40260. '\u026F': 'm',
  40261. '\u24DD': 'n',
  40262. '\uFF4E': 'n',
  40263. '\u01F9': 'n',
  40264. '\u0144': 'n',
  40265. '\u00F1': 'n',
  40266. '\u1E45': 'n',
  40267. '\u0148': 'n',
  40268. '\u1E47': 'n',
  40269. '\u0146': 'n',
  40270. '\u1E4B': 'n',
  40271. '\u1E49': 'n',
  40272. '\u019E': 'n',
  40273. '\u0272': 'n',
  40274. '\u0149': 'n',
  40275. '\uA791': 'n',
  40276. '\uA7A5': 'n',
  40277. '\u01CC': 'nj',
  40278. '\u24DE': 'o',
  40279. '\uFF4F': 'o',
  40280. '\u00F2': 'o',
  40281. '\u00F3': 'o',
  40282. '\u00F4': 'o',
  40283. '\u1ED3': 'o',
  40284. '\u1ED1': 'o',
  40285. '\u1ED7': 'o',
  40286. '\u1ED5': 'o',
  40287. '\u00F5': 'o',
  40288. '\u1E4D': 'o',
  40289. '\u022D': 'o',
  40290. '\u1E4F': 'o',
  40291. '\u014D': 'o',
  40292. '\u1E51': 'o',
  40293. '\u1E53': 'o',
  40294. '\u014F': 'o',
  40295. '\u022F': 'o',
  40296. '\u0231': 'o',
  40297. '\u00F6': 'o',
  40298. '\u022B': 'o',
  40299. '\u1ECF': 'o',
  40300. '\u0151': 'o',
  40301. '\u01D2': 'o',
  40302. '\u020D': 'o',
  40303. '\u020F': 'o',
  40304. '\u01A1': 'o',
  40305. '\u1EDD': 'o',
  40306. '\u1EDB': 'o',
  40307. '\u1EE1': 'o',
  40308. '\u1EDF': 'o',
  40309. '\u1EE3': 'o',
  40310. '\u1ECD': 'o',
  40311. '\u1ED9': 'o',
  40312. '\u01EB': 'o',
  40313. '\u01ED': 'o',
  40314. '\u00F8': 'o',
  40315. '\u01FF': 'o',
  40316. '\u0254': 'o',
  40317. '\uA74B': 'o',
  40318. '\uA74D': 'o',
  40319. '\u0275': 'o',
  40320. '\u01A3': 'oi',
  40321. '\u0223': 'ou',
  40322. '\uA74F': 'oo',
  40323. '\u24DF': 'p',
  40324. '\uFF50': 'p',
  40325. '\u1E55': 'p',
  40326. '\u1E57': 'p',
  40327. '\u01A5': 'p',
  40328. '\u1D7D': 'p',
  40329. '\uA751': 'p',
  40330. '\uA753': 'p',
  40331. '\uA755': 'p',
  40332. '\u24E0': 'q',
  40333. '\uFF51': 'q',
  40334. '\u024B': 'q',
  40335. '\uA757': 'q',
  40336. '\uA759': 'q',
  40337. '\u24E1': 'r',
  40338. '\uFF52': 'r',
  40339. '\u0155': 'r',
  40340. '\u1E59': 'r',
  40341. '\u0159': 'r',
  40342. '\u0211': 'r',
  40343. '\u0213': 'r',
  40344. '\u1E5B': 'r',
  40345. '\u1E5D': 'r',
  40346. '\u0157': 'r',
  40347. '\u1E5F': 'r',
  40348. '\u024D': 'r',
  40349. '\u027D': 'r',
  40350. '\uA75B': 'r',
  40351. '\uA7A7': 'r',
  40352. '\uA783': 'r',
  40353. '\u24E2': 's',
  40354. '\uFF53': 's',
  40355. '\u00DF': 's',
  40356. '\u015B': 's',
  40357. '\u1E65': 's',
  40358. '\u015D': 's',
  40359. '\u1E61': 's',
  40360. '\u0161': 's',
  40361. '\u1E67': 's',
  40362. '\u1E63': 's',
  40363. '\u1E69': 's',
  40364. '\u0219': 's',
  40365. '\u015F': 's',
  40366. '\u023F': 's',
  40367. '\uA7A9': 's',
  40368. '\uA785': 's',
  40369. '\u1E9B': 's',
  40370. '\u24E3': 't',
  40371. '\uFF54': 't',
  40372. '\u1E6B': 't',
  40373. '\u1E97': 't',
  40374. '\u0165': 't',
  40375. '\u1E6D': 't',
  40376. '\u021B': 't',
  40377. '\u0163': 't',
  40378. '\u1E71': 't',
  40379. '\u1E6F': 't',
  40380. '\u0167': 't',
  40381. '\u01AD': 't',
  40382. '\u0288': 't',
  40383. '\u2C66': 't',
  40384. '\uA787': 't',
  40385. '\uA729': 'tz',
  40386. '\u24E4': 'u',
  40387. '\uFF55': 'u',
  40388. '\u00F9': 'u',
  40389. '\u00FA': 'u',
  40390. '\u00FB': 'u',
  40391. '\u0169': 'u',
  40392. '\u1E79': 'u',
  40393. '\u016B': 'u',
  40394. '\u1E7B': 'u',
  40395. '\u016D': 'u',
  40396. '\u00FC': 'u',
  40397. '\u01DC': 'u',
  40398. '\u01D8': 'u',
  40399. '\u01D6': 'u',
  40400. '\u01DA': 'u',
  40401. '\u1EE7': 'u',
  40402. '\u016F': 'u',
  40403. '\u0171': 'u',
  40404. '\u01D4': 'u',
  40405. '\u0215': 'u',
  40406. '\u0217': 'u',
  40407. '\u01B0': 'u',
  40408. '\u1EEB': 'u',
  40409. '\u1EE9': 'u',
  40410. '\u1EEF': 'u',
  40411. '\u1EED': 'u',
  40412. '\u1EF1': 'u',
  40413. '\u1EE5': 'u',
  40414. '\u1E73': 'u',
  40415. '\u0173': 'u',
  40416. '\u1E77': 'u',
  40417. '\u1E75': 'u',
  40418. '\u0289': 'u',
  40419. '\u24E5': 'v',
  40420. '\uFF56': 'v',
  40421. '\u1E7D': 'v',
  40422. '\u1E7F': 'v',
  40423. '\u028B': 'v',
  40424. '\uA75F': 'v',
  40425. '\u028C': 'v',
  40426. '\uA761': 'vy',
  40427. '\u24E6': 'w',
  40428. '\uFF57': 'w',
  40429. '\u1E81': 'w',
  40430. '\u1E83': 'w',
  40431. '\u0175': 'w',
  40432. '\u1E87': 'w',
  40433. '\u1E85': 'w',
  40434. '\u1E98': 'w',
  40435. '\u1E89': 'w',
  40436. '\u2C73': 'w',
  40437. '\u24E7': 'x',
  40438. '\uFF58': 'x',
  40439. '\u1E8B': 'x',
  40440. '\u1E8D': 'x',
  40441. '\u24E8': 'y',
  40442. '\uFF59': 'y',
  40443. '\u1EF3': 'y',
  40444. '\u00FD': 'y',
  40445. '\u0177': 'y',
  40446. '\u1EF9': 'y',
  40447. '\u0233': 'y',
  40448. '\u1E8F': 'y',
  40449. '\u00FF': 'y',
  40450. '\u1EF7': 'y',
  40451. '\u1E99': 'y',
  40452. '\u1EF5': 'y',
  40453. '\u01B4': 'y',
  40454. '\u024F': 'y',
  40455. '\u1EFF': 'y',
  40456. '\u24E9': 'z',
  40457. '\uFF5A': 'z',
  40458. '\u017A': 'z',
  40459. '\u1E91': 'z',
  40460. '\u017C': 'z',
  40461. '\u017E': 'z',
  40462. '\u1E93': 'z',
  40463. '\u1E95': 'z',
  40464. '\u01B6': 'z',
  40465. '\u0225': 'z',
  40466. '\u0240': 'z',
  40467. '\u2C6C': 'z',
  40468. '\uA763': 'z',
  40469. '\u0386': '\u0391',
  40470. '\u0388': '\u0395',
  40471. '\u0389': '\u0397',
  40472. '\u038A': '\u0399',
  40473. '\u03AA': '\u0399',
  40474. '\u038C': '\u039F',
  40475. '\u038E': '\u03A5',
  40476. '\u03AB': '\u03A5',
  40477. '\u038F': '\u03A9',
  40478. '\u03AC': '\u03B1',
  40479. '\u03AD': '\u03B5',
  40480. '\u03AE': '\u03B7',
  40481. '\u03AF': '\u03B9',
  40482. '\u03CA': '\u03B9',
  40483. '\u0390': '\u03B9',
  40484. '\u03CC': '\u03BF',
  40485. '\u03CD': '\u03C5',
  40486. '\u03CB': '\u03C5',
  40487. '\u03B0': '\u03C5',
  40488. '\u03C9': '\u03C9',
  40489. '\u03C2': '\u03C3'
  40490. };
  40491. /**
  40492. * @param {?} text
  40493. * @return {?}
  40494. */
  40495. function stripSpecialChars(text) {
  40496. /** @type {?} */
  40497. const match = (/**
  40498. * @param {?} a
  40499. * @return {?}
  40500. */
  40501. (a) => {
  40502. return diacritics[a] || a;
  40503. });
  40504. return text.replace(/[^\u0000-\u007E]/g, match);
  40505. }
  40506. /**
  40507. * @fileoverview added by tsickle
  40508. * Generated from: lib/items-list.ts
  40509. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  40510. */
  40511. class ItemsList {
  40512. /**
  40513. * @param {?} _ngSelect
  40514. * @param {?} _selectionModel
  40515. */
  40516. constructor(_ngSelect, _selectionModel) {
  40517. this._ngSelect = _ngSelect;
  40518. this._selectionModel = _selectionModel;
  40519. this._items = [];
  40520. this._filteredItems = [];
  40521. this._markedIndex = -1;
  40522. }
  40523. /**
  40524. * @return {?}
  40525. */
  40526. get items() {
  40527. return this._items;
  40528. }
  40529. /**
  40530. * @return {?}
  40531. */
  40532. get filteredItems() {
  40533. return this._filteredItems;
  40534. }
  40535. /**
  40536. * @return {?}
  40537. */
  40538. get markedIndex() {
  40539. return this._markedIndex;
  40540. }
  40541. /**
  40542. * @return {?}
  40543. */
  40544. get selectedItems() {
  40545. return this._selectionModel.value;
  40546. }
  40547. /**
  40548. * @return {?}
  40549. */
  40550. get markedItem() {
  40551. return this._filteredItems[this._markedIndex];
  40552. }
  40553. /**
  40554. * @return {?}
  40555. */
  40556. get noItemsToSelect() {
  40557. return this._ngSelect.hideSelected && this._items.length === this.selectedItems.length;
  40558. }
  40559. /**
  40560. * @return {?}
  40561. */
  40562. get maxItemsSelected() {
  40563. return this._ngSelect.multiple && this._ngSelect.maxSelectedItems <= this.selectedItems.length;
  40564. }
  40565. /**
  40566. * @return {?}
  40567. */
  40568. get lastSelectedItem() {
  40569. /** @type {?} */
  40570. let i = this.selectedItems.length - 1;
  40571. for (; i >= 0; i--) {
  40572. /** @type {?} */
  40573. let item = this.selectedItems[i];
  40574. if (!item.disabled) {
  40575. return item;
  40576. }
  40577. }
  40578. return null;
  40579. }
  40580. /**
  40581. * @param {?} items
  40582. * @return {?}
  40583. */
  40584. setItems(items) {
  40585. this._items = items.map((/**
  40586. * @param {?} item
  40587. * @param {?} index
  40588. * @return {?}
  40589. */
  40590. (item, index) => this.mapItem(item, index)));
  40591. if (this._ngSelect.groupBy) {
  40592. this._groups = this._groupBy(this._items, this._ngSelect.groupBy);
  40593. this._items = this._flatten(this._groups);
  40594. }
  40595. else {
  40596. this._groups = new Map();
  40597. this._groups.set(undefined, this._items);
  40598. }
  40599. this._filteredItems = [...this._items];
  40600. }
  40601. /**
  40602. * @param {?} item
  40603. * @return {?}
  40604. */
  40605. select(item) {
  40606. if (item.selected || this.maxItemsSelected) {
  40607. return;
  40608. }
  40609. /** @type {?} */
  40610. const multiple = this._ngSelect.multiple;
  40611. if (!multiple) {
  40612. this.clearSelected();
  40613. }
  40614. this._selectionModel.select(item, multiple, this._ngSelect.selectableGroupAsModel);
  40615. if (this._ngSelect.hideSelected) {
  40616. this._hideSelected(item);
  40617. }
  40618. }
  40619. /**
  40620. * @param {?} item
  40621. * @return {?}
  40622. */
  40623. unselect(item) {
  40624. if (!item.selected) {
  40625. return;
  40626. }
  40627. this._selectionModel.unselect(item, this._ngSelect.multiple);
  40628. if (this._ngSelect.hideSelected && isDefined(item.index) && this._ngSelect.multiple) {
  40629. this._showSelected(item);
  40630. }
  40631. }
  40632. /**
  40633. * @param {?} value
  40634. * @return {?}
  40635. */
  40636. findItem(value) {
  40637. /** @type {?} */
  40638. let findBy;
  40639. if (this._ngSelect.compareWith) {
  40640. findBy = (/**
  40641. * @param {?} item
  40642. * @return {?}
  40643. */
  40644. item => this._ngSelect.compareWith(item.value, value));
  40645. }
  40646. else if (this._ngSelect.bindValue) {
  40647. findBy = (/**
  40648. * @param {?} item
  40649. * @return {?}
  40650. */
  40651. item => !item.children && this.resolveNested(item.value, this._ngSelect.bindValue) === value);
  40652. }
  40653. else {
  40654. findBy = (/**
  40655. * @param {?} item
  40656. * @return {?}
  40657. */
  40658. item => item.value === value ||
  40659. !item.children && item.label && item.label === this.resolveNested(value, this._ngSelect.bindLabel));
  40660. }
  40661. return this._items.find((/**
  40662. * @param {?} item
  40663. * @return {?}
  40664. */
  40665. item => findBy(item)));
  40666. }
  40667. /**
  40668. * @param {?} item
  40669. * @return {?}
  40670. */
  40671. addItem(item) {
  40672. /** @type {?} */
  40673. const option = this.mapItem(item, this._items.length);
  40674. this._items.push(option);
  40675. this._filteredItems.push(option);
  40676. return option;
  40677. }
  40678. /**
  40679. * @param {?=} keepDisabled
  40680. * @return {?}
  40681. */
  40682. clearSelected(keepDisabled = false) {
  40683. this._selectionModel.clear(keepDisabled);
  40684. this._items.forEach((/**
  40685. * @param {?} item
  40686. * @return {?}
  40687. */
  40688. item => {
  40689. item.selected = keepDisabled && item.selected && item.disabled;
  40690. item.marked = false;
  40691. }));
  40692. if (this._ngSelect.hideSelected) {
  40693. this.resetFilteredItems();
  40694. }
  40695. }
  40696. /**
  40697. * @param {?} term
  40698. * @return {?}
  40699. */
  40700. findByLabel(term) {
  40701. term = stripSpecialChars(term).toLocaleLowerCase();
  40702. return this.filteredItems.find((/**
  40703. * @param {?} item
  40704. * @return {?}
  40705. */
  40706. item => {
  40707. /** @type {?} */
  40708. const label = stripSpecialChars(item.label).toLocaleLowerCase();
  40709. return label.substr(0, term.length) === term;
  40710. }));
  40711. }
  40712. /**
  40713. * @param {?} term
  40714. * @return {?}
  40715. */
  40716. filter(term) {
  40717. if (!term) {
  40718. this.resetFilteredItems();
  40719. return;
  40720. }
  40721. this._filteredItems = [];
  40722. term = this._ngSelect.searchFn ? term : stripSpecialChars(term).toLocaleLowerCase();
  40723. /** @type {?} */
  40724. const match = this._ngSelect.searchFn || this._defaultSearchFn;
  40725. /** @type {?} */
  40726. const hideSelected = this._ngSelect.hideSelected;
  40727. for (const key of Array.from(this._groups.keys())) {
  40728. /** @type {?} */
  40729. const matchedItems = [];
  40730. for (const item of this._groups.get(key)) {
  40731. if (hideSelected && (item.parent && item.parent.selected || item.selected)) {
  40732. continue;
  40733. }
  40734. /** @type {?} */
  40735. const searchItem = this._ngSelect.searchFn ? item.value : item;
  40736. if (match(term, searchItem)) {
  40737. matchedItems.push(item);
  40738. }
  40739. }
  40740. if (matchedItems.length > 0) {
  40741. const [last] = matchedItems.slice(-1);
  40742. if (last.parent) {
  40743. /** @type {?} */
  40744. const head = this._items.find((/**
  40745. * @param {?} x
  40746. * @return {?}
  40747. */
  40748. x => x === last.parent));
  40749. this._filteredItems.push(head);
  40750. }
  40751. this._filteredItems.push(...matchedItems);
  40752. }
  40753. }
  40754. }
  40755. /**
  40756. * @return {?}
  40757. */
  40758. resetFilteredItems() {
  40759. if (this._filteredItems.length === this._items.length) {
  40760. return;
  40761. }
  40762. if (this._ngSelect.hideSelected && this.selectedItems.length > 0) {
  40763. this._filteredItems = this._items.filter((/**
  40764. * @param {?} x
  40765. * @return {?}
  40766. */
  40767. x => !x.selected));
  40768. }
  40769. else {
  40770. this._filteredItems = this._items;
  40771. }
  40772. }
  40773. /**
  40774. * @return {?}
  40775. */
  40776. unmarkItem() {
  40777. this._markedIndex = -1;
  40778. }
  40779. /**
  40780. * @return {?}
  40781. */
  40782. markNextItem() {
  40783. this._stepToItem(+1);
  40784. }
  40785. /**
  40786. * @return {?}
  40787. */
  40788. markPreviousItem() {
  40789. this._stepToItem(-1);
  40790. }
  40791. /**
  40792. * @param {?} item
  40793. * @return {?}
  40794. */
  40795. markItem(item) {
  40796. this._markedIndex = this._filteredItems.indexOf(item);
  40797. }
  40798. /**
  40799. * @param {?=} markDefault
  40800. * @return {?}
  40801. */
  40802. markSelectedOrDefault(markDefault) {
  40803. if (this._filteredItems.length === 0) {
  40804. return;
  40805. }
  40806. /** @type {?} */
  40807. const lastMarkedIndex = this._getLastMarkedIndex();
  40808. if (lastMarkedIndex > -1) {
  40809. this._markedIndex = lastMarkedIndex;
  40810. }
  40811. else {
  40812. this._markedIndex = markDefault ? this.filteredItems.findIndex((/**
  40813. * @param {?} x
  40814. * @return {?}
  40815. */
  40816. x => !x.disabled)) : -1;
  40817. }
  40818. }
  40819. /**
  40820. * @param {?} option
  40821. * @param {?} key
  40822. * @return {?}
  40823. */
  40824. resolveNested(option, key) {
  40825. if (!isObject(option)) {
  40826. return option;
  40827. }
  40828. if (key.indexOf('.') === -1) {
  40829. return option[key];
  40830. }
  40831. else {
  40832. /** @type {?} */
  40833. let keys = key.split('.');
  40834. /** @type {?} */
  40835. let value = option;
  40836. for (let i = 0, len = keys.length; i < len; ++i) {
  40837. if (value == null) {
  40838. return null;
  40839. }
  40840. value = value[keys[i]];
  40841. }
  40842. return value;
  40843. }
  40844. }
  40845. /**
  40846. * @param {?} item
  40847. * @param {?} index
  40848. * @return {?}
  40849. */
  40850. mapItem(item, index) {
  40851. /** @type {?} */
  40852. const label = isDefined(item.$ngOptionLabel) ? item.$ngOptionLabel : this.resolveNested(item, this._ngSelect.bindLabel);
  40853. /** @type {?} */
  40854. const value = isDefined(item.$ngOptionValue) ? item.$ngOptionValue : item;
  40855. return {
  40856. index: index,
  40857. label: isDefined(label) ? label.toString() : '',
  40858. value: value,
  40859. disabled: item.disabled,
  40860. htmlId: `${this._ngSelect.dropdownId}-${index}`,
  40861. };
  40862. }
  40863. /**
  40864. * @return {?}
  40865. */
  40866. mapSelectedItems() {
  40867. /** @type {?} */
  40868. const multiple = this._ngSelect.multiple;
  40869. for (const selected of this.selectedItems) {
  40870. /** @type {?} */
  40871. const value = this._ngSelect.bindValue ? this.resolveNested(selected.value, this._ngSelect.bindValue) : selected.value;
  40872. /** @type {?} */
  40873. const item = isDefined(value) ? this.findItem(value) : null;
  40874. this._selectionModel.unselect(selected, multiple);
  40875. this._selectionModel.select(item || selected, multiple, this._ngSelect.selectableGroupAsModel);
  40876. }
  40877. if (this._ngSelect.hideSelected) {
  40878. this._filteredItems = this.filteredItems.filter((/**
  40879. * @param {?} x
  40880. * @return {?}
  40881. */
  40882. x => this.selectedItems.indexOf(x) === -1));
  40883. }
  40884. }
  40885. /**
  40886. * @private
  40887. * @param {?} item
  40888. * @return {?}
  40889. */
  40890. _showSelected(item) {
  40891. this._filteredItems.push(item);
  40892. if (item.parent) {
  40893. /** @type {?} */
  40894. const parent = item.parent;
  40895. /** @type {?} */
  40896. const parentExists = this._filteredItems.find((/**
  40897. * @param {?} x
  40898. * @return {?}
  40899. */
  40900. x => x === parent));
  40901. if (!parentExists) {
  40902. this._filteredItems.push(parent);
  40903. }
  40904. }
  40905. else if (item.children) {
  40906. for (const child of item.children) {
  40907. child.selected = false;
  40908. this._filteredItems.push(child);
  40909. }
  40910. }
  40911. this._filteredItems = [...this._filteredItems.sort((/**
  40912. * @param {?} a
  40913. * @param {?} b
  40914. * @return {?}
  40915. */
  40916. (a, b) => (a.index - b.index)))];
  40917. }
  40918. /**
  40919. * @private
  40920. * @param {?} item
  40921. * @return {?}
  40922. */
  40923. _hideSelected(item) {
  40924. this._filteredItems = this._filteredItems.filter((/**
  40925. * @param {?} x
  40926. * @return {?}
  40927. */
  40928. x => x !== item));
  40929. if (item.parent) {
  40930. /** @type {?} */
  40931. const children = item.parent.children;
  40932. if (children.every((/**
  40933. * @param {?} x
  40934. * @return {?}
  40935. */
  40936. x => x.selected))) {
  40937. this._filteredItems = this._filteredItems.filter((/**
  40938. * @param {?} x
  40939. * @return {?}
  40940. */
  40941. x => x !== item.parent));
  40942. }
  40943. }
  40944. else if (item.children) {
  40945. this._filteredItems = this.filteredItems.filter((/**
  40946. * @param {?} x
  40947. * @return {?}
  40948. */
  40949. x => x.parent !== item));
  40950. }
  40951. }
  40952. /**
  40953. * @private
  40954. * @param {?} search
  40955. * @param {?} opt
  40956. * @return {?}
  40957. */
  40958. _defaultSearchFn(search, opt) {
  40959. /** @type {?} */
  40960. const label = stripSpecialChars(opt.label).toLocaleLowerCase();
  40961. return label.indexOf(search) > -1;
  40962. }
  40963. /**
  40964. * @private
  40965. * @param {?} steps
  40966. * @return {?}
  40967. */
  40968. _getNextItemIndex(steps) {
  40969. if (steps > 0) {
  40970. return (this._markedIndex === this._filteredItems.length - 1) ? 0 : (this._markedIndex + 1);
  40971. }
  40972. return (this._markedIndex <= 0) ? (this._filteredItems.length - 1) : (this._markedIndex - 1);
  40973. }
  40974. /**
  40975. * @private
  40976. * @param {?} steps
  40977. * @return {?}
  40978. */
  40979. _stepToItem(steps) {
  40980. if (this._filteredItems.length === 0 || this._filteredItems.every((/**
  40981. * @param {?} x
  40982. * @return {?}
  40983. */
  40984. x => x.disabled))) {
  40985. return;
  40986. }
  40987. this._markedIndex = this._getNextItemIndex(steps);
  40988. if (this.markedItem.disabled) {
  40989. this._stepToItem(steps);
  40990. }
  40991. }
  40992. /**
  40993. * @private
  40994. * @return {?}
  40995. */
  40996. _getLastMarkedIndex() {
  40997. if (this._ngSelect.hideSelected) {
  40998. return -1;
  40999. }
  41000. if (this._markedIndex > -1 && this.markedItem === undefined) {
  41001. return -1;
  41002. }
  41003. /** @type {?} */
  41004. const selectedIndex = this._filteredItems.indexOf(this.lastSelectedItem);
  41005. if (this.lastSelectedItem && selectedIndex < 0) {
  41006. return -1;
  41007. }
  41008. return Math.max(this.markedIndex, selectedIndex);
  41009. }
  41010. /**
  41011. * @private
  41012. * @param {?} items
  41013. * @param {?} prop
  41014. * @return {?}
  41015. */
  41016. _groupBy(items, prop) {
  41017. /** @type {?} */
  41018. const groups = new Map();
  41019. if (items.length === 0) {
  41020. return groups;
  41021. }
  41022. // Check if items are already grouped by given key.
  41023. if (Array.isArray(items[0].value[(/** @type {?} */ (prop))])) {
  41024. for (const item of items) {
  41025. /** @type {?} */
  41026. const children = (item.value[(/** @type {?} */ (prop))] || []).map((/**
  41027. * @param {?} x
  41028. * @param {?} index
  41029. * @return {?}
  41030. */
  41031. (x, index) => this.mapItem(x, index)));
  41032. groups.set(item, children);
  41033. }
  41034. return groups;
  41035. }
  41036. /** @type {?} */
  41037. const isFnKey = isFunction(this._ngSelect.groupBy);
  41038. /** @type {?} */
  41039. const keyFn = (/**
  41040. * @param {?} item
  41041. * @return {?}
  41042. */
  41043. (item) => {
  41044. /** @type {?} */
  41045. let key = isFnKey ? ((/** @type {?} */ (prop)))(item.value) : item.value[(/** @type {?} */ (prop))];
  41046. return isDefined(key) ? key : undefined;
  41047. });
  41048. // Group items by key.
  41049. for (const item of items) {
  41050. /** @type {?} */
  41051. let key = keyFn(item);
  41052. /** @type {?} */
  41053. const group = groups.get(key);
  41054. if (group) {
  41055. group.push(item);
  41056. }
  41057. else {
  41058. groups.set(key, [item]);
  41059. }
  41060. }
  41061. return groups;
  41062. }
  41063. /**
  41064. * @private
  41065. * @param {?} groups
  41066. * @return {?}
  41067. */
  41068. _flatten(groups) {
  41069. /** @type {?} */
  41070. const isGroupByFn = isFunction(this._ngSelect.groupBy);
  41071. /** @type {?} */
  41072. const items = [];
  41073. for (const key of Array.from(groups.keys())) {
  41074. /** @type {?} */
  41075. let i = items.length;
  41076. if (key === undefined) {
  41077. /** @type {?} */
  41078. const withoutGroup = groups.get(undefined) || [];
  41079. items.push(...withoutGroup.map((/**
  41080. * @param {?} x
  41081. * @return {?}
  41082. */
  41083. x => (Object.assign(Object.assign({}, x), { index: i++ })))));
  41084. continue;
  41085. }
  41086. /** @type {?} */
  41087. const isObjectKey = isObject(key);
  41088. /** @type {?} */
  41089. const parent = {
  41090. label: isObjectKey ? '' : String(key),
  41091. children: undefined,
  41092. parent: null,
  41093. index: i++,
  41094. disabled: !this._ngSelect.selectableGroup,
  41095. htmlId: newId(),
  41096. };
  41097. /** @type {?} */
  41098. const groupKey = isGroupByFn ? this._ngSelect.bindLabel : (/** @type {?} */ (this._ngSelect.groupBy));
  41099. /** @type {?} */
  41100. const groupValue = this._ngSelect.groupValue || ((/**
  41101. * @return {?}
  41102. */
  41103. () => {
  41104. if (isObjectKey) {
  41105. return ((/** @type {?} */ (key))).value;
  41106. }
  41107. return { [groupKey]: key };
  41108. }));
  41109. /** @type {?} */
  41110. const children = groups.get(key).map((/**
  41111. * @param {?} x
  41112. * @return {?}
  41113. */
  41114. x => {
  41115. x.parent = parent;
  41116. x.children = undefined;
  41117. x.index = i++;
  41118. return x;
  41119. }));
  41120. parent.children = children;
  41121. parent.value = groupValue(key, children.map((/**
  41122. * @param {?} x
  41123. * @return {?}
  41124. */
  41125. x => x.value)));
  41126. items.push(parent);
  41127. items.push(...children);
  41128. }
  41129. return items;
  41130. }
  41131. }
  41132. if (false) {}
  41133. /**
  41134. * @fileoverview added by tsickle
  41135. * Generated from: lib/ng-select.types.ts
  41136. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  41137. */
  41138. /**
  41139. * @record
  41140. */
  41141. function NgOption() { }
  41142. if (false) {}
  41143. /** @enum {number} */
  41144. const KeyCode = {
  41145. Tab: 9,
  41146. Enter: 13,
  41147. Esc: 27,
  41148. Space: 32,
  41149. ArrowUp: 38,
  41150. ArrowDown: 40,
  41151. Backspace: 8,
  41152. };
  41153. KeyCode[KeyCode.Tab] = 'Tab';
  41154. KeyCode[KeyCode.Enter] = 'Enter';
  41155. KeyCode[KeyCode.Esc] = 'Esc';
  41156. KeyCode[KeyCode.Space] = 'Space';
  41157. KeyCode[KeyCode.ArrowUp] = 'ArrowUp';
  41158. KeyCode[KeyCode.ArrowDown] = 'ArrowDown';
  41159. KeyCode[KeyCode.Backspace] = 'Backspace';
  41160. /**
  41161. * @fileoverview added by tsickle
  41162. * Generated from: lib/ng-dropdown-panel.service.ts
  41163. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  41164. */
  41165. /**
  41166. * @record
  41167. */
  41168. function ItemsRangeResult() { }
  41169. if (false) {}
  41170. /**
  41171. * @record
  41172. */
  41173. function PanelDimensions() { }
  41174. if (false) {}
  41175. class NgDropdownPanelService {
  41176. constructor() {
  41177. this._dimensions = {
  41178. itemHeight: 0,
  41179. panelHeight: 0,
  41180. itemsPerViewport: 0
  41181. };
  41182. }
  41183. /**
  41184. * @return {?}
  41185. */
  41186. get dimensions() {
  41187. return this._dimensions;
  41188. }
  41189. /**
  41190. * @param {?} scrollPos
  41191. * @param {?} itemsLength
  41192. * @param {?} buffer
  41193. * @return {?}
  41194. */
  41195. calculateItems(scrollPos, itemsLength, buffer) {
  41196. /** @type {?} */
  41197. const d = this._dimensions;
  41198. /** @type {?} */
  41199. const scrollHeight = d.itemHeight * itemsLength;
  41200. /** @type {?} */
  41201. const scrollTop = Math.max(0, scrollPos);
  41202. /** @type {?} */
  41203. const indexByScrollTop = scrollTop / scrollHeight * itemsLength;
  41204. /** @type {?} */
  41205. let end = Math.min(itemsLength, Math.ceil(indexByScrollTop) + (d.itemsPerViewport + 1));
  41206. /** @type {?} */
  41207. const maxStartEnd = end;
  41208. /** @type {?} */
  41209. const maxStart = Math.max(0, maxStartEnd - d.itemsPerViewport);
  41210. /** @type {?} */
  41211. let start = Math.min(maxStart, Math.floor(indexByScrollTop));
  41212. /** @type {?} */
  41213. let topPadding = d.itemHeight * Math.ceil(start) - (d.itemHeight * Math.min(start, buffer));
  41214. topPadding = !isNaN(topPadding) ? topPadding : 0;
  41215. start = !isNaN(start) ? start : -1;
  41216. end = !isNaN(end) ? end : -1;
  41217. start -= buffer;
  41218. start = Math.max(0, start);
  41219. end += buffer;
  41220. end = Math.min(itemsLength, end);
  41221. return {
  41222. topPadding,
  41223. scrollHeight,
  41224. start,
  41225. end
  41226. };
  41227. }
  41228. /**
  41229. * @param {?} itemHeight
  41230. * @param {?} panelHeight
  41231. * @return {?}
  41232. */
  41233. setDimensions(itemHeight, panelHeight) {
  41234. /** @type {?} */
  41235. const itemsPerViewport = Math.max(1, Math.floor(panelHeight / itemHeight));
  41236. this._dimensions = {
  41237. itemHeight,
  41238. panelHeight,
  41239. itemsPerViewport
  41240. };
  41241. }
  41242. /**
  41243. * @param {?} itemTop
  41244. * @param {?} itemHeight
  41245. * @param {?} lastScroll
  41246. * @return {?}
  41247. */
  41248. getScrollTo(itemTop, itemHeight, lastScroll) {
  41249. const { panelHeight } = this.dimensions;
  41250. /** @type {?} */
  41251. const itemBottom = itemTop + itemHeight;
  41252. /** @type {?} */
  41253. const top = lastScroll;
  41254. /** @type {?} */
  41255. const bottom = top + panelHeight;
  41256. if (panelHeight >= itemBottom && lastScroll === itemTop) {
  41257. return null;
  41258. }
  41259. if (itemBottom > bottom) {
  41260. return top + itemBottom - bottom;
  41261. }
  41262. else if (itemTop <= top) {
  41263. return itemTop;
  41264. }
  41265. return null;
  41266. }
  41267. }
  41268. NgDropdownPanelService.ɵfac = function NgDropdownPanelService_Factory(t) { return new (t || NgDropdownPanelService)(); };
  41269. NgDropdownPanelService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgDropdownPanelService, factory: NgDropdownPanelService.ɵfac });
  41270. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgDropdownPanelService, [{
  41271. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  41272. }], function () { return []; }, null); })();
  41273. if (false) {}
  41274. /**
  41275. * @fileoverview added by tsickle
  41276. * Generated from: lib/ng-dropdown-panel.component.ts
  41277. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  41278. */
  41279. /** @type {?} */
  41280. const TOP_CSS_CLASS = 'ng-select-top';
  41281. /** @type {?} */
  41282. const BOTTOM_CSS_CLASS = 'ng-select-bottom';
  41283. /** @type {?} */
  41284. const SCROLL_SCHEDULER = typeof requestAnimationFrame !== 'undefined' ? rxjs__WEBPACK_IMPORTED_MODULE_3__["animationFrameScheduler"] : rxjs__WEBPACK_IMPORTED_MODULE_3__["asapScheduler"];
  41285. class NgDropdownPanelComponent {
  41286. /**
  41287. * @param {?} _renderer
  41288. * @param {?} _zone
  41289. * @param {?} _panelService
  41290. * @param {?} _elementRef
  41291. * @param {?} _document
  41292. */
  41293. constructor(_renderer, _zone, _panelService, _elementRef, _document) {
  41294. this._renderer = _renderer;
  41295. this._zone = _zone;
  41296. this._panelService = _panelService;
  41297. this._document = _document;
  41298. this.items = [];
  41299. this.position = 'auto';
  41300. this.virtualScroll = false;
  41301. this.filterValue = null;
  41302. this.update = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  41303. this.scroll = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  41304. this.scrollToEnd = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  41305. this.outsideClick = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  41306. this._destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
  41307. this._scrollToEndFired = false;
  41308. this._updateScrollHeight = false;
  41309. this._lastScrollPosition = 0;
  41310. this._dropdown = _elementRef.nativeElement;
  41311. }
  41312. /**
  41313. * @return {?}
  41314. */
  41315. get currentPosition() {
  41316. return this._currentPosition;
  41317. }
  41318. /**
  41319. * @private
  41320. * @return {?}
  41321. */
  41322. get itemsLength() {
  41323. return this._itemsLength;
  41324. }
  41325. /**
  41326. * @private
  41327. * @param {?} value
  41328. * @return {?}
  41329. */
  41330. set itemsLength(value) {
  41331. if (value !== this._itemsLength) {
  41332. this._itemsLength = value;
  41333. this._onItemsLengthChanged();
  41334. }
  41335. }
  41336. /**
  41337. * @private
  41338. * @return {?}
  41339. */
  41340. get _startOffset() {
  41341. if (this.markedItem) {
  41342. const { itemHeight, panelHeight } = this._panelService.dimensions;
  41343. /** @type {?} */
  41344. const offset = this.markedItem.index * itemHeight;
  41345. return panelHeight > offset ? 0 : offset;
  41346. }
  41347. return 0;
  41348. }
  41349. /**
  41350. * @param {?} $event
  41351. * @return {?}
  41352. */
  41353. handleMousedown($event) {
  41354. /** @type {?} */
  41355. const target = (/** @type {?} */ ($event.target));
  41356. if (target.tagName === 'INPUT') {
  41357. return;
  41358. }
  41359. $event.preventDefault();
  41360. }
  41361. /**
  41362. * @return {?}
  41363. */
  41364. ngOnInit() {
  41365. this._select = this._dropdown.parentElement;
  41366. this._virtualPadding = this.paddingElementRef.nativeElement;
  41367. this._scrollablePanel = this.scrollElementRef.nativeElement;
  41368. this._contentPanel = this.contentElementRef.nativeElement;
  41369. this._handleScroll();
  41370. this._handleOutsideClick();
  41371. this._appendDropdown();
  41372. }
  41373. /**
  41374. * @param {?} changes
  41375. * @return {?}
  41376. */
  41377. ngOnChanges(changes) {
  41378. if (changes.items) {
  41379. /** @type {?} */
  41380. const change = changes.items;
  41381. this._onItemsChange(change.currentValue, change.firstChange);
  41382. }
  41383. }
  41384. /**
  41385. * @return {?}
  41386. */
  41387. ngOnDestroy() {
  41388. this._destroy$.next();
  41389. this._destroy$.complete();
  41390. this._destroy$.unsubscribe();
  41391. if (this.appendTo) {
  41392. this._renderer.removeChild(this._dropdown.parentNode, this._dropdown);
  41393. }
  41394. }
  41395. /**
  41396. * @param {?} option
  41397. * @param {?=} startFromOption
  41398. * @return {?}
  41399. */
  41400. scrollTo(option, startFromOption = false) {
  41401. if (!option) {
  41402. return;
  41403. }
  41404. /** @type {?} */
  41405. const index = this.items.indexOf(option);
  41406. if (index < 0 || index >= this.itemsLength) {
  41407. return;
  41408. }
  41409. /** @type {?} */
  41410. let scrollTo;
  41411. if (this.virtualScroll) {
  41412. /** @type {?} */
  41413. const itemHeight = this._panelService.dimensions.itemHeight;
  41414. scrollTo = this._panelService.getScrollTo(index * itemHeight, itemHeight, this._lastScrollPosition);
  41415. }
  41416. else {
  41417. /** @type {?} */
  41418. const item = this._dropdown.querySelector(`#${option.htmlId}`);
  41419. /** @type {?} */
  41420. const lastScroll = startFromOption ? item.offsetTop : this._lastScrollPosition;
  41421. scrollTo = this._panelService.getScrollTo(item.offsetTop, item.clientHeight, lastScroll);
  41422. }
  41423. if (isDefined(scrollTo)) {
  41424. this._scrollablePanel.scrollTop = scrollTo;
  41425. }
  41426. }
  41427. /**
  41428. * @return {?}
  41429. */
  41430. scrollToTag() {
  41431. /** @type {?} */
  41432. const panel = this._scrollablePanel;
  41433. panel.scrollTop = panel.scrollHeight - panel.clientHeight;
  41434. }
  41435. /**
  41436. * @return {?}
  41437. */
  41438. adjustPosition() {
  41439. this._updateYPosition();
  41440. }
  41441. /**
  41442. * @private
  41443. * @return {?}
  41444. */
  41445. _handleDropdownPosition() {
  41446. this._currentPosition = this._calculateCurrentPosition(this._dropdown);
  41447. if (this._currentPosition === 'top') {
  41448. this._renderer.addClass(this._dropdown, TOP_CSS_CLASS);
  41449. this._renderer.removeClass(this._dropdown, BOTTOM_CSS_CLASS);
  41450. this._renderer.addClass(this._select, TOP_CSS_CLASS);
  41451. this._renderer.removeClass(this._select, BOTTOM_CSS_CLASS);
  41452. }
  41453. else {
  41454. this._renderer.addClass(this._dropdown, BOTTOM_CSS_CLASS);
  41455. this._renderer.removeClass(this._dropdown, TOP_CSS_CLASS);
  41456. this._renderer.addClass(this._select, BOTTOM_CSS_CLASS);
  41457. this._renderer.removeClass(this._select, TOP_CSS_CLASS);
  41458. }
  41459. if (this.appendTo) {
  41460. this._updateYPosition();
  41461. }
  41462. this._dropdown.style.opacity = '1';
  41463. }
  41464. /**
  41465. * @private
  41466. * @return {?}
  41467. */
  41468. _handleScroll() {
  41469. this._zone.runOutsideAngular((/**
  41470. * @return {?}
  41471. */
  41472. () => {
  41473. Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["fromEvent"])(this.scrollElementRef.nativeElement, 'scroll')
  41474. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["takeUntil"])(this._destroy$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["auditTime"])(0, SCROLL_SCHEDULER))
  41475. .subscribe((/**
  41476. * @param {?} e
  41477. * @return {?}
  41478. */
  41479. (e) => {
  41480. /** @type {?} */
  41481. const path = e.path || (e.composedPath && e.composedPath());
  41482. /** @type {?} */
  41483. const scrollTop = !path || path.length === 0 ? e.target.scrollTop : path[0].scrollTop;
  41484. this._onContentScrolled(scrollTop);
  41485. }));
  41486. }));
  41487. }
  41488. /**
  41489. * @private
  41490. * @return {?}
  41491. */
  41492. _handleOutsideClick() {
  41493. if (!this._document) {
  41494. return;
  41495. }
  41496. this._zone.runOutsideAngular((/**
  41497. * @return {?}
  41498. */
  41499. () => {
  41500. Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["merge"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["fromEvent"])(this._document, 'touchstart', { capture: true }), Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["fromEvent"])(this._document, 'mousedown', { capture: true })).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["takeUntil"])(this._destroy$))
  41501. .subscribe((/**
  41502. * @param {?} $event
  41503. * @return {?}
  41504. */
  41505. $event => this._checkToClose($event)));
  41506. }));
  41507. }
  41508. /**
  41509. * @private
  41510. * @param {?} $event
  41511. * @return {?}
  41512. */
  41513. _checkToClose($event) {
  41514. if (this._select.contains($event.target) || this._dropdown.contains($event.target)) {
  41515. return;
  41516. }
  41517. /** @type {?} */
  41518. const path = $event.path || ($event.composedPath && $event.composedPath());
  41519. if ($event.target && $event.target.shadowRoot && path && path[0] && this._select.contains(path[0])) {
  41520. return;
  41521. }
  41522. this._zone.run((/**
  41523. * @return {?}
  41524. */
  41525. () => this.outsideClick.emit()));
  41526. }
  41527. /**
  41528. * @private
  41529. * @param {?} items
  41530. * @param {?} firstChange
  41531. * @return {?}
  41532. */
  41533. _onItemsChange(items, firstChange) {
  41534. this.items = items || [];
  41535. this._scrollToEndFired = false;
  41536. this.itemsLength = items.length;
  41537. if (this.virtualScroll) {
  41538. this._updateItemsRange(firstChange);
  41539. }
  41540. else {
  41541. this._setVirtualHeight();
  41542. this._updateItems(firstChange);
  41543. }
  41544. }
  41545. /**
  41546. * @private
  41547. * @param {?} firstChange
  41548. * @return {?}
  41549. */
  41550. _updateItems(firstChange) {
  41551. this.update.emit(this.items);
  41552. if (firstChange === false) {
  41553. return;
  41554. }
  41555. this._zone.runOutsideAngular((/**
  41556. * @return {?}
  41557. */
  41558. () => {
  41559. Promise.resolve().then((/**
  41560. * @return {?}
  41561. */
  41562. () => {
  41563. /** @type {?} */
  41564. const panelHeight = this._scrollablePanel.clientHeight;
  41565. this._panelService.setDimensions(0, panelHeight);
  41566. this._handleDropdownPosition();
  41567. this.scrollTo(this.markedItem, firstChange);
  41568. }));
  41569. }));
  41570. }
  41571. /**
  41572. * @private
  41573. * @param {?} firstChange
  41574. * @return {?}
  41575. */
  41576. _updateItemsRange(firstChange) {
  41577. this._zone.runOutsideAngular((/**
  41578. * @return {?}
  41579. */
  41580. () => {
  41581. this._measureDimensions().then((/**
  41582. * @return {?}
  41583. */
  41584. () => {
  41585. if (firstChange) {
  41586. this._renderItemsRange(this._startOffset);
  41587. this._handleDropdownPosition();
  41588. }
  41589. else {
  41590. this._renderItemsRange();
  41591. }
  41592. }));
  41593. }));
  41594. }
  41595. /**
  41596. * @private
  41597. * @param {?} scrollTop
  41598. * @return {?}
  41599. */
  41600. _onContentScrolled(scrollTop) {
  41601. if (this.virtualScroll) {
  41602. this._renderItemsRange(scrollTop);
  41603. }
  41604. this._lastScrollPosition = scrollTop;
  41605. this._fireScrollToEnd(scrollTop);
  41606. }
  41607. /**
  41608. * @private
  41609. * @param {?} height
  41610. * @return {?}
  41611. */
  41612. _updateVirtualHeight(height) {
  41613. if (this._updateScrollHeight) {
  41614. this._virtualPadding.style.height = `${height}px`;
  41615. this._updateScrollHeight = false;
  41616. }
  41617. }
  41618. /**
  41619. * @private
  41620. * @return {?}
  41621. */
  41622. _setVirtualHeight() {
  41623. if (!this._virtualPadding) {
  41624. return;
  41625. }
  41626. this._virtualPadding.style.height = `0px`;
  41627. }
  41628. /**
  41629. * @private
  41630. * @return {?}
  41631. */
  41632. _onItemsLengthChanged() {
  41633. this._updateScrollHeight = true;
  41634. }
  41635. /**
  41636. * @private
  41637. * @param {?=} scrollTop
  41638. * @return {?}
  41639. */
  41640. _renderItemsRange(scrollTop = null) {
  41641. if (scrollTop && this._lastScrollPosition === scrollTop) {
  41642. return;
  41643. }
  41644. scrollTop = scrollTop || this._scrollablePanel.scrollTop;
  41645. /** @type {?} */
  41646. const range = this._panelService.calculateItems(scrollTop, this.itemsLength, this.bufferAmount);
  41647. this._updateVirtualHeight(range.scrollHeight);
  41648. this._contentPanel.style.transform = `translateY(${range.topPadding}px)`;
  41649. this._zone.run((/**
  41650. * @return {?}
  41651. */
  41652. () => {
  41653. this.update.emit(this.items.slice(range.start, range.end));
  41654. this.scroll.emit({ start: range.start, end: range.end });
  41655. }));
  41656. if (isDefined(scrollTop) && this._lastScrollPosition === 0) {
  41657. this._scrollablePanel.scrollTop = scrollTop;
  41658. this._lastScrollPosition = scrollTop;
  41659. }
  41660. }
  41661. /**
  41662. * @private
  41663. * @return {?}
  41664. */
  41665. _measureDimensions() {
  41666. if (this._panelService.dimensions.itemHeight > 0 || this.itemsLength === 0) {
  41667. return Promise.resolve(this._panelService.dimensions);
  41668. }
  41669. const [first] = this.items;
  41670. this.update.emit([first]);
  41671. return Promise.resolve().then((/**
  41672. * @return {?}
  41673. */
  41674. () => {
  41675. /** @type {?} */
  41676. const option = this._dropdown.querySelector(`#${first.htmlId}`);
  41677. /** @type {?} */
  41678. const optionHeight = option.clientHeight;
  41679. this._virtualPadding.style.height = `${optionHeight * this.itemsLength}px`;
  41680. /** @type {?} */
  41681. const panelHeight = this._scrollablePanel.clientHeight;
  41682. this._panelService.setDimensions(optionHeight, panelHeight);
  41683. return this._panelService.dimensions;
  41684. }));
  41685. }
  41686. /**
  41687. * @private
  41688. * @param {?} scrollTop
  41689. * @return {?}
  41690. */
  41691. _fireScrollToEnd(scrollTop) {
  41692. if (this._scrollToEndFired || scrollTop === 0) {
  41693. return;
  41694. }
  41695. /** @type {?} */
  41696. const padding = this.virtualScroll ?
  41697. this._virtualPadding :
  41698. this._contentPanel;
  41699. if (scrollTop + this._dropdown.clientHeight >= padding.clientHeight) {
  41700. this._zone.run((/**
  41701. * @return {?}
  41702. */
  41703. () => this.scrollToEnd.emit()));
  41704. this._scrollToEndFired = true;
  41705. }
  41706. }
  41707. /**
  41708. * @private
  41709. * @param {?} dropdownEl
  41710. * @return {?}
  41711. */
  41712. _calculateCurrentPosition(dropdownEl) {
  41713. if (this.position !== 'auto') {
  41714. return this.position;
  41715. }
  41716. /** @type {?} */
  41717. const selectRect = this._select.getBoundingClientRect();
  41718. /** @type {?} */
  41719. const scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
  41720. /** @type {?} */
  41721. const offsetTop = selectRect.top + window.pageYOffset;
  41722. /** @type {?} */
  41723. const height = selectRect.height;
  41724. /** @type {?} */
  41725. const dropdownHeight = dropdownEl.getBoundingClientRect().height;
  41726. if (offsetTop + height + dropdownHeight > scrollTop + document.documentElement.clientHeight) {
  41727. return 'top';
  41728. }
  41729. else {
  41730. return 'bottom';
  41731. }
  41732. }
  41733. /**
  41734. * @private
  41735. * @return {?}
  41736. */
  41737. _appendDropdown() {
  41738. if (!this.appendTo) {
  41739. return;
  41740. }
  41741. this._parent = document.querySelector(this.appendTo);
  41742. if (!this._parent) {
  41743. throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);
  41744. }
  41745. this._updateXPosition();
  41746. this._parent.appendChild(this._dropdown);
  41747. }
  41748. /**
  41749. * @private
  41750. * @return {?}
  41751. */
  41752. _updateXPosition() {
  41753. /** @type {?} */
  41754. const select = this._select.getBoundingClientRect();
  41755. /** @type {?} */
  41756. const parent = this._parent.getBoundingClientRect();
  41757. /** @type {?} */
  41758. const offsetLeft = select.left - parent.left;
  41759. this._dropdown.style.left = offsetLeft + 'px';
  41760. this._dropdown.style.width = select.width + 'px';
  41761. this._dropdown.style.minWidth = select.width + 'px';
  41762. }
  41763. /**
  41764. * @private
  41765. * @return {?}
  41766. */
  41767. _updateYPosition() {
  41768. /** @type {?} */
  41769. const select = this._select.getBoundingClientRect();
  41770. /** @type {?} */
  41771. const parent = this._parent.getBoundingClientRect();
  41772. /** @type {?} */
  41773. const delta = select.height;
  41774. if (this._currentPosition === 'top') {
  41775. /** @type {?} */
  41776. const offsetBottom = parent.bottom - select.bottom;
  41777. this._dropdown.style.bottom = offsetBottom + delta + 'px';
  41778. this._dropdown.style.top = 'auto';
  41779. }
  41780. else if (this._currentPosition === 'bottom') {
  41781. /** @type {?} */
  41782. const offsetTop = select.top - parent.top;
  41783. this._dropdown.style.top = offsetTop + delta + 'px';
  41784. this._dropdown.style.bottom = 'auto';
  41785. }
  41786. }
  41787. }
  41788. NgDropdownPanelComponent.ɵfac = function NgDropdownPanelComponent_Factory(t) { return new (t || NgDropdownPanelComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgDropdownPanelService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"], 8)); };
  41789. NgDropdownPanelComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgDropdownPanelComponent, selectors: [["ng-dropdown-panel"]], viewQuery: function NgDropdownPanelComponent_Query(rf, ctx) { if (rf & 1) {
  41790. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c0, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]);
  41791. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c1, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]);
  41792. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c2, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]);
  41793. } if (rf & 2) {
  41794. let _t;
  41795. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.contentElementRef = _t.first);
  41796. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.scrollElementRef = _t.first);
  41797. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.paddingElementRef = _t.first);
  41798. } }, hostBindings: function NgDropdownPanelComponent_HostBindings(rf, ctx) { if (rf & 1) {
  41799. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function NgDropdownPanelComponent_mousedown_HostBindingHandler($event) { return ctx.handleMousedown($event); });
  41800. } }, inputs: { items: "items", position: "position", virtualScroll: "virtualScroll", filterValue: "filterValue", markedItem: "markedItem", appendTo: "appendTo", bufferAmount: "bufferAmount", headerTemplate: "headerTemplate", footerTemplate: "footerTemplate" }, outputs: { update: "update", scroll: "scroll", scrollToEnd: "scrollToEnd", outsideClick: "outsideClick" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c4, decls: 9, vars: 6, consts: [["class", "ng-dropdown-header", 4, "ngIf"], [1, "ng-dropdown-panel-items", "scroll-host"], ["scroll", ""], ["padding", ""], ["content", ""], ["class", "ng-dropdown-footer", 4, "ngIf"], [1, "ng-dropdown-header"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "ng-dropdown-footer"]], template: function NgDropdownPanelComponent_Template(rf, ctx) { if (rf & 1) {
  41801. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  41802. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](0, NgDropdownPanelComponent_div_0_Template, 2, 4, "div", 0);
  41803. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1, 2);
  41804. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](3, "div", null, 3);
  41805. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](5, "div", null, 4);
  41806. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](7);
  41807. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  41808. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  41809. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](8, NgDropdownPanelComponent_div_8_Template, 2, 4, "div", 5);
  41810. } if (rf & 2) {
  41811. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.headerTemplate);
  41812. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  41813. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("total-padding", ctx.virtualScroll);
  41814. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  41815. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("scrollable-content", ctx.virtualScroll && ctx.items.length);
  41816. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  41817. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.footerTemplate);
  41818. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgTemplateOutlet"]], encapsulation: 2, changeDetection: 0 });
  41819. /** @nocollapse */
  41820. NgDropdownPanelComponent.ctorParameters = () => [
  41821. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] },
  41822. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] },
  41823. { type: NgDropdownPanelService },
  41824. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  41825. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"],] }] }
  41826. ];
  41827. NgDropdownPanelComponent.propDecorators = {
  41828. items: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41829. markedItem: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41830. position: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41831. appendTo: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41832. bufferAmount: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41833. virtualScroll: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41834. headerTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41835. footerTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41836. filterValue: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41837. update: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  41838. scroll: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  41839. scrollToEnd: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  41840. outsideClick: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"] }],
  41841. contentElementRef: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['content', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], static: true },] }],
  41842. scrollElementRef: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['scroll', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], static: true },] }],
  41843. paddingElementRef: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['padding', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], static: true },] }],
  41844. handleMousedown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"], args: ['mousedown', ['$event'],] }]
  41845. };
  41846. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgDropdownPanelComponent, [{
  41847. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  41848. args: [{
  41849. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  41850. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  41851. selector: 'ng-dropdown-panel',
  41852. template: `
  41853. <div *ngIf="headerTemplate" class="ng-dropdown-header">
  41854. <ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ searchTerm: filterValue }"></ng-container>
  41855. </div>
  41856. <div #scroll class="ng-dropdown-panel-items scroll-host">
  41857. <div #padding [class.total-padding]="virtualScroll"></div>
  41858. <div #content [class.scrollable-content]="virtualScroll && items.length">
  41859. <ng-content></ng-content>
  41860. </div>
  41861. </div>
  41862. <div *ngIf="footerTemplate" class="ng-dropdown-footer">
  41863. <ng-container [ngTemplateOutlet]="footerTemplate" [ngTemplateOutletContext]="{ searchTerm: filterValue }"></ng-container>
  41864. </div>
  41865. `
  41866. }]
  41867. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgZone"] }, { type: NgDropdownPanelService }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: undefined, decorators: [{
  41868. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  41869. }, {
  41870. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  41871. args: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["DOCUMENT"]]
  41872. }] }]; }, { items: [{
  41873. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41874. }], position: [{
  41875. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41876. }], virtualScroll: [{
  41877. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41878. }], filterValue: [{
  41879. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41880. }], update: [{
  41881. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  41882. }], scroll: [{
  41883. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  41884. }], scrollToEnd: [{
  41885. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  41886. }], outsideClick: [{
  41887. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"]
  41888. }],
  41889. /**
  41890. * @param {?} $event
  41891. * @return {?}
  41892. */
  41893. handleMousedown: [{
  41894. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"],
  41895. args: ['mousedown', ['$event']]
  41896. }], markedItem: [{
  41897. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41898. }], appendTo: [{
  41899. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41900. }], bufferAmount: [{
  41901. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41902. }], headerTemplate: [{
  41903. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41904. }], footerTemplate: [{
  41905. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  41906. }], contentElementRef: [{
  41907. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  41908. args: ['content', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], static: true }]
  41909. }], scrollElementRef: [{
  41910. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  41911. args: ['scroll', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], static: true }]
  41912. }], paddingElementRef: [{
  41913. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  41914. args: ['padding', { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"], static: true }]
  41915. }] }); })();
  41916. if (false) {}
  41917. /**
  41918. * @fileoverview added by tsickle
  41919. * Generated from: lib/ng-option.component.ts
  41920. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  41921. */
  41922. class NgOptionComponent {
  41923. /**
  41924. * @param {?} elementRef
  41925. */
  41926. constructor(elementRef) {
  41927. this.elementRef = elementRef;
  41928. this.stateChange$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
  41929. this._disabled = false;
  41930. }
  41931. /**
  41932. * @return {?}
  41933. */
  41934. get disabled() { return this._disabled; }
  41935. /**
  41936. * @param {?} value
  41937. * @return {?}
  41938. */
  41939. set disabled(value) { this._disabled = this._isDisabled(value); }
  41940. /**
  41941. * @return {?}
  41942. */
  41943. get label() {
  41944. return (this.elementRef.nativeElement.textContent || '').trim();
  41945. }
  41946. /**
  41947. * @param {?} changes
  41948. * @return {?}
  41949. */
  41950. ngOnChanges(changes) {
  41951. if (changes.disabled) {
  41952. this.stateChange$.next({
  41953. value: this.value,
  41954. disabled: this._disabled
  41955. });
  41956. }
  41957. }
  41958. /**
  41959. * @return {?}
  41960. */
  41961. ngAfterViewChecked() {
  41962. if (this.label !== this._previousLabel) {
  41963. this._previousLabel = this.label;
  41964. this.stateChange$.next({
  41965. value: this.value,
  41966. disabled: this._disabled,
  41967. label: this.elementRef.nativeElement.innerHTML
  41968. });
  41969. }
  41970. }
  41971. /**
  41972. * @return {?}
  41973. */
  41974. ngOnDestroy() {
  41975. this.stateChange$.complete();
  41976. }
  41977. /**
  41978. * @private
  41979. * @param {?} value
  41980. * @return {?}
  41981. */
  41982. _isDisabled(value) {
  41983. return value != null && `${value}` !== 'false';
  41984. }
  41985. }
  41986. NgOptionComponent.ɵfac = function NgOptionComponent_Factory(t) { return new (t || NgOptionComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])); };
  41987. NgOptionComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgOptionComponent, selectors: [["ng-option"]], inputs: { disabled: "disabled", value: "value" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], ngContentSelectors: _c4, decls: 1, vars: 0, template: function NgOptionComponent_Template(rf, ctx) { if (rf & 1) {
  41988. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojectionDef"]();
  41989. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵprojection"](0);
  41990. } }, encapsulation: 2, changeDetection: 0 });
  41991. /** @nocollapse */
  41992. NgOptionComponent.ctorParameters = () => [
  41993. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }
  41994. ];
  41995. NgOptionComponent.propDecorators = {
  41996. value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  41997. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  41998. };
  41999. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgOptionComponent, [{
  42000. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  42001. args: [{
  42002. selector: 'ng-option',
  42003. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  42004. template: `<ng-content></ng-content>`
  42005. }]
  42006. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }]; }, { disabled: [{
  42007. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  42008. }], value: [{
  42009. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  42010. }] }); })();
  42011. if (false) {}
  42012. /**
  42013. * @fileoverview added by tsickle
  42014. * Generated from: lib/config.service.ts
  42015. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  42016. */
  42017. class NgSelectConfig {
  42018. constructor() {
  42019. this.notFoundText = 'No items found';
  42020. this.typeToSearchText = 'Type to search';
  42021. this.addTagText = 'Add item';
  42022. this.loadingText = 'Loading...';
  42023. this.clearAllText = 'Clear all';
  42024. this.disableVirtualScroll = true;
  42025. this.openOnEnter = true;
  42026. this.appearance = 'underline';
  42027. }
  42028. }
  42029. NgSelectConfig.ɵfac = function NgSelectConfig_Factory(t) { return new (t || NgSelectConfig)(); };
  42030. /** @nocollapse */ NgSelectConfig.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function NgSelectConfig_Factory() { return new NgSelectConfig(); }, token: NgSelectConfig, providedIn: "root" });
  42031. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectConfig, [{
  42032. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  42033. args: [{ providedIn: 'root' }]
  42034. }], function () { return []; }, null); })();
  42035. if (false) {}
  42036. /**
  42037. * @fileoverview added by tsickle
  42038. * Generated from: lib/ng-select.component.ts
  42039. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  42040. */
  42041. /** @type {?} */
  42042. const SELECTION_MODEL_FACTORY = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('ng-select-selection-model');
  42043. class NgSelectComponent {
  42044. /**
  42045. * @param {?} classes
  42046. * @param {?} autoFocus
  42047. * @param {?} config
  42048. * @param {?} newSelectionModel
  42049. * @param {?} _elementRef
  42050. * @param {?} _cd
  42051. * @param {?} _console
  42052. */
  42053. constructor(classes, autoFocus, config, newSelectionModel, _elementRef, _cd, _console) {
  42054. this.classes = classes;
  42055. this.autoFocus = autoFocus;
  42056. this._cd = _cd;
  42057. this._console = _console;
  42058. this.markFirst = true;
  42059. this.dropdownPosition = 'auto';
  42060. this.loading = false;
  42061. this.closeOnSelect = true;
  42062. this.hideSelected = false;
  42063. this.selectOnTab = false;
  42064. this.bufferAmount = 4;
  42065. this.selectableGroup = false;
  42066. this.selectableGroupAsModel = true;
  42067. this.searchFn = null;
  42068. this.trackByFn = null;
  42069. this.clearOnBackspace = true;
  42070. this.labelForId = null;
  42071. this.inputAttrs = {};
  42072. this.readonly = false;
  42073. this.searchWhileComposing = true;
  42074. this.minTermLength = 0;
  42075. this.editableSearchTerm = false;
  42076. this.keyDownFn = (/**
  42077. * @param {?} _
  42078. * @return {?}
  42079. */
  42080. (_) => true);
  42081. this.multiple = false;
  42082. this.addTag = false;
  42083. this.searchable = true;
  42084. this.clearable = true;
  42085. this.isOpen = false;
  42086. // output events
  42087. this.blurEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42088. this.focusEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42089. this.changeEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42090. this.openEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42091. this.closeEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42092. this.searchEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42093. this.clearEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42094. this.addEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42095. this.removeEvent = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42096. this.scroll = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42097. this.scrollToEnd = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  42098. this.viewPortItems = [];
  42099. this.searchTerm = null;
  42100. this.dropdownId = newId();
  42101. this.escapeHTML = true;
  42102. this.useDefaultClass = true;
  42103. this._items = [];
  42104. this._defaultLabel = 'label';
  42105. this._pressedKeys = [];
  42106. this._isComposing = false;
  42107. this._destroy$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
  42108. this._keyPress$ = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
  42109. this._onChange = (/**
  42110. * @param {?} _
  42111. * @return {?}
  42112. */
  42113. (_) => { });
  42114. this._onTouched = (/**
  42115. * @return {?}
  42116. */
  42117. () => { });
  42118. this.clearItem = (/**
  42119. * @param {?} item
  42120. * @return {?}
  42121. */
  42122. (item) => {
  42123. /** @type {?} */
  42124. const option = this.selectedItems.find((/**
  42125. * @param {?} x
  42126. * @return {?}
  42127. */
  42128. x => x.value === item));
  42129. this.unselect(option);
  42130. });
  42131. this.trackByOption = (/**
  42132. * @param {?} _
  42133. * @param {?} item
  42134. * @return {?}
  42135. */
  42136. (_, item) => {
  42137. if (this.trackByFn) {
  42138. return this.trackByFn(item.value);
  42139. }
  42140. return item;
  42141. });
  42142. this._mergeGlobalConfig(config);
  42143. this.itemsList = new ItemsList(this, newSelectionModel());
  42144. this.element = _elementRef.nativeElement;
  42145. }
  42146. /**
  42147. * @return {?}
  42148. */
  42149. get items() { return this._items; }
  42150. ;
  42151. /**
  42152. * @param {?} value
  42153. * @return {?}
  42154. */
  42155. set items(value) {
  42156. this._itemsAreUsed = true;
  42157. this._items = value;
  42158. }
  42159. ;
  42160. /**
  42161. * @return {?}
  42162. */
  42163. get compareWith() { return this._compareWith; }
  42164. /**
  42165. * @param {?} fn
  42166. * @return {?}
  42167. */
  42168. set compareWith(fn) {
  42169. if (!isFunction(fn)) {
  42170. throw Error('`compareWith` must be a function.');
  42171. }
  42172. this._compareWith = fn;
  42173. }
  42174. /**
  42175. * @return {?}
  42176. */
  42177. get clearSearchOnAdd() { return isDefined(this._clearSearchOnAdd) ? this._clearSearchOnAdd : this.closeOnSelect; }
  42178. ;
  42179. /**
  42180. * @param {?} value
  42181. * @return {?}
  42182. */
  42183. set clearSearchOnAdd(value) {
  42184. this._clearSearchOnAdd = value;
  42185. }
  42186. ;
  42187. /**
  42188. * @return {?}
  42189. */
  42190. get disabled() { return this.readonly || this._disabled; }
  42191. ;
  42192. /**
  42193. * @return {?}
  42194. */
  42195. get filtered() { return (!!this.searchTerm && this.searchable || this._isComposing); }
  42196. ;
  42197. /**
  42198. * @private
  42199. * @return {?}
  42200. */
  42201. get _editableSearchTerm() {
  42202. return this.editableSearchTerm && !this.multiple;
  42203. }
  42204. /**
  42205. * @return {?}
  42206. */
  42207. get selectedItems() {
  42208. return this.itemsList.selectedItems;
  42209. }
  42210. /**
  42211. * @return {?}
  42212. */
  42213. get selectedValues() {
  42214. return this.selectedItems.map((/**
  42215. * @param {?} x
  42216. * @return {?}
  42217. */
  42218. x => x.value));
  42219. }
  42220. /**
  42221. * @return {?}
  42222. */
  42223. get hasValue() {
  42224. return this.selectedItems.length > 0;
  42225. }
  42226. /**
  42227. * @return {?}
  42228. */
  42229. get currentPanelPosition() {
  42230. if (this.dropdownPanel) {
  42231. return this.dropdownPanel.currentPosition;
  42232. }
  42233. return undefined;
  42234. }
  42235. /**
  42236. * @return {?}
  42237. */
  42238. ngOnInit() {
  42239. this._handleKeyPresses();
  42240. this._setInputAttributes();
  42241. }
  42242. /**
  42243. * @param {?} changes
  42244. * @return {?}
  42245. */
  42246. ngOnChanges(changes) {
  42247. if (changes.multiple) {
  42248. this.itemsList.clearSelected();
  42249. }
  42250. if (changes.items) {
  42251. this._setItems(changes.items.currentValue || []);
  42252. }
  42253. if (changes.isOpen) {
  42254. this._manualOpen = isDefined(changes.isOpen.currentValue);
  42255. }
  42256. }
  42257. /**
  42258. * @return {?}
  42259. */
  42260. ngAfterViewInit() {
  42261. if (!this._itemsAreUsed) {
  42262. this.escapeHTML = false;
  42263. this._setItemsFromNgOptions();
  42264. }
  42265. if (isDefined(this.autoFocus)) {
  42266. this.focus();
  42267. }
  42268. }
  42269. /**
  42270. * @return {?}
  42271. */
  42272. ngOnDestroy() {
  42273. this._destroy$.next();
  42274. this._destroy$.complete();
  42275. }
  42276. /**
  42277. * @param {?} $event
  42278. * @return {?}
  42279. */
  42280. handleKeyDown($event) {
  42281. /** @type {?} */
  42282. const keyCode = KeyCode[$event.which];
  42283. if (keyCode) {
  42284. if (this.keyDownFn($event) === false) {
  42285. return;
  42286. }
  42287. this.handleKeyCode($event);
  42288. }
  42289. else if ($event.key && $event.key.length === 1) {
  42290. this._keyPress$.next($event.key.toLocaleLowerCase());
  42291. }
  42292. }
  42293. /**
  42294. * @param {?} $event
  42295. * @return {?}
  42296. */
  42297. handleKeyCode($event) {
  42298. switch ($event.which) {
  42299. case KeyCode.ArrowDown:
  42300. this._handleArrowDown($event);
  42301. break;
  42302. case KeyCode.ArrowUp:
  42303. this._handleArrowUp($event);
  42304. break;
  42305. case KeyCode.Space:
  42306. this._handleSpace($event);
  42307. break;
  42308. case KeyCode.Enter:
  42309. this._handleEnter($event);
  42310. break;
  42311. case KeyCode.Tab:
  42312. this._handleTab($event);
  42313. break;
  42314. case KeyCode.Esc:
  42315. this.close();
  42316. $event.preventDefault();
  42317. break;
  42318. case KeyCode.Backspace:
  42319. this._handleBackspace();
  42320. break;
  42321. }
  42322. }
  42323. /**
  42324. * @param {?} $event
  42325. * @return {?}
  42326. */
  42327. handleMousedown($event) {
  42328. /** @type {?} */
  42329. const target = (/** @type {?} */ ($event.target));
  42330. if (target.tagName !== 'INPUT') {
  42331. $event.preventDefault();
  42332. }
  42333. if (target.classList.contains('ng-clear-wrapper')) {
  42334. this.handleClearClick();
  42335. return;
  42336. }
  42337. if (target.classList.contains('ng-arrow-wrapper')) {
  42338. this.handleArrowClick();
  42339. return;
  42340. }
  42341. if (target.classList.contains('ng-value-icon')) {
  42342. return;
  42343. }
  42344. if (!this.focused) {
  42345. this.focus();
  42346. }
  42347. if (this.searchable) {
  42348. this.open();
  42349. }
  42350. else {
  42351. this.toggle();
  42352. }
  42353. }
  42354. /**
  42355. * @return {?}
  42356. */
  42357. handleArrowClick() {
  42358. if (this.isOpen) {
  42359. this.close();
  42360. }
  42361. else {
  42362. this.open();
  42363. }
  42364. }
  42365. /**
  42366. * @return {?}
  42367. */
  42368. handleClearClick() {
  42369. if (this.hasValue) {
  42370. this.itemsList.clearSelected(true);
  42371. this._updateNgModel();
  42372. }
  42373. this._clearSearch();
  42374. this.focus();
  42375. this.clearEvent.emit();
  42376. this._onSelectionChanged();
  42377. }
  42378. /**
  42379. * @return {?}
  42380. */
  42381. clearModel() {
  42382. if (!this.clearable) {
  42383. return;
  42384. }
  42385. this.itemsList.clearSelected();
  42386. this._updateNgModel();
  42387. }
  42388. /**
  42389. * @param {?} value
  42390. * @return {?}
  42391. */
  42392. writeValue(value) {
  42393. this.itemsList.clearSelected();
  42394. this._handleWriteValue(value);
  42395. this._cd.markForCheck();
  42396. }
  42397. /**
  42398. * @param {?} fn
  42399. * @return {?}
  42400. */
  42401. registerOnChange(fn) {
  42402. this._onChange = fn;
  42403. }
  42404. /**
  42405. * @param {?} fn
  42406. * @return {?}
  42407. */
  42408. registerOnTouched(fn) {
  42409. this._onTouched = fn;
  42410. }
  42411. /**
  42412. * @param {?} state
  42413. * @return {?}
  42414. */
  42415. setDisabledState(state) {
  42416. this._disabled = state;
  42417. this._cd.markForCheck();
  42418. }
  42419. /**
  42420. * @return {?}
  42421. */
  42422. toggle() {
  42423. if (!this.isOpen) {
  42424. this.open();
  42425. }
  42426. else {
  42427. this.close();
  42428. }
  42429. }
  42430. /**
  42431. * @return {?}
  42432. */
  42433. open() {
  42434. if (this.disabled || this.isOpen || this.itemsList.maxItemsSelected || this._manualOpen) {
  42435. return;
  42436. }
  42437. if (!this._isTypeahead && !this.addTag && this.itemsList.noItemsToSelect) {
  42438. return;
  42439. }
  42440. this.isOpen = true;
  42441. this.itemsList.markSelectedOrDefault(this.markFirst);
  42442. this.openEvent.emit();
  42443. if (!this.searchTerm) {
  42444. this.focus();
  42445. }
  42446. this.detectChanges();
  42447. }
  42448. /**
  42449. * @return {?}
  42450. */
  42451. close() {
  42452. if (!this.isOpen || this._manualOpen) {
  42453. return;
  42454. }
  42455. this.isOpen = false;
  42456. this._isComposing = false;
  42457. if (!this._editableSearchTerm) {
  42458. this._clearSearch();
  42459. }
  42460. else {
  42461. this.itemsList.resetFilteredItems();
  42462. }
  42463. this.itemsList.unmarkItem();
  42464. this._onTouched();
  42465. this.closeEvent.emit();
  42466. this._cd.markForCheck();
  42467. }
  42468. /**
  42469. * @param {?} item
  42470. * @return {?}
  42471. */
  42472. toggleItem(item) {
  42473. if (!item || item.disabled || this.disabled) {
  42474. return;
  42475. }
  42476. if (this.multiple && item.selected) {
  42477. this.unselect(item);
  42478. }
  42479. else {
  42480. this.select(item);
  42481. }
  42482. if (this._editableSearchTerm) {
  42483. this._setSearchTermFromItems();
  42484. }
  42485. this._onSelectionChanged();
  42486. }
  42487. /**
  42488. * @param {?} item
  42489. * @return {?}
  42490. */
  42491. select(item) {
  42492. if (!item.selected) {
  42493. this.itemsList.select(item);
  42494. if (this.clearSearchOnAdd && !this._editableSearchTerm) {
  42495. this._clearSearch();
  42496. }
  42497. this._updateNgModel();
  42498. if (this.multiple) {
  42499. this.addEvent.emit(item.value);
  42500. }
  42501. }
  42502. if (this.closeOnSelect || this.itemsList.noItemsToSelect) {
  42503. this.close();
  42504. }
  42505. }
  42506. /**
  42507. * @return {?}
  42508. */
  42509. focus() {
  42510. this.searchInput.nativeElement.focus();
  42511. }
  42512. /**
  42513. * @return {?}
  42514. */
  42515. blur() {
  42516. this.searchInput.nativeElement.blur();
  42517. }
  42518. /**
  42519. * @param {?} item
  42520. * @return {?}
  42521. */
  42522. unselect(item) {
  42523. if (!item) {
  42524. return;
  42525. }
  42526. this.itemsList.unselect(item);
  42527. this.focus();
  42528. this._updateNgModel();
  42529. this.removeEvent.emit(item);
  42530. }
  42531. /**
  42532. * @return {?}
  42533. */
  42534. selectTag() {
  42535. /** @type {?} */
  42536. let tag;
  42537. if (isFunction(this.addTag)) {
  42538. tag = ((/** @type {?} */ (this.addTag)))(this.searchTerm);
  42539. }
  42540. else {
  42541. tag = this._primitive ? this.searchTerm : { [this.bindLabel]: this.searchTerm };
  42542. }
  42543. /** @type {?} */
  42544. const handleTag = (/**
  42545. * @param {?} item
  42546. * @return {?}
  42547. */
  42548. (item) => this._isTypeahead || !this.isOpen ? this.itemsList.mapItem(item, null) : this.itemsList.addItem(item));
  42549. if (isPromise(tag)) {
  42550. tag.then((/**
  42551. * @param {?} item
  42552. * @return {?}
  42553. */
  42554. item => this.select(handleTag(item)))).catch((/**
  42555. * @return {?}
  42556. */
  42557. () => { }));
  42558. }
  42559. else if (tag) {
  42560. this.select(handleTag(tag));
  42561. }
  42562. }
  42563. /**
  42564. * @return {?}
  42565. */
  42566. showClear() {
  42567. return this.clearable && (this.hasValue || this.searchTerm) && !this.disabled;
  42568. }
  42569. /**
  42570. * @return {?}
  42571. */
  42572. get showAddTag() {
  42573. if (!this._validTerm) {
  42574. return false;
  42575. }
  42576. /** @type {?} */
  42577. const term = this.searchTerm.toLowerCase().trim();
  42578. return this.addTag &&
  42579. (!this.itemsList.filteredItems.some((/**
  42580. * @param {?} x
  42581. * @return {?}
  42582. */
  42583. x => x.label.toLowerCase() === term)) &&
  42584. (!this.hideSelected && this.isOpen || !this.selectedItems.some((/**
  42585. * @param {?} x
  42586. * @return {?}
  42587. */
  42588. x => x.label.toLowerCase() === term)))) &&
  42589. !this.loading;
  42590. }
  42591. /**
  42592. * @return {?}
  42593. */
  42594. showNoItemsFound() {
  42595. /** @type {?} */
  42596. const empty = this.itemsList.filteredItems.length === 0;
  42597. return ((empty && !this._isTypeahead && !this.loading) ||
  42598. (empty && this._isTypeahead && this._validTerm && !this.loading)) &&
  42599. !this.showAddTag;
  42600. }
  42601. /**
  42602. * @return {?}
  42603. */
  42604. showTypeToSearch() {
  42605. /** @type {?} */
  42606. const empty = this.itemsList.filteredItems.length === 0;
  42607. return empty && this._isTypeahead && !this._validTerm && !this.loading;
  42608. }
  42609. /**
  42610. * @return {?}
  42611. */
  42612. onCompositionStart() {
  42613. this._isComposing = true;
  42614. }
  42615. /**
  42616. * @param {?} term
  42617. * @return {?}
  42618. */
  42619. onCompositionEnd(term) {
  42620. this._isComposing = false;
  42621. if (this.searchWhileComposing) {
  42622. return;
  42623. }
  42624. this.filter(term);
  42625. }
  42626. /**
  42627. * @param {?} term
  42628. * @return {?}
  42629. */
  42630. filter(term) {
  42631. if (this._isComposing && !this.searchWhileComposing) {
  42632. return;
  42633. }
  42634. this.searchTerm = term;
  42635. if (this._isTypeahead && (this._validTerm || this.minTermLength === 0)) {
  42636. this.typeahead.next(term);
  42637. }
  42638. if (!this._isTypeahead) {
  42639. this.itemsList.filter(this.searchTerm);
  42640. if (this.isOpen) {
  42641. this.itemsList.markSelectedOrDefault(this.markFirst);
  42642. }
  42643. }
  42644. this.searchEvent.emit({ term, items: this.itemsList.filteredItems.map((/**
  42645. * @param {?} x
  42646. * @return {?}
  42647. */
  42648. x => x.value)) });
  42649. this.open();
  42650. }
  42651. /**
  42652. * @param {?} $event
  42653. * @return {?}
  42654. */
  42655. onInputFocus($event) {
  42656. if (this.focused) {
  42657. return;
  42658. }
  42659. if (this._editableSearchTerm) {
  42660. this._setSearchTermFromItems();
  42661. }
  42662. this.element.classList.add('ng-select-focused');
  42663. this.focusEvent.emit($event);
  42664. this.focused = true;
  42665. }
  42666. /**
  42667. * @param {?} $event
  42668. * @return {?}
  42669. */
  42670. onInputBlur($event) {
  42671. this.element.classList.remove('ng-select-focused');
  42672. this.blurEvent.emit($event);
  42673. if (!this.isOpen && !this.disabled) {
  42674. this._onTouched();
  42675. }
  42676. if (this._editableSearchTerm) {
  42677. this._setSearchTermFromItems();
  42678. }
  42679. this.focused = false;
  42680. }
  42681. /**
  42682. * @param {?} item
  42683. * @return {?}
  42684. */
  42685. onItemHover(item) {
  42686. if (item.disabled) {
  42687. return;
  42688. }
  42689. this.itemsList.markItem(item);
  42690. }
  42691. /**
  42692. * @return {?}
  42693. */
  42694. detectChanges() {
  42695. if (!((/** @type {?} */ (this._cd))).destroyed) {
  42696. this._cd.detectChanges();
  42697. }
  42698. }
  42699. /**
  42700. * @private
  42701. * @return {?}
  42702. */
  42703. _setSearchTermFromItems() {
  42704. /** @type {?} */
  42705. const selected = this.selectedItems && this.selectedItems[0];
  42706. this.searchTerm = (selected && selected.label) || null;
  42707. }
  42708. /**
  42709. * @private
  42710. * @param {?} items
  42711. * @return {?}
  42712. */
  42713. _setItems(items) {
  42714. /** @type {?} */
  42715. const firstItem = items[0];
  42716. this.bindLabel = this.bindLabel || this._defaultLabel;
  42717. this._primitive = isDefined(firstItem) ? !isObject(firstItem) : this._primitive || this.bindLabel === this._defaultLabel;
  42718. this.itemsList.setItems(items);
  42719. if (items.length > 0 && this.hasValue) {
  42720. this.itemsList.mapSelectedItems();
  42721. }
  42722. if (this.isOpen && isDefined(this.searchTerm) && !this._isTypeahead) {
  42723. this.itemsList.filter(this.searchTerm);
  42724. }
  42725. if (this._isTypeahead || this.isOpen) {
  42726. this.itemsList.markSelectedOrDefault(this.markFirst);
  42727. }
  42728. }
  42729. /**
  42730. * @private
  42731. * @return {?}
  42732. */
  42733. _setItemsFromNgOptions() {
  42734. /** @type {?} */
  42735. const mapNgOptions = (/**
  42736. * @param {?} options
  42737. * @return {?}
  42738. */
  42739. (options) => {
  42740. this.items = options.map((/**
  42741. * @param {?} option
  42742. * @return {?}
  42743. */
  42744. option => ({
  42745. $ngOptionValue: option.value,
  42746. $ngOptionLabel: option.elementRef.nativeElement.innerHTML,
  42747. disabled: option.disabled
  42748. })));
  42749. this.itemsList.setItems(this.items);
  42750. if (this.hasValue) {
  42751. this.itemsList.mapSelectedItems();
  42752. }
  42753. this.detectChanges();
  42754. });
  42755. /** @type {?} */
  42756. const handleOptionChange = (/**
  42757. * @return {?}
  42758. */
  42759. () => {
  42760. /** @type {?} */
  42761. const changedOrDestroyed = Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["merge"])(this.ngOptions.changes, this._destroy$);
  42762. Object(rxjs__WEBPACK_IMPORTED_MODULE_3__["merge"])(...this.ngOptions.map((/**
  42763. * @param {?} option
  42764. * @return {?}
  42765. */
  42766. option => option.stateChange$)))
  42767. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["takeUntil"])(changedOrDestroyed))
  42768. .subscribe((/**
  42769. * @param {?} option
  42770. * @return {?}
  42771. */
  42772. option => {
  42773. /** @type {?} */
  42774. const item = this.itemsList.findItem(option.value);
  42775. item.disabled = option.disabled;
  42776. item.label = option.label || item.label;
  42777. this._cd.detectChanges();
  42778. }));
  42779. });
  42780. this.ngOptions.changes
  42781. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["startWith"])(this.ngOptions), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["takeUntil"])(this._destroy$))
  42782. .subscribe((/**
  42783. * @param {?} options
  42784. * @return {?}
  42785. */
  42786. options => {
  42787. this.bindLabel = this._defaultLabel;
  42788. mapNgOptions(options);
  42789. handleOptionChange();
  42790. }));
  42791. }
  42792. /**
  42793. * @private
  42794. * @param {?} value
  42795. * @return {?}
  42796. */
  42797. _isValidWriteValue(value) {
  42798. if (!isDefined(value) || (this.multiple && value === '') || Array.isArray(value) && value.length === 0) {
  42799. return false;
  42800. }
  42801. /** @type {?} */
  42802. const validateBinding = (/**
  42803. * @param {?} item
  42804. * @return {?}
  42805. */
  42806. (item) => {
  42807. if (!isDefined(this.compareWith) && isObject(item) && this.bindValue) {
  42808. this._console.warn(`Setting object(${JSON.stringify(item)}) as your model with bindValue is not allowed unless [compareWith] is used.`);
  42809. return false;
  42810. }
  42811. return true;
  42812. });
  42813. if (this.multiple) {
  42814. if (!Array.isArray(value)) {
  42815. this._console.warn('Multiple select ngModel should be array.');
  42816. return false;
  42817. }
  42818. return value.every((/**
  42819. * @param {?} item
  42820. * @return {?}
  42821. */
  42822. item => validateBinding(item)));
  42823. }
  42824. else {
  42825. return validateBinding(value);
  42826. }
  42827. }
  42828. /**
  42829. * @private
  42830. * @param {?} ngModel
  42831. * @return {?}
  42832. */
  42833. _handleWriteValue(ngModel) {
  42834. if (!this._isValidWriteValue(ngModel)) {
  42835. return;
  42836. }
  42837. /** @type {?} */
  42838. const select = (/**
  42839. * @param {?} val
  42840. * @return {?}
  42841. */
  42842. (val) => {
  42843. /** @type {?} */
  42844. let item = this.itemsList.findItem(val);
  42845. if (item) {
  42846. this.itemsList.select(item);
  42847. }
  42848. else {
  42849. /** @type {?} */
  42850. const isValObject = isObject(val);
  42851. /** @type {?} */
  42852. const isPrimitive = !isValObject && !this.bindValue;
  42853. if ((isValObject || isPrimitive)) {
  42854. this.itemsList.select(this.itemsList.mapItem(val, null));
  42855. }
  42856. else if (this.bindValue) {
  42857. item = {
  42858. [this.bindLabel]: null,
  42859. [this.bindValue]: val
  42860. };
  42861. this.itemsList.select(this.itemsList.mapItem(item, null));
  42862. }
  42863. }
  42864. });
  42865. if (this.multiple) {
  42866. ((/** @type {?} */ (ngModel))).forEach((/**
  42867. * @param {?} item
  42868. * @return {?}
  42869. */
  42870. item => select(item)));
  42871. }
  42872. else {
  42873. select(ngModel);
  42874. }
  42875. }
  42876. /**
  42877. * @private
  42878. * @return {?}
  42879. */
  42880. _handleKeyPresses() {
  42881. if (this.searchable) {
  42882. return;
  42883. }
  42884. this._keyPress$
  42885. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["takeUntil"])(this._destroy$), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["tap"])((/**
  42886. * @param {?} letter
  42887. * @return {?}
  42888. */
  42889. letter => this._pressedKeys.push(letter))), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["debounceTime"])(200), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])((/**
  42890. * @return {?}
  42891. */
  42892. () => this._pressedKeys.length > 0)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((/**
  42893. * @return {?}
  42894. */
  42895. () => this._pressedKeys.join(''))))
  42896. .subscribe((/**
  42897. * @param {?} term
  42898. * @return {?}
  42899. */
  42900. term => {
  42901. /** @type {?} */
  42902. const item = this.itemsList.findByLabel(term);
  42903. if (item) {
  42904. if (this.isOpen) {
  42905. this.itemsList.markItem(item);
  42906. this._cd.markForCheck();
  42907. }
  42908. else {
  42909. this.select(item);
  42910. }
  42911. }
  42912. this._pressedKeys = [];
  42913. }));
  42914. }
  42915. /**
  42916. * @private
  42917. * @return {?}
  42918. */
  42919. _setInputAttributes() {
  42920. /** @type {?} */
  42921. const input = this.searchInput.nativeElement;
  42922. /** @type {?} */
  42923. const attributes = Object.assign({ type: 'text', autocorrect: 'off', autocapitalize: 'off', autocomplete: this.labelForId ? 'off' : this.dropdownId }, this.inputAttrs);
  42924. for (const key of Object.keys(attributes)) {
  42925. input.setAttribute(key, attributes[key]);
  42926. }
  42927. }
  42928. /**
  42929. * @private
  42930. * @return {?}
  42931. */
  42932. _updateNgModel() {
  42933. /** @type {?} */
  42934. const model = [];
  42935. for (const item of this.selectedItems) {
  42936. if (this.bindValue) {
  42937. /** @type {?} */
  42938. let value = null;
  42939. if (item.children) {
  42940. /** @type {?} */
  42941. const groupKey = this.groupValue ? this.bindValue : (/** @type {?} */ (this.groupBy));
  42942. value = item.value[groupKey || (/** @type {?} */ (this.groupBy))];
  42943. }
  42944. else {
  42945. value = this.itemsList.resolveNested(item.value, this.bindValue);
  42946. }
  42947. model.push(value);
  42948. }
  42949. else {
  42950. model.push(item.value);
  42951. }
  42952. }
  42953. /** @type {?} */
  42954. const selected = this.selectedItems.map((/**
  42955. * @param {?} x
  42956. * @return {?}
  42957. */
  42958. x => x.value));
  42959. if (this.multiple) {
  42960. this._onChange(model);
  42961. this.changeEvent.emit(selected);
  42962. }
  42963. else {
  42964. this._onChange(isDefined(model[0]) ? model[0] : null);
  42965. this.changeEvent.emit(selected[0]);
  42966. }
  42967. this._cd.markForCheck();
  42968. }
  42969. /**
  42970. * @private
  42971. * @return {?}
  42972. */
  42973. _clearSearch() {
  42974. if (!this.searchTerm) {
  42975. return;
  42976. }
  42977. this._changeSearch(null);
  42978. this.itemsList.resetFilteredItems();
  42979. }
  42980. /**
  42981. * @private
  42982. * @param {?} searchTerm
  42983. * @return {?}
  42984. */
  42985. _changeSearch(searchTerm) {
  42986. this.searchTerm = searchTerm;
  42987. if (this._isTypeahead) {
  42988. this.typeahead.next(searchTerm);
  42989. }
  42990. }
  42991. /**
  42992. * @private
  42993. * @return {?}
  42994. */
  42995. _scrollToMarked() {
  42996. if (!this.isOpen || !this.dropdownPanel) {
  42997. return;
  42998. }
  42999. this.dropdownPanel.scrollTo(this.itemsList.markedItem);
  43000. }
  43001. /**
  43002. * @private
  43003. * @return {?}
  43004. */
  43005. _scrollToTag() {
  43006. if (!this.isOpen || !this.dropdownPanel) {
  43007. return;
  43008. }
  43009. this.dropdownPanel.scrollToTag();
  43010. }
  43011. /**
  43012. * @private
  43013. * @return {?}
  43014. */
  43015. _onSelectionChanged() {
  43016. if (this.isOpen && this.multiple && this.appendTo) {
  43017. // Make sure items are rendered.
  43018. this._cd.detectChanges();
  43019. this.dropdownPanel.adjustPosition();
  43020. }
  43021. }
  43022. /**
  43023. * @private
  43024. * @param {?} $event
  43025. * @return {?}
  43026. */
  43027. _handleTab($event) {
  43028. if (this.isOpen === false && !this.addTag) {
  43029. return;
  43030. }
  43031. if (this.selectOnTab) {
  43032. if (this.itemsList.markedItem) {
  43033. this.toggleItem(this.itemsList.markedItem);
  43034. $event.preventDefault();
  43035. }
  43036. else if (this.showAddTag) {
  43037. this.selectTag();
  43038. $event.preventDefault();
  43039. }
  43040. else {
  43041. this.close();
  43042. }
  43043. }
  43044. else {
  43045. this.close();
  43046. }
  43047. }
  43048. /**
  43049. * @private
  43050. * @param {?} $event
  43051. * @return {?}
  43052. */
  43053. _handleEnter($event) {
  43054. if (this.isOpen || this._manualOpen) {
  43055. if (this.itemsList.markedItem) {
  43056. this.toggleItem(this.itemsList.markedItem);
  43057. }
  43058. else if (this.showAddTag) {
  43059. this.selectTag();
  43060. }
  43061. }
  43062. else if (this.openOnEnter) {
  43063. this.open();
  43064. }
  43065. else {
  43066. return;
  43067. }
  43068. $event.preventDefault();
  43069. }
  43070. /**
  43071. * @private
  43072. * @param {?} $event
  43073. * @return {?}
  43074. */
  43075. _handleSpace($event) {
  43076. if (this.isOpen || this._manualOpen) {
  43077. return;
  43078. }
  43079. this.open();
  43080. $event.preventDefault();
  43081. }
  43082. /**
  43083. * @private
  43084. * @param {?} $event
  43085. * @return {?}
  43086. */
  43087. _handleArrowDown($event) {
  43088. if (this._nextItemIsTag(+1)) {
  43089. this.itemsList.unmarkItem();
  43090. this._scrollToTag();
  43091. }
  43092. else {
  43093. this.itemsList.markNextItem();
  43094. this._scrollToMarked();
  43095. }
  43096. this.open();
  43097. $event.preventDefault();
  43098. }
  43099. /**
  43100. * @private
  43101. * @param {?} $event
  43102. * @return {?}
  43103. */
  43104. _handleArrowUp($event) {
  43105. if (!this.isOpen) {
  43106. return;
  43107. }
  43108. if (this._nextItemIsTag(-1)) {
  43109. this.itemsList.unmarkItem();
  43110. this._scrollToTag();
  43111. }
  43112. else {
  43113. this.itemsList.markPreviousItem();
  43114. this._scrollToMarked();
  43115. }
  43116. $event.preventDefault();
  43117. }
  43118. /**
  43119. * @private
  43120. * @param {?} nextStep
  43121. * @return {?}
  43122. */
  43123. _nextItemIsTag(nextStep) {
  43124. /** @type {?} */
  43125. const nextIndex = this.itemsList.markedIndex + nextStep;
  43126. return this.addTag && this.searchTerm
  43127. && this.itemsList.markedItem
  43128. && (nextIndex < 0 || nextIndex === this.itemsList.filteredItems.length);
  43129. }
  43130. /**
  43131. * @private
  43132. * @return {?}
  43133. */
  43134. _handleBackspace() {
  43135. if (this.searchTerm || !this.clearable || !this.clearOnBackspace || !this.hasValue) {
  43136. return;
  43137. }
  43138. if (this.multiple) {
  43139. this.unselect(this.itemsList.lastSelectedItem);
  43140. }
  43141. else {
  43142. this.clearModel();
  43143. }
  43144. }
  43145. /**
  43146. * @private
  43147. * @return {?}
  43148. */
  43149. get _isTypeahead() {
  43150. return this.typeahead && this.typeahead.observers.length > 0;
  43151. }
  43152. /**
  43153. * @private
  43154. * @return {?}
  43155. */
  43156. get _validTerm() {
  43157. /** @type {?} */
  43158. const term = this.searchTerm && this.searchTerm.trim();
  43159. return term && term.length >= this.minTermLength;
  43160. }
  43161. /**
  43162. * @private
  43163. * @param {?} config
  43164. * @return {?}
  43165. */
  43166. _mergeGlobalConfig(config) {
  43167. this.placeholder = this.placeholder || config.placeholder;
  43168. this.notFoundText = this.notFoundText || config.notFoundText;
  43169. this.typeToSearchText = this.typeToSearchText || config.typeToSearchText;
  43170. this.addTagText = this.addTagText || config.addTagText;
  43171. this.loadingText = this.loadingText || config.loadingText;
  43172. this.clearAllText = this.clearAllText || config.clearAllText;
  43173. this.virtualScroll = isDefined(this.virtualScroll)
  43174. ? this.virtualScroll
  43175. : isDefined(config.disableVirtualScroll) ? !config.disableVirtualScroll : false;
  43176. this.openOnEnter = isDefined(this.openOnEnter) ? this.openOnEnter : config.openOnEnter;
  43177. this.appendTo = this.appendTo || config.appendTo;
  43178. this.bindValue = this.bindValue || config.bindValue;
  43179. this.appearance = this.appearance || config.appearance;
  43180. }
  43181. }
  43182. NgSelectComponent.ɵfac = function NgSelectComponent_Factory(t) { return new (t || NgSelectComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('class'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('autofocus'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgSelectConfig), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](SELECTION_MODEL_FACTORY), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](ConsoleService)); };
  43183. NgSelectComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: NgSelectComponent, selectors: [["ng-select"]], contentQueries: function NgSelectComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  43184. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgOptionTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43185. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgOptgroupTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43186. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgLabelTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43187. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgMultiLabelTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43188. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgHeaderTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43189. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgFooterTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43190. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgNotFoundTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43191. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgTypeToSearchTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43192. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgLoadingTextTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43193. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgTagTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43194. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgLoadingSpinnerTemplateDirective, true, _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]);
  43195. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵcontentQuery"](dirIndex, NgOptionComponent, true);
  43196. } if (rf & 2) {
  43197. let _t;
  43198. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.optionTemplate = _t.first);
  43199. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.optgroupTemplate = _t.first);
  43200. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.labelTemplate = _t.first);
  43201. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.multiLabelTemplate = _t.first);
  43202. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.headerTemplate = _t.first);
  43203. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.footerTemplate = _t.first);
  43204. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.notFoundTemplate = _t.first);
  43205. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.typeToSearchTemplate = _t.first);
  43206. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.loadingTextTemplate = _t.first);
  43207. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.tagTemplate = _t.first);
  43208. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.loadingSpinnerTemplate = _t.first);
  43209. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.ngOptions = _t);
  43210. } }, viewQuery: function NgSelectComponent_Query(rf, ctx) { if (rf & 1) {
  43211. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵviewQuery"](NgDropdownPanelComponent, true);
  43212. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵstaticViewQuery"](_c5, true);
  43213. } if (rf & 2) {
  43214. let _t;
  43215. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.dropdownPanel = _t.first);
  43216. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵloadQuery"]()) && (ctx.searchInput = _t.first);
  43217. } }, hostAttrs: ["role", "listbox"], hostVars: 20, hostBindings: function NgSelectComponent_HostBindings(rf, ctx) { if (rf & 1) {
  43218. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("keydown", function NgSelectComponent_keydown_HostBindingHandler($event) { return ctx.handleKeyDown($event); });
  43219. } if (rf & 2) {
  43220. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-select", ctx.useDefaultClass)("ng-select-single", !ctx.multiple)("ng-select-multiple", ctx.multiple)("ng-select-taggable", ctx.addTag)("ng-select-searchable", ctx.searchable)("ng-select-clearable", ctx.clearable)("ng-select-opened", ctx.isOpen)("ng-select-disabled", ctx.disabled)("ng-select-filtered", ctx.filtered)("ng-select-typeahead", ctx.typeahead);
  43221. } }, inputs: { markFirst: "markFirst", dropdownPosition: "dropdownPosition", loading: "loading", closeOnSelect: "closeOnSelect", hideSelected: "hideSelected", selectOnTab: "selectOnTab", bufferAmount: "bufferAmount", selectableGroup: "selectableGroup", selectableGroupAsModel: "selectableGroupAsModel", searchFn: "searchFn", trackByFn: "trackByFn", clearOnBackspace: "clearOnBackspace", labelForId: "labelForId", inputAttrs: "inputAttrs", readonly: "readonly", searchWhileComposing: "searchWhileComposing", minTermLength: "minTermLength", editableSearchTerm: "editableSearchTerm", keyDownFn: "keyDownFn", multiple: "multiple", addTag: "addTag", searchable: "searchable", clearable: "clearable", isOpen: "isOpen", items: "items", compareWith: "compareWith", clearSearchOnAdd: "clearSearchOnAdd", bindLabel: "bindLabel", placeholder: "placeholder", notFoundText: "notFoundText", typeToSearchText: "typeToSearchText", addTagText: "addTagText", loadingText: "loadingText", clearAllText: "clearAllText", virtualScroll: "virtualScroll", openOnEnter: "openOnEnter", appendTo: "appendTo", bindValue: "bindValue", appearance: "appearance", maxSelectedItems: "maxSelectedItems", groupBy: "groupBy", groupValue: "groupValue", tabIndex: "tabIndex", typeahead: "typeahead" }, outputs: { blurEvent: "blur", focusEvent: "focus", changeEvent: "change", openEvent: "open", closeEvent: "close", searchEvent: "search", clearEvent: "clear", addEvent: "add", removeEvent: "remove", scroll: "scroll", scrollToEnd: "scrollToEnd" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{
  43222. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NG_VALUE_ACCESSOR"],
  43223. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(( /**
  43224. * @return {?}
  43225. */() => NgSelectComponent)),
  43226. multi: true
  43227. }, NgDropdownPanelService]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]], decls: 14, vars: 18, consts: [[1, "ng-select-container", 3, "mousedown"], [1, "ng-value-container"], [1, "ng-placeholder"], [4, "ngIf"], [1, "ng-input"], ["role", "combobox", 3, "readOnly", "disabled", "value", "input", "compositionstart", "compositionend", "focus", "blur", "change"], ["searchInput", ""], ["class", "ng-clear-wrapper", 3, "title", 4, "ngIf"], [1, "ng-arrow-wrapper"], [1, "ng-arrow"], ["class", "ng-dropdown-panel", 3, "virtualScroll", "bufferAmount", "appendTo", "position", "headerTemplate", "footerTemplate", "filterValue", "items", "markedItem", "ng-select-multiple", "ngClass", "id", "update", "scroll", "scrollToEnd", "outsideClick", 4, "ngIf"], ["class", "ng-value", 3, "ng-value-disabled", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "ng-value"], ["defaultLabelTemplate", ""], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["aria-hidden", "true", 1, "ng-value-icon", "left", 3, "click"], [1, "ng-value-label", 3, "ngItemLabel", "escape"], ["defaultLoadingSpinnerTemplate", ""], [3, "ngTemplateOutlet"], [1, "ng-spinner-loader"], [1, "ng-clear-wrapper", 3, "title"], ["aria-hidden", "true", 1, "ng-clear"], [1, "ng-dropdown-panel", 3, "virtualScroll", "bufferAmount", "appendTo", "position", "headerTemplate", "footerTemplate", "filterValue", "items", "markedItem", "ngClass", "id", "update", "scroll", "scrollToEnd", "outsideClick"], ["class", "ng-option", 3, "ng-option-disabled", "ng-option-selected", "ng-optgroup", "ng-option", "ng-option-child", "ng-option-marked", "click", "mouseover", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "ng-option", "role", "option", 3, "ng-option-marked", "mouseover", "click", 4, "ngIf"], [1, "ng-option", 3, "click", "mouseover"], ["defaultOptionTemplate", ""], [1, "ng-option-label", 3, "ngItemLabel", "escape"], ["role", "option", 1, "ng-option", 3, "mouseover", "click"], ["defaultTagTemplate", ""], [1, "ng-tag-label"], ["defaultNotFoundTemplate", ""], [1, "ng-option", "ng-option-disabled"], ["defaultTypeToSearchTemplate", ""], ["defaultLoadingTextTemplate", ""]], template: function NgSelectComponent_Template(rf, ctx) { if (rf & 1) {
  43228. const _r52 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
  43229. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0);
  43230. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("mousedown", function NgSelectComponent_Template_div_mousedown_0_listener($event) { return ctx.handleMousedown($event); });
  43231. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "div", 1);
  43232. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](2, "div", 2);
  43233. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
  43234. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  43235. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](4, NgSelectComponent_ng_container_4_Template, 2, 2, "ng-container", 3);
  43236. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](5, NgSelectComponent_5_Template, 1, 5, undefined, 3);
  43237. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](6, "div", 4);
  43238. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](7, "input", 5, 6);
  43239. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("input", function NgSelectComponent_Template_input_input_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r52); const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](8); return ctx.filter(_r2.value); })("compositionstart", function NgSelectComponent_Template_input_compositionstart_7_listener() { return ctx.onCompositionStart(); })("compositionend", function NgSelectComponent_Template_input_compositionend_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r52); const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵreference"](8); return ctx.onCompositionEnd(_r2.value); })("focus", function NgSelectComponent_Template_input_focus_7_listener($event) { return ctx.onInputFocus($event); })("blur", function NgSelectComponent_Template_input_blur_7_listener($event) { return ctx.onInputBlur($event); })("change", function NgSelectComponent_Template_input_change_7_listener($event) { return $event.stopPropagation(); });
  43240. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  43241. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  43242. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  43243. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](9, NgSelectComponent_ng_container_9_Template, 4, 1, "ng-container", 3);
  43244. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](10, NgSelectComponent_span_10_Template, 3, 1, "span", 7);
  43245. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "span", 8);
  43246. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "span", 9);
  43247. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  43248. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
  43249. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](13, NgSelectComponent_ng_dropdown_panel_13_Template, 7, 19, "ng-dropdown-panel", 10);
  43250. } if (rf & 2) {
  43251. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵclassProp"]("ng-appearance-outline", ctx.appearance === "outline")("ng-has-value", ctx.hasValue);
  43252. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  43253. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](ctx.placeholder);
  43254. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  43255. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.multiLabelTemplate && ctx.selectedItems.length > 0);
  43256. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  43257. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.multiLabelTemplate && ctx.selectedValues.length > 0);
  43258. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  43259. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("readOnly", !ctx.searchable || ctx.itemsList.maxItemsSelected)("disabled", ctx.disabled)("value", ctx.searchTerm ? ctx.searchTerm : "");
  43260. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("id", ctx.labelForId)("tabindex", ctx.tabIndex)("aria-expanded", ctx.isOpen)("aria-owns", ctx.isOpen ? ctx.dropdownId : null)("aria-activedescendant", ctx.isOpen ? ctx.itemsList == null ? null : ctx.itemsList.markedItem == null ? null : ctx.itemsList.markedItem.htmlId : null);
  43261. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
  43262. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.loading);
  43263. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
  43264. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.showClear());
  43265. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
  43266. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.isOpen);
  43267. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_4__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgTemplateOutlet"], NgItemLabelDirective, NgDropdownPanelComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__["NgClass"]], styles: [".ng-select{display:block;position:relative}.ng-select,.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;user-select:none}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{background:none transparent;border:0;box-shadow:none;box-sizing:content-box;cursor:default;outline:none;padding:0;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;padding:0;user-select:none;width:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;position:absolute;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;user-select:none;width:17px}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{-webkit-animation:load8 .8s linear infinite;animation:load8 .8s linear infinite;border:2px solid rgba(66,66,66,.2);border-left-color:#424242;border-radius:50%;font-size:10px;height:17px;margin-right:5px;position:relative;text-indent:-9999em;transform:translateZ(0);width:17px}.ng-select .ng-spinner-loader:after{border-radius:50%;height:17px;width:17px}@-webkit-keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ng-select .ng-arrow-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;text-align:center;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;pointer-events:none;position:relative;width:0}.ng-dropdown-panel{-webkit-overflow-scrolling:touch;box-sizing:border-box;opacity:0;position:absolute;width:100%;z-index:1050}.ng-dropdown-panel .ng-dropdown-panel-items{box-sizing:border-box;display:block;height:auto;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{-webkit-overflow-scrolling:touch;display:block;overflow:hidden;overflow-y:auto;position:relative}.ng-dropdown-panel .scrollable-content{height:100%;left:0;position:absolute;top:0;width:100%}.ng-dropdown-panel .total-padding{opacity:0;width:1px}"], encapsulation: 2, changeDetection: 0 });
  43268. /** @nocollapse */
  43269. NgSelectComponent.ctorParameters = () => [
  43270. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"], args: ['class',] }] },
  43271. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"], args: ['autofocus',] }] },
  43272. { type: NgSelectConfig },
  43273. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [SELECTION_MODEL_FACTORY,] }] },
  43274. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  43275. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] },
  43276. { type: ConsoleService }
  43277. ];
  43278. NgSelectComponent.propDecorators = {
  43279. bindLabel: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43280. bindValue: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43281. markFirst: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43282. placeholder: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43283. notFoundText: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43284. typeToSearchText: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43285. addTagText: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43286. loadingText: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43287. clearAllText: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43288. appearance: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43289. dropdownPosition: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43290. appendTo: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43291. loading: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43292. closeOnSelect: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43293. hideSelected: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43294. selectOnTab: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43295. openOnEnter: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43296. maxSelectedItems: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43297. groupBy: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43298. groupValue: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43299. bufferAmount: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43300. virtualScroll: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43301. selectableGroup: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43302. selectableGroupAsModel: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43303. searchFn: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43304. trackByFn: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43305. clearOnBackspace: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43306. labelForId: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43307. inputAttrs: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43308. tabIndex: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43309. readonly: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43310. searchWhileComposing: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43311. minTermLength: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43312. editableSearchTerm: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43313. keyDownFn: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43314. typeahead: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.ng-select-typeahead',] }],
  43315. multiple: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.ng-select-multiple',] }],
  43316. addTag: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.ng-select-taggable',] }],
  43317. searchable: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.ng-select-searchable',] }],
  43318. clearable: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.ng-select-clearable',] }],
  43319. isOpen: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.ng-select-opened',] }],
  43320. items: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43321. compareWith: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43322. clearSearchOnAdd: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  43323. blurEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['blur',] }],
  43324. focusEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['focus',] }],
  43325. changeEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['change',] }],
  43326. openEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['open',] }],
  43327. closeEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['close',] }],
  43328. searchEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['search',] }],
  43329. clearEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['clear',] }],
  43330. addEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['add',] }],
  43331. removeEvent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['remove',] }],
  43332. scroll: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['scroll',] }],
  43333. scrollToEnd: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['scrollToEnd',] }],
  43334. optionTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgOptionTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43335. optgroupTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgOptgroupTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43336. labelTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgLabelTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43337. multiLabelTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgMultiLabelTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43338. headerTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgHeaderTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43339. footerTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgFooterTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43340. notFoundTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgNotFoundTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43341. typeToSearchTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgTypeToSearchTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43342. loadingTextTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgLoadingTextTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43343. tagTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgTagTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43344. loadingSpinnerTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"], args: [NgLoadingSpinnerTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },] }],
  43345. dropdownPanel: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])((/**
  43346. * @return {?}
  43347. */
  43348. () => NgDropdownPanelComponent)),] }],
  43349. searchInput: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"], args: ['searchInput', { static: true },] }],
  43350. ngOptions: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"], args: [NgOptionComponent, { descendants: true },] }],
  43351. disabled: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.ng-select-disabled',] }],
  43352. filtered: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"], args: ['class.ng-select-filtered',] }],
  43353. handleKeyDown: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"], args: ['keydown', ['$event'],] }]
  43354. };
  43355. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectComponent, [{
  43356. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"],
  43357. args: [{
  43358. selector: 'ng-select',
  43359. template: "<div\n (mousedown)=\"handleMousedown($event)\"\n [class.ng-appearance-outline]=\"appearance === 'outline'\"\n [class.ng-has-value]=\"hasValue\"\n class=\"ng-select-container\">\n\n <div class=\"ng-value-container\">\n <div class=\"ng-placeholder\">{{placeholder}}</div>\n\n <ng-container *ngIf=\"!multiLabelTemplate && selectedItems.length > 0\">\n <div [class.ng-value-disabled]=\"item.disabled\" class=\"ng-value\" *ngFor=\"let item of selectedItems; trackBy: trackByOption\">\n <ng-template #defaultLabelTemplate>\n <span class=\"ng-value-icon left\" (click)=\"unselect(item);\" aria-hidden=\"true\">\u00D7</span>\n <span class=\"ng-value-label\" [ngItemLabel]=\"item.label\" [escape]=\"escapeHTML\"></span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"labelTemplate || defaultLabelTemplate\"\n [ngTemplateOutletContext]=\"{ item: item.value, clear: clearItem, label: item.label }\">\n </ng-template>\n </div>\n </ng-container>\n\n <ng-template *ngIf=\"multiLabelTemplate && selectedValues.length > 0\"\n [ngTemplateOutlet]=\"multiLabelTemplate\"\n [ngTemplateOutletContext]=\"{ items: selectedValues, clear: clearItem }\">\n </ng-template>\n\n <div class=\"ng-input\">\n <input #searchInput\n [attr.id]=\"labelForId\"\n [attr.tabindex]=\"tabIndex\"\n [readOnly]=\"!searchable || itemsList.maxItemsSelected\"\n [disabled]=\"disabled\"\n [value]=\"searchTerm ? searchTerm : ''\"\n (input)=\"filter(searchInput.value)\"\n (compositionstart)=\"onCompositionStart()\"\n (compositionend)=\"onCompositionEnd(searchInput.value)\"\n (focus)=\"onInputFocus($event)\"\n (blur)=\"onInputBlur($event)\"\n (change)=\"$event.stopPropagation()\"\n role=\"combobox\"\n [attr.aria-expanded]=\"isOpen\"\n [attr.aria-owns]=\"isOpen ? dropdownId : null\"\n [attr.aria-activedescendant]=\"isOpen ? itemsList?.markedItem?.htmlId : null\">\n </div>\n </div>\n\n <ng-container *ngIf=\"loading\">\n <ng-template #defaultLoadingSpinnerTemplate>\n <div class=\"ng-spinner-loader\"></div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"loadingSpinnerTemplate || defaultLoadingSpinnerTemplate\">\n </ng-template>\n </ng-container>\n\n <span *ngIf=\"showClear()\" class=\"ng-clear-wrapper\" title=\"{{clearAllText}}\">\n <span class=\"ng-clear\" aria-hidden=\"true\">\u00D7</span>\n </span>\n\n <span class=\"ng-arrow-wrapper\">\n <span class=\"ng-arrow\"></span>\n </span>\n</div>\n\n<ng-dropdown-panel *ngIf=\"isOpen\"\n class=\"ng-dropdown-panel\"\n [virtualScroll]=\"virtualScroll\"\n [bufferAmount]=\"bufferAmount\"\n [appendTo]=\"appendTo\"\n [position]=\"dropdownPosition\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n [filterValue]=\"searchTerm\"\n [items]=\"itemsList.filteredItems\"\n [markedItem]=\"itemsList.markedItem\"\n (update)=\"viewPortItems = $event\"\n (scroll)=\"scroll.emit($event)\"\n (scrollToEnd)=\"scrollToEnd.emit($event)\"\n (outsideClick)=\"close()\"\n [class.ng-select-multiple]=\"multiple\"\n [ngClass]=\"appendTo ? classes : null\"\n [id]=\"dropdownId\">\n\n <ng-container>\n <div class=\"ng-option\" [attr.role]=\"item.children ? 'group' : 'option'\" (click)=\"toggleItem(item)\" (mouseover)=\"onItemHover(item)\"\n *ngFor=\"let item of viewPortItems; trackBy: trackByOption\"\n [class.ng-option-disabled]=\"item.disabled\"\n [class.ng-option-selected]=\"item.selected\"\n [class.ng-optgroup]=\"item.children\"\n [class.ng-option]=\"!item.children\"\n [class.ng-option-child]=\"!!item.parent\"\n [class.ng-option-marked]=\"item === itemsList.markedItem\"\n [attr.aria-selected]=\"item.selected\"\n [attr.id]=\"item?.htmlId\">\n\n <ng-template #defaultOptionTemplate>\n <span class=\"ng-option-label\" [ngItemLabel]=\"item.label\" [escape]=\"escapeHTML\"></span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"item.children ? (optgroupTemplate || defaultOptionTemplate) : (optionTemplate || defaultOptionTemplate)\"\n [ngTemplateOutletContext]=\"{ item: item.value, item$:item, index: item.index, searchTerm: searchTerm }\">\n </ng-template>\n </div>\n\n <div class=\"ng-option\" [class.ng-option-marked]=\"!itemsList.markedItem\" (mouseover)=\"itemsList.unmarkItem()\" role=\"option\" (click)=\"selectTag()\" *ngIf=\"showAddTag\">\n <ng-template #defaultTagTemplate>\n <span><span class=\"ng-tag-label\">{{addTagText}}</span>\"{{searchTerm}}\"</span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"tagTemplate || defaultTagTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showNoItemsFound()\">\n <ng-template #defaultNotFoundTemplate>\n <div class=\"ng-option ng-option-disabled\">{{notFoundText}}</div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"notFoundTemplate || defaultNotFoundTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"showTypeToSearch()\">\n <ng-template #defaultTypeToSearchTemplate>\n <div class=\"ng-option ng-option-disabled\">{{typeToSearchText}}</div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"typeToSearchTemplate || defaultTypeToSearchTemplate\">\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"loading && itemsList.filteredItems.length === 0\">\n <ng-template #defaultLoadingTextTemplate>\n <div class=\"ng-option ng-option-disabled\">{{loadingText}}</div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"loadingTextTemplate || defaultLoadingTextTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: searchTerm }\">\n </ng-template>\n </ng-container>\n\n</ng-dropdown-panel>\n",
  43360. providers: [{
  43361. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NG_VALUE_ACCESSOR"],
  43362. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(( /**
  43363. * @return {?}
  43364. */() => NgSelectComponent)),
  43365. multi: true
  43366. }, NgDropdownPanelService],
  43367. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
  43368. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectionStrategy"].OnPush,
  43369. host: {
  43370. 'role': 'listbox',
  43371. '[class.ng-select]': 'useDefaultClass',
  43372. '[class.ng-select-single]': '!multiple'
  43373. },
  43374. styles: [".ng-select{display:block;position:relative}.ng-select,.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;user-select:none}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{background:none transparent;border:0;box-shadow:none;box-sizing:content-box;cursor:default;outline:none;padding:0;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;padding:0;user-select:none;width:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;position:absolute;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;user-select:none;width:17px}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{-webkit-animation:load8 .8s linear infinite;animation:load8 .8s linear infinite;border:2px solid rgba(66,66,66,.2);border-left-color:#424242;border-radius:50%;font-size:10px;height:17px;margin-right:5px;position:relative;text-indent:-9999em;transform:translateZ(0);width:17px}.ng-select .ng-spinner-loader:after{border-radius:50%;height:17px;width:17px}@-webkit-keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ng-select .ng-arrow-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;text-align:center;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;pointer-events:none;position:relative;width:0}.ng-dropdown-panel{-webkit-overflow-scrolling:touch;box-sizing:border-box;opacity:0;position:absolute;width:100%;z-index:1050}.ng-dropdown-panel .ng-dropdown-panel-items{box-sizing:border-box;display:block;height:auto;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{-webkit-overflow-scrolling:touch;display:block;overflow:hidden;overflow-y:auto;position:relative}.ng-dropdown-panel .scrollable-content{height:100%;left:0;position:absolute;top:0;width:100%}.ng-dropdown-panel .total-padding{opacity:0;width:1px}"]
  43375. }]
  43376. }], function () { return [{ type: String, decorators: [{
  43377. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
  43378. args: ['class']
  43379. }] }, { type: undefined, decorators: [{
  43380. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
  43381. args: ['autofocus']
  43382. }] }, { type: NgSelectConfig }, { type: undefined, decorators: [{
  43383. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  43384. args: [SELECTION_MODEL_FACTORY]
  43385. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }, { type: ConsoleService }]; }, { markFirst: [{
  43386. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43387. }], dropdownPosition: [{
  43388. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43389. }], loading: [{
  43390. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43391. }], closeOnSelect: [{
  43392. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43393. }], hideSelected: [{
  43394. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43395. }], selectOnTab: [{
  43396. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43397. }], bufferAmount: [{
  43398. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43399. }], selectableGroup: [{
  43400. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43401. }], selectableGroupAsModel: [{
  43402. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43403. }], searchFn: [{
  43404. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43405. }], trackByFn: [{
  43406. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43407. }], clearOnBackspace: [{
  43408. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43409. }], labelForId: [{
  43410. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43411. }], inputAttrs: [{
  43412. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43413. }], readonly: [{
  43414. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43415. }], searchWhileComposing: [{
  43416. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43417. }], minTermLength: [{
  43418. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43419. }], editableSearchTerm: [{
  43420. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43421. }], keyDownFn: [{
  43422. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43423. }], multiple: [{
  43424. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43425. }, {
  43426. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  43427. args: ['class.ng-select-multiple']
  43428. }], addTag: [{
  43429. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43430. }, {
  43431. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  43432. args: ['class.ng-select-taggable']
  43433. }], searchable: [{
  43434. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43435. }, {
  43436. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  43437. args: ['class.ng-select-searchable']
  43438. }], clearable: [{
  43439. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43440. }, {
  43441. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  43442. args: ['class.ng-select-clearable']
  43443. }], isOpen: [{
  43444. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43445. }, {
  43446. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  43447. args: ['class.ng-select-opened']
  43448. }], blurEvent: [{
  43449. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43450. args: ['blur']
  43451. }], focusEvent: [{
  43452. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43453. args: ['focus']
  43454. }], changeEvent: [{
  43455. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43456. args: ['change']
  43457. }], openEvent: [{
  43458. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43459. args: ['open']
  43460. }], closeEvent: [{
  43461. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43462. args: ['close']
  43463. }], searchEvent: [{
  43464. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43465. args: ['search']
  43466. }], clearEvent: [{
  43467. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43468. args: ['clear']
  43469. }], addEvent: [{
  43470. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43471. args: ['add']
  43472. }], removeEvent: [{
  43473. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43474. args: ['remove']
  43475. }], scroll: [{
  43476. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43477. args: ['scroll']
  43478. }], scrollToEnd: [{
  43479. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  43480. args: ['scrollToEnd']
  43481. }], items: [{
  43482. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43483. }], compareWith: [{
  43484. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43485. }], clearSearchOnAdd: [{
  43486. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43487. }], disabled: [{
  43488. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  43489. args: ['class.ng-select-disabled']
  43490. }], filtered: [{
  43491. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  43492. args: ['class.ng-select-filtered']
  43493. }],
  43494. /**
  43495. * @param {?} $event
  43496. * @return {?}
  43497. */
  43498. handleKeyDown: [{
  43499. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"],
  43500. args: ['keydown', ['$event']]
  43501. }], bindLabel: [{
  43502. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43503. }], placeholder: [{
  43504. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43505. }], notFoundText: [{
  43506. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43507. }], typeToSearchText: [{
  43508. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43509. }], addTagText: [{
  43510. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43511. }], loadingText: [{
  43512. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43513. }], clearAllText: [{
  43514. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43515. }], virtualScroll: [{
  43516. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43517. }], openOnEnter: [{
  43518. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43519. }], appendTo: [{
  43520. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43521. }], bindValue: [{
  43522. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43523. }], appearance: [{
  43524. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43525. }], maxSelectedItems: [{
  43526. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43527. }], groupBy: [{
  43528. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43529. }], groupValue: [{
  43530. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43531. }], tabIndex: [{
  43532. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43533. }], typeahead: [{
  43534. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  43535. }, {
  43536. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"],
  43537. args: ['class.ng-select-typeahead']
  43538. }], optionTemplate: [{
  43539. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43540. args: [NgOptionTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43541. }], optgroupTemplate: [{
  43542. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43543. args: [NgOptgroupTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43544. }], labelTemplate: [{
  43545. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43546. args: [NgLabelTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43547. }], multiLabelTemplate: [{
  43548. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43549. args: [NgMultiLabelTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43550. }], headerTemplate: [{
  43551. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43552. args: [NgHeaderTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43553. }], footerTemplate: [{
  43554. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43555. args: [NgFooterTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43556. }], notFoundTemplate: [{
  43557. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43558. args: [NgNotFoundTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43559. }], typeToSearchTemplate: [{
  43560. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43561. args: [NgTypeToSearchTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43562. }], loadingTextTemplate: [{
  43563. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43564. args: [NgLoadingTextTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43565. }], tagTemplate: [{
  43566. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43567. args: [NgTagTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43568. }], loadingSpinnerTemplate: [{
  43569. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChild"],
  43570. args: [NgLoadingSpinnerTemplateDirective, { read: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]
  43571. }], dropdownPanel: [{
  43572. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  43573. args: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["forwardRef"])(( /**
  43574. * @return {?}
  43575. */() => NgDropdownPanelComponent))]
  43576. }], searchInput: [{
  43577. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"],
  43578. args: ['searchInput', { static: true }]
  43579. }], ngOptions: [{
  43580. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ContentChildren"],
  43581. args: [NgOptionComponent, { descendants: true }]
  43582. }] }); })();
  43583. if (false) {}
  43584. /**
  43585. * @fileoverview added by tsickle
  43586. * Generated from: lib/selection-model.ts
  43587. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  43588. */
  43589. /**
  43590. * @return {?}
  43591. */
  43592. function DefaultSelectionModelFactory() {
  43593. return new DefaultSelectionModel();
  43594. }
  43595. /**
  43596. * @record
  43597. */
  43598. function SelectionModel() { }
  43599. if (false) {}
  43600. class DefaultSelectionModel {
  43601. constructor() {
  43602. this._selected = [];
  43603. }
  43604. /**
  43605. * @return {?}
  43606. */
  43607. get value() {
  43608. return this._selected;
  43609. }
  43610. /**
  43611. * @param {?} item
  43612. * @param {?} multiple
  43613. * @param {?} groupAsModel
  43614. * @return {?}
  43615. */
  43616. select(item, multiple, groupAsModel) {
  43617. item.selected = true;
  43618. if (!item.children || (!multiple && groupAsModel)) {
  43619. this._selected.push(item);
  43620. }
  43621. if (multiple) {
  43622. if (item.parent) {
  43623. /** @type {?} */
  43624. const childrenCount = item.parent.children.length;
  43625. /** @type {?} */
  43626. const selectedCount = item.parent.children.filter((/**
  43627. * @param {?} x
  43628. * @return {?}
  43629. */
  43630. x => x.selected)).length;
  43631. item.parent.selected = childrenCount === selectedCount;
  43632. }
  43633. else if (item.children) {
  43634. this._setChildrenSelectedState(item.children, true);
  43635. this._removeChildren(item);
  43636. if (groupAsModel && this._activeChildren(item)) {
  43637. this._selected = [...this._selected.filter((/**
  43638. * @param {?} x
  43639. * @return {?}
  43640. */
  43641. x => x.parent !== item)), item];
  43642. }
  43643. else {
  43644. this._selected = [...this._selected, ...item.children.filter((/**
  43645. * @param {?} x
  43646. * @return {?}
  43647. */
  43648. x => !x.disabled))];
  43649. }
  43650. }
  43651. }
  43652. }
  43653. /**
  43654. * @param {?} item
  43655. * @param {?} multiple
  43656. * @return {?}
  43657. */
  43658. unselect(item, multiple) {
  43659. this._selected = this._selected.filter((/**
  43660. * @param {?} x
  43661. * @return {?}
  43662. */
  43663. x => x !== item));
  43664. item.selected = false;
  43665. if (multiple) {
  43666. if (item.parent && item.parent.selected) {
  43667. /** @type {?} */
  43668. const children = item.parent.children;
  43669. this._removeParent(item.parent);
  43670. this._removeChildren(item.parent);
  43671. this._selected.push(...children.filter((/**
  43672. * @param {?} x
  43673. * @return {?}
  43674. */
  43675. x => x !== item && !x.disabled)));
  43676. item.parent.selected = false;
  43677. }
  43678. else if (item.children) {
  43679. this._setChildrenSelectedState(item.children, false);
  43680. this._removeChildren(item);
  43681. }
  43682. }
  43683. }
  43684. /**
  43685. * @param {?} keepDisabled
  43686. * @return {?}
  43687. */
  43688. clear(keepDisabled) {
  43689. this._selected = keepDisabled ? this._selected.filter((/**
  43690. * @param {?} x
  43691. * @return {?}
  43692. */
  43693. x => x.disabled)) : [];
  43694. }
  43695. /**
  43696. * @private
  43697. * @param {?} children
  43698. * @param {?} selected
  43699. * @return {?}
  43700. */
  43701. _setChildrenSelectedState(children, selected) {
  43702. for (const child of children) {
  43703. if (child.disabled) {
  43704. continue;
  43705. }
  43706. child.selected = selected;
  43707. }
  43708. ;
  43709. }
  43710. /**
  43711. * @private
  43712. * @param {?} parent
  43713. * @return {?}
  43714. */
  43715. _removeChildren(parent) {
  43716. this._selected = [
  43717. ...this._selected.filter((/**
  43718. * @param {?} x
  43719. * @return {?}
  43720. */
  43721. x => x.parent !== parent)),
  43722. ...parent.children.filter((/**
  43723. * @param {?} x
  43724. * @return {?}
  43725. */
  43726. x => x.parent === parent && x.disabled && x.selected))
  43727. ];
  43728. }
  43729. /**
  43730. * @private
  43731. * @param {?} parent
  43732. * @return {?}
  43733. */
  43734. _removeParent(parent) {
  43735. this._selected = this._selected.filter((/**
  43736. * @param {?} x
  43737. * @return {?}
  43738. */
  43739. x => x !== parent));
  43740. }
  43741. /**
  43742. * @private
  43743. * @param {?} item
  43744. * @return {?}
  43745. */
  43746. _activeChildren(item) {
  43747. return item.children.every((/**
  43748. * @param {?} x
  43749. * @return {?}
  43750. */
  43751. x => !x.disabled || x.selected));
  43752. }
  43753. }
  43754. if (false) {}
  43755. /**
  43756. * @fileoverview added by tsickle
  43757. * Generated from: lib/ng-select.module.ts
  43758. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  43759. */
  43760. const ɵ0 = DefaultSelectionModelFactory;
  43761. class NgSelectModule {
  43762. }
  43763. NgSelectModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: NgSelectModule });
  43764. NgSelectModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function NgSelectModule_Factory(t) { return new (t || NgSelectModule)(); }, providers: [
  43765. { provide: SELECTION_MODEL_FACTORY, useValue: ɵ0 }
  43766. ], imports: [[
  43767. _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"]
  43768. ]] });
  43769. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](NgSelectModule, { declarations: function () { return [NgDropdownPanelComponent, NgOptionComponent, NgSelectComponent, NgOptgroupTemplateDirective, NgOptionTemplateDirective, NgLabelTemplateDirective, NgMultiLabelTemplateDirective, NgHeaderTemplateDirective, NgFooterTemplateDirective, NgNotFoundTemplateDirective, NgTypeToSearchTemplateDirective, NgLoadingTextTemplateDirective, NgTagTemplateDirective, NgLoadingSpinnerTemplateDirective, NgItemLabelDirective]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"]]; }, exports: function () { return [NgSelectComponent, NgOptionComponent, NgOptgroupTemplateDirective, NgOptionTemplateDirective, NgLabelTemplateDirective, NgMultiLabelTemplateDirective, NgHeaderTemplateDirective, NgFooterTemplateDirective, NgNotFoundTemplateDirective, NgTypeToSearchTemplateDirective, NgLoadingTextTemplateDirective, NgTagTemplateDirective, NgLoadingSpinnerTemplateDirective]; } }); })();
  43770. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSelectModule, [{
  43771. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  43772. args: [{
  43773. declarations: [
  43774. NgDropdownPanelComponent,
  43775. NgOptionComponent,
  43776. NgSelectComponent,
  43777. NgOptgroupTemplateDirective,
  43778. NgOptionTemplateDirective,
  43779. NgLabelTemplateDirective,
  43780. NgMultiLabelTemplateDirective,
  43781. NgHeaderTemplateDirective,
  43782. NgFooterTemplateDirective,
  43783. NgNotFoundTemplateDirective,
  43784. NgTypeToSearchTemplateDirective,
  43785. NgLoadingTextTemplateDirective,
  43786. NgTagTemplateDirective,
  43787. NgLoadingSpinnerTemplateDirective,
  43788. NgItemLabelDirective
  43789. ],
  43790. imports: [
  43791. _angular_common__WEBPACK_IMPORTED_MODULE_4__["CommonModule"]
  43792. ],
  43793. exports: [
  43794. NgSelectComponent,
  43795. NgOptionComponent,
  43796. NgOptgroupTemplateDirective,
  43797. NgOptionTemplateDirective,
  43798. NgLabelTemplateDirective,
  43799. NgMultiLabelTemplateDirective,
  43800. NgHeaderTemplateDirective,
  43801. NgFooterTemplateDirective,
  43802. NgNotFoundTemplateDirective,
  43803. NgTypeToSearchTemplateDirective,
  43804. NgLoadingTextTemplateDirective,
  43805. NgTagTemplateDirective,
  43806. NgLoadingSpinnerTemplateDirective
  43807. ],
  43808. providers: [
  43809. { provide: SELECTION_MODEL_FACTORY, useValue: ɵ0 }
  43810. ]
  43811. }]
  43812. }], null, null); })();
  43813. /**
  43814. * @fileoverview added by tsickle
  43815. * Generated from: public-api.ts
  43816. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  43817. */
  43818. /**
  43819. * @fileoverview added by tsickle
  43820. * Generated from: ng-select-ng-select.ts
  43821. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  43822. */
  43823. //# sourceMappingURL=ng-select-ng-select.js.map
  43824. /***/ }),
  43825. /***/ "ZUHj":
  43826. /*!***********************************************************************!*\
  43827. !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToResult.js ***!
  43828. \***********************************************************************/
  43829. /*! exports provided: subscribeToResult */
  43830. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43831. "use strict";
  43832. __webpack_require__.r(__webpack_exports__);
  43833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToResult", function() { return subscribeToResult; });
  43834. /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv");
  43835. /* harmony import */ var _subscribeTo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./subscribeTo */ "SeVD");
  43836. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Observable */ "HDdC");
  43837. function subscribeToResult(outerSubscriber, result, outerValue, outerIndex, innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_0__["InnerSubscriber"](outerSubscriber, outerValue, outerIndex)) {
  43838. if (innerSubscriber.closed) {
  43839. return undefined;
  43840. }
  43841. if (result instanceof _Observable__WEBPACK_IMPORTED_MODULE_2__["Observable"]) {
  43842. return result.subscribe(innerSubscriber);
  43843. }
  43844. return Object(_subscribeTo__WEBPACK_IMPORTED_MODULE_1__["subscribeTo"])(result)(innerSubscriber);
  43845. }
  43846. //# sourceMappingURL=subscribeToResult.js.map
  43847. /***/ }),
  43848. /***/ "Zy1z":
  43849. /*!*******************************************************************!*\
  43850. !*** ./node_modules/rxjs/_esm2015/internal/operators/pairwise.js ***!
  43851. \*******************************************************************/
  43852. /*! exports provided: pairwise */
  43853. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43854. "use strict";
  43855. __webpack_require__.r(__webpack_exports__);
  43856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pairwise", function() { return pairwise; });
  43857. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  43858. function pairwise() {
  43859. return (source) => source.lift(new PairwiseOperator());
  43860. }
  43861. class PairwiseOperator {
  43862. call(subscriber, source) {
  43863. return source.subscribe(new PairwiseSubscriber(subscriber));
  43864. }
  43865. }
  43866. class PairwiseSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  43867. constructor(destination) {
  43868. super(destination);
  43869. this.hasPrev = false;
  43870. }
  43871. _next(value) {
  43872. let pair;
  43873. if (this.hasPrev) {
  43874. pair = [this.prev, value];
  43875. }
  43876. else {
  43877. this.hasPrev = true;
  43878. }
  43879. this.prev = value;
  43880. if (pair) {
  43881. this.destination.next(pair);
  43882. }
  43883. }
  43884. }
  43885. //# sourceMappingURL=pairwise.js.map
  43886. /***/ }),
  43887. /***/ "Zyez":
  43888. /*!************************************************************************!*\
  43889. !*** ./node_modules/rxjs/_esm2015/internal/operators/sequenceEqual.js ***!
  43890. \************************************************************************/
  43891. /*! exports provided: sequenceEqual, SequenceEqualOperator, SequenceEqualSubscriber */
  43892. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  43893. "use strict";
  43894. __webpack_require__.r(__webpack_exports__);
  43895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sequenceEqual", function() { return sequenceEqual; });
  43896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceEqualOperator", function() { return SequenceEqualOperator; });
  43897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SequenceEqualSubscriber", function() { return SequenceEqualSubscriber; });
  43898. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  43899. function sequenceEqual(compareTo, comparator) {
  43900. return (source) => source.lift(new SequenceEqualOperator(compareTo, comparator));
  43901. }
  43902. class SequenceEqualOperator {
  43903. constructor(compareTo, comparator) {
  43904. this.compareTo = compareTo;
  43905. this.comparator = comparator;
  43906. }
  43907. call(subscriber, source) {
  43908. return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparator));
  43909. }
  43910. }
  43911. class SequenceEqualSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  43912. constructor(destination, compareTo, comparator) {
  43913. super(destination);
  43914. this.compareTo = compareTo;
  43915. this.comparator = comparator;
  43916. this._a = [];
  43917. this._b = [];
  43918. this._oneComplete = false;
  43919. this.destination.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, this)));
  43920. }
  43921. _next(value) {
  43922. if (this._oneComplete && this._b.length === 0) {
  43923. this.emit(false);
  43924. }
  43925. else {
  43926. this._a.push(value);
  43927. this.checkValues();
  43928. }
  43929. }
  43930. _complete() {
  43931. if (this._oneComplete) {
  43932. this.emit(this._a.length === 0 && this._b.length === 0);
  43933. }
  43934. else {
  43935. this._oneComplete = true;
  43936. }
  43937. this.unsubscribe();
  43938. }
  43939. checkValues() {
  43940. const { _a, _b, comparator } = this;
  43941. while (_a.length > 0 && _b.length > 0) {
  43942. let a = _a.shift();
  43943. let b = _b.shift();
  43944. let areEqual = false;
  43945. try {
  43946. areEqual = comparator ? comparator(a, b) : a === b;
  43947. }
  43948. catch (e) {
  43949. this.destination.error(e);
  43950. }
  43951. if (!areEqual) {
  43952. this.emit(false);
  43953. }
  43954. }
  43955. }
  43956. emit(value) {
  43957. const { destination } = this;
  43958. destination.next(value);
  43959. destination.complete();
  43960. }
  43961. nextB(value) {
  43962. if (this._oneComplete && this._a.length === 0) {
  43963. this.emit(false);
  43964. }
  43965. else {
  43966. this._b.push(value);
  43967. this.checkValues();
  43968. }
  43969. }
  43970. completeB() {
  43971. if (this._oneComplete) {
  43972. this.emit(this._a.length === 0 && this._b.length === 0);
  43973. }
  43974. else {
  43975. this._oneComplete = true;
  43976. }
  43977. }
  43978. }
  43979. class SequenceEqualCompareToSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  43980. constructor(destination, parent) {
  43981. super(destination);
  43982. this.parent = parent;
  43983. }
  43984. _next(value) {
  43985. this.parent.nextB(value);
  43986. }
  43987. _error(err) {
  43988. this.parent.error(err);
  43989. this.unsubscribe();
  43990. }
  43991. _complete() {
  43992. this.parent.completeB();
  43993. this.unsubscribe();
  43994. }
  43995. }
  43996. //# sourceMappingURL=sequenceEqual.js.map
  43997. /***/ }),
  43998. /***/ "a7t3":
  43999. /*!************************************************************************!*\
  44000. !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToPromise.js ***!
  44001. \************************************************************************/
  44002. /*! exports provided: subscribeToPromise */
  44003. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44004. "use strict";
  44005. __webpack_require__.r(__webpack_exports__);
  44006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToPromise", function() { return subscribeToPromise; });
  44007. /* harmony import */ var _hostReportError__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./hostReportError */ "NJ4a");
  44008. const subscribeToPromise = (promise) => (subscriber) => {
  44009. promise.then((value) => {
  44010. if (!subscriber.closed) {
  44011. subscriber.next(value);
  44012. subscriber.complete();
  44013. }
  44014. }, (err) => subscriber.error(err))
  44015. .then(null, _hostReportError__WEBPACK_IMPORTED_MODULE_0__["hostReportError"]);
  44016. return subscriber;
  44017. };
  44018. //# sourceMappingURL=subscribeToPromise.js.map
  44019. /***/ }),
  44020. /***/ "aGrj":
  44021. /*!**********************************************************************!*\
  44022. !*** ./node_modules/rxjs/_esm2015/internal/operators/switchMapTo.js ***!
  44023. \**********************************************************************/
  44024. /*! exports provided: switchMapTo */
  44025. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44026. "use strict";
  44027. __webpack_require__.r(__webpack_exports__);
  44028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchMapTo", function() { return switchMapTo; });
  44029. /* harmony import */ var _switchMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./switchMap */ "eIep");
  44030. function switchMapTo(innerObservable, resultSelector) {
  44031. return resultSelector ? Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(() => innerObservable, resultSelector) : Object(_switchMap__WEBPACK_IMPORTED_MODULE_0__["switchMap"])(() => innerObservable);
  44032. }
  44033. //# sourceMappingURL=switchMapTo.js.map
  44034. /***/ }),
  44035. /***/ "bHdf":
  44036. /*!*******************************************************************!*\
  44037. !*** ./node_modules/rxjs/_esm2015/internal/operators/mergeAll.js ***!
  44038. \*******************************************************************/
  44039. /*! exports provided: mergeAll */
  44040. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44041. "use strict";
  44042. __webpack_require__.r(__webpack_exports__);
  44043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeAll", function() { return mergeAll; });
  44044. /* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeMap */ "5+tZ");
  44045. /* harmony import */ var _util_identity__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/identity */ "SpAZ");
  44046. function mergeAll(concurrent = Number.POSITIVE_INFINITY) {
  44047. return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(_util_identity__WEBPACK_IMPORTED_MODULE_1__["identity"], concurrent);
  44048. }
  44049. //# sourceMappingURL=mergeAll.js.map
  44050. /***/ }),
  44051. /***/ "bOdf":
  44052. /*!********************************************************************!*\
  44053. !*** ./node_modules/rxjs/_esm2015/internal/operators/concatMap.js ***!
  44054. \********************************************************************/
  44055. /*! exports provided: concatMap */
  44056. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44057. "use strict";
  44058. __webpack_require__.r(__webpack_exports__);
  44059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatMap", function() { return concatMap; });
  44060. /* harmony import */ var _mergeMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./mergeMap */ "5+tZ");
  44061. function concatMap(project, resultSelector) {
  44062. return Object(_mergeMap__WEBPACK_IMPORTED_MODULE_0__["mergeMap"])(project, resultSelector, 1);
  44063. }
  44064. //# sourceMappingURL=concatMap.js.map
  44065. /***/ }),
  44066. /***/ "c2HN":
  44067. /*!***************************************************************!*\
  44068. !*** ./node_modules/rxjs/_esm2015/internal/util/isPromise.js ***!
  44069. \***************************************************************/
  44070. /*! exports provided: isPromise */
  44071. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44072. "use strict";
  44073. __webpack_require__.r(__webpack_exports__);
  44074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPromise", function() { return isPromise; });
  44075. function isPromise(value) {
  44076. return !!value && typeof value.subscribe !== 'function' && typeof value.then === 'function';
  44077. }
  44078. //# sourceMappingURL=isPromise.js.map
  44079. /***/ }),
  44080. /***/ "c6ID":
  44081. /*!*****************************************************************!*\
  44082. !*** ./node_modules/rxjs/_esm2015/internal/operators/sample.js ***!
  44083. \*****************************************************************/
  44084. /*! exports provided: sample */
  44085. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44086. "use strict";
  44087. __webpack_require__.r(__webpack_exports__);
  44088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sample", function() { return sample; });
  44089. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  44090. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  44091. function sample(notifier) {
  44092. return (source) => source.lift(new SampleOperator(notifier));
  44093. }
  44094. class SampleOperator {
  44095. constructor(notifier) {
  44096. this.notifier = notifier;
  44097. }
  44098. call(subscriber, source) {
  44099. const sampleSubscriber = new SampleSubscriber(subscriber);
  44100. const subscription = source.subscribe(sampleSubscriber);
  44101. subscription.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(sampleSubscriber, this.notifier));
  44102. return subscription;
  44103. }
  44104. }
  44105. class SampleSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  44106. constructor() {
  44107. super(...arguments);
  44108. this.hasValue = false;
  44109. }
  44110. _next(value) {
  44111. this.value = value;
  44112. this.hasValue = true;
  44113. }
  44114. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  44115. this.emitValue();
  44116. }
  44117. notifyComplete() {
  44118. this.emitValue();
  44119. }
  44120. emitValue() {
  44121. if (this.hasValue) {
  44122. this.hasValue = false;
  44123. this.destination.next(this.value);
  44124. }
  44125. }
  44126. }
  44127. //# sourceMappingURL=sample.js.map
  44128. /***/ }),
  44129. /***/ "c7jc":
  44130. /*!***************************************************************!*\
  44131. !*** ./node_modules/rxjs/_esm2015/internal/util/Immediate.js ***!
  44132. \***************************************************************/
  44133. /*! exports provided: Immediate, TestTools */
  44134. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44135. "use strict";
  44136. __webpack_require__.r(__webpack_exports__);
  44137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Immediate", function() { return Immediate; });
  44138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TestTools", function() { return TestTools; });
  44139. let nextHandle = 1;
  44140. const RESOLVED = (() => Promise.resolve())();
  44141. const activeHandles = {};
  44142. function findAndClearHandle(handle) {
  44143. if (handle in activeHandles) {
  44144. delete activeHandles[handle];
  44145. return true;
  44146. }
  44147. return false;
  44148. }
  44149. const Immediate = {
  44150. setImmediate(cb) {
  44151. const handle = nextHandle++;
  44152. activeHandles[handle] = true;
  44153. RESOLVED.then(() => findAndClearHandle(handle) && cb());
  44154. return handle;
  44155. },
  44156. clearImmediate(handle) {
  44157. findAndClearHandle(handle);
  44158. },
  44159. };
  44160. const TestTools = {
  44161. pending() {
  44162. return Object.keys(activeHandles).length;
  44163. }
  44164. };
  44165. //# sourceMappingURL=Immediate.js.map
  44166. /***/ }),
  44167. /***/ "cBqT":
  44168. /*!***************************************************************!*\
  44169. !*** ./node_modules/rxjs/_esm2015/internal/operators/find.js ***!
  44170. \***************************************************************/
  44171. /*! exports provided: find, FindValueOperator, FindValueSubscriber */
  44172. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44173. "use strict";
  44174. __webpack_require__.r(__webpack_exports__);
  44175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "find", function() { return find; });
  44176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FindValueOperator", function() { return FindValueOperator; });
  44177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FindValueSubscriber", function() { return FindValueSubscriber; });
  44178. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  44179. function find(predicate, thisArg) {
  44180. if (typeof predicate !== 'function') {
  44181. throw new TypeError('predicate is not a function');
  44182. }
  44183. return (source) => source.lift(new FindValueOperator(predicate, source, false, thisArg));
  44184. }
  44185. class FindValueOperator {
  44186. constructor(predicate, source, yieldIndex, thisArg) {
  44187. this.predicate = predicate;
  44188. this.source = source;
  44189. this.yieldIndex = yieldIndex;
  44190. this.thisArg = thisArg;
  44191. }
  44192. call(observer, source) {
  44193. return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));
  44194. }
  44195. }
  44196. class FindValueSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  44197. constructor(destination, predicate, source, yieldIndex, thisArg) {
  44198. super(destination);
  44199. this.predicate = predicate;
  44200. this.source = source;
  44201. this.yieldIndex = yieldIndex;
  44202. this.thisArg = thisArg;
  44203. this.index = 0;
  44204. }
  44205. notifyComplete(value) {
  44206. const destination = this.destination;
  44207. destination.next(value);
  44208. destination.complete();
  44209. this.unsubscribe();
  44210. }
  44211. _next(value) {
  44212. const { predicate, thisArg } = this;
  44213. const index = this.index++;
  44214. try {
  44215. const result = predicate.call(thisArg || this, value, index, this.source);
  44216. if (result) {
  44217. this.notifyComplete(this.yieldIndex ? index : value);
  44218. }
  44219. }
  44220. catch (err) {
  44221. this.destination.error(err);
  44222. }
  44223. }
  44224. _complete() {
  44225. this.notifyComplete(this.yieldIndex ? -1 : undefined);
  44226. }
  44227. }
  44228. //# sourceMappingURL=find.js.map
  44229. /***/ }),
  44230. /***/ "cH1L":
  44231. /*!*****************************************************************!*\
  44232. !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/bidi.js ***!
  44233. \*****************************************************************/
  44234. /*! exports provided: BidiModule, DIR_DOCUMENT, Dir, Directionality, ɵangular_material_src_cdk_bidi_bidi_a */
  44235. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44236. "use strict";
  44237. __webpack_require__.r(__webpack_exports__);
  44238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BidiModule", function() { return BidiModule; });
  44239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DIR_DOCUMENT", function() { return DIR_DOCUMENT; });
  44240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Dir", function() { return Dir; });
  44241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Directionality", function() { return Directionality; });
  44242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_material_src_cdk_bidi_bidi_a", function() { return DIR_DOCUMENT_FACTORY; });
  44243. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  44244. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
  44245. /**
  44246. * @fileoverview added by tsickle
  44247. * Generated from: src/cdk/bidi/dir-document-token.ts
  44248. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  44249. */
  44250. /**
  44251. * Injection token used to inject the document into Directionality.
  44252. * This is used so that the value can be faked in tests.
  44253. *
  44254. * We can't use the real document in tests because changing the real `dir` causes geometry-based
  44255. * tests in Safari to fail.
  44256. *
  44257. * We also can't re-provide the DOCUMENT token from platform-brower because the unit tests
  44258. * themselves use things like `querySelector` in test code.
  44259. *
  44260. * This token is defined in a separate file from Directionality as a workaround for
  44261. * https://github.com/angular/angular/issues/22559
  44262. *
  44263. * \@docs-private
  44264. * @type {?}
  44265. */
  44266. const DIR_DOCUMENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('cdk-dir-doc', {
  44267. providedIn: 'root',
  44268. factory: DIR_DOCUMENT_FACTORY,
  44269. });
  44270. /**
  44271. * \@docs-private
  44272. * @return {?}
  44273. */
  44274. function DIR_DOCUMENT_FACTORY() {
  44275. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["inject"])(_angular_common__WEBPACK_IMPORTED_MODULE_1__["DOCUMENT"]);
  44276. }
  44277. /**
  44278. * @fileoverview added by tsickle
  44279. * Generated from: src/cdk/bidi/directionality.ts
  44280. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  44281. */
  44282. /**
  44283. * The directionality (LTR / RTL) context for the application (or a subtree of it).
  44284. * Exposes the current direction and a stream of direction changes.
  44285. */
  44286. class Directionality {
  44287. /**
  44288. * @param {?=} _document
  44289. */
  44290. constructor(_document) {
  44291. /**
  44292. * The current 'ltr' or 'rtl' value.
  44293. */
  44294. this.value = 'ltr';
  44295. /**
  44296. * Stream that emits whenever the 'ltr' / 'rtl' state changes.
  44297. */
  44298. this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  44299. if (_document) {
  44300. // TODO: handle 'auto' value -
  44301. // We still need to account for dir="auto".
  44302. // It looks like HTMLElemenet.dir is also "auto" when that's set to the attribute,
  44303. // but getComputedStyle return either "ltr" or "rtl". avoiding getComputedStyle for now
  44304. /** @type {?} */
  44305. const bodyDir = _document.body ? _document.body.dir : null;
  44306. /** @type {?} */
  44307. const htmlDir = _document.documentElement ? _document.documentElement.dir : null;
  44308. /** @type {?} */
  44309. const value = bodyDir || htmlDir;
  44310. this.value = (value === 'ltr' || value === 'rtl') ? value : 'ltr';
  44311. }
  44312. }
  44313. /**
  44314. * @return {?}
  44315. */
  44316. ngOnDestroy() {
  44317. this.change.complete();
  44318. }
  44319. }
  44320. Directionality.ɵfac = function Directionality_Factory(t) { return new (t || Directionality)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DIR_DOCUMENT, 8)); };
  44321. /** @nocollapse */
  44322. Directionality.ctorParameters = () => [
  44323. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [DIR_DOCUMENT,] }] }
  44324. ];
  44325. /** @nocollapse */ Directionality.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function Directionality_Factory() { return new Directionality(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DIR_DOCUMENT, 8)); }, token: Directionality, providedIn: "root" });
  44326. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Directionality, [{
  44327. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  44328. args: [{ providedIn: 'root' }]
  44329. }], function () { return [{ type: undefined, decorators: [{
  44330. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  44331. }, {
  44332. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  44333. args: [DIR_DOCUMENT]
  44334. }] }]; }, null); })();
  44335. if (false) {}
  44336. /**
  44337. * @fileoverview added by tsickle
  44338. * Generated from: src/cdk/bidi/dir.ts
  44339. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  44340. */
  44341. /**
  44342. * Directive to listen for changes of direction of part of the DOM.
  44343. *
  44344. * Provides itself as Directionality such that descendant directives only need to ever inject
  44345. * Directionality to get the closest direction.
  44346. */
  44347. class Dir {
  44348. constructor() {
  44349. /**
  44350. * Normalized direction that accounts for invalid/unsupported values.
  44351. */
  44352. this._dir = 'ltr';
  44353. /**
  44354. * Whether the `value` has been set to its initial value.
  44355. */
  44356. this._isInitialized = false;
  44357. /**
  44358. * Event emitted when the direction changes.
  44359. */
  44360. this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  44361. }
  44362. /**
  44363. * \@docs-private
  44364. * @return {?}
  44365. */
  44366. get dir() { return this._dir; }
  44367. /**
  44368. * @param {?} value
  44369. * @return {?}
  44370. */
  44371. set dir(value) {
  44372. /** @type {?} */
  44373. const old = this._dir;
  44374. /** @type {?} */
  44375. const normalizedValue = value ? value.toLowerCase() : value;
  44376. this._rawDir = value;
  44377. this._dir = (normalizedValue === 'ltr' || normalizedValue === 'rtl') ? normalizedValue : 'ltr';
  44378. if (old !== this._dir && this._isInitialized) {
  44379. this.change.emit(this._dir);
  44380. }
  44381. }
  44382. /**
  44383. * Current layout direction of the element.
  44384. * @return {?}
  44385. */
  44386. get value() { return this.dir; }
  44387. /**
  44388. * Initialize once default value has been set.
  44389. * @return {?}
  44390. */
  44391. ngAfterContentInit() {
  44392. this._isInitialized = true;
  44393. }
  44394. /**
  44395. * @return {?}
  44396. */
  44397. ngOnDestroy() {
  44398. this.change.complete();
  44399. }
  44400. }
  44401. Dir.ɵfac = function Dir_Factory(t) { return new (t || Dir)(); };
  44402. Dir.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: Dir, selectors: [["", "dir", ""]], hostVars: 1, hostBindings: function Dir_HostBindings(rf, ctx) { if (rf & 2) {
  44403. _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵattribute"]("dir", ctx._rawDir);
  44404. } }, inputs: { dir: "dir" }, outputs: { change: "dirChange" }, exportAs: ["dir"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵProvidersFeature"]([{ provide: Directionality, useExisting: Dir }])] });
  44405. Dir.propDecorators = {
  44406. change: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"], args: ['dirChange',] }],
  44407. dir: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  44408. };
  44409. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Dir, [{
  44410. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  44411. args: [{
  44412. selector: '[dir]',
  44413. providers: [{ provide: Directionality, useExisting: Dir }],
  44414. host: { '[attr.dir]': '_rawDir' },
  44415. exportAs: 'dir'
  44416. }]
  44417. }], function () { return []; }, { change: [{
  44418. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"],
  44419. args: ['dirChange']
  44420. }], dir: [{
  44421. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  44422. }] }); })();
  44423. if (false) {}
  44424. /**
  44425. * @fileoverview added by tsickle
  44426. * Generated from: src/cdk/bidi/bidi-module.ts
  44427. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  44428. */
  44429. class BidiModule {
  44430. }
  44431. BidiModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: BidiModule });
  44432. BidiModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function BidiModule_Factory(t) { return new (t || BidiModule)(); } });
  44433. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](BidiModule, { declarations: [Dir], exports: [Dir] }); })();
  44434. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BidiModule, [{
  44435. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  44436. args: [{
  44437. exports: [Dir],
  44438. declarations: [Dir]
  44439. }]
  44440. }], null, null); })();
  44441. /**
  44442. * @fileoverview added by tsickle
  44443. * Generated from: src/cdk/bidi/public-api.ts
  44444. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  44445. */
  44446. /**
  44447. * Generated bundle index. Do not edit.
  44448. */
  44449. //# sourceMappingURL=bidi.js.map
  44450. /***/ }),
  44451. /***/ "cfqv":
  44452. /*!***********************************************************************************!*\
  44453. !*** ./node_modules/@angular/cdk-experimental/__ivy_ngcc__/fesm2015/scrolling.js ***!
  44454. \***********************************************************************************/
  44455. /*! exports provided: AutoSizeVirtualScrollStrategy, CdkAutoSizeVirtualScroll, ItemSizeAverager, ScrollingModule, _autoSizeVirtualScrollStrategyFactory */
  44456. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  44457. "use strict";
  44458. __webpack_require__.r(__webpack_exports__);
  44459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AutoSizeVirtualScrollStrategy", function() { return AutoSizeVirtualScrollStrategy; });
  44460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CdkAutoSizeVirtualScroll", function() { return CdkAutoSizeVirtualScroll; });
  44461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ItemSizeAverager", function() { return ItemSizeAverager; });
  44462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScrollingModule", function() { return ScrollingModule; });
  44463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_autoSizeVirtualScrollStrategyFactory", function() { return _autoSizeVirtualScrollStrategyFactory; });
  44464. /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/cdk/coercion */ "8LU1");
  44465. /* harmony import */ var _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/scrolling */ "vxfF");
  44466. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ "fXoL");
  44467. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "qCKp");
  44468. /**
  44469. * @fileoverview added by tsickle
  44470. * Generated from: src/cdk-experimental/scrolling/auto-size-virtual-scroll.ts
  44471. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  44472. */
  44473. /**
  44474. * A class that tracks the size of items that have been seen and uses it to estimate the average
  44475. * item size.
  44476. */
  44477. class ItemSizeAverager {
  44478. /**
  44479. * @param {?=} defaultItemSize The default size to use for items when no data is available.
  44480. */
  44481. constructor(defaultItemSize = 50) {
  44482. /**
  44483. * The total amount of weight behind the current average.
  44484. */
  44485. this._totalWeight = 0;
  44486. this._defaultItemSize = defaultItemSize;
  44487. this._averageItemSize = defaultItemSize;
  44488. }
  44489. /**
  44490. * Returns the average item size.
  44491. * @return {?}
  44492. */
  44493. getAverageItemSize() {
  44494. return this._averageItemSize;
  44495. }
  44496. /**
  44497. * Adds a measurement sample for the estimator to consider.
  44498. * @param {?} range The measured range.
  44499. * @param {?} size The measured size of the given range in pixels.
  44500. * @return {?}
  44501. */
  44502. addSample(range, size) {
  44503. /** @type {?} */
  44504. const newTotalWeight = this._totalWeight + range.end - range.start;
  44505. if (newTotalWeight) {
  44506. /** @type {?} */
  44507. const newAverageItemSize = (size + this._averageItemSize * this._totalWeight) / newTotalWeight;
  44508. if (newAverageItemSize) {
  44509. this._averageItemSize = newAverageItemSize;
  44510. this._totalWeight = newTotalWeight;
  44511. }
  44512. }
  44513. }
  44514. /**
  44515. * Resets the averager.
  44516. * @return {?}
  44517. */
  44518. reset() {
  44519. this._averageItemSize = this._defaultItemSize;
  44520. this._totalWeight = 0;
  44521. }
  44522. }
  44523. if (false) {}
  44524. /**
  44525. * Virtual scrolling strategy for lists with items of unknown or dynamic size.
  44526. */
  44527. class AutoSizeVirtualScrollStrategy {
  44528. /**
  44529. * @param {?} minBufferPx The minimum amount of buffer rendered beyond the viewport (in pixels).
  44530. * If the amount of buffer dips below this number, more items will be rendered.
  44531. * @param {?} maxBufferPx The number of pixels worth of buffer to shoot for when rendering new items.
  44532. * If the actual amount turns out to be less it will not necessarily trigger an additional
  44533. * rendering cycle (as long as the amount of buffer is still greater than `minBufferPx`).
  44534. * @param {?=} averager The averager used to estimate the size of unseen items.
  44535. */
  44536. constructor(minBufferPx, maxBufferPx, averager = new ItemSizeAverager()) {
  44537. /**
  44538. * \@docs-private Implemented as part of VirtualScrollStrategy.
  44539. */
  44540. this.scrolledIndexChange = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Observable"]((/**
  44541. * @return {?}
  44542. */
  44543. () => {
  44544. // TODO(mmalerba): Implement.
  44545. throw Error('cdk-virtual-scroll: scrolledIndexChange is currently not supported for the' +
  44546. ' autosize scroll strategy');
  44547. }));
  44548. /**
  44549. * The attached viewport.
  44550. */
  44551. this._viewport = null;
  44552. /**
  44553. * The number of consecutive cycles where removing extra items has failed. Failure here means that
  44554. * we estimated how many items we could safely remove, but our estimate turned out to be too much
  44555. * and it wasn't safe to remove that many elements.
  44556. */
  44557. this._removalFailures = 0;
  44558. this._minBufferPx = minBufferPx;
  44559. this._maxBufferPx = maxBufferPx;
  44560. this._averager = averager;
  44561. }
  44562. /**
  44563. * Attaches this scroll strategy to a viewport.
  44564. * @param {?} viewport The viewport to attach this strategy to.
  44565. * @return {?}
  44566. */
  44567. attach(viewport) {
  44568. this._averager.reset();
  44569. this._viewport = viewport;
  44570. this._renderContentForCurrentOffset();
  44571. }
  44572. /**
  44573. * Detaches this scroll strategy from the currently attached viewport.
  44574. * @return {?}
  44575. */
  44576. detach() {
  44577. this._viewport = null;
  44578. }
  44579. /**
  44580. * \@docs-private Implemented as part of VirtualScrollStrategy.
  44581. * @return {?}
  44582. */
  44583. onContentScrolled() {
  44584. if (this._viewport) {
  44585. this._updateRenderedContentAfterScroll();
  44586. }
  44587. }
  44588. /**
  44589. * \@docs-private Implemented as part of VirtualScrollStrategy.
  44590. * @return {?}
  44591. */
  44592. onDataLengthChanged() {
  44593. if (this._viewport) {
  44594. this._renderContentForCurrentOffset();
  44595. this._checkRenderedContentSize();
  44596. }
  44597. }
  44598. /**
  44599. * \@docs-private Implemented as part of VirtualScrollStrategy.
  44600. * @return {?}
  44601. */
  44602. onContentRendered() {
  44603. if (this._viewport) {
  44604. this._checkRenderedContentSize();
  44605. }
  44606. }
  44607. /**
  44608. * \@docs-private Implemented as part of VirtualScrollStrategy.
  44609. * @return {?}
  44610. */
  44611. onRenderedOffsetChanged() {
  44612. if (this._viewport) {
  44613. this._checkRenderedContentOffset();
  44614. }
  44615. }
  44616. /**
  44617. * Scroll to the offset for the given index.
  44618. * @return {?}
  44619. */
  44620. scrollToIndex() {
  44621. // TODO(mmalerba): Implement.
  44622. throw Error('cdk-virtual-scroll: scrollToIndex is currently not supported for the autosize'
  44623. + ' scroll strategy');
  44624. }
  44625. /**
  44626. * Update the buffer parameters.
  44627. * @param {?} minBufferPx The minimum amount of buffer rendered beyond the viewport (in pixels).
  44628. * @param {?} maxBufferPx The number of buffer items to render beyond the edge of the viewport (in
  44629. * pixels).
  44630. * @return {?}
  44631. */
  44632. updateBufferSize(minBufferPx, maxBufferPx) {
  44633. if (maxBufferPx < minBufferPx) {
  44634. throw ('CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx');
  44635. }
  44636. this._minBufferPx = minBufferPx;
  44637. this._maxBufferPx = maxBufferPx;
  44638. }
  44639. /**
  44640. * Update the rendered content after the user scrolls.
  44641. * @private
  44642. * @return {?}
  44643. */
  44644. _updateRenderedContentAfterScroll() {
  44645. /** @type {?} */
  44646. const viewport = (/** @type {?} */ (this._viewport));
  44647. // The current scroll offset.
  44648. /** @type {?} */
  44649. const scrollOffset = viewport.measureScrollOffset();
  44650. // The delta between the current scroll offset and the previously recorded scroll offset.
  44651. /** @type {?} */
  44652. let scrollDelta = scrollOffset - this._lastScrollOffset;
  44653. // The magnitude of the scroll delta.
  44654. /** @type {?} */
  44655. let scrollMagnitude = Math.abs(scrollDelta);
  44656. // The currently rendered range.
  44657. /** @type {?} */
  44658. const renderedRange = viewport.getRenderedRange();
  44659. // If we're scrolling toward the top, we need to account for the fact that the predicted amount
  44660. // of content and the actual amount of scrollable space may differ. We address this by slowly
  44661. // correcting the difference on each scroll event.
  44662. /** @type {?} */
  44663. let offsetCorrection = 0;
  44664. if (scrollDelta < 0) {
  44665. // The content offset we would expect based on the average item size.
  44666. /** @type {?} */
  44667. const predictedOffset = renderedRange.start * this._averager.getAverageItemSize();
  44668. // The difference between the predicted size of the unrendered content at the beginning and
  44669. // the actual available space to scroll over. We need to reduce this to zero by the time the
  44670. // user scrolls to the top.
  44671. // - 0 indicates that the predicted size and available space are the same.
  44672. // - A negative number that the predicted size is smaller than the available space.
  44673. // - A positive number indicates the predicted size is larger than the available space
  44674. /** @type {?} */
  44675. const offsetDifference = predictedOffset - this._lastRenderedContentOffset;
  44676. // The amount of difference to correct during this scroll event. We calculate this as a
  44677. // percentage of the total difference based on the percentage of the distance toward the top
  44678. // that the user scrolled.
  44679. offsetCorrection = Math.round(offsetDifference *
  44680. Math.max(0, Math.min(1, scrollMagnitude / (scrollOffset + scrollMagnitude))));
  44681. // Based on the offset correction above, we pretend that the scroll delta was bigger or
  44682. // smaller than it actually was, this way we can start to eliminate the difference.
  44683. scrollDelta = scrollDelta - offsetCorrection;
  44684. scrollMagnitude = Math.abs(scrollDelta);
  44685. }
  44686. // The current amount of buffer past the start of the viewport.
  44687. /** @type {?} */
  44688. const startBuffer = this._lastScrollOffset - this._lastRenderedContentOffset;
  44689. // The current amount of buffer past the end of the viewport.
  44690. /** @type {?} */
  44691. const endBuffer = (this._lastRenderedContentOffset + this._lastRenderedContentSize) -
  44692. (this._lastScrollOffset + viewport.getViewportSize());
  44693. // The amount of unfilled space that should be filled on the side the user is scrolling toward
  44694. // in order to safely absorb the scroll delta.
  44695. /** @type {?} */
  44696. const underscan = scrollMagnitude + this._minBufferPx -
  44697. (scrollDelta < 0 ? startBuffer : endBuffer);
  44698. // Check if there's unfilled space that we need to render new elements to fill.
  44699. if (underscan > 0) {
  44700. // Check if the scroll magnitude was larger than the viewport size. In this case the user
  44701. // won't notice a discontinuity if we just jump to the new estimated position in the list.
  44702. // However, if the scroll magnitude is smaller than the viewport the user might notice some
  44703. // jitteriness if we just jump to the estimated position. Instead we make sure to scroll by
  44704. // the same number of pixels as the scroll magnitude.
  44705. if (scrollMagnitude >= viewport.getViewportSize()) {
  44706. this._renderContentForCurrentOffset();
  44707. }
  44708. else {
  44709. // The number of new items to render on the side the user is scrolling towards. Rather than
  44710. // just filling the underscan space, we actually fill enough to have a buffer size of
  44711. // `maxBufferPx`. This gives us a little wiggle room in case our item size estimate is off.
  44712. /** @type {?} */
  44713. const addItems = Math.max(0, Math.ceil((underscan - this._minBufferPx + this._maxBufferPx) /
  44714. this._averager.getAverageItemSize()));
  44715. // The amount of filled space beyond what is necessary on the side the user is scrolling
  44716. // away from.
  44717. /** @type {?} */
  44718. const overscan = (scrollDelta < 0 ? endBuffer : startBuffer) - this._minBufferPx +
  44719. scrollMagnitude;
  44720. // The number of currently rendered items to remove on the side the user is scrolling away
  44721. // from. If removal has failed in recent cycles we are less aggressive in how much we try to
  44722. // remove.
  44723. /** @type {?} */
  44724. const unboundedRemoveItems = Math.floor(overscan / this._averager.getAverageItemSize() / (this._removalFailures + 1));
  44725. /** @type {?} */
  44726. const removeItems = Math.min(renderedRange.end - renderedRange.start, Math.max(0, unboundedRemoveItems));
  44727. // The new range we will tell the viewport to render. We first expand it to include the new
  44728. // items we want rendered, we then contract the opposite side to remove items we no longer
  44729. // want rendered.
  44730. /** @type {?} */
  44731. const range = this._expandRange(renderedRange, scrollDelta < 0 ? addItems : 0, scrollDelta > 0 ? addItems : 0);
  44732. if (scrollDelta < 0) {
  44733. range.end = Math.max(range.start + 1, range.end - removeItems);
  44734. }
  44735. else {
  44736. range.start = Math.min(range.end - 1, range.start + removeItems);
  44737. }
  44738. // The new offset we want to set on the rendered content. To determine this we measure the
  44739. // number of pixels we removed and then adjust the offset to the start of the rendered
  44740. // content or to the end of the rendered content accordingly (whichever one doesn't require
  44741. // that the newly added items to be rendered to calculate.)
  44742. /** @type {?} */
  44743. let contentOffset;
  44744. /** @type {?} */
  44745. let contentOffsetTo;
  44746. if (scrollDelta < 0) {
  44747. /** @type {?} */
  44748. let removedSize = viewport.measureRangeSize({
  44749. start: range.end,
  44750. end: renderedRange.end,
  44751. });
  44752. // Check that we're not removing too much.
  44753. if (removedSize <= overscan) {
  44754. contentOffset =
  44755. this._lastRenderedContentOffset + this._lastRenderedContentSize - removedSize;
  44756. this._removalFailures = 0;
  44757. }
  44758. else {
  44759. // If the removal is more than the overscan can absorb just undo it and record the fact
  44760. // that the removal failed so we can be less aggressive next time.
  44761. range.end = renderedRange.end;
  44762. contentOffset = this._lastRenderedContentOffset + this._lastRenderedContentSize;
  44763. this._removalFailures++;
  44764. }
  44765. contentOffsetTo = 'to-end';
  44766. }
  44767. else {
  44768. /** @type {?} */
  44769. const removedSize = viewport.measureRangeSize({
  44770. start: renderedRange.start,
  44771. end: range.start,
  44772. });
  44773. // Check that we're not removing too much.
  44774. if (removedSize <= overscan) {
  44775. contentOffset = this._lastRenderedContentOffset + removedSize;
  44776. this._removalFailures = 0;
  44777. }
  44778. else {
  44779. // If the removal is more than the overscan can absorb just undo it and record the fact
  44780. // that the removal failed so we can be less aggressive next time.
  44781. range.start = renderedRange.start;
  44782. contentOffset = this._lastRenderedContentOffset;
  44783. this._removalFailures++;
  44784. }
  44785. contentOffsetTo = 'to-start';
  44786. }
  44787. // Set the range and offset we calculated above.
  44788. viewport.setRenderedRange(range);
  44789. viewport.setRenderedContentOffset(contentOffset + offsetCorrection, contentOffsetTo);
  44790. }
  44791. }
  44792. else if (offsetCorrection) {
  44793. // Even if the rendered range didn't change, we may still need to adjust the content offset to
  44794. // simulate scrolling slightly slower or faster than the user actually scrolled.
  44795. viewport.setRenderedContentOffset(this._lastRenderedContentOffset + offsetCorrection);
  44796. }
  44797. // Save the scroll offset to be compared to the new value on the next scroll event.
  44798. this._lastScrollOffset = scrollOffset;
  44799. }
  44800. /**
  44801. * Checks the size of the currently rendered content and uses it to update the estimated item size
  44802. * and estimated total content size.
  44803. * @private
  44804. * @return {?}
  44805. */
  44806. _checkRenderedContentSize() {
  44807. /** @type {?} */
  44808. const viewport = (/** @type {?} */ (this._viewport));
  44809. this._lastRenderedContentSize = viewport.measureRenderedContentSize();
  44810. this._averager.addSample(viewport.getRenderedRange(), this._lastRenderedContentSize);
  44811. this._updateTotalContentSize(this._lastRenderedContentSize);
  44812. }
  44813. /**
  44814. * Checks the currently rendered content offset and saves the value for later use.
  44815. * @private
  44816. * @return {?}
  44817. */
  44818. _checkRenderedContentOffset() {
  44819. /** @type {?} */
  44820. const viewport = (/** @type {?} */ (this._viewport));
  44821. this._lastRenderedContentOffset = (/** @type {?} */ (viewport.getOffsetToRenderedContentStart()));
  44822. }
  44823. /**
  44824. * Recalculates the rendered content based on our estimate of what should be shown at the current
  44825. * scroll offset.
  44826. * @private
  44827. * @return {?}
  44828. */
  44829. _renderContentForCurrentOffset() {
  44830. /** @type {?} */
  44831. const viewport = (/** @type {?} */ (this._viewport));
  44832. /** @type {?} */
  44833. const scrollOffset = viewport.measureScrollOffset();
  44834. this._lastScrollOffset = scrollOffset;
  44835. this._removalFailures = 0;
  44836. /** @type {?} */
  44837. const itemSize = this._averager.getAverageItemSize();
  44838. /** @type {?} */
  44839. const firstVisibleIndex = Math.min(viewport.getDataLength() - 1, Math.floor(scrollOffset / itemSize));
  44840. /** @type {?} */
  44841. const bufferSize = Math.ceil(this._maxBufferPx / itemSize);
  44842. /** @type {?} */
  44843. const range = this._expandRange(this._getVisibleRangeForIndex(firstVisibleIndex), bufferSize, bufferSize);
  44844. viewport.setRenderedRange(range);
  44845. viewport.setRenderedContentOffset(itemSize * range.start);
  44846. }
  44847. // TODO: maybe move to base class, can probably share with fixed size strategy.
  44848. /**
  44849. * Gets the visible range of data for the given start index. If the start index is too close to
  44850. * the end of the list it may be backed up to ensure the estimated size of the range is enough to
  44851. * fill the viewport.
  44852. * Note: must not be called if `this._viewport` is null
  44853. * @private
  44854. * @param {?} startIndex The index to start the range at
  44855. * @return {?} a range estimated to be large enough to fill the viewport when rendered.
  44856. */
  44857. _getVisibleRangeForIndex(startIndex) {
  44858. /** @type {?} */
  44859. const viewport = (/** @type {?} */ (this._viewport));
  44860. /** @type {?} */
  44861. const range = {
  44862. start: startIndex,
  44863. end: startIndex +
  44864. Math.ceil(viewport.getViewportSize() / this._averager.getAverageItemSize())
  44865. };
  44866. /** @type {?} */
  44867. const extra = range.end - viewport.getDataLength();
  44868. if (extra > 0) {
  44869. range.start = Math.max(0, range.start - extra);
  44870. }
  44871. return range;
  44872. }
  44873. // TODO: maybe move to base class, can probably share with fixed size strategy.
  44874. /**
  44875. * Expand the given range by the given amount in either direction.
  44876. * Note: must not be called if `this._viewport` is null
  44877. * @private
  44878. * @param {?} range The range to expand
  44879. * @param {?} expandStart The number of items to expand the start of the range by.
  44880. * @param {?} expandEnd The number of items to expand the end of the range by.
  44881. * @return {?} The expanded range.
  44882. */
  44883. _expandRange(range, expandStart, expandEnd) {
  44884. /** @type {?} */
  44885. const viewport = (/** @type {?} */ (this._viewport));
  44886. /** @type {?} */
  44887. const start = Math.max(0, range.start - expandStart);
  44888. /** @type {?} */
  44889. const end = Math.min(viewport.getDataLength(), range.end + expandEnd);
  44890. return { start, end };
  44891. }
  44892. /**
  44893. * Update the viewport's total content size.
  44894. * @private
  44895. * @param {?} renderedContentSize
  44896. * @return {?}
  44897. */
  44898. _updateTotalContentSize(renderedContentSize) {
  44899. /** @type {?} */
  44900. const viewport = (/** @type {?} */ (this._viewport));
  44901. /** @type {?} */
  44902. const renderedRange = viewport.getRenderedRange();
  44903. /** @type {?} */
  44904. const totalSize = renderedContentSize +
  44905. (viewport.getDataLength() - (renderedRange.end - renderedRange.start)) *
  44906. this._averager.getAverageItemSize();
  44907. viewport.setTotalContentSize(totalSize);
  44908. }
  44909. }
  44910. if (false) {}
  44911. /**
  44912. * Provider factory for `AutoSizeVirtualScrollStrategy` that simply extracts the already created
  44913. * `AutoSizeVirtualScrollStrategy` from the given directive.
  44914. * @param {?} autoSizeDir The instance of `CdkAutoSizeVirtualScroll` to extract the
  44915. * `AutoSizeVirtualScrollStrategy` from.
  44916. * @return {?}
  44917. */
  44918. function _autoSizeVirtualScrollStrategyFactory(autoSizeDir) {
  44919. return autoSizeDir._scrollStrategy;
  44920. }
  44921. /**
  44922. * A virtual scroll strategy that supports unknown or dynamic size items.
  44923. */
  44924. class CdkAutoSizeVirtualScroll {
  44925. constructor() {
  44926. this._minBufferPx = 100;
  44927. this._maxBufferPx = 200;
  44928. /**
  44929. * The scroll strategy used by this directive.
  44930. */
  44931. this._scrollStrategy = new AutoSizeVirtualScrollStrategy(this.minBufferPx, this.maxBufferPx);
  44932. }
  44933. /**
  44934. * The minimum amount of buffer rendered beyond the viewport (in pixels).
  44935. * If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
  44936. * @return {?}
  44937. */
  44938. get minBufferPx() { return this._minBufferPx; }
  44939. /**
  44940. * @param {?} value
  44941. * @return {?}
  44942. */
  44943. set minBufferPx(value) { this._minBufferPx = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value); }
  44944. /**
  44945. * The number of pixels worth of buffer to shoot for when rendering new items.
  44946. * If the actual amount turns out to be less it will not necessarily trigger an additional
  44947. * rendering cycle (as long as the amount of buffer is still greater than `minBufferPx`).
  44948. * Defaults to 200px.
  44949. * @return {?}
  44950. */
  44951. get maxBufferPx() { return this._maxBufferPx; }
  44952. /**
  44953. * @param {?} value
  44954. * @return {?}
  44955. */
  44956. set maxBufferPx(value) { this._maxBufferPx = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value); }
  44957. /**
  44958. * @return {?}
  44959. */
  44960. ngOnChanges() {
  44961. this._scrollStrategy.updateBufferSize(this.minBufferPx, this.maxBufferPx);
  44962. }
  44963. }
  44964. CdkAutoSizeVirtualScroll.ɵfac = function CdkAutoSizeVirtualScroll_Factory(t) { return new (t || CdkAutoSizeVirtualScroll)(); };
  44965. CdkAutoSizeVirtualScroll.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineDirective"]({ type: CdkAutoSizeVirtualScroll, selectors: [["cdk-virtual-scroll-viewport", "autosize", ""]], inputs: { minBufferPx: "minBufferPx", maxBufferPx: "maxBufferPx" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵProvidersFeature"]([{
  44966. provide: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["VIRTUAL_SCROLL_STRATEGY"],
  44967. useFactory: _autoSizeVirtualScrollStrategyFactory,
  44968. deps: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(( /**
  44969. * @return {?}
  44970. */() => CdkAutoSizeVirtualScroll))]
  44971. }]), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵNgOnChangesFeature"]] });
  44972. CdkAutoSizeVirtualScroll.propDecorators = {
  44973. minBufferPx: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"] }],
  44974. maxBufferPx: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"] }]
  44975. };
  44976. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](CdkAutoSizeVirtualScroll, [{
  44977. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Directive"],
  44978. args: [{
  44979. selector: 'cdk-virtual-scroll-viewport[autosize]',
  44980. providers: [{
  44981. provide: _angular_cdk_scrolling__WEBPACK_IMPORTED_MODULE_1__["VIRTUAL_SCROLL_STRATEGY"],
  44982. useFactory: _autoSizeVirtualScrollStrategyFactory,
  44983. deps: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_2__["forwardRef"])(( /**
  44984. * @return {?}
  44985. */() => CdkAutoSizeVirtualScroll))]
  44986. }]
  44987. }]
  44988. }], function () { return []; }, { minBufferPx: [{
  44989. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
  44990. }], maxBufferPx: [{
  44991. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["Input"]
  44992. }] }); })();
  44993. if (false) {}
  44994. /**
  44995. * @fileoverview added by tsickle
  44996. * Generated from: src/cdk-experimental/scrolling/scrolling-module.ts
  44997. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  44998. */
  44999. class ScrollingModule {
  45000. }
  45001. ScrollingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({ type: ScrollingModule });
  45002. ScrollingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({ factory: function ScrollingModule_Factory(t) { return new (t || ScrollingModule)(); } });
  45003. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](ScrollingModule, { declarations: [CdkAutoSizeVirtualScroll], exports: [CdkAutoSizeVirtualScroll] }); })();
  45004. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵsetClassMetadata"](ScrollingModule, [{
  45005. type: _angular_core__WEBPACK_IMPORTED_MODULE_2__["NgModule"],
  45006. args: [{
  45007. exports: [CdkAutoSizeVirtualScroll],
  45008. declarations: [CdkAutoSizeVirtualScroll]
  45009. }]
  45010. }], null, null); })();
  45011. /**
  45012. * @fileoverview added by tsickle
  45013. * Generated from: src/cdk-experimental/scrolling/public-api.ts
  45014. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  45015. */
  45016. /**
  45017. * Generated bundle index. Do not edit.
  45018. */
  45019. //# sourceMappingURL=scrolling.js.map
  45020. /***/ }),
  45021. /***/ "coGc":
  45022. /*!********************************************************************!*\
  45023. !*** ./node_modules/rxjs/_esm2015/internal/operators/delayWhen.js ***!
  45024. \********************************************************************/
  45025. /*! exports provided: delayWhen */
  45026. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45027. "use strict";
  45028. __webpack_require__.r(__webpack_exports__);
  45029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "delayWhen", function() { return delayWhen; });
  45030. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  45031. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Observable */ "HDdC");
  45032. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  45033. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  45034. function delayWhen(delayDurationSelector, subscriptionDelay) {
  45035. if (subscriptionDelay) {
  45036. return (source) => new SubscriptionDelayObservable(source, subscriptionDelay)
  45037. .lift(new DelayWhenOperator(delayDurationSelector));
  45038. }
  45039. return (source) => source.lift(new DelayWhenOperator(delayDurationSelector));
  45040. }
  45041. class DelayWhenOperator {
  45042. constructor(delayDurationSelector) {
  45043. this.delayDurationSelector = delayDurationSelector;
  45044. }
  45045. call(subscriber, source) {
  45046. return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector));
  45047. }
  45048. }
  45049. class DelayWhenSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] {
  45050. constructor(destination, delayDurationSelector) {
  45051. super(destination);
  45052. this.delayDurationSelector = delayDurationSelector;
  45053. this.completed = false;
  45054. this.delayNotifierSubscriptions = [];
  45055. this.index = 0;
  45056. }
  45057. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  45058. this.destination.next(outerValue);
  45059. this.removeSubscription(innerSub);
  45060. this.tryComplete();
  45061. }
  45062. notifyError(error, innerSub) {
  45063. this._error(error);
  45064. }
  45065. notifyComplete(innerSub) {
  45066. const value = this.removeSubscription(innerSub);
  45067. if (value) {
  45068. this.destination.next(value);
  45069. }
  45070. this.tryComplete();
  45071. }
  45072. _next(value) {
  45073. const index = this.index++;
  45074. try {
  45075. const delayNotifier = this.delayDurationSelector(value, index);
  45076. if (delayNotifier) {
  45077. this.tryDelay(delayNotifier, value);
  45078. }
  45079. }
  45080. catch (err) {
  45081. this.destination.error(err);
  45082. }
  45083. }
  45084. _complete() {
  45085. this.completed = true;
  45086. this.tryComplete();
  45087. this.unsubscribe();
  45088. }
  45089. removeSubscription(subscription) {
  45090. subscription.unsubscribe();
  45091. const subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription);
  45092. if (subscriptionIdx !== -1) {
  45093. this.delayNotifierSubscriptions.splice(subscriptionIdx, 1);
  45094. }
  45095. return subscription.outerValue;
  45096. }
  45097. tryDelay(delayNotifier, value) {
  45098. const notifierSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, delayNotifier, value);
  45099. if (notifierSubscription && !notifierSubscription.closed) {
  45100. const destination = this.destination;
  45101. destination.add(notifierSubscription);
  45102. this.delayNotifierSubscriptions.push(notifierSubscription);
  45103. }
  45104. }
  45105. tryComplete() {
  45106. if (this.completed && this.delayNotifierSubscriptions.length === 0) {
  45107. this.destination.complete();
  45108. }
  45109. }
  45110. }
  45111. class SubscriptionDelayObservable extends _Observable__WEBPACK_IMPORTED_MODULE_1__["Observable"] {
  45112. constructor(source, subscriptionDelay) {
  45113. super();
  45114. this.source = source;
  45115. this.subscriptionDelay = subscriptionDelay;
  45116. }
  45117. _subscribe(subscriber) {
  45118. this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));
  45119. }
  45120. }
  45121. class SubscriptionDelaySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  45122. constructor(parent, source) {
  45123. super();
  45124. this.parent = parent;
  45125. this.source = source;
  45126. this.sourceSubscribed = false;
  45127. }
  45128. _next(unused) {
  45129. this.subscribeToSource();
  45130. }
  45131. _error(err) {
  45132. this.unsubscribe();
  45133. this.parent.error(err);
  45134. }
  45135. _complete() {
  45136. this.unsubscribe();
  45137. this.subscribeToSource();
  45138. }
  45139. subscribeToSource() {
  45140. if (!this.sourceSubscribed) {
  45141. this.sourceSubscribed = true;
  45142. this.unsubscribe();
  45143. this.source.subscribe(this.parent);
  45144. }
  45145. }
  45146. }
  45147. //# sourceMappingURL=delayWhen.js.map
  45148. /***/ }),
  45149. /***/ "cp0P":
  45150. /*!********************************************************************!*\
  45151. !*** ./node_modules/rxjs/_esm2015/internal/observable/forkJoin.js ***!
  45152. \********************************************************************/
  45153. /*! exports provided: forkJoin */
  45154. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45155. "use strict";
  45156. __webpack_require__.r(__webpack_exports__);
  45157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forkJoin", function() { return forkJoin; });
  45158. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  45159. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  45160. /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../operators/map */ "lJxs");
  45161. /* harmony import */ var _util_isObject__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/isObject */ "XoHu");
  45162. /* harmony import */ var _from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./from */ "Cfvw");
  45163. function forkJoin(...sources) {
  45164. if (sources.length === 1) {
  45165. const first = sources[0];
  45166. if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(first)) {
  45167. return forkJoinInternal(first, null);
  45168. }
  45169. if (Object(_util_isObject__WEBPACK_IMPORTED_MODULE_3__["isObject"])(first) && Object.getPrototypeOf(first) === Object.prototype) {
  45170. const keys = Object.keys(first);
  45171. return forkJoinInternal(keys.map(key => first[key]), keys);
  45172. }
  45173. }
  45174. if (typeof sources[sources.length - 1] === 'function') {
  45175. const resultSelector = sources.pop();
  45176. sources = (sources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(sources[0])) ? sources[0] : sources;
  45177. return forkJoinInternal(sources, null).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_2__["map"])((args) => resultSelector(...args)));
  45178. }
  45179. return forkJoinInternal(sources, null);
  45180. }
  45181. function forkJoinInternal(sources, keys) {
  45182. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  45183. const len = sources.length;
  45184. if (len === 0) {
  45185. subscriber.complete();
  45186. return;
  45187. }
  45188. const values = new Array(len);
  45189. let completed = 0;
  45190. let emitted = 0;
  45191. for (let i = 0; i < len; i++) {
  45192. const source = Object(_from__WEBPACK_IMPORTED_MODULE_4__["from"])(sources[i]);
  45193. let hasValue = false;
  45194. subscriber.add(source.subscribe({
  45195. next: value => {
  45196. if (!hasValue) {
  45197. hasValue = true;
  45198. emitted++;
  45199. }
  45200. values[i] = value;
  45201. },
  45202. error: err => subscriber.error(err),
  45203. complete: () => {
  45204. completed++;
  45205. if (completed === len || !hasValue) {
  45206. if (emitted === len) {
  45207. subscriber.next(keys ?
  45208. keys.reduce((result, key, i) => (result[key] = values[i], result), {}) :
  45209. values);
  45210. }
  45211. subscriber.complete();
  45212. }
  45213. }
  45214. }));
  45215. }
  45216. });
  45217. }
  45218. //# sourceMappingURL=forkJoin.js.map
  45219. /***/ }),
  45220. /***/ "cx9U":
  45221. /*!*****************************************************************!*\
  45222. !*** ./node_modules/rxjs/_esm2015/internal/operators/single.js ***!
  45223. \*****************************************************************/
  45224. /*! exports provided: single */
  45225. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45226. "use strict";
  45227. __webpack_require__.r(__webpack_exports__);
  45228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "single", function() { return single; });
  45229. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  45230. /* harmony import */ var _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/EmptyError */ "sVev");
  45231. function single(predicate) {
  45232. return (source) => source.lift(new SingleOperator(predicate, source));
  45233. }
  45234. class SingleOperator {
  45235. constructor(predicate, source) {
  45236. this.predicate = predicate;
  45237. this.source = source;
  45238. }
  45239. call(subscriber, source) {
  45240. return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));
  45241. }
  45242. }
  45243. class SingleSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  45244. constructor(destination, predicate, source) {
  45245. super(destination);
  45246. this.predicate = predicate;
  45247. this.source = source;
  45248. this.seenValue = false;
  45249. this.index = 0;
  45250. }
  45251. applySingleValue(value) {
  45252. if (this.seenValue) {
  45253. this.destination.error('Sequence contains more than one element');
  45254. }
  45255. else {
  45256. this.seenValue = true;
  45257. this.singleValue = value;
  45258. }
  45259. }
  45260. _next(value) {
  45261. const index = this.index++;
  45262. if (this.predicate) {
  45263. this.tryNext(value, index);
  45264. }
  45265. else {
  45266. this.applySingleValue(value);
  45267. }
  45268. }
  45269. tryNext(value, index) {
  45270. try {
  45271. if (this.predicate(value, index, this.source)) {
  45272. this.applySingleValue(value);
  45273. }
  45274. }
  45275. catch (err) {
  45276. this.destination.error(err);
  45277. }
  45278. }
  45279. _complete() {
  45280. const destination = this.destination;
  45281. if (this.index > 0) {
  45282. destination.next(this.seenValue ? this.singleValue : undefined);
  45283. destination.complete();
  45284. }
  45285. else {
  45286. destination.error(new _util_EmptyError__WEBPACK_IMPORTED_MODULE_1__["EmptyError"]);
  45287. }
  45288. }
  45289. }
  45290. //# sourceMappingURL=single.js.map
  45291. /***/ }),
  45292. /***/ "dkDA":
  45293. /*!**********************************************************************!*\
  45294. !*** ./node_modules/rxjs/_esm2015/internal/operators/materialize.js ***!
  45295. \**********************************************************************/
  45296. /*! exports provided: materialize */
  45297. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45298. "use strict";
  45299. __webpack_require__.r(__webpack_exports__);
  45300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "materialize", function() { return materialize; });
  45301. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  45302. /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Notification */ "WMd4");
  45303. function materialize() {
  45304. return function materializeOperatorFunction(source) {
  45305. return source.lift(new MaterializeOperator());
  45306. };
  45307. }
  45308. class MaterializeOperator {
  45309. call(subscriber, source) {
  45310. return source.subscribe(new MaterializeSubscriber(subscriber));
  45311. }
  45312. }
  45313. class MaterializeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  45314. constructor(destination) {
  45315. super(destination);
  45316. }
  45317. _next(value) {
  45318. this.destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createNext(value));
  45319. }
  45320. _error(err) {
  45321. const destination = this.destination;
  45322. destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createError(err));
  45323. destination.complete();
  45324. }
  45325. _complete() {
  45326. const destination = this.destination;
  45327. destination.next(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createComplete());
  45328. destination.complete();
  45329. }
  45330. }
  45331. //# sourceMappingURL=materialize.js.map
  45332. /***/ }),
  45333. /***/ "eIep":
  45334. /*!********************************************************************!*\
  45335. !*** ./node_modules/rxjs/_esm2015/internal/operators/switchMap.js ***!
  45336. \********************************************************************/
  45337. /*! exports provided: switchMap */
  45338. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45339. "use strict";
  45340. __webpack_require__.r(__webpack_exports__);
  45341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "switchMap", function() { return switchMap; });
  45342. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  45343. /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv");
  45344. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  45345. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./map */ "lJxs");
  45346. /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../observable/from */ "Cfvw");
  45347. function switchMap(project, resultSelector) {
  45348. if (typeof resultSelector === 'function') {
  45349. return (source) => source.pipe(switchMap((a, i) => Object(_observable_from__WEBPACK_IMPORTED_MODULE_4__["from"])(project(a, i)).pipe(Object(_map__WEBPACK_IMPORTED_MODULE_3__["map"])((b, ii) => resultSelector(a, b, i, ii)))));
  45350. }
  45351. return (source) => source.lift(new SwitchMapOperator(project));
  45352. }
  45353. class SwitchMapOperator {
  45354. constructor(project) {
  45355. this.project = project;
  45356. }
  45357. call(subscriber, source) {
  45358. return source.subscribe(new SwitchMapSubscriber(subscriber, this.project));
  45359. }
  45360. }
  45361. class SwitchMapSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  45362. constructor(destination, project) {
  45363. super(destination);
  45364. this.project = project;
  45365. this.index = 0;
  45366. }
  45367. _next(value) {
  45368. let result;
  45369. const index = this.index++;
  45370. try {
  45371. result = this.project(value, index);
  45372. }
  45373. catch (error) {
  45374. this.destination.error(error);
  45375. return;
  45376. }
  45377. this._innerSub(result, value, index);
  45378. }
  45379. _innerSub(result, value, index) {
  45380. const innerSubscription = this.innerSubscription;
  45381. if (innerSubscription) {
  45382. innerSubscription.unsubscribe();
  45383. }
  45384. const innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_1__["InnerSubscriber"](this, value, index);
  45385. const destination = this.destination;
  45386. destination.add(innerSubscriber);
  45387. this.innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, result, undefined, undefined, innerSubscriber);
  45388. if (this.innerSubscription !== innerSubscriber) {
  45389. destination.add(this.innerSubscription);
  45390. }
  45391. }
  45392. _complete() {
  45393. const { innerSubscription } = this;
  45394. if (!innerSubscription || innerSubscription.closed) {
  45395. super._complete();
  45396. }
  45397. this.unsubscribe();
  45398. }
  45399. _unsubscribe() {
  45400. this.innerSubscription = null;
  45401. }
  45402. notifyComplete(innerSub) {
  45403. const destination = this.destination;
  45404. destination.remove(innerSub);
  45405. this.innerSubscription = null;
  45406. if (this.isStopped) {
  45407. super._complete();
  45408. }
  45409. }
  45410. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  45411. this.destination.next(innerValue);
  45412. }
  45413. }
  45414. //# sourceMappingURL=switchMap.js.map
  45415. /***/ }),
  45416. /***/ "eNwd":
  45417. /*!*************************************************************************!*\
  45418. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/animationFrame.js ***!
  45419. \*************************************************************************/
  45420. /*! exports provided: animationFrame */
  45421. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45422. "use strict";
  45423. __webpack_require__.r(__webpack_exports__);
  45424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "animationFrame", function() { return animationFrame; });
  45425. /* harmony import */ var _AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AnimationFrameAction */ "Vpsf");
  45426. /* harmony import */ var _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AnimationFrameScheduler */ "znLP");
  45427. const animationFrame = new _AnimationFrameScheduler__WEBPACK_IMPORTED_MODULE_1__["AnimationFrameScheduler"](_AnimationFrameAction__WEBPACK_IMPORTED_MODULE_0__["AnimationFrameAction"]);
  45428. //# sourceMappingURL=animationFrame.js.map
  45429. /***/ }),
  45430. /***/ "f29J":
  45431. /*!*****************************************************************!*\
  45432. !*** ./node_modules/rxjs/_esm2015/internal/operators/concat.js ***!
  45433. \*****************************************************************/
  45434. /*! exports provided: concat */
  45435. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45436. "use strict";
  45437. __webpack_require__.r(__webpack_exports__);
  45438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return concat; });
  45439. /* harmony import */ var _observable_concat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/concat */ "GyhO");
  45440. function concat(...observables) {
  45441. return (source) => source.lift.call(Object(_observable_concat__WEBPACK_IMPORTED_MODULE_0__["concat"])(source, ...observables));
  45442. }
  45443. //# sourceMappingURL=concat.js.map
  45444. /***/ }),
  45445. /***/ "fFD9":
  45446. /*!************************************************************************!*\
  45447. !*** ./node_modules/rxjs/_esm2015/internal/operators/combineLatest.js ***!
  45448. \************************************************************************/
  45449. /*! exports provided: combineLatest */
  45450. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45451. "use strict";
  45452. __webpack_require__.r(__webpack_exports__);
  45453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return combineLatest; });
  45454. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  45455. /* harmony import */ var _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../observable/combineLatest */ "itXk");
  45456. /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../observable/from */ "Cfvw");
  45457. const none = {};
  45458. function combineLatest(...observables) {
  45459. let project = null;
  45460. if (typeof observables[observables.length - 1] === 'function') {
  45461. project = observables.pop();
  45462. }
  45463. if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(observables[0])) {
  45464. observables = observables[0].slice();
  45465. }
  45466. return (source) => source.lift.call(Object(_observable_from__WEBPACK_IMPORTED_MODULE_2__["from"])([source, ...observables]), new _observable_combineLatest__WEBPACK_IMPORTED_MODULE_1__["CombineLatestOperator"](project));
  45467. }
  45468. //# sourceMappingURL=combineLatest.js.map
  45469. /***/ }),
  45470. /***/ "fXoL":
  45471. /*!******************************************************************!*\
  45472. !*** ./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js ***!
  45473. \******************************************************************/
  45474. /*! exports provided: ANALYZE_FOR_ENTRY_COMPONENTS, APP_BOOTSTRAP_LISTENER, APP_ID, APP_INITIALIZER, ApplicationInitStatus, ApplicationModule, ApplicationRef, Attribute, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, ChangeDetectorRef, Compiler, CompilerFactory, Component, ComponentFactory, ComponentFactoryResolver, ComponentRef, ContentChild, ContentChildren, DEFAULT_CURRENCY_CODE, DebugElement, DebugEventListener, DebugNode, DefaultIterableDiffer, Directive, ElementRef, EmbeddedViewRef, ErrorHandler, EventEmitter, Host, HostBinding, HostListener, INJECTOR, Inject, InjectFlags, Injectable, InjectionToken, Injector, Input, IterableDiffers, KeyValueDiffers, LOCALE_ID, MissingTranslationStrategy, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModule, NgModuleFactory, NgModuleFactoryLoader, NgModuleRef, NgProbeToken, NgZone, Optional, Output, PACKAGE_ROOT_URL, PLATFORM_ID, PLATFORM_INITIALIZER, Pipe, PlatformRef, Query, QueryList, ReflectiveInjector, ReflectiveKey, Renderer2, RendererFactory2, RendererStyleFlags2, ResolvedReflectiveFactory, Sanitizer, SecurityContext, Self, SimpleChange, SkipSelf, SystemJsNgModuleLoader, SystemJsNgModuleLoaderConfig, TRANSLATIONS, TRANSLATIONS_FORMAT, TemplateRef, Testability, TestabilityRegistry, Type, VERSION, Version, ViewChild, ViewChildren, ViewContainerRef, ViewEncapsulation, ViewRef, WrappedValue, asNativeElements, assertPlatform, createPlatform, createPlatformFactory, defineInjectable, destroyPlatform, enableProdMode, forwardRef, getDebugNode, getModuleFactory, getPlatform, inject, isDevMode, platformCore, resolveForwardRef, setTestabilityGetter, ɵ0, ɵALLOW_MULTIPLE_PLATFORMS, ɵAPP_ID_RANDOM_PROVIDER, ɵCREATE_ATTRIBUTE_DECORATOR__POST_R3__, ɵChangeDetectorStatus, ɵCodegenComponentFactoryResolver, ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__, ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__, ɵCompiler_compileModuleAsync__POST_R3__, ɵCompiler_compileModuleSync__POST_R3__, ɵComponentFactory, ɵConsole, ɵDEFAULT_LOCALE_ID, ɵEMPTY_ARRAY, ɵEMPTY_MAP, ɵINJECTOR_IMPL__POST_R3__, ɵINJECTOR_SCOPE, ɵLifecycleHooksFeature, ɵLocaleDataIndex, ɵNG_COMP_DEF, ɵNG_DIR_DEF, ɵNG_ELEMENT_ID, ɵNG_INJ_DEF, ɵNG_MOD_DEF, ɵNG_PIPE_DEF, ɵNG_PROV_DEF, ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, ɵNO_CHANGE, ɵNgModuleFactory, ɵNoopNgZone, ɵReflectionCapabilities, ɵRender3ComponentFactory, ɵRender3ComponentRef, ɵRender3NgModuleRef, ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__, ɵSWITCH_COMPILE_COMPONENT__POST_R3__, ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__, ɵSWITCH_COMPILE_INJECTABLE__POST_R3__, ɵSWITCH_COMPILE_NGMODULE__POST_R3__, ɵSWITCH_COMPILE_PIPE__POST_R3__, ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__, ɵSWITCH_IVY_ENABLED__POST_R3__, ɵSWITCH_RENDERER2_FACTORY__POST_R3__, ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__, ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__, ɵ_sanitizeHtml, ɵ_sanitizeUrl, ɵallowSanitizationBypassAndThrow, ɵand, ɵangular_packages_core_core_a, ɵangular_packages_core_core_b, ɵangular_packages_core_core_ba, ɵangular_packages_core_core_bb, ɵangular_packages_core_core_bc, ɵangular_packages_core_core_bd, ɵangular_packages_core_core_be, ɵangular_packages_core_core_bf, ɵangular_packages_core_core_bg, ɵangular_packages_core_core_bi, ɵangular_packages_core_core_bj, ɵangular_packages_core_core_bk, ɵangular_packages_core_core_bl, ɵangular_packages_core_core_bm, ɵangular_packages_core_core_bn, ɵangular_packages_core_core_bo, ɵangular_packages_core_core_bp, ɵangular_packages_core_core_bq, ɵangular_packages_core_core_br, ɵangular_packages_core_core_bs, ɵangular_packages_core_core_bu, ɵangular_packages_core_core_bw, ɵangular_packages_core_core_bx, ɵangular_packages_core_core_by, ɵangular_packages_core_core_bz, ɵangular_packages_core_core_c, ɵangular_packages_core_core_ca, ɵangular_packages_core_core_d, ɵangular_packages_core_core_e, ɵangular_packages_core_core_f, ɵangular_packages_core_core_g, ɵangular_packages_core_core_h, ɵangular_packages_core_core_i, ɵangular_packages_core_core_j, ɵangular_packages_core_core_k, ɵangular_packages_core_core_l, ɵangular_packages_core_core_m, ɵangular_packages_core_core_n, ɵangular_packages_core_core_o, ɵangular_packages_core_core_p, ɵangular_packages_core_core_q, ɵangular_packages_core_core_r, ɵangular_packages_core_core_s, ɵangular_packages_core_core_t, ɵangular_packages_core_core_u, ɵangular_packages_core_core_v, ɵangular_packages_core_core_w, ɵangular_packages_core_core_x, ɵangular_packages_core_core_y, ɵangular_packages_core_core_z, ɵbypassSanitizationTrustHtml, ɵbypassSanitizationTrustResourceUrl, ɵbypassSanitizationTrustScript, ɵbypassSanitizationTrustStyle, ɵbypassSanitizationTrustUrl, ɵccf, ɵclearOverrides, ɵclearResolutionOfComponentResourcesQueue, ɵcmf, ɵcompileComponent, ɵcompileDirective, ɵcompileNgModule, ɵcompileNgModuleDefs, ɵcompileNgModuleFactory__POST_R3__, ɵcompilePipe, ɵcreateInjector, ɵcrt, ɵdefaultIterableDiffers, ɵdefaultKeyValueDiffers, ɵdetectChanges, ɵdevModeEqual, ɵdid, ɵeld, ɵfindLocaleData, ɵflushModuleScopingQueueAsMuchAsPossible, ɵgetComponentViewDefinitionFactory, ɵgetDebugNodeR2, ɵgetDebugNode__POST_R3__, ɵgetDirectives, ɵgetHostElement, ɵgetInjectableDef, ɵgetLContext, ɵgetLocaleCurrencyCode, ɵgetLocalePluralCase, ɵgetModuleFactory__POST_R3__, ɵgetSanitizationBypassType, ɵglobal, ɵinitServicesIfNeeded, ɵinlineInterpolate, ɵinterpolate, ɵisBoundToModule__POST_R3__, ɵisDefaultChangeDetectionStrategy, ɵisListLikeIterable, ɵisObservable, ɵisPromise, ɵivyEnabled, ɵmakeDecorator, ɵmarkDirty, ɵmod, ɵmpd, ɵncd, ɵnoSideEffects, ɵnov, ɵoverrideComponentView, ɵoverrideProvider, ɵpad, ɵpatchComponentDefWithScope, ɵpid, ɵpod, ɵppd, ɵprd, ɵpublishDefaultGlobalUtils, ɵpublishGlobalUtil, ɵqud, ɵregisterLocaleData, ɵregisterModuleFactory, ɵregisterNgModuleType, ɵrenderComponent, ɵresetCompiledComponents, ɵresetJitOptions, ɵresolveComponentResources, ɵsetClassMetadata, ɵsetCurrentInjector, ɵsetDocument, ɵsetLocaleId, ɵstore, ɵstringify, ɵted, ɵtransitiveScopesFor, ɵunregisterLocaleData, ɵunv, ɵunwrapSafeValue, ɵvid, ɵwhenRendered, ɵɵCopyDefinitionFeature, ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature, ɵɵProvidersFeature, ɵɵadvance, ɵɵattribute, ɵɵattributeInterpolate1, ɵɵattributeInterpolate2, ɵɵattributeInterpolate3, ɵɵattributeInterpolate4, ɵɵattributeInterpolate5, ɵɵattributeInterpolate6, ɵɵattributeInterpolate7, ɵɵattributeInterpolate8, ɵɵattributeInterpolateV, ɵɵclassMap, ɵɵclassMapInterpolate1, ɵɵclassMapInterpolate2, ɵɵclassMapInterpolate3, ɵɵclassMapInterpolate4, ɵɵclassMapInterpolate5, ɵɵclassMapInterpolate6, ɵɵclassMapInterpolate7, ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, ɵɵcontentQuery, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdefineNgModule, ɵɵdefinePipe, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, ɵɵelementContainer, ɵɵelementContainerEnd, ɵɵelementContainerStart, ɵɵelementEnd, ɵɵelementStart, ɵɵenableBindings, ɵɵgetCurrentView, ɵɵgetFactoryOf, ɵɵgetInheritedFactory, ɵɵhostProperty, ɵɵi18n, ɵɵi18nApply, ɵɵi18nAttributes, ɵɵi18nEnd, ɵɵi18nExp, ɵɵi18nPostprocess, ɵɵi18nStart, ɵɵinject, ɵɵinjectAttribute, ɵɵinjectPipeChangeDetectorRef, ɵɵinvalidFactory, ɵɵinvalidFactoryDep, ɵɵlistener, ɵɵloadQuery, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, ɵɵpipe, ɵɵpipeBind1, ɵɵpipeBind2, ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1, ɵɵpropertyInterpolate2, ɵɵpropertyInterpolate3, ɵɵpropertyInterpolate4, ɵɵpropertyInterpolate5, ɵɵpropertyInterpolate6, ɵɵpropertyInterpolate7, ɵɵpropertyInterpolate8, ɵɵpropertyInterpolateV, ɵɵpureFunction0, ɵɵpureFunction1, ɵɵpureFunction2, ɵɵpureFunction3, ɵɵpureFunction4, ɵɵpureFunction5, ɵɵpureFunction6, ɵɵpureFunction7, ɵɵpureFunction8, ɵɵpureFunctionV, ɵɵqueryRefresh, ɵɵreference, ɵɵresolveBody, ɵɵresolveDocument, ɵɵresolveWindow, ɵɵrestoreView, ɵɵsanitizeHtml, ɵɵsanitizeResourceUrl, ɵɵsanitizeScript, ɵɵsanitizeStyle, ɵɵsanitizeUrl, ɵɵsanitizeUrlOrResourceUrl, ɵɵsetComponentScope, ɵɵsetNgModuleScope, ɵɵstaticContentQuery, ɵɵstaticViewQuery, ɵɵstyleMap, ɵɵstyleMapInterpolate1, ɵɵstyleMapInterpolate2, ɵɵstyleMapInterpolate3, ɵɵstyleMapInterpolate4, ɵɵstyleMapInterpolate5, ɵɵstyleMapInterpolate6, ɵɵstyleMapInterpolate7, ɵɵstyleMapInterpolate8, ɵɵstyleMapInterpolateV, ɵɵstyleProp, ɵɵstylePropInterpolate1, ɵɵstylePropInterpolate2, ɵɵstylePropInterpolate3, ɵɵstylePropInterpolate4, ɵɵstylePropInterpolate5, ɵɵstylePropInterpolate6, ɵɵstylePropInterpolate7, ɵɵstylePropInterpolate8, ɵɵstylePropInterpolateV, ɵɵsyntheticHostListener, ɵɵsyntheticHostProperty, ɵɵtemplate, ɵɵtemplateRefExtractor, ɵɵtext, ɵɵtextInterpolate, ɵɵtextInterpolate1, ɵɵtextInterpolate2, ɵɵtextInterpolate3, ɵɵtextInterpolate4, ɵɵtextInterpolate5, ɵɵtextInterpolate6, ɵɵtextInterpolate7, ɵɵtextInterpolate8, ɵɵtextInterpolateV, ɵɵtrustConstantHtml, ɵɵtrustConstantResourceUrl, ɵɵtrustConstantScript, ɵɵviewQuery */
  45475. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  45476. "use strict";
  45477. __webpack_require__.r(__webpack_exports__);
  45478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ANALYZE_FOR_ENTRY_COMPONENTS", function() { return ANALYZE_FOR_ENTRY_COMPONENTS; });
  45479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_BOOTSTRAP_LISTENER", function() { return APP_BOOTSTRAP_LISTENER; });
  45480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_ID", function() { return APP_ID; });
  45481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_INITIALIZER", function() { return APP_INITIALIZER; });
  45482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationInitStatus", function() { return ApplicationInitStatus; });
  45483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationModule", function() { return ApplicationModule; });
  45484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApplicationRef", function() { return ApplicationRef; });
  45485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Attribute", function() { return Attribute; });
  45486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "COMPILER_OPTIONS", function() { return COMPILER_OPTIONS; });
  45487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CUSTOM_ELEMENTS_SCHEMA", function() { return CUSTOM_ELEMENTS_SCHEMA; });
  45488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChangeDetectionStrategy", function() { return ChangeDetectionStrategy; });
  45489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChangeDetectorRef", function() { return ChangeDetectorRef; });
  45490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Compiler", function() { return Compiler; });
  45491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CompilerFactory", function() { return CompilerFactory; });
  45492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Component", function() { return Component; });
  45493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentFactory", function() { return ComponentFactory; });
  45494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentFactoryResolver", function() { return ComponentFactoryResolver; });
  45495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ComponentRef", function() { return ComponentRef; });
  45496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentChild", function() { return ContentChild; });
  45497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ContentChildren", function() { return ContentChildren; });
  45498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_CURRENCY_CODE", function() { return DEFAULT_CURRENCY_CODE; });
  45499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugElement", function() { return DebugElement; });
  45500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugEventListener", function() { return DebugEventListener; });
  45501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DebugNode", function() { return DebugNode; });
  45502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultIterableDiffer", function() { return DefaultIterableDiffer; });
  45503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Directive", function() { return Directive; });
  45504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ElementRef", function() { return ElementRef; });
  45505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmbeddedViewRef", function() { return EmbeddedViewRef; });
  45506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorHandler", function() { return ErrorHandler; });
  45507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventEmitter", function() { return EventEmitter; });
  45508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Host", function() { return Host; });
  45509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HostBinding", function() { return HostBinding; });
  45510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HostListener", function() { return HostListener; });
  45511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INJECTOR", function() { return INJECTOR$1; });
  45512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Inject", function() { return Inject; });
  45513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InjectFlags", function() { return InjectFlags; });
  45514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Injectable", function() { return Injectable; });
  45515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InjectionToken", function() { return InjectionToken; });
  45516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Injector", function() { return Injector; });
  45517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Input", function() { return Input; });
  45518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IterableDiffers", function() { return IterableDiffers; });
  45519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyValueDiffers", function() { return KeyValueDiffers; });
  45520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOCALE_ID", function() { return LOCALE_ID$1; });
  45521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MissingTranslationStrategy", function() { return MissingTranslationStrategy; });
  45522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ModuleWithComponentFactories", function() { return ModuleWithComponentFactories; });
  45523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NO_ERRORS_SCHEMA", function() { return NO_ERRORS_SCHEMA; });
  45524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModule", function() { return NgModule; });
  45525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModuleFactory", function() { return NgModuleFactory; });
  45526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModuleFactoryLoader", function() { return NgModuleFactoryLoader; });
  45527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgModuleRef", function() { return NgModuleRef; });
  45528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgProbeToken", function() { return NgProbeToken; });
  45529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgZone", function() { return NgZone; });
  45530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Optional", function() { return Optional; });
  45531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Output", function() { return Output; });
  45532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PACKAGE_ROOT_URL", function() { return PACKAGE_ROOT_URL; });
  45533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLATFORM_ID", function() { return PLATFORM_ID; });
  45534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PLATFORM_INITIALIZER", function() { return PLATFORM_INITIALIZER; });
  45535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Pipe", function() { return Pipe; });
  45536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlatformRef", function() { return PlatformRef; });
  45537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Query", function() { return Query; });
  45538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QueryList", function() { return QueryList; });
  45539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReflectiveInjector", function() { return ReflectiveInjector; });
  45540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReflectiveKey", function() { return ReflectiveKey; });
  45541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Renderer2", function() { return Renderer2; });
  45542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RendererFactory2", function() { return RendererFactory2; });
  45543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RendererStyleFlags2", function() { return RendererStyleFlags2; });
  45544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResolvedReflectiveFactory", function() { return ResolvedReflectiveFactory; });
  45545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sanitizer", function() { return Sanitizer; });
  45546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SecurityContext", function() { return SecurityContext; });
  45547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Self", function() { return Self; });
  45548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleChange", function() { return SimpleChange; });
  45549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SkipSelf", function() { return SkipSelf; });
  45550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SystemJsNgModuleLoader", function() { return SystemJsNgModuleLoader; });
  45551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SystemJsNgModuleLoaderConfig", function() { return SystemJsNgModuleLoaderConfig; });
  45552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSLATIONS", function() { return TRANSLATIONS; });
  45553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TRANSLATIONS_FORMAT", function() { return TRANSLATIONS_FORMAT; });
  45554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TemplateRef", function() { return TemplateRef; });
  45555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Testability", function() { return Testability; });
  45556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TestabilityRegistry", function() { return TestabilityRegistry; });
  45557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Type", function() { return Type; });
  45558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
  45559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Version", function() { return Version; });
  45560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewChild", function() { return ViewChild; });
  45561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewChildren", function() { return ViewChildren; });
  45562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewContainerRef", function() { return ViewContainerRef; });
  45563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewEncapsulation", function() { return ViewEncapsulation; });
  45564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewRef", function() { return ViewRef$1; });
  45565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WrappedValue", function() { return WrappedValue; });
  45566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "asNativeElements", function() { return asNativeElements; });
  45567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assertPlatform", function() { return assertPlatform; });
  45568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPlatform", function() { return createPlatform; });
  45569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createPlatformFactory", function() { return createPlatformFactory; });
  45570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defineInjectable", function() { return defineInjectable; });
  45571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "destroyPlatform", function() { return destroyPlatform; });
  45572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableProdMode", function() { return enableProdMode; });
  45573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "forwardRef", function() { return forwardRef; });
  45574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDebugNode", function() { return getDebugNode$1; });
  45575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getModuleFactory", function() { return getModuleFactory; });
  45576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPlatform", function() { return getPlatform; });
  45577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "inject", function() { return inject; });
  45578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDevMode", function() { return isDevMode; });
  45579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "platformCore", function() { return platformCore; });
  45580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resolveForwardRef", function() { return resolveForwardRef; });
  45581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTestabilityGetter", function() { return setTestabilityGetter; });
  45582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ0", function() { return ɵ0$2; });
  45583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵALLOW_MULTIPLE_PLATFORMS", function() { return ALLOW_MULTIPLE_PLATFORMS; });
  45584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAPP_ID_RANDOM_PROVIDER", function() { return APP_ID_RANDOM_PROVIDER; });
  45585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCREATE_ATTRIBUTE_DECORATOR__POST_R3__", function() { return CREATE_ATTRIBUTE_DECORATOR__POST_R3__; });
  45586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵChangeDetectorStatus", function() { return ChangeDetectorStatus; });
  45587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCodegenComponentFactoryResolver", function() { return CodegenComponentFactoryResolver; });
  45588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAndAllComponentsAsync__POST_R3__", function() { return Compiler_compileModuleAndAllComponentsAsync__POST_R3__; });
  45589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAndAllComponentsSync__POST_R3__", function() { return Compiler_compileModuleAndAllComponentsSync__POST_R3__; });
  45590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleAsync__POST_R3__", function() { return Compiler_compileModuleAsync__POST_R3__; });
  45591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCompiler_compileModuleSync__POST_R3__", function() { return Compiler_compileModuleSync__POST_R3__; });
  45592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵComponentFactory", function() { return ComponentFactory; });
  45593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵConsole", function() { return Console; });
  45594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵDEFAULT_LOCALE_ID", function() { return DEFAULT_LOCALE_ID; });
  45595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵEMPTY_ARRAY", function() { return EMPTY_ARRAY$4; });
  45596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵEMPTY_MAP", function() { return EMPTY_MAP; });
  45597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵINJECTOR_IMPL__POST_R3__", function() { return INJECTOR_IMPL__POST_R3__; });
  45598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵINJECTOR_SCOPE", function() { return INJECTOR_SCOPE; });
  45599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵLifecycleHooksFeature", function() { return LifecycleHooksFeature; });
  45600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵLocaleDataIndex", function() { return LocaleDataIndex; });
  45601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_COMP_DEF", function() { return NG_COMP_DEF; });
  45602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_DIR_DEF", function() { return NG_DIR_DEF; });
  45603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_ELEMENT_ID", function() { return NG_ELEMENT_ID; });
  45604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_INJ_DEF", function() { return NG_INJ_DEF; });
  45605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_MOD_DEF", function() { return NG_MOD_DEF; });
  45606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_PIPE_DEF", function() { return NG_PIPE_DEF; });
  45607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNG_PROV_DEF", function() { return NG_PROV_DEF; });
  45608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR", function() { return NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR; });
  45609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNO_CHANGE", function() { return NO_CHANGE; });
  45610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNgModuleFactory", function() { return NgModuleFactory$1; });
  45611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNoopNgZone", function() { return NoopNgZone; });
  45612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵReflectionCapabilities", function() { return ReflectionCapabilities; });
  45613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵRender3ComponentFactory", function() { return ComponentFactory$1; });
  45614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵRender3ComponentRef", function() { return ComponentRef$1; });
  45615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵRender3NgModuleRef", function() { return NgModuleRef$1; });
  45616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__", function() { return SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__; });
  45617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_COMPONENT__POST_R3__", function() { return SWITCH_COMPILE_COMPONENT__POST_R3__; });
  45618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__", function() { return SWITCH_COMPILE_DIRECTIVE__POST_R3__; });
  45619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_INJECTABLE__POST_R3__", function() { return SWITCH_COMPILE_INJECTABLE__POST_R3__; });
  45620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_NGMODULE__POST_R3__", function() { return SWITCH_COMPILE_NGMODULE__POST_R3__; });
  45621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_COMPILE_PIPE__POST_R3__", function() { return SWITCH_COMPILE_PIPE__POST_R3__; });
  45622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_ELEMENT_REF_FACTORY__POST_R3__", function() { return SWITCH_ELEMENT_REF_FACTORY__POST_R3__; });
  45623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_IVY_ENABLED__POST_R3__", function() { return SWITCH_IVY_ENABLED__POST_R3__; });
  45624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_RENDERER2_FACTORY__POST_R3__", function() { return SWITCH_RENDERER2_FACTORY__POST_R3__; });
  45625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_TEMPLATE_REF_FACTORY__POST_R3__", function() { return SWITCH_TEMPLATE_REF_FACTORY__POST_R3__; });
  45626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__", function() { return SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__; });
  45627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ_sanitizeHtml", function() { return _sanitizeHtml; });
  45628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵ_sanitizeUrl", function() { return _sanitizeUrl; });
  45629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵallowSanitizationBypassAndThrow", function() { return allowSanitizationBypassAndThrow; });
  45630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵand", function() { return anchorDef; });
  45631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_a", function() { return isForwardRef; });
  45632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_b", function() { return injectInjectorOnly; });
  45633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_ba", function() { return DebugContext; });
  45634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bb", function() { return NgOnChangesFeatureImpl; });
  45635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bc", function() { return SCHEDULER; });
  45636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bd", function() { return injectAttributeImpl; });
  45637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_be", function() { return getLView; });
  45638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bf", function() { return getBindingRoot; });
  45639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bg", function() { return nextContextImpl; });
  45640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bi", function() { return pureFunction1Internal; });
  45641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bj", function() { return pureFunction2Internal; });
  45642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bk", function() { return pureFunction3Internal; });
  45643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bl", function() { return pureFunction4Internal; });
  45644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bm", function() { return pureFunctionVInternal; });
  45645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bn", function() { return getUrlSanitizer; });
  45646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bo", function() { return makePropDecorator; });
  45647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bp", function() { return makeParamDecorator; });
  45648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bq", function() { return getClosureSafeProperty; });
  45649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_br", function() { return NullInjector; });
  45650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bs", function() { return getInjectImplementation; });
  45651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bu", function() { return getNativeByTNode; });
  45652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bw", function() { return getRootContext; });
  45653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bx", function() { return i18nPostprocess; });
  45654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_by", function() { return trustedHTMLFromString; });
  45655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_bz", function() { return trustedScriptURLFromString; });
  45656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_c", function() { return ReflectiveInjector_; });
  45657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_ca", function() { return trustedScriptFromString; });
  45658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_d", function() { return ReflectiveDependency; });
  45659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_e", function() { return resolveReflectiveProviders; });
  45660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_f", function() { return _appIdRandomProviderFactory; });
  45661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_g", function() { return injectRenderer2; });
  45662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_h", function() { return injectElementRef; });
  45663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_i", function() { return createElementRef; });
  45664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_j", function() { return getModuleFactory__PRE_R3__; });
  45665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_k", function() { return injectTemplateRef; });
  45666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_l", function() { return createTemplateRef; });
  45667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_m", function() { return injectViewContainerRef; });
  45668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_n", function() { return DebugNode__PRE_R3__; });
  45669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_o", function() { return DebugElement__PRE_R3__; });
  45670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_p", function() { return getDebugNodeR2__PRE_R3__; });
  45671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_q", function() { return injectChangeDetectorRef; });
  45672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_r", function() { return DefaultIterableDifferFactory; });
  45673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_s", function() { return DefaultKeyValueDifferFactory; });
  45674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_t", function() { return _iterableDiffersFactory; });
  45675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_u", function() { return _keyValueDiffersFactory; });
  45676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_v", function() { return _localeFactory; });
  45677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_w", function() { return APPLICATION_MODULE_PROVIDERS; });
  45678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_x", function() { return zoneSchedulerFactory; });
  45679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_y", function() { return USD_CURRENCY_CODE; });
  45680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_core_core_z", function() { return _def; });
  45681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustHtml", function() { return bypassSanitizationTrustHtml; });
  45682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustResourceUrl", function() { return bypassSanitizationTrustResourceUrl; });
  45683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustScript", function() { return bypassSanitizationTrustScript; });
  45684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustStyle", function() { return bypassSanitizationTrustStyle; });
  45685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵbypassSanitizationTrustUrl", function() { return bypassSanitizationTrustUrl; });
  45686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵccf", function() { return createComponentFactory; });
  45687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵclearOverrides", function() { return clearOverrides; });
  45688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵclearResolutionOfComponentResourcesQueue", function() { return clearResolutionOfComponentResourcesQueue; });
  45689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcmf", function() { return createNgModuleFactory; });
  45690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileComponent", function() { return compileComponent; });
  45691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileDirective", function() { return compileDirective; });
  45692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileNgModule", function() { return compileNgModule; });
  45693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileNgModuleDefs", function() { return compileNgModuleDefs; });
  45694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompileNgModuleFactory__POST_R3__", function() { return compileNgModuleFactory__POST_R3__; });
  45695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcompilePipe", function() { return compilePipe; });
  45696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcreateInjector", function() { return createInjector; });
  45697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcrt", function() { return createRendererType2; });
  45698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdefaultIterableDiffers", function() { return defaultIterableDiffers; });
  45699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdefaultKeyValueDiffers", function() { return defaultKeyValueDiffers; });
  45700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdetectChanges", function() { return detectChanges; });
  45701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdevModeEqual", function() { return devModeEqual; });
  45702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵdid", function() { return directiveDef; });
  45703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵeld", function() { return elementDef; });
  45704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵfindLocaleData", function() { return findLocaleData; });
  45705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵflushModuleScopingQueueAsMuchAsPossible", function() { return flushModuleScopingQueueAsMuchAsPossible; });
  45706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetComponentViewDefinitionFactory", function() { return getComponentViewDefinitionFactory; });
  45707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetDebugNodeR2", function() { return getDebugNodeR2; });
  45708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetDebugNode__POST_R3__", function() { return getDebugNode__POST_R3__; });
  45709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetDirectives", function() { return getDirectives; });
  45710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetHostElement", function() { return getHostElement; });
  45711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetInjectableDef", function() { return getInjectableDef; });
  45712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetLContext", function() { return getLContext; });
  45713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetLocaleCurrencyCode", function() { return getLocaleCurrencyCode; });
  45714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetLocalePluralCase", function() { return getLocalePluralCase; });
  45715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetModuleFactory__POST_R3__", function() { return getModuleFactory__POST_R3__; });
  45716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetSanitizationBypassType", function() { return getSanitizationBypassType; });
  45717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵglobal", function() { return _global; });
  45718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵinitServicesIfNeeded", function() { return initServicesIfNeeded; });
  45719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵinlineInterpolate", function() { return inlineInterpolate; });
  45720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵinterpolate", function() { return interpolate; });
  45721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisBoundToModule__POST_R3__", function() { return isBoundToModule__POST_R3__; });
  45722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisDefaultChangeDetectionStrategy", function() { return isDefaultChangeDetectionStrategy; });
  45723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisListLikeIterable", function() { return isListLikeIterable; });
  45724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisObservable", function() { return isObservable; });
  45725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵisPromise", function() { return isPromise; });
  45726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵivyEnabled", function() { return ivyEnabled; });
  45727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmakeDecorator", function() { return makeDecorator; });
  45728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmarkDirty", function() { return markDirty; });
  45729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmod", function() { return moduleDef; });
  45730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmpd", function() { return moduleProvideDef; });
  45731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵncd", function() { return ngContentDef; });
  45732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵnoSideEffects", function() { return noSideEffects; });
  45733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵnov", function() { return nodeValue; });
  45734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵoverrideComponentView", function() { return overrideComponentView; });
  45735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵoverrideProvider", function() { return overrideProvider; });
  45736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpad", function() { return pureArrayDef; });
  45737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpatchComponentDefWithScope", function() { return patchComponentDefWithScope; });
  45738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpid", function() { return pipeDef; });
  45739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpod", function() { return pureObjectDef; });
  45740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵppd", function() { return purePipeDef; });
  45741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵprd", function() { return providerDef; });
  45742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpublishDefaultGlobalUtils", function() { return publishDefaultGlobalUtils; });
  45743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵpublishGlobalUtil", function() { return publishGlobalUtil; });
  45744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵqud", function() { return queryDef; });
  45745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵregisterLocaleData", function() { return registerLocaleData; });
  45746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵregisterModuleFactory", function() { return registerModuleFactory; });
  45747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵregisterNgModuleType", function() { return registerNgModuleType; });
  45748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵrenderComponent", function() { return renderComponent$1; });
  45749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵresetCompiledComponents", function() { return resetCompiledComponents; });
  45750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵresetJitOptions", function() { return resetJitOptions; });
  45751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵresolveComponentResources", function() { return resolveComponentResources; });
  45752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetClassMetadata", function() { return setClassMetadata; });
  45753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetCurrentInjector", function() { return setCurrentInjector; });
  45754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetDocument", function() { return setDocument; });
  45755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetLocaleId", function() { return setLocaleId; });
  45756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵstore", function() { return store; });
  45757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵstringify", function() { return stringify; });
  45758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵted", function() { return textDef; });
  45759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵtransitiveScopesFor", function() { return transitiveScopesFor; });
  45760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵunregisterLocaleData", function() { return unregisterAllLocaleData; });
  45761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵunv", function() { return unwrapValue; });
  45762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵunwrapSafeValue", function() { return unwrapSafeValue; });
  45763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵvid", function() { return viewDef; });
  45764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵwhenRendered", function() { return whenRendered; });
  45765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵCopyDefinitionFeature", function() { return ɵɵCopyDefinitionFeature; });
  45766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵInheritDefinitionFeature", function() { return ɵɵInheritDefinitionFeature; });
  45767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵNgOnChangesFeature", function() { return ɵɵNgOnChangesFeature; });
  45768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵProvidersFeature", function() { return ɵɵProvidersFeature; });
  45769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵadvance", function() { return ɵɵadvance; });
  45770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattribute", function() { return ɵɵattribute; });
  45771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate1", function() { return ɵɵattributeInterpolate1; });
  45772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate2", function() { return ɵɵattributeInterpolate2; });
  45773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate3", function() { return ɵɵattributeInterpolate3; });
  45774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate4", function() { return ɵɵattributeInterpolate4; });
  45775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate5", function() { return ɵɵattributeInterpolate5; });
  45776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate6", function() { return ɵɵattributeInterpolate6; });
  45777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate7", function() { return ɵɵattributeInterpolate7; });
  45778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolate8", function() { return ɵɵattributeInterpolate8; });
  45779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵattributeInterpolateV", function() { return ɵɵattributeInterpolateV; });
  45780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMap", function() { return ɵɵclassMap; });
  45781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate1", function() { return ɵɵclassMapInterpolate1; });
  45782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate2", function() { return ɵɵclassMapInterpolate2; });
  45783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate3", function() { return ɵɵclassMapInterpolate3; });
  45784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate4", function() { return ɵɵclassMapInterpolate4; });
  45785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate5", function() { return ɵɵclassMapInterpolate5; });
  45786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate6", function() { return ɵɵclassMapInterpolate6; });
  45787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate7", function() { return ɵɵclassMapInterpolate7; });
  45788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolate8", function() { return ɵɵclassMapInterpolate8; });
  45789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassMapInterpolateV", function() { return ɵɵclassMapInterpolateV; });
  45790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵclassProp", function() { return ɵɵclassProp; });
  45791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵcontentQuery", function() { return ɵɵcontentQuery; });
  45792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineComponent", function() { return ɵɵdefineComponent; });
  45793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineDirective", function() { return ɵɵdefineDirective; });
  45794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineInjectable", function() { return ɵɵdefineInjectable; });
  45795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineInjector", function() { return ɵɵdefineInjector; });
  45796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefineNgModule", function() { return ɵɵdefineNgModule; });
  45797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdefinePipe", function() { return ɵɵdefinePipe; });
  45798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdirectiveInject", function() { return ɵɵdirectiveInject; });
  45799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵdisableBindings", function() { return ɵɵdisableBindings; });
  45800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelement", function() { return ɵɵelement; });
  45801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementContainer", function() { return ɵɵelementContainer; });
  45802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementContainerEnd", function() { return ɵɵelementContainerEnd; });
  45803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementContainerStart", function() { return ɵɵelementContainerStart; });
  45804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementEnd", function() { return ɵɵelementEnd; });
  45805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵelementStart", function() { return ɵɵelementStart; });
  45806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵenableBindings", function() { return ɵɵenableBindings; });
  45807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵgetCurrentView", function() { return ɵɵgetCurrentView; });
  45808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵgetFactoryOf", function() { return ɵɵgetFactoryOf; });
  45809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵgetInheritedFactory", function() { return ɵɵgetInheritedFactory; });
  45810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵhostProperty", function() { return ɵɵhostProperty; });
  45811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18n", function() { return ɵɵi18n; });
  45812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nApply", function() { return ɵɵi18nApply; });
  45813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nAttributes", function() { return ɵɵi18nAttributes; });
  45814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nEnd", function() { return ɵɵi18nEnd; });
  45815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nExp", function() { return ɵɵi18nExp; });
  45816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nPostprocess", function() { return ɵɵi18nPostprocess; });
  45817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵi18nStart", function() { return ɵɵi18nStart; });
  45818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinject", function() { return ɵɵinject; });
  45819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinjectAttribute", function() { return ɵɵinjectAttribute; });
  45820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinjectPipeChangeDetectorRef", function() { return ɵɵinjectPipeChangeDetectorRef; });
  45821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinvalidFactory", function() { return ɵɵinvalidFactory; });
  45822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵinvalidFactoryDep", function() { return ɵɵinvalidFactoryDep; });
  45823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵlistener", function() { return ɵɵlistener; });
  45824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵloadQuery", function() { return ɵɵloadQuery; });
  45825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceHTML", function() { return ɵɵnamespaceHTML; });
  45826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceMathML", function() { return ɵɵnamespaceMathML; });
  45827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵnamespaceSVG", function() { return ɵɵnamespaceSVG; });
  45828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵnextContext", function() { return ɵɵnextContext; });
  45829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipe", function() { return ɵɵpipe; });
  45830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind1", function() { return ɵɵpipeBind1; });
  45831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind2", function() { return ɵɵpipeBind2; });
  45832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind3", function() { return ɵɵpipeBind3; });
  45833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBind4", function() { return ɵɵpipeBind4; });
  45834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpipeBindV", function() { return ɵɵpipeBindV; });
  45835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵprojection", function() { return ɵɵprojection; });
  45836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵprojectionDef", function() { return ɵɵprojectionDef; });
  45837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵproperty", function() { return ɵɵproperty; });
  45838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate", function() { return ɵɵpropertyInterpolate; });
  45839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate1", function() { return ɵɵpropertyInterpolate1; });
  45840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate2", function() { return ɵɵpropertyInterpolate2; });
  45841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate3", function() { return ɵɵpropertyInterpolate3; });
  45842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate4", function() { return ɵɵpropertyInterpolate4; });
  45843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate5", function() { return ɵɵpropertyInterpolate5; });
  45844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate6", function() { return ɵɵpropertyInterpolate6; });
  45845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate7", function() { return ɵɵpropertyInterpolate7; });
  45846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolate8", function() { return ɵɵpropertyInterpolate8; });
  45847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpropertyInterpolateV", function() { return ɵɵpropertyInterpolateV; });
  45848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction0", function() { return ɵɵpureFunction0; });
  45849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction1", function() { return ɵɵpureFunction1; });
  45850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction2", function() { return ɵɵpureFunction2; });
  45851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction3", function() { return ɵɵpureFunction3; });
  45852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction4", function() { return ɵɵpureFunction4; });
  45853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction5", function() { return ɵɵpureFunction5; });
  45854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction6", function() { return ɵɵpureFunction6; });
  45855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction7", function() { return ɵɵpureFunction7; });
  45856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunction8", function() { return ɵɵpureFunction8; });
  45857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵpureFunctionV", function() { return ɵɵpureFunctionV; });
  45858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵqueryRefresh", function() { return ɵɵqueryRefresh; });
  45859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵreference", function() { return ɵɵreference; });
  45860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵresolveBody", function() { return ɵɵresolveBody; });
  45861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵresolveDocument", function() { return ɵɵresolveDocument; });
  45862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵresolveWindow", function() { return ɵɵresolveWindow; });
  45863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵrestoreView", function() { return ɵɵrestoreView; });
  45864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeHtml", function() { return ɵɵsanitizeHtml; });
  45865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeResourceUrl", function() { return ɵɵsanitizeResourceUrl; });
  45866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeScript", function() { return ɵɵsanitizeScript; });
  45867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeStyle", function() { return ɵɵsanitizeStyle; });
  45868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeUrl", function() { return ɵɵsanitizeUrl; });
  45869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsanitizeUrlOrResourceUrl", function() { return ɵɵsanitizeUrlOrResourceUrl; });
  45870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsetComponentScope", function() { return ɵɵsetComponentScope; });
  45871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsetNgModuleScope", function() { return ɵɵsetNgModuleScope; });
  45872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstaticContentQuery", function() { return ɵɵstaticContentQuery; });
  45873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstaticViewQuery", function() { return ɵɵstaticViewQuery; });
  45874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMap", function() { return ɵɵstyleMap; });
  45875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate1", function() { return ɵɵstyleMapInterpolate1; });
  45876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate2", function() { return ɵɵstyleMapInterpolate2; });
  45877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate3", function() { return ɵɵstyleMapInterpolate3; });
  45878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate4", function() { return ɵɵstyleMapInterpolate4; });
  45879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate5", function() { return ɵɵstyleMapInterpolate5; });
  45880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate6", function() { return ɵɵstyleMapInterpolate6; });
  45881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate7", function() { return ɵɵstyleMapInterpolate7; });
  45882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolate8", function() { return ɵɵstyleMapInterpolate8; });
  45883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleMapInterpolateV", function() { return ɵɵstyleMapInterpolateV; });
  45884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstyleProp", function() { return ɵɵstyleProp; });
  45885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate1", function() { return ɵɵstylePropInterpolate1; });
  45886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate2", function() { return ɵɵstylePropInterpolate2; });
  45887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate3", function() { return ɵɵstylePropInterpolate3; });
  45888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate4", function() { return ɵɵstylePropInterpolate4; });
  45889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate5", function() { return ɵɵstylePropInterpolate5; });
  45890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate6", function() { return ɵɵstylePropInterpolate6; });
  45891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate7", function() { return ɵɵstylePropInterpolate7; });
  45892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolate8", function() { return ɵɵstylePropInterpolate8; });
  45893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵstylePropInterpolateV", function() { return ɵɵstylePropInterpolateV; });
  45894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsyntheticHostListener", function() { return ɵɵsyntheticHostListener; });
  45895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵsyntheticHostProperty", function() { return ɵɵsyntheticHostProperty; });
  45896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtemplate", function() { return ɵɵtemplate; });
  45897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtemplateRefExtractor", function() { return ɵɵtemplateRefExtractor; });
  45898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtext", function() { return ɵɵtext; });
  45899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate", function() { return ɵɵtextInterpolate; });
  45900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate1", function() { return ɵɵtextInterpolate1; });
  45901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate2", function() { return ɵɵtextInterpolate2; });
  45902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate3", function() { return ɵɵtextInterpolate3; });
  45903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate4", function() { return ɵɵtextInterpolate4; });
  45904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate5", function() { return ɵɵtextInterpolate5; });
  45905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate6", function() { return ɵɵtextInterpolate6; });
  45906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate7", function() { return ɵɵtextInterpolate7; });
  45907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolate8", function() { return ɵɵtextInterpolate8; });
  45908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtextInterpolateV", function() { return ɵɵtextInterpolateV; });
  45909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtrustConstantHtml", function() { return ɵɵtrustConstantHtml; });
  45910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtrustConstantResourceUrl", function() { return ɵɵtrustConstantResourceUrl; });
  45911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵtrustConstantScript", function() { return ɵɵtrustConstantScript; });
  45912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵɵviewQuery", function() { return ɵɵviewQuery; });
  45913. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp");
  45914. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  45915. /**
  45916. * @license Angular v11.0.4
  45917. * (c) 2010-2020 Google LLC. https://angular.io/
  45918. * License: MIT
  45919. */
  45920. /**
  45921. * @license
  45922. * Copyright Google LLC All Rights Reserved.
  45923. *
  45924. * Use of this source code is governed by an MIT-style license that can be
  45925. * found in the LICENSE file at https://angular.io/license
  45926. */
  45927. function getClosureSafeProperty(objWithPropertyToExtract) {
  45928. for (let key in objWithPropertyToExtract) {
  45929. if (objWithPropertyToExtract[key] === getClosureSafeProperty) {
  45930. return key;
  45931. }
  45932. }
  45933. throw Error('Could not find renamed property on target object.');
  45934. }
  45935. /**
  45936. * Sets properties on a target object from a source object, but only if
  45937. * the property doesn't already exist on the target object.
  45938. * @param target The target to set properties on
  45939. * @param source The source of the property keys and values to set
  45940. */
  45941. function fillProperties(target, source) {
  45942. for (const key in source) {
  45943. if (source.hasOwnProperty(key) && !target.hasOwnProperty(key)) {
  45944. target[key] = source[key];
  45945. }
  45946. }
  45947. }
  45948. /**
  45949. * @license
  45950. * Copyright Google LLC All Rights Reserved.
  45951. *
  45952. * Use of this source code is governed by an MIT-style license that can be
  45953. * found in the LICENSE file at https://angular.io/license
  45954. */
  45955. function stringify(token) {
  45956. if (typeof token === 'string') {
  45957. return token;
  45958. }
  45959. if (Array.isArray(token)) {
  45960. return '[' + token.map(stringify).join(', ') + ']';
  45961. }
  45962. if (token == null) {
  45963. return '' + token;
  45964. }
  45965. if (token.overriddenName) {
  45966. return `${token.overriddenName}`;
  45967. }
  45968. if (token.name) {
  45969. return `${token.name}`;
  45970. }
  45971. const res = token.toString();
  45972. if (res == null) {
  45973. return '' + res;
  45974. }
  45975. const newLineIndex = res.indexOf('\n');
  45976. return newLineIndex === -1 ? res : res.substring(0, newLineIndex);
  45977. }
  45978. /**
  45979. * Concatenates two strings with separator, allocating new strings only when necessary.
  45980. *
  45981. * @param before before string.
  45982. * @param separator separator string.
  45983. * @param after after string.
  45984. * @returns concatenated string.
  45985. */
  45986. function concatStringsWithSpace(before, after) {
  45987. return (before == null || before === '') ?
  45988. (after === null ? '' : after) :
  45989. ((after == null || after === '') ? before : before + ' ' + after);
  45990. }
  45991. /**
  45992. * @license
  45993. * Copyright Google LLC All Rights Reserved.
  45994. *
  45995. * Use of this source code is governed by an MIT-style license that can be
  45996. * found in the LICENSE file at https://angular.io/license
  45997. */
  45998. const __forward_ref__ = getClosureSafeProperty({ __forward_ref__: getClosureSafeProperty });
  45999. /**
  46000. * Allows to refer to references which are not yet defined.
  46001. *
  46002. * For instance, `forwardRef` is used when the `token` which we need to refer to for the purposes of
  46003. * DI is declared, but not yet defined. It is also used when the `token` which we use when creating
  46004. * a query is not yet defined.
  46005. *
  46006. * @usageNotes
  46007. * ### Example
  46008. * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='forward_ref'}
  46009. * @publicApi
  46010. */
  46011. function forwardRef(forwardRefFn) {
  46012. forwardRefFn.__forward_ref__ = forwardRef;
  46013. forwardRefFn.toString = function () {
  46014. return stringify(this());
  46015. };
  46016. return forwardRefFn;
  46017. }
  46018. /**
  46019. * Lazily retrieves the reference value from a forwardRef.
  46020. *
  46021. * Acts as the identity function when given a non-forward-ref value.
  46022. *
  46023. * @usageNotes
  46024. * ### Example
  46025. *
  46026. * {@example core/di/ts/forward_ref/forward_ref_spec.ts region='resolve_forward_ref'}
  46027. *
  46028. * @see `forwardRef`
  46029. * @publicApi
  46030. */
  46031. function resolveForwardRef(type) {
  46032. return isForwardRef(type) ? type() : type;
  46033. }
  46034. /** Checks whether a function is wrapped by a `forwardRef`. */
  46035. function isForwardRef(fn) {
  46036. return typeof fn === 'function' && fn.hasOwnProperty(__forward_ref__) &&
  46037. fn.__forward_ref__ === forwardRef;
  46038. }
  46039. /**
  46040. * @license
  46041. * Copyright Google LLC All Rights Reserved.
  46042. *
  46043. * Use of this source code is governed by an MIT-style license that can be
  46044. * found in the LICENSE file at https://angular.io/license
  46045. */
  46046. function assertNumber(actual, msg) {
  46047. if (!(typeof actual === 'number')) {
  46048. throwError(msg, typeof actual, 'number', '===');
  46049. }
  46050. }
  46051. function assertNumberInRange(actual, minInclusive, maxInclusive) {
  46052. assertNumber(actual, 'Expected a number');
  46053. assertLessThanOrEqual(actual, maxInclusive, 'Expected number to be less than or equal to');
  46054. assertGreaterThanOrEqual(actual, minInclusive, 'Expected number to be greater than or equal to');
  46055. }
  46056. function assertString(actual, msg) {
  46057. if (!(typeof actual === 'string')) {
  46058. throwError(msg, actual === null ? 'null' : typeof actual, 'string', '===');
  46059. }
  46060. }
  46061. function assertFunction(actual, msg) {
  46062. if (!(typeof actual === 'function')) {
  46063. throwError(msg, actual === null ? 'null' : typeof actual, 'function', '===');
  46064. }
  46065. }
  46066. function assertEqual(actual, expected, msg) {
  46067. if (!(actual == expected)) {
  46068. throwError(msg, actual, expected, '==');
  46069. }
  46070. }
  46071. function assertNotEqual(actual, expected, msg) {
  46072. if (!(actual != expected)) {
  46073. throwError(msg, actual, expected, '!=');
  46074. }
  46075. }
  46076. function assertSame(actual, expected, msg) {
  46077. if (!(actual === expected)) {
  46078. throwError(msg, actual, expected, '===');
  46079. }
  46080. }
  46081. function assertNotSame(actual, expected, msg) {
  46082. if (!(actual !== expected)) {
  46083. throwError(msg, actual, expected, '!==');
  46084. }
  46085. }
  46086. function assertLessThan(actual, expected, msg) {
  46087. if (!(actual < expected)) {
  46088. throwError(msg, actual, expected, '<');
  46089. }
  46090. }
  46091. function assertLessThanOrEqual(actual, expected, msg) {
  46092. if (!(actual <= expected)) {
  46093. throwError(msg, actual, expected, '<=');
  46094. }
  46095. }
  46096. function assertGreaterThan(actual, expected, msg) {
  46097. if (!(actual > expected)) {
  46098. throwError(msg, actual, expected, '>');
  46099. }
  46100. }
  46101. function assertGreaterThanOrEqual(actual, expected, msg) {
  46102. if (!(actual >= expected)) {
  46103. throwError(msg, actual, expected, '>=');
  46104. }
  46105. }
  46106. function assertNotDefined(actual, msg) {
  46107. if (actual != null) {
  46108. throwError(msg, actual, null, '==');
  46109. }
  46110. }
  46111. function assertDefined(actual, msg) {
  46112. if (actual == null) {
  46113. throwError(msg, actual, null, '!=');
  46114. }
  46115. }
  46116. function throwError(msg, actual, expected, comparison) {
  46117. throw new Error(`ASSERTION ERROR: ${msg}` +
  46118. (comparison == null ? '' : ` [Expected=> ${expected} ${comparison} ${actual} <=Actual]`));
  46119. }
  46120. function assertDomNode(node) {
  46121. // If we're in a worker, `Node` will not be defined.
  46122. if (!(typeof Node !== 'undefined' && node instanceof Node) &&
  46123. !(typeof node === 'object' && node != null &&
  46124. node.constructor.name === 'WebWorkerRenderNode')) {
  46125. throwError(`The provided value must be an instance of a DOM Node but got ${stringify(node)}`);
  46126. }
  46127. }
  46128. function assertIndexInRange(arr, index) {
  46129. assertDefined(arr, 'Array must be defined.');
  46130. const maxLen = arr.length;
  46131. if (index < 0 || index >= maxLen) {
  46132. throwError(`Index expected to be less than ${maxLen} but got ${index}`);
  46133. }
  46134. }
  46135. function assertOneOf(value, ...validValues) {
  46136. if (validValues.indexOf(value) !== -1)
  46137. return true;
  46138. throwError(`Expected value to be one of ${JSON.stringify(validValues)} but was ${JSON.stringify(value)}.`);
  46139. }
  46140. /**
  46141. * @license
  46142. * Copyright Google LLC All Rights Reserved.
  46143. *
  46144. * Use of this source code is governed by an MIT-style license that can be
  46145. * found in the LICENSE file at https://angular.io/license
  46146. */
  46147. /**
  46148. * Construct an `InjectableDef` which defines how a token will be constructed by the DI system, and
  46149. * in which injectors (if any) it will be available.
  46150. *
  46151. * This should be assigned to a static `ɵprov` field on a type, which will then be an
  46152. * `InjectableType`.
  46153. *
  46154. * Options:
  46155. * * `providedIn` determines which injectors will include the injectable, by either associating it
  46156. * with an `@NgModule` or other `InjectorType`, or by specifying that this injectable should be
  46157. * provided in the `'root'` injector, which will be the application-level injector in most apps.
  46158. * * `factory` gives the zero argument function which will create an instance of the injectable.
  46159. * The factory can call `inject` to access the `Injector` and request injection of dependencies.
  46160. *
  46161. * @codeGenApi
  46162. * @publicApi This instruction has been emitted by ViewEngine for some time and is deployed to npm.
  46163. */
  46164. function ɵɵdefineInjectable(opts) {
  46165. return {
  46166. token: opts.token,
  46167. providedIn: opts.providedIn || null,
  46168. factory: opts.factory,
  46169. value: undefined,
  46170. };
  46171. }
  46172. /**
  46173. * @deprecated in v8, delete after v10. This API should be used only by generated code, and that
  46174. * code should now use ɵɵdefineInjectable instead.
  46175. * @publicApi
  46176. */
  46177. const defineInjectable = ɵɵdefineInjectable;
  46178. /**
  46179. * Construct an `InjectorDef` which configures an injector.
  46180. *
  46181. * This should be assigned to a static injector def (`ɵinj`) field on a type, which will then be an
  46182. * `InjectorType`.
  46183. *
  46184. * Options:
  46185. *
  46186. * * `factory`: an `InjectorType` is an instantiable type, so a zero argument `factory` function to
  46187. * create the type must be provided. If that factory function needs to inject arguments, it can
  46188. * use the `inject` function.
  46189. * * `providers`: an optional array of providers to add to the injector. Each provider must
  46190. * either have a factory or point to a type which has a `ɵprov` static property (the
  46191. * type must be an `InjectableType`).
  46192. * * `imports`: an optional array of imports of other `InjectorType`s or `InjectorTypeWithModule`s
  46193. * whose providers will also be added to the injector. Locally provided types will override
  46194. * providers from imports.
  46195. *
  46196. * @codeGenApi
  46197. */
  46198. function ɵɵdefineInjector(options) {
  46199. return {
  46200. factory: options.factory,
  46201. providers: options.providers || [],
  46202. imports: options.imports || [],
  46203. };
  46204. }
  46205. /**
  46206. * Read the injectable def (`ɵprov`) for `type` in a way which is immune to accidentally reading
  46207. * inherited value.
  46208. *
  46209. * @param type A type which may have its own (non-inherited) `ɵprov`.
  46210. */
  46211. function getInjectableDef(type) {
  46212. return getOwnDefinition(type, NG_PROV_DEF) || getOwnDefinition(type, NG_INJECTABLE_DEF);
  46213. }
  46214. /**
  46215. * Return definition only if it is defined directly on `type` and is not inherited from a base
  46216. * class of `type`.
  46217. */
  46218. function getOwnDefinition(type, field) {
  46219. return type.hasOwnProperty(field) ? type[field] : null;
  46220. }
  46221. /**
  46222. * Read the injectable def (`ɵprov`) for `type` or read the `ɵprov` from one of its ancestors.
  46223. *
  46224. * @param type A type which may have `ɵprov`, via inheritance.
  46225. *
  46226. * @deprecated Will be removed in a future version of Angular, where an error will occur in the
  46227. * scenario if we find the `ɵprov` on an ancestor only.
  46228. */
  46229. function getInheritedInjectableDef(type) {
  46230. const def = type && (type[NG_PROV_DEF] || type[NG_INJECTABLE_DEF]);
  46231. if (def) {
  46232. const typeName = getTypeName(type);
  46233. // TODO(FW-1307): Re-add ngDevMode when closure can handle it
  46234. // ngDevMode &&
  46235. console.warn(`DEPRECATED: DI is instantiating a token "${typeName}" that inherits its @Injectable decorator but does not provide one itself.\n` +
  46236. `This will become an error in a future version of Angular. Please add @Injectable() to the "${typeName}" class.`);
  46237. return def;
  46238. }
  46239. else {
  46240. return null;
  46241. }
  46242. }
  46243. /** Gets the name of a type, accounting for some cross-browser differences. */
  46244. function getTypeName(type) {
  46245. // `Function.prototype.name` behaves differently between IE and other browsers. In most browsers
  46246. // it'll always return the name of the function itself, no matter how many other functions it
  46247. // inherits from. On IE the function doesn't have its own `name` property, but it takes it from
  46248. // the lowest level in the prototype chain. E.g. if we have `class Foo extends Parent` most
  46249. // browsers will evaluate `Foo.name` to `Foo` while IE will return `Parent`. We work around
  46250. // the issue by converting the function to a string and parsing its name out that way via a regex.
  46251. if (type.hasOwnProperty('name')) {
  46252. return type.name;
  46253. }
  46254. const match = ('' + type).match(/^function\s*([^\s(]+)/);
  46255. return match === null ? '' : match[1];
  46256. }
  46257. /**
  46258. * Read the injector def type in a way which is immune to accidentally reading inherited value.
  46259. *
  46260. * @param type type which may have an injector def (`ɵinj`)
  46261. */
  46262. function getInjectorDef(type) {
  46263. return type && (type.hasOwnProperty(NG_INJ_DEF) || type.hasOwnProperty(NG_INJECTOR_DEF)) ?
  46264. type[NG_INJ_DEF] :
  46265. null;
  46266. }
  46267. const NG_PROV_DEF = getClosureSafeProperty({ ɵprov: getClosureSafeProperty });
  46268. const NG_INJ_DEF = getClosureSafeProperty({ ɵinj: getClosureSafeProperty });
  46269. // We need to keep these around so we can read off old defs if new defs are unavailable
  46270. const NG_INJECTABLE_DEF = getClosureSafeProperty({ ngInjectableDef: getClosureSafeProperty });
  46271. const NG_INJECTOR_DEF = getClosureSafeProperty({ ngInjectorDef: getClosureSafeProperty });
  46272. /**
  46273. * @license
  46274. * Copyright Google LLC All Rights Reserved.
  46275. *
  46276. * Use of this source code is governed by an MIT-style license that can be
  46277. * found in the LICENSE file at https://angular.io/license
  46278. */
  46279. /**
  46280. * Injection flags for DI.
  46281. *
  46282. * @publicApi
  46283. */
  46284. var InjectFlags;
  46285. (function (InjectFlags) {
  46286. // TODO(alxhub): make this 'const' when ngc no longer writes exports of it into ngfactory files.
  46287. /** Check self and check parent injector if needed */
  46288. InjectFlags[InjectFlags["Default"] = 0] = "Default";
  46289. /**
  46290. * Specifies that an injector should retrieve a dependency from any injector until reaching the
  46291. * host element of the current component. (Only used with Element Injector)
  46292. */
  46293. InjectFlags[InjectFlags["Host"] = 1] = "Host";
  46294. /** Don't ascend to ancestors of the node requesting injection. */
  46295. InjectFlags[InjectFlags["Self"] = 2] = "Self";
  46296. /** Skip the node that is requesting injection. */
  46297. InjectFlags[InjectFlags["SkipSelf"] = 4] = "SkipSelf";
  46298. /** Inject `defaultValue` instead if token not found. */
  46299. InjectFlags[InjectFlags["Optional"] = 8] = "Optional";
  46300. })(InjectFlags || (InjectFlags = {}));
  46301. /**
  46302. * @license
  46303. * Copyright Google LLC All Rights Reserved.
  46304. *
  46305. * Use of this source code is governed by an MIT-style license that can be
  46306. * found in the LICENSE file at https://angular.io/license
  46307. */
  46308. /**
  46309. * Current implementation of inject.
  46310. *
  46311. * By default, it is `injectInjectorOnly`, which makes it `Injector`-only aware. It can be changed
  46312. * to `directiveInject`, which brings in the `NodeInjector` system of ivy. It is designed this
  46313. * way for two reasons:
  46314. * 1. `Injector` should not depend on ivy logic.
  46315. * 2. To maintain tree shake-ability we don't want to bring in unnecessary code.
  46316. */
  46317. let _injectImplementation;
  46318. function getInjectImplementation() {
  46319. return _injectImplementation;
  46320. }
  46321. /**
  46322. * Sets the current inject implementation.
  46323. */
  46324. function setInjectImplementation(impl) {
  46325. const previous = _injectImplementation;
  46326. _injectImplementation = impl;
  46327. return previous;
  46328. }
  46329. /**
  46330. * Injects `root` tokens in limp mode.
  46331. *
  46332. * If no injector exists, we can still inject tree-shakable providers which have `providedIn` set to
  46333. * `"root"`. This is known as the limp mode injection. In such case the value is stored in the
  46334. * `InjectableDef`.
  46335. */
  46336. function injectRootLimpMode(token, notFoundValue, flags) {
  46337. const injectableDef = getInjectableDef(token);
  46338. if (injectableDef && injectableDef.providedIn == 'root') {
  46339. return injectableDef.value === undefined ? injectableDef.value = injectableDef.factory() :
  46340. injectableDef.value;
  46341. }
  46342. if (flags & InjectFlags.Optional)
  46343. return null;
  46344. if (notFoundValue !== undefined)
  46345. return notFoundValue;
  46346. throw new Error(`Injector: NOT_FOUND [${stringify(token)}]`);
  46347. }
  46348. /**
  46349. * Assert that `_injectImplementation` is not `fn`.
  46350. *
  46351. * This is useful, to prevent infinite recursion.
  46352. *
  46353. * @param fn Function which it should not equal to
  46354. */
  46355. function assertInjectImplementationNotEqual(fn) {
  46356. ngDevMode &&
  46357. assertNotEqual(_injectImplementation, fn, 'Calling ɵɵinject would cause infinite recursion');
  46358. }
  46359. /**
  46360. * @license
  46361. * Copyright Google LLC All Rights Reserved.
  46362. *
  46363. * Use of this source code is governed by an MIT-style license that can be
  46364. * found in the LICENSE file at https://angular.io/license
  46365. */
  46366. /**
  46367. * Convince closure compiler that the wrapped function has no side-effects.
  46368. *
  46369. * Closure compiler always assumes that `toString` has no side-effects. We use this quirk to
  46370. * allow us to execute a function but have closure compiler mark the call as no-side-effects.
  46371. * It is important that the return value for the `noSideEffects` function be assigned
  46372. * to something which is retained otherwise the call to `noSideEffects` will be removed by closure
  46373. * compiler.
  46374. */
  46375. function noSideEffects(fn) {
  46376. return { toString: fn }.toString();
  46377. }
  46378. /**
  46379. * @license
  46380. * Copyright Google LLC All Rights Reserved.
  46381. *
  46382. * Use of this source code is governed by an MIT-style license that can be
  46383. * found in the LICENSE file at https://angular.io/license
  46384. */
  46385. /**
  46386. * The strategy that the default change detector uses to detect changes.
  46387. * When set, takes effect the next time change detection is triggered.
  46388. *
  46389. * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
  46390. *
  46391. * @publicApi
  46392. */
  46393. var ChangeDetectionStrategy;
  46394. (function (ChangeDetectionStrategy) {
  46395. /**
  46396. * Use the `CheckOnce` strategy, meaning that automatic change detection is deactivated
  46397. * until reactivated by setting the strategy to `Default` (`CheckAlways`).
  46398. * Change detection can still be explicitly invoked.
  46399. * This strategy applies to all child directives and cannot be overridden.
  46400. */
  46401. ChangeDetectionStrategy[ChangeDetectionStrategy["OnPush"] = 0] = "OnPush";
  46402. /**
  46403. * Use the default `CheckAlways` strategy, in which change detection is automatic until
  46404. * explicitly deactivated.
  46405. */
  46406. ChangeDetectionStrategy[ChangeDetectionStrategy["Default"] = 1] = "Default";
  46407. })(ChangeDetectionStrategy || (ChangeDetectionStrategy = {}));
  46408. /**
  46409. * Defines the possible states of the default change detector.
  46410. * @see `ChangeDetectorRef`
  46411. */
  46412. var ChangeDetectorStatus;
  46413. (function (ChangeDetectorStatus) {
  46414. /**
  46415. * A state in which, after calling `detectChanges()`, the change detector
  46416. * state becomes `Checked`, and must be explicitly invoked or reactivated.
  46417. */
  46418. ChangeDetectorStatus[ChangeDetectorStatus["CheckOnce"] = 0] = "CheckOnce";
  46419. /**
  46420. * A state in which change detection is skipped until the change detector mode
  46421. * becomes `CheckOnce`.
  46422. */
  46423. ChangeDetectorStatus[ChangeDetectorStatus["Checked"] = 1] = "Checked";
  46424. /**
  46425. * A state in which change detection continues automatically until explicitly
  46426. * deactivated.
  46427. */
  46428. ChangeDetectorStatus[ChangeDetectorStatus["CheckAlways"] = 2] = "CheckAlways";
  46429. /**
  46430. * A state in which a change detector sub tree is not a part of the main tree and
  46431. * should be skipped.
  46432. */
  46433. ChangeDetectorStatus[ChangeDetectorStatus["Detached"] = 3] = "Detached";
  46434. /**
  46435. * Indicates that the change detector encountered an error checking a binding
  46436. * or calling a directive lifecycle method and is now in an inconsistent state. Change
  46437. * detectors in this state do not detect changes.
  46438. */
  46439. ChangeDetectorStatus[ChangeDetectorStatus["Errored"] = 4] = "Errored";
  46440. /**
  46441. * Indicates that the change detector has been destroyed.
  46442. */
  46443. ChangeDetectorStatus[ChangeDetectorStatus["Destroyed"] = 5] = "Destroyed";
  46444. })(ChangeDetectorStatus || (ChangeDetectorStatus = {}));
  46445. /**
  46446. * Reports whether a given strategy is currently the default for change detection.
  46447. * @param changeDetectionStrategy The strategy to check.
  46448. * @returns True if the given strategy is the current default, false otherwise.
  46449. * @see `ChangeDetectorStatus`
  46450. * @see `ChangeDetectorRef`
  46451. */
  46452. function isDefaultChangeDetectionStrategy(changeDetectionStrategy) {
  46453. return changeDetectionStrategy == null ||
  46454. changeDetectionStrategy === ChangeDetectionStrategy.Default;
  46455. }
  46456. /**
  46457. * @license
  46458. * Copyright Google LLC All Rights Reserved.
  46459. *
  46460. * Use of this source code is governed by an MIT-style license that can be
  46461. * found in the LICENSE file at https://angular.io/license
  46462. */
  46463. /**
  46464. * Defines template and style encapsulation options available for Component's {@link Component}.
  46465. *
  46466. * See {@link Component#encapsulation encapsulation}.
  46467. *
  46468. * @usageNotes
  46469. * ### Example
  46470. *
  46471. * {@example core/ts/metadata/encapsulation.ts region='longform'}
  46472. *
  46473. * @publicApi
  46474. */
  46475. var ViewEncapsulation;
  46476. (function (ViewEncapsulation) {
  46477. /**
  46478. * Emulate `Native` scoping of styles by adding an attribute containing surrogate id to the Host
  46479. * Element and pre-processing the style rules provided via {@link Component#styles styles} or
  46480. * {@link Component#styleUrls styleUrls}, and adding the new Host Element attribute to all
  46481. * selectors.
  46482. *
  46483. * This is the default option.
  46484. */
  46485. ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated";
  46486. // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
  46487. /**
  46488. * Don't provide any template or style encapsulation.
  46489. */
  46490. ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
  46491. /**
  46492. * Use Shadow DOM to encapsulate styles.
  46493. *
  46494. * For the DOM this means using modern [Shadow
  46495. * DOM](https://w3c.github.io/webcomponents/spec/shadow/) and
  46496. * creating a ShadowRoot for Component's Host Element.
  46497. */
  46498. ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
  46499. })(ViewEncapsulation || (ViewEncapsulation = {}));
  46500. /**
  46501. * @license
  46502. * Copyright Google LLC All Rights Reserved.
  46503. *
  46504. * Use of this source code is governed by an MIT-style license that can be
  46505. * found in the LICENSE file at https://angular.io/license
  46506. */
  46507. const __globalThis = typeof globalThis !== 'undefined' && globalThis;
  46508. const __window = typeof window !== 'undefined' && window;
  46509. const __self = typeof self !== 'undefined' && typeof WorkerGlobalScope !== 'undefined' &&
  46510. self instanceof WorkerGlobalScope && self;
  46511. const __global = typeof global !== 'undefined' && global;
  46512. // Always use __globalThis if available, which is the spec-defined global variable across all
  46513. // environments, then fallback to __global first, because in Node tests both __global and
  46514. // __window may be defined and _global should be __global in that case.
  46515. const _global = __globalThis || __global || __window || __self;
  46516. /**
  46517. * @license
  46518. * Copyright Google LLC All Rights Reserved.
  46519. *
  46520. * Use of this source code is governed by an MIT-style license that can be
  46521. * found in the LICENSE file at https://angular.io/license
  46522. */
  46523. function ngDevModeResetPerfCounters() {
  46524. const locationString = typeof location !== 'undefined' ? location.toString() : '';
  46525. const newCounters = {
  46526. namedConstructors: locationString.indexOf('ngDevMode=namedConstructors') != -1,
  46527. firstCreatePass: 0,
  46528. tNode: 0,
  46529. tView: 0,
  46530. rendererCreateTextNode: 0,
  46531. rendererSetText: 0,
  46532. rendererCreateElement: 0,
  46533. rendererAddEventListener: 0,
  46534. rendererSetAttribute: 0,
  46535. rendererRemoveAttribute: 0,
  46536. rendererSetProperty: 0,
  46537. rendererSetClassName: 0,
  46538. rendererAddClass: 0,
  46539. rendererRemoveClass: 0,
  46540. rendererSetStyle: 0,
  46541. rendererRemoveStyle: 0,
  46542. rendererDestroy: 0,
  46543. rendererDestroyNode: 0,
  46544. rendererMoveNode: 0,
  46545. rendererRemoveNode: 0,
  46546. rendererAppendChild: 0,
  46547. rendererInsertBefore: 0,
  46548. rendererCreateComment: 0,
  46549. };
  46550. // Make sure to refer to ngDevMode as ['ngDevMode'] for closure.
  46551. const allowNgDevModeTrue = locationString.indexOf('ngDevMode=false') === -1;
  46552. _global['ngDevMode'] = allowNgDevModeTrue && newCounters;
  46553. return newCounters;
  46554. }
  46555. /**
  46556. * This function checks to see if the `ngDevMode` has been set. If yes,
  46557. * then we honor it, otherwise we default to dev mode with additional checks.
  46558. *
  46559. * The idea is that unless we are doing production build where we explicitly
  46560. * set `ngDevMode == false` we should be helping the developer by providing
  46561. * as much early warning and errors as possible.
  46562. *
  46563. * `ɵɵdefineComponent` is guaranteed to have been called before any component template functions
  46564. * (and thus Ivy instructions), so a single initialization there is sufficient to ensure ngDevMode
  46565. * is defined for the entire instruction set.
  46566. *
  46567. * When checking `ngDevMode` on toplevel, always init it before referencing it
  46568. * (e.g. `((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode())`), otherwise you can
  46569. * get a `ReferenceError` like in https://github.com/angular/angular/issues/31595.
  46570. *
  46571. * Details on possible values for `ngDevMode` can be found on its docstring.
  46572. *
  46573. * NOTE:
  46574. * - changes to the `ngDevMode` name must be synced with `compiler-cli/src/tooling.ts`.
  46575. */
  46576. function initNgDevMode() {
  46577. // The below checks are to ensure that calling `initNgDevMode` multiple times does not
  46578. // reset the counters.
  46579. // If the `ngDevMode` is not an object, then it means we have not created the perf counters
  46580. // yet.
  46581. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  46582. if (typeof ngDevMode !== 'object') {
  46583. ngDevModeResetPerfCounters();
  46584. }
  46585. return typeof ngDevMode !== 'undefined' && !!ngDevMode;
  46586. }
  46587. return false;
  46588. }
  46589. /**
  46590. * @license
  46591. * Copyright Google LLC All Rights Reserved.
  46592. *
  46593. * Use of this source code is governed by an MIT-style license that can be
  46594. * found in the LICENSE file at https://angular.io/license
  46595. */
  46596. /**
  46597. * This file contains reuseable "empty" symbols that can be used as default return values
  46598. * in different parts of the rendering code. Because the same symbols are returned, this
  46599. * allows for identity checks against these values to be consistently used by the framework
  46600. * code.
  46601. */
  46602. const EMPTY_OBJ = {};
  46603. const EMPTY_ARRAY = [];
  46604. // freezing the values prevents any code from accidentally inserting new values in
  46605. if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
  46606. // These property accesses can be ignored because ngDevMode will be set to false
  46607. // when optimizing code and the whole if statement will be dropped.
  46608. // tslint:disable-next-line:no-toplevel-property-access
  46609. Object.freeze(EMPTY_OBJ);
  46610. // tslint:disable-next-line:no-toplevel-property-access
  46611. Object.freeze(EMPTY_ARRAY);
  46612. }
  46613. /**
  46614. * @license
  46615. * Copyright Google LLC All Rights Reserved.
  46616. *
  46617. * Use of this source code is governed by an MIT-style license that can be
  46618. * found in the LICENSE file at https://angular.io/license
  46619. */
  46620. const NG_COMP_DEF = getClosureSafeProperty({ ɵcmp: getClosureSafeProperty });
  46621. const NG_DIR_DEF = getClosureSafeProperty({ ɵdir: getClosureSafeProperty });
  46622. const NG_PIPE_DEF = getClosureSafeProperty({ ɵpipe: getClosureSafeProperty });
  46623. const NG_MOD_DEF = getClosureSafeProperty({ ɵmod: getClosureSafeProperty });
  46624. const NG_LOC_ID_DEF = getClosureSafeProperty({ ɵloc: getClosureSafeProperty });
  46625. const NG_FACTORY_DEF = getClosureSafeProperty({ ɵfac: getClosureSafeProperty });
  46626. /**
  46627. * If a directive is diPublic, bloomAdd sets a property on the type with this constant as
  46628. * the key and the directive's unique ID as the value. This allows us to map directives to their
  46629. * bloom filter bit for DI.
  46630. */
  46631. // TODO(misko): This is wrong. The NG_ELEMENT_ID should never be minified.
  46632. const NG_ELEMENT_ID = getClosureSafeProperty({ __NG_ELEMENT_ID__: getClosureSafeProperty });
  46633. /**
  46634. * @license
  46635. * Copyright Google LLC All Rights Reserved.
  46636. *
  46637. * Use of this source code is governed by an MIT-style license that can be
  46638. * found in the LICENSE file at https://angular.io/license
  46639. */
  46640. let _renderCompCount = 0;
  46641. /**
  46642. * Create a component definition object.
  46643. *
  46644. *
  46645. * # Example
  46646. * ```
  46647. * class MyDirective {
  46648. * // Generated by Angular Template Compiler
  46649. * // [Symbol] syntax will not be supported by TypeScript until v2.7
  46650. * static ɵcmp = defineComponent({
  46651. * ...
  46652. * });
  46653. * }
  46654. * ```
  46655. * @codeGenApi
  46656. */
  46657. function ɵɵdefineComponent(componentDefinition) {
  46658. return noSideEffects(() => {
  46659. // Initialize ngDevMode. This must be the first statement in ɵɵdefineComponent.
  46660. // See the `initNgDevMode` docstring for more information.
  46661. (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
  46662. const type = componentDefinition.type;
  46663. const typePrototype = type.prototype;
  46664. const declaredInputs = {};
  46665. const def = {
  46666. type: type,
  46667. providersResolver: null,
  46668. decls: componentDefinition.decls,
  46669. vars: componentDefinition.vars,
  46670. factory: null,
  46671. template: componentDefinition.template || null,
  46672. consts: componentDefinition.consts || null,
  46673. ngContentSelectors: componentDefinition.ngContentSelectors,
  46674. hostBindings: componentDefinition.hostBindings || null,
  46675. hostVars: componentDefinition.hostVars || 0,
  46676. hostAttrs: componentDefinition.hostAttrs || null,
  46677. contentQueries: componentDefinition.contentQueries || null,
  46678. declaredInputs: declaredInputs,
  46679. inputs: null,
  46680. outputs: null,
  46681. exportAs: componentDefinition.exportAs || null,
  46682. onPush: componentDefinition.changeDetection === ChangeDetectionStrategy.OnPush,
  46683. directiveDefs: null,
  46684. pipeDefs: null,
  46685. selectors: componentDefinition.selectors || EMPTY_ARRAY,
  46686. viewQuery: componentDefinition.viewQuery || null,
  46687. features: componentDefinition.features || null,
  46688. data: componentDefinition.data || {},
  46689. // TODO(misko): convert ViewEncapsulation into const enum so that it can be used
  46690. // directly in the next line. Also `None` should be 0 not 2.
  46691. encapsulation: componentDefinition.encapsulation || ViewEncapsulation.Emulated,
  46692. id: 'c',
  46693. styles: componentDefinition.styles || EMPTY_ARRAY,
  46694. _: null,
  46695. setInput: null,
  46696. schemas: componentDefinition.schemas || null,
  46697. tView: null,
  46698. };
  46699. const directiveTypes = componentDefinition.directives;
  46700. const feature = componentDefinition.features;
  46701. const pipeTypes = componentDefinition.pipes;
  46702. def.id += _renderCompCount++;
  46703. def.inputs = invertObject(componentDefinition.inputs, declaredInputs),
  46704. def.outputs = invertObject(componentDefinition.outputs),
  46705. feature && feature.forEach((fn) => fn(def));
  46706. def.directiveDefs = directiveTypes ?
  46707. () => (typeof directiveTypes === 'function' ? directiveTypes() : directiveTypes)
  46708. .map(extractDirectiveDef) :
  46709. null;
  46710. def.pipeDefs = pipeTypes ?
  46711. () => (typeof pipeTypes === 'function' ? pipeTypes() : pipeTypes).map(extractPipeDef) :
  46712. null;
  46713. return def;
  46714. });
  46715. }
  46716. /**
  46717. * Generated next to NgModules to monkey-patch directive and pipe references onto a component's
  46718. * definition, when generating a direct reference in the component file would otherwise create an
  46719. * import cycle.
  46720. *
  46721. * See [this explanation](https://hackmd.io/Odw80D0pR6yfsOjg_7XCJg?view) for more details.
  46722. *
  46723. * @codeGenApi
  46724. */
  46725. function ɵɵsetComponentScope(type, directives, pipes) {
  46726. const def = type.ɵcmp;
  46727. def.directiveDefs = () => directives.map(extractDirectiveDef);
  46728. def.pipeDefs = () => pipes.map(extractPipeDef);
  46729. }
  46730. function extractDirectiveDef(type) {
  46731. const def = getComponentDef(type) || getDirectiveDef(type);
  46732. if (ngDevMode && !def) {
  46733. throw new Error(`'${type.name}' is neither 'ComponentType' or 'DirectiveType'.`);
  46734. }
  46735. return def;
  46736. }
  46737. function extractPipeDef(type) {
  46738. const def = getPipeDef(type);
  46739. if (ngDevMode && !def) {
  46740. throw new Error(`'${type.name}' is not a 'PipeType'.`);
  46741. }
  46742. return def;
  46743. }
  46744. const autoRegisterModuleById = {};
  46745. /**
  46746. * @codeGenApi
  46747. */
  46748. function ɵɵdefineNgModule(def) {
  46749. const res = {
  46750. type: def.type,
  46751. bootstrap: def.bootstrap || EMPTY_ARRAY,
  46752. declarations: def.declarations || EMPTY_ARRAY,
  46753. imports: def.imports || EMPTY_ARRAY,
  46754. exports: def.exports || EMPTY_ARRAY,
  46755. transitiveCompileScopes: null,
  46756. schemas: def.schemas || null,
  46757. id: def.id || null,
  46758. };
  46759. if (def.id != null) {
  46760. noSideEffects(() => {
  46761. autoRegisterModuleById[def.id] = def.type;
  46762. });
  46763. }
  46764. return res;
  46765. }
  46766. /**
  46767. * Adds the module metadata that is necessary to compute the module's transitive scope to an
  46768. * existing module definition.
  46769. *
  46770. * Scope metadata of modules is not used in production builds, so calls to this function can be
  46771. * marked pure to tree-shake it from the bundle, allowing for all referenced declarations
  46772. * to become eligible for tree-shaking as well.
  46773. *
  46774. * @codeGenApi
  46775. */
  46776. function ɵɵsetNgModuleScope(type, scope) {
  46777. return noSideEffects(() => {
  46778. const ngModuleDef = getNgModuleDef(type, true);
  46779. ngModuleDef.declarations = scope.declarations || EMPTY_ARRAY;
  46780. ngModuleDef.imports = scope.imports || EMPTY_ARRAY;
  46781. ngModuleDef.exports = scope.exports || EMPTY_ARRAY;
  46782. });
  46783. }
  46784. /**
  46785. * Inverts an inputs or outputs lookup such that the keys, which were the
  46786. * minified keys, are part of the values, and the values are parsed so that
  46787. * the publicName of the property is the new key
  46788. *
  46789. * e.g. for
  46790. *
  46791. * ```
  46792. * class Comp {
  46793. * @Input()
  46794. * propName1: string;
  46795. *
  46796. * @Input('publicName2')
  46797. * declaredPropName2: number;
  46798. * }
  46799. * ```
  46800. *
  46801. * will be serialized as
  46802. *
  46803. * ```
  46804. * {
  46805. * propName1: 'propName1',
  46806. * declaredPropName2: ['publicName2', 'declaredPropName2'],
  46807. * }
  46808. * ```
  46809. *
  46810. * which is than translated by the minifier as:
  46811. *
  46812. * ```
  46813. * {
  46814. * minifiedPropName1: 'propName1',
  46815. * minifiedPropName2: ['publicName2', 'declaredPropName2'],
  46816. * }
  46817. * ```
  46818. *
  46819. * becomes: (public name => minifiedName)
  46820. *
  46821. * ```
  46822. * {
  46823. * 'propName1': 'minifiedPropName1',
  46824. * 'publicName2': 'minifiedPropName2',
  46825. * }
  46826. * ```
  46827. *
  46828. * Optionally the function can take `secondary` which will result in: (public name => declared name)
  46829. *
  46830. * ```
  46831. * {
  46832. * 'propName1': 'propName1',
  46833. * 'publicName2': 'declaredPropName2',
  46834. * }
  46835. * ```
  46836. *
  46837. */
  46838. function invertObject(obj, secondary) {
  46839. if (obj == null)
  46840. return EMPTY_OBJ;
  46841. const newLookup = {};
  46842. for (const minifiedKey in obj) {
  46843. if (obj.hasOwnProperty(minifiedKey)) {
  46844. let publicName = obj[minifiedKey];
  46845. let declaredName = publicName;
  46846. if (Array.isArray(publicName)) {
  46847. declaredName = publicName[1];
  46848. publicName = publicName[0];
  46849. }
  46850. newLookup[publicName] = minifiedKey;
  46851. if (secondary) {
  46852. (secondary[publicName] = declaredName);
  46853. }
  46854. }
  46855. }
  46856. return newLookup;
  46857. }
  46858. /**
  46859. * Create a directive definition object.
  46860. *
  46861. * # Example
  46862. * ```ts
  46863. * class MyDirective {
  46864. * // Generated by Angular Template Compiler
  46865. * // [Symbol] syntax will not be supported by TypeScript until v2.7
  46866. * static ɵdir = ɵɵdefineDirective({
  46867. * ...
  46868. * });
  46869. * }
  46870. * ```
  46871. *
  46872. * @codeGenApi
  46873. */
  46874. const ɵɵdefineDirective = ɵɵdefineComponent;
  46875. /**
  46876. * Create a pipe definition object.
  46877. *
  46878. * # Example
  46879. * ```
  46880. * class MyPipe implements PipeTransform {
  46881. * // Generated by Angular Template Compiler
  46882. * static ɵpipe = definePipe({
  46883. * ...
  46884. * });
  46885. * }
  46886. * ```
  46887. * @param pipeDef Pipe definition generated by the compiler
  46888. *
  46889. * @codeGenApi
  46890. */
  46891. function ɵɵdefinePipe(pipeDef) {
  46892. return {
  46893. type: pipeDef.type,
  46894. name: pipeDef.name,
  46895. factory: null,
  46896. pure: pipeDef.pure !== false,
  46897. onDestroy: pipeDef.type.prototype.ngOnDestroy || null
  46898. };
  46899. }
  46900. /**
  46901. * The following getter methods retrieve the definition from the type. Currently the retrieval
  46902. * honors inheritance, but in the future we may change the rule to require that definitions are
  46903. * explicit. This would require some sort of migration strategy.
  46904. */
  46905. function getComponentDef(type) {
  46906. return type[NG_COMP_DEF] || null;
  46907. }
  46908. function getDirectiveDef(type) {
  46909. return type[NG_DIR_DEF] || null;
  46910. }
  46911. function getPipeDef(type) {
  46912. return type[NG_PIPE_DEF] || null;
  46913. }
  46914. function getNgModuleDef(type, throwNotFound) {
  46915. const ngModuleDef = type[NG_MOD_DEF] || null;
  46916. if (!ngModuleDef && throwNotFound === true) {
  46917. throw new Error(`Type ${stringify(type)} does not have 'ɵmod' property.`);
  46918. }
  46919. return ngModuleDef;
  46920. }
  46921. function getNgLocaleIdDef(type) {
  46922. return type[NG_LOC_ID_DEF] || null;
  46923. }
  46924. /**
  46925. * @license
  46926. * Copyright Google LLC All Rights Reserved.
  46927. *
  46928. * Use of this source code is governed by an MIT-style license that can be
  46929. * found in the LICENSE file at https://angular.io/license
  46930. */
  46931. // Below are constants for LView indices to help us look up LView members
  46932. // without having to remember the specific indices.
  46933. // Uglify will inline these when minifying so there shouldn't be a cost.
  46934. const HOST = 0;
  46935. const TVIEW = 1;
  46936. const FLAGS = 2;
  46937. const PARENT = 3;
  46938. const NEXT = 4;
  46939. const TRANSPLANTED_VIEWS_TO_REFRESH = 5;
  46940. const T_HOST = 6;
  46941. const CLEANUP = 7;
  46942. const CONTEXT = 8;
  46943. const INJECTOR = 9;
  46944. const RENDERER_FACTORY = 10;
  46945. const RENDERER = 11;
  46946. const SANITIZER = 12;
  46947. const CHILD_HEAD = 13;
  46948. const CHILD_TAIL = 14;
  46949. // FIXME(misko): Investigate if the three declarations aren't all same thing.
  46950. const DECLARATION_VIEW = 15;
  46951. const DECLARATION_COMPONENT_VIEW = 16;
  46952. const DECLARATION_LCONTAINER = 17;
  46953. const PREORDER_HOOK_FLAGS = 18;
  46954. const QUERIES = 19;
  46955. /**
  46956. * Size of LView's header. Necessary to adjust for it when setting slots.
  46957. *
  46958. * IMPORTANT: `HEADER_OFFSET` should only be referred to the in the `ɵɵ*` instructions to translate
  46959. * instruction index into `LView` index. All other indexes should be in the `LView` index space and
  46960. * there should be no need to refer to `HEADER_OFFSET` anywhere else.
  46961. */
  46962. const HEADER_OFFSET = 20;
  46963. /**
  46964. * Converts `TViewType` into human readable text.
  46965. * Make sure this matches with `TViewType`
  46966. */
  46967. const TViewTypeAsString = [
  46968. 'Root',
  46969. 'Component',
  46970. 'Embedded',
  46971. ];
  46972. // Note: This hack is necessary so we don't erroneously get a circular dependency
  46973. // failure based on types.
  46974. const unusedValueExportToPlacateAjd = 1;
  46975. /**
  46976. * @license
  46977. * Copyright Google LLC All Rights Reserved.
  46978. *
  46979. * Use of this source code is governed by an MIT-style license that can be
  46980. * found in the LICENSE file at https://angular.io/license
  46981. */
  46982. /**
  46983. * Special location which allows easy identification of type. If we have an array which was
  46984. * retrieved from the `LView` and that array has `true` at `TYPE` location, we know it is
  46985. * `LContainer`.
  46986. */
  46987. const TYPE = 1;
  46988. /**
  46989. * Below are constants for LContainer indices to help us look up LContainer members
  46990. * without having to remember the specific indices.
  46991. * Uglify will inline these when minifying so there shouldn't be a cost.
  46992. */
  46993. /**
  46994. * Flag to signify that this `LContainer` may have transplanted views which need to be change
  46995. * detected. (see: `LView[DECLARATION_COMPONENT_VIEW])`.
  46996. *
  46997. * This flag, once set, is never unset for the `LContainer`. This means that when unset we can skip
  46998. * a lot of work in `refreshEmbeddedViews`. But when set we still need to verify
  46999. * that the `MOVED_VIEWS` are transplanted and on-push.
  47000. */
  47001. const HAS_TRANSPLANTED_VIEWS = 2;
  47002. // PARENT, NEXT, TRANSPLANTED_VIEWS_TO_REFRESH are indices 3, 4, and 5
  47003. // As we already have these constants in LView, we don't need to re-create them.
  47004. // T_HOST is index 6
  47005. // We already have this constants in LView, we don't need to re-create it.
  47006. const NATIVE = 7;
  47007. const VIEW_REFS = 8;
  47008. const MOVED_VIEWS = 9;
  47009. /**
  47010. * Size of LContainer's header. Represents the index after which all views in the
  47011. * container will be inserted. We need to keep a record of current views so we know
  47012. * which views are already in the DOM (and don't need to be re-added) and so we can
  47013. * remove views from the DOM when they are no longer required.
  47014. */
  47015. const CONTAINER_HEADER_OFFSET = 10;
  47016. // Note: This hack is necessary so we don't erroneously get a circular dependency
  47017. // failure based on types.
  47018. const unusedValueExportToPlacateAjd$1 = 1;
  47019. /**
  47020. * @license
  47021. * Copyright Google LLC All Rights Reserved.
  47022. *
  47023. * Use of this source code is governed by an MIT-style license that can be
  47024. * found in the LICENSE file at https://angular.io/license
  47025. */
  47026. /**
  47027. * True if `value` is `LView`.
  47028. * @param value wrapped value of `RNode`, `LView`, `LContainer`
  47029. */
  47030. function isLView(value) {
  47031. return Array.isArray(value) && typeof value[TYPE] === 'object';
  47032. }
  47033. /**
  47034. * True if `value` is `LContainer`.
  47035. * @param value wrapped value of `RNode`, `LView`, `LContainer`
  47036. */
  47037. function isLContainer(value) {
  47038. return Array.isArray(value) && value[TYPE] === true;
  47039. }
  47040. function isContentQueryHost(tNode) {
  47041. return (tNode.flags & 8 /* hasContentQuery */) !== 0;
  47042. }
  47043. function isComponentHost(tNode) {
  47044. return (tNode.flags & 2 /* isComponentHost */) === 2 /* isComponentHost */;
  47045. }
  47046. function isDirectiveHost(tNode) {
  47047. return (tNode.flags & 1 /* isDirectiveHost */) === 1 /* isDirectiveHost */;
  47048. }
  47049. function isComponentDef(def) {
  47050. return def.template !== null;
  47051. }
  47052. function isRootView(target) {
  47053. return (target[FLAGS] & 512 /* IsRoot */) !== 0;
  47054. }
  47055. /**
  47056. * @license
  47057. * Copyright Google LLC All Rights Reserved.
  47058. *
  47059. * Use of this source code is governed by an MIT-style license that can be
  47060. * found in the LICENSE file at https://angular.io/license
  47061. */
  47062. // [Assert functions do not constraint type when they are guarded by a truthy
  47063. // expression.](https://github.com/microsoft/TypeScript/issues/37295)
  47064. function assertTNodeForLView(tNode, lView) {
  47065. assertTNodeForTView(tNode, lView[TVIEW]);
  47066. }
  47067. function assertTNodeForTView(tNode, tView) {
  47068. assertTNode(tNode);
  47069. tNode.hasOwnProperty('tView_') &&
  47070. assertEqual(tNode.tView_, tView, 'This TNode does not belong to this TView.');
  47071. }
  47072. function assertTNode(tNode) {
  47073. assertDefined(tNode, 'TNode must be defined');
  47074. if (!(tNode && typeof tNode === 'object' && tNode.hasOwnProperty('directiveStylingLast'))) {
  47075. throwError('Not of type TNode, got: ' + tNode);
  47076. }
  47077. }
  47078. function assertTIcu(tIcu) {
  47079. assertDefined(tIcu, 'Expected TIcu to be defined');
  47080. if (!(typeof tIcu.currentCaseLViewIndex === 'number')) {
  47081. throwError('Object is not of TIcu type.');
  47082. }
  47083. }
  47084. function assertComponentType(actual, msg = 'Type passed in is not ComponentType, it does not have \'ɵcmp\' property.') {
  47085. if (!getComponentDef(actual)) {
  47086. throwError(msg);
  47087. }
  47088. }
  47089. function assertNgModuleType(actual, msg = 'Type passed in is not NgModuleType, it does not have \'ɵmod\' property.') {
  47090. if (!getNgModuleDef(actual)) {
  47091. throwError(msg);
  47092. }
  47093. }
  47094. function assertCurrentTNodeIsParent(isParent) {
  47095. assertEqual(isParent, true, 'currentTNode should be a parent');
  47096. }
  47097. function assertHasParent(tNode) {
  47098. assertDefined(tNode, 'currentTNode should exist!');
  47099. assertDefined(tNode.parent, 'currentTNode should have a parent');
  47100. }
  47101. function assertDataNext(lView, index, arr) {
  47102. if (arr == null)
  47103. arr = lView;
  47104. assertEqual(arr.length, index, `index ${index} expected to be at the end of arr (length ${arr.length})`);
  47105. }
  47106. function assertLContainer(value) {
  47107. assertDefined(value, 'LContainer must be defined');
  47108. assertEqual(isLContainer(value), true, 'Expecting LContainer');
  47109. }
  47110. function assertLViewOrUndefined(value) {
  47111. value && assertEqual(isLView(value), true, 'Expecting LView or undefined or null');
  47112. }
  47113. function assertLView(value) {
  47114. assertDefined(value, 'LView must be defined');
  47115. assertEqual(isLView(value), true, 'Expecting LView');
  47116. }
  47117. function assertFirstCreatePass(tView, errMessage) {
  47118. assertEqual(tView.firstCreatePass, true, errMessage || 'Should only be called in first create pass.');
  47119. }
  47120. function assertFirstUpdatePass(tView, errMessage) {
  47121. assertEqual(tView.firstUpdatePass, true, errMessage || 'Should only be called in first update pass.');
  47122. }
  47123. /**
  47124. * This is a basic sanity check that an object is probably a directive def. DirectiveDef is
  47125. * an interface, so we can't do a direct instanceof check.
  47126. */
  47127. function assertDirectiveDef(obj) {
  47128. if (obj.type === undefined || obj.selectors == undefined || obj.inputs === undefined) {
  47129. throwError(`Expected a DirectiveDef/ComponentDef and this object does not seem to have the expected shape.`);
  47130. }
  47131. }
  47132. function assertIndexInDeclRange(lView, index) {
  47133. const tView = lView[1];
  47134. assertBetween(HEADER_OFFSET, tView.bindingStartIndex, index);
  47135. }
  47136. function assertIndexInVarsRange(lView, index) {
  47137. const tView = lView[1];
  47138. assertBetween(tView.bindingStartIndex, tView.expandoStartIndex, index);
  47139. }
  47140. function assertIndexInExpandoRange(lView, index) {
  47141. const tView = lView[1];
  47142. assertBetween(tView.expandoStartIndex, lView.length, index);
  47143. }
  47144. function assertBetween(lower, upper, index) {
  47145. if (!(lower <= index && index < upper)) {
  47146. throwError(`Index out of range (expecting ${lower} <= ${index} < ${upper})`);
  47147. }
  47148. }
  47149. /**
  47150. * This is a basic sanity check that the `injectorIndex` seems to point to what looks like a
  47151. * NodeInjector data structure.
  47152. *
  47153. * @param lView `LView` which should be checked.
  47154. * @param injectorIndex index into the `LView` where the `NodeInjector` is expected.
  47155. */
  47156. function assertNodeInjector(lView, injectorIndex) {
  47157. assertIndexInExpandoRange(lView, injectorIndex);
  47158. assertIndexInExpandoRange(lView, injectorIndex + 8 /* PARENT */);
  47159. assertNumber(lView[injectorIndex + 0], 'injectorIndex should point to a bloom filter');
  47160. assertNumber(lView[injectorIndex + 1], 'injectorIndex should point to a bloom filter');
  47161. assertNumber(lView[injectorIndex + 2], 'injectorIndex should point to a bloom filter');
  47162. assertNumber(lView[injectorIndex + 3], 'injectorIndex should point to a bloom filter');
  47163. assertNumber(lView[injectorIndex + 4], 'injectorIndex should point to a bloom filter');
  47164. assertNumber(lView[injectorIndex + 5], 'injectorIndex should point to a bloom filter');
  47165. assertNumber(lView[injectorIndex + 6], 'injectorIndex should point to a bloom filter');
  47166. assertNumber(lView[injectorIndex + 7], 'injectorIndex should point to a bloom filter');
  47167. assertNumber(lView[injectorIndex + 8 /* PARENT */], 'injectorIndex should point to parent injector');
  47168. }
  47169. /**
  47170. * @license
  47171. * Copyright Google LLC All Rights Reserved.
  47172. *
  47173. * Use of this source code is governed by an MIT-style license that can be
  47174. * found in the LICENSE file at https://angular.io/license
  47175. */
  47176. function getFactoryDef(type, throwNotFound) {
  47177. const hasFactoryDef = type.hasOwnProperty(NG_FACTORY_DEF);
  47178. if (!hasFactoryDef && throwNotFound === true && ngDevMode) {
  47179. throw new Error(`Type ${stringify(type)} does not have 'ɵfac' property.`);
  47180. }
  47181. return hasFactoryDef ? type[NG_FACTORY_DEF] : null;
  47182. }
  47183. /**
  47184. * @license
  47185. * Copyright Google LLC All Rights Reserved.
  47186. *
  47187. * Use of this source code is governed by an MIT-style license that can be
  47188. * found in the LICENSE file at https://angular.io/license
  47189. */
  47190. class RuntimeError extends Error {
  47191. constructor(code, message) {
  47192. super(formatRuntimeError(code, message));
  47193. this.code = code;
  47194. }
  47195. }
  47196. /** Called to format a runtime error */
  47197. function formatRuntimeError(code, message) {
  47198. const fullCode = code ? `NG0${code}: ` : '';
  47199. return `${fullCode}${message}`;
  47200. }
  47201. /**
  47202. * @license
  47203. * Copyright Google LLC All Rights Reserved.
  47204. *
  47205. * Use of this source code is governed by an MIT-style license that can be
  47206. * found in the LICENSE file at https://angular.io/license
  47207. */
  47208. /**
  47209. * Used for stringify render output in Ivy.
  47210. * Important! This function is very performance-sensitive and we should
  47211. * be extra careful not to introduce megamorphic reads in it.
  47212. * Check `core/test/render3/perf/render_stringify` for benchmarks and alternate implementations.
  47213. */
  47214. function renderStringify(value) {
  47215. if (typeof value === 'string')
  47216. return value;
  47217. if (value == null)
  47218. return '';
  47219. // Use `String` so that it invokes the `toString` method of the value. Note that this
  47220. // appears to be faster than calling `value.toString` (see `render_stringify` benchmark).
  47221. return String(value);
  47222. }
  47223. /**
  47224. * Used to stringify a value so that it can be displayed in an error message.
  47225. * Important! This function contains a megamorphic read and should only be
  47226. * used for error messages.
  47227. */
  47228. function stringifyForError(value) {
  47229. if (typeof value === 'function')
  47230. return value.name || value.toString();
  47231. if (typeof value === 'object' && value != null && typeof value.type === 'function') {
  47232. return value.type.name || value.type.toString();
  47233. }
  47234. return renderStringify(value);
  47235. }
  47236. /** Called when directives inject each other (creating a circular dependency) */
  47237. function throwCyclicDependencyError(token, path) {
  47238. const depPath = path ? `. Dependency path: ${path.join(' > ')} > ${token}` : '';
  47239. throw new RuntimeError("200" /* CYCLIC_DI_DEPENDENCY */, `Circular dependency in DI detected for ${token}${depPath}`);
  47240. }
  47241. function throwMixedMultiProviderError() {
  47242. throw new Error(`Cannot mix multi providers and regular providers`);
  47243. }
  47244. function throwInvalidProviderError(ngModuleType, providers, provider) {
  47245. let ngModuleDetail = '';
  47246. if (ngModuleType && providers) {
  47247. const providerDetail = providers.map(v => v == provider ? '?' + provider + '?' : '...');
  47248. ngModuleDetail =
  47249. ` - only instances of Provider and Type are allowed, got: [${providerDetail.join(', ')}]`;
  47250. }
  47251. throw new Error(`Invalid provider for the NgModule '${stringify(ngModuleType)}'` + ngModuleDetail);
  47252. }
  47253. /** Throws an error when a token is not found in DI. */
  47254. function throwProviderNotFoundError(token, injectorName) {
  47255. const injectorDetails = injectorName ? ` in ${injectorName}` : '';
  47256. throw new RuntimeError("201" /* PROVIDER_NOT_FOUND */, `No provider for ${stringifyForError(token)} found${injectorDetails}`);
  47257. }
  47258. /**
  47259. * @license
  47260. * Copyright Google LLC All Rights Reserved.
  47261. *
  47262. * Use of this source code is governed by an MIT-style license that can be
  47263. * found in the LICENSE file at https://angular.io/license
  47264. */
  47265. /**
  47266. * Represents a basic change from a previous to a new value for a single
  47267. * property on a directive instance. Passed as a value in a
  47268. * {@link SimpleChanges} object to the `ngOnChanges` hook.
  47269. *
  47270. * @see `OnChanges`
  47271. *
  47272. * @publicApi
  47273. */
  47274. class SimpleChange {
  47275. constructor(previousValue, currentValue, firstChange) {
  47276. this.previousValue = previousValue;
  47277. this.currentValue = currentValue;
  47278. this.firstChange = firstChange;
  47279. }
  47280. /**
  47281. * Check whether the new value is the first value assigned.
  47282. */
  47283. isFirstChange() {
  47284. return this.firstChange;
  47285. }
  47286. }
  47287. /**
  47288. * @license
  47289. * Copyright Google LLC All Rights Reserved.
  47290. *
  47291. * Use of this source code is governed by an MIT-style license that can be
  47292. * found in the LICENSE file at https://angular.io/license
  47293. */
  47294. /**
  47295. * The NgOnChangesFeature decorates a component with support for the ngOnChanges
  47296. * lifecycle hook, so it should be included in any component that implements
  47297. * that hook.
  47298. *
  47299. * If the component or directive uses inheritance, the NgOnChangesFeature MUST
  47300. * be included as a feature AFTER {@link InheritDefinitionFeature}, otherwise
  47301. * inherited properties will not be propagated to the ngOnChanges lifecycle
  47302. * hook.
  47303. *
  47304. * Example usage:
  47305. *
  47306. * ```
  47307. * static ɵcmp = defineComponent({
  47308. * ...
  47309. * inputs: {name: 'publicName'},
  47310. * features: [NgOnChangesFeature]
  47311. * });
  47312. * ```
  47313. *
  47314. * @codeGenApi
  47315. */
  47316. function ɵɵNgOnChangesFeature() {
  47317. return NgOnChangesFeatureImpl;
  47318. }
  47319. function NgOnChangesFeatureImpl(definition) {
  47320. if (definition.type.prototype.ngOnChanges) {
  47321. definition.setInput = ngOnChangesSetInput;
  47322. }
  47323. return rememberChangeHistoryAndInvokeOnChangesHook;
  47324. }
  47325. // This option ensures that the ngOnChanges lifecycle hook will be inherited
  47326. // from superclasses (in InheritDefinitionFeature).
  47327. /** @nocollapse */
  47328. // tslint:disable-next-line:no-toplevel-property-access
  47329. ɵɵNgOnChangesFeature.ngInherit = true;
  47330. /**
  47331. * This is a synthetic lifecycle hook which gets inserted into `TView.preOrderHooks` to simulate
  47332. * `ngOnChanges`.
  47333. *
  47334. * The hook reads the `NgSimpleChangesStore` data from the component instance and if changes are
  47335. * found it invokes `ngOnChanges` on the component instance.
  47336. *
  47337. * @param this Component instance. Because this function gets inserted into `TView.preOrderHooks`,
  47338. * it is guaranteed to be called with component instance.
  47339. */
  47340. function rememberChangeHistoryAndInvokeOnChangesHook() {
  47341. const simpleChangesStore = getSimpleChangesStore(this);
  47342. const current = simpleChangesStore === null || simpleChangesStore === void 0 ? void 0 : simpleChangesStore.current;
  47343. if (current) {
  47344. const previous = simpleChangesStore.previous;
  47345. if (previous === EMPTY_OBJ) {
  47346. simpleChangesStore.previous = current;
  47347. }
  47348. else {
  47349. // New changes are copied to the previous store, so that we don't lose history for inputs
  47350. // which were not changed this time
  47351. for (let key in current) {
  47352. previous[key] = current[key];
  47353. }
  47354. }
  47355. simpleChangesStore.current = null;
  47356. this.ngOnChanges(current);
  47357. }
  47358. }
  47359. function ngOnChangesSetInput(instance, value, publicName, privateName) {
  47360. const simpleChangesStore = getSimpleChangesStore(instance) ||
  47361. setSimpleChangesStore(instance, { previous: EMPTY_OBJ, current: null });
  47362. const current = simpleChangesStore.current || (simpleChangesStore.current = {});
  47363. const previous = simpleChangesStore.previous;
  47364. const declaredName = this.declaredInputs[publicName];
  47365. const previousChange = previous[declaredName];
  47366. current[declaredName] = new SimpleChange(previousChange && previousChange.currentValue, value, previous === EMPTY_OBJ);
  47367. instance[privateName] = value;
  47368. }
  47369. const SIMPLE_CHANGES_STORE = '__ngSimpleChanges__';
  47370. function getSimpleChangesStore(instance) {
  47371. return instance[SIMPLE_CHANGES_STORE] || null;
  47372. }
  47373. function setSimpleChangesStore(instance, store) {
  47374. return instance[SIMPLE_CHANGES_STORE] = store;
  47375. }
  47376. /**
  47377. * @license
  47378. * Copyright Google LLC All Rights Reserved.
  47379. *
  47380. * Use of this source code is governed by an MIT-style license that can be
  47381. * found in the LICENSE file at https://angular.io/license
  47382. */
  47383. const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
  47384. const MATH_ML_NAMESPACE = 'http://www.w3.org/1998/MathML/';
  47385. /**
  47386. * @license
  47387. * Copyright Google LLC All Rights Reserved.
  47388. *
  47389. * Use of this source code is governed by an MIT-style license that can be
  47390. * found in the LICENSE file at https://angular.io/license
  47391. */
  47392. /**
  47393. * This property will be monkey-patched on elements, components and directives
  47394. */
  47395. const MONKEY_PATCH_KEY_NAME = '__ngContext__';
  47396. /**
  47397. * @license
  47398. * Copyright Google LLC All Rights Reserved.
  47399. *
  47400. * Use of this source code is governed by an MIT-style license that can be
  47401. * found in the LICENSE file at https://angular.io/license
  47402. */
  47403. /**
  47404. * Most of the use of `document` in Angular is from within the DI system so it is possible to simply
  47405. * inject the `DOCUMENT` token and are done.
  47406. *
  47407. * Ivy is special because it does not rely upon the DI and must get hold of the document some other
  47408. * way.
  47409. *
  47410. * The solution is to define `getDocument()` and `setDocument()` top-level functions for ivy.
  47411. * Wherever ivy needs the global document, it calls `getDocument()` instead.
  47412. *
  47413. * When running ivy outside of a browser environment, it is necessary to call `setDocument()` to
  47414. * tell ivy what the global `document` is.
  47415. *
  47416. * Angular does this for us in each of the standard platforms (`Browser`, `Server`, and `WebWorker`)
  47417. * by calling `setDocument()` when providing the `DOCUMENT` token.
  47418. */
  47419. let DOCUMENT = undefined;
  47420. /**
  47421. * Tell ivy what the `document` is for this platform.
  47422. *
  47423. * It is only necessary to call this if the current platform is not a browser.
  47424. *
  47425. * @param document The object representing the global `document` in this environment.
  47426. */
  47427. function setDocument(document) {
  47428. DOCUMENT = document;
  47429. }
  47430. /**
  47431. * Access the object that represents the `document` for this platform.
  47432. *
  47433. * Ivy calls this whenever it needs to access the `document` object.
  47434. * For example to create the renderer or to do sanitization.
  47435. */
  47436. function getDocument() {
  47437. if (DOCUMENT !== undefined) {
  47438. return DOCUMENT;
  47439. }
  47440. else if (typeof document !== 'undefined') {
  47441. return document;
  47442. }
  47443. // No "document" can be found. This should only happen if we are running ivy outside Angular and
  47444. // the current platform is not a browser. Since this is not a supported scenario at the moment
  47445. // this should not happen in Angular apps.
  47446. // Once we support running ivy outside of Angular we will need to publish `setDocument()` as a
  47447. // public API. Meanwhile we just return `undefined` and let the application fail.
  47448. return undefined;
  47449. }
  47450. /**
  47451. * @license
  47452. * Copyright Google LLC All Rights Reserved.
  47453. *
  47454. * Use of this source code is governed by an MIT-style license that can be
  47455. * found in the LICENSE file at https://angular.io/license
  47456. */
  47457. // TODO: cleanup once the code is merged in angular/angular
  47458. var RendererStyleFlags3;
  47459. (function (RendererStyleFlags3) {
  47460. RendererStyleFlags3[RendererStyleFlags3["Important"] = 1] = "Important";
  47461. RendererStyleFlags3[RendererStyleFlags3["DashCase"] = 2] = "DashCase";
  47462. })(RendererStyleFlags3 || (RendererStyleFlags3 = {}));
  47463. /** Returns whether the `renderer` is a `ProceduralRenderer3` */
  47464. function isProceduralRenderer(renderer) {
  47465. return !!(renderer.listen);
  47466. }
  47467. const ɵ0 = (hostElement, rendererType) => {
  47468. return getDocument();
  47469. };
  47470. const domRendererFactory3 = {
  47471. createRenderer: ɵ0
  47472. };
  47473. // Note: This hack is necessary so we don't erroneously get a circular dependency
  47474. // failure based on types.
  47475. const unusedValueExportToPlacateAjd$2 = 1;
  47476. /**
  47477. * @license
  47478. * Copyright Google LLC All Rights Reserved.
  47479. *
  47480. * Use of this source code is governed by an MIT-style license that can be
  47481. * found in the LICENSE file at https://angular.io/license
  47482. */
  47483. /**
  47484. * For efficiency reasons we often put several different data types (`RNode`, `LView`, `LContainer`)
  47485. * in same location in `LView`. This is because we don't want to pre-allocate space for it
  47486. * because the storage is sparse. This file contains utilities for dealing with such data types.
  47487. *
  47488. * How do we know what is stored at a given location in `LView`.
  47489. * - `Array.isArray(value) === false` => `RNode` (The normal storage value)
  47490. * - `Array.isArray(value) === true` => then the `value[0]` represents the wrapped value.
  47491. * - `typeof value[TYPE] === 'object'` => `LView`
  47492. * - This happens when we have a component at a given location
  47493. * - `typeof value[TYPE] === true` => `LContainer`
  47494. * - This happens when we have `LContainer` binding at a given location.
  47495. *
  47496. *
  47497. * NOTE: it is assumed that `Array.isArray` and `typeof` operations are very efficient.
  47498. */
  47499. /**
  47500. * Returns `RNode`.
  47501. * @param value wrapped value of `RNode`, `LView`, `LContainer`
  47502. */
  47503. function unwrapRNode(value) {
  47504. while (Array.isArray(value)) {
  47505. value = value[HOST];
  47506. }
  47507. return value;
  47508. }
  47509. /**
  47510. * Returns `LView` or `null` if not found.
  47511. * @param value wrapped value of `RNode`, `LView`, `LContainer`
  47512. */
  47513. function unwrapLView(value) {
  47514. while (Array.isArray(value)) {
  47515. // This check is same as `isLView()` but we don't call at as we don't want to call
  47516. // `Array.isArray()` twice and give JITer more work for inlining.
  47517. if (typeof value[TYPE] === 'object')
  47518. return value;
  47519. value = value[HOST];
  47520. }
  47521. return null;
  47522. }
  47523. /**
  47524. * Returns `LContainer` or `null` if not found.
  47525. * @param value wrapped value of `RNode`, `LView`, `LContainer`
  47526. */
  47527. function unwrapLContainer(value) {
  47528. while (Array.isArray(value)) {
  47529. // This check is same as `isLContainer()` but we don't call at as we don't want to call
  47530. // `Array.isArray()` twice and give JITer more work for inlining.
  47531. if (value[TYPE] === true)
  47532. return value;
  47533. value = value[HOST];
  47534. }
  47535. return null;
  47536. }
  47537. /**
  47538. * Retrieves an element value from the provided `viewData`, by unwrapping
  47539. * from any containers, component views, or style contexts.
  47540. */
  47541. function getNativeByIndex(index, lView) {
  47542. ngDevMode && assertIndexInRange(lView, index);
  47543. ngDevMode && assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Expected to be past HEADER_OFFSET');
  47544. return unwrapRNode(lView[index]);
  47545. }
  47546. /**
  47547. * Retrieve an `RNode` for a given `TNode` and `LView`.
  47548. *
  47549. * This function guarantees in dev mode to retrieve a non-null `RNode`.
  47550. *
  47551. * @param tNode
  47552. * @param lView
  47553. */
  47554. function getNativeByTNode(tNode, lView) {
  47555. ngDevMode && assertTNodeForLView(tNode, lView);
  47556. ngDevMode && assertIndexInRange(lView, tNode.index);
  47557. const node = unwrapRNode(lView[tNode.index]);
  47558. ngDevMode && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);
  47559. return node;
  47560. }
  47561. /**
  47562. * Retrieve an `RNode` or `null` for a given `TNode` and `LView`.
  47563. *
  47564. * Some `TNode`s don't have associated `RNode`s. For example `Projection`
  47565. *
  47566. * @param tNode
  47567. * @param lView
  47568. */
  47569. function getNativeByTNodeOrNull(tNode, lView) {
  47570. const index = tNode === null ? -1 : tNode.index;
  47571. if (index !== -1) {
  47572. ngDevMode && assertTNodeForLView(tNode, lView);
  47573. const node = unwrapRNode(lView[index]);
  47574. ngDevMode && node !== null && !isProceduralRenderer(lView[RENDERER]) && assertDomNode(node);
  47575. return node;
  47576. }
  47577. return null;
  47578. }
  47579. // fixme(misko): The return Type should be `TNode|null`
  47580. function getTNode(tView, index) {
  47581. ngDevMode && assertGreaterThan(index, -1, 'wrong index for TNode');
  47582. ngDevMode && assertLessThan(index, tView.data.length, 'wrong index for TNode');
  47583. const tNode = tView.data[index];
  47584. ngDevMode && tNode !== null && assertTNode(tNode);
  47585. return tNode;
  47586. }
  47587. /** Retrieves a value from any `LView` or `TData`. */
  47588. function load(view, index) {
  47589. ngDevMode && assertIndexInRange(view, index);
  47590. return view[index];
  47591. }
  47592. function getComponentLViewByIndex(nodeIndex, hostView) {
  47593. // Could be an LView or an LContainer. If LContainer, unwrap to find LView.
  47594. ngDevMode && assertIndexInRange(hostView, nodeIndex);
  47595. const slotValue = hostView[nodeIndex];
  47596. const lView = isLView(slotValue) ? slotValue : slotValue[HOST];
  47597. return lView;
  47598. }
  47599. /**
  47600. * Returns the monkey-patch value data present on the target (which could be
  47601. * a component, directive or a DOM node).
  47602. */
  47603. function readPatchedData(target) {
  47604. ngDevMode && assertDefined(target, 'Target expected');
  47605. return target[MONKEY_PATCH_KEY_NAME] || null;
  47606. }
  47607. function readPatchedLView(target) {
  47608. const value = readPatchedData(target);
  47609. if (value) {
  47610. return Array.isArray(value) ? value : value.lView;
  47611. }
  47612. return null;
  47613. }
  47614. /** Checks whether a given view is in creation mode */
  47615. function isCreationMode(view) {
  47616. return (view[FLAGS] & 4 /* CreationMode */) === 4 /* CreationMode */;
  47617. }
  47618. /**
  47619. * Returns a boolean for whether the view is attached to the change detection tree.
  47620. *
  47621. * Note: This determines whether a view should be checked, not whether it's inserted
  47622. * into a container. For that, you'll want `viewAttachedToContainer` below.
  47623. */
  47624. function viewAttachedToChangeDetector(view) {
  47625. return (view[FLAGS] & 128 /* Attached */) === 128 /* Attached */;
  47626. }
  47627. /** Returns a boolean for whether the view is attached to a container. */
  47628. function viewAttachedToContainer(view) {
  47629. return isLContainer(view[PARENT]);
  47630. }
  47631. function getConstant(consts, index) {
  47632. if (index === null || index === undefined)
  47633. return null;
  47634. ngDevMode && assertIndexInRange(consts, index);
  47635. return consts[index];
  47636. }
  47637. /**
  47638. * Resets the pre-order hook flags of the view.
  47639. * @param lView the LView on which the flags are reset
  47640. */
  47641. function resetPreOrderHookFlags(lView) {
  47642. lView[PREORDER_HOOK_FLAGS] = 0;
  47643. }
  47644. /**
  47645. * Updates the `TRANSPLANTED_VIEWS_TO_REFRESH` counter on the `LContainer` as well as the parents
  47646. * whose
  47647. * 1. counter goes from 0 to 1, indicating that there is a new child that has a view to refresh
  47648. * or
  47649. * 2. counter goes from 1 to 0, indicating there are no more descendant views to refresh
  47650. */
  47651. function updateTransplantedViewCount(lContainer, amount) {
  47652. lContainer[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;
  47653. let viewOrContainer = lContainer;
  47654. let parent = lContainer[PARENT];
  47655. while (parent !== null &&
  47656. ((amount === 1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 1) ||
  47657. (amount === -1 && viewOrContainer[TRANSPLANTED_VIEWS_TO_REFRESH] === 0))) {
  47658. parent[TRANSPLANTED_VIEWS_TO_REFRESH] += amount;
  47659. viewOrContainer = parent;
  47660. parent = parent[PARENT];
  47661. }
  47662. }
  47663. /**
  47664. * @license
  47665. * Copyright Google LLC All Rights Reserved.
  47666. *
  47667. * Use of this source code is governed by an MIT-style license that can be
  47668. * found in the LICENSE file at https://angular.io/license
  47669. */
  47670. const instructionState = {
  47671. lFrame: createLFrame(null),
  47672. bindingsEnabled: true,
  47673. isInCheckNoChangesMode: false,
  47674. };
  47675. /**
  47676. * Returns true if the instruction state stack is empty.
  47677. *
  47678. * Intended to be called from tests only (tree shaken otherwise).
  47679. */
  47680. function specOnlyIsInstructionStateEmpty() {
  47681. return instructionState.lFrame.parent === null;
  47682. }
  47683. function getElementDepthCount() {
  47684. return instructionState.lFrame.elementDepthCount;
  47685. }
  47686. function increaseElementDepthCount() {
  47687. instructionState.lFrame.elementDepthCount++;
  47688. }
  47689. function decreaseElementDepthCount() {
  47690. instructionState.lFrame.elementDepthCount--;
  47691. }
  47692. function getBindingsEnabled() {
  47693. return instructionState.bindingsEnabled;
  47694. }
  47695. /**
  47696. * Enables directive matching on elements.
  47697. *
  47698. * * Example:
  47699. * ```
  47700. * <my-comp my-directive>
  47701. * Should match component / directive.
  47702. * </my-comp>
  47703. * <div ngNonBindable>
  47704. * <!-- ɵɵdisableBindings() -->
  47705. * <my-comp my-directive>
  47706. * Should not match component / directive because we are in ngNonBindable.
  47707. * </my-comp>
  47708. * <!-- ɵɵenableBindings() -->
  47709. * </div>
  47710. * ```
  47711. *
  47712. * @codeGenApi
  47713. */
  47714. function ɵɵenableBindings() {
  47715. instructionState.bindingsEnabled = true;
  47716. }
  47717. /**
  47718. * Disables directive matching on element.
  47719. *
  47720. * * Example:
  47721. * ```
  47722. * <my-comp my-directive>
  47723. * Should match component / directive.
  47724. * </my-comp>
  47725. * <div ngNonBindable>
  47726. * <!-- ɵɵdisableBindings() -->
  47727. * <my-comp my-directive>
  47728. * Should not match component / directive because we are in ngNonBindable.
  47729. * </my-comp>
  47730. * <!-- ɵɵenableBindings() -->
  47731. * </div>
  47732. * ```
  47733. *
  47734. * @codeGenApi
  47735. */
  47736. function ɵɵdisableBindings() {
  47737. instructionState.bindingsEnabled = false;
  47738. }
  47739. /**
  47740. * Return the current `LView`.
  47741. */
  47742. function getLView() {
  47743. return instructionState.lFrame.lView;
  47744. }
  47745. /**
  47746. * Return the current `TView`.
  47747. */
  47748. function getTView() {
  47749. return instructionState.lFrame.tView;
  47750. }
  47751. /**
  47752. * Restores `contextViewData` to the given OpaqueViewState instance.
  47753. *
  47754. * Used in conjunction with the getCurrentView() instruction to save a snapshot
  47755. * of the current view and restore it when listeners are invoked. This allows
  47756. * walking the declaration view tree in listeners to get vars from parent views.
  47757. *
  47758. * @param viewToRestore The OpaqueViewState instance to restore.
  47759. *
  47760. * @codeGenApi
  47761. */
  47762. function ɵɵrestoreView(viewToRestore) {
  47763. instructionState.lFrame.contextLView = viewToRestore;
  47764. }
  47765. function getCurrentTNode() {
  47766. let currentTNode = getCurrentTNodePlaceholderOk();
  47767. while (currentTNode !== null && currentTNode.type === 64 /* Placeholder */) {
  47768. currentTNode = currentTNode.parent;
  47769. }
  47770. return currentTNode;
  47771. }
  47772. function getCurrentTNodePlaceholderOk() {
  47773. return instructionState.lFrame.currentTNode;
  47774. }
  47775. function getCurrentParentTNode() {
  47776. const lFrame = instructionState.lFrame;
  47777. const currentTNode = lFrame.currentTNode;
  47778. return lFrame.isParent ? currentTNode : currentTNode.parent;
  47779. }
  47780. function setCurrentTNode(tNode, isParent) {
  47781. ngDevMode && tNode && assertTNodeForTView(tNode, instructionState.lFrame.tView);
  47782. const lFrame = instructionState.lFrame;
  47783. lFrame.currentTNode = tNode;
  47784. lFrame.isParent = isParent;
  47785. }
  47786. function isCurrentTNodeParent() {
  47787. return instructionState.lFrame.isParent;
  47788. }
  47789. function setCurrentTNodeAsNotParent() {
  47790. instructionState.lFrame.isParent = false;
  47791. }
  47792. function setCurrentTNodeAsParent() {
  47793. instructionState.lFrame.isParent = true;
  47794. }
  47795. function getContextLView() {
  47796. return instructionState.lFrame.contextLView;
  47797. }
  47798. function isInCheckNoChangesMode() {
  47799. // TODO(misko): remove this from the LView since it is ngDevMode=true mode only.
  47800. return instructionState.isInCheckNoChangesMode;
  47801. }
  47802. function setIsInCheckNoChangesMode(mode) {
  47803. instructionState.isInCheckNoChangesMode = mode;
  47804. }
  47805. // top level variables should not be exported for performance reasons (PERF_NOTES.md)
  47806. function getBindingRoot() {
  47807. const lFrame = instructionState.lFrame;
  47808. let index = lFrame.bindingRootIndex;
  47809. if (index === -1) {
  47810. index = lFrame.bindingRootIndex = lFrame.tView.bindingStartIndex;
  47811. }
  47812. return index;
  47813. }
  47814. function getBindingIndex() {
  47815. return instructionState.lFrame.bindingIndex;
  47816. }
  47817. function setBindingIndex(value) {
  47818. return instructionState.lFrame.bindingIndex = value;
  47819. }
  47820. function nextBindingIndex() {
  47821. return instructionState.lFrame.bindingIndex++;
  47822. }
  47823. function incrementBindingIndex(count) {
  47824. const lFrame = instructionState.lFrame;
  47825. const index = lFrame.bindingIndex;
  47826. lFrame.bindingIndex = lFrame.bindingIndex + count;
  47827. return index;
  47828. }
  47829. function isInI18nBlock() {
  47830. return instructionState.lFrame.inI18n;
  47831. }
  47832. function setInI18nBlock(isInI18nBlock) {
  47833. instructionState.lFrame.inI18n = isInI18nBlock;
  47834. }
  47835. /**
  47836. * Set a new binding root index so that host template functions can execute.
  47837. *
  47838. * Bindings inside the host template are 0 index. But because we don't know ahead of time
  47839. * how many host bindings we have we can't pre-compute them. For this reason they are all
  47840. * 0 index and we just shift the root so that they match next available location in the LView.
  47841. *
  47842. * @param bindingRootIndex Root index for `hostBindings`
  47843. * @param currentDirectiveIndex `TData[currentDirectiveIndex]` will point to the current directive
  47844. * whose `hostBindings` are being processed.
  47845. */
  47846. function setBindingRootForHostBindings(bindingRootIndex, currentDirectiveIndex) {
  47847. const lFrame = instructionState.lFrame;
  47848. lFrame.bindingIndex = lFrame.bindingRootIndex = bindingRootIndex;
  47849. setCurrentDirectiveIndex(currentDirectiveIndex);
  47850. }
  47851. /**
  47852. * When host binding is executing this points to the directive index.
  47853. * `TView.data[getCurrentDirectiveIndex()]` is `DirectiveDef`
  47854. * `LView[getCurrentDirectiveIndex()]` is directive instance.
  47855. */
  47856. function getCurrentDirectiveIndex() {
  47857. return instructionState.lFrame.currentDirectiveIndex;
  47858. }
  47859. /**
  47860. * Sets an index of a directive whose `hostBindings` are being processed.
  47861. *
  47862. * @param currentDirectiveIndex `TData` index where current directive instance can be found.
  47863. */
  47864. function setCurrentDirectiveIndex(currentDirectiveIndex) {
  47865. instructionState.lFrame.currentDirectiveIndex = currentDirectiveIndex;
  47866. }
  47867. /**
  47868. * Retrieve the current `DirectiveDef` which is active when `hostBindings` instruction is being
  47869. * executed.
  47870. *
  47871. * @param tData Current `TData` where the `DirectiveDef` will be looked up at.
  47872. */
  47873. function getCurrentDirectiveDef(tData) {
  47874. const currentDirectiveIndex = instructionState.lFrame.currentDirectiveIndex;
  47875. return currentDirectiveIndex === -1 ? null : tData[currentDirectiveIndex];
  47876. }
  47877. function getCurrentQueryIndex() {
  47878. return instructionState.lFrame.currentQueryIndex;
  47879. }
  47880. function setCurrentQueryIndex(value) {
  47881. instructionState.lFrame.currentQueryIndex = value;
  47882. }
  47883. /**
  47884. * Returns a `TNode` of the location where the current `LView` is declared at.
  47885. *
  47886. * @param lView an `LView` that we want to find parent `TNode` for.
  47887. */
  47888. function getDeclarationTNode(lView) {
  47889. const tView = lView[TVIEW];
  47890. // Return the declaration parent for embedded views
  47891. if (tView.type === 2 /* Embedded */) {
  47892. ngDevMode && assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');
  47893. return tView.declTNode;
  47894. }
  47895. // Components don't have `TView.declTNode` because each instance of component could be
  47896. // inserted in different location, hence `TView.declTNode` is meaningless.
  47897. // Falling back to `T_HOST` in case we cross component boundary.
  47898. if (tView.type === 1 /* Component */) {
  47899. return lView[T_HOST];
  47900. }
  47901. // Remaining TNode type is `TViewType.Root` which doesn't have a parent TNode.
  47902. return null;
  47903. }
  47904. /**
  47905. * This is a light weight version of the `enterView` which is needed by the DI system.
  47906. *
  47907. * @param lView `LView` location of the DI context.
  47908. * @param tNode `TNode` for DI context
  47909. * @param flags DI context flags. if `SkipSelf` flag is set than we walk up the declaration
  47910. * tree from `tNode` until we find parent declared `TElementNode`.
  47911. * @returns `true` if we have successfully entered DI associated with `tNode` (or with declared
  47912. * `TNode` if `flags` has `SkipSelf`). Failing to enter DI implies that no associated
  47913. * `NodeInjector` can be found and we should instead use `ModuleInjector`.
  47914. * - If `true` than this call must be fallowed by `leaveDI`
  47915. * - If `false` than this call failed and we should NOT call `leaveDI`
  47916. */
  47917. function enterDI(lView, tNode, flags) {
  47918. ngDevMode && assertLViewOrUndefined(lView);
  47919. if (flags & InjectFlags.SkipSelf) {
  47920. ngDevMode && assertTNodeForTView(tNode, lView[TVIEW]);
  47921. let parentTNode = tNode;
  47922. let parentLView = lView;
  47923. while (true) {
  47924. ngDevMode && assertDefined(parentTNode, 'Parent TNode should be defined');
  47925. parentTNode = parentTNode.parent;
  47926. if (parentTNode === null && !(flags & InjectFlags.Host)) {
  47927. parentTNode = getDeclarationTNode(parentLView);
  47928. if (parentTNode === null)
  47929. break;
  47930. // In this case, a parent exists and is definitely an element. So it will definitely
  47931. // have an existing lView as the declaration view, which is why we can assume it's defined.
  47932. ngDevMode && assertDefined(parentLView, 'Parent LView should be defined');
  47933. parentLView = parentLView[DECLARATION_VIEW];
  47934. // In Ivy there are Comment nodes that correspond to ngIf and NgFor embedded directives
  47935. // We want to skip those and look only at Elements and ElementContainers to ensure
  47936. // we're looking at true parent nodes, and not content or other types.
  47937. if (parentTNode.type & (2 /* Element */ | 8 /* ElementContainer */)) {
  47938. break;
  47939. }
  47940. }
  47941. else {
  47942. break;
  47943. }
  47944. }
  47945. if (parentTNode === null) {
  47946. // If we failed to find a parent TNode this means that we should use module injector.
  47947. return false;
  47948. }
  47949. else {
  47950. tNode = parentTNode;
  47951. lView = parentLView;
  47952. }
  47953. }
  47954. ngDevMode && assertTNodeForLView(tNode, lView);
  47955. const lFrame = instructionState.lFrame = allocLFrame();
  47956. lFrame.currentTNode = tNode;
  47957. lFrame.lView = lView;
  47958. return true;
  47959. }
  47960. /**
  47961. * Swap the current lView with a new lView.
  47962. *
  47963. * For performance reasons we store the lView in the top level of the module.
  47964. * This way we minimize the number of properties to read. Whenever a new view
  47965. * is entered we have to store the lView for later, and when the view is
  47966. * exited the state has to be restored
  47967. *
  47968. * @param newView New lView to become active
  47969. * @returns the previously active lView;
  47970. */
  47971. function enterView(newView) {
  47972. ngDevMode && assertNotEqual(newView[0], newView[1], '????');
  47973. ngDevMode && assertLViewOrUndefined(newView);
  47974. const newLFrame = allocLFrame();
  47975. if (ngDevMode) {
  47976. assertEqual(newLFrame.isParent, true, 'Expected clean LFrame');
  47977. assertEqual(newLFrame.lView, null, 'Expected clean LFrame');
  47978. assertEqual(newLFrame.tView, null, 'Expected clean LFrame');
  47979. assertEqual(newLFrame.selectedIndex, -1, 'Expected clean LFrame');
  47980. assertEqual(newLFrame.elementDepthCount, 0, 'Expected clean LFrame');
  47981. assertEqual(newLFrame.currentDirectiveIndex, -1, 'Expected clean LFrame');
  47982. assertEqual(newLFrame.currentNamespace, null, 'Expected clean LFrame');
  47983. assertEqual(newLFrame.bindingRootIndex, -1, 'Expected clean LFrame');
  47984. assertEqual(newLFrame.currentQueryIndex, 0, 'Expected clean LFrame');
  47985. }
  47986. const tView = newView[TVIEW];
  47987. instructionState.lFrame = newLFrame;
  47988. ngDevMode && tView.firstChild && assertTNodeForTView(tView.firstChild, tView);
  47989. newLFrame.currentTNode = tView.firstChild;
  47990. newLFrame.lView = newView;
  47991. newLFrame.tView = tView;
  47992. newLFrame.contextLView = newView;
  47993. newLFrame.bindingIndex = tView.bindingStartIndex;
  47994. newLFrame.inI18n = false;
  47995. }
  47996. /**
  47997. * Allocates next free LFrame. This function tries to reuse the `LFrame`s to lower memory pressure.
  47998. */
  47999. function allocLFrame() {
  48000. const currentLFrame = instructionState.lFrame;
  48001. const childLFrame = currentLFrame === null ? null : currentLFrame.child;
  48002. const newLFrame = childLFrame === null ? createLFrame(currentLFrame) : childLFrame;
  48003. return newLFrame;
  48004. }
  48005. function createLFrame(parent) {
  48006. const lFrame = {
  48007. currentTNode: null,
  48008. isParent: true,
  48009. lView: null,
  48010. tView: null,
  48011. selectedIndex: -1,
  48012. contextLView: null,
  48013. elementDepthCount: 0,
  48014. currentNamespace: null,
  48015. currentDirectiveIndex: -1,
  48016. bindingRootIndex: -1,
  48017. bindingIndex: -1,
  48018. currentQueryIndex: 0,
  48019. parent: parent,
  48020. child: null,
  48021. inI18n: false,
  48022. };
  48023. parent !== null && (parent.child = lFrame); // link the new LFrame for reuse.
  48024. return lFrame;
  48025. }
  48026. /**
  48027. * A lightweight version of leave which is used with DI.
  48028. *
  48029. * This function only resets `currentTNode` and `LView` as those are the only properties
  48030. * used with DI (`enterDI()`).
  48031. *
  48032. * NOTE: This function is reexported as `leaveDI`. However `leaveDI` has return type of `void` where
  48033. * as `leaveViewLight` has `LFrame`. This is so that `leaveViewLight` can be used in `leaveView`.
  48034. */
  48035. function leaveViewLight() {
  48036. const oldLFrame = instructionState.lFrame;
  48037. instructionState.lFrame = oldLFrame.parent;
  48038. oldLFrame.currentTNode = null;
  48039. oldLFrame.lView = null;
  48040. return oldLFrame;
  48041. }
  48042. /**
  48043. * This is a lightweight version of the `leaveView` which is needed by the DI system.
  48044. *
  48045. * NOTE: this function is an alias so that we can change the type of the function to have `void`
  48046. * return type.
  48047. */
  48048. const leaveDI = leaveViewLight;
  48049. /**
  48050. * Leave the current `LView`
  48051. *
  48052. * This pops the `LFrame` with the associated `LView` from the stack.
  48053. *
  48054. * IMPORTANT: We must zero out the `LFrame` values here otherwise they will be retained. This is
  48055. * because for performance reasons we don't release `LFrame` but rather keep it for next use.
  48056. */
  48057. function leaveView() {
  48058. const oldLFrame = leaveViewLight();
  48059. oldLFrame.isParent = true;
  48060. oldLFrame.tView = null;
  48061. oldLFrame.selectedIndex = -1;
  48062. oldLFrame.contextLView = null;
  48063. oldLFrame.elementDepthCount = 0;
  48064. oldLFrame.currentDirectiveIndex = -1;
  48065. oldLFrame.currentNamespace = null;
  48066. oldLFrame.bindingRootIndex = -1;
  48067. oldLFrame.bindingIndex = -1;
  48068. oldLFrame.currentQueryIndex = 0;
  48069. }
  48070. function nextContextImpl(level) {
  48071. const contextLView = instructionState.lFrame.contextLView =
  48072. walkUpViews(level, instructionState.lFrame.contextLView);
  48073. return contextLView[CONTEXT];
  48074. }
  48075. function walkUpViews(nestingLevel, currentView) {
  48076. while (nestingLevel > 0) {
  48077. ngDevMode &&
  48078. assertDefined(currentView[DECLARATION_VIEW], 'Declaration view should be defined if nesting level is greater than 0.');
  48079. currentView = currentView[DECLARATION_VIEW];
  48080. nestingLevel--;
  48081. }
  48082. return currentView;
  48083. }
  48084. /**
  48085. * Gets the currently selected element index.
  48086. *
  48087. * Used with {@link property} instruction (and more in the future) to identify the index in the
  48088. * current `LView` to act on.
  48089. */
  48090. function getSelectedIndex() {
  48091. return instructionState.lFrame.selectedIndex;
  48092. }
  48093. /**
  48094. * Sets the most recent index passed to {@link select}
  48095. *
  48096. * Used with {@link property} instruction (and more in the future) to identify the index in the
  48097. * current `LView` to act on.
  48098. *
  48099. * (Note that if an "exit function" was set earlier (via `setElementExitFn()`) then that will be
  48100. * run if and when the provided `index` value is different from the current selected index value.)
  48101. */
  48102. function setSelectedIndex(index) {
  48103. ngDevMode && index !== -1 &&
  48104. assertGreaterThanOrEqual(index, HEADER_OFFSET, 'Index must be past HEADER_OFFSET (or -1).');
  48105. ngDevMode &&
  48106. assertLessThan(index, instructionState.lFrame.lView.length, 'Can\'t set index passed end of LView');
  48107. instructionState.lFrame.selectedIndex = index;
  48108. }
  48109. /**
  48110. * Gets the `tNode` that represents currently selected element.
  48111. */
  48112. function getSelectedTNode() {
  48113. const lFrame = instructionState.lFrame;
  48114. return getTNode(lFrame.tView, lFrame.selectedIndex);
  48115. }
  48116. /**
  48117. * Sets the namespace used to create elements to `'http://www.w3.org/2000/svg'` in global state.
  48118. *
  48119. * @codeGenApi
  48120. */
  48121. function ɵɵnamespaceSVG() {
  48122. instructionState.lFrame.currentNamespace = SVG_NAMESPACE;
  48123. }
  48124. /**
  48125. * Sets the namespace used to create elements to `'http://www.w3.org/1998/MathML/'` in global state.
  48126. *
  48127. * @codeGenApi
  48128. */
  48129. function ɵɵnamespaceMathML() {
  48130. instructionState.lFrame.currentNamespace = MATH_ML_NAMESPACE;
  48131. }
  48132. /**
  48133. * Sets the namespace used to create elements to `null`, which forces element creation to use
  48134. * `createElement` rather than `createElementNS`.
  48135. *
  48136. * @codeGenApi
  48137. */
  48138. function ɵɵnamespaceHTML() {
  48139. namespaceHTMLInternal();
  48140. }
  48141. /**
  48142. * Sets the namespace used to create elements to `null`, which forces element creation to use
  48143. * `createElement` rather than `createElementNS`.
  48144. */
  48145. function namespaceHTMLInternal() {
  48146. instructionState.lFrame.currentNamespace = null;
  48147. }
  48148. function getNamespace() {
  48149. return instructionState.lFrame.currentNamespace;
  48150. }
  48151. /**
  48152. * @license
  48153. * Copyright Google LLC All Rights Reserved.
  48154. *
  48155. * Use of this source code is governed by an MIT-style license that can be
  48156. * found in the LICENSE file at https://angular.io/license
  48157. */
  48158. /**
  48159. * Adds all directive lifecycle hooks from the given `DirectiveDef` to the given `TView`.
  48160. *
  48161. * Must be run *only* on the first template pass.
  48162. *
  48163. * Sets up the pre-order hooks on the provided `tView`,
  48164. * see {@link HookData} for details about the data structure.
  48165. *
  48166. * @param directiveIndex The index of the directive in LView
  48167. * @param directiveDef The definition containing the hooks to setup in tView
  48168. * @param tView The current TView
  48169. */
  48170. function registerPreOrderHooks(directiveIndex, directiveDef, tView) {
  48171. ngDevMode && assertFirstCreatePass(tView);
  48172. const { ngOnChanges, ngOnInit, ngDoCheck } = directiveDef.type.prototype;
  48173. if (ngOnChanges) {
  48174. const wrappedOnChanges = NgOnChangesFeatureImpl(directiveDef);
  48175. (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, wrappedOnChanges);
  48176. (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = []))
  48177. .push(directiveIndex, wrappedOnChanges);
  48178. }
  48179. if (ngOnInit) {
  48180. (tView.preOrderHooks || (tView.preOrderHooks = [])).push(0 - directiveIndex, ngOnInit);
  48181. }
  48182. if (ngDoCheck) {
  48183. (tView.preOrderHooks || (tView.preOrderHooks = [])).push(directiveIndex, ngDoCheck);
  48184. (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(directiveIndex, ngDoCheck);
  48185. }
  48186. }
  48187. /**
  48188. *
  48189. * Loops through the directives on the provided `tNode` and queues hooks to be
  48190. * run that are not initialization hooks.
  48191. *
  48192. * Should be executed during `elementEnd()` and similar to
  48193. * preserve hook execution order. Content, view, and destroy hooks for projected
  48194. * components and directives must be called *before* their hosts.
  48195. *
  48196. * Sets up the content, view, and destroy hooks on the provided `tView`,
  48197. * see {@link HookData} for details about the data structure.
  48198. *
  48199. * NOTE: This does not set up `onChanges`, `onInit` or `doCheck`, those are set up
  48200. * separately at `elementStart`.
  48201. *
  48202. * @param tView The current TView
  48203. * @param tNode The TNode whose directives are to be searched for hooks to queue
  48204. */
  48205. function registerPostOrderHooks(tView, tNode) {
  48206. ngDevMode && assertFirstCreatePass(tView);
  48207. // It's necessary to loop through the directives at elementEnd() (rather than processing in
  48208. // directiveCreate) so we can preserve the current hook order. Content, view, and destroy
  48209. // hooks for projected components and directives must be called *before* their hosts.
  48210. for (let i = tNode.directiveStart, end = tNode.directiveEnd; i < end; i++) {
  48211. const directiveDef = tView.data[i];
  48212. ngDevMode && assertDefined(directiveDef, 'Expecting DirectiveDef');
  48213. const lifecycleHooks = directiveDef.type.prototype;
  48214. const { ngAfterContentInit, ngAfterContentChecked, ngAfterViewInit, ngAfterViewChecked, ngOnDestroy } = lifecycleHooks;
  48215. if (ngAfterContentInit) {
  48216. (tView.contentHooks || (tView.contentHooks = [])).push(-i, ngAfterContentInit);
  48217. }
  48218. if (ngAfterContentChecked) {
  48219. (tView.contentHooks || (tView.contentHooks = [])).push(i, ngAfterContentChecked);
  48220. (tView.contentCheckHooks || (tView.contentCheckHooks = [])).push(i, ngAfterContentChecked);
  48221. }
  48222. if (ngAfterViewInit) {
  48223. (tView.viewHooks || (tView.viewHooks = [])).push(-i, ngAfterViewInit);
  48224. }
  48225. if (ngAfterViewChecked) {
  48226. (tView.viewHooks || (tView.viewHooks = [])).push(i, ngAfterViewChecked);
  48227. (tView.viewCheckHooks || (tView.viewCheckHooks = [])).push(i, ngAfterViewChecked);
  48228. }
  48229. if (ngOnDestroy != null) {
  48230. (tView.destroyHooks || (tView.destroyHooks = [])).push(i, ngOnDestroy);
  48231. }
  48232. }
  48233. }
  48234. /**
  48235. * Executing hooks requires complex logic as we need to deal with 2 constraints.
  48236. *
  48237. * 1. Init hooks (ngOnInit, ngAfterContentInit, ngAfterViewInit) must all be executed once and only
  48238. * once, across many change detection cycles. This must be true even if some hooks throw, or if
  48239. * some recursively trigger a change detection cycle.
  48240. * To solve that, it is required to track the state of the execution of these init hooks.
  48241. * This is done by storing and maintaining flags in the view: the {@link InitPhaseState},
  48242. * and the index within that phase. They can be seen as a cursor in the following structure:
  48243. * [[onInit1, onInit2], [afterContentInit1], [afterViewInit1, afterViewInit2, afterViewInit3]]
  48244. * They are are stored as flags in LView[FLAGS].
  48245. *
  48246. * 2. Pre-order hooks can be executed in batches, because of the select instruction.
  48247. * To be able to pause and resume their execution, we also need some state about the hook's array
  48248. * that is being processed:
  48249. * - the index of the next hook to be executed
  48250. * - the number of init hooks already found in the processed part of the array
  48251. * They are are stored as flags in LView[PREORDER_HOOK_FLAGS].
  48252. */
  48253. /**
  48254. * Executes pre-order check hooks ( OnChanges, DoChanges) given a view where all the init hooks were
  48255. * executed once. This is a light version of executeInitAndCheckPreOrderHooks where we can skip read
  48256. * / write of the init-hooks related flags.
  48257. * @param lView The LView where hooks are defined
  48258. * @param hooks Hooks to be run
  48259. * @param nodeIndex 3 cases depending on the value:
  48260. * - undefined: all hooks from the array should be executed (post-order case)
  48261. * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
  48262. * flushing the remaining hooks)
  48263. * - number: execute hooks only from the saved index until that node index exclusive (pre-order
  48264. * case, when executing select(number))
  48265. */
  48266. function executeCheckHooks(lView, hooks, nodeIndex) {
  48267. callHooks(lView, hooks, 3 /* InitPhaseCompleted */, nodeIndex);
  48268. }
  48269. /**
  48270. * Executes post-order init and check hooks (one of AfterContentInit, AfterContentChecked,
  48271. * AfterViewInit, AfterViewChecked) given a view where there are pending init hooks to be executed.
  48272. * @param lView The LView where hooks are defined
  48273. * @param hooks Hooks to be run
  48274. * @param initPhase A phase for which hooks should be run
  48275. * @param nodeIndex 3 cases depending on the value:
  48276. * - undefined: all hooks from the array should be executed (post-order case)
  48277. * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
  48278. * flushing the remaining hooks)
  48279. * - number: execute hooks only from the saved index until that node index exclusive (pre-order
  48280. * case, when executing select(number))
  48281. */
  48282. function executeInitAndCheckHooks(lView, hooks, initPhase, nodeIndex) {
  48283. ngDevMode &&
  48284. assertNotEqual(initPhase, 3 /* InitPhaseCompleted */, 'Init pre-order hooks should not be called more than once');
  48285. if ((lView[FLAGS] & 3 /* InitPhaseStateMask */) === initPhase) {
  48286. callHooks(lView, hooks, initPhase, nodeIndex);
  48287. }
  48288. }
  48289. function incrementInitPhaseFlags(lView, initPhase) {
  48290. ngDevMode &&
  48291. assertNotEqual(initPhase, 3 /* InitPhaseCompleted */, 'Init hooks phase should not be incremented after all init hooks have been run.');
  48292. let flags = lView[FLAGS];
  48293. if ((flags & 3 /* InitPhaseStateMask */) === initPhase) {
  48294. flags &= 2047 /* IndexWithinInitPhaseReset */;
  48295. flags += 1 /* InitPhaseStateIncrementer */;
  48296. lView[FLAGS] = flags;
  48297. }
  48298. }
  48299. /**
  48300. * Calls lifecycle hooks with their contexts, skipping init hooks if it's not
  48301. * the first LView pass
  48302. *
  48303. * @param currentView The current view
  48304. * @param arr The array in which the hooks are found
  48305. * @param initPhaseState the current state of the init phase
  48306. * @param currentNodeIndex 3 cases depending on the value:
  48307. * - undefined: all hooks from the array should be executed (post-order case)
  48308. * - null: execute hooks only from the saved index until the end of the array (pre-order case, when
  48309. * flushing the remaining hooks)
  48310. * - number: execute hooks only from the saved index until that node index exclusive (pre-order
  48311. * case, when executing select(number))
  48312. */
  48313. function callHooks(currentView, arr, initPhase, currentNodeIndex) {
  48314. ngDevMode &&
  48315. assertEqual(isInCheckNoChangesMode(), false, 'Hooks should never be run when in check no changes mode.');
  48316. const startIndex = currentNodeIndex !== undefined ?
  48317. (currentView[PREORDER_HOOK_FLAGS] & 65535 /* IndexOfTheNextPreOrderHookMaskMask */) :
  48318. 0;
  48319. const nodeIndexLimit = currentNodeIndex != null ? currentNodeIndex : -1;
  48320. let lastNodeIndexFound = 0;
  48321. for (let i = startIndex; i < arr.length; i++) {
  48322. const hook = arr[i + 1];
  48323. if (typeof hook === 'number') {
  48324. lastNodeIndexFound = arr[i];
  48325. if (currentNodeIndex != null && lastNodeIndexFound >= currentNodeIndex) {
  48326. break;
  48327. }
  48328. }
  48329. else {
  48330. const isInitHook = arr[i] < 0;
  48331. if (isInitHook)
  48332. currentView[PREORDER_HOOK_FLAGS] += 65536 /* NumberOfInitHooksCalledIncrementer */;
  48333. if (lastNodeIndexFound < nodeIndexLimit || nodeIndexLimit == -1) {
  48334. callHook(currentView, initPhase, arr, i);
  48335. currentView[PREORDER_HOOK_FLAGS] =
  48336. (currentView[PREORDER_HOOK_FLAGS] & 4294901760 /* NumberOfInitHooksCalledMask */) + i +
  48337. 2;
  48338. }
  48339. i++;
  48340. }
  48341. }
  48342. }
  48343. /**
  48344. * Execute one hook against the current `LView`.
  48345. *
  48346. * @param currentView The current view
  48347. * @param initPhaseState the current state of the init phase
  48348. * @param arr The array in which the hooks are found
  48349. * @param i The current index within the hook data array
  48350. */
  48351. function callHook(currentView, initPhase, arr, i) {
  48352. const isInitHook = arr[i] < 0;
  48353. const hook = arr[i + 1];
  48354. const directiveIndex = isInitHook ? -arr[i] : arr[i];
  48355. const directive = currentView[directiveIndex];
  48356. if (isInitHook) {
  48357. const indexWithintInitPhase = currentView[FLAGS] >> 11 /* IndexWithinInitPhaseShift */;
  48358. // The init phase state must be always checked here as it may have been recursively
  48359. // updated
  48360. if (indexWithintInitPhase <
  48361. (currentView[PREORDER_HOOK_FLAGS] >> 16 /* NumberOfInitHooksCalledShift */) &&
  48362. (currentView[FLAGS] & 3 /* InitPhaseStateMask */) === initPhase) {
  48363. currentView[FLAGS] += 2048 /* IndexWithinInitPhaseIncrementer */;
  48364. hook.call(directive);
  48365. }
  48366. }
  48367. else {
  48368. hook.call(directive);
  48369. }
  48370. }
  48371. /**
  48372. * @license
  48373. * Copyright Google LLC All Rights Reserved.
  48374. *
  48375. * Use of this source code is governed by an MIT-style license that can be
  48376. * found in the LICENSE file at https://angular.io/license
  48377. */
  48378. const NO_PARENT_INJECTOR = -1;
  48379. /**
  48380. * Each injector is saved in 9 contiguous slots in `LView` and 9 contiguous slots in
  48381. * `TView.data`. This allows us to store information about the current node's tokens (which
  48382. * can be shared in `TView`) as well as the tokens of its ancestor nodes (which cannot be
  48383. * shared, so they live in `LView`).
  48384. *
  48385. * Each of these slots (aside from the last slot) contains a bloom filter. This bloom filter
  48386. * determines whether a directive is available on the associated node or not. This prevents us
  48387. * from searching the directives array at this level unless it's probable the directive is in it.
  48388. *
  48389. * See: https://en.wikipedia.org/wiki/Bloom_filter for more about bloom filters.
  48390. *
  48391. * Because all injectors have been flattened into `LView` and `TViewData`, they cannot typed
  48392. * using interfaces as they were previously. The start index of each `LInjector` and `TInjector`
  48393. * will differ based on where it is flattened into the main array, so it's not possible to know
  48394. * the indices ahead of time and save their types here. The interfaces are still included here
  48395. * for documentation purposes.
  48396. *
  48397. * export interface LInjector extends Array<any> {
  48398. *
  48399. * // Cumulative bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)
  48400. * [0]: number;
  48401. *
  48402. * // Cumulative bloom for directive IDs 32-63
  48403. * [1]: number;
  48404. *
  48405. * // Cumulative bloom for directive IDs 64-95
  48406. * [2]: number;
  48407. *
  48408. * // Cumulative bloom for directive IDs 96-127
  48409. * [3]: number;
  48410. *
  48411. * // Cumulative bloom for directive IDs 128-159
  48412. * [4]: number;
  48413. *
  48414. * // Cumulative bloom for directive IDs 160 - 191
  48415. * [5]: number;
  48416. *
  48417. * // Cumulative bloom for directive IDs 192 - 223
  48418. * [6]: number;
  48419. *
  48420. * // Cumulative bloom for directive IDs 224 - 255
  48421. * [7]: number;
  48422. *
  48423. * // We need to store a reference to the injector's parent so DI can keep looking up
  48424. * // the injector tree until it finds the dependency it's looking for.
  48425. * [PARENT_INJECTOR]: number;
  48426. * }
  48427. *
  48428. * export interface TInjector extends Array<any> {
  48429. *
  48430. * // Shared node bloom for directive IDs 0-31 (IDs are % BLOOM_SIZE)
  48431. * [0]: number;
  48432. *
  48433. * // Shared node bloom for directive IDs 32-63
  48434. * [1]: number;
  48435. *
  48436. * // Shared node bloom for directive IDs 64-95
  48437. * [2]: number;
  48438. *
  48439. * // Shared node bloom for directive IDs 96-127
  48440. * [3]: number;
  48441. *
  48442. * // Shared node bloom for directive IDs 128-159
  48443. * [4]: number;
  48444. *
  48445. * // Shared node bloom for directive IDs 160 - 191
  48446. * [5]: number;
  48447. *
  48448. * // Shared node bloom for directive IDs 192 - 223
  48449. * [6]: number;
  48450. *
  48451. * // Shared node bloom for directive IDs 224 - 255
  48452. * [7]: number;
  48453. *
  48454. * // Necessary to find directive indices for a particular node.
  48455. * [TNODE]: TElementNode|TElementContainerNode|TContainerNode;
  48456. * }
  48457. */
  48458. /**
  48459. * Factory for creating instances of injectors in the NodeInjector.
  48460. *
  48461. * This factory is complicated by the fact that it can resolve `multi` factories as well.
  48462. *
  48463. * NOTE: Some of the fields are optional which means that this class has two hidden classes.
  48464. * - One without `multi` support (most common)
  48465. * - One with `multi` values, (rare).
  48466. *
  48467. * Since VMs can cache up to 4 inline hidden classes this is OK.
  48468. *
  48469. * - Single factory: Only `resolving` and `factory` is defined.
  48470. * - `providers` factory: `componentProviders` is a number and `index = -1`.
  48471. * - `viewProviders` factory: `componentProviders` is a number and `index` points to `providers`.
  48472. */
  48473. class NodeInjectorFactory {
  48474. constructor(
  48475. /**
  48476. * Factory to invoke in order to create a new instance.
  48477. */
  48478. factory,
  48479. /**
  48480. * Set to `true` if the token is declared in `viewProviders` (or if it is component).
  48481. */
  48482. isViewProvider, injectImplementation) {
  48483. this.factory = factory;
  48484. /**
  48485. * Marker set to true during factory invocation to see if we get into recursive loop.
  48486. * Recursive loop causes an error to be displayed.
  48487. */
  48488. this.resolving = false;
  48489. ngDevMode && assertDefined(factory, 'Factory not specified');
  48490. ngDevMode && assertEqual(typeof factory, 'function', 'Expected factory function.');
  48491. this.canSeeViewProviders = isViewProvider;
  48492. this.injectImpl = injectImplementation;
  48493. }
  48494. }
  48495. function isFactory(obj) {
  48496. return obj instanceof NodeInjectorFactory;
  48497. }
  48498. // Note: This hack is necessary so we don't erroneously get a circular dependency
  48499. // failure based on types.
  48500. const unusedValueExportToPlacateAjd$3 = 1;
  48501. /**
  48502. * Converts `TNodeType` into human readable text.
  48503. * Make sure this matches with `TNodeType`
  48504. */
  48505. function toTNodeTypeAsString(tNodeType) {
  48506. let text = '';
  48507. (tNodeType & 1 /* Text */) && (text += '|Text');
  48508. (tNodeType & 2 /* Element */) && (text += '|Element');
  48509. (tNodeType & 4 /* Container */) && (text += '|Container');
  48510. (tNodeType & 8 /* ElementContainer */) && (text += '|ElementContainer');
  48511. (tNodeType & 16 /* Projection */) && (text += '|Projection');
  48512. (tNodeType & 32 /* Icu */) && (text += '|IcuContainer');
  48513. (tNodeType & 64 /* Placeholder */) && (text += '|Placeholder');
  48514. return text.length > 0 ? text.substring(1) : text;
  48515. }
  48516. // Note: This hack is necessary so we don't erroneously get a circular dependency
  48517. // failure based on types.
  48518. const unusedValueExportToPlacateAjd$4 = 1;
  48519. /**
  48520. * Returns `true` if the `TNode` has a directive which has `@Input()` for `class` binding.
  48521. *
  48522. * ```
  48523. * <div my-dir [class]="exp"></div>
  48524. * ```
  48525. * and
  48526. * ```
  48527. * @Directive({
  48528. * })
  48529. * class MyDirective {
  48530. * @Input()
  48531. * class: string;
  48532. * }
  48533. * ```
  48534. *
  48535. * In the above case it is necessary to write the reconciled styling information into the
  48536. * directive's input.
  48537. *
  48538. * @param tNode
  48539. */
  48540. function hasClassInput(tNode) {
  48541. return (tNode.flags & 16 /* hasClassInput */) !== 0;
  48542. }
  48543. /**
  48544. * Returns `true` if the `TNode` has a directive which has `@Input()` for `style` binding.
  48545. *
  48546. * ```
  48547. * <div my-dir [style]="exp"></div>
  48548. * ```
  48549. * and
  48550. * ```
  48551. * @Directive({
  48552. * })
  48553. * class MyDirective {
  48554. * @Input()
  48555. * class: string;
  48556. * }
  48557. * ```
  48558. *
  48559. * In the above case it is necessary to write the reconciled styling information into the
  48560. * directive's input.
  48561. *
  48562. * @param tNode
  48563. */
  48564. function hasStyleInput(tNode) {
  48565. return (tNode.flags & 32 /* hasStyleInput */) !== 0;
  48566. }
  48567. /**
  48568. * @license
  48569. * Copyright Google LLC All Rights Reserved.
  48570. *
  48571. * Use of this source code is governed by an MIT-style license that can be
  48572. * found in the LICENSE file at https://angular.io/license
  48573. */
  48574. function assertTNodeType(tNode, expectedTypes, message) {
  48575. assertDefined(tNode, 'should be called with a TNode');
  48576. if ((tNode.type & expectedTypes) === 0) {
  48577. throwError(message ||
  48578. `Expected [${toTNodeTypeAsString(expectedTypes)}] but got ${toTNodeTypeAsString(tNode.type)}.`);
  48579. }
  48580. }
  48581. function assertPureTNodeType(type) {
  48582. if (!(type === 2 /* Element */ || //
  48583. type === 1 /* Text */ || //
  48584. type === 4 /* Container */ || //
  48585. type === 8 /* ElementContainer */ || //
  48586. type === 32 /* Icu */ || //
  48587. type === 16 /* Projection */ || //
  48588. type === 64 /* Placeholder */)) {
  48589. throwError(`Expected TNodeType to have only a single type selected, but got ${toTNodeTypeAsString(type)}.`);
  48590. }
  48591. }
  48592. /**
  48593. * Assigns all attribute values to the provided element via the inferred renderer.
  48594. *
  48595. * This function accepts two forms of attribute entries:
  48596. *
  48597. * default: (key, value):
  48598. * attrs = [key1, value1, key2, value2]
  48599. *
  48600. * namespaced: (NAMESPACE_MARKER, uri, name, value)
  48601. * attrs = [NAMESPACE_MARKER, uri, name, value, NAMESPACE_MARKER, uri, name, value]
  48602. *
  48603. * The `attrs` array can contain a mix of both the default and namespaced entries.
  48604. * The "default" values are set without a marker, but if the function comes across
  48605. * a marker value then it will attempt to set a namespaced value. If the marker is
  48606. * not of a namespaced value then the function will quit and return the index value
  48607. * where it stopped during the iteration of the attrs array.
  48608. *
  48609. * See [AttributeMarker] to understand what the namespace marker value is.
  48610. *
  48611. * Note that this instruction does not support assigning style and class values to
  48612. * an element. See `elementStart` and `elementHostAttrs` to learn how styling values
  48613. * are applied to an element.
  48614. * @param renderer The renderer to be used
  48615. * @param native The element that the attributes will be assigned to
  48616. * @param attrs The attribute array of values that will be assigned to the element
  48617. * @returns the index value that was last accessed in the attributes array
  48618. */
  48619. function setUpAttributes(renderer, native, attrs) {
  48620. const isProc = isProceduralRenderer(renderer);
  48621. let i = 0;
  48622. while (i < attrs.length) {
  48623. const value = attrs[i];
  48624. if (typeof value === 'number') {
  48625. // only namespaces are supported. Other value types (such as style/class
  48626. // entries) are not supported in this function.
  48627. if (value !== 0 /* NamespaceURI */) {
  48628. break;
  48629. }
  48630. // we just landed on the marker value ... therefore
  48631. // we should skip to the next entry
  48632. i++;
  48633. const namespaceURI = attrs[i++];
  48634. const attrName = attrs[i++];
  48635. const attrVal = attrs[i++];
  48636. ngDevMode && ngDevMode.rendererSetAttribute++;
  48637. isProc ?
  48638. renderer.setAttribute(native, attrName, attrVal, namespaceURI) :
  48639. native.setAttributeNS(namespaceURI, attrName, attrVal);
  48640. }
  48641. else {
  48642. // attrName is string;
  48643. const attrName = value;
  48644. const attrVal = attrs[++i];
  48645. // Standard attributes
  48646. ngDevMode && ngDevMode.rendererSetAttribute++;
  48647. if (isAnimationProp(attrName)) {
  48648. if (isProc) {
  48649. renderer.setProperty(native, attrName, attrVal);
  48650. }
  48651. }
  48652. else {
  48653. isProc ?
  48654. renderer.setAttribute(native, attrName, attrVal) :
  48655. native.setAttribute(attrName, attrVal);
  48656. }
  48657. i++;
  48658. }
  48659. }
  48660. // another piece of code may iterate over the same attributes array. Therefore
  48661. // it may be helpful to return the exact spot where the attributes array exited
  48662. // whether by running into an unsupported marker or if all the static values were
  48663. // iterated over.
  48664. return i;
  48665. }
  48666. /**
  48667. * Test whether the given value is a marker that indicates that the following
  48668. * attribute values in a `TAttributes` array are only the names of attributes,
  48669. * and not name-value pairs.
  48670. * @param marker The attribute marker to test.
  48671. * @returns true if the marker is a "name-only" marker (e.g. `Bindings`, `Template` or `I18n`).
  48672. */
  48673. function isNameOnlyAttributeMarker(marker) {
  48674. return marker === 3 /* Bindings */ || marker === 4 /* Template */ ||
  48675. marker === 6 /* I18n */;
  48676. }
  48677. function isAnimationProp(name) {
  48678. // Perf note: accessing charCodeAt to check for the first character of a string is faster as
  48679. // compared to accessing a character at index 0 (ex. name[0]). The main reason for this is that
  48680. // charCodeAt doesn't allocate memory to return a substring.
  48681. return name.charCodeAt(0) === 64 /* AT_SIGN */;
  48682. }
  48683. /**
  48684. * Merges `src` `TAttributes` into `dst` `TAttributes` removing any duplicates in the process.
  48685. *
  48686. * This merge function keeps the order of attrs same.
  48687. *
  48688. * @param dst Location of where the merged `TAttributes` should end up.
  48689. * @param src `TAttributes` which should be appended to `dst`
  48690. */
  48691. function mergeHostAttrs(dst, src) {
  48692. if (src === null || src.length === 0) {
  48693. // do nothing
  48694. }
  48695. else if (dst === null || dst.length === 0) {
  48696. // We have source, but dst is empty, just make a copy.
  48697. dst = src.slice();
  48698. }
  48699. else {
  48700. let srcMarker = -1 /* ImplicitAttributes */;
  48701. for (let i = 0; i < src.length; i++) {
  48702. const item = src[i];
  48703. if (typeof item === 'number') {
  48704. srcMarker = item;
  48705. }
  48706. else {
  48707. if (srcMarker === 0 /* NamespaceURI */) {
  48708. // Case where we need to consume `key1`, `key2`, `value` items.
  48709. }
  48710. else if (srcMarker === -1 /* ImplicitAttributes */ ||
  48711. srcMarker === 2 /* Styles */) {
  48712. // Case where we have to consume `key1` and `value` only.
  48713. mergeHostAttribute(dst, srcMarker, item, null, src[++i]);
  48714. }
  48715. else {
  48716. // Case where we have to consume `key1` only.
  48717. mergeHostAttribute(dst, srcMarker, item, null, null);
  48718. }
  48719. }
  48720. }
  48721. }
  48722. return dst;
  48723. }
  48724. /**
  48725. * Append `key`/`value` to existing `TAttributes` taking region marker and duplicates into account.
  48726. *
  48727. * @param dst `TAttributes` to append to.
  48728. * @param marker Region where the `key`/`value` should be added.
  48729. * @param key1 Key to add to `TAttributes`
  48730. * @param key2 Key to add to `TAttributes` (in case of `AttributeMarker.NamespaceURI`)
  48731. * @param value Value to add or to overwrite to `TAttributes` Only used if `marker` is not Class.
  48732. */
  48733. function mergeHostAttribute(dst, marker, key1, key2, value) {
  48734. let i = 0;
  48735. // Assume that new markers will be inserted at the end.
  48736. let markerInsertPosition = dst.length;
  48737. // scan until correct type.
  48738. if (marker === -1 /* ImplicitAttributes */) {
  48739. markerInsertPosition = -1;
  48740. }
  48741. else {
  48742. while (i < dst.length) {
  48743. const dstValue = dst[i++];
  48744. if (typeof dstValue === 'number') {
  48745. if (dstValue === marker) {
  48746. markerInsertPosition = -1;
  48747. break;
  48748. }
  48749. else if (dstValue > marker) {
  48750. // We need to save this as we want the markers to be inserted in specific order.
  48751. markerInsertPosition = i - 1;
  48752. break;
  48753. }
  48754. }
  48755. }
  48756. }
  48757. // search until you find place of insertion
  48758. while (i < dst.length) {
  48759. const item = dst[i];
  48760. if (typeof item === 'number') {
  48761. // since `i` started as the index after the marker, we did not find it if we are at the next
  48762. // marker
  48763. break;
  48764. }
  48765. else if (item === key1) {
  48766. // We already have same token
  48767. if (key2 === null) {
  48768. if (value !== null) {
  48769. dst[i + 1] = value;
  48770. }
  48771. return;
  48772. }
  48773. else if (key2 === dst[i + 1]) {
  48774. dst[i + 2] = value;
  48775. return;
  48776. }
  48777. }
  48778. // Increment counter.
  48779. i++;
  48780. if (key2 !== null)
  48781. i++;
  48782. if (value !== null)
  48783. i++;
  48784. }
  48785. // insert at location.
  48786. if (markerInsertPosition !== -1) {
  48787. dst.splice(markerInsertPosition, 0, marker);
  48788. i = markerInsertPosition + 1;
  48789. }
  48790. dst.splice(i++, 0, key1);
  48791. if (key2 !== null) {
  48792. dst.splice(i++, 0, key2);
  48793. }
  48794. if (value !== null) {
  48795. dst.splice(i++, 0, value);
  48796. }
  48797. }
  48798. /**
  48799. * @license
  48800. * Copyright Google LLC All Rights Reserved.
  48801. *
  48802. * Use of this source code is governed by an MIT-style license that can be
  48803. * found in the LICENSE file at https://angular.io/license
  48804. */
  48805. /// Parent Injector Utils ///////////////////////////////////////////////////////////////
  48806. function hasParentInjector(parentLocation) {
  48807. return parentLocation !== NO_PARENT_INJECTOR;
  48808. }
  48809. function getParentInjectorIndex(parentLocation) {
  48810. ngDevMode && assertNumber(parentLocation, 'Number expected');
  48811. ngDevMode && assertNotEqual(parentLocation, -1, 'Not a valid state.');
  48812. const parentInjectorIndex = parentLocation & 32767 /* InjectorIndexMask */;
  48813. ngDevMode &&
  48814. assertGreaterThan(parentInjectorIndex, HEADER_OFFSET, 'Parent injector must be pointing past HEADER_OFFSET.');
  48815. return parentLocation & 32767 /* InjectorIndexMask */;
  48816. }
  48817. function getParentInjectorViewOffset(parentLocation) {
  48818. return parentLocation >> 16 /* ViewOffsetShift */;
  48819. }
  48820. /**
  48821. * Unwraps a parent injector location number to find the view offset from the current injector,
  48822. * then walks up the declaration view tree until the view is found that contains the parent
  48823. * injector.
  48824. *
  48825. * @param location The location of the parent injector, which contains the view offset
  48826. * @param startView The LView instance from which to start walking up the view tree
  48827. * @returns The LView instance that contains the parent injector
  48828. */
  48829. function getParentInjectorView(location, startView) {
  48830. let viewOffset = getParentInjectorViewOffset(location);
  48831. let parentView = startView;
  48832. // For most cases, the parent injector can be found on the host node (e.g. for component
  48833. // or container), but we must keep the loop here to support the rarer case of deeply nested
  48834. // <ng-template> tags or inline views, where the parent injector might live many views
  48835. // above the child injector.
  48836. while (viewOffset > 0) {
  48837. parentView = parentView[DECLARATION_VIEW];
  48838. viewOffset--;
  48839. }
  48840. return parentView;
  48841. }
  48842. /**
  48843. * @license
  48844. * Copyright Google LLC All Rights Reserved.
  48845. *
  48846. * Use of this source code is governed by an MIT-style license that can be
  48847. * found in the LICENSE file at https://angular.io/license
  48848. */
  48849. /**
  48850. * Defines if the call to `inject` should include `viewProviders` in its resolution.
  48851. *
  48852. * This is set to true when we try to instantiate a component. This value is reset in
  48853. * `getNodeInjectable` to a value which matches the declaration location of the token about to be
  48854. * instantiated. This is done so that if we are injecting a token which was declared outside of
  48855. * `viewProviders` we don't accidentally pull `viewProviders` in.
  48856. *
  48857. * Example:
  48858. *
  48859. * ```
  48860. * @Injectable()
  48861. * class MyService {
  48862. * constructor(public value: String) {}
  48863. * }
  48864. *
  48865. * @Component({
  48866. * providers: [
  48867. * MyService,
  48868. * {provide: String, value: 'providers' }
  48869. * ]
  48870. * viewProviders: [
  48871. * {provide: String, value: 'viewProviders'}
  48872. * ]
  48873. * })
  48874. * class MyComponent {
  48875. * constructor(myService: MyService, value: String) {
  48876. * // We expect that Component can see into `viewProviders`.
  48877. * expect(value).toEqual('viewProviders');
  48878. * // `MyService` was not declared in `viewProviders` hence it can't see it.
  48879. * expect(myService.value).toEqual('providers');
  48880. * }
  48881. * }
  48882. *
  48883. * ```
  48884. */
  48885. let includeViewProviders = true;
  48886. function setIncludeViewProviders(v) {
  48887. const oldValue = includeViewProviders;
  48888. includeViewProviders = v;
  48889. return oldValue;
  48890. }
  48891. /**
  48892. * The number of slots in each bloom filter (used by DI). The larger this number, the fewer
  48893. * directives that will share slots, and thus, the fewer false positives when checking for
  48894. * the existence of a directive.
  48895. */
  48896. const BLOOM_SIZE = 256;
  48897. const BLOOM_MASK = BLOOM_SIZE - 1;
  48898. /** Counter used to generate unique IDs for directives. */
  48899. let nextNgElementId = 0;
  48900. /**
  48901. * Registers this directive as present in its node's injector by flipping the directive's
  48902. * corresponding bit in the injector's bloom filter.
  48903. *
  48904. * @param injectorIndex The index of the node injector where this token should be registered
  48905. * @param tView The TView for the injector's bloom filters
  48906. * @param type The directive token to register
  48907. */
  48908. function bloomAdd(injectorIndex, tView, type) {
  48909. ngDevMode && assertEqual(tView.firstCreatePass, true, 'expected firstCreatePass to be true');
  48910. let id;
  48911. if (typeof type === 'string') {
  48912. id = type.charCodeAt(0) || 0;
  48913. }
  48914. else if (type.hasOwnProperty(NG_ELEMENT_ID)) {
  48915. id = type[NG_ELEMENT_ID];
  48916. }
  48917. // Set a unique ID on the directive type, so if something tries to inject the directive,
  48918. // we can easily retrieve the ID and hash it into the bloom bit that should be checked.
  48919. if (id == null) {
  48920. id = type[NG_ELEMENT_ID] = nextNgElementId++;
  48921. }
  48922. // We only have BLOOM_SIZE (256) slots in our bloom filter (8 buckets * 32 bits each),
  48923. // so all unique IDs must be modulo-ed into a number from 0 - 255 to fit into the filter.
  48924. const bloomBit = id & BLOOM_MASK;
  48925. // Create a mask that targets the specific bit associated with the directive.
  48926. // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
  48927. // to bit positions 0 - 31 in a 32 bit integer.
  48928. const mask = 1 << bloomBit;
  48929. // Use the raw bloomBit number to determine which bloom filter bucket we should check
  48930. // e.g: bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc
  48931. const b7 = bloomBit & 0x80;
  48932. const b6 = bloomBit & 0x40;
  48933. const b5 = bloomBit & 0x20;
  48934. const tData = tView.data;
  48935. if (b7) {
  48936. b6 ? (b5 ? (tData[injectorIndex + 7] |= mask) : (tData[injectorIndex + 6] |= mask)) :
  48937. (b5 ? (tData[injectorIndex + 5] |= mask) : (tData[injectorIndex + 4] |= mask));
  48938. }
  48939. else {
  48940. b6 ? (b5 ? (tData[injectorIndex + 3] |= mask) : (tData[injectorIndex + 2] |= mask)) :
  48941. (b5 ? (tData[injectorIndex + 1] |= mask) : (tData[injectorIndex] |= mask));
  48942. }
  48943. }
  48944. /**
  48945. * Creates (or gets an existing) injector for a given element or container.
  48946. *
  48947. * @param tNode for which an injector should be retrieved / created.
  48948. * @param lView View where the node is stored
  48949. * @returns Node injector
  48950. */
  48951. function getOrCreateNodeInjectorForNode(tNode, lView) {
  48952. const existingInjectorIndex = getInjectorIndex(tNode, lView);
  48953. if (existingInjectorIndex !== -1) {
  48954. return existingInjectorIndex;
  48955. }
  48956. const tView = lView[TVIEW];
  48957. if (tView.firstCreatePass) {
  48958. tNode.injectorIndex = lView.length;
  48959. insertBloom(tView.data, tNode); // foundation for node bloom
  48960. insertBloom(lView, null); // foundation for cumulative bloom
  48961. insertBloom(tView.blueprint, null);
  48962. }
  48963. const parentLoc = getParentInjectorLocation(tNode, lView);
  48964. const injectorIndex = tNode.injectorIndex;
  48965. // If a parent injector can't be found, its location is set to -1.
  48966. // In that case, we don't need to set up a cumulative bloom
  48967. if (hasParentInjector(parentLoc)) {
  48968. const parentIndex = getParentInjectorIndex(parentLoc);
  48969. const parentLView = getParentInjectorView(parentLoc, lView);
  48970. const parentData = parentLView[TVIEW].data;
  48971. // Creates a cumulative bloom filter that merges the parent's bloom filter
  48972. // and its own cumulative bloom (which contains tokens for all ancestors)
  48973. for (let i = 0; i < 8 /* BLOOM_SIZE */; i++) {
  48974. lView[injectorIndex + i] = parentLView[parentIndex + i] | parentData[parentIndex + i];
  48975. }
  48976. }
  48977. lView[injectorIndex + 8 /* PARENT */] = parentLoc;
  48978. return injectorIndex;
  48979. }
  48980. function insertBloom(arr, footer) {
  48981. arr.push(0, 0, 0, 0, 0, 0, 0, 0, footer);
  48982. }
  48983. function getInjectorIndex(tNode, lView) {
  48984. if (tNode.injectorIndex === -1 ||
  48985. // If the injector index is the same as its parent's injector index, then the index has been
  48986. // copied down from the parent node. No injector has been created yet on this node.
  48987. (tNode.parent && tNode.parent.injectorIndex === tNode.injectorIndex) ||
  48988. // After the first template pass, the injector index might exist but the parent values
  48989. // might not have been calculated yet for this instance
  48990. lView[tNode.injectorIndex + 8 /* PARENT */] === null) {
  48991. return -1;
  48992. }
  48993. else {
  48994. ngDevMode && assertIndexInRange(lView, tNode.injectorIndex);
  48995. return tNode.injectorIndex;
  48996. }
  48997. }
  48998. /**
  48999. * Finds the index of the parent injector, with a view offset if applicable. Used to set the
  49000. * parent injector initially.
  49001. *
  49002. * @returns Returns a number that is the combination of the number of LViews that we have to go up
  49003. * to find the LView containing the parent inject AND the index of the injector within that LView.
  49004. */
  49005. function getParentInjectorLocation(tNode, lView) {
  49006. if (tNode.parent && tNode.parent.injectorIndex !== -1) {
  49007. // If we have a parent `TNode` and there is an injector associated with it we are done, because
  49008. // the parent injector is within the current `LView`.
  49009. return tNode.parent.injectorIndex; // ViewOffset is 0
  49010. }
  49011. // When parent injector location is computed it may be outside of the current view. (ie it could
  49012. // be pointing to a declared parent location). This variable stores number of declaration parents
  49013. // we need to walk up in order to find the parent injector location.
  49014. let declarationViewOffset = 0;
  49015. let parentTNode = null;
  49016. let lViewCursor = lView;
  49017. // The parent injector is not in the current `LView`. We will have to walk the declared parent
  49018. // `LView` hierarchy and look for it. If we walk of the top, that means that there is no parent
  49019. // `NodeInjector`.
  49020. while (lViewCursor !== null) {
  49021. // First determine the `parentTNode` location. The parent pointer differs based on `TView.type`.
  49022. const tView = lViewCursor[TVIEW];
  49023. const tViewType = tView.type;
  49024. if (tViewType === 2 /* Embedded */) {
  49025. ngDevMode &&
  49026. assertDefined(tView.declTNode, 'Embedded TNodes should have declaration parents.');
  49027. parentTNode = tView.declTNode;
  49028. }
  49029. else if (tViewType === 1 /* Component */) {
  49030. // Components don't have `TView.declTNode` because each instance of component could be
  49031. // inserted in different location, hence `TView.declTNode` is meaningless.
  49032. parentTNode = lViewCursor[T_HOST];
  49033. }
  49034. else {
  49035. ngDevMode && assertEqual(tView.type, 0 /* Root */, 'Root type expected');
  49036. parentTNode = null;
  49037. }
  49038. if (parentTNode === null) {
  49039. // If we have no parent, than we are done.
  49040. return NO_PARENT_INJECTOR;
  49041. }
  49042. ngDevMode && parentTNode && assertTNodeForLView(parentTNode, lViewCursor[DECLARATION_VIEW]);
  49043. // Every iteration of the loop requires that we go to the declared parent.
  49044. declarationViewOffset++;
  49045. lViewCursor = lViewCursor[DECLARATION_VIEW];
  49046. if (parentTNode.injectorIndex !== -1) {
  49047. // We found a NodeInjector which points to something.
  49048. return (parentTNode.injectorIndex |
  49049. (declarationViewOffset << 16 /* ViewOffsetShift */));
  49050. }
  49051. }
  49052. return NO_PARENT_INJECTOR;
  49053. }
  49054. /**
  49055. * Makes a type or an injection token public to the DI system by adding it to an
  49056. * injector's bloom filter.
  49057. *
  49058. * @param di The node injector in which a directive will be added
  49059. * @param token The type or the injection token to be made public
  49060. */
  49061. function diPublicInInjector(injectorIndex, tView, token) {
  49062. bloomAdd(injectorIndex, tView, token);
  49063. }
  49064. /**
  49065. * Inject static attribute value into directive constructor.
  49066. *
  49067. * This method is used with `factory` functions which are generated as part of
  49068. * `defineDirective` or `defineComponent`. The method retrieves the static value
  49069. * of an attribute. (Dynamic attributes are not supported since they are not resolved
  49070. * at the time of injection and can change over time.)
  49071. *
  49072. * # Example
  49073. * Given:
  49074. * ```
  49075. * @Component(...)
  49076. * class MyComponent {
  49077. * constructor(@Attribute('title') title: string) { ... }
  49078. * }
  49079. * ```
  49080. * When instantiated with
  49081. * ```
  49082. * <my-component title="Hello"></my-component>
  49083. * ```
  49084. *
  49085. * Then factory method generated is:
  49086. * ```
  49087. * MyComponent.ɵcmp = defineComponent({
  49088. * factory: () => new MyComponent(injectAttribute('title'))
  49089. * ...
  49090. * })
  49091. * ```
  49092. *
  49093. * @publicApi
  49094. */
  49095. function injectAttributeImpl(tNode, attrNameToInject) {
  49096. ngDevMode && assertTNodeType(tNode, 12 /* AnyContainer */ | 3 /* AnyRNode */);
  49097. ngDevMode && assertDefined(tNode, 'expecting tNode');
  49098. if (attrNameToInject === 'class') {
  49099. return tNode.classes;
  49100. }
  49101. if (attrNameToInject === 'style') {
  49102. return tNode.styles;
  49103. }
  49104. const attrs = tNode.attrs;
  49105. if (attrs) {
  49106. const attrsLength = attrs.length;
  49107. let i = 0;
  49108. while (i < attrsLength) {
  49109. const value = attrs[i];
  49110. // If we hit a `Bindings` or `Template` marker then we are done.
  49111. if (isNameOnlyAttributeMarker(value))
  49112. break;
  49113. // Skip namespaced attributes
  49114. if (value === 0 /* NamespaceURI */) {
  49115. // we skip the next two values
  49116. // as namespaced attributes looks like
  49117. // [..., AttributeMarker.NamespaceURI, 'http://someuri.com/test', 'test:exist',
  49118. // 'existValue', ...]
  49119. i = i + 2;
  49120. }
  49121. else if (typeof value === 'number') {
  49122. // Skip to the first value of the marked attribute.
  49123. i++;
  49124. while (i < attrsLength && typeof attrs[i] === 'string') {
  49125. i++;
  49126. }
  49127. }
  49128. else if (value === attrNameToInject) {
  49129. return attrs[i + 1];
  49130. }
  49131. else {
  49132. i = i + 2;
  49133. }
  49134. }
  49135. }
  49136. return null;
  49137. }
  49138. function notFoundValueOrThrow(notFoundValue, token, flags) {
  49139. if (flags & InjectFlags.Optional) {
  49140. return notFoundValue;
  49141. }
  49142. else {
  49143. throwProviderNotFoundError(token, 'NodeInjector');
  49144. }
  49145. }
  49146. /**
  49147. * Returns the value associated to the given token from the ModuleInjector or throws exception
  49148. *
  49149. * @param lView The `LView` that contains the `tNode`
  49150. * @param token The token to look for
  49151. * @param flags Injection flags
  49152. * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
  49153. * @returns the value from the injector or throws an exception
  49154. */
  49155. function lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue) {
  49156. if (flags & InjectFlags.Optional && notFoundValue === undefined) {
  49157. // This must be set or the NullInjector will throw for optional deps
  49158. notFoundValue = null;
  49159. }
  49160. if ((flags & (InjectFlags.Self | InjectFlags.Host)) === 0) {
  49161. const moduleInjector = lView[INJECTOR];
  49162. // switch to `injectInjectorOnly` implementation for module injector, since module injector
  49163. // should not have access to Component/Directive DI scope (that may happen through
  49164. // `directiveInject` implementation)
  49165. const previousInjectImplementation = setInjectImplementation(undefined);
  49166. try {
  49167. if (moduleInjector) {
  49168. return moduleInjector.get(token, notFoundValue, flags & InjectFlags.Optional);
  49169. }
  49170. else {
  49171. return injectRootLimpMode(token, notFoundValue, flags & InjectFlags.Optional);
  49172. }
  49173. }
  49174. finally {
  49175. setInjectImplementation(previousInjectImplementation);
  49176. }
  49177. }
  49178. return notFoundValueOrThrow(notFoundValue, token, flags);
  49179. }
  49180. /**
  49181. * Returns the value associated to the given token from the NodeInjectors => ModuleInjector.
  49182. *
  49183. * Look for the injector providing the token by walking up the node injector tree and then
  49184. * the module injector tree.
  49185. *
  49186. * This function patches `token` with `__NG_ELEMENT_ID__` which contains the id for the bloom
  49187. * filter. `-1` is reserved for injecting `Injector` (implemented by `NodeInjector`)
  49188. *
  49189. * @param tNode The Node where the search for the injector should start
  49190. * @param lView The `LView` that contains the `tNode`
  49191. * @param token The token to look for
  49192. * @param flags Injection flags
  49193. * @param notFoundValue The value to return when the injection flags is `InjectFlags.Optional`
  49194. * @returns the value from the injector, `null` when not found, or `notFoundValue` if provided
  49195. */
  49196. function getOrCreateInjectable(tNode, lView, token, flags = InjectFlags.Default, notFoundValue) {
  49197. if (tNode !== null) {
  49198. const bloomHash = bloomHashBitOrFactory(token);
  49199. // If the ID stored here is a function, this is a special object like ElementRef or TemplateRef
  49200. // so just call the factory function to create it.
  49201. if (typeof bloomHash === 'function') {
  49202. if (!enterDI(lView, tNode, flags)) {
  49203. // Failed to enter DI, try module injector instead. If a token is injected with the @Host
  49204. // flag, the module injector is not searched for that token in Ivy.
  49205. return (flags & InjectFlags.Host) ?
  49206. notFoundValueOrThrow(notFoundValue, token, flags) :
  49207. lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
  49208. }
  49209. try {
  49210. const value = bloomHash();
  49211. if (value == null && !(flags & InjectFlags.Optional)) {
  49212. throwProviderNotFoundError(token);
  49213. }
  49214. else {
  49215. return value;
  49216. }
  49217. }
  49218. finally {
  49219. leaveDI();
  49220. }
  49221. }
  49222. else if (typeof bloomHash === 'number') {
  49223. // A reference to the previous injector TView that was found while climbing the element
  49224. // injector tree. This is used to know if viewProviders can be accessed on the current
  49225. // injector.
  49226. let previousTView = null;
  49227. let injectorIndex = getInjectorIndex(tNode, lView);
  49228. let parentLocation = NO_PARENT_INJECTOR;
  49229. let hostTElementNode = flags & InjectFlags.Host ? lView[DECLARATION_COMPONENT_VIEW][T_HOST] : null;
  49230. // If we should skip this injector, or if there is no injector on this node, start by
  49231. // searching the parent injector.
  49232. if (injectorIndex === -1 || flags & InjectFlags.SkipSelf) {
  49233. parentLocation = injectorIndex === -1 ? getParentInjectorLocation(tNode, lView) :
  49234. lView[injectorIndex + 8 /* PARENT */];
  49235. if (parentLocation === NO_PARENT_INJECTOR || !shouldSearchParent(flags, false)) {
  49236. injectorIndex = -1;
  49237. }
  49238. else {
  49239. previousTView = lView[TVIEW];
  49240. injectorIndex = getParentInjectorIndex(parentLocation);
  49241. lView = getParentInjectorView(parentLocation, lView);
  49242. }
  49243. }
  49244. // Traverse up the injector tree until we find a potential match or until we know there
  49245. // *isn't* a match.
  49246. while (injectorIndex !== -1) {
  49247. ngDevMode && assertNodeInjector(lView, injectorIndex);
  49248. // Check the current injector. If it matches, see if it contains token.
  49249. const tView = lView[TVIEW];
  49250. ngDevMode &&
  49251. assertTNodeForLView(tView.data[injectorIndex + 8 /* TNODE */], lView);
  49252. if (bloomHasToken(bloomHash, injectorIndex, tView.data)) {
  49253. // At this point, we have an injector which *may* contain the token, so we step through
  49254. // the providers and directives associated with the injector's corresponding node to get
  49255. // the instance.
  49256. const instance = searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode);
  49257. if (instance !== NOT_FOUND) {
  49258. return instance;
  49259. }
  49260. }
  49261. parentLocation = lView[injectorIndex + 8 /* PARENT */];
  49262. if (parentLocation !== NO_PARENT_INJECTOR &&
  49263. shouldSearchParent(flags, lView[TVIEW].data[injectorIndex + 8 /* TNODE */] === hostTElementNode) &&
  49264. bloomHasToken(bloomHash, injectorIndex, lView)) {
  49265. // The def wasn't found anywhere on this node, so it was a false positive.
  49266. // Traverse up the tree and continue searching.
  49267. previousTView = tView;
  49268. injectorIndex = getParentInjectorIndex(parentLocation);
  49269. lView = getParentInjectorView(parentLocation, lView);
  49270. }
  49271. else {
  49272. // If we should not search parent OR If the ancestor bloom filter value does not have the
  49273. // bit corresponding to the directive we can give up on traversing up to find the specific
  49274. // injector.
  49275. injectorIndex = -1;
  49276. }
  49277. }
  49278. }
  49279. }
  49280. return lookupTokenUsingModuleInjector(lView, token, flags, notFoundValue);
  49281. }
  49282. const NOT_FOUND = {};
  49283. function createNodeInjector() {
  49284. return new NodeInjector(getCurrentTNode(), getLView());
  49285. }
  49286. function searchTokensOnInjector(injectorIndex, lView, token, previousTView, flags, hostTElementNode) {
  49287. const currentTView = lView[TVIEW];
  49288. const tNode = currentTView.data[injectorIndex + 8 /* TNODE */];
  49289. // First, we need to determine if view providers can be accessed by the starting element.
  49290. // There are two possibilities
  49291. const canAccessViewProviders = previousTView == null ?
  49292. // 1) This is the first invocation `previousTView == null` which means that we are at the
  49293. // `TNode` of where injector is starting to look. In such a case the only time we are allowed
  49294. // to look into the ViewProviders is if:
  49295. // - we are on a component
  49296. // - AND the injector set `includeViewProviders` to true (implying that the token can see
  49297. // ViewProviders because it is the Component or a Service which itself was declared in
  49298. // ViewProviders)
  49299. (isComponentHost(tNode) && includeViewProviders) :
  49300. // 2) `previousTView != null` which means that we are now walking across the parent nodes.
  49301. // In such a case we are only allowed to look into the ViewProviders if:
  49302. // - We just crossed from child View to Parent View `previousTView != currentTView`
  49303. // - AND the parent TNode is an Element.
  49304. // This means that we just came from the Component's View and therefore are allowed to see
  49305. // into the ViewProviders.
  49306. (previousTView != currentTView && ((tNode.type & 3 /* AnyRNode */) !== 0));
  49307. // This special case happens when there is a @host on the inject and when we are searching
  49308. // on the host element node.
  49309. const isHostSpecialCase = (flags & InjectFlags.Host) && hostTElementNode === tNode;
  49310. const injectableIdx = locateDirectiveOrProvider(tNode, currentTView, token, canAccessViewProviders, isHostSpecialCase);
  49311. if (injectableIdx !== null) {
  49312. return getNodeInjectable(lView, currentTView, injectableIdx, tNode);
  49313. }
  49314. else {
  49315. return NOT_FOUND;
  49316. }
  49317. }
  49318. /**
  49319. * Searches for the given token among the node's directives and providers.
  49320. *
  49321. * @param tNode TNode on which directives are present.
  49322. * @param tView The tView we are currently processing
  49323. * @param token Provider token or type of a directive to look for.
  49324. * @param canAccessViewProviders Whether view providers should be considered.
  49325. * @param isHostSpecialCase Whether the host special case applies.
  49326. * @returns Index of a found directive or provider, or null when none found.
  49327. */
  49328. function locateDirectiveOrProvider(tNode, tView, token, canAccessViewProviders, isHostSpecialCase) {
  49329. const nodeProviderIndexes = tNode.providerIndexes;
  49330. const tInjectables = tView.data;
  49331. const injectablesStart = nodeProviderIndexes & 1048575 /* ProvidersStartIndexMask */;
  49332. const directivesStart = tNode.directiveStart;
  49333. const directiveEnd = tNode.directiveEnd;
  49334. const cptViewProvidersCount = nodeProviderIndexes >> 20 /* CptViewProvidersCountShift */;
  49335. const startingIndex = canAccessViewProviders ? injectablesStart : injectablesStart + cptViewProvidersCount;
  49336. // When the host special case applies, only the viewProviders and the component are visible
  49337. const endIndex = isHostSpecialCase ? injectablesStart + cptViewProvidersCount : directiveEnd;
  49338. for (let i = startingIndex; i < endIndex; i++) {
  49339. const providerTokenOrDef = tInjectables[i];
  49340. if (i < directivesStart && token === providerTokenOrDef ||
  49341. i >= directivesStart && providerTokenOrDef.type === token) {
  49342. return i;
  49343. }
  49344. }
  49345. if (isHostSpecialCase) {
  49346. const dirDef = tInjectables[directivesStart];
  49347. if (dirDef && isComponentDef(dirDef) && dirDef.type === token) {
  49348. return directivesStart;
  49349. }
  49350. }
  49351. return null;
  49352. }
  49353. /**
  49354. * Retrieve or instantiate the injectable from the `LView` at particular `index`.
  49355. *
  49356. * This function checks to see if the value has already been instantiated and if so returns the
  49357. * cached `injectable`. Otherwise if it detects that the value is still a factory it
  49358. * instantiates the `injectable` and caches the value.
  49359. */
  49360. function getNodeInjectable(lView, tView, index, tNode) {
  49361. let value = lView[index];
  49362. const tData = tView.data;
  49363. if (isFactory(value)) {
  49364. const factory = value;
  49365. if (factory.resolving) {
  49366. throwCyclicDependencyError(stringifyForError(tData[index]));
  49367. }
  49368. const previousIncludeViewProviders = setIncludeViewProviders(factory.canSeeViewProviders);
  49369. factory.resolving = true;
  49370. const previousInjectImplementation = factory.injectImpl ? setInjectImplementation(factory.injectImpl) : null;
  49371. const success = enterDI(lView, tNode, InjectFlags.Default);
  49372. ngDevMode &&
  49373. assertEqual(success, true, 'Because flags do not contain \`SkipSelf\' we expect this to always succeed.');
  49374. try {
  49375. value = lView[index] = factory.factory(undefined, tData, lView, tNode);
  49376. // This code path is hit for both directives and providers.
  49377. // For perf reasons, we want to avoid searching for hooks on providers.
  49378. // It does no harm to try (the hooks just won't exist), but the extra
  49379. // checks are unnecessary and this is a hot path. So we check to see
  49380. // if the index of the dependency is in the directive range for this
  49381. // tNode. If it's not, we know it's a provider and skip hook registration.
  49382. if (tView.firstCreatePass && index >= tNode.directiveStart) {
  49383. ngDevMode && assertDirectiveDef(tData[index]);
  49384. registerPreOrderHooks(index, tData[index], tView);
  49385. }
  49386. }
  49387. finally {
  49388. previousInjectImplementation !== null &&
  49389. setInjectImplementation(previousInjectImplementation);
  49390. setIncludeViewProviders(previousIncludeViewProviders);
  49391. factory.resolving = false;
  49392. leaveDI();
  49393. }
  49394. }
  49395. return value;
  49396. }
  49397. /**
  49398. * Returns the bit in an injector's bloom filter that should be used to determine whether or not
  49399. * the directive might be provided by the injector.
  49400. *
  49401. * When a directive is public, it is added to the bloom filter and given a unique ID that can be
  49402. * retrieved on the Type. When the directive isn't public or the token is not a directive `null`
  49403. * is returned as the node injector can not possibly provide that token.
  49404. *
  49405. * @param token the injection token
  49406. * @returns the matching bit to check in the bloom filter or `null` if the token is not known.
  49407. * When the returned value is negative then it represents special values such as `Injector`.
  49408. */
  49409. function bloomHashBitOrFactory(token) {
  49410. ngDevMode && assertDefined(token, 'token must be defined');
  49411. if (typeof token === 'string') {
  49412. return token.charCodeAt(0) || 0;
  49413. }
  49414. const tokenId =
  49415. // First check with `hasOwnProperty` so we don't get an inherited ID.
  49416. token.hasOwnProperty(NG_ELEMENT_ID) ? token[NG_ELEMENT_ID] : undefined;
  49417. // Negative token IDs are used for special objects such as `Injector`
  49418. if (typeof tokenId === 'number') {
  49419. if (tokenId >= 0) {
  49420. return tokenId & BLOOM_MASK;
  49421. }
  49422. else {
  49423. ngDevMode &&
  49424. assertEqual(tokenId, -1 /* Injector */, 'Expecting to get Special Injector Id');
  49425. return createNodeInjector;
  49426. }
  49427. }
  49428. else {
  49429. return tokenId;
  49430. }
  49431. }
  49432. function bloomHasToken(bloomHash, injectorIndex, injectorView) {
  49433. // Create a mask that targets the specific bit associated with the directive we're looking for.
  49434. // JS bit operations are 32 bits, so this will be a number between 2^0 and 2^31, corresponding
  49435. // to bit positions 0 - 31 in a 32 bit integer.
  49436. const mask = 1 << bloomHash;
  49437. const b7 = bloomHash & 0x80;
  49438. const b6 = bloomHash & 0x40;
  49439. const b5 = bloomHash & 0x20;
  49440. // Our bloom filter size is 256 bits, which is eight 32-bit bloom filter buckets:
  49441. // bf0 = [0 - 31], bf1 = [32 - 63], bf2 = [64 - 95], bf3 = [96 - 127], etc.
  49442. // Get the bloom filter value from the appropriate bucket based on the directive's bloomBit.
  49443. let value;
  49444. if (b7) {
  49445. value = b6 ? (b5 ? injectorView[injectorIndex + 7] : injectorView[injectorIndex + 6]) :
  49446. (b5 ? injectorView[injectorIndex + 5] : injectorView[injectorIndex + 4]);
  49447. }
  49448. else {
  49449. value = b6 ? (b5 ? injectorView[injectorIndex + 3] : injectorView[injectorIndex + 2]) :
  49450. (b5 ? injectorView[injectorIndex + 1] : injectorView[injectorIndex]);
  49451. }
  49452. // If the bloom filter value has the bit corresponding to the directive's bloomBit flipped on,
  49453. // this injector is a potential match.
  49454. return !!(value & mask);
  49455. }
  49456. /** Returns true if flags prevent parent injector from being searched for tokens */
  49457. function shouldSearchParent(flags, isFirstHostTNode) {
  49458. return !(flags & InjectFlags.Self) && !(flags & InjectFlags.Host && isFirstHostTNode);
  49459. }
  49460. class NodeInjector {
  49461. constructor(_tNode, _lView) {
  49462. this._tNode = _tNode;
  49463. this._lView = _lView;
  49464. }
  49465. get(token, notFoundValue) {
  49466. return getOrCreateInjectable(this._tNode, this._lView, token, undefined, notFoundValue);
  49467. }
  49468. }
  49469. /**
  49470. * @codeGenApi
  49471. */
  49472. function ɵɵgetFactoryOf(type) {
  49473. const typeAny = type;
  49474. if (isForwardRef(type)) {
  49475. return (() => {
  49476. const factory = ɵɵgetFactoryOf(resolveForwardRef(typeAny));
  49477. return factory ? factory() : null;
  49478. });
  49479. }
  49480. let factory = getFactoryDef(typeAny);
  49481. if (factory === null) {
  49482. const injectorDef = getInjectorDef(typeAny);
  49483. factory = injectorDef && injectorDef.factory;
  49484. }
  49485. return factory || null;
  49486. }
  49487. /**
  49488. * @codeGenApi
  49489. */
  49490. function ɵɵgetInheritedFactory(type) {
  49491. return noSideEffects(() => {
  49492. const ownConstructor = type.prototype.constructor;
  49493. const ownFactory = ownConstructor[NG_FACTORY_DEF] || ɵɵgetFactoryOf(ownConstructor);
  49494. const objectPrototype = Object.prototype;
  49495. let parent = Object.getPrototypeOf(type.prototype).constructor;
  49496. // Go up the prototype until we hit `Object`.
  49497. while (parent && parent !== objectPrototype) {
  49498. const factory = parent[NG_FACTORY_DEF] || ɵɵgetFactoryOf(parent);
  49499. // If we hit something that has a factory and the factory isn't the same as the type,
  49500. // we've found the inherited factory. Note the check that the factory isn't the type's
  49501. // own factory is redundant in most cases, but if the user has custom decorators on the
  49502. // class, this lookup will start one level down in the prototype chain, causing us to
  49503. // find the own factory first and potentially triggering an infinite loop downstream.
  49504. if (factory && factory !== ownFactory) {
  49505. return factory;
  49506. }
  49507. parent = Object.getPrototypeOf(parent);
  49508. }
  49509. // There is no factory defined. Either this was improper usage of inheritance
  49510. // (no Angular decorator on the superclass) or there is no constructor at all
  49511. // in the inheritance chain. Since the two cases cannot be distinguished, the
  49512. // latter has to be assumed.
  49513. return t => new t();
  49514. });
  49515. }
  49516. /**
  49517. * @license
  49518. * Copyright Google LLC All Rights Reserved.
  49519. *
  49520. * Use of this source code is governed by an MIT-style license that can be
  49521. * found in the LICENSE file at https://angular.io/license
  49522. */
  49523. /**
  49524. * Facade for the attribute injection from DI.
  49525. *
  49526. * @codeGenApi
  49527. */
  49528. function ɵɵinjectAttribute(attrNameToInject) {
  49529. return injectAttributeImpl(getCurrentTNode(), attrNameToInject);
  49530. }
  49531. /**
  49532. * @license
  49533. * Copyright Google LLC All Rights Reserved.
  49534. *
  49535. * Use of this source code is governed by an MIT-style license that can be
  49536. * found in the LICENSE file at https://angular.io/license
  49537. */
  49538. const ANNOTATIONS = '__annotations__';
  49539. const PARAMETERS = '__parameters__';
  49540. const PROP_METADATA = '__prop__metadata__';
  49541. /**
  49542. * @suppress {globalThis}
  49543. */
  49544. function makeDecorator(name, props, parentClass, additionalProcessing, typeFn) {
  49545. return noSideEffects(() => {
  49546. const metaCtor = makeMetadataCtor(props);
  49547. function DecoratorFactory(...args) {
  49548. if (this instanceof DecoratorFactory) {
  49549. metaCtor.call(this, ...args);
  49550. return this;
  49551. }
  49552. const annotationInstance = new DecoratorFactory(...args);
  49553. return function TypeDecorator(cls) {
  49554. if (typeFn)
  49555. typeFn(cls, ...args);
  49556. // Use of Object.defineProperty is important since it creates non-enumerable property which
  49557. // prevents the property is copied during subclassing.
  49558. const annotations = cls.hasOwnProperty(ANNOTATIONS) ?
  49559. cls[ANNOTATIONS] :
  49560. Object.defineProperty(cls, ANNOTATIONS, { value: [] })[ANNOTATIONS];
  49561. annotations.push(annotationInstance);
  49562. if (additionalProcessing)
  49563. additionalProcessing(cls);
  49564. return cls;
  49565. };
  49566. }
  49567. if (parentClass) {
  49568. DecoratorFactory.prototype = Object.create(parentClass.prototype);
  49569. }
  49570. DecoratorFactory.prototype.ngMetadataName = name;
  49571. DecoratorFactory.annotationCls = DecoratorFactory;
  49572. return DecoratorFactory;
  49573. });
  49574. }
  49575. function makeMetadataCtor(props) {
  49576. return function ctor(...args) {
  49577. if (props) {
  49578. const values = props(...args);
  49579. for (const propName in values) {
  49580. this[propName] = values[propName];
  49581. }
  49582. }
  49583. };
  49584. }
  49585. function makeParamDecorator(name, props, parentClass) {
  49586. return noSideEffects(() => {
  49587. const metaCtor = makeMetadataCtor(props);
  49588. function ParamDecoratorFactory(...args) {
  49589. if (this instanceof ParamDecoratorFactory) {
  49590. metaCtor.apply(this, args);
  49591. return this;
  49592. }
  49593. const annotationInstance = new ParamDecoratorFactory(...args);
  49594. ParamDecorator.annotation = annotationInstance;
  49595. return ParamDecorator;
  49596. function ParamDecorator(cls, unusedKey, index) {
  49597. // Use of Object.defineProperty is important since it creates non-enumerable property which
  49598. // prevents the property is copied during subclassing.
  49599. const parameters = cls.hasOwnProperty(PARAMETERS) ?
  49600. cls[PARAMETERS] :
  49601. Object.defineProperty(cls, PARAMETERS, { value: [] })[PARAMETERS];
  49602. // there might be gaps if some in between parameters do not have annotations.
  49603. // we pad with nulls.
  49604. while (parameters.length <= index) {
  49605. parameters.push(null);
  49606. }
  49607. (parameters[index] = parameters[index] || []).push(annotationInstance);
  49608. return cls;
  49609. }
  49610. }
  49611. if (parentClass) {
  49612. ParamDecoratorFactory.prototype = Object.create(parentClass.prototype);
  49613. }
  49614. ParamDecoratorFactory.prototype.ngMetadataName = name;
  49615. ParamDecoratorFactory.annotationCls = ParamDecoratorFactory;
  49616. return ParamDecoratorFactory;
  49617. });
  49618. }
  49619. function makePropDecorator(name, props, parentClass, additionalProcessing) {
  49620. return noSideEffects(() => {
  49621. const metaCtor = makeMetadataCtor(props);
  49622. function PropDecoratorFactory(...args) {
  49623. if (this instanceof PropDecoratorFactory) {
  49624. metaCtor.apply(this, args);
  49625. return this;
  49626. }
  49627. const decoratorInstance = new PropDecoratorFactory(...args);
  49628. function PropDecorator(target, name) {
  49629. const constructor = target.constructor;
  49630. // Use of Object.defineProperty is important because it creates a non-enumerable property
  49631. // which prevents the property from being copied during subclassing.
  49632. const meta = constructor.hasOwnProperty(PROP_METADATA) ?
  49633. constructor[PROP_METADATA] :
  49634. Object.defineProperty(constructor, PROP_METADATA, { value: {} })[PROP_METADATA];
  49635. meta[name] = meta.hasOwnProperty(name) && meta[name] || [];
  49636. meta[name].unshift(decoratorInstance);
  49637. if (additionalProcessing)
  49638. additionalProcessing(target, name, ...args);
  49639. }
  49640. return PropDecorator;
  49641. }
  49642. if (parentClass) {
  49643. PropDecoratorFactory.prototype = Object.create(parentClass.prototype);
  49644. }
  49645. PropDecoratorFactory.prototype.ngMetadataName = name;
  49646. PropDecoratorFactory.annotationCls = PropDecoratorFactory;
  49647. return PropDecoratorFactory;
  49648. });
  49649. }
  49650. /**
  49651. * @license
  49652. * Copyright Google LLC All Rights Reserved.
  49653. *
  49654. * Use of this source code is governed by an MIT-style license that can be
  49655. * found in the LICENSE file at https://angular.io/license
  49656. */
  49657. function CREATE_ATTRIBUTE_DECORATOR__PRE_R3__() {
  49658. return makeParamDecorator('Attribute', (attributeName) => ({ attributeName }));
  49659. }
  49660. function CREATE_ATTRIBUTE_DECORATOR__POST_R3__() {
  49661. return makeParamDecorator('Attribute', (attributeName) => ({ attributeName, __NG_ELEMENT_ID__: () => ɵɵinjectAttribute(attributeName) }));
  49662. }
  49663. const CREATE_ATTRIBUTE_DECORATOR_IMPL = CREATE_ATTRIBUTE_DECORATOR__POST_R3__;
  49664. /**
  49665. * Attribute decorator and metadata.
  49666. *
  49667. * @Annotation
  49668. * @publicApi
  49669. */
  49670. const Attribute = CREATE_ATTRIBUTE_DECORATOR_IMPL();
  49671. /**
  49672. * @license
  49673. * Copyright Google LLC All Rights Reserved.
  49674. *
  49675. * Use of this source code is governed by an MIT-style license that can be
  49676. * found in the LICENSE file at https://angular.io/license
  49677. */
  49678. /**
  49679. * Creates a token that can be used in a DI Provider.
  49680. *
  49681. * Use an `InjectionToken` whenever the type you are injecting is not reified (does not have a
  49682. * runtime representation) such as when injecting an interface, callable type, array or
  49683. * parameterized type.
  49684. *
  49685. * `InjectionToken` is parameterized on `T` which is the type of object which will be returned by
  49686. * the `Injector`. This provides additional level of type safety.
  49687. *
  49688. * ```
  49689. * interface MyInterface {...}
  49690. * var myInterface = injector.get(new InjectionToken<MyInterface>('SomeToken'));
  49691. * // myInterface is inferred to be MyInterface.
  49692. * ```
  49693. *
  49694. * When creating an `InjectionToken`, you can optionally specify a factory function which returns
  49695. * (possibly by creating) a default value of the parameterized type `T`. This sets up the
  49696. * `InjectionToken` using this factory as a provider as if it was defined explicitly in the
  49697. * application's root injector. If the factory function, which takes zero arguments, needs to inject
  49698. * dependencies, it can do so using the `inject` function. See below for an example.
  49699. *
  49700. * Additionally, if a `factory` is specified you can also specify the `providedIn` option, which
  49701. * overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
  49702. * mentioned above, `'root'` is the default value for `providedIn`.
  49703. *
  49704. * @usageNotes
  49705. * ### Basic Example
  49706. *
  49707. * ### Plain InjectionToken
  49708. *
  49709. * {@example core/di/ts/injector_spec.ts region='InjectionToken'}
  49710. *
  49711. * ### Tree-shakable InjectionToken
  49712. *
  49713. * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
  49714. *
  49715. *
  49716. * @publicApi
  49717. */
  49718. class InjectionToken {
  49719. constructor(_desc, options) {
  49720. this._desc = _desc;
  49721. /** @internal */
  49722. this.ngMetadataName = 'InjectionToken';
  49723. this.ɵprov = undefined;
  49724. if (typeof options == 'number') {
  49725. (typeof ngDevMode === 'undefined' || ngDevMode) &&
  49726. assertLessThan(options, 0, 'Only negative numbers are supported here');
  49727. // This is a special hack to assign __NG_ELEMENT_ID__ to this instance.
  49728. // See `InjectorMarkers`
  49729. this.__NG_ELEMENT_ID__ = options;
  49730. }
  49731. else if (options !== undefined) {
  49732. this.ɵprov = ɵɵdefineInjectable({
  49733. token: this,
  49734. providedIn: options.providedIn || 'root',
  49735. factory: options.factory,
  49736. });
  49737. }
  49738. }
  49739. toString() {
  49740. return `InjectionToken ${this._desc}`;
  49741. }
  49742. }
  49743. /**
  49744. * @license
  49745. * Copyright Google LLC All Rights Reserved.
  49746. *
  49747. * Use of this source code is governed by an MIT-style license that can be
  49748. * found in the LICENSE file at https://angular.io/license
  49749. */
  49750. /**
  49751. * A DI token that you can use to create a virtual [provider](guide/glossary#provider)
  49752. * that will populate the `entryComponents` field of components and NgModules
  49753. * based on its `useValue` property value.
  49754. * All components that are referenced in the `useValue` value (either directly
  49755. * or in a nested array or map) are added to the `entryComponents` property.
  49756. *
  49757. * @usageNotes
  49758. *
  49759. * The following example shows how the router can populate the `entryComponents`
  49760. * field of an NgModule based on a router configuration that refers
  49761. * to components.
  49762. *
  49763. * ```typescript
  49764. * // helper function inside the router
  49765. * function provideRoutes(routes) {
  49766. * return [
  49767. * {provide: ROUTES, useValue: routes},
  49768. * {provide: ANALYZE_FOR_ENTRY_COMPONENTS, useValue: routes, multi: true}
  49769. * ];
  49770. * }
  49771. *
  49772. * // user code
  49773. * let routes = [
  49774. * {path: '/root', component: RootComp},
  49775. * {path: '/teams', component: TeamsComp}
  49776. * ];
  49777. *
  49778. * @NgModule({
  49779. * providers: [provideRoutes(routes)]
  49780. * })
  49781. * class ModuleWithRoutes {}
  49782. * ```
  49783. *
  49784. * @publicApi
  49785. * @deprecated Since 9.0.0. With Ivy, this property is no longer necessary.
  49786. */
  49787. const ANALYZE_FOR_ENTRY_COMPONENTS = new InjectionToken('AnalyzeForEntryComponents');
  49788. /**
  49789. * Base class for query metadata.
  49790. *
  49791. * @see `ContentChildren`.
  49792. * @see `ContentChild`.
  49793. * @see `ViewChildren`.
  49794. * @see `ViewChild`.
  49795. *
  49796. * @publicApi
  49797. */
  49798. class Query {
  49799. }
  49800. const ɵ0$1 = (selector, data = {}) => (Object.assign({ selector, first: false, isViewQuery: false, descendants: false }, data));
  49801. /**
  49802. * ContentChildren decorator and metadata.
  49803. *
  49804. *
  49805. * @Annotation
  49806. * @publicApi
  49807. */
  49808. const ContentChildren = makePropDecorator('ContentChildren', ɵ0$1, Query);
  49809. const ɵ1 = (selector, data = {}) => (Object.assign({ selector, first: true, isViewQuery: false, descendants: true }, data));
  49810. /**
  49811. * ContentChild decorator and metadata.
  49812. *
  49813. *
  49814. * @Annotation
  49815. *
  49816. * @publicApi
  49817. */
  49818. const ContentChild = makePropDecorator('ContentChild', ɵ1, Query);
  49819. const ɵ2 = (selector, data = {}) => (Object.assign({ selector, first: false, isViewQuery: true, descendants: true }, data));
  49820. /**
  49821. * ViewChildren decorator and metadata.
  49822. *
  49823. * @Annotation
  49824. * @publicApi
  49825. */
  49826. const ViewChildren = makePropDecorator('ViewChildren', ɵ2, Query);
  49827. const ɵ3 = (selector, data) => (Object.assign({ selector, first: true, isViewQuery: true, descendants: true }, data));
  49828. /**
  49829. * ViewChild decorator and metadata.
  49830. *
  49831. * @Annotation
  49832. * @publicApi
  49833. */
  49834. const ViewChild = makePropDecorator('ViewChild', ɵ3, Query);
  49835. /**
  49836. * @license
  49837. * Copyright Google LLC All Rights Reserved.
  49838. *
  49839. * Use of this source code is governed by an MIT-style license that can be
  49840. * found in the LICENSE file at https://angular.io/license
  49841. */
  49842. var R3ResolvedDependencyType;
  49843. (function (R3ResolvedDependencyType) {
  49844. R3ResolvedDependencyType[R3ResolvedDependencyType["Token"] = 0] = "Token";
  49845. R3ResolvedDependencyType[R3ResolvedDependencyType["Attribute"] = 1] = "Attribute";
  49846. R3ResolvedDependencyType[R3ResolvedDependencyType["ChangeDetectorRef"] = 2] = "ChangeDetectorRef";
  49847. R3ResolvedDependencyType[R3ResolvedDependencyType["Invalid"] = 3] = "Invalid";
  49848. })(R3ResolvedDependencyType || (R3ResolvedDependencyType = {}));
  49849. var R3FactoryTarget;
  49850. (function (R3FactoryTarget) {
  49851. R3FactoryTarget[R3FactoryTarget["Directive"] = 0] = "Directive";
  49852. R3FactoryTarget[R3FactoryTarget["Component"] = 1] = "Component";
  49853. R3FactoryTarget[R3FactoryTarget["Injectable"] = 2] = "Injectable";
  49854. R3FactoryTarget[R3FactoryTarget["Pipe"] = 3] = "Pipe";
  49855. R3FactoryTarget[R3FactoryTarget["NgModule"] = 4] = "NgModule";
  49856. })(R3FactoryTarget || (R3FactoryTarget = {}));
  49857. var ViewEncapsulation$1;
  49858. (function (ViewEncapsulation) {
  49859. ViewEncapsulation[ViewEncapsulation["Emulated"] = 0] = "Emulated";
  49860. // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
  49861. ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
  49862. ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
  49863. })(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));
  49864. /**
  49865. * @license
  49866. * Copyright Google LLC All Rights Reserved.
  49867. *
  49868. * Use of this source code is governed by an MIT-style license that can be
  49869. * found in the LICENSE file at https://angular.io/license
  49870. */
  49871. function getCompilerFacade() {
  49872. const globalNg = _global['ng'];
  49873. if (!globalNg || !globalNg.ɵcompilerFacade) {
  49874. throw new Error(`Angular JIT compilation failed: '@angular/compiler' not loaded!\n` +
  49875. ` - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n` +
  49876. ` - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n` +
  49877. ` - Alternatively provide the compiler with 'import "@angular/compiler";' before bootstrapping.`);
  49878. }
  49879. return globalNg.ɵcompilerFacade;
  49880. }
  49881. /**
  49882. * @license
  49883. * Copyright Google LLC All Rights Reserved.
  49884. *
  49885. * Use of this source code is governed by an MIT-style license that can be
  49886. * found in the LICENSE file at https://angular.io/license
  49887. */
  49888. /**
  49889. * @description
  49890. *
  49891. * Represents a type that a Component or other object is instances of.
  49892. *
  49893. * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is represented by
  49894. * the `MyCustomComponent` constructor function.
  49895. *
  49896. * @publicApi
  49897. */
  49898. const Type = Function;
  49899. function isType(v) {
  49900. return typeof v === 'function';
  49901. }
  49902. /**
  49903. * @license
  49904. * Copyright Google LLC All Rights Reserved.
  49905. *
  49906. * Use of this source code is governed by an MIT-style license that can be
  49907. * found in the LICENSE file at https://angular.io/license
  49908. */
  49909. /**
  49910. * Equivalent to ES6 spread, add each item to an array.
  49911. *
  49912. * @param items The items to add
  49913. * @param arr The array to which you want to add the items
  49914. */
  49915. function addAllToArray(items, arr) {
  49916. for (let i = 0; i < items.length; i++) {
  49917. arr.push(items[i]);
  49918. }
  49919. }
  49920. /**
  49921. * Flattens an array.
  49922. */
  49923. function flatten(list, dst) {
  49924. if (dst === undefined)
  49925. dst = list;
  49926. for (let i = 0; i < list.length; i++) {
  49927. let item = list[i];
  49928. if (Array.isArray(item)) {
  49929. // we need to inline it.
  49930. if (dst === list) {
  49931. // Our assumption that the list was already flat was wrong and
  49932. // we need to clone flat since we need to write to it.
  49933. dst = list.slice(0, i);
  49934. }
  49935. flatten(item, dst);
  49936. }
  49937. else if (dst !== list) {
  49938. dst.push(item);
  49939. }
  49940. }
  49941. return dst;
  49942. }
  49943. function deepForEach(input, fn) {
  49944. input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));
  49945. }
  49946. function addToArray(arr, index, value) {
  49947. // perf: array.push is faster than array.splice!
  49948. if (index >= arr.length) {
  49949. arr.push(value);
  49950. }
  49951. else {
  49952. arr.splice(index, 0, value);
  49953. }
  49954. }
  49955. function removeFromArray(arr, index) {
  49956. // perf: array.pop is faster than array.splice!
  49957. if (index >= arr.length - 1) {
  49958. return arr.pop();
  49959. }
  49960. else {
  49961. return arr.splice(index, 1)[0];
  49962. }
  49963. }
  49964. function newArray(size, value) {
  49965. const list = [];
  49966. for (let i = 0; i < size; i++) {
  49967. list.push(value);
  49968. }
  49969. return list;
  49970. }
  49971. /**
  49972. * Remove item from array (Same as `Array.splice()` but faster.)
  49973. *
  49974. * `Array.splice()` is not as fast because it has to allocate an array for the elements which were
  49975. * removed. This causes memory pressure and slows down code when most of the time we don't
  49976. * care about the deleted items array.
  49977. *
  49978. * https://jsperf.com/fast-array-splice (About 20x faster)
  49979. *
  49980. * @param array Array to splice
  49981. * @param index Index of element in array to remove.
  49982. * @param count Number of items to remove.
  49983. */
  49984. function arraySplice(array, index, count) {
  49985. const length = array.length - count;
  49986. while (index < length) {
  49987. array[index] = array[index + count];
  49988. index++;
  49989. }
  49990. while (count--) {
  49991. array.pop(); // shrink the array
  49992. }
  49993. }
  49994. /**
  49995. * Same as `Array.splice(index, 0, value)` but faster.
  49996. *
  49997. * `Array.splice()` is not fast because it has to allocate an array for the elements which were
  49998. * removed. This causes memory pressure and slows down code when most of the time we don't
  49999. * care about the deleted items array.
  50000. *
  50001. * @param array Array to splice.
  50002. * @param index Index in array where the `value` should be added.
  50003. * @param value Value to add to array.
  50004. */
  50005. function arrayInsert(array, index, value) {
  50006. ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
  50007. let end = array.length;
  50008. while (end > index) {
  50009. const previousEnd = end - 1;
  50010. array[end] = array[previousEnd];
  50011. end = previousEnd;
  50012. }
  50013. array[index] = value;
  50014. }
  50015. /**
  50016. * Same as `Array.splice2(index, 0, value1, value2)` but faster.
  50017. *
  50018. * `Array.splice()` is not fast because it has to allocate an array for the elements which were
  50019. * removed. This causes memory pressure and slows down code when most of the time we don't
  50020. * care about the deleted items array.
  50021. *
  50022. * @param array Array to splice.
  50023. * @param index Index in array where the `value` should be added.
  50024. * @param value1 Value to add to array.
  50025. * @param value2 Value to add to array.
  50026. */
  50027. function arrayInsert2(array, index, value1, value2) {
  50028. ngDevMode && assertLessThanOrEqual(index, array.length, 'Can\'t insert past array end.');
  50029. let end = array.length;
  50030. if (end == index) {
  50031. // inserting at the end.
  50032. array.push(value1, value2);
  50033. }
  50034. else if (end === 1) {
  50035. // corner case when we have less items in array than we have items to insert.
  50036. array.push(value2, array[0]);
  50037. array[0] = value1;
  50038. }
  50039. else {
  50040. end--;
  50041. array.push(array[end - 1], array[end]);
  50042. while (end > index) {
  50043. const previousEnd = end - 2;
  50044. array[end] = array[previousEnd];
  50045. end--;
  50046. }
  50047. array[index] = value1;
  50048. array[index + 1] = value2;
  50049. }
  50050. }
  50051. /**
  50052. * Insert a `value` into an `array` so that the array remains sorted.
  50053. *
  50054. * NOTE:
  50055. * - Duplicates are not allowed, and are ignored.
  50056. * - This uses binary search algorithm for fast inserts.
  50057. *
  50058. * @param array A sorted array to insert into.
  50059. * @param value The value to insert.
  50060. * @returns index of the inserted value.
  50061. */
  50062. function arrayInsertSorted(array, value) {
  50063. let index = arrayIndexOfSorted(array, value);
  50064. if (index < 0) {
  50065. // if we did not find it insert it.
  50066. index = ~index;
  50067. arrayInsert(array, index, value);
  50068. }
  50069. return index;
  50070. }
  50071. /**
  50072. * Remove `value` from a sorted `array`.
  50073. *
  50074. * NOTE:
  50075. * - This uses binary search algorithm for fast removals.
  50076. *
  50077. * @param array A sorted array to remove from.
  50078. * @param value The value to remove.
  50079. * @returns index of the removed value.
  50080. * - positive index if value found and removed.
  50081. * - negative index if value not found. (`~index` to get the value where it should have been
  50082. * inserted)
  50083. */
  50084. function arrayRemoveSorted(array, value) {
  50085. const index = arrayIndexOfSorted(array, value);
  50086. if (index >= 0) {
  50087. arraySplice(array, index, 1);
  50088. }
  50089. return index;
  50090. }
  50091. /**
  50092. * Get an index of an `value` in a sorted `array`.
  50093. *
  50094. * NOTE:
  50095. * - This uses binary search algorithm for fast removals.
  50096. *
  50097. * @param array A sorted array to binary search.
  50098. * @param value The value to look for.
  50099. * @returns index of the value.
  50100. * - positive index if value found.
  50101. * - negative index if value not found. (`~index` to get the value where it should have been
  50102. * located)
  50103. */
  50104. function arrayIndexOfSorted(array, value) {
  50105. return _arrayIndexOfSorted(array, value, 0);
  50106. }
  50107. /**
  50108. * Set a `value` for a `key`.
  50109. *
  50110. * @param keyValueArray to modify.
  50111. * @param key The key to locate or create.
  50112. * @param value The value to set for a `key`.
  50113. * @returns index (always even) of where the value vas set.
  50114. */
  50115. function keyValueArraySet(keyValueArray, key, value) {
  50116. let index = keyValueArrayIndexOf(keyValueArray, key);
  50117. if (index >= 0) {
  50118. // if we found it set it.
  50119. keyValueArray[index | 1] = value;
  50120. }
  50121. else {
  50122. index = ~index;
  50123. arrayInsert2(keyValueArray, index, key, value);
  50124. }
  50125. return index;
  50126. }
  50127. /**
  50128. * Retrieve a `value` for a `key` (on `undefined` if not found.)
  50129. *
  50130. * @param keyValueArray to search.
  50131. * @param key The key to locate.
  50132. * @return The `value` stored at the `key` location or `undefined if not found.
  50133. */
  50134. function keyValueArrayGet(keyValueArray, key) {
  50135. const index = keyValueArrayIndexOf(keyValueArray, key);
  50136. if (index >= 0) {
  50137. // if we found it retrieve it.
  50138. return keyValueArray[index | 1];
  50139. }
  50140. return undefined;
  50141. }
  50142. /**
  50143. * Retrieve a `key` index value in the array or `-1` if not found.
  50144. *
  50145. * @param keyValueArray to search.
  50146. * @param key The key to locate.
  50147. * @returns index of where the key is (or should have been.)
  50148. * - positive (even) index if key found.
  50149. * - negative index if key not found. (`~index` (even) to get the index where it should have
  50150. * been inserted.)
  50151. */
  50152. function keyValueArrayIndexOf(keyValueArray, key) {
  50153. return _arrayIndexOfSorted(keyValueArray, key, 1);
  50154. }
  50155. /**
  50156. * Delete a `key` (and `value`) from the `KeyValueArray`.
  50157. *
  50158. * @param keyValueArray to modify.
  50159. * @param key The key to locate or delete (if exist).
  50160. * @returns index of where the key was (or should have been.)
  50161. * - positive (even) index if key found and deleted.
  50162. * - negative index if key not found. (`~index` (even) to get the index where it should have
  50163. * been.)
  50164. */
  50165. function keyValueArrayDelete(keyValueArray, key) {
  50166. const index = keyValueArrayIndexOf(keyValueArray, key);
  50167. if (index >= 0) {
  50168. // if we found it remove it.
  50169. arraySplice(keyValueArray, index, 2);
  50170. }
  50171. return index;
  50172. }
  50173. /**
  50174. * INTERNAL: Get an index of an `value` in a sorted `array` by grouping search by `shift`.
  50175. *
  50176. * NOTE:
  50177. * - This uses binary search algorithm for fast removals.
  50178. *
  50179. * @param array A sorted array to binary search.
  50180. * @param value The value to look for.
  50181. * @param shift grouping shift.
  50182. * - `0` means look at every location
  50183. * - `1` means only look at every other (even) location (the odd locations are to be ignored as
  50184. * they are values.)
  50185. * @returns index of the value.
  50186. * - positive index if value found.
  50187. * - negative index if value not found. (`~index` to get the value where it should have been
  50188. * inserted)
  50189. */
  50190. function _arrayIndexOfSorted(array, value, shift) {
  50191. ngDevMode && assertEqual(Array.isArray(array), true, 'Expecting an array');
  50192. let start = 0;
  50193. let end = array.length >> shift;
  50194. while (end !== start) {
  50195. const middle = start + ((end - start) >> 1); // find the middle.
  50196. const current = array[middle << shift];
  50197. if (value === current) {
  50198. return (middle << shift);
  50199. }
  50200. else if (current > value) {
  50201. end = middle;
  50202. }
  50203. else {
  50204. start = middle + 1; // We already searched middle so make it non-inclusive by adding 1
  50205. }
  50206. }
  50207. return ~(end << shift);
  50208. }
  50209. /**
  50210. * @license
  50211. * Copyright Google LLC All Rights Reserved.
  50212. *
  50213. * Use of this source code is governed by an MIT-style license that can be
  50214. * found in the LICENSE file at https://angular.io/license
  50215. */
  50216. /*
  50217. * #########################
  50218. * Attention: These Regular expressions have to hold even if the code is minified!
  50219. * ##########################
  50220. */
  50221. /**
  50222. * Regular expression that detects pass-through constructors for ES5 output. This Regex
  50223. * intends to capture the common delegation pattern emitted by TypeScript and Babel. Also
  50224. * it intends to capture the pattern where existing constructors have been downleveled from
  50225. * ES2015 to ES5 using TypeScript w/ downlevel iteration. e.g.
  50226. *
  50227. * ```
  50228. * function MyClass() {
  50229. * var _this = _super.apply(this, arguments) || this;
  50230. * ```
  50231. *
  50232. * ```
  50233. * function MyClass() {
  50234. * var _this = _super.apply(this, __spread(arguments)) || this;
  50235. * ```
  50236. *
  50237. * More details can be found in: https://github.com/angular/angular/issues/38453.
  50238. */
  50239. const ES5_DELEGATE_CTOR = /^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|[^()]+\(arguments\))\)/;
  50240. /** Regular expression that detects ES2015 classes which extend from other classes. */
  50241. const ES2015_INHERITED_CLASS = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/;
  50242. /**
  50243. * Regular expression that detects ES2015 classes which extend from other classes and
  50244. * have an explicit constructor defined.
  50245. */
  50246. const ES2015_INHERITED_CLASS_WITH_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/;
  50247. /**
  50248. * Regular expression that detects ES2015 classes which extend from other classes
  50249. * and inherit a constructor.
  50250. */
  50251. const ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR = /^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;
  50252. /**
  50253. * Determine whether a stringified type is a class which delegates its constructor
  50254. * to its parent.
  50255. *
  50256. * This is not trivial since compiled code can actually contain a constructor function
  50257. * even if the original source code did not. For instance, when the child class contains
  50258. * an initialized instance property.
  50259. */
  50260. function isDelegateCtor(typeStr) {
  50261. return ES5_DELEGATE_CTOR.test(typeStr) ||
  50262. ES2015_INHERITED_CLASS_WITH_DELEGATE_CTOR.test(typeStr) ||
  50263. (ES2015_INHERITED_CLASS.test(typeStr) && !ES2015_INHERITED_CLASS_WITH_CTOR.test(typeStr));
  50264. }
  50265. class ReflectionCapabilities {
  50266. constructor(reflect) {
  50267. this._reflect = reflect || _global['Reflect'];
  50268. }
  50269. isReflectionEnabled() {
  50270. return true;
  50271. }
  50272. factory(t) {
  50273. return (...args) => new t(...args);
  50274. }
  50275. /** @internal */
  50276. _zipTypesAndAnnotations(paramTypes, paramAnnotations) {
  50277. let result;
  50278. if (typeof paramTypes === 'undefined') {
  50279. result = newArray(paramAnnotations.length);
  50280. }
  50281. else {
  50282. result = newArray(paramTypes.length);
  50283. }
  50284. for (let i = 0; i < result.length; i++) {
  50285. // TS outputs Object for parameters without types, while Traceur omits
  50286. // the annotations. For now we preserve the Traceur behavior to aid
  50287. // migration, but this can be revisited.
  50288. if (typeof paramTypes === 'undefined') {
  50289. result[i] = [];
  50290. }
  50291. else if (paramTypes[i] && paramTypes[i] != Object) {
  50292. result[i] = [paramTypes[i]];
  50293. }
  50294. else {
  50295. result[i] = [];
  50296. }
  50297. if (paramAnnotations && paramAnnotations[i] != null) {
  50298. result[i] = result[i].concat(paramAnnotations[i]);
  50299. }
  50300. }
  50301. return result;
  50302. }
  50303. _ownParameters(type, parentCtor) {
  50304. const typeStr = type.toString();
  50305. // If we have no decorators, we only have function.length as metadata.
  50306. // In that case, to detect whether a child class declared an own constructor or not,
  50307. // we need to look inside of that constructor to check whether it is
  50308. // just calling the parent.
  50309. // This also helps to work around for https://github.com/Microsoft/TypeScript/issues/12439
  50310. // that sets 'design:paramtypes' to []
  50311. // if a class inherits from another class but has no ctor declared itself.
  50312. if (isDelegateCtor(typeStr)) {
  50313. return null;
  50314. }
  50315. // Prefer the direct API.
  50316. if (type.parameters && type.parameters !== parentCtor.parameters) {
  50317. return type.parameters;
  50318. }
  50319. // API of tsickle for lowering decorators to properties on the class.
  50320. const tsickleCtorParams = type.ctorParameters;
  50321. if (tsickleCtorParams && tsickleCtorParams !== parentCtor.ctorParameters) {
  50322. // Newer tsickle uses a function closure
  50323. // Retain the non-function case for compatibility with older tsickle
  50324. const ctorParameters = typeof tsickleCtorParams === 'function' ? tsickleCtorParams() : tsickleCtorParams;
  50325. const paramTypes = ctorParameters.map((ctorParam) => ctorParam && ctorParam.type);
  50326. const paramAnnotations = ctorParameters.map((ctorParam) => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
  50327. return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
  50328. }
  50329. // API for metadata created by invoking the decorators.
  50330. const paramAnnotations = type.hasOwnProperty(PARAMETERS) && type[PARAMETERS];
  50331. const paramTypes = this._reflect && this._reflect.getOwnMetadata &&
  50332. this._reflect.getOwnMetadata('design:paramtypes', type);
  50333. if (paramTypes || paramAnnotations) {
  50334. return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
  50335. }
  50336. // If a class has no decorators, at least create metadata
  50337. // based on function.length.
  50338. // Note: We know that this is a real constructor as we checked
  50339. // the content of the constructor above.
  50340. return newArray(type.length);
  50341. }
  50342. parameters(type) {
  50343. // Note: only report metadata if we have at least one class decorator
  50344. // to stay in sync with the static reflector.
  50345. if (!isType(type)) {
  50346. return [];
  50347. }
  50348. const parentCtor = getParentCtor(type);
  50349. let parameters = this._ownParameters(type, parentCtor);
  50350. if (!parameters && parentCtor !== Object) {
  50351. parameters = this.parameters(parentCtor);
  50352. }
  50353. return parameters || [];
  50354. }
  50355. _ownAnnotations(typeOrFunc, parentCtor) {
  50356. // Prefer the direct API.
  50357. if (typeOrFunc.annotations && typeOrFunc.annotations !== parentCtor.annotations) {
  50358. let annotations = typeOrFunc.annotations;
  50359. if (typeof annotations === 'function' && annotations.annotations) {
  50360. annotations = annotations.annotations;
  50361. }
  50362. return annotations;
  50363. }
  50364. // API of tsickle for lowering decorators to properties on the class.
  50365. if (typeOrFunc.decorators && typeOrFunc.decorators !== parentCtor.decorators) {
  50366. return convertTsickleDecoratorIntoMetadata(typeOrFunc.decorators);
  50367. }
  50368. // API for metadata created by invoking the decorators.
  50369. if (typeOrFunc.hasOwnProperty(ANNOTATIONS)) {
  50370. return typeOrFunc[ANNOTATIONS];
  50371. }
  50372. return null;
  50373. }
  50374. annotations(typeOrFunc) {
  50375. if (!isType(typeOrFunc)) {
  50376. return [];
  50377. }
  50378. const parentCtor = getParentCtor(typeOrFunc);
  50379. const ownAnnotations = this._ownAnnotations(typeOrFunc, parentCtor) || [];
  50380. const parentAnnotations = parentCtor !== Object ? this.annotations(parentCtor) : [];
  50381. return parentAnnotations.concat(ownAnnotations);
  50382. }
  50383. _ownPropMetadata(typeOrFunc, parentCtor) {
  50384. // Prefer the direct API.
  50385. if (typeOrFunc.propMetadata &&
  50386. typeOrFunc.propMetadata !== parentCtor.propMetadata) {
  50387. let propMetadata = typeOrFunc.propMetadata;
  50388. if (typeof propMetadata === 'function' && propMetadata.propMetadata) {
  50389. propMetadata = propMetadata.propMetadata;
  50390. }
  50391. return propMetadata;
  50392. }
  50393. // API of tsickle for lowering decorators to properties on the class.
  50394. if (typeOrFunc.propDecorators &&
  50395. typeOrFunc.propDecorators !== parentCtor.propDecorators) {
  50396. const propDecorators = typeOrFunc.propDecorators;
  50397. const propMetadata = {};
  50398. Object.keys(propDecorators).forEach(prop => {
  50399. propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);
  50400. });
  50401. return propMetadata;
  50402. }
  50403. // API for metadata created by invoking the decorators.
  50404. if (typeOrFunc.hasOwnProperty(PROP_METADATA)) {
  50405. return typeOrFunc[PROP_METADATA];
  50406. }
  50407. return null;
  50408. }
  50409. propMetadata(typeOrFunc) {
  50410. if (!isType(typeOrFunc)) {
  50411. return {};
  50412. }
  50413. const parentCtor = getParentCtor(typeOrFunc);
  50414. const propMetadata = {};
  50415. if (parentCtor !== Object) {
  50416. const parentPropMetadata = this.propMetadata(parentCtor);
  50417. Object.keys(parentPropMetadata).forEach((propName) => {
  50418. propMetadata[propName] = parentPropMetadata[propName];
  50419. });
  50420. }
  50421. const ownPropMetadata = this._ownPropMetadata(typeOrFunc, parentCtor);
  50422. if (ownPropMetadata) {
  50423. Object.keys(ownPropMetadata).forEach((propName) => {
  50424. const decorators = [];
  50425. if (propMetadata.hasOwnProperty(propName)) {
  50426. decorators.push(...propMetadata[propName]);
  50427. }
  50428. decorators.push(...ownPropMetadata[propName]);
  50429. propMetadata[propName] = decorators;
  50430. });
  50431. }
  50432. return propMetadata;
  50433. }
  50434. ownPropMetadata(typeOrFunc) {
  50435. if (!isType(typeOrFunc)) {
  50436. return {};
  50437. }
  50438. return this._ownPropMetadata(typeOrFunc, getParentCtor(typeOrFunc)) || {};
  50439. }
  50440. hasLifecycleHook(type, lcProperty) {
  50441. return type instanceof Type && lcProperty in type.prototype;
  50442. }
  50443. guards(type) {
  50444. return {};
  50445. }
  50446. getter(name) {
  50447. return new Function('o', 'return o.' + name + ';');
  50448. }
  50449. setter(name) {
  50450. return new Function('o', 'v', 'return o.' + name + ' = v;');
  50451. }
  50452. method(name) {
  50453. const functionBody = `if (!o.${name}) throw new Error('"${name}" is undefined');
  50454. return o.${name}.apply(o, args);`;
  50455. return new Function('o', 'args', functionBody);
  50456. }
  50457. // There is not a concept of import uri in Js, but this is useful in developing Dart applications.
  50458. importUri(type) {
  50459. // StaticSymbol
  50460. if (typeof type === 'object' && type['filePath']) {
  50461. return type['filePath'];
  50462. }
  50463. // Runtime type
  50464. return `./${stringify(type)}`;
  50465. }
  50466. resourceUri(type) {
  50467. return `./${stringify(type)}`;
  50468. }
  50469. resolveIdentifier(name, moduleUrl, members, runtime) {
  50470. return runtime;
  50471. }
  50472. resolveEnum(enumIdentifier, name) {
  50473. return enumIdentifier[name];
  50474. }
  50475. }
  50476. function convertTsickleDecoratorIntoMetadata(decoratorInvocations) {
  50477. if (!decoratorInvocations) {
  50478. return [];
  50479. }
  50480. return decoratorInvocations.map(decoratorInvocation => {
  50481. const decoratorType = decoratorInvocation.type;
  50482. const annotationCls = decoratorType.annotationCls;
  50483. const annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];
  50484. return new annotationCls(...annotationArgs);
  50485. });
  50486. }
  50487. function getParentCtor(ctor) {
  50488. const parentProto = ctor.prototype ? Object.getPrototypeOf(ctor.prototype) : null;
  50489. const parentCtor = parentProto ? parentProto.constructor : null;
  50490. // Note: We always use `Object` as the null value
  50491. // to simplify checking later on.
  50492. return parentCtor || Object;
  50493. }
  50494. /**
  50495. * @license
  50496. * Copyright Google LLC All Rights Reserved.
  50497. *
  50498. * Use of this source code is governed by an MIT-style license that can be
  50499. * found in the LICENSE file at https://angular.io/license
  50500. */
  50501. const ɵ0$2 = (token) => ({ token });
  50502. /**
  50503. * Inject decorator and metadata.
  50504. *
  50505. * @Annotation
  50506. * @publicApi
  50507. */
  50508. const Inject = makeParamDecorator('Inject', ɵ0$2);
  50509. /**
  50510. * Optional decorator and metadata.
  50511. *
  50512. * @Annotation
  50513. * @publicApi
  50514. */
  50515. const Optional = makeParamDecorator('Optional');
  50516. /**
  50517. * Self decorator and metadata.
  50518. *
  50519. * @Annotation
  50520. * @publicApi
  50521. */
  50522. const Self = makeParamDecorator('Self');
  50523. /**
  50524. * `SkipSelf` decorator and metadata.
  50525. *
  50526. * @Annotation
  50527. * @publicApi
  50528. */
  50529. const SkipSelf = makeParamDecorator('SkipSelf');
  50530. /**
  50531. * Host decorator and metadata.
  50532. *
  50533. * @Annotation
  50534. * @publicApi
  50535. */
  50536. const Host = makeParamDecorator('Host');
  50537. /**
  50538. * @license
  50539. * Copyright Google LLC All Rights Reserved.
  50540. *
  50541. * Use of this source code is governed by an MIT-style license that can be
  50542. * found in the LICENSE file at https://angular.io/license
  50543. */
  50544. let _reflect = null;
  50545. function getReflect() {
  50546. return (_reflect = _reflect || new ReflectionCapabilities());
  50547. }
  50548. function reflectDependencies(type) {
  50549. return convertDependencies(getReflect().parameters(type));
  50550. }
  50551. function convertDependencies(deps) {
  50552. const compiler = getCompilerFacade();
  50553. return deps.map(dep => reflectDependency(compiler, dep));
  50554. }
  50555. function reflectDependency(compiler, dep) {
  50556. const meta = {
  50557. token: null,
  50558. host: false,
  50559. optional: false,
  50560. resolved: compiler.R3ResolvedDependencyType.Token,
  50561. self: false,
  50562. skipSelf: false,
  50563. };
  50564. function setTokenAndResolvedType(token) {
  50565. meta.resolved = compiler.R3ResolvedDependencyType.Token;
  50566. meta.token = token;
  50567. }
  50568. if (Array.isArray(dep) && dep.length > 0) {
  50569. for (let j = 0; j < dep.length; j++) {
  50570. const param = dep[j];
  50571. if (param === undefined) {
  50572. // param may be undefined if type of dep is not set by ngtsc
  50573. continue;
  50574. }
  50575. const proto = Object.getPrototypeOf(param);
  50576. if (param instanceof Optional || proto.ngMetadataName === 'Optional') {
  50577. meta.optional = true;
  50578. }
  50579. else if (param instanceof SkipSelf || proto.ngMetadataName === 'SkipSelf') {
  50580. meta.skipSelf = true;
  50581. }
  50582. else if (param instanceof Self || proto.ngMetadataName === 'Self') {
  50583. meta.self = true;
  50584. }
  50585. else if (param instanceof Host || proto.ngMetadataName === 'Host') {
  50586. meta.host = true;
  50587. }
  50588. else if (param instanceof Inject) {
  50589. meta.token = param.token;
  50590. }
  50591. else if (param instanceof Attribute) {
  50592. if (param.attributeName === undefined) {
  50593. throw new Error(`Attribute name must be defined.`);
  50594. }
  50595. meta.token = param.attributeName;
  50596. meta.resolved = compiler.R3ResolvedDependencyType.Attribute;
  50597. }
  50598. else if (param.__ChangeDetectorRef__ === true) {
  50599. meta.token = param;
  50600. meta.resolved = compiler.R3ResolvedDependencyType.ChangeDetectorRef;
  50601. }
  50602. else {
  50603. setTokenAndResolvedType(param);
  50604. }
  50605. }
  50606. }
  50607. else if (dep === undefined || (Array.isArray(dep) && dep.length === 0)) {
  50608. meta.token = undefined;
  50609. meta.resolved = R3ResolvedDependencyType.Invalid;
  50610. }
  50611. else {
  50612. setTokenAndResolvedType(dep);
  50613. }
  50614. return meta;
  50615. }
  50616. /**
  50617. * @license
  50618. * Copyright Google LLC All Rights Reserved.
  50619. *
  50620. * Use of this source code is governed by an MIT-style license that can be
  50621. * found in the LICENSE file at https://angular.io/license
  50622. */
  50623. /**
  50624. * Used to resolve resource URLs on `@Component` when used with JIT compilation.
  50625. *
  50626. * Example:
  50627. * ```
  50628. * @Component({
  50629. * selector: 'my-comp',
  50630. * templateUrl: 'my-comp.html', // This requires asynchronous resolution
  50631. * })
  50632. * class MyComponent{
  50633. * }
  50634. *
  50635. * // Calling `renderComponent` will fail because `renderComponent` is a synchronous process
  50636. * // and `MyComponent`'s `@Component.templateUrl` needs to be resolved asynchronously.
  50637. *
  50638. * // Calling `resolveComponentResources()` will resolve `@Component.templateUrl` into
  50639. * // `@Component.template`, which allows `renderComponent` to proceed in a synchronous manner.
  50640. *
  50641. * // Use browser's `fetch()` function as the default resource resolution strategy.
  50642. * resolveComponentResources(fetch).then(() => {
  50643. * // After resolution all URLs have been converted into `template` strings.
  50644. * renderComponent(MyComponent);
  50645. * });
  50646. *
  50647. * ```
  50648. *
  50649. * NOTE: In AOT the resolution happens during compilation, and so there should be no need
  50650. * to call this method outside JIT mode.
  50651. *
  50652. * @param resourceResolver a function which is responsible for returning a `Promise` to the
  50653. * contents of the resolved URL. Browser's `fetch()` method is a good default implementation.
  50654. */
  50655. function resolveComponentResources(resourceResolver) {
  50656. // Store all promises which are fetching the resources.
  50657. const componentResolved = [];
  50658. // Cache so that we don't fetch the same resource more than once.
  50659. const urlMap = new Map();
  50660. function cachedResourceResolve(url) {
  50661. let promise = urlMap.get(url);
  50662. if (!promise) {
  50663. const resp = resourceResolver(url);
  50664. urlMap.set(url, promise = resp.then(unwrapResponse));
  50665. }
  50666. return promise;
  50667. }
  50668. componentResourceResolutionQueue.forEach((component, type) => {
  50669. const promises = [];
  50670. if (component.templateUrl) {
  50671. promises.push(cachedResourceResolve(component.templateUrl).then((template) => {
  50672. component.template = template;
  50673. }));
  50674. }
  50675. const styleUrls = component.styleUrls;
  50676. const styles = component.styles || (component.styles = []);
  50677. const styleOffset = component.styles.length;
  50678. styleUrls && styleUrls.forEach((styleUrl, index) => {
  50679. styles.push(''); // pre-allocate array.
  50680. promises.push(cachedResourceResolve(styleUrl).then((style) => {
  50681. styles[styleOffset + index] = style;
  50682. styleUrls.splice(styleUrls.indexOf(styleUrl), 1);
  50683. if (styleUrls.length == 0) {
  50684. component.styleUrls = undefined;
  50685. }
  50686. }));
  50687. });
  50688. const fullyResolved = Promise.all(promises).then(() => componentDefResolved(type));
  50689. componentResolved.push(fullyResolved);
  50690. });
  50691. clearResolutionOfComponentResourcesQueue();
  50692. return Promise.all(componentResolved).then(() => undefined);
  50693. }
  50694. let componentResourceResolutionQueue = new Map();
  50695. // Track when existing ɵcmp for a Type is waiting on resources.
  50696. const componentDefPendingResolution = new Set();
  50697. function maybeQueueResolutionOfComponentResources(type, metadata) {
  50698. if (componentNeedsResolution(metadata)) {
  50699. componentResourceResolutionQueue.set(type, metadata);
  50700. componentDefPendingResolution.add(type);
  50701. }
  50702. }
  50703. function isComponentDefPendingResolution(type) {
  50704. return componentDefPendingResolution.has(type);
  50705. }
  50706. function componentNeedsResolution(component) {
  50707. return !!((component.templateUrl && !component.hasOwnProperty('template')) ||
  50708. component.styleUrls && component.styleUrls.length);
  50709. }
  50710. function clearResolutionOfComponentResourcesQueue() {
  50711. const old = componentResourceResolutionQueue;
  50712. componentResourceResolutionQueue = new Map();
  50713. return old;
  50714. }
  50715. function restoreComponentResolutionQueue(queue) {
  50716. componentDefPendingResolution.clear();
  50717. queue.forEach((_, type) => componentDefPendingResolution.add(type));
  50718. componentResourceResolutionQueue = queue;
  50719. }
  50720. function isComponentResourceResolutionQueueEmpty() {
  50721. return componentResourceResolutionQueue.size === 0;
  50722. }
  50723. function unwrapResponse(response) {
  50724. return typeof response == 'string' ? response : response.text();
  50725. }
  50726. function componentDefResolved(type) {
  50727. componentDefPendingResolution.delete(type);
  50728. }
  50729. /**
  50730. * @license
  50731. * Copyright Google LLC All Rights Reserved.
  50732. *
  50733. * Use of this source code is governed by an MIT-style license that can be
  50734. * found in the LICENSE file at https://angular.io/license
  50735. */
  50736. const _THROW_IF_NOT_FOUND = {};
  50737. const THROW_IF_NOT_FOUND = _THROW_IF_NOT_FOUND;
  50738. const NG_TEMP_TOKEN_PATH = 'ngTempTokenPath';
  50739. const NG_TOKEN_PATH = 'ngTokenPath';
  50740. const NEW_LINE = /\n/gm;
  50741. const NO_NEW_LINE = 'ɵ';
  50742. const SOURCE = '__source';
  50743. const ɵ0$3 = getClosureSafeProperty;
  50744. const USE_VALUE = getClosureSafeProperty({ provide: String, useValue: ɵ0$3 });
  50745. /**
  50746. * Current injector value used by `inject`.
  50747. * - `undefined`: it is an error to call `inject`
  50748. * - `null`: `inject` can be called but there is no injector (limp-mode).
  50749. * - Injector instance: Use the injector for resolution.
  50750. */
  50751. let _currentInjector = undefined;
  50752. function setCurrentInjector(injector) {
  50753. const former = _currentInjector;
  50754. _currentInjector = injector;
  50755. return former;
  50756. }
  50757. function injectInjectorOnly(token, flags = InjectFlags.Default) {
  50758. if (_currentInjector === undefined) {
  50759. throw new Error(`inject() must be called from an injection context`);
  50760. }
  50761. else if (_currentInjector === null) {
  50762. return injectRootLimpMode(token, undefined, flags);
  50763. }
  50764. else {
  50765. return _currentInjector.get(token, flags & InjectFlags.Optional ? null : undefined, flags);
  50766. }
  50767. }
  50768. function ɵɵinject(token, flags = InjectFlags.Default) {
  50769. return (getInjectImplementation() || injectInjectorOnly)(resolveForwardRef(token), flags);
  50770. }
  50771. /**
  50772. * Throws an error indicating that a factory function could not be generated by the compiler for a
  50773. * particular class.
  50774. *
  50775. * This instruction allows the actual error message to be optimized away when ngDevMode is turned
  50776. * off, saving bytes of generated code while still providing a good experience in dev mode.
  50777. *
  50778. * The name of the class is not mentioned here, but will be in the generated factory function name
  50779. * and thus in the stack trace.
  50780. *
  50781. * @codeGenApi
  50782. */
  50783. function ɵɵinvalidFactoryDep(index) {
  50784. const msg = ngDevMode ?
  50785. `This constructor is not compatible with Angular Dependency Injection because its dependency at index ${index} of the parameter list is invalid.
  50786. This can happen if the dependency type is a primitive like a string or if an ancestor of this class is missing an Angular decorator.
  50787. Please check that 1) the type for the parameter at index ${index} is correct and 2) the correct Angular decorators are defined for this class and its ancestors.` :
  50788. 'invalid';
  50789. throw new Error(msg);
  50790. }
  50791. /**
  50792. * Injects a token from the currently active injector.
  50793. *
  50794. * Must be used in the context of a factory function such as one defined for an
  50795. * `InjectionToken`. Throws an error if not called from such a context.
  50796. *
  50797. * Within such a factory function, using this function to request injection of a dependency
  50798. * is faster and more type-safe than providing an additional array of dependencies
  50799. * (as has been common with `useFactory` providers).
  50800. *
  50801. * @param token The injection token for the dependency to be injected.
  50802. * @param flags Optional flags that control how injection is executed.
  50803. * The flags correspond to injection strategies that can be specified with
  50804. * parameter decorators `@Host`, `@Self`, `@SkipSef`, and `@Optional`.
  50805. * @returns True if injection is successful, null otherwise.
  50806. *
  50807. * @usageNotes
  50808. *
  50809. * ### Example
  50810. *
  50811. * {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
  50812. *
  50813. * @publicApi
  50814. */
  50815. const inject = ɵɵinject;
  50816. function injectArgs(types) {
  50817. const args = [];
  50818. for (let i = 0; i < types.length; i++) {
  50819. const arg = resolveForwardRef(types[i]);
  50820. if (Array.isArray(arg)) {
  50821. if (arg.length === 0) {
  50822. throw new Error('Arguments array must have arguments.');
  50823. }
  50824. let type = undefined;
  50825. let flags = InjectFlags.Default;
  50826. for (let j = 0; j < arg.length; j++) {
  50827. const meta = arg[j];
  50828. if (meta instanceof Optional || meta.ngMetadataName === 'Optional' || meta === Optional) {
  50829. flags |= InjectFlags.Optional;
  50830. }
  50831. else if (meta instanceof SkipSelf || meta.ngMetadataName === 'SkipSelf' || meta === SkipSelf) {
  50832. flags |= InjectFlags.SkipSelf;
  50833. }
  50834. else if (meta instanceof Self || meta.ngMetadataName === 'Self' || meta === Self) {
  50835. flags |= InjectFlags.Self;
  50836. }
  50837. else if (meta instanceof Inject || meta === Inject) {
  50838. type = meta.token;
  50839. }
  50840. else {
  50841. type = meta;
  50842. }
  50843. }
  50844. args.push(ɵɵinject(type, flags));
  50845. }
  50846. else {
  50847. args.push(ɵɵinject(arg));
  50848. }
  50849. }
  50850. return args;
  50851. }
  50852. function catchInjectorError(e, token, injectorErrorName, source) {
  50853. const tokenPath = e[NG_TEMP_TOKEN_PATH];
  50854. if (token[SOURCE]) {
  50855. tokenPath.unshift(token[SOURCE]);
  50856. }
  50857. e.message = formatError('\n' + e.message, tokenPath, injectorErrorName, source);
  50858. e[NG_TOKEN_PATH] = tokenPath;
  50859. e[NG_TEMP_TOKEN_PATH] = null;
  50860. throw e;
  50861. }
  50862. function formatError(text, obj, injectorErrorName, source = null) {
  50863. text = text && text.charAt(0) === '\n' && text.charAt(1) == NO_NEW_LINE ? text.substr(2) : text;
  50864. let context = stringify(obj);
  50865. if (Array.isArray(obj)) {
  50866. context = obj.map(stringify).join(' -> ');
  50867. }
  50868. else if (typeof obj === 'object') {
  50869. let parts = [];
  50870. for (let key in obj) {
  50871. if (obj.hasOwnProperty(key)) {
  50872. let value = obj[key];
  50873. parts.push(key + ':' + (typeof value === 'string' ? JSON.stringify(value) : stringify(value)));
  50874. }
  50875. }
  50876. context = `{${parts.join(', ')}}`;
  50877. }
  50878. return `${injectorErrorName}${source ? '(' + source + ')' : ''}[${context}]: ${text.replace(NEW_LINE, '\n ')}`;
  50879. }
  50880. /**
  50881. * @license
  50882. * Copyright Google LLC All Rights Reserved.
  50883. *
  50884. * Use of this source code is governed by an MIT-style license that can be
  50885. * found in the LICENSE file at https://angular.io/license
  50886. */
  50887. /**
  50888. * The Trusted Types policy, or null if Trusted Types are not
  50889. * enabled/supported, or undefined if the policy has not been created yet.
  50890. */
  50891. let policy;
  50892. /**
  50893. * Returns the Trusted Types policy, or null if Trusted Types are not
  50894. * enabled/supported. The first call to this function will create the policy.
  50895. */
  50896. function getPolicy() {
  50897. if (policy === undefined) {
  50898. policy = null;
  50899. if (_global.trustedTypes) {
  50900. try {
  50901. policy = _global.trustedTypes.createPolicy('angular', {
  50902. createHTML: (s) => s,
  50903. createScript: (s) => s,
  50904. createScriptURL: (s) => s,
  50905. });
  50906. }
  50907. catch (_a) {
  50908. // trustedTypes.createPolicy throws if called with a name that is
  50909. // already registered, even in report-only mode. Until the API changes,
  50910. // catch the error not to break the applications functionally. In such
  50911. // cases, the code will fall back to using strings.
  50912. }
  50913. }
  50914. }
  50915. return policy;
  50916. }
  50917. /**
  50918. * Unsafely promote a string to a TrustedHTML, falling back to strings when
  50919. * Trusted Types are not available.
  50920. * @security This is a security-sensitive function; any use of this function
  50921. * must go through security review. In particular, it must be assured that the
  50922. * provided string will never cause an XSS vulnerability if used in a context
  50923. * that will be interpreted as HTML by a browser, e.g. when assigning to
  50924. * element.innerHTML.
  50925. */
  50926. function trustedHTMLFromString(html) {
  50927. var _a;
  50928. return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createHTML(html)) || html;
  50929. }
  50930. /**
  50931. * Unsafely promote a string to a TrustedScript, falling back to strings when
  50932. * Trusted Types are not available.
  50933. * @security In particular, it must be assured that the provided string will
  50934. * never cause an XSS vulnerability if used in a context that will be
  50935. * interpreted and executed as a script by a browser, e.g. when calling eval.
  50936. */
  50937. function trustedScriptFromString(script) {
  50938. var _a;
  50939. return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createScript(script)) || script;
  50940. }
  50941. /**
  50942. * Unsafely promote a string to a TrustedScriptURL, falling back to strings
  50943. * when Trusted Types are not available.
  50944. * @security This is a security-sensitive function; any use of this function
  50945. * must go through security review. In particular, it must be assured that the
  50946. * provided string will never cause an XSS vulnerability if used in a context
  50947. * that will cause a browser to load and execute a resource, e.g. when
  50948. * assigning to script.src.
  50949. */
  50950. function trustedScriptURLFromString(url) {
  50951. var _a;
  50952. return ((_a = getPolicy()) === null || _a === void 0 ? void 0 : _a.createScriptURL(url)) || url;
  50953. }
  50954. /**
  50955. * Unsafely call the Function constructor with the given string arguments. It
  50956. * is only available in development mode, and should be stripped out of
  50957. * production code.
  50958. * @security This is a security-sensitive function; any use of this function
  50959. * must go through security review. In particular, it must be assured that it
  50960. * is only called from development code, as use in production code can lead to
  50961. * XSS vulnerabilities.
  50962. */
  50963. function newTrustedFunctionForDev(...args) {
  50964. if (typeof ngDevMode === 'undefined') {
  50965. throw new Error('newTrustedFunctionForDev should never be called in production');
  50966. }
  50967. if (!_global.trustedTypes) {
  50968. // In environments that don't support Trusted Types, fall back to the most
  50969. // straightforward implementation:
  50970. return new Function(...args);
  50971. }
  50972. // Chrome currently does not support passing TrustedScript to the Function
  50973. // constructor. The following implements the workaround proposed on the page
  50974. // below, where the Chromium bug is also referenced:
  50975. // https://github.com/w3c/webappsec-trusted-types/wiki/Trusted-Types-for-function-constructor
  50976. const fnArgs = args.slice(0, -1).join(',');
  50977. const fnBody = args.pop().toString();
  50978. const body = `(function anonymous(${fnArgs}
  50979. ) { ${fnBody}
  50980. })`;
  50981. // Using eval directly confuses the compiler and prevents this module from
  50982. // being stripped out of JS binaries even if not used. The global['eval']
  50983. // indirection fixes that.
  50984. const fn = _global['eval'](trustedScriptFromString(body));
  50985. // To completely mimic the behavior of calling "new Function", two more
  50986. // things need to happen:
  50987. // 1. Stringifying the resulting function should return its source code
  50988. fn.toString = () => body;
  50989. // 2. When calling the resulting function, `this` should refer to `global`
  50990. return fn.bind(_global);
  50991. // When Trusted Types support in Function constructors is widely available,
  50992. // the implementation of this function can be simplified to:
  50993. // return new Function(...args.map(a => trustedScriptFromString(a)));
  50994. }
  50995. /**
  50996. * @license
  50997. * Copyright Google LLC All Rights Reserved.
  50998. *
  50999. * Use of this source code is governed by an MIT-style license that can be
  51000. * found in the LICENSE file at https://angular.io/license
  51001. */
  51002. class SafeValueImpl {
  51003. constructor(changingThisBreaksApplicationSecurity) {
  51004. this.changingThisBreaksApplicationSecurity = changingThisBreaksApplicationSecurity;
  51005. }
  51006. toString() {
  51007. return `SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity}` +
  51008. ` (see https://g.co/ng/security#xss)`;
  51009. }
  51010. }
  51011. class SafeHtmlImpl extends SafeValueImpl {
  51012. getTypeName() {
  51013. return "HTML" /* Html */;
  51014. }
  51015. }
  51016. class SafeStyleImpl extends SafeValueImpl {
  51017. getTypeName() {
  51018. return "Style" /* Style */;
  51019. }
  51020. }
  51021. class SafeScriptImpl extends SafeValueImpl {
  51022. getTypeName() {
  51023. return "Script" /* Script */;
  51024. }
  51025. }
  51026. class SafeUrlImpl extends SafeValueImpl {
  51027. getTypeName() {
  51028. return "URL" /* Url */;
  51029. }
  51030. }
  51031. class SafeResourceUrlImpl extends SafeValueImpl {
  51032. getTypeName() {
  51033. return "ResourceURL" /* ResourceUrl */;
  51034. }
  51035. }
  51036. function unwrapSafeValue(value) {
  51037. return value instanceof SafeValueImpl ? value.changingThisBreaksApplicationSecurity :
  51038. value;
  51039. }
  51040. function allowSanitizationBypassAndThrow(value, type) {
  51041. const actualType = getSanitizationBypassType(value);
  51042. if (actualType != null && actualType !== type) {
  51043. // Allow ResourceURLs in URL contexts, they are strictly more trusted.
  51044. if (actualType === "ResourceURL" /* ResourceUrl */ && type === "URL" /* Url */)
  51045. return true;
  51046. throw new Error(`Required a safe ${type}, got a ${actualType} (see https://g.co/ng/security#xss)`);
  51047. }
  51048. return actualType === type;
  51049. }
  51050. function getSanitizationBypassType(value) {
  51051. return value instanceof SafeValueImpl && value.getTypeName() || null;
  51052. }
  51053. /**
  51054. * Mark `html` string as trusted.
  51055. *
  51056. * This function wraps the trusted string in `String` and brands it in a way which makes it
  51057. * recognizable to {@link htmlSanitizer} to be trusted implicitly.
  51058. *
  51059. * @param trustedHtml `html` string which needs to be implicitly trusted.
  51060. * @returns a `html` which has been branded to be implicitly trusted.
  51061. */
  51062. function bypassSanitizationTrustHtml(trustedHtml) {
  51063. return new SafeHtmlImpl(trustedHtml);
  51064. }
  51065. /**
  51066. * Mark `style` string as trusted.
  51067. *
  51068. * This function wraps the trusted string in `String` and brands it in a way which makes it
  51069. * recognizable to {@link styleSanitizer} to be trusted implicitly.
  51070. *
  51071. * @param trustedStyle `style` string which needs to be implicitly trusted.
  51072. * @returns a `style` hich has been branded to be implicitly trusted.
  51073. */
  51074. function bypassSanitizationTrustStyle(trustedStyle) {
  51075. return new SafeStyleImpl(trustedStyle);
  51076. }
  51077. /**
  51078. * Mark `script` string as trusted.
  51079. *
  51080. * This function wraps the trusted string in `String` and brands it in a way which makes it
  51081. * recognizable to {@link scriptSanitizer} to be trusted implicitly.
  51082. *
  51083. * @param trustedScript `script` string which needs to be implicitly trusted.
  51084. * @returns a `script` which has been branded to be implicitly trusted.
  51085. */
  51086. function bypassSanitizationTrustScript(trustedScript) {
  51087. return new SafeScriptImpl(trustedScript);
  51088. }
  51089. /**
  51090. * Mark `url` string as trusted.
  51091. *
  51092. * This function wraps the trusted string in `String` and brands it in a way which makes it
  51093. * recognizable to {@link urlSanitizer} to be trusted implicitly.
  51094. *
  51095. * @param trustedUrl `url` string which needs to be implicitly trusted.
  51096. * @returns a `url` which has been branded to be implicitly trusted.
  51097. */
  51098. function bypassSanitizationTrustUrl(trustedUrl) {
  51099. return new SafeUrlImpl(trustedUrl);
  51100. }
  51101. /**
  51102. * Mark `url` string as trusted.
  51103. *
  51104. * This function wraps the trusted string in `String` and brands it in a way which makes it
  51105. * recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.
  51106. *
  51107. * @param trustedResourceUrl `url` string which needs to be implicitly trusted.
  51108. * @returns a `url` which has been branded to be implicitly trusted.
  51109. */
  51110. function bypassSanitizationTrustResourceUrl(trustedResourceUrl) {
  51111. return new SafeResourceUrlImpl(trustedResourceUrl);
  51112. }
  51113. /**
  51114. * @license
  51115. * Copyright Google LLC All Rights Reserved.
  51116. *
  51117. * Use of this source code is governed by an MIT-style license that can be
  51118. * found in the LICENSE file at https://angular.io/license
  51119. */
  51120. /**
  51121. * This helper is used to get hold of an inert tree of DOM elements containing dirty HTML
  51122. * that needs sanitizing.
  51123. * Depending upon browser support we use one of two strategies for doing this.
  51124. * Default: DOMParser strategy
  51125. * Fallback: InertDocument strategy
  51126. */
  51127. function getInertBodyHelper(defaultDoc) {
  51128. return isDOMParserAvailable() ? new DOMParserHelper() : new InertDocumentHelper(defaultDoc);
  51129. }
  51130. /**
  51131. * Uses DOMParser to create and fill an inert body element.
  51132. * This is the default strategy used in browsers that support it.
  51133. */
  51134. class DOMParserHelper {
  51135. getInertBodyElement(html) {
  51136. // We add these extra elements to ensure that the rest of the content is parsed as expected
  51137. // e.g. leading whitespace is maintained and tags like `<meta>` do not get hoisted to the
  51138. // `<head>` tag. Note that the `<body>` tag is closed implicitly to prevent unclosed tags
  51139. // in `html` from consuming the otherwise explicit `</body>` tag.
  51140. html = '<body><remove></remove>' + html;
  51141. try {
  51142. const body = new window.DOMParser()
  51143. .parseFromString(trustedHTMLFromString(html), 'text/html')
  51144. .body;
  51145. body.removeChild(body.firstChild);
  51146. return body;
  51147. }
  51148. catch (_a) {
  51149. return null;
  51150. }
  51151. }
  51152. }
  51153. /**
  51154. * Use an HTML5 `template` element, if supported, or an inert body element created via
  51155. * `createHtmlDocument` to create and fill an inert DOM element.
  51156. * This is the fallback strategy if the browser does not support DOMParser.
  51157. */
  51158. class InertDocumentHelper {
  51159. constructor(defaultDoc) {
  51160. this.defaultDoc = defaultDoc;
  51161. this.inertDocument = this.defaultDoc.implementation.createHTMLDocument('sanitization-inert');
  51162. if (this.inertDocument.body == null) {
  51163. // usually there should be only one body element in the document, but IE doesn't have any, so
  51164. // we need to create one.
  51165. const inertHtml = this.inertDocument.createElement('html');
  51166. this.inertDocument.appendChild(inertHtml);
  51167. const inertBodyElement = this.inertDocument.createElement('body');
  51168. inertHtml.appendChild(inertBodyElement);
  51169. }
  51170. }
  51171. getInertBodyElement(html) {
  51172. // Prefer using <template> element if supported.
  51173. const templateEl = this.inertDocument.createElement('template');
  51174. if ('content' in templateEl) {
  51175. templateEl.innerHTML = trustedHTMLFromString(html);
  51176. return templateEl;
  51177. }
  51178. // Note that previously we used to do something like `this.inertDocument.body.innerHTML = html`
  51179. // and we returned the inert `body` node. This was changed, because IE seems to treat setting
  51180. // `innerHTML` on an inserted element differently, compared to one that hasn't been inserted
  51181. // yet. In particular, IE appears to split some of the text into multiple text nodes rather
  51182. // than keeping them in a single one which ends up messing with Ivy's i18n parsing further
  51183. // down the line. This has been worked around by creating a new inert `body` and using it as
  51184. // the root node in which we insert the HTML.
  51185. const inertBody = this.inertDocument.createElement('body');
  51186. inertBody.innerHTML = trustedHTMLFromString(html);
  51187. // Support: IE 11 only
  51188. // strip custom-namespaced attributes on IE<=11
  51189. if (this.defaultDoc.documentMode) {
  51190. this.stripCustomNsAttrs(inertBody);
  51191. }
  51192. return inertBody;
  51193. }
  51194. /**
  51195. * When IE11 comes across an unknown namespaced attribute e.g. 'xlink:foo' it adds 'xmlns:ns1'
  51196. * attribute to declare ns1 namespace and prefixes the attribute with 'ns1' (e.g.
  51197. * 'ns1:xlink:foo').
  51198. *
  51199. * This is undesirable since we don't want to allow any of these custom attributes. This method
  51200. * strips them all.
  51201. */
  51202. stripCustomNsAttrs(el) {
  51203. const elAttrs = el.attributes;
  51204. // loop backwards so that we can support removals.
  51205. for (let i = elAttrs.length - 1; 0 < i; i--) {
  51206. const attrib = elAttrs.item(i);
  51207. const attrName = attrib.name;
  51208. if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) {
  51209. el.removeAttribute(attrName);
  51210. }
  51211. }
  51212. let childNode = el.firstChild;
  51213. while (childNode) {
  51214. if (childNode.nodeType === Node.ELEMENT_NODE)
  51215. this.stripCustomNsAttrs(childNode);
  51216. childNode = childNode.nextSibling;
  51217. }
  51218. }
  51219. }
  51220. /**
  51221. * We need to determine whether the DOMParser exists in the global context and
  51222. * supports parsing HTML; HTML parsing support is not as wide as other formats, see
  51223. * https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#Browser_compatibility.
  51224. *
  51225. * @suppress {uselessCode}
  51226. */
  51227. function isDOMParserAvailable() {
  51228. try {
  51229. return !!new window.DOMParser().parseFromString(trustedHTMLFromString(''), 'text/html');
  51230. }
  51231. catch (_a) {
  51232. return false;
  51233. }
  51234. }
  51235. /**
  51236. * @license
  51237. * Copyright Google LLC All Rights Reserved.
  51238. *
  51239. * Use of this source code is governed by an MIT-style license that can be
  51240. * found in the LICENSE file at https://angular.io/license
  51241. */
  51242. /**
  51243. * A pattern that recognizes a commonly useful subset of URLs that are safe.
  51244. *
  51245. * This regular expression matches a subset of URLs that will not cause script
  51246. * execution if used in URL context within a HTML document. Specifically, this
  51247. * regular expression matches if (comment from here on and regex copied from
  51248. * Soy's EscapingConventions):
  51249. * (1) Either an allowed protocol (http, https, mailto or ftp).
  51250. * (2) or no protocol. A protocol must be followed by a colon. The below
  51251. * allows that by allowing colons only after one of the characters [/?#].
  51252. * A colon after a hash (#) must be in the fragment.
  51253. * Otherwise, a colon after a (?) must be in a query.
  51254. * Otherwise, a colon after a single solidus (/) must be in a path.
  51255. * Otherwise, a colon after a double solidus (//) must be in the authority
  51256. * (before port).
  51257. *
  51258. * The pattern disallows &, used in HTML entity declarations before
  51259. * one of the characters in [/?#]. This disallows HTML entities used in the
  51260. * protocol name, which should never happen, e.g. "h&#116;tp" for "http".
  51261. * It also disallows HTML entities in the first path part of a relative path,
  51262. * e.g. "foo&lt;bar/baz". Our existing escaping functions should not produce
  51263. * that. More importantly, it disallows masking of a colon,
  51264. * e.g. "javascript&#58;...".
  51265. *
  51266. * This regular expression was taken from the Closure sanitization library.
  51267. */
  51268. const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;
  51269. /* A pattern that matches safe srcset values */
  51270. const SAFE_SRCSET_PATTERN = /^(?:(?:https?|file):|[^&:/?#]*(?:[/?#]|$))/gi;
  51271. /** A pattern that matches safe data URLs. Only matches image, video and audio types. */
  51272. const DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
  51273. function _sanitizeUrl(url) {
  51274. url = String(url);
  51275. if (url.match(SAFE_URL_PATTERN) || url.match(DATA_URL_PATTERN))
  51276. return url;
  51277. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  51278. console.warn(`WARNING: sanitizing unsafe URL value ${url} (see https://g.co/ng/security#xss)`);
  51279. }
  51280. return 'unsafe:' + url;
  51281. }
  51282. function sanitizeSrcset(srcset) {
  51283. srcset = String(srcset);
  51284. return srcset.split(',').map((srcset) => _sanitizeUrl(srcset.trim())).join(', ');
  51285. }
  51286. /**
  51287. * @license
  51288. * Copyright Google LLC All Rights Reserved.
  51289. *
  51290. * Use of this source code is governed by an MIT-style license that can be
  51291. * found in the LICENSE file at https://angular.io/license
  51292. */
  51293. function tagSet(tags) {
  51294. const res = {};
  51295. for (const t of tags.split(','))
  51296. res[t] = true;
  51297. return res;
  51298. }
  51299. function merge(...sets) {
  51300. const res = {};
  51301. for (const s of sets) {
  51302. for (const v in s) {
  51303. if (s.hasOwnProperty(v))
  51304. res[v] = true;
  51305. }
  51306. }
  51307. return res;
  51308. }
  51309. // Good source of info about elements and attributes
  51310. // https://html.spec.whatwg.org/#semantics
  51311. // https://simon.html5.org/html-elements
  51312. // Safe Void Elements - HTML5
  51313. // https://html.spec.whatwg.org/#void-elements
  51314. const VOID_ELEMENTS = tagSet('area,br,col,hr,img,wbr');
  51315. // Elements that you can, intentionally, leave open (and which close themselves)
  51316. // https://html.spec.whatwg.org/#optional-tags
  51317. const OPTIONAL_END_TAG_BLOCK_ELEMENTS = tagSet('colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr');
  51318. const OPTIONAL_END_TAG_INLINE_ELEMENTS = tagSet('rp,rt');
  51319. const OPTIONAL_END_TAG_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, OPTIONAL_END_TAG_BLOCK_ELEMENTS);
  51320. // Safe Block Elements - HTML5
  51321. const BLOCK_ELEMENTS = merge(OPTIONAL_END_TAG_BLOCK_ELEMENTS, tagSet('address,article,' +
  51322. 'aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,' +
  51323. 'h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul'));
  51324. // Inline Elements - HTML5
  51325. const INLINE_ELEMENTS = merge(OPTIONAL_END_TAG_INLINE_ELEMENTS, tagSet('a,abbr,acronym,audio,b,' +
  51326. 'bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,' +
  51327. 'samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video'));
  51328. const VALID_ELEMENTS = merge(VOID_ELEMENTS, BLOCK_ELEMENTS, INLINE_ELEMENTS, OPTIONAL_END_TAG_ELEMENTS);
  51329. // Attributes that have href and hence need to be sanitized
  51330. const URI_ATTRS = tagSet('background,cite,href,itemtype,longdesc,poster,src,xlink:href');
  51331. // Attributes that have special href set hence need to be sanitized
  51332. const SRCSET_ATTRS = tagSet('srcset');
  51333. const HTML_ATTRS = tagSet('abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,' +
  51334. 'compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,' +
  51335. 'ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,' +
  51336. 'scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,' +
  51337. 'valign,value,vspace,width');
  51338. // Accessibility attributes as per WAI-ARIA 1.1 (W3C Working Draft 14 December 2018)
  51339. const ARIA_ATTRS = tagSet('aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,' +
  51340. 'aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,' +
  51341. 'aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,' +
  51342. 'aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,' +
  51343. 'aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,' +
  51344. 'aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,' +
  51345. 'aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext');
  51346. // NB: This currently consciously doesn't support SVG. SVG sanitization has had several security
  51347. // issues in the past, so it seems safer to leave it out if possible. If support for binding SVG via
  51348. // innerHTML is required, SVG attributes should be added here.
  51349. // NB: Sanitization does not allow <form> elements or other active elements (<button> etc). Those
  51350. // can be sanitized, but they increase security surface area without a legitimate use case, so they
  51351. // are left out here.
  51352. const VALID_ATTRS = merge(URI_ATTRS, SRCSET_ATTRS, HTML_ATTRS, ARIA_ATTRS);
  51353. // Elements whose content should not be traversed/preserved, if the elements themselves are invalid.
  51354. //
  51355. // Typically, `<invalid>Some content</invalid>` would traverse (and in this case preserve)
  51356. // `Some content`, but strip `invalid-element` opening/closing tags. For some elements, though, we
  51357. // don't want to preserve the content, if the elements themselves are going to be removed.
  51358. const SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS = tagSet('script,style,template');
  51359. /**
  51360. * SanitizingHtmlSerializer serializes a DOM fragment, stripping out any unsafe elements and unsafe
  51361. * attributes.
  51362. */
  51363. class SanitizingHtmlSerializer {
  51364. constructor() {
  51365. // Explicitly track if something was stripped, to avoid accidentally warning of sanitization just
  51366. // because characters were re-encoded.
  51367. this.sanitizedSomething = false;
  51368. this.buf = [];
  51369. }
  51370. sanitizeChildren(el) {
  51371. // This cannot use a TreeWalker, as it has to run on Angular's various DOM adapters.
  51372. // However this code never accesses properties off of `document` before deleting its contents
  51373. // again, so it shouldn't be vulnerable to DOM clobbering.
  51374. let current = el.firstChild;
  51375. let traverseContent = true;
  51376. while (current) {
  51377. if (current.nodeType === Node.ELEMENT_NODE) {
  51378. traverseContent = this.startElement(current);
  51379. }
  51380. else if (current.nodeType === Node.TEXT_NODE) {
  51381. this.chars(current.nodeValue);
  51382. }
  51383. else {
  51384. // Strip non-element, non-text nodes.
  51385. this.sanitizedSomething = true;
  51386. }
  51387. if (traverseContent && current.firstChild) {
  51388. current = current.firstChild;
  51389. continue;
  51390. }
  51391. while (current) {
  51392. // Leaving the element. Walk up and to the right, closing tags as we go.
  51393. if (current.nodeType === Node.ELEMENT_NODE) {
  51394. this.endElement(current);
  51395. }
  51396. let next = this.checkClobberedElement(current, current.nextSibling);
  51397. if (next) {
  51398. current = next;
  51399. break;
  51400. }
  51401. current = this.checkClobberedElement(current, current.parentNode);
  51402. }
  51403. }
  51404. return this.buf.join('');
  51405. }
  51406. /**
  51407. * Sanitizes an opening element tag (if valid) and returns whether the element's contents should
  51408. * be traversed. Element content must always be traversed (even if the element itself is not
  51409. * valid/safe), unless the element is one of `SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS`.
  51410. *
  51411. * @param element The element to sanitize.
  51412. * @return True if the element's contents should be traversed.
  51413. */
  51414. startElement(element) {
  51415. const tagName = element.nodeName.toLowerCase();
  51416. if (!VALID_ELEMENTS.hasOwnProperty(tagName)) {
  51417. this.sanitizedSomething = true;
  51418. return !SKIP_TRAVERSING_CONTENT_IF_INVALID_ELEMENTS.hasOwnProperty(tagName);
  51419. }
  51420. this.buf.push('<');
  51421. this.buf.push(tagName);
  51422. const elAttrs = element.attributes;
  51423. for (let i = 0; i < elAttrs.length; i++) {
  51424. const elAttr = elAttrs.item(i);
  51425. const attrName = elAttr.name;
  51426. const lower = attrName.toLowerCase();
  51427. if (!VALID_ATTRS.hasOwnProperty(lower)) {
  51428. this.sanitizedSomething = true;
  51429. continue;
  51430. }
  51431. let value = elAttr.value;
  51432. // TODO(martinprobst): Special case image URIs for data:image/...
  51433. if (URI_ATTRS[lower])
  51434. value = _sanitizeUrl(value);
  51435. if (SRCSET_ATTRS[lower])
  51436. value = sanitizeSrcset(value);
  51437. this.buf.push(' ', attrName, '="', encodeEntities(value), '"');
  51438. }
  51439. this.buf.push('>');
  51440. return true;
  51441. }
  51442. endElement(current) {
  51443. const tagName = current.nodeName.toLowerCase();
  51444. if (VALID_ELEMENTS.hasOwnProperty(tagName) && !VOID_ELEMENTS.hasOwnProperty(tagName)) {
  51445. this.buf.push('</');
  51446. this.buf.push(tagName);
  51447. this.buf.push('>');
  51448. }
  51449. }
  51450. chars(chars) {
  51451. this.buf.push(encodeEntities(chars));
  51452. }
  51453. checkClobberedElement(node, nextNode) {
  51454. if (nextNode &&
  51455. (node.compareDocumentPosition(nextNode) &
  51456. Node.DOCUMENT_POSITION_CONTAINED_BY) === Node.DOCUMENT_POSITION_CONTAINED_BY) {
  51457. throw new Error(`Failed to sanitize html because the element is clobbered: ${node.outerHTML}`);
  51458. }
  51459. return nextNode;
  51460. }
  51461. }
  51462. // Regular Expressions for parsing tags and attributes
  51463. const SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
  51464. // ! to ~ is the ASCII range.
  51465. const NON_ALPHANUMERIC_REGEXP = /([^\#-~ |!])/g;
  51466. /**
  51467. * Escapes all potentially dangerous characters, so that the
  51468. * resulting string can be safely inserted into attribute or
  51469. * element text.
  51470. * @param value
  51471. */
  51472. function encodeEntities(value) {
  51473. return value.replace(/&/g, '&amp;')
  51474. .replace(SURROGATE_PAIR_REGEXP, function (match) {
  51475. const hi = match.charCodeAt(0);
  51476. const low = match.charCodeAt(1);
  51477. return '&#' + (((hi - 0xD800) * 0x400) + (low - 0xDC00) + 0x10000) + ';';
  51478. })
  51479. .replace(NON_ALPHANUMERIC_REGEXP, function (match) {
  51480. return '&#' + match.charCodeAt(0) + ';';
  51481. })
  51482. .replace(/</g, '&lt;')
  51483. .replace(/>/g, '&gt;');
  51484. }
  51485. let inertBodyHelper;
  51486. /**
  51487. * Sanitizes the given unsafe, untrusted HTML fragment, and returns HTML text that is safe to add to
  51488. * the DOM in a browser environment.
  51489. */
  51490. function _sanitizeHtml(defaultDoc, unsafeHtmlInput) {
  51491. let inertBodyElement = null;
  51492. try {
  51493. inertBodyHelper = inertBodyHelper || getInertBodyHelper(defaultDoc);
  51494. // Make sure unsafeHtml is actually a string (TypeScript types are not enforced at runtime).
  51495. let unsafeHtml = unsafeHtmlInput ? String(unsafeHtmlInput) : '';
  51496. inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);
  51497. // mXSS protection. Repeatedly parse the document to make sure it stabilizes, so that a browser
  51498. // trying to auto-correct incorrect HTML cannot cause formerly inert HTML to become dangerous.
  51499. let mXSSAttempts = 5;
  51500. let parsedHtml = unsafeHtml;
  51501. do {
  51502. if (mXSSAttempts === 0) {
  51503. throw new Error('Failed to sanitize html because the input is unstable');
  51504. }
  51505. mXSSAttempts--;
  51506. unsafeHtml = parsedHtml;
  51507. parsedHtml = inertBodyElement.innerHTML;
  51508. inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeHtml);
  51509. } while (unsafeHtml !== parsedHtml);
  51510. const sanitizer = new SanitizingHtmlSerializer();
  51511. const safeHtml = sanitizer.sanitizeChildren(getTemplateContent(inertBodyElement) || inertBodyElement);
  51512. if ((typeof ngDevMode === 'undefined' || ngDevMode) && sanitizer.sanitizedSomething) {
  51513. console.warn('WARNING: sanitizing HTML stripped some content, see https://g.co/ng/security#xss');
  51514. }
  51515. return safeHtml;
  51516. }
  51517. finally {
  51518. // In case anything goes wrong, clear out inertElement to reset the entire DOM structure.
  51519. if (inertBodyElement) {
  51520. const parent = getTemplateContent(inertBodyElement) || inertBodyElement;
  51521. while (parent.firstChild) {
  51522. parent.removeChild(parent.firstChild);
  51523. }
  51524. }
  51525. }
  51526. }
  51527. function getTemplateContent(el) {
  51528. return 'content' in el /** Microsoft/TypeScript#21517 */ && isTemplateElement(el) ?
  51529. el.content :
  51530. null;
  51531. }
  51532. function isTemplateElement(el) {
  51533. return el.nodeType === Node.ELEMENT_NODE && el.nodeName === 'TEMPLATE';
  51534. }
  51535. /**
  51536. * @license
  51537. * Copyright Google LLC All Rights Reserved.
  51538. *
  51539. * Use of this source code is governed by an MIT-style license that can be
  51540. * found in the LICENSE file at https://angular.io/license
  51541. */
  51542. /**
  51543. * A SecurityContext marks a location that has dangerous security implications, e.g. a DOM property
  51544. * like `innerHTML` that could cause Cross Site Scripting (XSS) security bugs when improperly
  51545. * handled.
  51546. *
  51547. * See DomSanitizer for more details on security in Angular applications.
  51548. *
  51549. * @publicApi
  51550. */
  51551. var SecurityContext;
  51552. (function (SecurityContext) {
  51553. SecurityContext[SecurityContext["NONE"] = 0] = "NONE";
  51554. SecurityContext[SecurityContext["HTML"] = 1] = "HTML";
  51555. SecurityContext[SecurityContext["STYLE"] = 2] = "STYLE";
  51556. SecurityContext[SecurityContext["SCRIPT"] = 3] = "SCRIPT";
  51557. SecurityContext[SecurityContext["URL"] = 4] = "URL";
  51558. SecurityContext[SecurityContext["RESOURCE_URL"] = 5] = "RESOURCE_URL";
  51559. })(SecurityContext || (SecurityContext = {}));
  51560. /**
  51561. * @license
  51562. * Copyright Google LLC All Rights Reserved.
  51563. *
  51564. * Use of this source code is governed by an MIT-style license that can be
  51565. * found in the LICENSE file at https://angular.io/license
  51566. */
  51567. /**
  51568. * An `html` sanitizer which converts untrusted `html` **string** into trusted string by removing
  51569. * dangerous content.
  51570. *
  51571. * This method parses the `html` and locates potentially dangerous content (such as urls and
  51572. * javascript) and removes it.
  51573. *
  51574. * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustHtml}.
  51575. *
  51576. * @param unsafeHtml untrusted `html`, typically from the user.
  51577. * @returns `html` string which is safe to display to user, because all of the dangerous javascript
  51578. * and urls have been removed.
  51579. *
  51580. * @codeGenApi
  51581. */
  51582. function ɵɵsanitizeHtml(unsafeHtml) {
  51583. const sanitizer = getSanitizer();
  51584. if (sanitizer) {
  51585. return sanitizer.sanitize(SecurityContext.HTML, unsafeHtml) || '';
  51586. }
  51587. if (allowSanitizationBypassAndThrow(unsafeHtml, "HTML" /* Html */)) {
  51588. return unwrapSafeValue(unsafeHtml);
  51589. }
  51590. return _sanitizeHtml(getDocument(), renderStringify(unsafeHtml));
  51591. }
  51592. /**
  51593. * A `style` sanitizer which converts untrusted `style` **string** into trusted string by removing
  51594. * dangerous content.
  51595. *
  51596. * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustStyle}.
  51597. *
  51598. * @param unsafeStyle untrusted `style`, typically from the user.
  51599. * @returns `style` string which is safe to bind to the `style` properties.
  51600. *
  51601. * @codeGenApi
  51602. */
  51603. function ɵɵsanitizeStyle(unsafeStyle) {
  51604. const sanitizer = getSanitizer();
  51605. if (sanitizer) {
  51606. return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || '';
  51607. }
  51608. if (allowSanitizationBypassAndThrow(unsafeStyle, "Style" /* Style */)) {
  51609. return unwrapSafeValue(unsafeStyle);
  51610. }
  51611. return renderStringify(unsafeStyle);
  51612. }
  51613. /**
  51614. * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing
  51615. * dangerous
  51616. * content.
  51617. *
  51618. * This method parses the `url` and locates potentially dangerous content (such as javascript) and
  51619. * removes it.
  51620. *
  51621. * It is possible to mark a string as trusted by calling {@link bypassSanitizationTrustUrl}.
  51622. *
  51623. * @param unsafeUrl untrusted `url`, typically from the user.
  51624. * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because
  51625. * all of the dangerous javascript has been removed.
  51626. *
  51627. * @codeGenApi
  51628. */
  51629. function ɵɵsanitizeUrl(unsafeUrl) {
  51630. const sanitizer = getSanitizer();
  51631. if (sanitizer) {
  51632. return sanitizer.sanitize(SecurityContext.URL, unsafeUrl) || '';
  51633. }
  51634. if (allowSanitizationBypassAndThrow(unsafeUrl, "URL" /* Url */)) {
  51635. return unwrapSafeValue(unsafeUrl);
  51636. }
  51637. return _sanitizeUrl(renderStringify(unsafeUrl));
  51638. }
  51639. /**
  51640. * A `url` sanitizer which only lets trusted `url`s through.
  51641. *
  51642. * This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}.
  51643. *
  51644. * @param unsafeResourceUrl untrusted `url`, typically from the user.
  51645. * @returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because
  51646. * only trusted `url`s have been allowed to pass.
  51647. *
  51648. * @codeGenApi
  51649. */
  51650. function ɵɵsanitizeResourceUrl(unsafeResourceUrl) {
  51651. const sanitizer = getSanitizer();
  51652. if (sanitizer) {
  51653. return sanitizer.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '';
  51654. }
  51655. if (allowSanitizationBypassAndThrow(unsafeResourceUrl, "ResourceURL" /* ResourceUrl */)) {
  51656. return unwrapSafeValue(unsafeResourceUrl);
  51657. }
  51658. throw new Error('unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');
  51659. }
  51660. /**
  51661. * A `script` sanitizer which only lets trusted javascript through.
  51662. *
  51663. * This passes only `script`s marked trusted by calling {@link
  51664. * bypassSanitizationTrustScript}.
  51665. *
  51666. * @param unsafeScript untrusted `script`, typically from the user.
  51667. * @returns `url` string which is safe to bind to the `<script>` element such as `<img src>`,
  51668. * because only trusted `scripts` have been allowed to pass.
  51669. *
  51670. * @codeGenApi
  51671. */
  51672. function ɵɵsanitizeScript(unsafeScript) {
  51673. const sanitizer = getSanitizer();
  51674. if (sanitizer) {
  51675. return sanitizer.sanitize(SecurityContext.SCRIPT, unsafeScript) || '';
  51676. }
  51677. if (allowSanitizationBypassAndThrow(unsafeScript, "Script" /* Script */)) {
  51678. return unwrapSafeValue(unsafeScript);
  51679. }
  51680. throw new Error('unsafe value used in a script context');
  51681. }
  51682. /**
  51683. * Promotes the given constant string to a TrustedHTML.
  51684. * @param html constant string containing trusted HTML.
  51685. * @returns TrustedHTML wrapping `html`.
  51686. *
  51687. * @security This is a security-sensitive function and should only be used to
  51688. * convert constant values of attributes and properties found in
  51689. * application-provided Angular templates to TrustedHTML.
  51690. *
  51691. * @codeGenApi
  51692. */
  51693. function ɵɵtrustConstantHtml(html) {
  51694. return trustedHTMLFromString(html);
  51695. }
  51696. /**
  51697. * Promotes the given constant string to a TrustedScript.
  51698. * @param script constant string containing a trusted script.
  51699. * @returns TrustedScript wrapping `script`.
  51700. *
  51701. * @security This is a security-sensitive function and should only be used to
  51702. * convert constant values of attributes and properties found in
  51703. * application-provided Angular templates to TrustedScript.
  51704. *
  51705. * @codeGenApi
  51706. */
  51707. function ɵɵtrustConstantScript(script) {
  51708. return trustedScriptFromString(script);
  51709. }
  51710. /**
  51711. * Promotes the given constant string to a TrustedScriptURL.
  51712. * @param url constant string containing a trusted script URL.
  51713. * @returns TrustedScriptURL wrapping `url`.
  51714. *
  51715. * @security This is a security-sensitive function and should only be used to
  51716. * convert constant values of attributes and properties found in
  51717. * application-provided Angular templates to TrustedScriptURL.
  51718. *
  51719. * @codeGenApi
  51720. */
  51721. function ɵɵtrustConstantResourceUrl(url) {
  51722. return trustedScriptURLFromString(url);
  51723. }
  51724. /**
  51725. * Detects which sanitizer to use for URL property, based on tag name and prop name.
  51726. *
  51727. * The rules are based on the RESOURCE_URL context config from
  51728. * `packages/compiler/src/schema/dom_security_schema.ts`.
  51729. * If tag and prop names don't match Resource URL schema, use URL sanitizer.
  51730. */
  51731. function getUrlSanitizer(tag, prop) {
  51732. if ((prop === 'src' &&
  51733. (tag === 'embed' || tag === 'frame' || tag === 'iframe' || tag === 'media' ||
  51734. tag === 'script')) ||
  51735. (prop === 'href' && (tag === 'base' || tag === 'link'))) {
  51736. return ɵɵsanitizeResourceUrl;
  51737. }
  51738. return ɵɵsanitizeUrl;
  51739. }
  51740. /**
  51741. * Sanitizes URL, selecting sanitizer function based on tag and property names.
  51742. *
  51743. * This function is used in case we can't define security context at compile time, when only prop
  51744. * name is available. This happens when we generate host bindings for Directives/Components. The
  51745. * host element is unknown at compile time, so we defer calculation of specific sanitizer to
  51746. * runtime.
  51747. *
  51748. * @param unsafeUrl untrusted `url`, typically from the user.
  51749. * @param tag target element tag name.
  51750. * @param prop name of the property that contains the value.
  51751. * @returns `url` string which is safe to bind.
  51752. *
  51753. * @codeGenApi
  51754. */
  51755. function ɵɵsanitizeUrlOrResourceUrl(unsafeUrl, tag, prop) {
  51756. return getUrlSanitizer(tag, prop)(unsafeUrl);
  51757. }
  51758. function validateAgainstEventProperties(name) {
  51759. if (name.toLowerCase().startsWith('on')) {
  51760. const msg = `Binding to event property '${name}' is disallowed for security reasons, ` +
  51761. `please use (${name.slice(2)})=...` +
  51762. `\nIf '${name}' is a directive input, make sure the directive is imported by the` +
  51763. ` current module.`;
  51764. throw new Error(msg);
  51765. }
  51766. }
  51767. function validateAgainstEventAttributes(name) {
  51768. if (name.toLowerCase().startsWith('on')) {
  51769. const msg = `Binding to event attribute '${name}' is disallowed for security reasons, ` +
  51770. `please use (${name.slice(2)})=...`;
  51771. throw new Error(msg);
  51772. }
  51773. }
  51774. function getSanitizer() {
  51775. const lView = getLView();
  51776. return lView && lView[SANITIZER];
  51777. }
  51778. /**
  51779. * @license
  51780. * Copyright Google LLC All Rights Reserved.
  51781. *
  51782. * Use of this source code is governed by an MIT-style license that can be
  51783. * found in the LICENSE file at https://angular.io/license
  51784. */
  51785. const ERROR_TYPE = 'ngType';
  51786. const ERROR_DEBUG_CONTEXT = 'ngDebugContext';
  51787. const ERROR_ORIGINAL_ERROR = 'ngOriginalError';
  51788. const ERROR_LOGGER = 'ngErrorLogger';
  51789. function wrappedError(message, originalError) {
  51790. const msg = `${message} caused by: ${originalError instanceof Error ? originalError.message : originalError}`;
  51791. const error = Error(msg);
  51792. error[ERROR_ORIGINAL_ERROR] = originalError;
  51793. return error;
  51794. }
  51795. /**
  51796. * @license
  51797. * Copyright Google LLC All Rights Reserved.
  51798. *
  51799. * Use of this source code is governed by an MIT-style license that can be
  51800. * found in the LICENSE file at https://angular.io/license
  51801. */
  51802. function getType(error) {
  51803. return error[ERROR_TYPE];
  51804. }
  51805. function getDebugContext(error) {
  51806. return error[ERROR_DEBUG_CONTEXT];
  51807. }
  51808. function getOriginalError(error) {
  51809. return error[ERROR_ORIGINAL_ERROR];
  51810. }
  51811. function getErrorLogger(error) {
  51812. return error[ERROR_LOGGER] || defaultErrorLogger;
  51813. }
  51814. function defaultErrorLogger(console, ...values) {
  51815. console.error(...values);
  51816. }
  51817. /**
  51818. * @license
  51819. * Copyright Google LLC All Rights Reserved.
  51820. *
  51821. * Use of this source code is governed by an MIT-style license that can be
  51822. * found in the LICENSE file at https://angular.io/license
  51823. */
  51824. /**
  51825. * Provides a hook for centralized exception handling.
  51826. *
  51827. * The default implementation of `ErrorHandler` prints error messages to the `console`. To
  51828. * intercept error handling, write a custom exception handler that replaces this default as
  51829. * appropriate for your app.
  51830. *
  51831. * @usageNotes
  51832. * ### Example
  51833. *
  51834. * ```
  51835. * class MyErrorHandler implements ErrorHandler {
  51836. * handleError(error) {
  51837. * // do something with the exception
  51838. * }
  51839. * }
  51840. *
  51841. * @NgModule({
  51842. * providers: [{provide: ErrorHandler, useClass: MyErrorHandler}]
  51843. * })
  51844. * class MyModule {}
  51845. * ```
  51846. *
  51847. * @publicApi
  51848. */
  51849. class ErrorHandler {
  51850. constructor() {
  51851. /**
  51852. * @internal
  51853. */
  51854. this._console = console;
  51855. }
  51856. handleError(error) {
  51857. const originalError = this._findOriginalError(error);
  51858. const context = this._findContext(error);
  51859. // Note: Browser consoles show the place from where console.error was called.
  51860. // We can use this to give users additional information about the error.
  51861. const errorLogger = getErrorLogger(error);
  51862. errorLogger(this._console, `ERROR`, error);
  51863. if (originalError) {
  51864. errorLogger(this._console, `ORIGINAL ERROR`, originalError);
  51865. }
  51866. if (context) {
  51867. errorLogger(this._console, 'ERROR CONTEXT', context);
  51868. }
  51869. }
  51870. /** @internal */
  51871. _findContext(error) {
  51872. if (error) {
  51873. return getDebugContext(error) ? getDebugContext(error) :
  51874. this._findContext(getOriginalError(error));
  51875. }
  51876. return null;
  51877. }
  51878. /** @internal */
  51879. _findOriginalError(error) {
  51880. let e = getOriginalError(error);
  51881. while (e && getOriginalError(e)) {
  51882. e = getOriginalError(e);
  51883. }
  51884. return e;
  51885. }
  51886. }
  51887. /**
  51888. * @license
  51889. * Copyright Google LLC All Rights Reserved.
  51890. *
  51891. * Use of this source code is governed by an MIT-style license that can be
  51892. * found in the LICENSE file at https://angular.io/license
  51893. */
  51894. /**
  51895. * Defines a schema that allows an NgModule to contain the following:
  51896. * - Non-Angular elements named with dash case (`-`).
  51897. * - Element properties named with dash case (`-`).
  51898. * Dash case is the naming convention for custom elements.
  51899. *
  51900. * @publicApi
  51901. */
  51902. const CUSTOM_ELEMENTS_SCHEMA = {
  51903. name: 'custom-elements'
  51904. };
  51905. /**
  51906. * Defines a schema that allows any property on any element.
  51907. *
  51908. * @publicApi
  51909. */
  51910. const NO_ERRORS_SCHEMA = {
  51911. name: 'no-errors-schema'
  51912. };
  51913. /**
  51914. * @license
  51915. * Copyright Google LLC All Rights Reserved.
  51916. *
  51917. * Use of this source code is governed by an MIT-style license that can be
  51918. * found in the LICENSE file at https://angular.io/license
  51919. */
  51920. /**
  51921. * THIS FILE CONTAINS CODE WHICH SHOULD BE TREE SHAKEN AND NEVER CALLED FROM PRODUCTION CODE!!!
  51922. */
  51923. /**
  51924. * Creates an `Array` construction with a given name. This is useful when
  51925. * looking for memory consumption to see what time of array it is.
  51926. *
  51927. *
  51928. * @param name Name to give to the constructor
  51929. * @returns A subclass of `Array` if possible. This can only be done in
  51930. * environments which support `class` construct.
  51931. */
  51932. function createNamedArrayType(name) {
  51933. // This should never be called in prod mode, so let's verify that is the case.
  51934. if (ngDevMode) {
  51935. try {
  51936. // If this function were compromised the following could lead to arbitrary
  51937. // script execution. We bless it with Trusted Types anyway since this
  51938. // function is stripped out of production binaries.
  51939. return (newTrustedFunctionForDev('Array', `return class ${name} extends Array{}`))(Array);
  51940. }
  51941. catch (e) {
  51942. // If it does not work just give up and fall back to regular Array.
  51943. return Array;
  51944. }
  51945. }
  51946. else {
  51947. throw new Error('Looks like we are in \'prod mode\', but we are creating a named Array type, which is wrong! Check your code');
  51948. }
  51949. }
  51950. /**
  51951. * @license
  51952. * Copyright Google LLC All Rights Reserved.
  51953. *
  51954. * Use of this source code is governed by an MIT-style license that can be
  51955. * found in the LICENSE file at https://angular.io/license
  51956. */
  51957. function normalizeDebugBindingName(name) {
  51958. // Attribute names with `$` (eg `x-y$`) are valid per spec, but unsupported by some browsers
  51959. name = camelCaseToDashCase(name.replace(/[$@]/g, '_'));
  51960. return `ng-reflect-${name}`;
  51961. }
  51962. const CAMEL_CASE_REGEXP = /([A-Z])/g;
  51963. function camelCaseToDashCase(input) {
  51964. return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());
  51965. }
  51966. function normalizeDebugBindingValue(value) {
  51967. try {
  51968. // Limit the size of the value as otherwise the DOM just gets polluted.
  51969. return value != null ? value.toString().slice(0, 30) : value;
  51970. }
  51971. catch (e) {
  51972. return '[ERROR] Exception while trying to serialize the value';
  51973. }
  51974. }
  51975. /**
  51976. * @license
  51977. * Copyright Google LLC All Rights Reserved.
  51978. *
  51979. * Use of this source code is governed by an MIT-style license that can be
  51980. * found in the LICENSE file at https://angular.io/license
  51981. */
  51982. /**
  51983. * Returns the matching `LContext` data for a given DOM node, directive or component instance.
  51984. *
  51985. * This function will examine the provided DOM element, component, or directive instance\'s
  51986. * monkey-patched property to derive the `LContext` data. Once called then the monkey-patched
  51987. * value will be that of the newly created `LContext`.
  51988. *
  51989. * If the monkey-patched value is the `LView` instance then the context value for that
  51990. * target will be created and the monkey-patch reference will be updated. Therefore when this
  51991. * function is called it may mutate the provided element\'s, component\'s or any of the associated
  51992. * directive\'s monkey-patch values.
  51993. *
  51994. * If the monkey-patch value is not detected then the code will walk up the DOM until an element
  51995. * is found which contains a monkey-patch reference. When that occurs then the provided element
  51996. * will be updated with a new context (which is then returned). If the monkey-patch value is not
  51997. * detected for a component/directive instance then it will throw an error (all components and
  51998. * directives should be automatically monkey-patched by ivy).
  51999. *
  52000. * @param target Component, Directive or DOM Node.
  52001. */
  52002. function getLContext(target) {
  52003. let mpValue = readPatchedData(target);
  52004. if (mpValue) {
  52005. // only when it's an array is it considered an LView instance
  52006. // ... otherwise it's an already constructed LContext instance
  52007. if (Array.isArray(mpValue)) {
  52008. const lView = mpValue;
  52009. let nodeIndex;
  52010. let component = undefined;
  52011. let directives = undefined;
  52012. if (isComponentInstance(target)) {
  52013. nodeIndex = findViaComponent(lView, target);
  52014. if (nodeIndex == -1) {
  52015. throw new Error('The provided component was not found in the application');
  52016. }
  52017. component = target;
  52018. }
  52019. else if (isDirectiveInstance(target)) {
  52020. nodeIndex = findViaDirective(lView, target);
  52021. if (nodeIndex == -1) {
  52022. throw new Error('The provided directive was not found in the application');
  52023. }
  52024. directives = getDirectivesAtNodeIndex(nodeIndex, lView, false);
  52025. }
  52026. else {
  52027. nodeIndex = findViaNativeElement(lView, target);
  52028. if (nodeIndex == -1) {
  52029. return null;
  52030. }
  52031. }
  52032. // the goal is not to fill the entire context full of data because the lookups
  52033. // are expensive. Instead, only the target data (the element, component, container, ICU
  52034. // expression or directive details) are filled into the context. If called multiple times
  52035. // with different target values then the missing target data will be filled in.
  52036. const native = unwrapRNode(lView[nodeIndex]);
  52037. const existingCtx = readPatchedData(native);
  52038. const context = (existingCtx && !Array.isArray(existingCtx)) ?
  52039. existingCtx :
  52040. createLContext(lView, nodeIndex, native);
  52041. // only when the component has been discovered then update the monkey-patch
  52042. if (component && context.component === undefined) {
  52043. context.component = component;
  52044. attachPatchData(context.component, context);
  52045. }
  52046. // only when the directives have been discovered then update the monkey-patch
  52047. if (directives && context.directives === undefined) {
  52048. context.directives = directives;
  52049. for (let i = 0; i < directives.length; i++) {
  52050. attachPatchData(directives[i], context);
  52051. }
  52052. }
  52053. attachPatchData(context.native, context);
  52054. mpValue = context;
  52055. }
  52056. }
  52057. else {
  52058. const rElement = target;
  52059. ngDevMode && assertDomNode(rElement);
  52060. // if the context is not found then we need to traverse upwards up the DOM
  52061. // to find the nearest element that has already been monkey patched with data
  52062. let parent = rElement;
  52063. while (parent = parent.parentNode) {
  52064. const parentContext = readPatchedData(parent);
  52065. if (parentContext) {
  52066. let lView;
  52067. if (Array.isArray(parentContext)) {
  52068. lView = parentContext;
  52069. }
  52070. else {
  52071. lView = parentContext.lView;
  52072. }
  52073. // the edge of the app was also reached here through another means
  52074. // (maybe because the DOM was changed manually).
  52075. if (!lView) {
  52076. return null;
  52077. }
  52078. const index = findViaNativeElement(lView, rElement);
  52079. if (index >= 0) {
  52080. const native = unwrapRNode(lView[index]);
  52081. const context = createLContext(lView, index, native);
  52082. attachPatchData(native, context);
  52083. mpValue = context;
  52084. break;
  52085. }
  52086. }
  52087. }
  52088. }
  52089. return mpValue || null;
  52090. }
  52091. /**
  52092. * Creates an empty instance of a `LContext` context
  52093. */
  52094. function createLContext(lView, nodeIndex, native) {
  52095. return {
  52096. lView,
  52097. nodeIndex,
  52098. native,
  52099. component: undefined,
  52100. directives: undefined,
  52101. localRefs: undefined,
  52102. };
  52103. }
  52104. /**
  52105. * Takes a component instance and returns the view for that component.
  52106. *
  52107. * @param componentInstance
  52108. * @returns The component's view
  52109. */
  52110. function getComponentViewByInstance(componentInstance) {
  52111. let lView = readPatchedData(componentInstance);
  52112. let view;
  52113. if (Array.isArray(lView)) {
  52114. const nodeIndex = findViaComponent(lView, componentInstance);
  52115. view = getComponentLViewByIndex(nodeIndex, lView);
  52116. const context = createLContext(lView, nodeIndex, view[HOST]);
  52117. context.component = componentInstance;
  52118. attachPatchData(componentInstance, context);
  52119. attachPatchData(context.native, context);
  52120. }
  52121. else {
  52122. const context = lView;
  52123. view = getComponentLViewByIndex(context.nodeIndex, context.lView);
  52124. }
  52125. return view;
  52126. }
  52127. /**
  52128. * Assigns the given data to the given target (which could be a component,
  52129. * directive or DOM node instance) using monkey-patching.
  52130. */
  52131. function attachPatchData(target, data) {
  52132. target[MONKEY_PATCH_KEY_NAME] = data;
  52133. }
  52134. function isComponentInstance(instance) {
  52135. return instance && instance.constructor && instance.constructor.ɵcmp;
  52136. }
  52137. function isDirectiveInstance(instance) {
  52138. return instance && instance.constructor && instance.constructor.ɵdir;
  52139. }
  52140. /**
  52141. * Locates the element within the given LView and returns the matching index
  52142. */
  52143. function findViaNativeElement(lView, target) {
  52144. const tView = lView[TVIEW];
  52145. for (let i = HEADER_OFFSET; i < tView.bindingStartIndex; i++) {
  52146. if (unwrapRNode(lView[i]) === target) {
  52147. return i;
  52148. }
  52149. }
  52150. return -1;
  52151. }
  52152. /**
  52153. * Locates the next tNode (child, sibling or parent).
  52154. */
  52155. function traverseNextElement(tNode) {
  52156. if (tNode.child) {
  52157. return tNode.child;
  52158. }
  52159. else if (tNode.next) {
  52160. return tNode.next;
  52161. }
  52162. else {
  52163. // Let's take the following template: <div><span>text</span></div><component/>
  52164. // After checking the text node, we need to find the next parent that has a "next" TNode,
  52165. // in this case the parent `div`, so that we can find the component.
  52166. while (tNode.parent && !tNode.parent.next) {
  52167. tNode = tNode.parent;
  52168. }
  52169. return tNode.parent && tNode.parent.next;
  52170. }
  52171. }
  52172. /**
  52173. * Locates the component within the given LView and returns the matching index
  52174. */
  52175. function findViaComponent(lView, componentInstance) {
  52176. const componentIndices = lView[TVIEW].components;
  52177. if (componentIndices) {
  52178. for (let i = 0; i < componentIndices.length; i++) {
  52179. const elementComponentIndex = componentIndices[i];
  52180. const componentView = getComponentLViewByIndex(elementComponentIndex, lView);
  52181. if (componentView[CONTEXT] === componentInstance) {
  52182. return elementComponentIndex;
  52183. }
  52184. }
  52185. }
  52186. else {
  52187. const rootComponentView = getComponentLViewByIndex(HEADER_OFFSET, lView);
  52188. const rootComponent = rootComponentView[CONTEXT];
  52189. if (rootComponent === componentInstance) {
  52190. // we are dealing with the root element here therefore we know that the
  52191. // element is the very first element after the HEADER data in the lView
  52192. return HEADER_OFFSET;
  52193. }
  52194. }
  52195. return -1;
  52196. }
  52197. /**
  52198. * Locates the directive within the given LView and returns the matching index
  52199. */
  52200. function findViaDirective(lView, directiveInstance) {
  52201. // if a directive is monkey patched then it will (by default)
  52202. // have a reference to the LView of the current view. The
  52203. // element bound to the directive being search lives somewhere
  52204. // in the view data. We loop through the nodes and check their
  52205. // list of directives for the instance.
  52206. let tNode = lView[TVIEW].firstChild;
  52207. while (tNode) {
  52208. const directiveIndexStart = tNode.directiveStart;
  52209. const directiveIndexEnd = tNode.directiveEnd;
  52210. for (let i = directiveIndexStart; i < directiveIndexEnd; i++) {
  52211. if (lView[i] === directiveInstance) {
  52212. return tNode.index;
  52213. }
  52214. }
  52215. tNode = traverseNextElement(tNode);
  52216. }
  52217. return -1;
  52218. }
  52219. /**
  52220. * Returns a list of directives extracted from the given view based on the
  52221. * provided list of directive index values.
  52222. *
  52223. * @param nodeIndex The node index
  52224. * @param lView The target view data
  52225. * @param includeComponents Whether or not to include components in returned directives
  52226. */
  52227. function getDirectivesAtNodeIndex(nodeIndex, lView, includeComponents) {
  52228. const tNode = lView[TVIEW].data[nodeIndex];
  52229. let directiveStartIndex = tNode.directiveStart;
  52230. if (directiveStartIndex == 0)
  52231. return EMPTY_ARRAY;
  52232. const directiveEndIndex = tNode.directiveEnd;
  52233. if (!includeComponents && tNode.flags & 2 /* isComponentHost */)
  52234. directiveStartIndex++;
  52235. return lView.slice(directiveStartIndex, directiveEndIndex);
  52236. }
  52237. function getComponentAtNodeIndex(nodeIndex, lView) {
  52238. const tNode = lView[TVIEW].data[nodeIndex];
  52239. let directiveStartIndex = tNode.directiveStart;
  52240. return tNode.flags & 2 /* isComponentHost */ ? lView[directiveStartIndex] : null;
  52241. }
  52242. /**
  52243. * Returns a map of local references (local reference name => element or directive instance) that
  52244. * exist on a given element.
  52245. */
  52246. function discoverLocalRefs(lView, nodeIndex) {
  52247. const tNode = lView[TVIEW].data[nodeIndex];
  52248. if (tNode && tNode.localNames) {
  52249. const result = {};
  52250. let localIndex = tNode.index + 1;
  52251. for (let i = 0; i < tNode.localNames.length; i += 2) {
  52252. result[tNode.localNames[i]] = lView[localIndex];
  52253. localIndex++;
  52254. }
  52255. return result;
  52256. }
  52257. return null;
  52258. }
  52259. /**
  52260. * @license
  52261. * Copyright Google LLC All Rights Reserved.
  52262. *
  52263. * Use of this source code is governed by an MIT-style license that can be
  52264. * found in the LICENSE file at https://angular.io/license
  52265. */
  52266. const ɵ0$4 = () => (typeof requestAnimationFrame !== 'undefined' &&
  52267. requestAnimationFrame || // browser only
  52268. setTimeout // everything else
  52269. )
  52270. .bind(_global);
  52271. const defaultScheduler = (ɵ0$4)();
  52272. /**
  52273. *
  52274. * @codeGenApi
  52275. */
  52276. function ɵɵresolveWindow(element) {
  52277. return { name: 'window', target: element.ownerDocument.defaultView };
  52278. }
  52279. /**
  52280. *
  52281. * @codeGenApi
  52282. */
  52283. function ɵɵresolveDocument(element) {
  52284. return { name: 'document', target: element.ownerDocument };
  52285. }
  52286. /**
  52287. *
  52288. * @codeGenApi
  52289. */
  52290. function ɵɵresolveBody(element) {
  52291. return { name: 'body', target: element.ownerDocument.body };
  52292. }
  52293. /**
  52294. * The special delimiter we use to separate property names, prefixes, and suffixes
  52295. * in property binding metadata. See storeBindingMetadata().
  52296. *
  52297. * We intentionally use the Unicode "REPLACEMENT CHARACTER" (U+FFFD) as a delimiter
  52298. * because it is a very uncommon character that is unlikely to be part of a user's
  52299. * property names or interpolation strings. If it is in fact used in a property
  52300. * binding, DebugElement.properties will not return the correct value for that
  52301. * binding. However, there should be no runtime effect for real applications.
  52302. *
  52303. * This character is typically rendered as a question mark inside of a diamond.
  52304. * See https://en.wikipedia.org/wiki/Specials_(Unicode_block)
  52305. *
  52306. */
  52307. const INTERPOLATION_DELIMITER = `�`;
  52308. /**
  52309. * Unwrap a value which might be behind a closure (for forward declaration reasons).
  52310. */
  52311. function maybeUnwrapFn(value) {
  52312. if (value instanceof Function) {
  52313. return value();
  52314. }
  52315. else {
  52316. return value;
  52317. }
  52318. }
  52319. /**
  52320. * @license
  52321. * Copyright Google LLC All Rights Reserved.
  52322. *
  52323. * Use of this source code is governed by an MIT-style license that can be
  52324. * found in the LICENSE file at https://angular.io/license
  52325. */
  52326. /** Called when there are multiple component selectors that match a given node */
  52327. function throwMultipleComponentError(tNode) {
  52328. throw new RuntimeError("300" /* MULTIPLE_COMPONENTS_MATCH */, `Multiple components match node with tagname ${tNode.value}`);
  52329. }
  52330. /** Throws an ExpressionChangedAfterChecked error if checkNoChanges mode is on. */
  52331. function throwErrorIfNoChangesMode(creationMode, oldValue, currValue, propName) {
  52332. const field = propName ? ` for '${propName}'` : '';
  52333. let msg = `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value${field}: '${oldValue}'. Current value: '${currValue}'.`;
  52334. if (creationMode) {
  52335. msg +=
  52336. ` It seems like the view has been created after its parent and its children have been dirty checked.` +
  52337. ` Has it been created in a change detection hook?`;
  52338. }
  52339. // TODO: include debug context, see `viewDebugError` function in
  52340. // `packages/core/src/view/errors.ts` for reference.
  52341. throw new RuntimeError("100" /* EXPRESSION_CHANGED_AFTER_CHECKED */, msg);
  52342. }
  52343. function constructDetailsForInterpolation(lView, rootIndex, expressionIndex, meta, changedValue) {
  52344. const [propName, prefix, ...chunks] = meta.split(INTERPOLATION_DELIMITER);
  52345. let oldValue = prefix, newValue = prefix;
  52346. for (let i = 0; i < chunks.length; i++) {
  52347. const slotIdx = rootIndex + i;
  52348. oldValue += `${lView[slotIdx]}${chunks[i]}`;
  52349. newValue += `${slotIdx === expressionIndex ? changedValue : lView[slotIdx]}${chunks[i]}`;
  52350. }
  52351. return { propName, oldValue, newValue };
  52352. }
  52353. /**
  52354. * Constructs an object that contains details for the ExpressionChangedAfterItHasBeenCheckedError:
  52355. * - property name (for property bindings or interpolations)
  52356. * - old and new values, enriched using information from metadata
  52357. *
  52358. * More information on the metadata storage format can be found in `storePropertyBindingMetadata`
  52359. * function description.
  52360. */
  52361. function getExpressionChangedErrorDetails(lView, bindingIndex, oldValue, newValue) {
  52362. const tData = lView[TVIEW].data;
  52363. const metadata = tData[bindingIndex];
  52364. if (typeof metadata === 'string') {
  52365. // metadata for property interpolation
  52366. if (metadata.indexOf(INTERPOLATION_DELIMITER) > -1) {
  52367. return constructDetailsForInterpolation(lView, bindingIndex, bindingIndex, metadata, newValue);
  52368. }
  52369. // metadata for property binding
  52370. return { propName: metadata, oldValue, newValue };
  52371. }
  52372. // metadata is not available for this expression, check if this expression is a part of the
  52373. // property interpolation by going from the current binding index left and look for a string that
  52374. // contains INTERPOLATION_DELIMITER, the layout in tView.data for this case will look like this:
  52375. // [..., 'id�Prefix � and � suffix', null, null, null, ...]
  52376. if (metadata === null) {
  52377. let idx = bindingIndex - 1;
  52378. while (typeof tData[idx] !== 'string' && tData[idx + 1] === null) {
  52379. idx--;
  52380. }
  52381. const meta = tData[idx];
  52382. if (typeof meta === 'string') {
  52383. const matches = meta.match(new RegExp(INTERPOLATION_DELIMITER, 'g'));
  52384. // first interpolation delimiter separates property name from interpolation parts (in case of
  52385. // property interpolations), so we subtract one from total number of found delimiters
  52386. if (matches && (matches.length - 1) > bindingIndex - idx) {
  52387. return constructDetailsForInterpolation(lView, idx, bindingIndex, meta, newValue);
  52388. }
  52389. }
  52390. }
  52391. return { propName: undefined, oldValue, newValue };
  52392. }
  52393. /**
  52394. * @license
  52395. * Copyright Google LLC All Rights Reserved.
  52396. *
  52397. * Use of this source code is governed by an MIT-style license that can be
  52398. * found in the LICENSE file at https://angular.io/license
  52399. */
  52400. /**
  52401. * Flags for renderer-specific style modifiers.
  52402. * @publicApi
  52403. */
  52404. var RendererStyleFlags2;
  52405. (function (RendererStyleFlags2) {
  52406. // TODO(misko): This needs to be refactored into a separate file so that it can be imported from
  52407. // `node_manipulation.ts` Currently doing the import cause resolution order to change and fails
  52408. // the tests. The work around is to have hard coded value in `node_manipulation.ts` for now.
  52409. /**
  52410. * Marks a style as important.
  52411. */
  52412. RendererStyleFlags2[RendererStyleFlags2["Important"] = 1] = "Important";
  52413. /**
  52414. * Marks a style as using dash case naming (this-is-dash-case).
  52415. */
  52416. RendererStyleFlags2[RendererStyleFlags2["DashCase"] = 2] = "DashCase";
  52417. })(RendererStyleFlags2 || (RendererStyleFlags2 = {}));
  52418. /**
  52419. * @license
  52420. * Copyright Google LLC All Rights Reserved.
  52421. *
  52422. * Use of this source code is governed by an MIT-style license that can be
  52423. * found in the LICENSE file at https://angular.io/license
  52424. */
  52425. let _icuContainerIterate;
  52426. /**
  52427. * Iterator which provides ability to visit all of the `TIcuContainerNode` root `RNode`s.
  52428. */
  52429. function icuContainerIterate(tIcuContainerNode, lView) {
  52430. return _icuContainerIterate(tIcuContainerNode, lView);
  52431. }
  52432. /**
  52433. * Ensures that `IcuContainerVisitor`'s implementation is present.
  52434. *
  52435. * This function is invoked when i18n instruction comes across an ICU. The purpose is to allow the
  52436. * bundler to tree shake ICU logic and only load it if ICU instruction is executed.
  52437. */
  52438. function ensureIcuContainerVisitorLoaded(loader) {
  52439. if (_icuContainerIterate === undefined) {
  52440. // Do not inline this function. We want to keep `ensureIcuContainerVisitorLoaded` light, so it
  52441. // can be inlined into call-site.
  52442. _icuContainerIterate = loader();
  52443. }
  52444. }
  52445. /**
  52446. * @license
  52447. * Copyright Google LLC All Rights Reserved.
  52448. *
  52449. * Use of this source code is governed by an MIT-style license that can be
  52450. * found in the LICENSE file at https://angular.io/license
  52451. */
  52452. // Note: This hack is necessary so we don't erroneously get a circular dependency
  52453. // failure based on types.
  52454. const unusedValueExportToPlacateAjd$5 = 1;
  52455. /**
  52456. * @license
  52457. * Copyright Google LLC All Rights Reserved.
  52458. *
  52459. * Use of this source code is governed by an MIT-style license that can be
  52460. * found in the LICENSE file at https://angular.io/license
  52461. */
  52462. /**
  52463. * Gets the parent LView of the passed LView, if the PARENT is an LContainer, will get the parent of
  52464. * that LContainer, which is an LView
  52465. * @param lView the lView whose parent to get
  52466. */
  52467. function getLViewParent(lView) {
  52468. ngDevMode && assertLView(lView);
  52469. const parent = lView[PARENT];
  52470. return isLContainer(parent) ? parent[PARENT] : parent;
  52471. }
  52472. /**
  52473. * Retrieve the root view from any component or `LView` by walking the parent `LView` until
  52474. * reaching the root `LView`.
  52475. *
  52476. * @param componentOrLView any component or `LView`
  52477. */
  52478. function getRootView(componentOrLView) {
  52479. ngDevMode && assertDefined(componentOrLView, 'component');
  52480. let lView = isLView(componentOrLView) ? componentOrLView : readPatchedLView(componentOrLView);
  52481. while (lView && !(lView[FLAGS] & 512 /* IsRoot */)) {
  52482. lView = getLViewParent(lView);
  52483. }
  52484. ngDevMode && assertLView(lView);
  52485. return lView;
  52486. }
  52487. /**
  52488. * Returns the `RootContext` instance that is associated with
  52489. * the application where the target is situated. It does this by walking the parent views until it
  52490. * gets to the root view, then getting the context off of that.
  52491. *
  52492. * @param viewOrComponent the `LView` or component to get the root context for.
  52493. */
  52494. function getRootContext(viewOrComponent) {
  52495. const rootView = getRootView(viewOrComponent);
  52496. ngDevMode &&
  52497. assertDefined(rootView[CONTEXT], 'RootView has no context. Perhaps it is disconnected?');
  52498. return rootView[CONTEXT];
  52499. }
  52500. /**
  52501. * Gets the first `LContainer` in the LView or `null` if none exists.
  52502. */
  52503. function getFirstLContainer(lView) {
  52504. return getNearestLContainer(lView[CHILD_HEAD]);
  52505. }
  52506. /**
  52507. * Gets the next `LContainer` that is a sibling of the given container.
  52508. */
  52509. function getNextLContainer(container) {
  52510. return getNearestLContainer(container[NEXT]);
  52511. }
  52512. function getNearestLContainer(viewOrContainer) {
  52513. while (viewOrContainer !== null && !isLContainer(viewOrContainer)) {
  52514. viewOrContainer = viewOrContainer[NEXT];
  52515. }
  52516. return viewOrContainer;
  52517. }
  52518. /**
  52519. * @license
  52520. * Copyright Google LLC All Rights Reserved.
  52521. *
  52522. * Use of this source code is governed by an MIT-style license that can be
  52523. * found in the LICENSE file at https://angular.io/license
  52524. */
  52525. const unusedValueToPlacateAjd = unusedValueExportToPlacateAjd$1 + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$5 + unusedValueExportToPlacateAjd$2 + unusedValueExportToPlacateAjd;
  52526. /**
  52527. * NOTE: for performance reasons, the possible actions are inlined within the function instead of
  52528. * being passed as an argument.
  52529. */
  52530. function applyToElementOrContainer(action, renderer, parent, lNodeToHandle, beforeNode) {
  52531. // If this slot was allocated for a text node dynamically created by i18n, the text node itself
  52532. // won't be created until i18nApply() in the update block, so this node should be skipped.
  52533. // For more info, see "ICU expressions should work inside an ngTemplateOutlet inside an ngFor"
  52534. // in `i18n_spec.ts`.
  52535. if (lNodeToHandle != null) {
  52536. let lContainer;
  52537. let isComponent = false;
  52538. // We are expecting an RNode, but in the case of a component or LContainer the `RNode` is
  52539. // wrapped in an array which needs to be unwrapped. We need to know if it is a component and if
  52540. // it has LContainer so that we can process all of those cases appropriately.
  52541. if (isLContainer(lNodeToHandle)) {
  52542. lContainer = lNodeToHandle;
  52543. }
  52544. else if (isLView(lNodeToHandle)) {
  52545. isComponent = true;
  52546. ngDevMode && assertDefined(lNodeToHandle[HOST], 'HOST must be defined for a component LView');
  52547. lNodeToHandle = lNodeToHandle[HOST];
  52548. }
  52549. const rNode = unwrapRNode(lNodeToHandle);
  52550. ngDevMode && !isProceduralRenderer(renderer) && assertDomNode(rNode);
  52551. if (action === 0 /* Create */ && parent !== null) {
  52552. if (beforeNode == null) {
  52553. nativeAppendChild(renderer, parent, rNode);
  52554. }
  52555. else {
  52556. nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);
  52557. }
  52558. }
  52559. else if (action === 1 /* Insert */ && parent !== null) {
  52560. nativeInsertBefore(renderer, parent, rNode, beforeNode || null, true);
  52561. }
  52562. else if (action === 2 /* Detach */) {
  52563. nativeRemoveNode(renderer, rNode, isComponent);
  52564. }
  52565. else if (action === 3 /* Destroy */) {
  52566. ngDevMode && ngDevMode.rendererDestroyNode++;
  52567. renderer.destroyNode(rNode);
  52568. }
  52569. if (lContainer != null) {
  52570. applyContainer(renderer, action, lContainer, parent, beforeNode);
  52571. }
  52572. }
  52573. }
  52574. function createTextNode(renderer, value) {
  52575. ngDevMode && ngDevMode.rendererCreateTextNode++;
  52576. ngDevMode && ngDevMode.rendererSetText++;
  52577. return isProceduralRenderer(renderer) ? renderer.createText(value) :
  52578. renderer.createTextNode(value);
  52579. }
  52580. function updateTextNode(renderer, rNode, value) {
  52581. ngDevMode && ngDevMode.rendererSetText++;
  52582. isProceduralRenderer(renderer) ? renderer.setValue(rNode, value) : rNode.textContent = value;
  52583. }
  52584. function createCommentNode(renderer, value) {
  52585. ngDevMode && ngDevMode.rendererCreateComment++;
  52586. // isProceduralRenderer check is not needed because both `Renderer2` and `Renderer3` have the same
  52587. // method name.
  52588. return renderer.createComment(value);
  52589. }
  52590. /**
  52591. * Creates a native element from a tag name, using a renderer.
  52592. * @param renderer A renderer to use
  52593. * @param name the tag name
  52594. * @param namespace Optional namespace for element.
  52595. * @returns the element created
  52596. */
  52597. function createElementNode(renderer, name, namespace) {
  52598. ngDevMode && ngDevMode.rendererCreateElement++;
  52599. if (isProceduralRenderer(renderer)) {
  52600. return renderer.createElement(name, namespace);
  52601. }
  52602. else {
  52603. return namespace === null ? renderer.createElement(name) :
  52604. renderer.createElementNS(namespace, name);
  52605. }
  52606. }
  52607. /**
  52608. * Removes all DOM elements associated with a view.
  52609. *
  52610. * Because some root nodes of the view may be containers, we sometimes need
  52611. * to propagate deeply into the nested containers to remove all elements in the
  52612. * views beneath it.
  52613. *
  52614. * @param tView The `TView' of the `LView` from which elements should be added or removed
  52615. * @param lView The view from which elements should be added or removed
  52616. */
  52617. function removeViewFromContainer(tView, lView) {
  52618. const renderer = lView[RENDERER];
  52619. applyView(tView, lView, renderer, 2 /* Detach */, null, null);
  52620. lView[HOST] = null;
  52621. lView[T_HOST] = null;
  52622. }
  52623. /**
  52624. * Adds all DOM elements associated with a view.
  52625. *
  52626. * Because some root nodes of the view may be containers, we sometimes need
  52627. * to propagate deeply into the nested containers to add all elements in the
  52628. * views beneath it.
  52629. *
  52630. * @param tView The `TView' of the `LView` from which elements should be added or removed
  52631. * @param parentTNode The `TNode` where the `LView` should be attached to.
  52632. * @param renderer Current renderer to use for DOM manipulations.
  52633. * @param lView The view from which elements should be added or removed
  52634. * @param parentNativeNode The parent `RElement` where it should be inserted into.
  52635. * @param beforeNode The node before which elements should be added, if insert mode
  52636. */
  52637. function addViewToContainer(tView, parentTNode, renderer, lView, parentNativeNode, beforeNode) {
  52638. lView[HOST] = parentNativeNode;
  52639. lView[T_HOST] = parentTNode;
  52640. applyView(tView, lView, renderer, 1 /* Insert */, parentNativeNode, beforeNode);
  52641. }
  52642. /**
  52643. * Detach a `LView` from the DOM by detaching its nodes.
  52644. *
  52645. * @param tView The `TView' of the `LView` to be detached
  52646. * @param lView the `LView` to be detached.
  52647. */
  52648. function renderDetachView(tView, lView) {
  52649. applyView(tView, lView, lView[RENDERER], 2 /* Detach */, null, null);
  52650. }
  52651. /**
  52652. * Traverses down and up the tree of views and containers to remove listeners and
  52653. * call onDestroy callbacks.
  52654. *
  52655. * Notes:
  52656. * - Because it's used for onDestroy calls, it needs to be bottom-up.
  52657. * - Must process containers instead of their views to avoid splicing
  52658. * when views are destroyed and re-added.
  52659. * - Using a while loop because it's faster than recursion
  52660. * - Destroy only called on movement to sibling or movement to parent (laterally or up)
  52661. *
  52662. * @param rootView The view to destroy
  52663. */
  52664. function destroyViewTree(rootView) {
  52665. // If the view has no children, we can clean it up and return early.
  52666. let lViewOrLContainer = rootView[CHILD_HEAD];
  52667. if (!lViewOrLContainer) {
  52668. return cleanUpView(rootView[TVIEW], rootView);
  52669. }
  52670. while (lViewOrLContainer) {
  52671. let next = null;
  52672. if (isLView(lViewOrLContainer)) {
  52673. // If LView, traverse down to child.
  52674. next = lViewOrLContainer[CHILD_HEAD];
  52675. }
  52676. else {
  52677. ngDevMode && assertLContainer(lViewOrLContainer);
  52678. // If container, traverse down to its first LView.
  52679. const firstView = lViewOrLContainer[CONTAINER_HEADER_OFFSET];
  52680. if (firstView)
  52681. next = firstView;
  52682. }
  52683. if (!next) {
  52684. // Only clean up view when moving to the side or up, as destroy hooks
  52685. // should be called in order from the bottom up.
  52686. while (lViewOrLContainer && !lViewOrLContainer[NEXT] && lViewOrLContainer !== rootView) {
  52687. if (isLView(lViewOrLContainer)) {
  52688. cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);
  52689. }
  52690. lViewOrLContainer = lViewOrLContainer[PARENT];
  52691. }
  52692. if (lViewOrLContainer === null)
  52693. lViewOrLContainer = rootView;
  52694. if (isLView(lViewOrLContainer)) {
  52695. cleanUpView(lViewOrLContainer[TVIEW], lViewOrLContainer);
  52696. }
  52697. next = lViewOrLContainer && lViewOrLContainer[NEXT];
  52698. }
  52699. lViewOrLContainer = next;
  52700. }
  52701. }
  52702. /**
  52703. * Inserts a view into a container.
  52704. *
  52705. * This adds the view to the container's array of active views in the correct
  52706. * position. It also adds the view's elements to the DOM if the container isn't a
  52707. * root node of another view (in that case, the view's elements will be added when
  52708. * the container's parent view is added later).
  52709. *
  52710. * @param tView The `TView' of the `LView` to insert
  52711. * @param lView The view to insert
  52712. * @param lContainer The container into which the view should be inserted
  52713. * @param index Which index in the container to insert the child view into
  52714. */
  52715. function insertView(tView, lView, lContainer, index) {
  52716. ngDevMode && assertLView(lView);
  52717. ngDevMode && assertLContainer(lContainer);
  52718. const indexInContainer = CONTAINER_HEADER_OFFSET + index;
  52719. const containerLength = lContainer.length;
  52720. if (index > 0) {
  52721. // This is a new view, we need to add it to the children.
  52722. lContainer[indexInContainer - 1][NEXT] = lView;
  52723. }
  52724. if (index < containerLength - CONTAINER_HEADER_OFFSET) {
  52725. lView[NEXT] = lContainer[indexInContainer];
  52726. addToArray(lContainer, CONTAINER_HEADER_OFFSET + index, lView);
  52727. }
  52728. else {
  52729. lContainer.push(lView);
  52730. lView[NEXT] = null;
  52731. }
  52732. lView[PARENT] = lContainer;
  52733. // track views where declaration and insertion points are different
  52734. const declarationLContainer = lView[DECLARATION_LCONTAINER];
  52735. if (declarationLContainer !== null && lContainer !== declarationLContainer) {
  52736. trackMovedView(declarationLContainer, lView);
  52737. }
  52738. // notify query that a new view has been added
  52739. const lQueries = lView[QUERIES];
  52740. if (lQueries !== null) {
  52741. lQueries.insertView(tView);
  52742. }
  52743. // Sets the attached flag
  52744. lView[FLAGS] |= 128 /* Attached */;
  52745. }
  52746. /**
  52747. * Track views created from the declaration container (TemplateRef) and inserted into a
  52748. * different LContainer.
  52749. */
  52750. function trackMovedView(declarationContainer, lView) {
  52751. ngDevMode && assertDefined(lView, 'LView required');
  52752. ngDevMode && assertLContainer(declarationContainer);
  52753. const movedViews = declarationContainer[MOVED_VIEWS];
  52754. const insertedLContainer = lView[PARENT];
  52755. ngDevMode && assertLContainer(insertedLContainer);
  52756. const insertedComponentLView = insertedLContainer[PARENT][DECLARATION_COMPONENT_VIEW];
  52757. ngDevMode && assertDefined(insertedComponentLView, 'Missing insertedComponentLView');
  52758. const declaredComponentLView = lView[DECLARATION_COMPONENT_VIEW];
  52759. ngDevMode && assertDefined(declaredComponentLView, 'Missing declaredComponentLView');
  52760. if (declaredComponentLView !== insertedComponentLView) {
  52761. // At this point the declaration-component is not same as insertion-component; this means that
  52762. // this is a transplanted view. Mark the declared lView as having transplanted views so that
  52763. // those views can participate in CD.
  52764. declarationContainer[HAS_TRANSPLANTED_VIEWS] = true;
  52765. }
  52766. if (movedViews === null) {
  52767. declarationContainer[MOVED_VIEWS] = [lView];
  52768. }
  52769. else {
  52770. movedViews.push(lView);
  52771. }
  52772. }
  52773. function detachMovedView(declarationContainer, lView) {
  52774. ngDevMode && assertLContainer(declarationContainer);
  52775. ngDevMode &&
  52776. assertDefined(declarationContainer[MOVED_VIEWS], 'A projected view should belong to a non-empty projected views collection');
  52777. const movedViews = declarationContainer[MOVED_VIEWS];
  52778. const declarationViewIndex = movedViews.indexOf(lView);
  52779. const insertionLContainer = lView[PARENT];
  52780. ngDevMode && assertLContainer(insertionLContainer);
  52781. // If the view was marked for refresh but then detached before it was checked (where the flag
  52782. // would be cleared and the counter decremented), we need to decrement the view counter here
  52783. // instead.
  52784. if (lView[FLAGS] & 1024 /* RefreshTransplantedView */) {
  52785. lView[FLAGS] &= ~1024 /* RefreshTransplantedView */;
  52786. updateTransplantedViewCount(insertionLContainer, -1);
  52787. }
  52788. movedViews.splice(declarationViewIndex, 1);
  52789. }
  52790. /**
  52791. * Detaches a view from a container.
  52792. *
  52793. * This method removes the view from the container's array of active views. It also
  52794. * removes the view's elements from the DOM.
  52795. *
  52796. * @param lContainer The container from which to detach a view
  52797. * @param removeIndex The index of the view to detach
  52798. * @returns Detached LView instance.
  52799. */
  52800. function detachView(lContainer, removeIndex) {
  52801. if (lContainer.length <= CONTAINER_HEADER_OFFSET)
  52802. return;
  52803. const indexInContainer = CONTAINER_HEADER_OFFSET + removeIndex;
  52804. const viewToDetach = lContainer[indexInContainer];
  52805. if (viewToDetach) {
  52806. const declarationLContainer = viewToDetach[DECLARATION_LCONTAINER];
  52807. if (declarationLContainer !== null && declarationLContainer !== lContainer) {
  52808. detachMovedView(declarationLContainer, viewToDetach);
  52809. }
  52810. if (removeIndex > 0) {
  52811. lContainer[indexInContainer - 1][NEXT] = viewToDetach[NEXT];
  52812. }
  52813. const removedLView = removeFromArray(lContainer, CONTAINER_HEADER_OFFSET + removeIndex);
  52814. removeViewFromContainer(viewToDetach[TVIEW], viewToDetach);
  52815. // notify query that a view has been removed
  52816. const lQueries = removedLView[QUERIES];
  52817. if (lQueries !== null) {
  52818. lQueries.detachView(removedLView[TVIEW]);
  52819. }
  52820. viewToDetach[PARENT] = null;
  52821. viewToDetach[NEXT] = null;
  52822. // Unsets the attached flag
  52823. viewToDetach[FLAGS] &= ~128 /* Attached */;
  52824. }
  52825. return viewToDetach;
  52826. }
  52827. /**
  52828. * A standalone function which destroys an LView,
  52829. * conducting clean up (e.g. removing listeners, calling onDestroys).
  52830. *
  52831. * @param tView The `TView' of the `LView` to be destroyed
  52832. * @param lView The view to be destroyed.
  52833. */
  52834. function destroyLView(tView, lView) {
  52835. if (!(lView[FLAGS] & 256 /* Destroyed */)) {
  52836. const renderer = lView[RENDERER];
  52837. if (isProceduralRenderer(renderer) && renderer.destroyNode) {
  52838. applyView(tView, lView, renderer, 3 /* Destroy */, null, null);
  52839. }
  52840. destroyViewTree(lView);
  52841. }
  52842. }
  52843. /**
  52844. * Calls onDestroys hooks for all directives and pipes in a given view and then removes all
  52845. * listeners. Listeners are removed as the last step so events delivered in the onDestroys hooks
  52846. * can be propagated to @Output listeners.
  52847. *
  52848. * @param tView `TView` for the `LView` to clean up.
  52849. * @param lView The LView to clean up
  52850. */
  52851. function cleanUpView(tView, lView) {
  52852. if (!(lView[FLAGS] & 256 /* Destroyed */)) {
  52853. // Usually the Attached flag is removed when the view is detached from its parent, however
  52854. // if it's a root view, the flag won't be unset hence why we're also removing on destroy.
  52855. lView[FLAGS] &= ~128 /* Attached */;
  52856. // Mark the LView as destroyed *before* executing the onDestroy hooks. An onDestroy hook
  52857. // runs arbitrary user code, which could include its own `viewRef.destroy()` (or similar). If
  52858. // We don't flag the view as destroyed before the hooks, this could lead to an infinite loop.
  52859. // This also aligns with the ViewEngine behavior. It also means that the onDestroy hook is
  52860. // really more of an "afterDestroy" hook if you think about it.
  52861. lView[FLAGS] |= 256 /* Destroyed */;
  52862. executeOnDestroys(tView, lView);
  52863. processCleanups(tView, lView);
  52864. // For component views only, the local renderer is destroyed at clean up time.
  52865. if (lView[TVIEW].type === 1 /* Component */ && isProceduralRenderer(lView[RENDERER])) {
  52866. ngDevMode && ngDevMode.rendererDestroy++;
  52867. lView[RENDERER].destroy();
  52868. }
  52869. const declarationContainer = lView[DECLARATION_LCONTAINER];
  52870. // we are dealing with an embedded view that is still inserted into a container
  52871. if (declarationContainer !== null && isLContainer(lView[PARENT])) {
  52872. // and this is a projected view
  52873. if (declarationContainer !== lView[PARENT]) {
  52874. detachMovedView(declarationContainer, lView);
  52875. }
  52876. // For embedded views still attached to a container: remove query result from this view.
  52877. const lQueries = lView[QUERIES];
  52878. if (lQueries !== null) {
  52879. lQueries.detachView(tView);
  52880. }
  52881. }
  52882. }
  52883. }
  52884. /** Removes listeners and unsubscribes from output subscriptions */
  52885. function processCleanups(tView, lView) {
  52886. const tCleanup = tView.cleanup;
  52887. const lCleanup = lView[CLEANUP];
  52888. // `LCleanup` contains both share information with `TCleanup` as well as instance specific
  52889. // information appended at the end. We need to know where the end of the `TCleanup` information
  52890. // is, and we track this with `lastLCleanupIndex`.
  52891. let lastLCleanupIndex = -1;
  52892. if (tCleanup !== null) {
  52893. for (let i = 0; i < tCleanup.length - 1; i += 2) {
  52894. if (typeof tCleanup[i] === 'string') {
  52895. // This is a native DOM listener
  52896. const idxOrTargetGetter = tCleanup[i + 1];
  52897. const target = typeof idxOrTargetGetter === 'function' ?
  52898. idxOrTargetGetter(lView) :
  52899. unwrapRNode(lView[idxOrTargetGetter]);
  52900. const listener = lCleanup[lastLCleanupIndex = tCleanup[i + 2]];
  52901. const useCaptureOrSubIdx = tCleanup[i + 3];
  52902. if (typeof useCaptureOrSubIdx === 'boolean') {
  52903. // native DOM listener registered with Renderer3
  52904. target.removeEventListener(tCleanup[i], listener, useCaptureOrSubIdx);
  52905. }
  52906. else {
  52907. if (useCaptureOrSubIdx >= 0) {
  52908. // unregister
  52909. lCleanup[lastLCleanupIndex = useCaptureOrSubIdx]();
  52910. }
  52911. else {
  52912. // Subscription
  52913. lCleanup[lastLCleanupIndex = -useCaptureOrSubIdx].unsubscribe();
  52914. }
  52915. }
  52916. i += 2;
  52917. }
  52918. else {
  52919. // This is a cleanup function that is grouped with the index of its context
  52920. const context = lCleanup[lastLCleanupIndex = tCleanup[i + 1]];
  52921. tCleanup[i].call(context);
  52922. }
  52923. }
  52924. if (lCleanup !== null) {
  52925. for (let i = lastLCleanupIndex + 1; i < lCleanup.length; i++) {
  52926. const instanceCleanupFn = lCleanup[i];
  52927. ngDevMode && assertFunction(instanceCleanupFn, 'Expecting instance cleanup function.');
  52928. instanceCleanupFn();
  52929. }
  52930. }
  52931. lView[CLEANUP] = null;
  52932. }
  52933. }
  52934. /** Calls onDestroy hooks for this view */
  52935. function executeOnDestroys(tView, lView) {
  52936. let destroyHooks;
  52937. if (tView != null && (destroyHooks = tView.destroyHooks) != null) {
  52938. for (let i = 0; i < destroyHooks.length; i += 2) {
  52939. const context = lView[destroyHooks[i]];
  52940. // Only call the destroy hook if the context has been requested.
  52941. if (!(context instanceof NodeInjectorFactory)) {
  52942. const toCall = destroyHooks[i + 1];
  52943. if (Array.isArray(toCall)) {
  52944. for (let j = 0; j < toCall.length; j += 2) {
  52945. toCall[j + 1].call(context[toCall[j]]);
  52946. }
  52947. }
  52948. else {
  52949. toCall.call(context);
  52950. }
  52951. }
  52952. }
  52953. }
  52954. }
  52955. /**
  52956. * Returns a native element if a node can be inserted into the given parent.
  52957. *
  52958. * There are two reasons why we may not be able to insert a element immediately.
  52959. * - Projection: When creating a child content element of a component, we have to skip the
  52960. * insertion because the content of a component will be projected.
  52961. * `<component><content>delayed due to projection</content></component>`
  52962. * - Parent container is disconnected: This can happen when we are inserting a view into
  52963. * parent container, which itself is disconnected. For example the parent container is part
  52964. * of a View which has not be inserted or is made for projection but has not been inserted
  52965. * into destination.
  52966. *
  52967. * @param tView: Current `TView`.
  52968. * @param tNode: `TNode` for which we wish to retrieve render parent.
  52969. * @param lView: Current `LView`.
  52970. */
  52971. function getParentRElement(tView, tNode, lView) {
  52972. return getClosestRElement(tView, tNode.parent, lView);
  52973. }
  52974. /**
  52975. * Get closest `RElement` or `null` if it can't be found.
  52976. *
  52977. * If `TNode` is `TNodeType.Element` => return `RElement` at `LView[tNode.index]` location.
  52978. * If `TNode` is `TNodeType.ElementContainer|IcuContain` => return the parent (recursively).
  52979. * If `TNode` is `null` then return host `RElement`:
  52980. * - return `null` if projection
  52981. * - return `null` if parent container is disconnected (we have no parent.)
  52982. *
  52983. * @param tView: Current `TView`.
  52984. * @param tNode: `TNode` for which we wish to retrieve `RElement` (or `null` if host element is
  52985. * needed).
  52986. * @param lView: Current `LView`.
  52987. * @returns `null` if the `RElement` can't be determined at this time (no parent / projection)
  52988. */
  52989. function getClosestRElement(tView, tNode, lView) {
  52990. let parentTNode = tNode;
  52991. // Skip over element and ICU containers as those are represented by a comment node and
  52992. // can't be used as a render parent.
  52993. while (parentTNode !== null &&
  52994. (parentTNode.type & (8 /* ElementContainer */ | 32 /* Icu */))) {
  52995. tNode = parentTNode;
  52996. parentTNode = tNode.parent;
  52997. }
  52998. // If the parent tNode is null, then we are inserting across views: either into an embedded view
  52999. // or a component view.
  53000. if (parentTNode === null) {
  53001. // We are inserting a root element of the component view into the component host element and
  53002. // it should always be eager.
  53003. return lView[HOST];
  53004. }
  53005. else {
  53006. ngDevMode && assertTNodeType(parentTNode, 3 /* AnyRNode */ | 4 /* Container */);
  53007. if (parentTNode.flags & 2 /* isComponentHost */) {
  53008. ngDevMode && assertTNodeForLView(parentTNode, lView);
  53009. const encapsulation = tView.data[parentTNode.directiveStart].encapsulation;
  53010. // We've got a parent which is an element in the current view. We just need to verify if the
  53011. // parent element is not a component. Component's content nodes are not inserted immediately
  53012. // because they will be projected, and so doing insert at this point would be wasteful.
  53013. // Since the projection would then move it to its final destination. Note that we can't
  53014. // make this assumption when using the Shadow DOM, because the native projection placeholders
  53015. // (<content> or <slot>) have to be in place as elements are being inserted.
  53016. if (encapsulation === ViewEncapsulation.None ||
  53017. encapsulation === ViewEncapsulation.Emulated) {
  53018. return null;
  53019. }
  53020. }
  53021. return getNativeByTNode(parentTNode, lView);
  53022. }
  53023. }
  53024. /**
  53025. * Inserts a native node before another native node for a given parent using {@link Renderer3}.
  53026. * This is a utility function that can be used when native nodes were determined - it abstracts an
  53027. * actual renderer being used.
  53028. */
  53029. function nativeInsertBefore(renderer, parent, child, beforeNode, isMove) {
  53030. ngDevMode && ngDevMode.rendererInsertBefore++;
  53031. if (isProceduralRenderer(renderer)) {
  53032. renderer.insertBefore(parent, child, beforeNode, isMove);
  53033. }
  53034. else {
  53035. parent.insertBefore(child, beforeNode, isMove);
  53036. }
  53037. }
  53038. function nativeAppendChild(renderer, parent, child) {
  53039. ngDevMode && ngDevMode.rendererAppendChild++;
  53040. ngDevMode && assertDefined(parent, 'parent node must be defined');
  53041. if (isProceduralRenderer(renderer)) {
  53042. renderer.appendChild(parent, child);
  53043. }
  53044. else {
  53045. parent.appendChild(child);
  53046. }
  53047. }
  53048. function nativeAppendOrInsertBefore(renderer, parent, child, beforeNode, isMove) {
  53049. if (beforeNode !== null) {
  53050. nativeInsertBefore(renderer, parent, child, beforeNode, isMove);
  53051. }
  53052. else {
  53053. nativeAppendChild(renderer, parent, child);
  53054. }
  53055. }
  53056. /** Removes a node from the DOM given its native parent. */
  53057. function nativeRemoveChild(renderer, parent, child, isHostElement) {
  53058. if (isProceduralRenderer(renderer)) {
  53059. renderer.removeChild(parent, child, isHostElement);
  53060. }
  53061. else {
  53062. parent.removeChild(child);
  53063. }
  53064. }
  53065. /**
  53066. * Returns a native parent of a given native node.
  53067. */
  53068. function nativeParentNode(renderer, node) {
  53069. return (isProceduralRenderer(renderer) ? renderer.parentNode(node) : node.parentNode);
  53070. }
  53071. /**
  53072. * Returns a native sibling of a given native node.
  53073. */
  53074. function nativeNextSibling(renderer, node) {
  53075. return isProceduralRenderer(renderer) ? renderer.nextSibling(node) : node.nextSibling;
  53076. }
  53077. /**
  53078. * Find a node in front of which `currentTNode` should be inserted.
  53079. *
  53080. * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
  53081. * takes `TNode.insertBeforeIndex` into account if i18n code has been invoked.
  53082. *
  53083. * @param parentTNode parent `TNode`
  53084. * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
  53085. * @param lView current `LView`
  53086. */
  53087. function getInsertInFrontOfRNode(parentTNode, currentTNode, lView) {
  53088. return _getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView);
  53089. }
  53090. /**
  53091. * Find a node in front of which `currentTNode` should be inserted. (Does not take i18n into
  53092. * account)
  53093. *
  53094. * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
  53095. * does not take `TNode.insertBeforeIndex` into account.
  53096. *
  53097. * @param parentTNode parent `TNode`
  53098. * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
  53099. * @param lView current `LView`
  53100. */
  53101. function getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView) {
  53102. if (parentTNode.type & (8 /* ElementContainer */ | 32 /* Icu */)) {
  53103. return getNativeByTNode(parentTNode, lView);
  53104. }
  53105. return null;
  53106. }
  53107. /**
  53108. * Tree shakable boundary for `getInsertInFrontOfRNodeWithI18n` function.
  53109. *
  53110. * This function will only be set if i18n code runs.
  53111. */
  53112. let _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithNoI18n;
  53113. /**
  53114. * Tree shakable boundary for `processI18nInsertBefore` function.
  53115. *
  53116. * This function will only be set if i18n code runs.
  53117. */
  53118. let _processI18nInsertBefore;
  53119. function setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore) {
  53120. _getInsertInFrontOfRNodeWithI18n = getInsertInFrontOfRNodeWithI18n;
  53121. _processI18nInsertBefore = processI18nInsertBefore;
  53122. }
  53123. /**
  53124. * Appends the `child` native node (or a collection of nodes) to the `parent`.
  53125. *
  53126. * @param tView The `TView' to be appended
  53127. * @param lView The current LView
  53128. * @param childRNode The native child (or children) that should be appended
  53129. * @param childTNode The TNode of the child element
  53130. */
  53131. function appendChild(tView, lView, childRNode, childTNode) {
  53132. const parentRNode = getParentRElement(tView, childTNode, lView);
  53133. const renderer = lView[RENDERER];
  53134. const parentTNode = childTNode.parent || lView[T_HOST];
  53135. const anchorNode = getInsertInFrontOfRNode(parentTNode, childTNode, lView);
  53136. if (parentRNode != null) {
  53137. if (Array.isArray(childRNode)) {
  53138. for (let i = 0; i < childRNode.length; i++) {
  53139. nativeAppendOrInsertBefore(renderer, parentRNode, childRNode[i], anchorNode, false);
  53140. }
  53141. }
  53142. else {
  53143. nativeAppendOrInsertBefore(renderer, parentRNode, childRNode, anchorNode, false);
  53144. }
  53145. }
  53146. _processI18nInsertBefore !== undefined &&
  53147. _processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRNode);
  53148. }
  53149. /**
  53150. * Returns the first native node for a given LView, starting from the provided TNode.
  53151. *
  53152. * Native nodes are returned in the order in which those appear in the native tree (DOM).
  53153. */
  53154. function getFirstNativeNode(lView, tNode) {
  53155. if (tNode !== null) {
  53156. ngDevMode &&
  53157. assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */ | 32 /* Icu */ | 16 /* Projection */);
  53158. const tNodeType = tNode.type;
  53159. if (tNodeType & 3 /* AnyRNode */) {
  53160. return getNativeByTNode(tNode, lView);
  53161. }
  53162. else if (tNodeType & 4 /* Container */) {
  53163. return getBeforeNodeForView(-1, lView[tNode.index]);
  53164. }
  53165. else if (tNodeType & 8 /* ElementContainer */) {
  53166. const elIcuContainerChild = tNode.child;
  53167. if (elIcuContainerChild !== null) {
  53168. return getFirstNativeNode(lView, elIcuContainerChild);
  53169. }
  53170. else {
  53171. const rNodeOrLContainer = lView[tNode.index];
  53172. if (isLContainer(rNodeOrLContainer)) {
  53173. return getBeforeNodeForView(-1, rNodeOrLContainer);
  53174. }
  53175. else {
  53176. return unwrapRNode(rNodeOrLContainer);
  53177. }
  53178. }
  53179. }
  53180. else if (tNodeType & 32 /* Icu */) {
  53181. let nextRNode = icuContainerIterate(tNode, lView);
  53182. let rNode = nextRNode();
  53183. // If the ICU container has no nodes, than we use the ICU anchor as the node.
  53184. return rNode || unwrapRNode(lView[tNode.index]);
  53185. }
  53186. else {
  53187. const componentView = lView[DECLARATION_COMPONENT_VIEW];
  53188. const componentHost = componentView[T_HOST];
  53189. const parentView = getLViewParent(componentView);
  53190. const firstProjectedTNode = componentHost.projection[tNode.projection];
  53191. if (firstProjectedTNode != null) {
  53192. return getFirstNativeNode(parentView, firstProjectedTNode);
  53193. }
  53194. else {
  53195. return getFirstNativeNode(lView, tNode.next);
  53196. }
  53197. }
  53198. }
  53199. return null;
  53200. }
  53201. function getBeforeNodeForView(viewIndexInContainer, lContainer) {
  53202. const nextViewIndex = CONTAINER_HEADER_OFFSET + viewIndexInContainer + 1;
  53203. if (nextViewIndex < lContainer.length) {
  53204. const lView = lContainer[nextViewIndex];
  53205. const firstTNodeOfView = lView[TVIEW].firstChild;
  53206. if (firstTNodeOfView !== null) {
  53207. return getFirstNativeNode(lView, firstTNodeOfView);
  53208. }
  53209. }
  53210. return lContainer[NATIVE];
  53211. }
  53212. /**
  53213. * Removes a native node itself using a given renderer. To remove the node we are looking up its
  53214. * parent from the native tree as not all platforms / browsers support the equivalent of
  53215. * node.remove().
  53216. *
  53217. * @param renderer A renderer to be used
  53218. * @param rNode The native node that should be removed
  53219. * @param isHostElement A flag indicating if a node to be removed is a host of a component.
  53220. */
  53221. function nativeRemoveNode(renderer, rNode, isHostElement) {
  53222. ngDevMode && ngDevMode.rendererRemoveNode++;
  53223. const nativeParent = nativeParentNode(renderer, rNode);
  53224. if (nativeParent) {
  53225. nativeRemoveChild(renderer, nativeParent, rNode, isHostElement);
  53226. }
  53227. }
  53228. /**
  53229. * Performs the operation of `action` on the node. Typically this involves inserting or removing
  53230. * nodes on the LView or projection boundary.
  53231. */
  53232. function applyNodes(renderer, action, tNode, lView, parentRElement, beforeNode, isProjection) {
  53233. while (tNode != null) {
  53234. ngDevMode && assertTNodeForLView(tNode, lView);
  53235. ngDevMode &&
  53236. assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */ | 16 /* Projection */ | 32 /* Icu */);
  53237. const rawSlotValue = lView[tNode.index];
  53238. const tNodeType = tNode.type;
  53239. if (isProjection) {
  53240. if (action === 0 /* Create */) {
  53241. rawSlotValue && attachPatchData(unwrapRNode(rawSlotValue), lView);
  53242. tNode.flags |= 4 /* isProjected */;
  53243. }
  53244. }
  53245. if ((tNode.flags & 64 /* isDetached */) !== 64 /* isDetached */) {
  53246. if (tNodeType & 8 /* ElementContainer */) {
  53247. applyNodes(renderer, action, tNode.child, lView, parentRElement, beforeNode, false);
  53248. applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
  53249. }
  53250. else if (tNodeType & 32 /* Icu */) {
  53251. const nextRNode = icuContainerIterate(tNode, lView);
  53252. let rNode;
  53253. while (rNode = nextRNode()) {
  53254. applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);
  53255. }
  53256. applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
  53257. }
  53258. else if (tNodeType & 16 /* Projection */) {
  53259. applyProjectionRecursive(renderer, action, lView, tNode, parentRElement, beforeNode);
  53260. }
  53261. else {
  53262. ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 4 /* Container */);
  53263. applyToElementOrContainer(action, renderer, parentRElement, rawSlotValue, beforeNode);
  53264. }
  53265. }
  53266. tNode = isProjection ? tNode.projectionNext : tNode.next;
  53267. }
  53268. }
  53269. function applyView(tView, lView, renderer, action, parentRElement, beforeNode) {
  53270. applyNodes(renderer, action, tView.firstChild, lView, parentRElement, beforeNode, false);
  53271. }
  53272. /**
  53273. * `applyProjection` performs operation on the projection.
  53274. *
  53275. * Inserting a projection requires us to locate the projected nodes from the parent component. The
  53276. * complication is that those nodes themselves could be re-projected from their parent component.
  53277. *
  53278. * @param tView The `TView` of `LView` which needs to be inserted, detached, destroyed
  53279. * @param lView The `LView` which needs to be inserted, detached, destroyed.
  53280. * @param tProjectionNode node to project
  53281. */
  53282. function applyProjection(tView, lView, tProjectionNode) {
  53283. const renderer = lView[RENDERER];
  53284. const parentRNode = getParentRElement(tView, tProjectionNode, lView);
  53285. const parentTNode = tProjectionNode.parent || lView[T_HOST];
  53286. let beforeNode = getInsertInFrontOfRNode(parentTNode, tProjectionNode, lView);
  53287. applyProjectionRecursive(renderer, 0 /* Create */, lView, tProjectionNode, parentRNode, beforeNode);
  53288. }
  53289. /**
  53290. * `applyProjectionRecursive` performs operation on the projection specified by `action` (insert,
  53291. * detach, destroy)
  53292. *
  53293. * Inserting a projection requires us to locate the projected nodes from the parent component. The
  53294. * complication is that those nodes themselves could be re-projected from their parent component.
  53295. *
  53296. * @param renderer Render to use
  53297. * @param action action to perform (insert, detach, destroy)
  53298. * @param lView The LView which needs to be inserted, detached, destroyed.
  53299. * @param tProjectionNode node to project
  53300. * @param parentRElement parent DOM element for insertion/removal.
  53301. * @param beforeNode Before which node the insertions should happen.
  53302. */
  53303. function applyProjectionRecursive(renderer, action, lView, tProjectionNode, parentRElement, beforeNode) {
  53304. const componentLView = lView[DECLARATION_COMPONENT_VIEW];
  53305. const componentNode = componentLView[T_HOST];
  53306. ngDevMode &&
  53307. assertEqual(typeof tProjectionNode.projection, 'number', 'expecting projection index');
  53308. const nodeToProjectOrRNodes = componentNode.projection[tProjectionNode.projection];
  53309. if (Array.isArray(nodeToProjectOrRNodes)) {
  53310. // This should not exist, it is a bit of a hack. When we bootstrap a top level node and we
  53311. // need to support passing projectable nodes, so we cheat and put them in the TNode
  53312. // of the Host TView. (Yes we put instance info at the T Level). We can get away with it
  53313. // because we know that that TView is not shared and therefore it will not be a problem.
  53314. // This should be refactored and cleaned up.
  53315. for (let i = 0; i < nodeToProjectOrRNodes.length; i++) {
  53316. const rNode = nodeToProjectOrRNodes[i];
  53317. applyToElementOrContainer(action, renderer, parentRElement, rNode, beforeNode);
  53318. }
  53319. }
  53320. else {
  53321. let nodeToProject = nodeToProjectOrRNodes;
  53322. const projectedComponentLView = componentLView[PARENT];
  53323. applyNodes(renderer, action, nodeToProject, projectedComponentLView, parentRElement, beforeNode, true);
  53324. }
  53325. }
  53326. /**
  53327. * `applyContainer` performs an operation on the container and its views as specified by
  53328. * `action` (insert, detach, destroy)
  53329. *
  53330. * Inserting a Container is complicated by the fact that the container may have Views which
  53331. * themselves have containers or projections.
  53332. *
  53333. * @param renderer Renderer to use
  53334. * @param action action to perform (insert, detach, destroy)
  53335. * @param lContainer The LContainer which needs to be inserted, detached, destroyed.
  53336. * @param parentRElement parent DOM element for insertion/removal.
  53337. * @param beforeNode Before which node the insertions should happen.
  53338. */
  53339. function applyContainer(renderer, action, lContainer, parentRElement, beforeNode) {
  53340. ngDevMode && assertLContainer(lContainer);
  53341. const anchor = lContainer[NATIVE]; // LContainer has its own before node.
  53342. const native = unwrapRNode(lContainer);
  53343. // An LContainer can be created dynamically on any node by injecting ViewContainerRef.
  53344. // Asking for a ViewContainerRef on an element will result in a creation of a separate anchor
  53345. // node (comment in the DOM) that will be different from the LContainer's host node. In this
  53346. // particular case we need to execute action on 2 nodes:
  53347. // - container's host node (this is done in the executeActionOnElementOrContainer)
  53348. // - container's host node (this is done here)
  53349. if (anchor !== native) {
  53350. // This is very strange to me (Misko). I would expect that the native is same as anchor. I
  53351. // don't see a reason why they should be different, but they are.
  53352. //
  53353. // If they are we need to process the second anchor as well.
  53354. applyToElementOrContainer(action, renderer, parentRElement, anchor, beforeNode);
  53355. }
  53356. for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
  53357. const lView = lContainer[i];
  53358. applyView(lView[TVIEW], lView, renderer, action, parentRElement, anchor);
  53359. }
  53360. }
  53361. /**
  53362. * Writes class/style to element.
  53363. *
  53364. * @param renderer Renderer to use.
  53365. * @param isClassBased `true` if it should be written to `class` (`false` to write to `style`)
  53366. * @param rNode The Node to write to.
  53367. * @param prop Property to write to. This would be the class/style name.
  53368. * @param value Value to write. If `null`/`undefined`/`false` this is considered a remove (set/add
  53369. * otherwise).
  53370. */
  53371. function applyStyling(renderer, isClassBased, rNode, prop, value) {
  53372. const isProcedural = isProceduralRenderer(renderer);
  53373. if (isClassBased) {
  53374. // We actually want JS true/false here because any truthy value should add the class
  53375. if (!value) {
  53376. ngDevMode && ngDevMode.rendererRemoveClass++;
  53377. if (isProcedural) {
  53378. renderer.removeClass(rNode, prop);
  53379. }
  53380. else {
  53381. rNode.classList.remove(prop);
  53382. }
  53383. }
  53384. else {
  53385. ngDevMode && ngDevMode.rendererAddClass++;
  53386. if (isProcedural) {
  53387. renderer.addClass(rNode, prop);
  53388. }
  53389. else {
  53390. ngDevMode && assertDefined(rNode.classList, 'HTMLElement expected');
  53391. rNode.classList.add(prop);
  53392. }
  53393. }
  53394. }
  53395. else {
  53396. let flags = prop.indexOf('-') === -1 ? undefined : RendererStyleFlags2.DashCase;
  53397. if (value == null /** || value === undefined */) {
  53398. ngDevMode && ngDevMode.rendererRemoveStyle++;
  53399. if (isProcedural) {
  53400. renderer.removeStyle(rNode, prop, flags);
  53401. }
  53402. else {
  53403. rNode.style.removeProperty(prop);
  53404. }
  53405. }
  53406. else {
  53407. // A value is important if it ends with `!important`. The style
  53408. // parser strips any semicolons at the end of the value.
  53409. const isImportant = typeof value === 'string' ? value.endsWith('!important') : false;
  53410. if (isImportant) {
  53411. // !important has to be stripped from the value for it to be valid.
  53412. value = value.slice(0, -10);
  53413. flags |= RendererStyleFlags2.Important;
  53414. }
  53415. ngDevMode && ngDevMode.rendererSetStyle++;
  53416. if (isProcedural) {
  53417. renderer.setStyle(rNode, prop, value, flags);
  53418. }
  53419. else {
  53420. ngDevMode && assertDefined(rNode.style, 'HTMLElement expected');
  53421. rNode.style.setProperty(prop, value, isImportant ? 'important' : '');
  53422. }
  53423. }
  53424. }
  53425. }
  53426. /**
  53427. * Write `cssText` to `RElement`.
  53428. *
  53429. * This function does direct write without any reconciliation. Used for writing initial values, so
  53430. * that static styling values do not pull in the style parser.
  53431. *
  53432. * @param renderer Renderer to use
  53433. * @param element The element which needs to be updated.
  53434. * @param newValue The new class list to write.
  53435. */
  53436. function writeDirectStyle(renderer, element, newValue) {
  53437. ngDevMode && assertString(newValue, '\'newValue\' should be a string');
  53438. if (isProceduralRenderer(renderer)) {
  53439. renderer.setAttribute(element, 'style', newValue);
  53440. }
  53441. else {
  53442. element.style.cssText = newValue;
  53443. }
  53444. ngDevMode && ngDevMode.rendererSetStyle++;
  53445. }
  53446. /**
  53447. * Write `className` to `RElement`.
  53448. *
  53449. * This function does direct write without any reconciliation. Used for writing initial values, so
  53450. * that static styling values do not pull in the style parser.
  53451. *
  53452. * @param renderer Renderer to use
  53453. * @param element The element which needs to be updated.
  53454. * @param newValue The new class list to write.
  53455. */
  53456. function writeDirectClass(renderer, element, newValue) {
  53457. ngDevMode && assertString(newValue, '\'newValue\' should be a string');
  53458. if (isProceduralRenderer(renderer)) {
  53459. if (newValue === '') {
  53460. // There are tests in `google3` which expect `element.getAttribute('class')` to be `null`.
  53461. renderer.removeAttribute(element, 'class');
  53462. }
  53463. else {
  53464. renderer.setAttribute(element, 'class', newValue);
  53465. }
  53466. }
  53467. else {
  53468. element.className = newValue;
  53469. }
  53470. ngDevMode && ngDevMode.rendererSetClassName++;
  53471. }
  53472. /**
  53473. * @license
  53474. * Copyright Google LLC All Rights Reserved.
  53475. *
  53476. * Use of this source code is governed by an MIT-style license that can be
  53477. * found in the LICENSE file at https://angular.io/license
  53478. */
  53479. /**
  53480. * Returns an index of `classToSearch` in `className` taking token boundaries into account.
  53481. *
  53482. * `classIndexOf('AB A', 'A', 0)` will be 3 (not 0 since `AB!==A`)
  53483. *
  53484. * @param className A string containing classes (whitespace separated)
  53485. * @param classToSearch A class name to locate
  53486. * @param startingIndex Starting location of search
  53487. * @returns an index of the located class (or -1 if not found)
  53488. */
  53489. function classIndexOf(className, classToSearch, startingIndex) {
  53490. ngDevMode && assertNotEqual(classToSearch, '', 'can not look for "" string.');
  53491. let end = className.length;
  53492. while (true) {
  53493. const foundIndex = className.indexOf(classToSearch, startingIndex);
  53494. if (foundIndex === -1)
  53495. return foundIndex;
  53496. if (foundIndex === 0 || className.charCodeAt(foundIndex - 1) <= 32 /* SPACE */) {
  53497. // Ensure that it has leading whitespace
  53498. const length = classToSearch.length;
  53499. if (foundIndex + length === end ||
  53500. className.charCodeAt(foundIndex + length) <= 32 /* SPACE */) {
  53501. // Ensure that it has trailing whitespace
  53502. return foundIndex;
  53503. }
  53504. }
  53505. // False positive, keep searching from where we left off.
  53506. startingIndex = foundIndex + 1;
  53507. }
  53508. }
  53509. /**
  53510. * @license
  53511. * Copyright Google LLC All Rights Reserved.
  53512. *
  53513. * Use of this source code is governed by an MIT-style license that can be
  53514. * found in the LICENSE file at https://angular.io/license
  53515. */
  53516. const unusedValueToPlacateAjd$1 = unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$5;
  53517. const NG_TEMPLATE_SELECTOR = 'ng-template';
  53518. /**
  53519. * Search the `TAttributes` to see if it contains `cssClassToMatch` (case insensitive)
  53520. *
  53521. * @param attrs `TAttributes` to search through.
  53522. * @param cssClassToMatch class to match (lowercase)
  53523. * @param isProjectionMode Whether or not class matching should look into the attribute `class` in
  53524. * addition to the `AttributeMarker.Classes`.
  53525. */
  53526. function isCssClassMatching(attrs, cssClassToMatch, isProjectionMode) {
  53527. // TODO(misko): The fact that this function needs to know about `isProjectionMode` seems suspect.
  53528. // It is strange to me that sometimes the class information comes in form of `class` attribute
  53529. // and sometimes in form of `AttributeMarker.Classes`. Some investigation is needed to determine
  53530. // if that is the right behavior.
  53531. ngDevMode &&
  53532. assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');
  53533. let i = 0;
  53534. while (i < attrs.length) {
  53535. let item = attrs[i++];
  53536. if (isProjectionMode && item === 'class') {
  53537. item = attrs[i];
  53538. if (classIndexOf(item.toLowerCase(), cssClassToMatch, 0) !== -1) {
  53539. return true;
  53540. }
  53541. }
  53542. else if (item === 1 /* Classes */) {
  53543. // We found the classes section. Start searching for the class.
  53544. while (i < attrs.length && typeof (item = attrs[i++]) == 'string') {
  53545. // while we have strings
  53546. if (item.toLowerCase() === cssClassToMatch)
  53547. return true;
  53548. }
  53549. return false;
  53550. }
  53551. }
  53552. return false;
  53553. }
  53554. /**
  53555. * Checks whether the `tNode` represents an inline template (e.g. `*ngFor`).
  53556. *
  53557. * @param tNode current TNode
  53558. */
  53559. function isInlineTemplate(tNode) {
  53560. return tNode.type === 4 /* Container */ && tNode.value !== NG_TEMPLATE_SELECTOR;
  53561. }
  53562. /**
  53563. * Function that checks whether a given tNode matches tag-based selector and has a valid type.
  53564. *
  53565. * Matching can be performed in 2 modes: projection mode (when we project nodes) and regular
  53566. * directive matching mode:
  53567. * - in the "directive matching" mode we do _not_ take TContainer's tagName into account if it is
  53568. * different from NG_TEMPLATE_SELECTOR (value different from NG_TEMPLATE_SELECTOR indicates that a
  53569. * tag name was extracted from * syntax so we would match the same directive twice);
  53570. * - in the "projection" mode, we use a tag name potentially extracted from the * syntax processing
  53571. * (applicable to TNodeType.Container only).
  53572. */
  53573. function hasTagAndTypeMatch(tNode, currentSelector, isProjectionMode) {
  53574. const tagNameToCompare = tNode.type === 4 /* Container */ && !isProjectionMode ? NG_TEMPLATE_SELECTOR : tNode.value;
  53575. return currentSelector === tagNameToCompare;
  53576. }
  53577. /**
  53578. * A utility function to match an Ivy node static data against a simple CSS selector
  53579. *
  53580. * @param node static data of the node to match
  53581. * @param selector The selector to try matching against the node.
  53582. * @param isProjectionMode if `true` we are matching for content projection, otherwise we are doing
  53583. * directive matching.
  53584. * @returns true if node matches the selector.
  53585. */
  53586. function isNodeMatchingSelector(tNode, selector, isProjectionMode) {
  53587. ngDevMode && assertDefined(selector[0], 'Selector should have a tag name');
  53588. let mode = 4 /* ELEMENT */;
  53589. const nodeAttrs = tNode.attrs || [];
  53590. // Find the index of first attribute that has no value, only a name.
  53591. const nameOnlyMarkerIdx = getNameOnlyMarkerIndex(nodeAttrs);
  53592. // When processing ":not" selectors, we skip to the next ":not" if the
  53593. // current one doesn't match
  53594. let skipToNextSelector = false;
  53595. for (let i = 0; i < selector.length; i++) {
  53596. const current = selector[i];
  53597. if (typeof current === 'number') {
  53598. // If we finish processing a :not selector and it hasn't failed, return false
  53599. if (!skipToNextSelector && !isPositive(mode) && !isPositive(current)) {
  53600. return false;
  53601. }
  53602. // If we are skipping to the next :not() and this mode flag is positive,
  53603. // it's a part of the current :not() selector, and we should keep skipping
  53604. if (skipToNextSelector && isPositive(current))
  53605. continue;
  53606. skipToNextSelector = false;
  53607. mode = current | (mode & 1 /* NOT */);
  53608. continue;
  53609. }
  53610. if (skipToNextSelector)
  53611. continue;
  53612. if (mode & 4 /* ELEMENT */) {
  53613. mode = 2 /* ATTRIBUTE */ | mode & 1 /* NOT */;
  53614. if (current !== '' && !hasTagAndTypeMatch(tNode, current, isProjectionMode) ||
  53615. current === '' && selector.length === 1) {
  53616. if (isPositive(mode))
  53617. return false;
  53618. skipToNextSelector = true;
  53619. }
  53620. }
  53621. else {
  53622. const selectorAttrValue = mode & 8 /* CLASS */ ? current : selector[++i];
  53623. // special case for matching against classes when a tNode has been instantiated with
  53624. // class and style values as separate attribute values (e.g. ['title', CLASS, 'foo'])
  53625. if ((mode & 8 /* CLASS */) && tNode.attrs !== null) {
  53626. if (!isCssClassMatching(tNode.attrs, selectorAttrValue, isProjectionMode)) {
  53627. if (isPositive(mode))
  53628. return false;
  53629. skipToNextSelector = true;
  53630. }
  53631. continue;
  53632. }
  53633. const attrName = (mode & 8 /* CLASS */) ? 'class' : current;
  53634. const attrIndexInNode = findAttrIndexInNode(attrName, nodeAttrs, isInlineTemplate(tNode), isProjectionMode);
  53635. if (attrIndexInNode === -1) {
  53636. if (isPositive(mode))
  53637. return false;
  53638. skipToNextSelector = true;
  53639. continue;
  53640. }
  53641. if (selectorAttrValue !== '') {
  53642. let nodeAttrValue;
  53643. if (attrIndexInNode > nameOnlyMarkerIdx) {
  53644. nodeAttrValue = '';
  53645. }
  53646. else {
  53647. ngDevMode &&
  53648. assertNotEqual(nodeAttrs[attrIndexInNode], 0 /* NamespaceURI */, 'We do not match directives on namespaced attributes');
  53649. // we lowercase the attribute value to be able to match
  53650. // selectors without case-sensitivity
  53651. // (selectors are already in lowercase when generated)
  53652. nodeAttrValue = nodeAttrs[attrIndexInNode + 1].toLowerCase();
  53653. }
  53654. const compareAgainstClassName = mode & 8 /* CLASS */ ? nodeAttrValue : null;
  53655. if (compareAgainstClassName &&
  53656. classIndexOf(compareAgainstClassName, selectorAttrValue, 0) !== -1 ||
  53657. mode & 2 /* ATTRIBUTE */ && selectorAttrValue !== nodeAttrValue) {
  53658. if (isPositive(mode))
  53659. return false;
  53660. skipToNextSelector = true;
  53661. }
  53662. }
  53663. }
  53664. }
  53665. return isPositive(mode) || skipToNextSelector;
  53666. }
  53667. function isPositive(mode) {
  53668. return (mode & 1 /* NOT */) === 0;
  53669. }
  53670. /**
  53671. * Examines the attribute's definition array for a node to find the index of the
  53672. * attribute that matches the given `name`.
  53673. *
  53674. * NOTE: This will not match namespaced attributes.
  53675. *
  53676. * Attribute matching depends upon `isInlineTemplate` and `isProjectionMode`.
  53677. * The following table summarizes which types of attributes we attempt to match:
  53678. *
  53679. * ===========================================================================================================
  53680. * Modes | Normal Attributes | Bindings Attributes | Template Attributes | I18n
  53681. * Attributes
  53682. * ===========================================================================================================
  53683. * Inline + Projection | YES | YES | NO | YES
  53684. * -----------------------------------------------------------------------------------------------------------
  53685. * Inline + Directive | NO | NO | YES | NO
  53686. * -----------------------------------------------------------------------------------------------------------
  53687. * Non-inline + Projection | YES | YES | NO | YES
  53688. * -----------------------------------------------------------------------------------------------------------
  53689. * Non-inline + Directive | YES | YES | NO | YES
  53690. * ===========================================================================================================
  53691. *
  53692. * @param name the name of the attribute to find
  53693. * @param attrs the attribute array to examine
  53694. * @param isInlineTemplate true if the node being matched is an inline template (e.g. `*ngFor`)
  53695. * rather than a manually expanded template node (e.g `<ng-template>`).
  53696. * @param isProjectionMode true if we are matching against content projection otherwise we are
  53697. * matching against directives.
  53698. */
  53699. function findAttrIndexInNode(name, attrs, isInlineTemplate, isProjectionMode) {
  53700. if (attrs === null)
  53701. return -1;
  53702. let i = 0;
  53703. if (isProjectionMode || !isInlineTemplate) {
  53704. let bindingsMode = false;
  53705. while (i < attrs.length) {
  53706. const maybeAttrName = attrs[i];
  53707. if (maybeAttrName === name) {
  53708. return i;
  53709. }
  53710. else if (maybeAttrName === 3 /* Bindings */ || maybeAttrName === 6 /* I18n */) {
  53711. bindingsMode = true;
  53712. }
  53713. else if (maybeAttrName === 1 /* Classes */ || maybeAttrName === 2 /* Styles */) {
  53714. let value = attrs[++i];
  53715. // We should skip classes here because we have a separate mechanism for
  53716. // matching classes in projection mode.
  53717. while (typeof value === 'string') {
  53718. value = attrs[++i];
  53719. }
  53720. continue;
  53721. }
  53722. else if (maybeAttrName === 4 /* Template */) {
  53723. // We do not care about Template attributes in this scenario.
  53724. break;
  53725. }
  53726. else if (maybeAttrName === 0 /* NamespaceURI */) {
  53727. // Skip the whole namespaced attribute and value. This is by design.
  53728. i += 4;
  53729. continue;
  53730. }
  53731. // In binding mode there are only names, rather than name-value pairs.
  53732. i += bindingsMode ? 1 : 2;
  53733. }
  53734. // We did not match the attribute
  53735. return -1;
  53736. }
  53737. else {
  53738. return matchTemplateAttribute(attrs, name);
  53739. }
  53740. }
  53741. function isNodeMatchingSelectorList(tNode, selector, isProjectionMode = false) {
  53742. for (let i = 0; i < selector.length; i++) {
  53743. if (isNodeMatchingSelector(tNode, selector[i], isProjectionMode)) {
  53744. return true;
  53745. }
  53746. }
  53747. return false;
  53748. }
  53749. function getProjectAsAttrValue(tNode) {
  53750. const nodeAttrs = tNode.attrs;
  53751. if (nodeAttrs != null) {
  53752. const ngProjectAsAttrIdx = nodeAttrs.indexOf(5 /* ProjectAs */);
  53753. // only check for ngProjectAs in attribute names, don't accidentally match attribute's value
  53754. // (attribute names are stored at even indexes)
  53755. if ((ngProjectAsAttrIdx & 1) === 0) {
  53756. return nodeAttrs[ngProjectAsAttrIdx + 1];
  53757. }
  53758. }
  53759. return null;
  53760. }
  53761. function getNameOnlyMarkerIndex(nodeAttrs) {
  53762. for (let i = 0; i < nodeAttrs.length; i++) {
  53763. const nodeAttr = nodeAttrs[i];
  53764. if (isNameOnlyAttributeMarker(nodeAttr)) {
  53765. return i;
  53766. }
  53767. }
  53768. return nodeAttrs.length;
  53769. }
  53770. function matchTemplateAttribute(attrs, name) {
  53771. let i = attrs.indexOf(4 /* Template */);
  53772. if (i > -1) {
  53773. i++;
  53774. while (i < attrs.length) {
  53775. const attr = attrs[i];
  53776. // Return in case we checked all template attrs and are switching to the next section in the
  53777. // attrs array (that starts with a number that represents an attribute marker).
  53778. if (typeof attr === 'number')
  53779. return -1;
  53780. if (attr === name)
  53781. return i;
  53782. i++;
  53783. }
  53784. }
  53785. return -1;
  53786. }
  53787. /**
  53788. * Checks whether a selector is inside a CssSelectorList
  53789. * @param selector Selector to be checked.
  53790. * @param list List in which to look for the selector.
  53791. */
  53792. function isSelectorInSelectorList(selector, list) {
  53793. selectorListLoop: for (let i = 0; i < list.length; i++) {
  53794. const currentSelectorInList = list[i];
  53795. if (selector.length !== currentSelectorInList.length) {
  53796. continue;
  53797. }
  53798. for (let j = 0; j < selector.length; j++) {
  53799. if (selector[j] !== currentSelectorInList[j]) {
  53800. continue selectorListLoop;
  53801. }
  53802. }
  53803. return true;
  53804. }
  53805. return false;
  53806. }
  53807. function maybeWrapInNotSelector(isNegativeMode, chunk) {
  53808. return isNegativeMode ? ':not(' + chunk.trim() + ')' : chunk;
  53809. }
  53810. function stringifyCSSSelector(selector) {
  53811. let result = selector[0];
  53812. let i = 1;
  53813. let mode = 2 /* ATTRIBUTE */;
  53814. let currentChunk = '';
  53815. let isNegativeMode = false;
  53816. while (i < selector.length) {
  53817. let valueOrMarker = selector[i];
  53818. if (typeof valueOrMarker === 'string') {
  53819. if (mode & 2 /* ATTRIBUTE */) {
  53820. const attrValue = selector[++i];
  53821. currentChunk +=
  53822. '[' + valueOrMarker + (attrValue.length > 0 ? '="' + attrValue + '"' : '') + ']';
  53823. }
  53824. else if (mode & 8 /* CLASS */) {
  53825. currentChunk += '.' + valueOrMarker;
  53826. }
  53827. else if (mode & 4 /* ELEMENT */) {
  53828. currentChunk += ' ' + valueOrMarker;
  53829. }
  53830. }
  53831. else {
  53832. //
  53833. // Append current chunk to the final result in case we come across SelectorFlag, which
  53834. // indicates that the previous section of a selector is over. We need to accumulate content
  53835. // between flags to make sure we wrap the chunk later in :not() selector if needed, e.g.
  53836. // ```
  53837. // ['', Flags.CLASS, '.classA', Flags.CLASS | Flags.NOT, '.classB', '.classC']
  53838. // ```
  53839. // should be transformed to `.classA :not(.classB .classC)`.
  53840. //
  53841. // Note: for negative selector part, we accumulate content between flags until we find the
  53842. // next negative flag. This is needed to support a case where `:not()` rule contains more than
  53843. // one chunk, e.g. the following selector:
  53844. // ```
  53845. // ['', Flags.ELEMENT | Flags.NOT, 'p', Flags.CLASS, 'foo', Flags.CLASS | Flags.NOT, 'bar']
  53846. // ```
  53847. // should be stringified to `:not(p.foo) :not(.bar)`
  53848. //
  53849. if (currentChunk !== '' && !isPositive(valueOrMarker)) {
  53850. result += maybeWrapInNotSelector(isNegativeMode, currentChunk);
  53851. currentChunk = '';
  53852. }
  53853. mode = valueOrMarker;
  53854. // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative
  53855. // mode is maintained for remaining chunks of a selector.
  53856. isNegativeMode = isNegativeMode || !isPositive(mode);
  53857. }
  53858. i++;
  53859. }
  53860. if (currentChunk !== '') {
  53861. result += maybeWrapInNotSelector(isNegativeMode, currentChunk);
  53862. }
  53863. return result;
  53864. }
  53865. /**
  53866. * Generates string representation of CSS selector in parsed form.
  53867. *
  53868. * ComponentDef and DirectiveDef are generated with the selector in parsed form to avoid doing
  53869. * additional parsing at runtime (for example, for directive matching). However in some cases (for
  53870. * example, while bootstrapping a component), a string version of the selector is required to query
  53871. * for the host element on the page. This function takes the parsed form of a selector and returns
  53872. * its string representation.
  53873. *
  53874. * @param selectorList selector in parsed form
  53875. * @returns string representation of a given selector
  53876. */
  53877. function stringifyCSSSelectorList(selectorList) {
  53878. return selectorList.map(stringifyCSSSelector).join(',');
  53879. }
  53880. /**
  53881. * Extracts attributes and classes information from a given CSS selector.
  53882. *
  53883. * This function is used while creating a component dynamically. In this case, the host element
  53884. * (that is created dynamically) should contain attributes and classes specified in component's CSS
  53885. * selector.
  53886. *
  53887. * @param selector CSS selector in parsed form (in a form of array)
  53888. * @returns object with `attrs` and `classes` fields that contain extracted information
  53889. */
  53890. function extractAttrsAndClassesFromSelector(selector) {
  53891. const attrs = [];
  53892. const classes = [];
  53893. let i = 1;
  53894. let mode = 2 /* ATTRIBUTE */;
  53895. while (i < selector.length) {
  53896. let valueOrMarker = selector[i];
  53897. if (typeof valueOrMarker === 'string') {
  53898. if (mode === 2 /* ATTRIBUTE */) {
  53899. if (valueOrMarker !== '') {
  53900. attrs.push(valueOrMarker, selector[++i]);
  53901. }
  53902. }
  53903. else if (mode === 8 /* CLASS */) {
  53904. classes.push(valueOrMarker);
  53905. }
  53906. }
  53907. else {
  53908. // According to CssSelector spec, once we come across `SelectorFlags.NOT` flag, the negative
  53909. // mode is maintained for remaining chunks of a selector. Since attributes and classes are
  53910. // extracted only for "positive" part of the selector, we can stop here.
  53911. if (!isPositive(mode))
  53912. break;
  53913. mode = valueOrMarker;
  53914. }
  53915. i++;
  53916. }
  53917. return { attrs, classes };
  53918. }
  53919. /**
  53920. * @license
  53921. * Copyright Google LLC All Rights Reserved.
  53922. *
  53923. * Use of this source code is governed by an MIT-style license that can be
  53924. * found in the LICENSE file at https://angular.io/license
  53925. */
  53926. /** A special value which designates that a value has not changed. */
  53927. const NO_CHANGE = (typeof ngDevMode === 'undefined' || ngDevMode) ? { __brand__: 'NO_CHANGE' } : {};
  53928. /**
  53929. * @license
  53930. * Copyright Google LLC All Rights Reserved.
  53931. *
  53932. * Use of this source code is governed by an MIT-style license that can be
  53933. * found in the LICENSE file at https://angular.io/license
  53934. */
  53935. /**
  53936. * Advances to an element for later binding instructions.
  53937. *
  53938. * Used in conjunction with instructions like {@link property} to act on elements with specified
  53939. * indices, for example those created with {@link element} or {@link elementStart}.
  53940. *
  53941. * ```ts
  53942. * (rf: RenderFlags, ctx: any) => {
  53943. * if (rf & 1) {
  53944. * text(0, 'Hello');
  53945. * text(1, 'Goodbye')
  53946. * element(2, 'div');
  53947. * }
  53948. * if (rf & 2) {
  53949. * advance(2); // Advance twice to the <div>.
  53950. * property('title', 'test');
  53951. * }
  53952. * }
  53953. * ```
  53954. * @param delta Number of elements to advance forwards by.
  53955. *
  53956. * @codeGenApi
  53957. */
  53958. function ɵɵadvance(delta) {
  53959. ngDevMode && assertGreaterThan(delta, 0, 'Can only advance forward');
  53960. selectIndexInternal(getTView(), getLView(), getSelectedIndex() + delta, isInCheckNoChangesMode());
  53961. }
  53962. function selectIndexInternal(tView, lView, index, checkNoChangesMode) {
  53963. ngDevMode && assertIndexInDeclRange(lView, index);
  53964. // Flush the initial hooks for elements in the view that have been added up to this point.
  53965. // PERF WARNING: do NOT extract this to a separate function without running benchmarks
  53966. if (!checkNoChangesMode) {
  53967. const hooksInitPhaseCompleted = (lView[FLAGS] & 3 /* InitPhaseStateMask */) === 3 /* InitPhaseCompleted */;
  53968. if (hooksInitPhaseCompleted) {
  53969. const preOrderCheckHooks = tView.preOrderCheckHooks;
  53970. if (preOrderCheckHooks !== null) {
  53971. executeCheckHooks(lView, preOrderCheckHooks, index);
  53972. }
  53973. }
  53974. else {
  53975. const preOrderHooks = tView.preOrderHooks;
  53976. if (preOrderHooks !== null) {
  53977. executeInitAndCheckHooks(lView, preOrderHooks, 0 /* OnInitHooksToBeRun */, index);
  53978. }
  53979. }
  53980. }
  53981. // We must set the selected index *after* running the hooks, because hooks may have side-effects
  53982. // that cause other template functions to run, thus updating the selected index, which is global
  53983. // state. If we run `setSelectedIndex` *before* we run the hooks, in some cases the selected index
  53984. // will be altered by the time we leave the `ɵɵadvance` instruction.
  53985. setSelectedIndex(index);
  53986. }
  53987. /**
  53988. * @license
  53989. * Copyright Google LLC All Rights Reserved.
  53990. *
  53991. * Use of this source code is governed by an MIT-style license that can be
  53992. * found in the LICENSE file at https://angular.io/license
  53993. */
  53994. function toTStylingRange(prev, next) {
  53995. ngDevMode && assertNumberInRange(prev, 0, 32767 /* UNSIGNED_MASK */);
  53996. ngDevMode && assertNumberInRange(next, 0, 32767 /* UNSIGNED_MASK */);
  53997. return (prev << 17 /* PREV_SHIFT */ | next << 2 /* NEXT_SHIFT */);
  53998. }
  53999. function getTStylingRangePrev(tStylingRange) {
  54000. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54001. return (tStylingRange >> 17 /* PREV_SHIFT */) & 32767 /* UNSIGNED_MASK */;
  54002. }
  54003. function getTStylingRangePrevDuplicate(tStylingRange) {
  54004. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54005. return (tStylingRange & 2 /* PREV_DUPLICATE */) ==
  54006. 2 /* PREV_DUPLICATE */;
  54007. }
  54008. function setTStylingRangePrev(tStylingRange, previous) {
  54009. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54010. ngDevMode && assertNumberInRange(previous, 0, 32767 /* UNSIGNED_MASK */);
  54011. return ((tStylingRange & ~4294836224 /* PREV_MASK */) |
  54012. (previous << 17 /* PREV_SHIFT */));
  54013. }
  54014. function setTStylingRangePrevDuplicate(tStylingRange) {
  54015. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54016. return (tStylingRange | 2 /* PREV_DUPLICATE */);
  54017. }
  54018. function getTStylingRangeNext(tStylingRange) {
  54019. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54020. return (tStylingRange & 131068 /* NEXT_MASK */) >> 2 /* NEXT_SHIFT */;
  54021. }
  54022. function setTStylingRangeNext(tStylingRange, next) {
  54023. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54024. ngDevMode && assertNumberInRange(next, 0, 32767 /* UNSIGNED_MASK */);
  54025. return ((tStylingRange & ~131068 /* NEXT_MASK */) | //
  54026. next << 2 /* NEXT_SHIFT */);
  54027. }
  54028. function getTStylingRangeNextDuplicate(tStylingRange) {
  54029. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54030. return (tStylingRange & 1 /* NEXT_DUPLICATE */) ===
  54031. 1 /* NEXT_DUPLICATE */;
  54032. }
  54033. function setTStylingRangeNextDuplicate(tStylingRange) {
  54034. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54035. return (tStylingRange | 1 /* NEXT_DUPLICATE */);
  54036. }
  54037. function getTStylingRangeTail(tStylingRange) {
  54038. ngDevMode && assertNumber(tStylingRange, 'expected number');
  54039. const next = getTStylingRangeNext(tStylingRange);
  54040. return next === 0 ? getTStylingRangePrev(tStylingRange) : next;
  54041. }
  54042. /**
  54043. * @license
  54044. * Copyright Google LLC All Rights Reserved.
  54045. *
  54046. * Use of this source code is governed by an MIT-style license that can be
  54047. * found in the LICENSE file at https://angular.io/license
  54048. */
  54049. /**
  54050. * Patch a `debug` property on top of the existing object.
  54051. *
  54052. * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`
  54053. *
  54054. * @param obj Object to patch
  54055. * @param debug Value to patch
  54056. */
  54057. function attachDebugObject(obj, debug) {
  54058. if (ngDevMode) {
  54059. Object.defineProperty(obj, 'debug', { value: debug, enumerable: false });
  54060. }
  54061. else {
  54062. throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');
  54063. }
  54064. }
  54065. /**
  54066. * Patch a `debug` property getter on top of the existing object.
  54067. *
  54068. * NOTE: always call this method with `ngDevMode && attachDebugObject(...)`
  54069. *
  54070. * @param obj Object to patch
  54071. * @param debugGetter Getter returning a value to patch
  54072. */
  54073. function attachDebugGetter(obj, debugGetter) {
  54074. if (ngDevMode) {
  54075. Object.defineProperty(obj, 'debug', { get: debugGetter, enumerable: false });
  54076. }
  54077. else {
  54078. throw new Error('This method should be guarded with `ngDevMode` so that it can be tree shaken in production!');
  54079. }
  54080. }
  54081. /**
  54082. * @license
  54083. * Copyright Google LLC All Rights Reserved.
  54084. *
  54085. * Use of this source code is governed by an MIT-style license that can be
  54086. * found in the LICENSE file at https://angular.io/license
  54087. */
  54088. const NG_DEV_MODE = ((typeof ngDevMode === 'undefined' || !!ngDevMode) && initNgDevMode());
  54089. /*
  54090. * This file contains conditionally attached classes which provide human readable (debug) level
  54091. * information for `LView`, `LContainer` and other internal data structures. These data structures
  54092. * are stored internally as array which makes it very difficult during debugging to reason about the
  54093. * current state of the system.
  54094. *
  54095. * Patching the array with extra property does change the array's hidden class' but it does not
  54096. * change the cost of access, therefore this patching should not have significant if any impact in
  54097. * `ngDevMode` mode. (see: https://jsperf.com/array-vs-monkey-patch-array)
  54098. *
  54099. * So instead of seeing:
  54100. * ```
  54101. * Array(30) [Object, 659, null, …]
  54102. * ```
  54103. *
  54104. * You get to see:
  54105. * ```
  54106. * LViewDebug {
  54107. * views: [...],
  54108. * flags: {attached: true, ...}
  54109. * nodes: [
  54110. * {html: '<div id="123">', ..., nodes: [
  54111. * {html: '<span>', ..., nodes: null}
  54112. * ]}
  54113. * ]
  54114. * }
  54115. * ```
  54116. */
  54117. let LVIEW_COMPONENT_CACHE;
  54118. let LVIEW_EMBEDDED_CACHE;
  54119. let LVIEW_ROOT;
  54120. /**
  54121. * This function clones a blueprint and creates LView.
  54122. *
  54123. * Simple slice will keep the same type, and we need it to be LView
  54124. */
  54125. function cloneToLViewFromTViewBlueprint(tView) {
  54126. const debugTView = tView;
  54127. const lView = getLViewToClone(debugTView.type, tView.template && tView.template.name);
  54128. return lView.concat(tView.blueprint);
  54129. }
  54130. function getLViewToClone(type, name) {
  54131. switch (type) {
  54132. case 0 /* Root */:
  54133. if (LVIEW_ROOT === undefined)
  54134. LVIEW_ROOT = new (createNamedArrayType('LRootView'))();
  54135. return LVIEW_ROOT;
  54136. case 1 /* Component */:
  54137. if (LVIEW_COMPONENT_CACHE === undefined)
  54138. LVIEW_COMPONENT_CACHE = new Map();
  54139. let componentArray = LVIEW_COMPONENT_CACHE.get(name);
  54140. if (componentArray === undefined) {
  54141. componentArray = new (createNamedArrayType('LComponentView' + nameSuffix(name)))();
  54142. LVIEW_COMPONENT_CACHE.set(name, componentArray);
  54143. }
  54144. return componentArray;
  54145. case 2 /* Embedded */:
  54146. if (LVIEW_EMBEDDED_CACHE === undefined)
  54147. LVIEW_EMBEDDED_CACHE = new Map();
  54148. let embeddedArray = LVIEW_EMBEDDED_CACHE.get(name);
  54149. if (embeddedArray === undefined) {
  54150. embeddedArray = new (createNamedArrayType('LEmbeddedView' + nameSuffix(name)))();
  54151. LVIEW_EMBEDDED_CACHE.set(name, embeddedArray);
  54152. }
  54153. return embeddedArray;
  54154. }
  54155. throw new Error('unreachable code');
  54156. }
  54157. function nameSuffix(text) {
  54158. if (text == null)
  54159. return '';
  54160. const index = text.lastIndexOf('_Template');
  54161. return '_' + (index === -1 ? text : text.substr(0, index));
  54162. }
  54163. /**
  54164. * This class is a debug version of Object literal so that we can have constructor name show up
  54165. * in
  54166. * debug tools in ngDevMode.
  54167. */
  54168. const TViewConstructor = class TView {
  54169. constructor(type, blueprint, template, queries, viewQuery, declTNode, data, bindingStartIndex, expandoStartIndex, hostBindingOpCodes, firstCreatePass, firstUpdatePass, staticViewQueries, staticContentQueries, preOrderHooks, preOrderCheckHooks, contentHooks, contentCheckHooks, viewHooks, viewCheckHooks, destroyHooks, cleanup, contentQueries, components, directiveRegistry, pipeRegistry, firstChild, schemas, consts, incompleteFirstPass, _decls, _vars) {
  54170. this.type = type;
  54171. this.blueprint = blueprint;
  54172. this.template = template;
  54173. this.queries = queries;
  54174. this.viewQuery = viewQuery;
  54175. this.declTNode = declTNode;
  54176. this.data = data;
  54177. this.bindingStartIndex = bindingStartIndex;
  54178. this.expandoStartIndex = expandoStartIndex;
  54179. this.hostBindingOpCodes = hostBindingOpCodes;
  54180. this.firstCreatePass = firstCreatePass;
  54181. this.firstUpdatePass = firstUpdatePass;
  54182. this.staticViewQueries = staticViewQueries;
  54183. this.staticContentQueries = staticContentQueries;
  54184. this.preOrderHooks = preOrderHooks;
  54185. this.preOrderCheckHooks = preOrderCheckHooks;
  54186. this.contentHooks = contentHooks;
  54187. this.contentCheckHooks = contentCheckHooks;
  54188. this.viewHooks = viewHooks;
  54189. this.viewCheckHooks = viewCheckHooks;
  54190. this.destroyHooks = destroyHooks;
  54191. this.cleanup = cleanup;
  54192. this.contentQueries = contentQueries;
  54193. this.components = components;
  54194. this.directiveRegistry = directiveRegistry;
  54195. this.pipeRegistry = pipeRegistry;
  54196. this.firstChild = firstChild;
  54197. this.schemas = schemas;
  54198. this.consts = consts;
  54199. this.incompleteFirstPass = incompleteFirstPass;
  54200. this._decls = _decls;
  54201. this._vars = _vars;
  54202. }
  54203. get template_() {
  54204. const buf = [];
  54205. processTNodeChildren(this.firstChild, buf);
  54206. return buf.join('');
  54207. }
  54208. get type_() {
  54209. return TViewTypeAsString[this.type] || `TViewType.?${this.type}?`;
  54210. }
  54211. };
  54212. class TNode {
  54213. constructor(tView_, //
  54214. type, //
  54215. index, //
  54216. insertBeforeIndex, //
  54217. injectorIndex, //
  54218. directiveStart, //
  54219. directiveEnd, //
  54220. directiveStylingLast, //
  54221. propertyBindings, //
  54222. flags, //
  54223. providerIndexes, //
  54224. value, //
  54225. attrs, //
  54226. mergedAttrs, //
  54227. localNames, //
  54228. initialInputs, //
  54229. inputs, //
  54230. outputs, //
  54231. tViews, //
  54232. next, //
  54233. projectionNext, //
  54234. child, //
  54235. parent, //
  54236. projection, //
  54237. styles, //
  54238. stylesWithoutHost, //
  54239. residualStyles, //
  54240. classes, //
  54241. classesWithoutHost, //
  54242. residualClasses, //
  54243. classBindings, //
  54244. styleBindings) {
  54245. this.tView_ = tView_;
  54246. this.type = type;
  54247. this.index = index;
  54248. this.insertBeforeIndex = insertBeforeIndex;
  54249. this.injectorIndex = injectorIndex;
  54250. this.directiveStart = directiveStart;
  54251. this.directiveEnd = directiveEnd;
  54252. this.directiveStylingLast = directiveStylingLast;
  54253. this.propertyBindings = propertyBindings;
  54254. this.flags = flags;
  54255. this.providerIndexes = providerIndexes;
  54256. this.value = value;
  54257. this.attrs = attrs;
  54258. this.mergedAttrs = mergedAttrs;
  54259. this.localNames = localNames;
  54260. this.initialInputs = initialInputs;
  54261. this.inputs = inputs;
  54262. this.outputs = outputs;
  54263. this.tViews = tViews;
  54264. this.next = next;
  54265. this.projectionNext = projectionNext;
  54266. this.child = child;
  54267. this.parent = parent;
  54268. this.projection = projection;
  54269. this.styles = styles;
  54270. this.stylesWithoutHost = stylesWithoutHost;
  54271. this.residualStyles = residualStyles;
  54272. this.classes = classes;
  54273. this.classesWithoutHost = classesWithoutHost;
  54274. this.residualClasses = residualClasses;
  54275. this.classBindings = classBindings;
  54276. this.styleBindings = styleBindings;
  54277. }
  54278. /**
  54279. * Return a human debug version of the set of `NodeInjector`s which will be consulted when
  54280. * resolving tokens from this `TNode`.
  54281. *
  54282. * When debugging applications, it is often difficult to determine which `NodeInjector`s will be
  54283. * consulted. This method shows a list of `DebugNode`s representing the `TNode`s which will be
  54284. * consulted in order when resolving a token starting at this `TNode`.
  54285. *
  54286. * The original data is stored in `LView` and `TView` with a lot of offset indexes, and so it is
  54287. * difficult to reason about.
  54288. *
  54289. * @param lView The `LView` instance for this `TNode`.
  54290. */
  54291. debugNodeInjectorPath(lView) {
  54292. const path = [];
  54293. let injectorIndex = getInjectorIndex(this, lView);
  54294. ngDevMode && assertNodeInjector(lView, injectorIndex);
  54295. while (injectorIndex !== -1) {
  54296. const tNode = lView[TVIEW].data[injectorIndex + 8 /* TNODE */];
  54297. path.push(buildDebugNode(tNode, lView));
  54298. const parentLocation = lView[injectorIndex + 8 /* PARENT */];
  54299. if (parentLocation === NO_PARENT_INJECTOR) {
  54300. injectorIndex = -1;
  54301. }
  54302. else {
  54303. injectorIndex = getParentInjectorIndex(parentLocation);
  54304. lView = getParentInjectorView(parentLocation, lView);
  54305. }
  54306. }
  54307. return path;
  54308. }
  54309. get type_() {
  54310. return toTNodeTypeAsString(this.type) || `TNodeType.?${this.type}?`;
  54311. }
  54312. get flags_() {
  54313. const flags = [];
  54314. if (this.flags & 16 /* hasClassInput */)
  54315. flags.push('TNodeFlags.hasClassInput');
  54316. if (this.flags & 8 /* hasContentQuery */)
  54317. flags.push('TNodeFlags.hasContentQuery');
  54318. if (this.flags & 32 /* hasStyleInput */)
  54319. flags.push('TNodeFlags.hasStyleInput');
  54320. if (this.flags & 128 /* hasHostBindings */)
  54321. flags.push('TNodeFlags.hasHostBindings');
  54322. if (this.flags & 2 /* isComponentHost */)
  54323. flags.push('TNodeFlags.isComponentHost');
  54324. if (this.flags & 1 /* isDirectiveHost */)
  54325. flags.push('TNodeFlags.isDirectiveHost');
  54326. if (this.flags & 64 /* isDetached */)
  54327. flags.push('TNodeFlags.isDetached');
  54328. if (this.flags & 4 /* isProjected */)
  54329. flags.push('TNodeFlags.isProjected');
  54330. return flags.join('|');
  54331. }
  54332. get template_() {
  54333. if (this.type & 1 /* Text */)
  54334. return this.value;
  54335. const buf = [];
  54336. const tagName = typeof this.value === 'string' && this.value || this.type_;
  54337. buf.push('<', tagName);
  54338. if (this.flags) {
  54339. buf.push(' ', this.flags_);
  54340. }
  54341. if (this.attrs) {
  54342. for (let i = 0; i < this.attrs.length;) {
  54343. const attrName = this.attrs[i++];
  54344. if (typeof attrName == 'number') {
  54345. break;
  54346. }
  54347. const attrValue = this.attrs[i++];
  54348. buf.push(' ', attrName, '="', attrValue, '"');
  54349. }
  54350. }
  54351. buf.push('>');
  54352. processTNodeChildren(this.child, buf);
  54353. buf.push('</', tagName, '>');
  54354. return buf.join('');
  54355. }
  54356. get styleBindings_() {
  54357. return toDebugStyleBinding(this, false);
  54358. }
  54359. get classBindings_() {
  54360. return toDebugStyleBinding(this, true);
  54361. }
  54362. get providerIndexStart_() {
  54363. return this.providerIndexes & 1048575 /* ProvidersStartIndexMask */;
  54364. }
  54365. get providerIndexEnd_() {
  54366. return this.providerIndexStart_ +
  54367. (this.providerIndexes >>> 20 /* CptViewProvidersCountShift */);
  54368. }
  54369. }
  54370. const TNodeDebug = TNode;
  54371. function toDebugStyleBinding(tNode, isClassBased) {
  54372. const tData = tNode.tView_.data;
  54373. const bindings = [];
  54374. const range = isClassBased ? tNode.classBindings : tNode.styleBindings;
  54375. const prev = getTStylingRangePrev(range);
  54376. const next = getTStylingRangeNext(range);
  54377. let isTemplate = next !== 0;
  54378. let cursor = isTemplate ? next : prev;
  54379. while (cursor !== 0) {
  54380. const itemKey = tData[cursor];
  54381. const itemRange = tData[cursor + 1];
  54382. bindings.unshift({
  54383. key: itemKey,
  54384. index: cursor,
  54385. isTemplate: isTemplate,
  54386. prevDuplicate: getTStylingRangePrevDuplicate(itemRange),
  54387. nextDuplicate: getTStylingRangeNextDuplicate(itemRange),
  54388. nextIndex: getTStylingRangeNext(itemRange),
  54389. prevIndex: getTStylingRangePrev(itemRange),
  54390. });
  54391. if (cursor === prev)
  54392. isTemplate = false;
  54393. cursor = getTStylingRangePrev(itemRange);
  54394. }
  54395. bindings.push((isClassBased ? tNode.residualClasses : tNode.residualStyles) || null);
  54396. return bindings;
  54397. }
  54398. function processTNodeChildren(tNode, buf) {
  54399. while (tNode) {
  54400. buf.push(tNode.template_);
  54401. tNode = tNode.next;
  54402. }
  54403. }
  54404. const TViewData = NG_DEV_MODE && createNamedArrayType('TViewData') || null;
  54405. let TVIEWDATA_EMPTY; // can't initialize here or it will not be tree shaken, because
  54406. // `LView` constructor could have side-effects.
  54407. /**
  54408. * This function clones a blueprint and creates TData.
  54409. *
  54410. * Simple slice will keep the same type, and we need it to be TData
  54411. */
  54412. function cloneToTViewData(list) {
  54413. if (TVIEWDATA_EMPTY === undefined)
  54414. TVIEWDATA_EMPTY = new TViewData();
  54415. return TVIEWDATA_EMPTY.concat(list);
  54416. }
  54417. const LViewBlueprint = NG_DEV_MODE && createNamedArrayType('LViewBlueprint') || null;
  54418. const MatchesArray = NG_DEV_MODE && createNamedArrayType('MatchesArray') || null;
  54419. const TViewComponents = NG_DEV_MODE && createNamedArrayType('TViewComponents') || null;
  54420. const TNodeLocalNames = NG_DEV_MODE && createNamedArrayType('TNodeLocalNames') || null;
  54421. const TNodeInitialInputs = NG_DEV_MODE && createNamedArrayType('TNodeInitialInputs') || null;
  54422. const TNodeInitialData = NG_DEV_MODE && createNamedArrayType('TNodeInitialData') || null;
  54423. const LCleanup = NG_DEV_MODE && createNamedArrayType('LCleanup') || null;
  54424. const TCleanup = NG_DEV_MODE && createNamedArrayType('TCleanup') || null;
  54425. function attachLViewDebug(lView) {
  54426. attachDebugObject(lView, new LViewDebug(lView));
  54427. }
  54428. function attachLContainerDebug(lContainer) {
  54429. attachDebugObject(lContainer, new LContainerDebug(lContainer));
  54430. }
  54431. function toDebug(obj) {
  54432. if (obj) {
  54433. const debug = obj.debug;
  54434. assertDefined(debug, 'Object does not have a debug representation.');
  54435. return debug;
  54436. }
  54437. else {
  54438. return obj;
  54439. }
  54440. }
  54441. /**
  54442. * Use this method to unwrap a native element in `LView` and convert it into HTML for easier
  54443. * reading.
  54444. *
  54445. * @param value possibly wrapped native DOM node.
  54446. * @param includeChildren If `true` then the serialized HTML form will include child elements
  54447. * (same
  54448. * as `outerHTML`). If `false` then the serialized HTML form will only contain the element
  54449. * itself
  54450. * (will not serialize child elements).
  54451. */
  54452. function toHtml(value, includeChildren = false) {
  54453. const node = unwrapRNode(value);
  54454. if (node) {
  54455. switch (node.nodeType) {
  54456. case Node.TEXT_NODE:
  54457. return node.textContent;
  54458. case Node.COMMENT_NODE:
  54459. return `<!--${node.textContent}-->`;
  54460. case Node.ELEMENT_NODE:
  54461. const outerHTML = node.outerHTML;
  54462. if (includeChildren) {
  54463. return outerHTML;
  54464. }
  54465. else {
  54466. const innerHTML = '>' + node.innerHTML + '<';
  54467. return (outerHTML.split(innerHTML)[0]) + '>';
  54468. }
  54469. }
  54470. }
  54471. return null;
  54472. }
  54473. class LViewDebug {
  54474. constructor(_raw_lView) {
  54475. this._raw_lView = _raw_lView;
  54476. }
  54477. /**
  54478. * Flags associated with the `LView` unpacked into a more readable state.
  54479. */
  54480. get flags() {
  54481. const flags = this._raw_lView[FLAGS];
  54482. return {
  54483. __raw__flags__: flags,
  54484. initPhaseState: flags & 3 /* InitPhaseStateMask */,
  54485. creationMode: !!(flags & 4 /* CreationMode */),
  54486. firstViewPass: !!(flags & 8 /* FirstLViewPass */),
  54487. checkAlways: !!(flags & 16 /* CheckAlways */),
  54488. dirty: !!(flags & 64 /* Dirty */),
  54489. attached: !!(flags & 128 /* Attached */),
  54490. destroyed: !!(flags & 256 /* Destroyed */),
  54491. isRoot: !!(flags & 512 /* IsRoot */),
  54492. indexWithinInitPhase: flags >> 11 /* IndexWithinInitPhaseShift */,
  54493. };
  54494. }
  54495. get parent() {
  54496. return toDebug(this._raw_lView[PARENT]);
  54497. }
  54498. get hostHTML() {
  54499. return toHtml(this._raw_lView[HOST], true);
  54500. }
  54501. get html() {
  54502. return (this.nodes || []).map(mapToHTML).join('');
  54503. }
  54504. get context() {
  54505. return this._raw_lView[CONTEXT];
  54506. }
  54507. /**
  54508. * The tree of nodes associated with the current `LView`. The nodes have been normalized into
  54509. * a tree structure with relevant details pulled out for readability.
  54510. */
  54511. get nodes() {
  54512. const lView = this._raw_lView;
  54513. const tNode = lView[TVIEW].firstChild;
  54514. return toDebugNodes(tNode, lView);
  54515. }
  54516. get template() {
  54517. return this.tView.template_;
  54518. }
  54519. get tView() {
  54520. return this._raw_lView[TVIEW];
  54521. }
  54522. get cleanup() {
  54523. return this._raw_lView[CLEANUP];
  54524. }
  54525. get injector() {
  54526. return this._raw_lView[INJECTOR];
  54527. }
  54528. get rendererFactory() {
  54529. return this._raw_lView[RENDERER_FACTORY];
  54530. }
  54531. get renderer() {
  54532. return this._raw_lView[RENDERER];
  54533. }
  54534. get sanitizer() {
  54535. return this._raw_lView[SANITIZER];
  54536. }
  54537. get childHead() {
  54538. return toDebug(this._raw_lView[CHILD_HEAD]);
  54539. }
  54540. get next() {
  54541. return toDebug(this._raw_lView[NEXT]);
  54542. }
  54543. get childTail() {
  54544. return toDebug(this._raw_lView[CHILD_TAIL]);
  54545. }
  54546. get declarationView() {
  54547. return toDebug(this._raw_lView[DECLARATION_VIEW]);
  54548. }
  54549. get queries() {
  54550. return this._raw_lView[QUERIES];
  54551. }
  54552. get tHost() {
  54553. return this._raw_lView[T_HOST];
  54554. }
  54555. get decls() {
  54556. return toLViewRange(this.tView, this._raw_lView, HEADER_OFFSET, this.tView.bindingStartIndex);
  54557. }
  54558. get vars() {
  54559. return toLViewRange(this.tView, this._raw_lView, this.tView.bindingStartIndex, this.tView.expandoStartIndex);
  54560. }
  54561. get expando() {
  54562. return toLViewRange(this.tView, this._raw_lView, this.tView.expandoStartIndex, this._raw_lView.length);
  54563. }
  54564. /**
  54565. * Normalized view of child views (and containers) attached at this location.
  54566. */
  54567. get childViews() {
  54568. const childViews = [];
  54569. let child = this.childHead;
  54570. while (child) {
  54571. childViews.push(child);
  54572. child = child.next;
  54573. }
  54574. return childViews;
  54575. }
  54576. }
  54577. function mapToHTML(node) {
  54578. if (node.type === 'ElementContainer') {
  54579. return (node.children || []).map(mapToHTML).join('');
  54580. }
  54581. else if (node.type === 'IcuContainer') {
  54582. throw new Error('Not implemented');
  54583. }
  54584. else {
  54585. return toHtml(node.native, true) || '';
  54586. }
  54587. }
  54588. function toLViewRange(tView, lView, start, end) {
  54589. let content = [];
  54590. for (let index = start; index < end; index++) {
  54591. content.push({ index: index, t: tView.data[index], l: lView[index] });
  54592. }
  54593. return { start: start, end: end, length: end - start, content: content };
  54594. }
  54595. /**
  54596. * Turns a flat list of nodes into a tree by walking the associated `TNode` tree.
  54597. *
  54598. * @param tNode
  54599. * @param lView
  54600. */
  54601. function toDebugNodes(tNode, lView) {
  54602. if (tNode) {
  54603. const debugNodes = [];
  54604. let tNodeCursor = tNode;
  54605. while (tNodeCursor) {
  54606. debugNodes.push(buildDebugNode(tNodeCursor, lView));
  54607. tNodeCursor = tNodeCursor.next;
  54608. }
  54609. return debugNodes;
  54610. }
  54611. else {
  54612. return [];
  54613. }
  54614. }
  54615. function buildDebugNode(tNode, lView) {
  54616. const rawValue = lView[tNode.index];
  54617. const native = unwrapRNode(rawValue);
  54618. const factories = [];
  54619. const instances = [];
  54620. const tView = lView[TVIEW];
  54621. for (let i = tNode.directiveStart; i < tNode.directiveEnd; i++) {
  54622. const def = tView.data[i];
  54623. factories.push(def.type);
  54624. instances.push(lView[i]);
  54625. }
  54626. return {
  54627. html: toHtml(native),
  54628. type: toTNodeTypeAsString(tNode.type),
  54629. native: native,
  54630. children: toDebugNodes(tNode.child, lView),
  54631. factories,
  54632. instances,
  54633. injector: buildNodeInjectorDebug(tNode, tView, lView)
  54634. };
  54635. }
  54636. function buildNodeInjectorDebug(tNode, tView, lView) {
  54637. const viewProviders = [];
  54638. for (let i = tNode.providerIndexStart_; i < tNode.providerIndexEnd_; i++) {
  54639. viewProviders.push(tView.data[i]);
  54640. }
  54641. const providers = [];
  54642. for (let i = tNode.providerIndexEnd_; i < tNode.directiveEnd; i++) {
  54643. providers.push(tView.data[i]);
  54644. }
  54645. const nodeInjectorDebug = {
  54646. bloom: toBloom(lView, tNode.injectorIndex),
  54647. cumulativeBloom: toBloom(tView.data, tNode.injectorIndex),
  54648. providers,
  54649. viewProviders,
  54650. parentInjectorIndex: lView[tNode.providerIndexStart_ - 1],
  54651. };
  54652. return nodeInjectorDebug;
  54653. }
  54654. /**
  54655. * Convert a number at `idx` location in `array` into binary representation.
  54656. *
  54657. * @param array
  54658. * @param idx
  54659. */
  54660. function binary(array, idx) {
  54661. const value = array[idx];
  54662. // If not a number we print 8 `?` to retain alignment but let user know that it was called on
  54663. // wrong type.
  54664. if (typeof value !== 'number')
  54665. return '????????';
  54666. // We prefix 0s so that we have constant length number
  54667. const text = '00000000' + value.toString(2);
  54668. return text.substring(text.length - 8);
  54669. }
  54670. /**
  54671. * Convert a bloom filter at location `idx` in `array` into binary representation.
  54672. *
  54673. * @param array
  54674. * @param idx
  54675. */
  54676. function toBloom(array, idx) {
  54677. return `${binary(array, idx + 7)}_${binary(array, idx + 6)}_${binary(array, idx + 5)}_${binary(array, idx + 4)}_${binary(array, idx + 3)}_${binary(array, idx + 2)}_${binary(array, idx + 1)}_${binary(array, idx + 0)}`;
  54678. }
  54679. class LContainerDebug {
  54680. constructor(_raw_lContainer) {
  54681. this._raw_lContainer = _raw_lContainer;
  54682. }
  54683. get hasTransplantedViews() {
  54684. return this._raw_lContainer[HAS_TRANSPLANTED_VIEWS];
  54685. }
  54686. get views() {
  54687. return this._raw_lContainer.slice(CONTAINER_HEADER_OFFSET)
  54688. .map(toDebug);
  54689. }
  54690. get parent() {
  54691. return toDebug(this._raw_lContainer[PARENT]);
  54692. }
  54693. get movedViews() {
  54694. return this._raw_lContainer[MOVED_VIEWS];
  54695. }
  54696. get host() {
  54697. return this._raw_lContainer[HOST];
  54698. }
  54699. get native() {
  54700. return this._raw_lContainer[NATIVE];
  54701. }
  54702. get next() {
  54703. return toDebug(this._raw_lContainer[NEXT]);
  54704. }
  54705. }
  54706. const ɵ0$5 = () => Promise.resolve(null);
  54707. /**
  54708. * A permanent marker promise which signifies that the current CD tree is
  54709. * clean.
  54710. */
  54711. const _CLEAN_PROMISE = (ɵ0$5)();
  54712. /**
  54713. * Invoke `HostBindingsFunction`s for view.
  54714. *
  54715. * This methods executes `TView.hostBindingOpCodes`. It is used to execute the
  54716. * `HostBindingsFunction`s associated with the current `LView`.
  54717. *
  54718. * @param tView Current `TView`.
  54719. * @param lView Current `LView`.
  54720. */
  54721. function processHostBindingOpCodes(tView, lView) {
  54722. const hostBindingOpCodes = tView.hostBindingOpCodes;
  54723. if (hostBindingOpCodes === null)
  54724. return;
  54725. try {
  54726. for (let i = 0; i < hostBindingOpCodes.length; i++) {
  54727. const opCode = hostBindingOpCodes[i];
  54728. if (opCode < 0) {
  54729. // Negative numbers are element indexes.
  54730. setSelectedIndex(~opCode);
  54731. }
  54732. else {
  54733. // Positive numbers are NumberTuple which store bindingRootIndex and directiveIndex.
  54734. const directiveIdx = opCode;
  54735. const bindingRootIndx = hostBindingOpCodes[++i];
  54736. const hostBindingFn = hostBindingOpCodes[++i];
  54737. setBindingRootForHostBindings(bindingRootIndx, directiveIdx);
  54738. const context = lView[directiveIdx];
  54739. hostBindingFn(2 /* Update */, context);
  54740. }
  54741. }
  54742. }
  54743. finally {
  54744. setSelectedIndex(-1);
  54745. }
  54746. }
  54747. /** Refreshes all content queries declared by directives in a given view */
  54748. function refreshContentQueries(tView, lView) {
  54749. const contentQueries = tView.contentQueries;
  54750. if (contentQueries !== null) {
  54751. for (let i = 0; i < contentQueries.length; i += 2) {
  54752. const queryStartIdx = contentQueries[i];
  54753. const directiveDefIdx = contentQueries[i + 1];
  54754. if (directiveDefIdx !== -1) {
  54755. const directiveDef = tView.data[directiveDefIdx];
  54756. ngDevMode && assertDefined(directiveDef, 'DirectiveDef not found.');
  54757. ngDevMode &&
  54758. assertDefined(directiveDef.contentQueries, 'contentQueries function should be defined');
  54759. setCurrentQueryIndex(queryStartIdx);
  54760. directiveDef.contentQueries(2 /* Update */, lView[directiveDefIdx], directiveDefIdx);
  54761. }
  54762. }
  54763. }
  54764. }
  54765. /** Refreshes child components in the current view (update mode). */
  54766. function refreshChildComponents(hostLView, components) {
  54767. for (let i = 0; i < components.length; i++) {
  54768. refreshComponent(hostLView, components[i]);
  54769. }
  54770. }
  54771. /** Renders child components in the current view (creation mode). */
  54772. function renderChildComponents(hostLView, components) {
  54773. for (let i = 0; i < components.length; i++) {
  54774. renderComponent(hostLView, components[i]);
  54775. }
  54776. }
  54777. function createLView(parentLView, tView, context, flags, host, tHostNode, rendererFactory, renderer, sanitizer, injector) {
  54778. const lView = ngDevMode ? cloneToLViewFromTViewBlueprint(tView) : tView.blueprint.slice();
  54779. lView[HOST] = host;
  54780. lView[FLAGS] = flags | 4 /* CreationMode */ | 128 /* Attached */ | 8 /* FirstLViewPass */;
  54781. resetPreOrderHookFlags(lView);
  54782. ngDevMode && tView.declTNode && parentLView && assertTNodeForLView(tView.declTNode, parentLView);
  54783. lView[PARENT] = lView[DECLARATION_VIEW] = parentLView;
  54784. lView[CONTEXT] = context;
  54785. lView[RENDERER_FACTORY] = (rendererFactory || parentLView && parentLView[RENDERER_FACTORY]);
  54786. ngDevMode && assertDefined(lView[RENDERER_FACTORY], 'RendererFactory is required');
  54787. lView[RENDERER] = (renderer || parentLView && parentLView[RENDERER]);
  54788. ngDevMode && assertDefined(lView[RENDERER], 'Renderer is required');
  54789. lView[SANITIZER] = sanitizer || parentLView && parentLView[SANITIZER] || null;
  54790. lView[INJECTOR] = injector || parentLView && parentLView[INJECTOR] || null;
  54791. lView[T_HOST] = tHostNode;
  54792. ngDevMode &&
  54793. assertEqual(tView.type == 2 /* Embedded */ ? parentLView !== null : true, true, 'Embedded views must have parentLView');
  54794. lView[DECLARATION_COMPONENT_VIEW] =
  54795. tView.type == 2 /* Embedded */ ? parentLView[DECLARATION_COMPONENT_VIEW] : lView;
  54796. ngDevMode && attachLViewDebug(lView);
  54797. return lView;
  54798. }
  54799. function getOrCreateTNode(tView, index, type, name, attrs) {
  54800. ngDevMode && index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in
  54801. // `view_engine_compatibility` for additional context.
  54802. assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\'t be in the LView header.');
  54803. // Keep this function short, so that the VM will inline it.
  54804. ngDevMode && assertPureTNodeType(type);
  54805. let tNode = tView.data[index];
  54806. if (tNode === null) {
  54807. tNode = createTNodeAtIndex(tView, index, type, name, attrs);
  54808. if (isInI18nBlock()) {
  54809. // If we are in i18n block then all elements should be pre declared through `Placeholder`
  54810. // See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.
  54811. // If the `TNode` was not pre-declared than it means it was not mentioned which means it was
  54812. // removed, so we mark it as detached.
  54813. tNode.flags |= 64 /* isDetached */;
  54814. }
  54815. }
  54816. else if (tNode.type & 64 /* Placeholder */) {
  54817. tNode.type = type;
  54818. tNode.value = name;
  54819. tNode.attrs = attrs;
  54820. const parent = getCurrentParentTNode();
  54821. tNode.injectorIndex = parent === null ? -1 : parent.injectorIndex;
  54822. ngDevMode && assertTNodeForTView(tNode, tView);
  54823. ngDevMode && assertEqual(index, tNode.index, 'Expecting same index');
  54824. }
  54825. setCurrentTNode(tNode, true);
  54826. return tNode;
  54827. }
  54828. function createTNodeAtIndex(tView, index, type, name, attrs) {
  54829. const currentTNode = getCurrentTNodePlaceholderOk();
  54830. const isParent = isCurrentTNodeParent();
  54831. const parent = isParent ? currentTNode : currentTNode && currentTNode.parent;
  54832. // Parents cannot cross component boundaries because components will be used in multiple places.
  54833. const tNode = tView.data[index] =
  54834. createTNode(tView, parent, type, index, name, attrs);
  54835. // Assign a pointer to the first child node of a given view. The first node is not always the one
  54836. // at index 0, in case of i18n, index 0 can be the instruction `i18nStart` and the first node has
  54837. // the index 1 or more, so we can't just check node index.
  54838. if (tView.firstChild === null) {
  54839. tView.firstChild = tNode;
  54840. }
  54841. if (currentTNode !== null) {
  54842. if (isParent) {
  54843. // FIXME(misko): This logic looks unnecessarily complicated. Could we simplify?
  54844. if (currentTNode.child == null && tNode.parent !== null) {
  54845. // We are in the same view, which means we are adding content node to the parent view.
  54846. currentTNode.child = tNode;
  54847. }
  54848. }
  54849. else {
  54850. if (currentTNode.next === null) {
  54851. // In the case of i18n the `currentTNode` may already be linked, in which case we don't want
  54852. // to break the links which i18n created.
  54853. currentTNode.next = tNode;
  54854. }
  54855. }
  54856. }
  54857. return tNode;
  54858. }
  54859. /**
  54860. * When elements are created dynamically after a view blueprint is created (e.g. through
  54861. * i18nApply()), we need to adjust the blueprint for future
  54862. * template passes.
  54863. *
  54864. * @param tView `TView` associated with `LView`
  54865. * @param lView The `LView` containing the blueprint to adjust
  54866. * @param numSlotsToAlloc The number of slots to alloc in the LView, should be >0
  54867. * @param initialValue Initial value to store in blueprint
  54868. */
  54869. function allocExpando(tView, lView, numSlotsToAlloc, initialValue) {
  54870. if (numSlotsToAlloc === 0)
  54871. return -1;
  54872. if (ngDevMode) {
  54873. assertFirstCreatePass(tView);
  54874. assertSame(tView, lView[TVIEW], '`LView` must be associated with `TView`!');
  54875. assertEqual(tView.data.length, lView.length, 'Expecting LView to be same size as TView');
  54876. assertEqual(tView.data.length, tView.blueprint.length, 'Expecting Blueprint to be same size as TView');
  54877. assertFirstUpdatePass(tView);
  54878. }
  54879. const allocIdx = lView.length;
  54880. for (let i = 0; i < numSlotsToAlloc; i++) {
  54881. lView.push(initialValue);
  54882. tView.blueprint.push(initialValue);
  54883. tView.data.push(null);
  54884. }
  54885. return allocIdx;
  54886. }
  54887. //////////////////////////
  54888. //// Render
  54889. //////////////////////////
  54890. /**
  54891. * Processes a view in the creation mode. This includes a number of steps in a specific order:
  54892. * - creating view query functions (if any);
  54893. * - executing a template function in the creation mode;
  54894. * - updating static queries (if any);
  54895. * - creating child components defined in a given view.
  54896. */
  54897. function renderView(tView, lView, context) {
  54898. ngDevMode && assertEqual(isCreationMode(lView), true, 'Should be run in creation mode');
  54899. enterView(lView);
  54900. try {
  54901. const viewQuery = tView.viewQuery;
  54902. if (viewQuery !== null) {
  54903. executeViewQueryFn(1 /* Create */, viewQuery, context);
  54904. }
  54905. // Execute a template associated with this view, if it exists. A template function might not be
  54906. // defined for the root component views.
  54907. const templateFn = tView.template;
  54908. if (templateFn !== null) {
  54909. executeTemplate(tView, lView, templateFn, 1 /* Create */, context);
  54910. }
  54911. // This needs to be set before children are processed to support recursive components.
  54912. // This must be set to false immediately after the first creation run because in an
  54913. // ngFor loop, all the views will be created together before update mode runs and turns
  54914. // off firstCreatePass. If we don't set it here, instances will perform directive
  54915. // matching, etc again and again.
  54916. if (tView.firstCreatePass) {
  54917. tView.firstCreatePass = false;
  54918. }
  54919. // We resolve content queries specifically marked as `static` in creation mode. Dynamic
  54920. // content queries are resolved during change detection (i.e. update mode), after embedded
  54921. // views are refreshed (see block above).
  54922. if (tView.staticContentQueries) {
  54923. refreshContentQueries(tView, lView);
  54924. }
  54925. // We must materialize query results before child components are processed
  54926. // in case a child component has projected a container. The LContainer needs
  54927. // to exist so the embedded views are properly attached by the container.
  54928. if (tView.staticViewQueries) {
  54929. executeViewQueryFn(2 /* Update */, tView.viewQuery, context);
  54930. }
  54931. // Render child component views.
  54932. const components = tView.components;
  54933. if (components !== null) {
  54934. renderChildComponents(lView, components);
  54935. }
  54936. }
  54937. catch (error) {
  54938. // If we didn't manage to get past the first template pass due to
  54939. // an error, mark the view as corrupted so we can try to recover.
  54940. if (tView.firstCreatePass) {
  54941. tView.incompleteFirstPass = true;
  54942. }
  54943. throw error;
  54944. }
  54945. finally {
  54946. lView[FLAGS] &= ~4 /* CreationMode */;
  54947. leaveView();
  54948. }
  54949. }
  54950. /**
  54951. * Processes a view in update mode. This includes a number of steps in a specific order:
  54952. * - executing a template function in update mode;
  54953. * - executing hooks;
  54954. * - refreshing queries;
  54955. * - setting host bindings;
  54956. * - refreshing child (embedded and component) views.
  54957. */
  54958. function refreshView(tView, lView, templateFn, context) {
  54959. ngDevMode && assertEqual(isCreationMode(lView), false, 'Should be run in update mode');
  54960. const flags = lView[FLAGS];
  54961. if ((flags & 256 /* Destroyed */) === 256 /* Destroyed */)
  54962. return;
  54963. enterView(lView);
  54964. // Check no changes mode is a dev only mode used to verify that bindings have not changed
  54965. // since they were assigned. We do not want to execute lifecycle hooks in that mode.
  54966. const isInCheckNoChangesPass = isInCheckNoChangesMode();
  54967. try {
  54968. resetPreOrderHookFlags(lView);
  54969. setBindingIndex(tView.bindingStartIndex);
  54970. if (templateFn !== null) {
  54971. executeTemplate(tView, lView, templateFn, 2 /* Update */, context);
  54972. }
  54973. const hooksInitPhaseCompleted = (flags & 3 /* InitPhaseStateMask */) === 3 /* InitPhaseCompleted */;
  54974. // execute pre-order hooks (OnInit, OnChanges, DoCheck)
  54975. // PERF WARNING: do NOT extract this to a separate function without running benchmarks
  54976. if (!isInCheckNoChangesPass) {
  54977. if (hooksInitPhaseCompleted) {
  54978. const preOrderCheckHooks = tView.preOrderCheckHooks;
  54979. if (preOrderCheckHooks !== null) {
  54980. executeCheckHooks(lView, preOrderCheckHooks, null);
  54981. }
  54982. }
  54983. else {
  54984. const preOrderHooks = tView.preOrderHooks;
  54985. if (preOrderHooks !== null) {
  54986. executeInitAndCheckHooks(lView, preOrderHooks, 0 /* OnInitHooksToBeRun */, null);
  54987. }
  54988. incrementInitPhaseFlags(lView, 0 /* OnInitHooksToBeRun */);
  54989. }
  54990. }
  54991. // First mark transplanted views that are declared in this lView as needing a refresh at their
  54992. // insertion points. This is needed to avoid the situation where the template is defined in this
  54993. // `LView` but its declaration appears after the insertion component.
  54994. markTransplantedViewsForRefresh(lView);
  54995. refreshEmbeddedViews(lView);
  54996. // Content query results must be refreshed before content hooks are called.
  54997. if (tView.contentQueries !== null) {
  54998. refreshContentQueries(tView, lView);
  54999. }
  55000. // execute content hooks (AfterContentInit, AfterContentChecked)
  55001. // PERF WARNING: do NOT extract this to a separate function without running benchmarks
  55002. if (!isInCheckNoChangesPass) {
  55003. if (hooksInitPhaseCompleted) {
  55004. const contentCheckHooks = tView.contentCheckHooks;
  55005. if (contentCheckHooks !== null) {
  55006. executeCheckHooks(lView, contentCheckHooks);
  55007. }
  55008. }
  55009. else {
  55010. const contentHooks = tView.contentHooks;
  55011. if (contentHooks !== null) {
  55012. executeInitAndCheckHooks(lView, contentHooks, 1 /* AfterContentInitHooksToBeRun */);
  55013. }
  55014. incrementInitPhaseFlags(lView, 1 /* AfterContentInitHooksToBeRun */);
  55015. }
  55016. }
  55017. processHostBindingOpCodes(tView, lView);
  55018. // Refresh child component views.
  55019. const components = tView.components;
  55020. if (components !== null) {
  55021. refreshChildComponents(lView, components);
  55022. }
  55023. // View queries must execute after refreshing child components because a template in this view
  55024. // could be inserted in a child component. If the view query executes before child component
  55025. // refresh, the template might not yet be inserted.
  55026. const viewQuery = tView.viewQuery;
  55027. if (viewQuery !== null) {
  55028. executeViewQueryFn(2 /* Update */, viewQuery, context);
  55029. }
  55030. // execute view hooks (AfterViewInit, AfterViewChecked)
  55031. // PERF WARNING: do NOT extract this to a separate function without running benchmarks
  55032. if (!isInCheckNoChangesPass) {
  55033. if (hooksInitPhaseCompleted) {
  55034. const viewCheckHooks = tView.viewCheckHooks;
  55035. if (viewCheckHooks !== null) {
  55036. executeCheckHooks(lView, viewCheckHooks);
  55037. }
  55038. }
  55039. else {
  55040. const viewHooks = tView.viewHooks;
  55041. if (viewHooks !== null) {
  55042. executeInitAndCheckHooks(lView, viewHooks, 2 /* AfterViewInitHooksToBeRun */);
  55043. }
  55044. incrementInitPhaseFlags(lView, 2 /* AfterViewInitHooksToBeRun */);
  55045. }
  55046. }
  55047. if (tView.firstUpdatePass === true) {
  55048. // We need to make sure that we only flip the flag on successful `refreshView` only
  55049. // Don't do this in `finally` block.
  55050. // If we did this in `finally` block then an exception could block the execution of styling
  55051. // instructions which in turn would be unable to insert themselves into the styling linked
  55052. // list. The result of this would be that if the exception would not be throw on subsequent CD
  55053. // the styling would be unable to process it data and reflect to the DOM.
  55054. tView.firstUpdatePass = false;
  55055. }
  55056. // Do not reset the dirty state when running in check no changes mode. We don't want components
  55057. // to behave differently depending on whether check no changes is enabled or not. For example:
  55058. // Marking an OnPush component as dirty from within the `ngAfterViewInit` hook in order to
  55059. // refresh a `NgClass` binding should work. If we would reset the dirty state in the check
  55060. // no changes cycle, the component would be not be dirty for the next update pass. This would
  55061. // be different in production mode where the component dirty state is not reset.
  55062. if (!isInCheckNoChangesPass) {
  55063. lView[FLAGS] &= ~(64 /* Dirty */ | 8 /* FirstLViewPass */);
  55064. }
  55065. if (lView[FLAGS] & 1024 /* RefreshTransplantedView */) {
  55066. lView[FLAGS] &= ~1024 /* RefreshTransplantedView */;
  55067. updateTransplantedViewCount(lView[PARENT], -1);
  55068. }
  55069. }
  55070. finally {
  55071. leaveView();
  55072. }
  55073. }
  55074. function renderComponentOrTemplate(tView, lView, templateFn, context) {
  55075. const rendererFactory = lView[RENDERER_FACTORY];
  55076. const normalExecutionPath = !isInCheckNoChangesMode();
  55077. const creationModeIsActive = isCreationMode(lView);
  55078. try {
  55079. if (normalExecutionPath && !creationModeIsActive && rendererFactory.begin) {
  55080. rendererFactory.begin();
  55081. }
  55082. if (creationModeIsActive) {
  55083. renderView(tView, lView, context);
  55084. }
  55085. refreshView(tView, lView, templateFn, context);
  55086. }
  55087. finally {
  55088. if (normalExecutionPath && !creationModeIsActive && rendererFactory.end) {
  55089. rendererFactory.end();
  55090. }
  55091. }
  55092. }
  55093. function executeTemplate(tView, lView, templateFn, rf, context) {
  55094. const prevSelectedIndex = getSelectedIndex();
  55095. try {
  55096. setSelectedIndex(-1);
  55097. if (rf & 2 /* Update */ && lView.length > HEADER_OFFSET) {
  55098. // When we're updating, inherently select 0 so we don't
  55099. // have to generate that instruction for most update blocks.
  55100. selectIndexInternal(tView, lView, HEADER_OFFSET, isInCheckNoChangesMode());
  55101. }
  55102. templateFn(rf, context);
  55103. }
  55104. finally {
  55105. setSelectedIndex(prevSelectedIndex);
  55106. }
  55107. }
  55108. //////////////////////////
  55109. //// Element
  55110. //////////////////////////
  55111. function executeContentQueries(tView, tNode, lView) {
  55112. if (isContentQueryHost(tNode)) {
  55113. const start = tNode.directiveStart;
  55114. const end = tNode.directiveEnd;
  55115. for (let directiveIndex = start; directiveIndex < end; directiveIndex++) {
  55116. const def = tView.data[directiveIndex];
  55117. if (def.contentQueries) {
  55118. def.contentQueries(1 /* Create */, lView[directiveIndex], directiveIndex);
  55119. }
  55120. }
  55121. }
  55122. }
  55123. /**
  55124. * Creates directive instances.
  55125. */
  55126. function createDirectivesInstances(tView, lView, tNode) {
  55127. if (!getBindingsEnabled())
  55128. return;
  55129. instantiateAllDirectives(tView, lView, tNode, getNativeByTNode(tNode, lView));
  55130. if ((tNode.flags & 128 /* hasHostBindings */) === 128 /* hasHostBindings */) {
  55131. invokeDirectivesHostBindings(tView, lView, tNode);
  55132. }
  55133. }
  55134. /**
  55135. * Takes a list of local names and indices and pushes the resolved local variable values
  55136. * to LView in the same order as they are loaded in the template with load().
  55137. */
  55138. function saveResolvedLocalsInData(viewData, tNode, localRefExtractor = getNativeByTNode) {
  55139. const localNames = tNode.localNames;
  55140. if (localNames !== null) {
  55141. let localIndex = tNode.index + 1;
  55142. for (let i = 0; i < localNames.length; i += 2) {
  55143. const index = localNames[i + 1];
  55144. const value = index === -1 ?
  55145. localRefExtractor(tNode, viewData) :
  55146. viewData[index];
  55147. viewData[localIndex++] = value;
  55148. }
  55149. }
  55150. }
  55151. /**
  55152. * Gets TView from a template function or creates a new TView
  55153. * if it doesn't already exist.
  55154. *
  55155. * @param def ComponentDef
  55156. * @returns TView
  55157. */
  55158. function getOrCreateTComponentView(def) {
  55159. const tView = def.tView;
  55160. // Create a TView if there isn't one, or recreate it if the first create pass didn't
  55161. // complete successfully since we can't know for sure whether it's in a usable shape.
  55162. if (tView === null || tView.incompleteFirstPass) {
  55163. // Declaration node here is null since this function is called when we dynamically create a
  55164. // component and hence there is no declaration.
  55165. const declTNode = null;
  55166. return def.tView = createTView(1 /* Component */, declTNode, def.template, def.decls, def.vars, def.directiveDefs, def.pipeDefs, def.viewQuery, def.schemas, def.consts);
  55167. }
  55168. return tView;
  55169. }
  55170. /**
  55171. * Creates a TView instance
  55172. *
  55173. * @param type Type of `TView`.
  55174. * @param declTNode Declaration location of this `TView`.
  55175. * @param templateFn Template function
  55176. * @param decls The number of nodes, local refs, and pipes in this template
  55177. * @param directives Registry of directives for this view
  55178. * @param pipes Registry of pipes for this view
  55179. * @param viewQuery View queries for this view
  55180. * @param schemas Schemas for this view
  55181. * @param consts Constants for this view
  55182. */
  55183. function createTView(type, declTNode, templateFn, decls, vars, directives, pipes, viewQuery, schemas, constsOrFactory) {
  55184. ngDevMode && ngDevMode.tView++;
  55185. const bindingStartIndex = HEADER_OFFSET + decls;
  55186. // This length does not yet contain host bindings from child directives because at this point,
  55187. // we don't know which directives are active on this template. As soon as a directive is matched
  55188. // that has a host binding, we will update the blueprint with that def's hostVars count.
  55189. const initialViewLength = bindingStartIndex + vars;
  55190. const blueprint = createViewBlueprint(bindingStartIndex, initialViewLength);
  55191. const consts = typeof constsOrFactory === 'function' ? constsOrFactory() : constsOrFactory;
  55192. const tView = blueprint[TVIEW] = ngDevMode ?
  55193. new TViewConstructor(type, // type: TViewType,
  55194. blueprint, // blueprint: LView,
  55195. templateFn, // template: ComponentTemplate<{}>|null,
  55196. null, // queries: TQueries|null
  55197. viewQuery, // viewQuery: ViewQueriesFunction<{}>|null,
  55198. declTNode, // declTNode: TNode|null,
  55199. cloneToTViewData(blueprint).fill(null, bindingStartIndex), // data: TData,
  55200. bindingStartIndex, // bindingStartIndex: number,
  55201. initialViewLength, // expandoStartIndex: number,
  55202. null, // hostBindingOpCodes: HostBindingOpCodes,
  55203. true, // firstCreatePass: boolean,
  55204. true, // firstUpdatePass: boolean,
  55205. false, // staticViewQueries: boolean,
  55206. false, // staticContentQueries: boolean,
  55207. null, // preOrderHooks: HookData|null,
  55208. null, // preOrderCheckHooks: HookData|null,
  55209. null, // contentHooks: HookData|null,
  55210. null, // contentCheckHooks: HookData|null,
  55211. null, // viewHooks: HookData|null,
  55212. null, // viewCheckHooks: HookData|null,
  55213. null, // destroyHooks: DestroyHookData|null,
  55214. null, // cleanup: any[]|null,
  55215. null, // contentQueries: number[]|null,
  55216. null, // components: number[]|null,
  55217. typeof directives === 'function' ? //
  55218. directives() : //
  55219. directives, // directiveRegistry: DirectiveDefList|null,
  55220. typeof pipes === 'function' ? pipes() : pipes, // pipeRegistry: PipeDefList|null,
  55221. null, // firstChild: TNode|null,
  55222. schemas, // schemas: SchemaMetadata[]|null,
  55223. consts, // consts: TConstants|null
  55224. false, // incompleteFirstPass: boolean
  55225. decls, // ngDevMode only: decls
  55226. vars) :
  55227. {
  55228. type: type,
  55229. blueprint: blueprint,
  55230. template: templateFn,
  55231. queries: null,
  55232. viewQuery: viewQuery,
  55233. declTNode: declTNode,
  55234. data: blueprint.slice().fill(null, bindingStartIndex),
  55235. bindingStartIndex: bindingStartIndex,
  55236. expandoStartIndex: initialViewLength,
  55237. hostBindingOpCodes: null,
  55238. firstCreatePass: true,
  55239. firstUpdatePass: true,
  55240. staticViewQueries: false,
  55241. staticContentQueries: false,
  55242. preOrderHooks: null,
  55243. preOrderCheckHooks: null,
  55244. contentHooks: null,
  55245. contentCheckHooks: null,
  55246. viewHooks: null,
  55247. viewCheckHooks: null,
  55248. destroyHooks: null,
  55249. cleanup: null,
  55250. contentQueries: null,
  55251. components: null,
  55252. directiveRegistry: typeof directives === 'function' ? directives() : directives,
  55253. pipeRegistry: typeof pipes === 'function' ? pipes() : pipes,
  55254. firstChild: null,
  55255. schemas: schemas,
  55256. consts: consts,
  55257. incompleteFirstPass: false
  55258. };
  55259. if (ngDevMode) {
  55260. // For performance reasons it is important that the tView retains the same shape during runtime.
  55261. // (To make sure that all of the code is monomorphic.) For this reason we seal the object to
  55262. // prevent class transitions.
  55263. Object.seal(tView);
  55264. }
  55265. return tView;
  55266. }
  55267. function createViewBlueprint(bindingStartIndex, initialViewLength) {
  55268. const blueprint = ngDevMode ? new LViewBlueprint() : [];
  55269. for (let i = 0; i < initialViewLength; i++) {
  55270. blueprint.push(i < bindingStartIndex ? null : NO_CHANGE);
  55271. }
  55272. return blueprint;
  55273. }
  55274. function createError(text, token) {
  55275. return new Error(`Renderer: ${text} [${stringifyForError(token)}]`);
  55276. }
  55277. function assertHostNodeExists(rElement, elementOrSelector) {
  55278. if (!rElement) {
  55279. if (typeof elementOrSelector === 'string') {
  55280. throw createError('Host node with selector not found:', elementOrSelector);
  55281. }
  55282. else {
  55283. throw createError('Host node is required:', elementOrSelector);
  55284. }
  55285. }
  55286. }
  55287. /**
  55288. * Locates the host native element, used for bootstrapping existing nodes into rendering pipeline.
  55289. *
  55290. * @param rendererFactory Factory function to create renderer instance.
  55291. * @param elementOrSelector Render element or CSS selector to locate the element.
  55292. * @param encapsulation View Encapsulation defined for component that requests host element.
  55293. */
  55294. function locateHostElement(renderer, elementOrSelector, encapsulation) {
  55295. if (isProceduralRenderer(renderer)) {
  55296. // When using native Shadow DOM, do not clear host element to allow native slot projection
  55297. const preserveContent = encapsulation === ViewEncapsulation.ShadowDom;
  55298. return renderer.selectRootElement(elementOrSelector, preserveContent);
  55299. }
  55300. let rElement = typeof elementOrSelector === 'string' ?
  55301. renderer.querySelector(elementOrSelector) :
  55302. elementOrSelector;
  55303. ngDevMode && assertHostNodeExists(rElement, elementOrSelector);
  55304. // Always clear host element's content when Renderer3 is in use. For procedural renderer case we
  55305. // make it depend on whether ShadowDom encapsulation is used (in which case the content should be
  55306. // preserved to allow native slot projection). ShadowDom encapsulation requires procedural
  55307. // renderer, and procedural renderer case is handled above.
  55308. rElement.textContent = '';
  55309. return rElement;
  55310. }
  55311. /**
  55312. * Saves context for this cleanup function in LView.cleanupInstances.
  55313. *
  55314. * On the first template pass, saves in TView:
  55315. * - Cleanup function
  55316. * - Index of context we just saved in LView.cleanupInstances
  55317. *
  55318. * This function can also be used to store instance specific cleanup fns. In that case the `context`
  55319. * is `null` and the function is store in `LView` (rather than it `TView`).
  55320. */
  55321. function storeCleanupWithContext(tView, lView, context, cleanupFn) {
  55322. const lCleanup = getLCleanup(lView);
  55323. if (context === null) {
  55324. // If context is null that this is instance specific callback. These callbacks can only be
  55325. // inserted after template shared instances. For this reason in ngDevMode we freeze the TView.
  55326. if (ngDevMode) {
  55327. Object.freeze(getTViewCleanup(tView));
  55328. }
  55329. lCleanup.push(cleanupFn);
  55330. }
  55331. else {
  55332. lCleanup.push(context);
  55333. if (tView.firstCreatePass) {
  55334. getTViewCleanup(tView).push(cleanupFn, lCleanup.length - 1);
  55335. }
  55336. }
  55337. }
  55338. function createTNode(tView, tParent, type, index, value, attrs) {
  55339. ngDevMode && index !== 0 && // 0 are bogus nodes and they are OK. See `createContainerRef` in
  55340. // `view_engine_compatibility` for additional context.
  55341. assertGreaterThanOrEqual(index, HEADER_OFFSET, 'TNodes can\'t be in the LView header.');
  55342. ngDevMode && assertNotSame(attrs, undefined, '\'undefined\' is not valid value for \'attrs\'');
  55343. ngDevMode && ngDevMode.tNode++;
  55344. ngDevMode && tParent && assertTNodeForTView(tParent, tView);
  55345. let injectorIndex = tParent ? tParent.injectorIndex : -1;
  55346. const tNode = ngDevMode ?
  55347. new TNodeDebug(tView, // tView_: TView
  55348. type, // type: TNodeType
  55349. index, // index: number
  55350. null, // insertBeforeIndex: null|-1|number|number[]
  55351. injectorIndex, // injectorIndex: number
  55352. -1, // directiveStart: number
  55353. -1, // directiveEnd: number
  55354. -1, // directiveStylingLast: number
  55355. null, // propertyBindings: number[]|null
  55356. 0, // flags: TNodeFlags
  55357. 0, // providerIndexes: TNodeProviderIndexes
  55358. value, // value: string|null
  55359. attrs, // attrs: (string|AttributeMarker|(string|SelectorFlags)[])[]|null
  55360. null, // mergedAttrs
  55361. null, // localNames: (string|number)[]|null
  55362. undefined, // initialInputs: (string[]|null)[]|null|undefined
  55363. null, // inputs: PropertyAliases|null
  55364. null, // outputs: PropertyAliases|null
  55365. null, // tViews: ITView|ITView[]|null
  55366. null, // next: ITNode|null
  55367. null, // projectionNext: ITNode|null
  55368. null, // child: ITNode|null
  55369. tParent, // parent: TElementNode|TContainerNode|null
  55370. null, // projection: number|(ITNode|RNode[])[]|null
  55371. null, // styles: string|null
  55372. null, // stylesWithoutHost: string|null
  55373. undefined, // residualStyles: string|null
  55374. null, // classes: string|null
  55375. null, // classesWithoutHost: string|null
  55376. undefined, // residualClasses: string|null
  55377. 0, // classBindings: TStylingRange;
  55378. 0) :
  55379. {
  55380. type,
  55381. index,
  55382. insertBeforeIndex: null,
  55383. injectorIndex,
  55384. directiveStart: -1,
  55385. directiveEnd: -1,
  55386. directiveStylingLast: -1,
  55387. propertyBindings: null,
  55388. flags: 0,
  55389. providerIndexes: 0,
  55390. value: value,
  55391. attrs: attrs,
  55392. mergedAttrs: null,
  55393. localNames: null,
  55394. initialInputs: undefined,
  55395. inputs: null,
  55396. outputs: null,
  55397. tViews: null,
  55398. next: null,
  55399. projectionNext: null,
  55400. child: null,
  55401. parent: tParent,
  55402. projection: null,
  55403. styles: null,
  55404. stylesWithoutHost: null,
  55405. residualStyles: undefined,
  55406. classes: null,
  55407. classesWithoutHost: null,
  55408. residualClasses: undefined,
  55409. classBindings: 0,
  55410. styleBindings: 0,
  55411. };
  55412. if (ngDevMode) {
  55413. // For performance reasons it is important that the tNode retains the same shape during runtime.
  55414. // (To make sure that all of the code is monomorphic.) For this reason we seal the object to
  55415. // prevent class transitions.
  55416. Object.seal(tNode);
  55417. }
  55418. return tNode;
  55419. }
  55420. function generatePropertyAliases(inputAliasMap, directiveDefIdx, propStore) {
  55421. for (let publicName in inputAliasMap) {
  55422. if (inputAliasMap.hasOwnProperty(publicName)) {
  55423. propStore = propStore === null ? {} : propStore;
  55424. const internalName = inputAliasMap[publicName];
  55425. if (propStore.hasOwnProperty(publicName)) {
  55426. propStore[publicName].push(directiveDefIdx, internalName);
  55427. }
  55428. else {
  55429. (propStore[publicName] = [directiveDefIdx, internalName]);
  55430. }
  55431. }
  55432. }
  55433. return propStore;
  55434. }
  55435. /**
  55436. * Initializes data structures required to work with directive inputs and outputs.
  55437. * Initialization is done for all directives matched on a given TNode.
  55438. */
  55439. function initializeInputAndOutputAliases(tView, tNode) {
  55440. ngDevMode && assertFirstCreatePass(tView);
  55441. const start = tNode.directiveStart;
  55442. const end = tNode.directiveEnd;
  55443. const tViewData = tView.data;
  55444. const tNodeAttrs = tNode.attrs;
  55445. const inputsFromAttrs = ngDevMode ? new TNodeInitialInputs() : [];
  55446. let inputsStore = null;
  55447. let outputsStore = null;
  55448. for (let i = start; i < end; i++) {
  55449. const directiveDef = tViewData[i];
  55450. const directiveInputs = directiveDef.inputs;
  55451. // Do not use unbound attributes as inputs to structural directives, since structural
  55452. // directive inputs can only be set using microsyntax (e.g. `<div *dir="exp">`).
  55453. // TODO(FW-1930): microsyntax expressions may also contain unbound/static attributes, which
  55454. // should be set for inline templates.
  55455. const initialInputs = (tNodeAttrs !== null && !isInlineTemplate(tNode)) ?
  55456. generateInitialInputs(directiveInputs, tNodeAttrs) :
  55457. null;
  55458. inputsFromAttrs.push(initialInputs);
  55459. inputsStore = generatePropertyAliases(directiveInputs, i, inputsStore);
  55460. outputsStore = generatePropertyAliases(directiveDef.outputs, i, outputsStore);
  55461. }
  55462. if (inputsStore !== null) {
  55463. if (inputsStore.hasOwnProperty('class')) {
  55464. tNode.flags |= 16 /* hasClassInput */;
  55465. }
  55466. if (inputsStore.hasOwnProperty('style')) {
  55467. tNode.flags |= 32 /* hasStyleInput */;
  55468. }
  55469. }
  55470. tNode.initialInputs = inputsFromAttrs;
  55471. tNode.inputs = inputsStore;
  55472. tNode.outputs = outputsStore;
  55473. }
  55474. /**
  55475. * Mapping between attributes names that don't correspond to their element property names.
  55476. *
  55477. * Performance note: this function is written as a series of if checks (instead of, say, a property
  55478. * object lookup) for performance reasons - the series of `if` checks seems to be the fastest way of
  55479. * mapping property names. Do NOT change without benchmarking.
  55480. *
  55481. * Note: this mapping has to be kept in sync with the equally named mapping in the template
  55482. * type-checking machinery of ngtsc.
  55483. */
  55484. function mapPropName(name) {
  55485. if (name === 'class')
  55486. return 'className';
  55487. if (name === 'for')
  55488. return 'htmlFor';
  55489. if (name === 'formaction')
  55490. return 'formAction';
  55491. if (name === 'innerHtml')
  55492. return 'innerHTML';
  55493. if (name === 'readonly')
  55494. return 'readOnly';
  55495. if (name === 'tabindex')
  55496. return 'tabIndex';
  55497. return name;
  55498. }
  55499. function elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, nativeOnly) {
  55500. ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
  55501. const element = getNativeByTNode(tNode, lView);
  55502. let inputData = tNode.inputs;
  55503. let dataValue;
  55504. if (!nativeOnly && inputData != null && (dataValue = inputData[propName])) {
  55505. setInputsForProperty(tView, lView, dataValue, propName, value);
  55506. if (isComponentHost(tNode))
  55507. markDirtyIfOnPush(lView, tNode.index);
  55508. if (ngDevMode) {
  55509. setNgReflectProperties(lView, element, tNode.type, dataValue, value);
  55510. }
  55511. }
  55512. else if (tNode.type & 3 /* AnyRNode */) {
  55513. propName = mapPropName(propName);
  55514. if (ngDevMode) {
  55515. validateAgainstEventProperties(propName);
  55516. if (!validateProperty(tView, element, propName, tNode)) {
  55517. // Return here since we only log warnings for unknown properties.
  55518. logUnknownPropertyError(propName, tNode);
  55519. return;
  55520. }
  55521. ngDevMode.rendererSetProperty++;
  55522. }
  55523. // It is assumed that the sanitizer is only added when the compiler determines that the
  55524. // property is risky, so sanitization can be done without further checks.
  55525. value = sanitizer != null ? sanitizer(value, tNode.value || '', propName) : value;
  55526. if (isProceduralRenderer(renderer)) {
  55527. renderer.setProperty(element, propName, value);
  55528. }
  55529. else if (!isAnimationProp(propName)) {
  55530. element.setProperty ? element.setProperty(propName, value) :
  55531. element[propName] = value;
  55532. }
  55533. }
  55534. else if (tNode.type & 12 /* AnyContainer */) {
  55535. // If the node is a container and the property didn't
  55536. // match any of the inputs or schemas we should throw.
  55537. if (ngDevMode && !matchingSchemas(tView, tNode.value)) {
  55538. logUnknownPropertyError(propName, tNode);
  55539. }
  55540. }
  55541. }
  55542. /** If node is an OnPush component, marks its LView dirty. */
  55543. function markDirtyIfOnPush(lView, viewIndex) {
  55544. ngDevMode && assertLView(lView);
  55545. const childComponentLView = getComponentLViewByIndex(viewIndex, lView);
  55546. if (!(childComponentLView[FLAGS] & 16 /* CheckAlways */)) {
  55547. childComponentLView[FLAGS] |= 64 /* Dirty */;
  55548. }
  55549. }
  55550. function setNgReflectProperty(lView, element, type, attrName, value) {
  55551. const renderer = lView[RENDERER];
  55552. attrName = normalizeDebugBindingName(attrName);
  55553. const debugValue = normalizeDebugBindingValue(value);
  55554. if (type & 3 /* AnyRNode */) {
  55555. if (value == null) {
  55556. isProceduralRenderer(renderer) ? renderer.removeAttribute(element, attrName) :
  55557. element.removeAttribute(attrName);
  55558. }
  55559. else {
  55560. isProceduralRenderer(renderer) ?
  55561. renderer.setAttribute(element, attrName, debugValue) :
  55562. element.setAttribute(attrName, debugValue);
  55563. }
  55564. }
  55565. else {
  55566. const textContent = `bindings=${JSON.stringify({ [attrName]: debugValue }, null, 2)}`;
  55567. if (isProceduralRenderer(renderer)) {
  55568. renderer.setValue(element, textContent);
  55569. }
  55570. else {
  55571. element.textContent = textContent;
  55572. }
  55573. }
  55574. }
  55575. function setNgReflectProperties(lView, element, type, dataValue, value) {
  55576. if (type & (3 /* AnyRNode */ | 4 /* Container */)) {
  55577. /**
  55578. * dataValue is an array containing runtime input or output names for the directives:
  55579. * i+0: directive instance index
  55580. * i+1: privateName
  55581. *
  55582. * e.g. [0, 'change', 'change-minified']
  55583. * we want to set the reflected property with the privateName: dataValue[i+1]
  55584. */
  55585. for (let i = 0; i < dataValue.length; i += 2) {
  55586. setNgReflectProperty(lView, element, type, dataValue[i + 1], value);
  55587. }
  55588. }
  55589. }
  55590. function validateProperty(tView, element, propName, tNode) {
  55591. // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
  55592. // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
  55593. // defined as an array (as an empty array in case `schemas` field is not defined) and we should
  55594. // execute the check below.
  55595. if (tView.schemas === null)
  55596. return true;
  55597. // The property is considered valid if the element matches the schema, it exists on the element
  55598. // or it is synthetic, and we are in a browser context (web worker nodes should be skipped).
  55599. if (matchingSchemas(tView, tNode.value) || propName in element || isAnimationProp(propName)) {
  55600. return true;
  55601. }
  55602. // Note: `typeof Node` returns 'function' in most browsers, but on IE it is 'object' so we
  55603. // need to account for both here, while being careful for `typeof null` also returning 'object'.
  55604. return typeof Node === 'undefined' || Node === null || !(element instanceof Node);
  55605. }
  55606. function matchingSchemas(tView, tagName) {
  55607. const schemas = tView.schemas;
  55608. if (schemas !== null) {
  55609. for (let i = 0; i < schemas.length; i++) {
  55610. const schema = schemas[i];
  55611. if (schema === NO_ERRORS_SCHEMA ||
  55612. schema === CUSTOM_ELEMENTS_SCHEMA && tagName && tagName.indexOf('-') > -1) {
  55613. return true;
  55614. }
  55615. }
  55616. }
  55617. return false;
  55618. }
  55619. /**
  55620. * Logs an error that a property is not supported on an element.
  55621. * @param propName Name of the invalid property.
  55622. * @param tNode Node on which we encountered the property.
  55623. */
  55624. function logUnknownPropertyError(propName, tNode) {
  55625. let message = `Can't bind to '${propName}' since it isn't a known property of '${tNode.value}'.`;
  55626. console.error(formatRuntimeError("303" /* UNKNOWN_BINDING */, message));
  55627. }
  55628. /**
  55629. * Instantiate a root component.
  55630. */
  55631. function instantiateRootComponent(tView, lView, def) {
  55632. const rootTNode = getCurrentTNode();
  55633. if (tView.firstCreatePass) {
  55634. if (def.providersResolver)
  55635. def.providersResolver(def);
  55636. const directiveIndex = allocExpando(tView, lView, 1, null);
  55637. ngDevMode &&
  55638. assertEqual(directiveIndex, rootTNode.directiveStart, 'Because this is a root component the allocated expando should match the TNode component.');
  55639. configureViewWithDirective(tView, rootTNode, lView, directiveIndex, def);
  55640. }
  55641. const directive = getNodeInjectable(lView, tView, rootTNode.directiveStart, rootTNode);
  55642. attachPatchData(directive, lView);
  55643. const native = getNativeByTNode(rootTNode, lView);
  55644. if (native) {
  55645. attachPatchData(native, lView);
  55646. }
  55647. return directive;
  55648. }
  55649. /**
  55650. * Resolve the matched directives on a node.
  55651. */
  55652. function resolveDirectives(tView, lView, tNode, localRefs) {
  55653. // Please make sure to have explicit type for `exportsMap`. Inferred type triggers bug in
  55654. // tsickle.
  55655. ngDevMode && assertFirstCreatePass(tView);
  55656. let hasDirectives = false;
  55657. if (getBindingsEnabled()) {
  55658. const directiveDefs = findDirectiveDefMatches(tView, lView, tNode);
  55659. const exportsMap = localRefs === null ? null : { '': -1 };
  55660. if (directiveDefs !== null) {
  55661. hasDirectives = true;
  55662. initTNodeFlags(tNode, tView.data.length, directiveDefs.length);
  55663. // When the same token is provided by several directives on the same node, some rules apply in
  55664. // the viewEngine:
  55665. // - viewProviders have priority over providers
  55666. // - the last directive in NgModule.declarations has priority over the previous one
  55667. // So to match these rules, the order in which providers are added in the arrays is very
  55668. // important.
  55669. for (let i = 0; i < directiveDefs.length; i++) {
  55670. const def = directiveDefs[i];
  55671. if (def.providersResolver)
  55672. def.providersResolver(def);
  55673. }
  55674. let preOrderHooksFound = false;
  55675. let preOrderCheckHooksFound = false;
  55676. let directiveIdx = allocExpando(tView, lView, directiveDefs.length, null);
  55677. ngDevMode &&
  55678. assertSame(directiveIdx, tNode.directiveStart, 'TNode.directiveStart should point to just allocated space');
  55679. for (let i = 0; i < directiveDefs.length; i++) {
  55680. const def = directiveDefs[i];
  55681. // Merge the attrs in the order of matches. This assumes that the first directive is the
  55682. // component itself, so that the component has the least priority.
  55683. tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, def.hostAttrs);
  55684. configureViewWithDirective(tView, tNode, lView, directiveIdx, def);
  55685. saveNameToExportMap(directiveIdx, def, exportsMap);
  55686. if (def.contentQueries !== null)
  55687. tNode.flags |= 8 /* hasContentQuery */;
  55688. if (def.hostBindings !== null || def.hostAttrs !== null || def.hostVars !== 0)
  55689. tNode.flags |= 128 /* hasHostBindings */;
  55690. const lifeCycleHooks = def.type.prototype;
  55691. // Only push a node index into the preOrderHooks array if this is the first
  55692. // pre-order hook found on this node.
  55693. if (!preOrderHooksFound &&
  55694. (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngOnInit || lifeCycleHooks.ngDoCheck)) {
  55695. // We will push the actual hook function into this array later during dir instantiation.
  55696. // We cannot do it now because we must ensure hooks are registered in the same
  55697. // order that directives are created (i.e. injection order).
  55698. (tView.preOrderHooks || (tView.preOrderHooks = [])).push(tNode.index);
  55699. preOrderHooksFound = true;
  55700. }
  55701. if (!preOrderCheckHooksFound && (lifeCycleHooks.ngOnChanges || lifeCycleHooks.ngDoCheck)) {
  55702. (tView.preOrderCheckHooks || (tView.preOrderCheckHooks = [])).push(tNode.index);
  55703. preOrderCheckHooksFound = true;
  55704. }
  55705. directiveIdx++;
  55706. }
  55707. initializeInputAndOutputAliases(tView, tNode);
  55708. }
  55709. if (exportsMap)
  55710. cacheMatchingLocalNames(tNode, localRefs, exportsMap);
  55711. }
  55712. // Merge the template attrs last so that they have the highest priority.
  55713. tNode.mergedAttrs = mergeHostAttrs(tNode.mergedAttrs, tNode.attrs);
  55714. return hasDirectives;
  55715. }
  55716. /**
  55717. * Add `hostBindings` to the `TView.hostBindingOpCodes`.
  55718. *
  55719. * @param tView `TView` to which the `hostBindings` should be added.
  55720. * @param tNode `TNode` the element which contains the directive
  55721. * @param lView `LView` current `LView`
  55722. * @param directiveIdx Directive index in view.
  55723. * @param directiveVarsIdx Where will the directive's vars be stored
  55724. * @param def `ComponentDef`/`DirectiveDef`, which contains the `hostVars`/`hostBindings` to add.
  55725. */
  55726. function registerHostBindingOpCodes(tView, tNode, lView, directiveIdx, directiveVarsIdx, def) {
  55727. ngDevMode && assertFirstCreatePass(tView);
  55728. const hostBindings = def.hostBindings;
  55729. if (hostBindings) {
  55730. let hostBindingOpCodes = tView.hostBindingOpCodes;
  55731. if (hostBindingOpCodes === null) {
  55732. hostBindingOpCodes = tView.hostBindingOpCodes = [];
  55733. }
  55734. const elementIndx = ~tNode.index;
  55735. if (lastSelectedElementIdx(hostBindingOpCodes) != elementIndx) {
  55736. // Conditionally add select element so that we are more efficient in execution.
  55737. // NOTE: this is strictly not necessary and it trades code size for runtime perf.
  55738. // (We could just always add it.)
  55739. hostBindingOpCodes.push(elementIndx);
  55740. }
  55741. hostBindingOpCodes.push(directiveIdx, directiveVarsIdx, hostBindings);
  55742. }
  55743. }
  55744. /**
  55745. * Returns the last selected element index in the `HostBindingOpCodes`
  55746. *
  55747. * For perf reasons we don't need to update the selected element index in `HostBindingOpCodes` only
  55748. * if it changes. This method returns the last index (or '0' if not found.)
  55749. *
  55750. * Selected element index are only the ones which are negative.
  55751. */
  55752. function lastSelectedElementIdx(hostBindingOpCodes) {
  55753. let i = hostBindingOpCodes.length;
  55754. while (i > 0) {
  55755. const value = hostBindingOpCodes[--i];
  55756. if (typeof value === 'number' && value < 0) {
  55757. return value;
  55758. }
  55759. }
  55760. return 0;
  55761. }
  55762. /**
  55763. * Instantiate all the directives that were previously resolved on the current node.
  55764. */
  55765. function instantiateAllDirectives(tView, lView, tNode, native) {
  55766. const start = tNode.directiveStart;
  55767. const end = tNode.directiveEnd;
  55768. if (!tView.firstCreatePass) {
  55769. getOrCreateNodeInjectorForNode(tNode, lView);
  55770. }
  55771. attachPatchData(native, lView);
  55772. const initialInputs = tNode.initialInputs;
  55773. for (let i = start; i < end; i++) {
  55774. const def = tView.data[i];
  55775. const isComponent = isComponentDef(def);
  55776. if (isComponent) {
  55777. ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */);
  55778. addComponentLogic(lView, tNode, def);
  55779. }
  55780. const directive = getNodeInjectable(lView, tView, i, tNode);
  55781. attachPatchData(directive, lView);
  55782. if (initialInputs !== null) {
  55783. setInputsFromAttrs(lView, i - start, directive, def, tNode, initialInputs);
  55784. }
  55785. if (isComponent) {
  55786. const componentView = getComponentLViewByIndex(tNode.index, lView);
  55787. componentView[CONTEXT] = directive;
  55788. }
  55789. }
  55790. }
  55791. function invokeDirectivesHostBindings(tView, lView, tNode) {
  55792. const start = tNode.directiveStart;
  55793. const end = tNode.directiveEnd;
  55794. const firstCreatePass = tView.firstCreatePass;
  55795. const elementIndex = tNode.index;
  55796. const currentDirectiveIndex = getCurrentDirectiveIndex();
  55797. try {
  55798. setSelectedIndex(elementIndex);
  55799. for (let dirIndex = start; dirIndex < end; dirIndex++) {
  55800. const def = tView.data[dirIndex];
  55801. const directive = lView[dirIndex];
  55802. setCurrentDirectiveIndex(dirIndex);
  55803. if (def.hostBindings !== null || def.hostVars !== 0 || def.hostAttrs !== null) {
  55804. invokeHostBindingsInCreationMode(def, directive);
  55805. }
  55806. }
  55807. }
  55808. finally {
  55809. setSelectedIndex(-1);
  55810. setCurrentDirectiveIndex(currentDirectiveIndex);
  55811. }
  55812. }
  55813. /**
  55814. * Invoke the host bindings in creation mode.
  55815. *
  55816. * @param def `DirectiveDef` which may contain the `hostBindings` function.
  55817. * @param directive Instance of directive.
  55818. */
  55819. function invokeHostBindingsInCreationMode(def, directive) {
  55820. if (def.hostBindings !== null) {
  55821. def.hostBindings(1 /* Create */, directive);
  55822. }
  55823. }
  55824. /**
  55825. * Matches the current node against all available selectors.
  55826. * If a component is matched (at most one), it is returned in first position in the array.
  55827. */
  55828. function findDirectiveDefMatches(tView, viewData, tNode) {
  55829. ngDevMode && assertFirstCreatePass(tView);
  55830. ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */);
  55831. const registry = tView.directiveRegistry;
  55832. let matches = null;
  55833. if (registry) {
  55834. for (let i = 0; i < registry.length; i++) {
  55835. const def = registry[i];
  55836. if (isNodeMatchingSelectorList(tNode, def.selectors, /* isProjectionMode */ false)) {
  55837. matches || (matches = ngDevMode ? new MatchesArray() : []);
  55838. diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, viewData), tView, def.type);
  55839. if (isComponentDef(def)) {
  55840. if (ngDevMode) {
  55841. assertTNodeType(tNode, 2 /* Element */, `"${tNode.value}" tags cannot be used as component hosts. ` +
  55842. `Please use a different tag to activate the ${stringify(def.type)} component.`);
  55843. if (tNode.flags & 2 /* isComponentHost */)
  55844. throwMultipleComponentError(tNode);
  55845. }
  55846. markAsComponentHost(tView, tNode);
  55847. // The component is always stored first with directives after.
  55848. matches.unshift(def);
  55849. }
  55850. else {
  55851. matches.push(def);
  55852. }
  55853. }
  55854. }
  55855. }
  55856. return matches;
  55857. }
  55858. /**
  55859. * Marks a given TNode as a component's host. This consists of:
  55860. * - setting appropriate TNode flags;
  55861. * - storing index of component's host element so it will be queued for view refresh during CD.
  55862. */
  55863. function markAsComponentHost(tView, hostTNode) {
  55864. ngDevMode && assertFirstCreatePass(tView);
  55865. hostTNode.flags |= 2 /* isComponentHost */;
  55866. (tView.components || (tView.components = ngDevMode ? new TViewComponents() : []))
  55867. .push(hostTNode.index);
  55868. }
  55869. /** Caches local names and their matching directive indices for query and template lookups. */
  55870. function cacheMatchingLocalNames(tNode, localRefs, exportsMap) {
  55871. if (localRefs) {
  55872. const localNames = tNode.localNames = ngDevMode ? new TNodeLocalNames() : [];
  55873. // Local names must be stored in tNode in the same order that localRefs are defined
  55874. // in the template to ensure the data is loaded in the same slots as their refs
  55875. // in the template (for template queries).
  55876. for (let i = 0; i < localRefs.length; i += 2) {
  55877. const index = exportsMap[localRefs[i + 1]];
  55878. if (index == null)
  55879. throw new RuntimeError("301" /* EXPORT_NOT_FOUND */, `Export of name '${localRefs[i + 1]}' not found!`);
  55880. localNames.push(localRefs[i], index);
  55881. }
  55882. }
  55883. }
  55884. /**
  55885. * Builds up an export map as directives are created, so local refs can be quickly mapped
  55886. * to their directive instances.
  55887. */
  55888. function saveNameToExportMap(directiveIdx, def, exportsMap) {
  55889. if (exportsMap) {
  55890. if (def.exportAs) {
  55891. for (let i = 0; i < def.exportAs.length; i++) {
  55892. exportsMap[def.exportAs[i]] = directiveIdx;
  55893. }
  55894. }
  55895. if (isComponentDef(def))
  55896. exportsMap[''] = directiveIdx;
  55897. }
  55898. }
  55899. /**
  55900. * Initializes the flags on the current node, setting all indices to the initial index,
  55901. * the directive count to 0, and adding the isComponent flag.
  55902. * @param index the initial index
  55903. */
  55904. function initTNodeFlags(tNode, index, numberOfDirectives) {
  55905. ngDevMode &&
  55906. assertNotEqual(numberOfDirectives, tNode.directiveEnd - tNode.directiveStart, 'Reached the max number of directives');
  55907. tNode.flags |= 1 /* isDirectiveHost */;
  55908. // When the first directive is created on a node, save the index
  55909. tNode.directiveStart = index;
  55910. tNode.directiveEnd = index + numberOfDirectives;
  55911. tNode.providerIndexes = index;
  55912. }
  55913. /**
  55914. * Setup directive for instantiation.
  55915. *
  55916. * We need to create a `NodeInjectorFactory` which is then inserted in both the `Blueprint` as well
  55917. * as `LView`. `TView` gets the `DirectiveDef`.
  55918. *
  55919. * @param tView `TView`
  55920. * @param tNode `TNode`
  55921. * @param lView `LView`
  55922. * @param directiveIndex Index where the directive will be stored in the Expando.
  55923. * @param def `DirectiveDef`
  55924. */
  55925. function configureViewWithDirective(tView, tNode, lView, directiveIndex, def) {
  55926. ngDevMode &&
  55927. assertGreaterThanOrEqual(directiveIndex, HEADER_OFFSET, 'Must be in Expando section');
  55928. tView.data[directiveIndex] = def;
  55929. const directiveFactory = def.factory || (def.factory = getFactoryDef(def.type, true));
  55930. const nodeInjectorFactory = new NodeInjectorFactory(directiveFactory, isComponentDef(def), null);
  55931. tView.blueprint[directiveIndex] = nodeInjectorFactory;
  55932. lView[directiveIndex] = nodeInjectorFactory;
  55933. registerHostBindingOpCodes(tView, tNode, lView, directiveIndex, allocExpando(tView, lView, def.hostVars, NO_CHANGE), def);
  55934. }
  55935. function addComponentLogic(lView, hostTNode, def) {
  55936. const native = getNativeByTNode(hostTNode, lView);
  55937. const tView = getOrCreateTComponentView(def);
  55938. // Only component views should be added to the view tree directly. Embedded views are
  55939. // accessed through their containers because they may be removed / re-added later.
  55940. const rendererFactory = lView[RENDERER_FACTORY];
  55941. const componentView = addToViewTree(lView, createLView(lView, tView, null, def.onPush ? 64 /* Dirty */ : 16 /* CheckAlways */, native, hostTNode, rendererFactory, rendererFactory.createRenderer(native, def), null, null));
  55942. // Component view will always be created before any injected LContainers,
  55943. // so this is a regular element, wrap it with the component view
  55944. lView[hostTNode.index] = componentView;
  55945. }
  55946. function elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace) {
  55947. if (ngDevMode) {
  55948. assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
  55949. validateAgainstEventAttributes(name);
  55950. assertTNodeType(tNode, 2 /* Element */, `Attempted to set attribute \`${name}\` on a container node. ` +
  55951. `Host bindings are not valid on ng-container or ng-template.`);
  55952. }
  55953. const element = getNativeByTNode(tNode, lView);
  55954. setElementAttribute(lView[RENDERER], element, namespace, tNode.value, name, value, sanitizer);
  55955. }
  55956. function setElementAttribute(renderer, element, namespace, tagName, name, value, sanitizer) {
  55957. if (value == null) {
  55958. ngDevMode && ngDevMode.rendererRemoveAttribute++;
  55959. isProceduralRenderer(renderer) ? renderer.removeAttribute(element, name, namespace) :
  55960. element.removeAttribute(name);
  55961. }
  55962. else {
  55963. ngDevMode && ngDevMode.rendererSetAttribute++;
  55964. const strValue = sanitizer == null ? renderStringify(value) : sanitizer(value, tagName || '', name);
  55965. if (isProceduralRenderer(renderer)) {
  55966. renderer.setAttribute(element, name, strValue, namespace);
  55967. }
  55968. else {
  55969. namespace ? element.setAttributeNS(namespace, name, strValue) :
  55970. element.setAttribute(name, strValue);
  55971. }
  55972. }
  55973. }
  55974. /**
  55975. * Sets initial input properties on directive instances from attribute data
  55976. *
  55977. * @param lView Current LView that is being processed.
  55978. * @param directiveIndex Index of the directive in directives array
  55979. * @param instance Instance of the directive on which to set the initial inputs
  55980. * @param def The directive def that contains the list of inputs
  55981. * @param tNode The static data for this node
  55982. */
  55983. function setInputsFromAttrs(lView, directiveIndex, instance, def, tNode, initialInputData) {
  55984. const initialInputs = initialInputData[directiveIndex];
  55985. if (initialInputs !== null) {
  55986. const setInput = def.setInput;
  55987. for (let i = 0; i < initialInputs.length;) {
  55988. const publicName = initialInputs[i++];
  55989. const privateName = initialInputs[i++];
  55990. const value = initialInputs[i++];
  55991. if (setInput !== null) {
  55992. def.setInput(instance, value, publicName, privateName);
  55993. }
  55994. else {
  55995. instance[privateName] = value;
  55996. }
  55997. if (ngDevMode) {
  55998. const nativeElement = getNativeByTNode(tNode, lView);
  55999. setNgReflectProperty(lView, nativeElement, tNode.type, privateName, value);
  56000. }
  56001. }
  56002. }
  56003. }
  56004. /**
  56005. * Generates initialInputData for a node and stores it in the template's static storage
  56006. * so subsequent template invocations don't have to recalculate it.
  56007. *
  56008. * initialInputData is an array containing values that need to be set as input properties
  56009. * for directives on this node, but only once on creation. We need this array to support
  56010. * the case where you set an @Input property of a directive using attribute-like syntax.
  56011. * e.g. if you have a `name` @Input, you can set it once like this:
  56012. *
  56013. * <my-component name="Bess"></my-component>
  56014. *
  56015. * @param inputs The list of inputs from the directive def
  56016. * @param attrs The static attrs on this node
  56017. */
  56018. function generateInitialInputs(inputs, attrs) {
  56019. let inputsToStore = null;
  56020. let i = 0;
  56021. while (i < attrs.length) {
  56022. const attrName = attrs[i];
  56023. if (attrName === 0 /* NamespaceURI */) {
  56024. // We do not allow inputs on namespaced attributes.
  56025. i += 4;
  56026. continue;
  56027. }
  56028. else if (attrName === 5 /* ProjectAs */) {
  56029. // Skip over the `ngProjectAs` value.
  56030. i += 2;
  56031. continue;
  56032. }
  56033. // If we hit any other attribute markers, we're done anyway. None of those are valid inputs.
  56034. if (typeof attrName === 'number')
  56035. break;
  56036. if (inputs.hasOwnProperty(attrName)) {
  56037. if (inputsToStore === null)
  56038. inputsToStore = [];
  56039. inputsToStore.push(attrName, inputs[attrName], attrs[i + 1]);
  56040. }
  56041. i += 2;
  56042. }
  56043. return inputsToStore;
  56044. }
  56045. //////////////////////////
  56046. //// ViewContainer & View
  56047. //////////////////////////
  56048. // Not sure why I need to do `any` here but TS complains later.
  56049. const LContainerArray = ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) &&
  56050. createNamedArrayType('LContainer');
  56051. /**
  56052. * Creates a LContainer, either from a container instruction, or for a ViewContainerRef.
  56053. *
  56054. * @param hostNative The host element for the LContainer
  56055. * @param hostTNode The host TNode for the LContainer
  56056. * @param currentView The parent view of the LContainer
  56057. * @param native The native comment element
  56058. * @param isForViewContainerRef Optional a flag indicating the ViewContainerRef case
  56059. * @returns LContainer
  56060. */
  56061. function createLContainer(hostNative, currentView, native, tNode) {
  56062. ngDevMode && assertLView(currentView);
  56063. ngDevMode && !isProceduralRenderer(currentView[RENDERER]) && assertDomNode(native);
  56064. // https://jsperf.com/array-literal-vs-new-array-really
  56065. const lContainer = new (ngDevMode ? LContainerArray : Array)(hostNative, // host native
  56066. true, // Boolean `true` in this position signifies that this is an `LContainer`
  56067. false, // has transplanted views
  56068. currentView, // parent
  56069. null, // next
  56070. 0, // transplanted views to refresh count
  56071. tNode, // t_host
  56072. native, // native,
  56073. null, // view refs
  56074. null);
  56075. ngDevMode &&
  56076. assertEqual(lContainer.length, CONTAINER_HEADER_OFFSET, 'Should allocate correct number of slots for LContainer header.');
  56077. ngDevMode && attachLContainerDebug(lContainer);
  56078. return lContainer;
  56079. }
  56080. /**
  56081. * Goes over embedded views (ones created through ViewContainerRef APIs) and refreshes
  56082. * them by executing an associated template function.
  56083. */
  56084. function refreshEmbeddedViews(lView) {
  56085. for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
  56086. for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
  56087. const embeddedLView = lContainer[i];
  56088. const embeddedTView = embeddedLView[TVIEW];
  56089. ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');
  56090. if (viewAttachedToChangeDetector(embeddedLView)) {
  56091. refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);
  56092. }
  56093. }
  56094. }
  56095. }
  56096. /**
  56097. * Mark transplanted views as needing to be refreshed at their insertion points.
  56098. *
  56099. * @param lView The `LView` that may have transplanted views.
  56100. */
  56101. function markTransplantedViewsForRefresh(lView) {
  56102. for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
  56103. if (!lContainer[HAS_TRANSPLANTED_VIEWS])
  56104. continue;
  56105. const movedViews = lContainer[MOVED_VIEWS];
  56106. ngDevMode && assertDefined(movedViews, 'Transplanted View flags set but missing MOVED_VIEWS');
  56107. for (let i = 0; i < movedViews.length; i++) {
  56108. const movedLView = movedViews[i];
  56109. const insertionLContainer = movedLView[PARENT];
  56110. ngDevMode && assertLContainer(insertionLContainer);
  56111. // We don't want to increment the counter if the moved LView was already marked for
  56112. // refresh.
  56113. if ((movedLView[FLAGS] & 1024 /* RefreshTransplantedView */) === 0) {
  56114. updateTransplantedViewCount(insertionLContainer, 1);
  56115. }
  56116. // Note, it is possible that the `movedViews` is tracking views that are transplanted *and*
  56117. // those that aren't (declaration component === insertion component). In the latter case,
  56118. // it's fine to add the flag, as we will clear it immediately in
  56119. // `refreshEmbeddedViews` for the view currently being refreshed.
  56120. movedLView[FLAGS] |= 1024 /* RefreshTransplantedView */;
  56121. }
  56122. }
  56123. }
  56124. /////////////
  56125. /**
  56126. * Refreshes components by entering the component view and processing its bindings, queries, etc.
  56127. *
  56128. * @param componentHostIdx Element index in LView[] (adjusted for HEADER_OFFSET)
  56129. */
  56130. function refreshComponent(hostLView, componentHostIdx) {
  56131. ngDevMode && assertEqual(isCreationMode(hostLView), false, 'Should be run in update mode');
  56132. const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);
  56133. // Only attached components that are CheckAlways or OnPush and dirty should be refreshed
  56134. if (viewAttachedToChangeDetector(componentView)) {
  56135. const tView = componentView[TVIEW];
  56136. if (componentView[FLAGS] & (16 /* CheckAlways */ | 64 /* Dirty */)) {
  56137. refreshView(tView, componentView, tView.template, componentView[CONTEXT]);
  56138. }
  56139. else if (componentView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {
  56140. // Only attached components that are CheckAlways or OnPush and dirty should be refreshed
  56141. refreshContainsDirtyView(componentView);
  56142. }
  56143. }
  56144. }
  56145. /**
  56146. * Refreshes all transplanted views marked with `LViewFlags.RefreshTransplantedView` that are
  56147. * children or descendants of the given lView.
  56148. *
  56149. * @param lView The lView which contains descendant transplanted views that need to be refreshed.
  56150. */
  56151. function refreshContainsDirtyView(lView) {
  56152. for (let lContainer = getFirstLContainer(lView); lContainer !== null; lContainer = getNextLContainer(lContainer)) {
  56153. for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
  56154. const embeddedLView = lContainer[i];
  56155. if (embeddedLView[FLAGS] & 1024 /* RefreshTransplantedView */) {
  56156. const embeddedTView = embeddedLView[TVIEW];
  56157. ngDevMode && assertDefined(embeddedTView, 'TView must be allocated');
  56158. refreshView(embeddedTView, embeddedLView, embeddedTView.template, embeddedLView[CONTEXT]);
  56159. }
  56160. else if (embeddedLView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {
  56161. refreshContainsDirtyView(embeddedLView);
  56162. }
  56163. }
  56164. }
  56165. const tView = lView[TVIEW];
  56166. // Refresh child component views.
  56167. const components = tView.components;
  56168. if (components !== null) {
  56169. for (let i = 0; i < components.length; i++) {
  56170. const componentView = getComponentLViewByIndex(components[i], lView);
  56171. // Only attached components that are CheckAlways or OnPush and dirty should be refreshed
  56172. if (viewAttachedToChangeDetector(componentView) &&
  56173. componentView[TRANSPLANTED_VIEWS_TO_REFRESH] > 0) {
  56174. refreshContainsDirtyView(componentView);
  56175. }
  56176. }
  56177. }
  56178. }
  56179. function renderComponent(hostLView, componentHostIdx) {
  56180. ngDevMode && assertEqual(isCreationMode(hostLView), true, 'Should be run in creation mode');
  56181. const componentView = getComponentLViewByIndex(componentHostIdx, hostLView);
  56182. const componentTView = componentView[TVIEW];
  56183. syncViewWithBlueprint(componentTView, componentView);
  56184. renderView(componentTView, componentView, componentView[CONTEXT]);
  56185. }
  56186. /**
  56187. * Syncs an LView instance with its blueprint if they have gotten out of sync.
  56188. *
  56189. * Typically, blueprints and their view instances should always be in sync, so the loop here
  56190. * will be skipped. However, consider this case of two components side-by-side:
  56191. *
  56192. * App template:
  56193. * ```
  56194. * <comp></comp>
  56195. * <comp></comp>
  56196. * ```
  56197. *
  56198. * The following will happen:
  56199. * 1. App template begins processing.
  56200. * 2. First <comp> is matched as a component and its LView is created.
  56201. * 3. Second <comp> is matched as a component and its LView is created.
  56202. * 4. App template completes processing, so it's time to check child templates.
  56203. * 5. First <comp> template is checked. It has a directive, so its def is pushed to blueprint.
  56204. * 6. Second <comp> template is checked. Its blueprint has been updated by the first
  56205. * <comp> template, but its LView was created before this update, so it is out of sync.
  56206. *
  56207. * Note that embedded views inside ngFor loops will never be out of sync because these views
  56208. * are processed as soon as they are created.
  56209. *
  56210. * @param tView The `TView` that contains the blueprint for syncing
  56211. * @param lView The view to sync
  56212. */
  56213. function syncViewWithBlueprint(tView, lView) {
  56214. for (let i = lView.length; i < tView.blueprint.length; i++) {
  56215. lView.push(tView.blueprint[i]);
  56216. }
  56217. }
  56218. /**
  56219. * Adds LView or LContainer to the end of the current view tree.
  56220. *
  56221. * This structure will be used to traverse through nested views to remove listeners
  56222. * and call onDestroy callbacks.
  56223. *
  56224. * @param lView The view where LView or LContainer should be added
  56225. * @param adjustedHostIndex Index of the view's host node in LView[], adjusted for header
  56226. * @param lViewOrLContainer The LView or LContainer to add to the view tree
  56227. * @returns The state passed in
  56228. */
  56229. function addToViewTree(lView, lViewOrLContainer) {
  56230. // TODO(benlesh/misko): This implementation is incorrect, because it always adds the LContainer
  56231. // to the end of the queue, which means if the developer retrieves the LContainers from RNodes out
  56232. // of order, the change detection will run out of order, as the act of retrieving the the
  56233. // LContainer from the RNode is what adds it to the queue.
  56234. if (lView[CHILD_HEAD]) {
  56235. lView[CHILD_TAIL][NEXT] = lViewOrLContainer;
  56236. }
  56237. else {
  56238. lView[CHILD_HEAD] = lViewOrLContainer;
  56239. }
  56240. lView[CHILD_TAIL] = lViewOrLContainer;
  56241. return lViewOrLContainer;
  56242. }
  56243. ///////////////////////////////
  56244. //// Change detection
  56245. ///////////////////////////////
  56246. /**
  56247. * Marks current view and all ancestors dirty.
  56248. *
  56249. * Returns the root view because it is found as a byproduct of marking the view tree
  56250. * dirty, and can be used by methods that consume markViewDirty() to easily schedule
  56251. * change detection. Otherwise, such methods would need to traverse up the view tree
  56252. * an additional time to get the root view and schedule a tick on it.
  56253. *
  56254. * @param lView The starting LView to mark dirty
  56255. * @returns the root LView
  56256. */
  56257. function markViewDirty(lView) {
  56258. while (lView) {
  56259. lView[FLAGS] |= 64 /* Dirty */;
  56260. const parent = getLViewParent(lView);
  56261. // Stop traversing up as soon as you find a root view that wasn't attached to any container
  56262. if (isRootView(lView) && !parent) {
  56263. return lView;
  56264. }
  56265. // continue otherwise
  56266. lView = parent;
  56267. }
  56268. return null;
  56269. }
  56270. /**
  56271. * Used to schedule change detection on the whole application.
  56272. *
  56273. * Unlike `tick`, `scheduleTick` coalesces multiple calls into one change detection run.
  56274. * It is usually called indirectly by calling `markDirty` when the view needs to be
  56275. * re-rendered.
  56276. *
  56277. * Typically `scheduleTick` uses `requestAnimationFrame` to coalesce multiple
  56278. * `scheduleTick` requests. The scheduling function can be overridden in
  56279. * `renderComponent`'s `scheduler` option.
  56280. */
  56281. function scheduleTick(rootContext, flags) {
  56282. const nothingScheduled = rootContext.flags === 0 /* Empty */;
  56283. if (nothingScheduled && rootContext.clean == _CLEAN_PROMISE) {
  56284. // https://github.com/angular/angular/issues/39296
  56285. // should only attach the flags when really scheduling a tick
  56286. rootContext.flags |= flags;
  56287. let res;
  56288. rootContext.clean = new Promise((r) => res = r);
  56289. rootContext.scheduler(() => {
  56290. if (rootContext.flags & 1 /* DetectChanges */) {
  56291. rootContext.flags &= ~1 /* DetectChanges */;
  56292. tickRootContext(rootContext);
  56293. }
  56294. if (rootContext.flags & 2 /* FlushPlayers */) {
  56295. rootContext.flags &= ~2 /* FlushPlayers */;
  56296. const playerHandler = rootContext.playerHandler;
  56297. if (playerHandler) {
  56298. playerHandler.flushPlayers();
  56299. }
  56300. }
  56301. rootContext.clean = _CLEAN_PROMISE;
  56302. res(null);
  56303. });
  56304. }
  56305. }
  56306. function tickRootContext(rootContext) {
  56307. for (let i = 0; i < rootContext.components.length; i++) {
  56308. const rootComponent = rootContext.components[i];
  56309. const lView = readPatchedLView(rootComponent);
  56310. const tView = lView[TVIEW];
  56311. renderComponentOrTemplate(tView, lView, tView.template, rootComponent);
  56312. }
  56313. }
  56314. function detectChangesInternal(tView, lView, context) {
  56315. const rendererFactory = lView[RENDERER_FACTORY];
  56316. if (rendererFactory.begin)
  56317. rendererFactory.begin();
  56318. try {
  56319. refreshView(tView, lView, tView.template, context);
  56320. }
  56321. catch (error) {
  56322. handleError(lView, error);
  56323. throw error;
  56324. }
  56325. finally {
  56326. if (rendererFactory.end)
  56327. rendererFactory.end();
  56328. }
  56329. }
  56330. /**
  56331. * Synchronously perform change detection on a root view and its components.
  56332. *
  56333. * @param lView The view which the change detection should be performed on.
  56334. */
  56335. function detectChangesInRootView(lView) {
  56336. tickRootContext(lView[CONTEXT]);
  56337. }
  56338. function checkNoChangesInternal(tView, view, context) {
  56339. setIsInCheckNoChangesMode(true);
  56340. try {
  56341. detectChangesInternal(tView, view, context);
  56342. }
  56343. finally {
  56344. setIsInCheckNoChangesMode(false);
  56345. }
  56346. }
  56347. /**
  56348. * Checks the change detector on a root view and its components, and throws if any changes are
  56349. * detected.
  56350. *
  56351. * This is used in development mode to verify that running change detection doesn't
  56352. * introduce other changes.
  56353. *
  56354. * @param lView The view which the change detection should be checked on.
  56355. */
  56356. function checkNoChangesInRootView(lView) {
  56357. setIsInCheckNoChangesMode(true);
  56358. try {
  56359. detectChangesInRootView(lView);
  56360. }
  56361. finally {
  56362. setIsInCheckNoChangesMode(false);
  56363. }
  56364. }
  56365. function executeViewQueryFn(flags, viewQueryFn, component) {
  56366. ngDevMode && assertDefined(viewQueryFn, 'View queries function to execute must be defined.');
  56367. setCurrentQueryIndex(0);
  56368. viewQueryFn(flags, component);
  56369. }
  56370. ///////////////////////////////
  56371. //// Bindings & interpolations
  56372. ///////////////////////////////
  56373. /**
  56374. * Stores meta-data for a property binding to be used by TestBed's `DebugElement.properties`.
  56375. *
  56376. * In order to support TestBed's `DebugElement.properties` we need to save, for each binding:
  56377. * - a bound property name;
  56378. * - a static parts of interpolated strings;
  56379. *
  56380. * A given property metadata is saved at the binding's index in the `TView.data` (in other words, a
  56381. * property binding metadata will be stored in `TView.data` at the same index as a bound value in
  56382. * `LView`). Metadata are represented as `INTERPOLATION_DELIMITER`-delimited string with the
  56383. * following format:
  56384. * - `propertyName` for bound properties;
  56385. * - `propertyName�prefix�interpolation_static_part1�..interpolation_static_partN�suffix` for
  56386. * interpolated properties.
  56387. *
  56388. * @param tData `TData` where meta-data will be saved;
  56389. * @param tNode `TNode` that is a target of the binding;
  56390. * @param propertyName bound property name;
  56391. * @param bindingIndex binding index in `LView`
  56392. * @param interpolationParts static interpolation parts (for property interpolations)
  56393. */
  56394. function storePropertyBindingMetadata(tData, tNode, propertyName, bindingIndex, ...interpolationParts) {
  56395. // Binding meta-data are stored only the first time a given property instruction is processed.
  56396. // Since we don't have a concept of the "first update pass" we need to check for presence of the
  56397. // binding meta-data to decide if one should be stored (or if was stored already).
  56398. if (tData[bindingIndex] === null) {
  56399. if (tNode.inputs == null || !tNode.inputs[propertyName]) {
  56400. const propBindingIdxs = tNode.propertyBindings || (tNode.propertyBindings = []);
  56401. propBindingIdxs.push(bindingIndex);
  56402. let bindingMetadata = propertyName;
  56403. if (interpolationParts.length > 0) {
  56404. bindingMetadata +=
  56405. INTERPOLATION_DELIMITER + interpolationParts.join(INTERPOLATION_DELIMITER);
  56406. }
  56407. tData[bindingIndex] = bindingMetadata;
  56408. }
  56409. }
  56410. }
  56411. const CLEAN_PROMISE = _CLEAN_PROMISE;
  56412. function getLCleanup(view) {
  56413. // top level variables should not be exported for performance reasons (PERF_NOTES.md)
  56414. return view[CLEANUP] || (view[CLEANUP] = ngDevMode ? new LCleanup() : []);
  56415. }
  56416. function getTViewCleanup(tView) {
  56417. return tView.cleanup || (tView.cleanup = ngDevMode ? new TCleanup() : []);
  56418. }
  56419. /**
  56420. * There are cases where the sub component's renderer needs to be included
  56421. * instead of the current renderer (see the componentSyntheticHost* instructions).
  56422. */
  56423. function loadComponentRenderer(currentDef, tNode, lView) {
  56424. // TODO(FW-2043): the `currentDef` is null when host bindings are invoked while creating root
  56425. // component (see packages/core/src/render3/component.ts). This is not consistent with the process
  56426. // of creating inner components, when current directive index is available in the state. In order
  56427. // to avoid relying on current def being `null` (thus special-casing root component creation), the
  56428. // process of creating root component should be unified with the process of creating inner
  56429. // components.
  56430. if (currentDef === null || isComponentDef(currentDef)) {
  56431. lView = unwrapLView(lView[tNode.index]);
  56432. }
  56433. return lView[RENDERER];
  56434. }
  56435. /** Handles an error thrown in an LView. */
  56436. function handleError(lView, error) {
  56437. const injector = lView[INJECTOR];
  56438. const errorHandler = injector ? injector.get(ErrorHandler, null) : null;
  56439. errorHandler && errorHandler.handleError(error);
  56440. }
  56441. /**
  56442. * Set the inputs of directives at the current node to corresponding value.
  56443. *
  56444. * @param tView The current TView
  56445. * @param lView the `LView` which contains the directives.
  56446. * @param inputs mapping between the public "input" name and privately-known,
  56447. * possibly minified, property names to write to.
  56448. * @param value Value to set.
  56449. */
  56450. function setInputsForProperty(tView, lView, inputs, publicName, value) {
  56451. for (let i = 0; i < inputs.length;) {
  56452. const index = inputs[i++];
  56453. const privateName = inputs[i++];
  56454. const instance = lView[index];
  56455. ngDevMode && assertIndexInRange(lView, index);
  56456. const def = tView.data[index];
  56457. if (def.setInput !== null) {
  56458. def.setInput(instance, value, publicName, privateName);
  56459. }
  56460. else {
  56461. instance[privateName] = value;
  56462. }
  56463. }
  56464. }
  56465. /**
  56466. * Updates a text binding at a given index in a given LView.
  56467. */
  56468. function textBindingInternal(lView, index, value) {
  56469. ngDevMode && assertString(value, 'Value should be a string');
  56470. ngDevMode && assertNotSame(value, NO_CHANGE, 'value should not be NO_CHANGE');
  56471. ngDevMode && assertIndexInRange(lView, index);
  56472. const element = getNativeByIndex(index, lView);
  56473. ngDevMode && assertDefined(element, 'native element should exist');
  56474. updateTextNode(lView[RENDERER], element, value);
  56475. }
  56476. /**
  56477. * @license
  56478. * Copyright Google LLC All Rights Reserved.
  56479. *
  56480. * Use of this source code is governed by an MIT-style license that can be
  56481. * found in the LICENSE file at https://angular.io/license
  56482. */
  56483. /**
  56484. * Compute the static styling (class/style) from `TAttributes`.
  56485. *
  56486. * This function should be called during `firstCreatePass` only.
  56487. *
  56488. * @param tNode The `TNode` into which the styling information should be loaded.
  56489. * @param attrs `TAttributes` containing the styling information.
  56490. * @param writeToHost Where should the resulting static styles be written?
  56491. * - `false` Write to `TNode.stylesWithoutHost` / `TNode.classesWithoutHost`
  56492. * - `true` Write to `TNode.styles` / `TNode.classes`
  56493. */
  56494. function computeStaticStyling(tNode, attrs, writeToHost) {
  56495. ngDevMode &&
  56496. assertFirstCreatePass(getTView(), 'Expecting to be called in first template pass only');
  56497. let styles = writeToHost ? tNode.styles : null;
  56498. let classes = writeToHost ? tNode.classes : null;
  56499. let mode = 0;
  56500. if (attrs !== null) {
  56501. for (let i = 0; i < attrs.length; i++) {
  56502. const value = attrs[i];
  56503. if (typeof value === 'number') {
  56504. mode = value;
  56505. }
  56506. else if (mode == 1 /* Classes */) {
  56507. classes = concatStringsWithSpace(classes, value);
  56508. }
  56509. else if (mode == 2 /* Styles */) {
  56510. const style = value;
  56511. const styleValue = attrs[++i];
  56512. styles = concatStringsWithSpace(styles, style + ': ' + styleValue + ';');
  56513. }
  56514. }
  56515. }
  56516. writeToHost ? tNode.styles = styles : tNode.stylesWithoutHost = styles;
  56517. writeToHost ? tNode.classes = classes : tNode.classesWithoutHost = classes;
  56518. }
  56519. /**
  56520. * @license
  56521. * Copyright Google LLC All Rights Reserved.
  56522. *
  56523. * Use of this source code is governed by an MIT-style license that can be
  56524. * found in the LICENSE file at https://angular.io/license
  56525. */
  56526. /**
  56527. * Synchronously perform change detection on a component (and possibly its sub-components).
  56528. *
  56529. * This function triggers change detection in a synchronous way on a component.
  56530. *
  56531. * @param component The component which the change detection should be performed on.
  56532. */
  56533. function detectChanges(component) {
  56534. const view = getComponentViewByInstance(component);
  56535. detectChangesInternal(view[TVIEW], view, component);
  56536. }
  56537. /**
  56538. * Marks the component as dirty (needing change detection). Marking a component dirty will
  56539. * schedule a change detection on it at some point in the future.
  56540. *
  56541. * Marking an already dirty component as dirty won't do anything. Only one outstanding change
  56542. * detection can be scheduled per component tree.
  56543. *
  56544. * @param component Component to mark as dirty.
  56545. */
  56546. function markDirty(component) {
  56547. ngDevMode && assertDefined(component, 'component');
  56548. const rootView = markViewDirty(getComponentViewByInstance(component));
  56549. ngDevMode && assertDefined(rootView[CONTEXT], 'rootContext should be defined');
  56550. scheduleTick(rootView[CONTEXT], 1 /* DetectChanges */);
  56551. }
  56552. /**
  56553. * Used to perform change detection on the whole application.
  56554. *
  56555. * This is equivalent to `detectChanges`, but invoked on root component. Additionally, `tick`
  56556. * executes lifecycle hooks and conditionally checks components based on their
  56557. * `ChangeDetectionStrategy` and dirtiness.
  56558. *
  56559. * The preferred way to trigger change detection is to call `markDirty`. `markDirty` internally
  56560. * schedules `tick` using a scheduler in order to coalesce multiple `markDirty` calls into a
  56561. * single change detection run. By default, the scheduler is `requestAnimationFrame`, but can
  56562. * be changed when calling `renderComponent` and providing the `scheduler` option.
  56563. */
  56564. function tick(component) {
  56565. const rootView = getRootView(component);
  56566. const rootContext = rootView[CONTEXT];
  56567. tickRootContext(rootContext);
  56568. }
  56569. /**
  56570. * @license
  56571. * Copyright Google LLC All Rights Reserved.
  56572. *
  56573. * Use of this source code is governed by an MIT-style license that can be
  56574. * found in the LICENSE file at https://angular.io/license
  56575. */
  56576. /**
  56577. * An InjectionToken that gets the current `Injector` for `createInjector()`-style injectors.
  56578. *
  56579. * Requesting this token instead of `Injector` allows `StaticInjector` to be tree-shaken from a
  56580. * project.
  56581. *
  56582. * @publicApi
  56583. */
  56584. const INJECTOR$1 = new InjectionToken('INJECTOR',
  56585. // Dissable tslint because this is const enum which gets inlined not top level prop access.
  56586. // tslint:disable-next-line: no-toplevel-property-access
  56587. -1 /* Injector */);
  56588. /**
  56589. * @license
  56590. * Copyright Google LLC All Rights Reserved.
  56591. *
  56592. * Use of this source code is governed by an MIT-style license that can be
  56593. * found in the LICENSE file at https://angular.io/license
  56594. */
  56595. class NullInjector {
  56596. get(token, notFoundValue = THROW_IF_NOT_FOUND) {
  56597. if (notFoundValue === THROW_IF_NOT_FOUND) {
  56598. const error = new Error(`NullInjectorError: No provider for ${stringify(token)}!`);
  56599. error.name = 'NullInjectorError';
  56600. throw error;
  56601. }
  56602. return notFoundValue;
  56603. }
  56604. }
  56605. /**
  56606. * @license
  56607. * Copyright Google LLC All Rights Reserved.
  56608. *
  56609. * Use of this source code is governed by an MIT-style license that can be
  56610. * found in the LICENSE file at https://angular.io/license
  56611. */
  56612. /**
  56613. * An internal token whose presence in an injector indicates that the injector should treat itself
  56614. * as a root scoped injector when processing requests for unknown tokens which may indicate
  56615. * they are provided in the root scope.
  56616. */
  56617. const INJECTOR_SCOPE = new InjectionToken('Set Injector scope.');
  56618. /**
  56619. * @license
  56620. * Copyright Google LLC All Rights Reserved.
  56621. *
  56622. * Use of this source code is governed by an MIT-style license that can be
  56623. * found in the LICENSE file at https://angular.io/license
  56624. */
  56625. /**
  56626. * Marker which indicates that a value has not yet been created from the factory function.
  56627. */
  56628. const NOT_YET = {};
  56629. /**
  56630. * Marker which indicates that the factory function for a token is in the process of being called.
  56631. *
  56632. * If the injector is asked to inject a token with its value set to CIRCULAR, that indicates
  56633. * injection of a dependency has recursively attempted to inject the original token, and there is
  56634. * a circular dependency among the providers.
  56635. */
  56636. const CIRCULAR = {};
  56637. const EMPTY_ARRAY$1 = [];
  56638. /**
  56639. * A lazily initialized NullInjector.
  56640. */
  56641. let NULL_INJECTOR = undefined;
  56642. function getNullInjector() {
  56643. if (NULL_INJECTOR === undefined) {
  56644. NULL_INJECTOR = new NullInjector();
  56645. }
  56646. return NULL_INJECTOR;
  56647. }
  56648. /**
  56649. * Create a new `Injector` which is configured using a `defType` of `InjectorType<any>`s.
  56650. *
  56651. * @publicApi
  56652. */
  56653. function createInjector(defType, parent = null, additionalProviders = null, name) {
  56654. const injector = createInjectorWithoutInjectorInstances(defType, parent, additionalProviders, name);
  56655. injector._resolveInjectorDefTypes();
  56656. return injector;
  56657. }
  56658. /**
  56659. * Creates a new injector without eagerly resolving its injector types. Can be used in places
  56660. * where resolving the injector types immediately can lead to an infinite loop. The injector types
  56661. * should be resolved at a later point by calling `_resolveInjectorDefTypes`.
  56662. */
  56663. function createInjectorWithoutInjectorInstances(defType, parent = null, additionalProviders = null, name) {
  56664. return new R3Injector(defType, additionalProviders, parent || getNullInjector(), name);
  56665. }
  56666. class R3Injector {
  56667. constructor(def, additionalProviders, parent, source = null) {
  56668. this.parent = parent;
  56669. /**
  56670. * Map of tokens to records which contain the instances of those tokens.
  56671. * - `null` value implies that we don't have the record. Used by tree-shakable injectors
  56672. * to prevent further searches.
  56673. */
  56674. this.records = new Map();
  56675. /**
  56676. * The transitive set of `InjectorType`s which define this injector.
  56677. */
  56678. this.injectorDefTypes = new Set();
  56679. /**
  56680. * Set of values instantiated by this injector which contain `ngOnDestroy` lifecycle hooks.
  56681. */
  56682. this.onDestroy = new Set();
  56683. this._destroyed = false;
  56684. const dedupStack = [];
  56685. // Start off by creating Records for every provider declared in every InjectorType
  56686. // included transitively in additional providers then do the same for `def`. This order is
  56687. // important because `def` may include providers that override ones in additionalProviders.
  56688. additionalProviders &&
  56689. deepForEach(additionalProviders, provider => this.processProvider(provider, def, additionalProviders));
  56690. deepForEach([def], injectorDef => this.processInjectorType(injectorDef, [], dedupStack));
  56691. // Make sure the INJECTOR token provides this injector.
  56692. this.records.set(INJECTOR$1, makeRecord(undefined, this));
  56693. // Detect whether this injector has the APP_ROOT_SCOPE token and thus should provide
  56694. // any injectable scoped to APP_ROOT_SCOPE.
  56695. const record = this.records.get(INJECTOR_SCOPE);
  56696. this.scope = record != null ? record.value : null;
  56697. // Source name, used for debugging
  56698. this.source = source || (typeof def === 'object' ? null : stringify(def));
  56699. }
  56700. /**
  56701. * Flag indicating that this injector was previously destroyed.
  56702. */
  56703. get destroyed() {
  56704. return this._destroyed;
  56705. }
  56706. /**
  56707. * Destroy the injector and release references to every instance or provider associated with it.
  56708. *
  56709. * Also calls the `OnDestroy` lifecycle hooks of every instance that was created for which a
  56710. * hook was found.
  56711. */
  56712. destroy() {
  56713. this.assertNotDestroyed();
  56714. // Set destroyed = true first, in case lifecycle hooks re-enter destroy().
  56715. this._destroyed = true;
  56716. try {
  56717. // Call all the lifecycle hooks.
  56718. this.onDestroy.forEach(service => service.ngOnDestroy());
  56719. }
  56720. finally {
  56721. // Release all references.
  56722. this.records.clear();
  56723. this.onDestroy.clear();
  56724. this.injectorDefTypes.clear();
  56725. }
  56726. }
  56727. get(token, notFoundValue = THROW_IF_NOT_FOUND, flags = InjectFlags.Default) {
  56728. this.assertNotDestroyed();
  56729. // Set the injection context.
  56730. const previousInjector = setCurrentInjector(this);
  56731. try {
  56732. // Check for the SkipSelf flag.
  56733. if (!(flags & InjectFlags.SkipSelf)) {
  56734. // SkipSelf isn't set, check if the record belongs to this injector.
  56735. let record = this.records.get(token);
  56736. if (record === undefined) {
  56737. // No record, but maybe the token is scoped to this injector. Look for an injectable
  56738. // def with a scope matching this injector.
  56739. const def = couldBeInjectableType(token) && getInjectableDef(token);
  56740. if (def && this.injectableDefInScope(def)) {
  56741. // Found an injectable def and it's scoped to this injector. Pretend as if it was here
  56742. // all along.
  56743. record = makeRecord(injectableDefOrInjectorDefFactory(token), NOT_YET);
  56744. }
  56745. else {
  56746. record = null;
  56747. }
  56748. this.records.set(token, record);
  56749. }
  56750. // If a record was found, get the instance for it and return it.
  56751. if (record != null /* NOT null || undefined */) {
  56752. return this.hydrate(token, record);
  56753. }
  56754. }
  56755. // Select the next injector based on the Self flag - if self is set, the next injector is
  56756. // the NullInjector, otherwise it's the parent.
  56757. const nextInjector = !(flags & InjectFlags.Self) ? this.parent : getNullInjector();
  56758. // Set the notFoundValue based on the Optional flag - if optional is set and notFoundValue
  56759. // is undefined, the value is null, otherwise it's the notFoundValue.
  56760. notFoundValue = (flags & InjectFlags.Optional) && notFoundValue === THROW_IF_NOT_FOUND ?
  56761. null :
  56762. notFoundValue;
  56763. return nextInjector.get(token, notFoundValue);
  56764. }
  56765. catch (e) {
  56766. if (e.name === 'NullInjectorError') {
  56767. const path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];
  56768. path.unshift(stringify(token));
  56769. if (previousInjector) {
  56770. // We still have a parent injector, keep throwing
  56771. throw e;
  56772. }
  56773. else {
  56774. // Format & throw the final error message when we don't have any previous injector
  56775. return catchInjectorError(e, token, 'R3InjectorError', this.source);
  56776. }
  56777. }
  56778. else {
  56779. throw e;
  56780. }
  56781. }
  56782. finally {
  56783. // Lastly, clean up the state by restoring the previous injector.
  56784. setCurrentInjector(previousInjector);
  56785. }
  56786. }
  56787. /** @internal */
  56788. _resolveInjectorDefTypes() {
  56789. this.injectorDefTypes.forEach(defType => this.get(defType));
  56790. }
  56791. toString() {
  56792. const tokens = [], records = this.records;
  56793. records.forEach((v, token) => tokens.push(stringify(token)));
  56794. return `R3Injector[${tokens.join(', ')}]`;
  56795. }
  56796. assertNotDestroyed() {
  56797. if (this._destroyed) {
  56798. throw new Error('Injector has already been destroyed.');
  56799. }
  56800. }
  56801. /**
  56802. * Add an `InjectorType` or `InjectorTypeWithProviders` and all of its transitive providers
  56803. * to this injector.
  56804. *
  56805. * If an `InjectorTypeWithProviders` that declares providers besides the type is specified,
  56806. * the function will return "true" to indicate that the providers of the type definition need
  56807. * to be processed. This allows us to process providers of injector types after all imports of
  56808. * an injector definition are processed. (following View Engine semantics: see FW-1349)
  56809. */
  56810. processInjectorType(defOrWrappedDef, parents, dedupStack) {
  56811. defOrWrappedDef = resolveForwardRef(defOrWrappedDef);
  56812. if (!defOrWrappedDef)
  56813. return false;
  56814. // Either the defOrWrappedDef is an InjectorType (with injector def) or an
  56815. // InjectorDefTypeWithProviders (aka ModuleWithProviders). Detecting either is a megamorphic
  56816. // read, so care is taken to only do the read once.
  56817. // First attempt to read the injector def (`ɵinj`).
  56818. let def = getInjectorDef(defOrWrappedDef);
  56819. // If that's not present, then attempt to read ngModule from the InjectorDefTypeWithProviders.
  56820. const ngModule = (def == null) && defOrWrappedDef.ngModule || undefined;
  56821. // Determine the InjectorType. In the case where `defOrWrappedDef` is an `InjectorType`,
  56822. // then this is easy. In the case of an InjectorDefTypeWithProviders, then the definition type
  56823. // is the `ngModule`.
  56824. const defType = (ngModule === undefined) ? defOrWrappedDef : ngModule;
  56825. // Check for circular dependencies.
  56826. if (ngDevMode && parents.indexOf(defType) !== -1) {
  56827. const defName = stringify(defType);
  56828. const path = parents.map(stringify);
  56829. throwCyclicDependencyError(defName, path);
  56830. }
  56831. // Check for multiple imports of the same module
  56832. const isDuplicate = dedupStack.indexOf(defType) !== -1;
  56833. // Finally, if defOrWrappedType was an `InjectorDefTypeWithProviders`, then the actual
  56834. // `InjectorDef` is on its `ngModule`.
  56835. if (ngModule !== undefined) {
  56836. def = getInjectorDef(ngModule);
  56837. }
  56838. // If no definition was found, it might be from exports. Remove it.
  56839. if (def == null) {
  56840. return false;
  56841. }
  56842. // Add providers in the same way that @NgModule resolution did:
  56843. // First, include providers from any imports.
  56844. if (def.imports != null && !isDuplicate) {
  56845. // Before processing defType's imports, add it to the set of parents. This way, if it ends
  56846. // up deeply importing itself, this can be detected.
  56847. ngDevMode && parents.push(defType);
  56848. // Add it to the set of dedups. This way we can detect multiple imports of the same module
  56849. dedupStack.push(defType);
  56850. let importTypesWithProviders;
  56851. try {
  56852. deepForEach(def.imports, imported => {
  56853. if (this.processInjectorType(imported, parents, dedupStack)) {
  56854. if (importTypesWithProviders === undefined)
  56855. importTypesWithProviders = [];
  56856. // If the processed import is an injector type with providers, we store it in the
  56857. // list of import types with providers, so that we can process those afterwards.
  56858. importTypesWithProviders.push(imported);
  56859. }
  56860. });
  56861. }
  56862. finally {
  56863. // Remove it from the parents set when finished.
  56864. ngDevMode && parents.pop();
  56865. }
  56866. // Imports which are declared with providers (TypeWithProviders) need to be processed
  56867. // after all imported modules are processed. This is similar to how View Engine
  56868. // processes/merges module imports in the metadata resolver. See: FW-1349.
  56869. if (importTypesWithProviders !== undefined) {
  56870. for (let i = 0; i < importTypesWithProviders.length; i++) {
  56871. const { ngModule, providers } = importTypesWithProviders[i];
  56872. deepForEach(providers, provider => this.processProvider(provider, ngModule, providers || EMPTY_ARRAY$1));
  56873. }
  56874. }
  56875. }
  56876. // Track the InjectorType and add a provider for it. It's important that this is done after the
  56877. // def's imports.
  56878. this.injectorDefTypes.add(defType);
  56879. this.records.set(defType, makeRecord(def.factory, NOT_YET));
  56880. // Next, include providers listed on the definition itself.
  56881. const defProviders = def.providers;
  56882. if (defProviders != null && !isDuplicate) {
  56883. const injectorType = defOrWrappedDef;
  56884. deepForEach(defProviders, provider => this.processProvider(provider, injectorType, defProviders));
  56885. }
  56886. return (ngModule !== undefined &&
  56887. defOrWrappedDef.providers !== undefined);
  56888. }
  56889. /**
  56890. * Process a `SingleProvider` and add it.
  56891. */
  56892. processProvider(provider, ngModuleType, providers) {
  56893. // Determine the token from the provider. Either it's its own token, or has a {provide: ...}
  56894. // property.
  56895. provider = resolveForwardRef(provider);
  56896. let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider && provider.provide);
  56897. // Construct a `Record` for the provider.
  56898. const record = providerToRecord(provider, ngModuleType, providers);
  56899. if (!isTypeProvider(provider) && provider.multi === true) {
  56900. // If the provider indicates that it's a multi-provider, process it specially.
  56901. // First check whether it's been defined already.
  56902. let multiRecord = this.records.get(token);
  56903. if (multiRecord) {
  56904. // It has. Throw a nice error if
  56905. if (ngDevMode && multiRecord.multi === undefined) {
  56906. throwMixedMultiProviderError();
  56907. }
  56908. }
  56909. else {
  56910. multiRecord = makeRecord(undefined, NOT_YET, true);
  56911. multiRecord.factory = () => injectArgs(multiRecord.multi);
  56912. this.records.set(token, multiRecord);
  56913. }
  56914. token = provider;
  56915. multiRecord.multi.push(provider);
  56916. }
  56917. else {
  56918. const existing = this.records.get(token);
  56919. if (ngDevMode && existing && existing.multi !== undefined) {
  56920. throwMixedMultiProviderError();
  56921. }
  56922. }
  56923. this.records.set(token, record);
  56924. }
  56925. hydrate(token, record) {
  56926. if (ngDevMode && record.value === CIRCULAR) {
  56927. throwCyclicDependencyError(stringify(token));
  56928. }
  56929. else if (record.value === NOT_YET) {
  56930. record.value = CIRCULAR;
  56931. record.value = record.factory();
  56932. }
  56933. if (typeof record.value === 'object' && record.value && hasOnDestroy(record.value)) {
  56934. this.onDestroy.add(record.value);
  56935. }
  56936. return record.value;
  56937. }
  56938. injectableDefInScope(def) {
  56939. if (!def.providedIn) {
  56940. return false;
  56941. }
  56942. else if (typeof def.providedIn === 'string') {
  56943. return def.providedIn === 'any' || (def.providedIn === this.scope);
  56944. }
  56945. else {
  56946. return this.injectorDefTypes.has(def.providedIn);
  56947. }
  56948. }
  56949. }
  56950. function injectableDefOrInjectorDefFactory(token) {
  56951. // Most tokens will have an injectable def directly on them, which specifies a factory directly.
  56952. const injectableDef = getInjectableDef(token);
  56953. const factory = injectableDef !== null ? injectableDef.factory : getFactoryDef(token);
  56954. if (factory !== null) {
  56955. return factory;
  56956. }
  56957. // If the token is an NgModule, it's also injectable but the factory is on its injector def
  56958. // (`ɵinj`)
  56959. const injectorDef = getInjectorDef(token);
  56960. if (injectorDef !== null) {
  56961. return injectorDef.factory;
  56962. }
  56963. // InjectionTokens should have an injectable def (ɵprov) and thus should be handled above.
  56964. // If it's missing that, it's an error.
  56965. if (token instanceof InjectionToken) {
  56966. throw new Error(`Token ${stringify(token)} is missing a ɵprov definition.`);
  56967. }
  56968. // Undecorated types can sometimes be created if they have no constructor arguments.
  56969. if (token instanceof Function) {
  56970. return getUndecoratedInjectableFactory(token);
  56971. }
  56972. // There was no way to resolve a factory for this token.
  56973. throw new Error('unreachable');
  56974. }
  56975. function getUndecoratedInjectableFactory(token) {
  56976. // If the token has parameters then it has dependencies that we cannot resolve implicitly.
  56977. const paramLength = token.length;
  56978. if (paramLength > 0) {
  56979. const args = newArray(paramLength, '?');
  56980. throw new Error(`Can't resolve all parameters for ${stringify(token)}: (${args.join(', ')}).`);
  56981. }
  56982. // The constructor function appears to have no parameters.
  56983. // This might be because it inherits from a super-class. In which case, use an injectable
  56984. // def from an ancestor if there is one.
  56985. // Otherwise this really is a simple class with no dependencies, so return a factory that
  56986. // just instantiates the zero-arg constructor.
  56987. const inheritedInjectableDef = getInheritedInjectableDef(token);
  56988. if (inheritedInjectableDef !== null) {
  56989. return () => inheritedInjectableDef.factory(token);
  56990. }
  56991. else {
  56992. return () => new token();
  56993. }
  56994. }
  56995. function providerToRecord(provider, ngModuleType, providers) {
  56996. if (isValueProvider(provider)) {
  56997. return makeRecord(undefined, provider.useValue);
  56998. }
  56999. else {
  57000. const factory = providerToFactory(provider, ngModuleType, providers);
  57001. return makeRecord(factory, NOT_YET);
  57002. }
  57003. }
  57004. /**
  57005. * Converts a `SingleProvider` into a factory function.
  57006. *
  57007. * @param provider provider to convert to factory
  57008. */
  57009. function providerToFactory(provider, ngModuleType, providers) {
  57010. let factory = undefined;
  57011. if (isTypeProvider(provider)) {
  57012. const unwrappedProvider = resolveForwardRef(provider);
  57013. return getFactoryDef(unwrappedProvider) || injectableDefOrInjectorDefFactory(unwrappedProvider);
  57014. }
  57015. else {
  57016. if (isValueProvider(provider)) {
  57017. factory = () => resolveForwardRef(provider.useValue);
  57018. }
  57019. else if (isFactoryProvider(provider)) {
  57020. factory = () => provider.useFactory(...injectArgs(provider.deps || []));
  57021. }
  57022. else if (isExistingProvider(provider)) {
  57023. factory = () => ɵɵinject(resolveForwardRef(provider.useExisting));
  57024. }
  57025. else {
  57026. const classRef = resolveForwardRef(provider &&
  57027. (provider.useClass || provider.provide));
  57028. if (ngDevMode && !classRef) {
  57029. throwInvalidProviderError(ngModuleType, providers, provider);
  57030. }
  57031. if (hasDeps(provider)) {
  57032. factory = () => new (classRef)(...injectArgs(provider.deps));
  57033. }
  57034. else {
  57035. return getFactoryDef(classRef) || injectableDefOrInjectorDefFactory(classRef);
  57036. }
  57037. }
  57038. }
  57039. return factory;
  57040. }
  57041. function makeRecord(factory, value, multi = false) {
  57042. return {
  57043. factory: factory,
  57044. value: value,
  57045. multi: multi ? [] : undefined,
  57046. };
  57047. }
  57048. function isValueProvider(value) {
  57049. return value !== null && typeof value == 'object' && USE_VALUE in value;
  57050. }
  57051. function isExistingProvider(value) {
  57052. return !!(value && value.useExisting);
  57053. }
  57054. function isFactoryProvider(value) {
  57055. return !!(value && value.useFactory);
  57056. }
  57057. function isTypeProvider(value) {
  57058. return typeof value === 'function';
  57059. }
  57060. function isClassProvider(value) {
  57061. return !!value.useClass;
  57062. }
  57063. function hasDeps(value) {
  57064. return !!value.deps;
  57065. }
  57066. function hasOnDestroy(value) {
  57067. return value !== null && typeof value === 'object' &&
  57068. typeof value.ngOnDestroy === 'function';
  57069. }
  57070. function couldBeInjectableType(value) {
  57071. return (typeof value === 'function') ||
  57072. (typeof value === 'object' && value instanceof InjectionToken);
  57073. }
  57074. /**
  57075. * @license
  57076. * Copyright Google LLC All Rights Reserved.
  57077. *
  57078. * Use of this source code is governed by an MIT-style license that can be
  57079. * found in the LICENSE file at https://angular.io/license
  57080. */
  57081. function INJECTOR_IMPL__PRE_R3__(providers, parent, name) {
  57082. return new StaticInjector(providers, parent, name);
  57083. }
  57084. function INJECTOR_IMPL__POST_R3__(providers, parent, name) {
  57085. return createInjector({ name: name }, parent, providers, name);
  57086. }
  57087. const INJECTOR_IMPL = INJECTOR_IMPL__POST_R3__;
  57088. /**
  57089. * Concrete injectors implement this interface. Injectors are configured
  57090. * with [providers](guide/glossary#provider) that associate
  57091. * dependencies of various types with [injection tokens](guide/glossary#di-token).
  57092. *
  57093. * @see ["DI Providers"](guide/dependency-injection-providers).
  57094. * @see `StaticProvider`
  57095. *
  57096. * @usageNotes
  57097. *
  57098. * The following example creates a service injector instance.
  57099. *
  57100. * {@example core/di/ts/provider_spec.ts region='ConstructorProvider'}
  57101. *
  57102. * ### Usage example
  57103. *
  57104. * {@example core/di/ts/injector_spec.ts region='Injector'}
  57105. *
  57106. * `Injector` returns itself when given `Injector` as a token:
  57107. *
  57108. * {@example core/di/ts/injector_spec.ts region='injectInjector'}
  57109. *
  57110. * @publicApi
  57111. */
  57112. class Injector {
  57113. static create(options, parent) {
  57114. if (Array.isArray(options)) {
  57115. return INJECTOR_IMPL(options, parent, '');
  57116. }
  57117. else {
  57118. return INJECTOR_IMPL(options.providers, options.parent, options.name || '');
  57119. }
  57120. }
  57121. }
  57122. Injector.THROW_IF_NOT_FOUND = THROW_IF_NOT_FOUND;
  57123. Injector.NULL = new NullInjector();
  57124. /** @nocollapse */
  57125. Injector.ɵprov = ɵɵdefineInjectable({
  57126. token: Injector,
  57127. providedIn: 'any',
  57128. factory: () => ɵɵinject(INJECTOR$1),
  57129. });
  57130. /**
  57131. * @internal
  57132. * @nocollapse
  57133. */
  57134. Injector.__NG_ELEMENT_ID__ = -1 /* Injector */;
  57135. const IDENT = function (value) {
  57136. return value;
  57137. };
  57138. const ɵ0$6 = IDENT;
  57139. const EMPTY = [];
  57140. const CIRCULAR$1 = IDENT;
  57141. const MULTI_PROVIDER_FN = function () {
  57142. return Array.prototype.slice.call(arguments);
  57143. };
  57144. const ɵ1$1 = MULTI_PROVIDER_FN;
  57145. const NO_NEW_LINE$1 = 'ɵ';
  57146. class StaticInjector {
  57147. constructor(providers, parent = Injector.NULL, source = null) {
  57148. this.parent = parent;
  57149. this.source = source;
  57150. const records = this._records = new Map();
  57151. records.set(Injector, { token: Injector, fn: IDENT, deps: EMPTY, value: this, useNew: false });
  57152. records.set(INJECTOR$1, { token: INJECTOR$1, fn: IDENT, deps: EMPTY, value: this, useNew: false });
  57153. this.scope = recursivelyProcessProviders(records, providers);
  57154. }
  57155. get(token, notFoundValue, flags = InjectFlags.Default) {
  57156. const records = this._records;
  57157. let record = records.get(token);
  57158. if (record === undefined) {
  57159. // This means we have never seen this record, see if it is tree shakable provider.
  57160. const injectableDef = getInjectableDef(token);
  57161. if (injectableDef) {
  57162. const providedIn = injectableDef && injectableDef.providedIn;
  57163. if (providedIn === 'any' || providedIn != null && providedIn === this.scope) {
  57164. records.set(token, record = resolveProvider({ provide: token, useFactory: injectableDef.factory, deps: EMPTY }));
  57165. }
  57166. }
  57167. if (record === undefined) {
  57168. // Set record to null to make sure that we don't go through expensive lookup above again.
  57169. records.set(token, null);
  57170. }
  57171. }
  57172. let lastInjector = setCurrentInjector(this);
  57173. try {
  57174. return tryResolveToken(token, record, records, this.parent, notFoundValue, flags);
  57175. }
  57176. catch (e) {
  57177. return catchInjectorError(e, token, 'StaticInjectorError', this.source);
  57178. }
  57179. finally {
  57180. setCurrentInjector(lastInjector);
  57181. }
  57182. }
  57183. toString() {
  57184. const tokens = [], records = this._records;
  57185. records.forEach((v, token) => tokens.push(stringify(token)));
  57186. return `StaticInjector[${tokens.join(', ')}]`;
  57187. }
  57188. }
  57189. function resolveProvider(provider) {
  57190. const deps = computeDeps(provider);
  57191. let fn = IDENT;
  57192. let value = EMPTY;
  57193. let useNew = false;
  57194. let provide = resolveForwardRef(provider.provide);
  57195. if (USE_VALUE in provider) {
  57196. // We need to use USE_VALUE in provider since provider.useValue could be defined as undefined.
  57197. value = provider.useValue;
  57198. }
  57199. else if (provider.useFactory) {
  57200. fn = provider.useFactory;
  57201. }
  57202. else if (provider.useExisting) {
  57203. // Just use IDENT
  57204. }
  57205. else if (provider.useClass) {
  57206. useNew = true;
  57207. fn = resolveForwardRef(provider.useClass);
  57208. }
  57209. else if (typeof provide == 'function') {
  57210. useNew = true;
  57211. fn = provide;
  57212. }
  57213. else {
  57214. throw staticError('StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable', provider);
  57215. }
  57216. return { deps, fn, useNew, value };
  57217. }
  57218. function multiProviderMixError(token) {
  57219. return staticError('Cannot mix multi providers and regular providers', token);
  57220. }
  57221. function recursivelyProcessProviders(records, provider) {
  57222. let scope = null;
  57223. if (provider) {
  57224. provider = resolveForwardRef(provider);
  57225. if (Array.isArray(provider)) {
  57226. // if we have an array recurse into the array
  57227. for (let i = 0; i < provider.length; i++) {
  57228. scope = recursivelyProcessProviders(records, provider[i]) || scope;
  57229. }
  57230. }
  57231. else if (typeof provider === 'function') {
  57232. // Functions were supported in ReflectiveInjector, but are not here. For safety give useful
  57233. // error messages
  57234. throw staticError('Function/Class not supported', provider);
  57235. }
  57236. else if (provider && typeof provider === 'object' && provider.provide) {
  57237. // At this point we have what looks like a provider: {provide: ?, ....}
  57238. let token = resolveForwardRef(provider.provide);
  57239. const resolvedProvider = resolveProvider(provider);
  57240. if (provider.multi === true) {
  57241. // This is a multi provider.
  57242. let multiProvider = records.get(token);
  57243. if (multiProvider) {
  57244. if (multiProvider.fn !== MULTI_PROVIDER_FN) {
  57245. throw multiProviderMixError(token);
  57246. }
  57247. }
  57248. else {
  57249. // Create a placeholder factory which will look up the constituents of the multi provider.
  57250. records.set(token, multiProvider = {
  57251. token: provider.provide,
  57252. deps: [],
  57253. useNew: false,
  57254. fn: MULTI_PROVIDER_FN,
  57255. value: EMPTY
  57256. });
  57257. }
  57258. // Treat the provider as the token.
  57259. token = provider;
  57260. multiProvider.deps.push({ token, options: 6 /* Default */ });
  57261. }
  57262. const record = records.get(token);
  57263. if (record && record.fn == MULTI_PROVIDER_FN) {
  57264. throw multiProviderMixError(token);
  57265. }
  57266. if (token === INJECTOR_SCOPE) {
  57267. scope = resolvedProvider.value;
  57268. }
  57269. records.set(token, resolvedProvider);
  57270. }
  57271. else {
  57272. throw staticError('Unexpected provider', provider);
  57273. }
  57274. }
  57275. return scope;
  57276. }
  57277. function tryResolveToken(token, record, records, parent, notFoundValue, flags) {
  57278. try {
  57279. return resolveToken(token, record, records, parent, notFoundValue, flags);
  57280. }
  57281. catch (e) {
  57282. // ensure that 'e' is of type Error.
  57283. if (!(e instanceof Error)) {
  57284. e = new Error(e);
  57285. }
  57286. const path = e[NG_TEMP_TOKEN_PATH] = e[NG_TEMP_TOKEN_PATH] || [];
  57287. path.unshift(token);
  57288. if (record && record.value == CIRCULAR$1) {
  57289. // Reset the Circular flag.
  57290. record.value = EMPTY;
  57291. }
  57292. throw e;
  57293. }
  57294. }
  57295. function resolveToken(token, record, records, parent, notFoundValue, flags) {
  57296. let value;
  57297. if (record && !(flags & InjectFlags.SkipSelf)) {
  57298. // If we don't have a record, this implies that we don't own the provider hence don't know how
  57299. // to resolve it.
  57300. value = record.value;
  57301. if (value == CIRCULAR$1) {
  57302. throw Error(NO_NEW_LINE$1 + 'Circular dependency');
  57303. }
  57304. else if (value === EMPTY) {
  57305. record.value = CIRCULAR$1;
  57306. let obj = undefined;
  57307. let useNew = record.useNew;
  57308. let fn = record.fn;
  57309. let depRecords = record.deps;
  57310. let deps = EMPTY;
  57311. if (depRecords.length) {
  57312. deps = [];
  57313. for (let i = 0; i < depRecords.length; i++) {
  57314. const depRecord = depRecords[i];
  57315. const options = depRecord.options;
  57316. const childRecord = options & 2 /* CheckSelf */ ? records.get(depRecord.token) : undefined;
  57317. deps.push(tryResolveToken(
  57318. // Current Token to resolve
  57319. depRecord.token,
  57320. // A record which describes how to resolve the token.
  57321. // If undefined, this means we don't have such a record
  57322. childRecord,
  57323. // Other records we know about.
  57324. records,
  57325. // If we don't know how to resolve dependency and we should not check parent for it,
  57326. // than pass in Null injector.
  57327. !childRecord && !(options & 4 /* CheckParent */) ? Injector.NULL : parent, options & 1 /* Optional */ ? null : Injector.THROW_IF_NOT_FOUND, InjectFlags.Default));
  57328. }
  57329. }
  57330. record.value = value = useNew ? new fn(...deps) : fn.apply(obj, deps);
  57331. }
  57332. }
  57333. else if (!(flags & InjectFlags.Self)) {
  57334. value = parent.get(token, notFoundValue, InjectFlags.Default);
  57335. }
  57336. else if (!(flags & InjectFlags.Optional)) {
  57337. value = Injector.NULL.get(token, notFoundValue);
  57338. }
  57339. else {
  57340. value = Injector.NULL.get(token, typeof notFoundValue !== 'undefined' ? notFoundValue : null);
  57341. }
  57342. return value;
  57343. }
  57344. function computeDeps(provider) {
  57345. let deps = EMPTY;
  57346. const providerDeps = provider.deps;
  57347. if (providerDeps && providerDeps.length) {
  57348. deps = [];
  57349. for (let i = 0; i < providerDeps.length; i++) {
  57350. let options = 6 /* Default */;
  57351. let token = resolveForwardRef(providerDeps[i]);
  57352. if (Array.isArray(token)) {
  57353. for (let j = 0, annotations = token; j < annotations.length; j++) {
  57354. const annotation = annotations[j];
  57355. if (annotation instanceof Optional || annotation == Optional) {
  57356. options = options | 1 /* Optional */;
  57357. }
  57358. else if (annotation instanceof SkipSelf || annotation == SkipSelf) {
  57359. options = options & ~2 /* CheckSelf */;
  57360. }
  57361. else if (annotation instanceof Self || annotation == Self) {
  57362. options = options & ~4 /* CheckParent */;
  57363. }
  57364. else if (annotation instanceof Inject) {
  57365. token = annotation.token;
  57366. }
  57367. else {
  57368. token = resolveForwardRef(annotation);
  57369. }
  57370. }
  57371. }
  57372. deps.push({ token, options });
  57373. }
  57374. }
  57375. else if (provider.useExisting) {
  57376. const token = resolveForwardRef(provider.useExisting);
  57377. deps = [{ token, options: 6 /* Default */ }];
  57378. }
  57379. else if (!providerDeps && !(USE_VALUE in provider)) {
  57380. // useValue & useExisting are the only ones which are exempt from deps all others need it.
  57381. throw staticError('\'deps\' required', provider);
  57382. }
  57383. return deps;
  57384. }
  57385. function staticError(text, obj) {
  57386. return new Error(formatError(text, obj, 'StaticInjectorError'));
  57387. }
  57388. /**
  57389. * @license
  57390. * Copyright Google LLC All Rights Reserved.
  57391. *
  57392. * Use of this source code is governed by an MIT-style license that can be
  57393. * found in the LICENSE file at https://angular.io/license
  57394. */
  57395. /**
  57396. * Retrieves the component instance associated with a given DOM element.
  57397. *
  57398. * @usageNotes
  57399. * Given the following DOM structure:
  57400. * ```html
  57401. * <my-app>
  57402. * <div>
  57403. * <child-comp></child-comp>
  57404. * </div>
  57405. * </my-app>
  57406. * ```
  57407. * Calling `getComponent` on `<child-comp>` will return the instance of `ChildComponent`
  57408. * associated with this DOM element.
  57409. *
  57410. * Calling the function on `<my-app>` will return the `MyApp` instance.
  57411. *
  57412. *
  57413. * @param element DOM element from which the component should be retrieved.
  57414. * @returns Component instance associated with the element or `null` if there
  57415. * is no component associated with it.
  57416. *
  57417. * @publicApi
  57418. * @globalApi ng
  57419. */
  57420. function getComponent(element) {
  57421. assertDomElement(element);
  57422. const context = loadLContext(element, false);
  57423. if (context === null)
  57424. return null;
  57425. if (context.component === undefined) {
  57426. context.component = getComponentAtNodeIndex(context.nodeIndex, context.lView);
  57427. }
  57428. return context.component;
  57429. }
  57430. /**
  57431. * If inside an embedded view (e.g. `*ngIf` or `*ngFor`), retrieves the context of the embedded
  57432. * view that the element is part of. Otherwise retrieves the instance of the component whose view
  57433. * owns the element (in this case, the result is the same as calling `getOwningComponent`).
  57434. *
  57435. * @param element Element for which to get the surrounding component instance.
  57436. * @returns Instance of the component that is around the element or null if the element isn't
  57437. * inside any component.
  57438. *
  57439. * @publicApi
  57440. * @globalApi ng
  57441. */
  57442. function getContext(element) {
  57443. assertDomElement(element);
  57444. const context = loadLContext(element, false);
  57445. return context === null ? null : context.lView[CONTEXT];
  57446. }
  57447. /**
  57448. * Retrieves the component instance whose view contains the DOM element.
  57449. *
  57450. * For example, if `<child-comp>` is used in the template of `<app-comp>`
  57451. * (i.e. a `ViewChild` of `<app-comp>`), calling `getOwningComponent` on `<child-comp>`
  57452. * would return `<app-comp>`.
  57453. *
  57454. * @param elementOrDir DOM element, component or directive instance
  57455. * for which to retrieve the root components.
  57456. * @returns Component instance whose view owns the DOM element or null if the element is not
  57457. * part of a component view.
  57458. *
  57459. * @publicApi
  57460. * @globalApi ng
  57461. */
  57462. function getOwningComponent(elementOrDir) {
  57463. const context = loadLContext(elementOrDir, false);
  57464. if (context === null)
  57465. return null;
  57466. let lView = context.lView;
  57467. let parent;
  57468. ngDevMode && assertLView(lView);
  57469. while (lView[TVIEW].type === 2 /* Embedded */ && (parent = getLViewParent(lView))) {
  57470. lView = parent;
  57471. }
  57472. return lView[FLAGS] & 512 /* IsRoot */ ? null : lView[CONTEXT];
  57473. }
  57474. /**
  57475. * Retrieves all root components associated with a DOM element, directive or component instance.
  57476. * Root components are those which have been bootstrapped by Angular.
  57477. *
  57478. * @param elementOrDir DOM element, component or directive instance
  57479. * for which to retrieve the root components.
  57480. * @returns Root components associated with the target object.
  57481. *
  57482. * @publicApi
  57483. * @globalApi ng
  57484. */
  57485. function getRootComponents(elementOrDir) {
  57486. return [...getRootContext(elementOrDir).components];
  57487. }
  57488. /**
  57489. * Retrieves an `Injector` associated with an element, component or directive instance.
  57490. *
  57491. * @param elementOrDir DOM element, component or directive instance for which to
  57492. * retrieve the injector.
  57493. * @returns Injector associated with the element, component or directive instance.
  57494. *
  57495. * @publicApi
  57496. * @globalApi ng
  57497. */
  57498. function getInjector(elementOrDir) {
  57499. const context = loadLContext(elementOrDir, false);
  57500. if (context === null)
  57501. return Injector.NULL;
  57502. const tNode = context.lView[TVIEW].data[context.nodeIndex];
  57503. return new NodeInjector(tNode, context.lView);
  57504. }
  57505. /**
  57506. * Retrieve a set of injection tokens at a given DOM node.
  57507. *
  57508. * @param element Element for which the injection tokens should be retrieved.
  57509. */
  57510. function getInjectionTokens(element) {
  57511. const context = loadLContext(element, false);
  57512. if (context === null)
  57513. return [];
  57514. const lView = context.lView;
  57515. const tView = lView[TVIEW];
  57516. const tNode = tView.data[context.nodeIndex];
  57517. const providerTokens = [];
  57518. const startIndex = tNode.providerIndexes & 1048575 /* ProvidersStartIndexMask */;
  57519. const endIndex = tNode.directiveEnd;
  57520. for (let i = startIndex; i < endIndex; i++) {
  57521. let value = tView.data[i];
  57522. if (isDirectiveDefHack(value)) {
  57523. // The fact that we sometimes store Type and sometimes DirectiveDef in this location is a
  57524. // design flaw. We should always store same type so that we can be monomorphic. The issue
  57525. // is that for Components/Directives we store the def instead the type. The correct behavior
  57526. // is that we should always be storing injectable type in this location.
  57527. value = value.type;
  57528. }
  57529. providerTokens.push(value);
  57530. }
  57531. return providerTokens;
  57532. }
  57533. /**
  57534. * Retrieves directive instances associated with a given DOM element. Does not include
  57535. * component instances.
  57536. *
  57537. * @usageNotes
  57538. * Given the following DOM structure:
  57539. * ```
  57540. * <my-app>
  57541. * <button my-button></button>
  57542. * <my-comp></my-comp>
  57543. * </my-app>
  57544. * ```
  57545. * Calling `getDirectives` on `<button>` will return an array with an instance of the `MyButton`
  57546. * directive that is associated with the DOM element.
  57547. *
  57548. * Calling `getDirectives` on `<my-comp>` will return an empty array.
  57549. *
  57550. * @param element DOM element for which to get the directives.
  57551. * @returns Array of directives associated with the element.
  57552. *
  57553. * @publicApi
  57554. * @globalApi ng
  57555. */
  57556. function getDirectives(element) {
  57557. const context = loadLContext(element);
  57558. if (context.directives === undefined) {
  57559. context.directives = getDirectivesAtNodeIndex(context.nodeIndex, context.lView, false);
  57560. }
  57561. // The `directives` in this case are a named array called `LComponentView`. Clone the
  57562. // result so we don't expose an internal data structure in the user's console.
  57563. return context.directives === null ? [] : [...context.directives];
  57564. }
  57565. function loadLContext(target, throwOnNotFound = true) {
  57566. const context = getLContext(target);
  57567. if (!context && throwOnNotFound) {
  57568. throw new Error(ngDevMode ? `Unable to find context associated with ${stringifyForError(target)}` :
  57569. 'Invalid ng target');
  57570. }
  57571. return context;
  57572. }
  57573. /**
  57574. * Retrieve map of local references.
  57575. *
  57576. * The references are retrieved as a map of local reference name to element or directive instance.
  57577. *
  57578. * @param target DOM element, component or directive instance for which to retrieve
  57579. * the local references.
  57580. */
  57581. function getLocalRefs(target) {
  57582. const context = loadLContext(target, false);
  57583. if (context === null)
  57584. return {};
  57585. if (context.localRefs === undefined) {
  57586. context.localRefs = discoverLocalRefs(context.lView, context.nodeIndex);
  57587. }
  57588. return context.localRefs || {};
  57589. }
  57590. /**
  57591. * Retrieves the host element of a component or directive instance.
  57592. * The host element is the DOM element that matched the selector of the directive.
  57593. *
  57594. * @param componentOrDirective Component or directive instance for which the host
  57595. * element should be retrieved.
  57596. * @returns Host element of the target.
  57597. *
  57598. * @publicApi
  57599. * @globalApi ng
  57600. */
  57601. function getHostElement(componentOrDirective) {
  57602. return getLContext(componentOrDirective).native;
  57603. }
  57604. /**
  57605. * Retrieves the rendered text for a given component.
  57606. *
  57607. * This function retrieves the host element of a component and
  57608. * and then returns the `textContent` for that element. This implies
  57609. * that the text returned will include re-projected content of
  57610. * the component as well.
  57611. *
  57612. * @param component The component to return the content text for.
  57613. */
  57614. function getRenderedText(component) {
  57615. const hostElement = getHostElement(component);
  57616. return hostElement.textContent || '';
  57617. }
  57618. function loadLContextFromNode(node) {
  57619. if (!(node instanceof Node))
  57620. throw new Error('Expecting instance of DOM Element');
  57621. return loadLContext(node);
  57622. }
  57623. /**
  57624. * Retrieves a list of event listeners associated with a DOM element. The list does include host
  57625. * listeners, but it does not include event listeners defined outside of the Angular context
  57626. * (e.g. through `addEventListener`).
  57627. *
  57628. * @usageNotes
  57629. * Given the following DOM structure:
  57630. * ```
  57631. * <my-app>
  57632. * <div (click)="doSomething()"></div>
  57633. * </my-app>
  57634. *
  57635. * ```
  57636. * Calling `getListeners` on `<div>` will return an object that looks as follows:
  57637. * ```
  57638. * {
  57639. * name: 'click',
  57640. * element: <div>,
  57641. * callback: () => doSomething(),
  57642. * useCapture: false
  57643. * }
  57644. * ```
  57645. *
  57646. * @param element Element for which the DOM listeners should be retrieved.
  57647. * @returns Array of event listeners on the DOM element.
  57648. *
  57649. * @publicApi
  57650. * @globalApi ng
  57651. */
  57652. function getListeners(element) {
  57653. assertDomElement(element);
  57654. const lContext = loadLContext(element, false);
  57655. if (lContext === null)
  57656. return [];
  57657. const lView = lContext.lView;
  57658. const tView = lView[TVIEW];
  57659. const lCleanup = lView[CLEANUP];
  57660. const tCleanup = tView.cleanup;
  57661. const listeners = [];
  57662. if (tCleanup && lCleanup) {
  57663. for (let i = 0; i < tCleanup.length;) {
  57664. const firstParam = tCleanup[i++];
  57665. const secondParam = tCleanup[i++];
  57666. if (typeof firstParam === 'string') {
  57667. const name = firstParam;
  57668. const listenerElement = unwrapRNode(lView[secondParam]);
  57669. const callback = lCleanup[tCleanup[i++]];
  57670. const useCaptureOrIndx = tCleanup[i++];
  57671. // if useCaptureOrIndx is boolean then report it as is.
  57672. // if useCaptureOrIndx is positive number then it in unsubscribe method
  57673. // if useCaptureOrIndx is negative number then it is a Subscription
  57674. const type = (typeof useCaptureOrIndx === 'boolean' || useCaptureOrIndx >= 0) ? 'dom' : 'output';
  57675. const useCapture = typeof useCaptureOrIndx === 'boolean' ? useCaptureOrIndx : false;
  57676. if (element == listenerElement) {
  57677. listeners.push({ element, name, callback, useCapture, type });
  57678. }
  57679. }
  57680. }
  57681. }
  57682. listeners.sort(sortListeners);
  57683. return listeners;
  57684. }
  57685. function sortListeners(a, b) {
  57686. if (a.name == b.name)
  57687. return 0;
  57688. return a.name < b.name ? -1 : 1;
  57689. }
  57690. /**
  57691. * This function should not exist because it is megamorphic and only mostly correct.
  57692. *
  57693. * See call site for more info.
  57694. */
  57695. function isDirectiveDefHack(obj) {
  57696. return obj.type !== undefined && obj.template !== undefined && obj.declaredInputs !== undefined;
  57697. }
  57698. /**
  57699. * Returns the attached `DebugNode` instance for an element in the DOM.
  57700. *
  57701. * @param element DOM element which is owned by an existing component's view.
  57702. */
  57703. function getDebugNode(element) {
  57704. let debugNode = null;
  57705. const lContext = loadLContextFromNode(element);
  57706. const lView = lContext.lView;
  57707. const nodeIndex = lContext.nodeIndex;
  57708. if (nodeIndex !== -1) {
  57709. const valueInLView = lView[nodeIndex];
  57710. // this means that value in the lView is a component with its own
  57711. // data. In this situation the TNode is not accessed at the same spot.
  57712. const tNode = isLView(valueInLView) ? valueInLView[T_HOST] : getTNode(lView[TVIEW], nodeIndex);
  57713. ngDevMode &&
  57714. assertEqual(tNode.index, nodeIndex, 'Expecting that TNode at index is same as index');
  57715. debugNode = buildDebugNode(tNode, lView);
  57716. }
  57717. return debugNode;
  57718. }
  57719. /**
  57720. * Retrieve the component `LView` from component/element.
  57721. *
  57722. * NOTE: `LView` is a private and should not be leaked outside.
  57723. * Don't export this method to `ng.*` on window.
  57724. *
  57725. * @param target DOM element or component instance for which to retrieve the LView.
  57726. */
  57727. function getComponentLView(target) {
  57728. const lContext = loadLContext(target);
  57729. const nodeIndx = lContext.nodeIndex;
  57730. const lView = lContext.lView;
  57731. const componentLView = lView[nodeIndx];
  57732. ngDevMode && assertLView(componentLView);
  57733. return componentLView;
  57734. }
  57735. /** Asserts that a value is a DOM Element. */
  57736. function assertDomElement(value) {
  57737. if (typeof Element !== 'undefined' && !(value instanceof Element)) {
  57738. throw new Error('Expecting instance of DOM Element');
  57739. }
  57740. }
  57741. /**
  57742. * @license
  57743. * Copyright Google LLC All Rights Reserved.
  57744. *
  57745. * Use of this source code is governed by an MIT-style license that can be
  57746. * found in the LICENSE file at https://angular.io/license
  57747. */
  57748. /**
  57749. * Marks a component for check (in case of OnPush components) and synchronously
  57750. * performs change detection on the application this component belongs to.
  57751. *
  57752. * @param component Component to {@link ChangeDetectorRef#markForCheck mark for check}.
  57753. *
  57754. * @publicApi
  57755. * @globalApi ng
  57756. */
  57757. function applyChanges(component) {
  57758. markDirty(component);
  57759. getRootComponents(component).forEach(rootComponent => detectChanges(rootComponent));
  57760. }
  57761. /**
  57762. * @license
  57763. * Copyright Google LLC All Rights Reserved.
  57764. *
  57765. * Use of this source code is governed by an MIT-style license that can be
  57766. * found in the LICENSE file at https://angular.io/license
  57767. */
  57768. /**
  57769. * This file introduces series of globally accessible debug tools
  57770. * to allow for the Angular debugging story to function.
  57771. *
  57772. * To see this in action run the following command:
  57773. *
  57774. * bazel run --config=ivy
  57775. * //packages/core/test/bundling/todo:devserver
  57776. *
  57777. * Then load `localhost:5432` and start using the console tools.
  57778. */
  57779. /**
  57780. * This value reflects the property on the window where the dev
  57781. * tools are patched (window.ng).
  57782. * */
  57783. const GLOBAL_PUBLISH_EXPANDO_KEY = 'ng';
  57784. let _published = false;
  57785. /**
  57786. * Publishes a collection of default debug tools onto`window.ng`.
  57787. *
  57788. * These functions are available globally when Angular is in development
  57789. * mode and are automatically stripped away from prod mode is on.
  57790. */
  57791. function publishDefaultGlobalUtils() {
  57792. if (!_published) {
  57793. _published = true;
  57794. publishGlobalUtil('getComponent', getComponent);
  57795. publishGlobalUtil('getContext', getContext);
  57796. publishGlobalUtil('getListeners', getListeners);
  57797. publishGlobalUtil('getOwningComponent', getOwningComponent);
  57798. publishGlobalUtil('getHostElement', getHostElement);
  57799. publishGlobalUtil('getInjector', getInjector);
  57800. publishGlobalUtil('getRootComponents', getRootComponents);
  57801. publishGlobalUtil('getDirectives', getDirectives);
  57802. publishGlobalUtil('applyChanges', applyChanges);
  57803. }
  57804. }
  57805. /**
  57806. * Publishes the given function to `window.ng` so that it can be
  57807. * used from the browser console when an application is not in production.
  57808. */
  57809. function publishGlobalUtil(name, fn) {
  57810. if (typeof COMPILED === 'undefined' || !COMPILED) {
  57811. // Note: we can't export `ng` when using closure enhanced optimization as:
  57812. // - closure declares globals itself for minified names, which sometimes clobber our `ng` global
  57813. // - we can't declare a closure extern as the namespace `ng` is already used within Google
  57814. // for typings for AngularJS (via `goog.provide('ng....')`).
  57815. const w = _global;
  57816. ngDevMode && assertDefined(fn, 'function not defined');
  57817. if (w) {
  57818. let container = w[GLOBAL_PUBLISH_EXPANDO_KEY];
  57819. if (!container) {
  57820. container = w[GLOBAL_PUBLISH_EXPANDO_KEY] = {};
  57821. }
  57822. container[name] = fn;
  57823. }
  57824. }
  57825. }
  57826. /**
  57827. * @license
  57828. * Copyright Google LLC All Rights Reserved.
  57829. *
  57830. * Use of this source code is governed by an MIT-style license that can be
  57831. * found in the LICENSE file at https://angular.io/license
  57832. */
  57833. const ɵ0$7 = (token, notFoundValue) => {
  57834. throwProviderNotFoundError(token, 'NullInjector');
  57835. };
  57836. // TODO: A hack to not pull in the NullInjector from @angular/core.
  57837. const NULL_INJECTOR$1 = {
  57838. get: ɵ0$7
  57839. };
  57840. /**
  57841. * Bootstraps a Component into an existing host element and returns an instance
  57842. * of the component.
  57843. *
  57844. * Use this function to bootstrap a component into the DOM tree. Each invocation
  57845. * of this function will create a separate tree of components, injectors and
  57846. * change detection cycles and lifetimes. To dynamically insert a new component
  57847. * into an existing tree such that it shares the same injection, change detection
  57848. * and object lifetime, use {@link ViewContainer#createComponent}.
  57849. *
  57850. * @param componentType Component to bootstrap
  57851. * @param options Optional parameters which control bootstrapping
  57852. */
  57853. function renderComponent$1(componentType /* Type as workaround for: Microsoft/TypeScript/issues/4881 */, opts = {}) {
  57854. ngDevMode && publishDefaultGlobalUtils();
  57855. ngDevMode && assertComponentType(componentType);
  57856. const rendererFactory = opts.rendererFactory || domRendererFactory3;
  57857. const sanitizer = opts.sanitizer || null;
  57858. const componentDef = getComponentDef(componentType);
  57859. if (componentDef.type != componentType)
  57860. componentDef.type = componentType;
  57861. // The first index of the first selector is the tag name.
  57862. const componentTag = componentDef.selectors[0][0];
  57863. const hostRenderer = rendererFactory.createRenderer(null, null);
  57864. const hostRNode = locateHostElement(hostRenderer, opts.host || componentTag, componentDef.encapsulation);
  57865. const rootFlags = componentDef.onPush ? 64 /* Dirty */ | 512 /* IsRoot */ :
  57866. 16 /* CheckAlways */ | 512 /* IsRoot */;
  57867. const rootContext = createRootContext(opts.scheduler, opts.playerHandler);
  57868. const renderer = rendererFactory.createRenderer(hostRNode, componentDef);
  57869. const rootTView = createTView(0 /* Root */, null, null, 1, 0, null, null, null, null, null);
  57870. const rootView = createLView(null, rootTView, rootContext, rootFlags, null, null, rendererFactory, renderer, null, opts.injector || null);
  57871. enterView(rootView);
  57872. let component;
  57873. try {
  57874. if (rendererFactory.begin)
  57875. rendererFactory.begin();
  57876. const componentView = createRootComponentView(hostRNode, componentDef, rootView, rendererFactory, renderer, sanitizer);
  57877. component = createRootComponent(componentView, componentDef, rootView, rootContext, opts.hostFeatures || null);
  57878. // create mode pass
  57879. renderView(rootTView, rootView, null);
  57880. // update mode pass
  57881. refreshView(rootTView, rootView, null, null);
  57882. }
  57883. finally {
  57884. leaveView();
  57885. if (rendererFactory.end)
  57886. rendererFactory.end();
  57887. }
  57888. return component;
  57889. }
  57890. /**
  57891. * Creates the root component view and the root component node.
  57892. *
  57893. * @param rNode Render host element.
  57894. * @param def ComponentDef
  57895. * @param rootView The parent view where the host node is stored
  57896. * @param rendererFactory Factory to be used for creating child renderers.
  57897. * @param hostRenderer The current renderer
  57898. * @param sanitizer The sanitizer, if provided
  57899. *
  57900. * @returns Component view created
  57901. */
  57902. function createRootComponentView(rNode, def, rootView, rendererFactory, hostRenderer, sanitizer) {
  57903. const tView = rootView[TVIEW];
  57904. const index = HEADER_OFFSET;
  57905. ngDevMode && assertIndexInRange(rootView, index);
  57906. rootView[index] = rNode;
  57907. // '#host' is added here as we don't know the real host DOM name (we don't want to read it) and at
  57908. // the same time we want to communicate the the debug `TNode` that this is a special `TNode`
  57909. // representing a host element.
  57910. const tNode = getOrCreateTNode(tView, index, 2 /* Element */, '#host', null);
  57911. const mergedAttrs = tNode.mergedAttrs = def.hostAttrs;
  57912. if (mergedAttrs !== null) {
  57913. computeStaticStyling(tNode, mergedAttrs, true);
  57914. if (rNode !== null) {
  57915. setUpAttributes(hostRenderer, rNode, mergedAttrs);
  57916. if (tNode.classes !== null) {
  57917. writeDirectClass(hostRenderer, rNode, tNode.classes);
  57918. }
  57919. if (tNode.styles !== null) {
  57920. writeDirectStyle(hostRenderer, rNode, tNode.styles);
  57921. }
  57922. }
  57923. }
  57924. const viewRenderer = rendererFactory.createRenderer(rNode, def);
  57925. const componentView = createLView(rootView, getOrCreateTComponentView(def), null, def.onPush ? 64 /* Dirty */ : 16 /* CheckAlways */, rootView[index], tNode, rendererFactory, viewRenderer, sanitizer || null, null);
  57926. if (tView.firstCreatePass) {
  57927. diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, rootView), tView, def.type);
  57928. markAsComponentHost(tView, tNode);
  57929. initTNodeFlags(tNode, rootView.length, 1);
  57930. }
  57931. addToViewTree(rootView, componentView);
  57932. // Store component view at node index, with node as the HOST
  57933. return rootView[index] = componentView;
  57934. }
  57935. /**
  57936. * Creates a root component and sets it up with features and host bindings. Shared by
  57937. * renderComponent() and ViewContainerRef.createComponent().
  57938. */
  57939. function createRootComponent(componentView, componentDef, rootLView, rootContext, hostFeatures) {
  57940. const tView = rootLView[TVIEW];
  57941. // Create directive instance with factory() and store at next index in viewData
  57942. const component = instantiateRootComponent(tView, rootLView, componentDef);
  57943. rootContext.components.push(component);
  57944. componentView[CONTEXT] = component;
  57945. hostFeatures && hostFeatures.forEach((feature) => feature(component, componentDef));
  57946. // We want to generate an empty QueryList for root content queries for backwards
  57947. // compatibility with ViewEngine.
  57948. if (componentDef.contentQueries) {
  57949. const tNode = getCurrentTNode();
  57950. ngDevMode && assertDefined(tNode, 'TNode expected');
  57951. componentDef.contentQueries(1 /* Create */, component, tNode.directiveStart);
  57952. }
  57953. const rootTNode = getCurrentTNode();
  57954. ngDevMode && assertDefined(rootTNode, 'tNode should have been already created');
  57955. if (tView.firstCreatePass &&
  57956. (componentDef.hostBindings !== null || componentDef.hostAttrs !== null)) {
  57957. setSelectedIndex(rootTNode.index);
  57958. const rootTView = rootLView[TVIEW];
  57959. registerHostBindingOpCodes(rootTView, rootTNode, rootLView, rootTNode.directiveStart, rootTNode.directiveEnd, componentDef);
  57960. invokeHostBindingsInCreationMode(componentDef, component);
  57961. }
  57962. return component;
  57963. }
  57964. function createRootContext(scheduler, playerHandler) {
  57965. return {
  57966. components: [],
  57967. scheduler: scheduler || defaultScheduler,
  57968. clean: CLEAN_PROMISE,
  57969. playerHandler: playerHandler || null,
  57970. flags: 0 /* Empty */
  57971. };
  57972. }
  57973. /**
  57974. * Used to enable lifecycle hooks on the root component.
  57975. *
  57976. * Include this feature when calling `renderComponent` if the root component
  57977. * you are rendering has lifecycle hooks defined. Otherwise, the hooks won't
  57978. * be called properly.
  57979. *
  57980. * Example:
  57981. *
  57982. * ```
  57983. * renderComponent(AppComponent, {hostFeatures: [LifecycleHooksFeature]});
  57984. * ```
  57985. */
  57986. function LifecycleHooksFeature(component, def) {
  57987. const lView = readPatchedLView(component);
  57988. ngDevMode && assertDefined(lView, 'LView is required');
  57989. const tView = lView[TVIEW];
  57990. const tNode = getCurrentTNode();
  57991. ngDevMode && assertDefined(tNode, 'TNode is required');
  57992. registerPostOrderHooks(tView, tNode);
  57993. }
  57994. /**
  57995. * Wait on component until it is rendered.
  57996. *
  57997. * This function returns a `Promise` which is resolved when the component's
  57998. * change detection is executed. This is determined by finding the scheduler
  57999. * associated with the `component`'s render tree and waiting until the scheduler
  58000. * flushes. If nothing is scheduled, the function returns a resolved promise.
  58001. *
  58002. * Example:
  58003. * ```
  58004. * await whenRendered(myComponent);
  58005. * ```
  58006. *
  58007. * @param component Component to wait upon
  58008. * @returns Promise which resolves when the component is rendered.
  58009. */
  58010. function whenRendered(component) {
  58011. return getRootContext(component).clean;
  58012. }
  58013. /**
  58014. * @license
  58015. * Copyright Google LLC All Rights Reserved.
  58016. *
  58017. * Use of this source code is governed by an MIT-style license that can be
  58018. * found in the LICENSE file at https://angular.io/license
  58019. */
  58020. function getSuperType(type) {
  58021. return Object.getPrototypeOf(type.prototype).constructor;
  58022. }
  58023. /**
  58024. * Merges the definition from a super class to a sub class.
  58025. * @param definition The definition that is a SubClass of another directive of component
  58026. *
  58027. * @codeGenApi
  58028. */
  58029. function ɵɵInheritDefinitionFeature(definition) {
  58030. let superType = getSuperType(definition.type);
  58031. let shouldInheritFields = true;
  58032. const inheritanceChain = [definition];
  58033. while (superType) {
  58034. let superDef = undefined;
  58035. if (isComponentDef(definition)) {
  58036. // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
  58037. superDef = superType.ɵcmp || superType.ɵdir;
  58038. }
  58039. else {
  58040. if (superType.ɵcmp) {
  58041. throw new Error('Directives cannot inherit Components');
  58042. }
  58043. // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
  58044. superDef = superType.ɵdir;
  58045. }
  58046. if (superDef) {
  58047. if (shouldInheritFields) {
  58048. inheritanceChain.push(superDef);
  58049. // Some fields in the definition may be empty, if there were no values to put in them that
  58050. // would've justified object creation. Unwrap them if necessary.
  58051. const writeableDef = definition;
  58052. writeableDef.inputs = maybeUnwrapEmpty(definition.inputs);
  58053. writeableDef.declaredInputs = maybeUnwrapEmpty(definition.declaredInputs);
  58054. writeableDef.outputs = maybeUnwrapEmpty(definition.outputs);
  58055. // Merge hostBindings
  58056. const superHostBindings = superDef.hostBindings;
  58057. superHostBindings && inheritHostBindings(definition, superHostBindings);
  58058. // Merge queries
  58059. const superViewQuery = superDef.viewQuery;
  58060. const superContentQueries = superDef.contentQueries;
  58061. superViewQuery && inheritViewQuery(definition, superViewQuery);
  58062. superContentQueries && inheritContentQueries(definition, superContentQueries);
  58063. // Merge inputs and outputs
  58064. fillProperties(definition.inputs, superDef.inputs);
  58065. fillProperties(definition.declaredInputs, superDef.declaredInputs);
  58066. fillProperties(definition.outputs, superDef.outputs);
  58067. // Merge animations metadata.
  58068. // If `superDef` is a Component, the `data` field is present (defaults to an empty object).
  58069. if (isComponentDef(superDef) && superDef.data.animation) {
  58070. // If super def is a Component, the `definition` is also a Component, since Directives can
  58071. // not inherit Components (we throw an error above and cannot reach this code).
  58072. const defData = definition.data;
  58073. defData.animation = (defData.animation || []).concat(superDef.data.animation);
  58074. }
  58075. }
  58076. // Run parent features
  58077. const features = superDef.features;
  58078. if (features) {
  58079. for (let i = 0; i < features.length; i++) {
  58080. const feature = features[i];
  58081. if (feature && feature.ngInherit) {
  58082. feature(definition);
  58083. }
  58084. // If `InheritDefinitionFeature` is a part of the current `superDef`, it means that this
  58085. // def already has all the necessary information inherited from its super class(es), so we
  58086. // can stop merging fields from super classes. However we need to iterate through the
  58087. // prototype chain to look for classes that might contain other "features" (like
  58088. // NgOnChanges), which we should invoke for the original `definition`. We set the
  58089. // `shouldInheritFields` flag to indicate that, essentially skipping fields inheritance
  58090. // logic and only invoking functions from the "features" list.
  58091. if (feature === ɵɵInheritDefinitionFeature) {
  58092. shouldInheritFields = false;
  58093. }
  58094. }
  58095. }
  58096. }
  58097. superType = Object.getPrototypeOf(superType);
  58098. }
  58099. mergeHostAttrsAcrossInheritance(inheritanceChain);
  58100. }
  58101. /**
  58102. * Merge the `hostAttrs` and `hostVars` from the inherited parent to the base class.
  58103. *
  58104. * @param inheritanceChain A list of `WritableDefs` starting at the top most type and listing
  58105. * sub-types in order. For each type take the `hostAttrs` and `hostVars` and merge it with the child
  58106. * type.
  58107. */
  58108. function mergeHostAttrsAcrossInheritance(inheritanceChain) {
  58109. let hostVars = 0;
  58110. let hostAttrs = null;
  58111. // We process the inheritance order from the base to the leaves here.
  58112. for (let i = inheritanceChain.length - 1; i >= 0; i--) {
  58113. const def = inheritanceChain[i];
  58114. // For each `hostVars`, we need to add the superclass amount.
  58115. def.hostVars = (hostVars += def.hostVars);
  58116. // for each `hostAttrs` we need to merge it with superclass.
  58117. def.hostAttrs =
  58118. mergeHostAttrs(def.hostAttrs, hostAttrs = mergeHostAttrs(hostAttrs, def.hostAttrs));
  58119. }
  58120. }
  58121. function maybeUnwrapEmpty(value) {
  58122. if (value === EMPTY_OBJ) {
  58123. return {};
  58124. }
  58125. else if (value === EMPTY_ARRAY) {
  58126. return [];
  58127. }
  58128. else {
  58129. return value;
  58130. }
  58131. }
  58132. function inheritViewQuery(definition, superViewQuery) {
  58133. const prevViewQuery = definition.viewQuery;
  58134. if (prevViewQuery) {
  58135. definition.viewQuery = (rf, ctx) => {
  58136. superViewQuery(rf, ctx);
  58137. prevViewQuery(rf, ctx);
  58138. };
  58139. }
  58140. else {
  58141. definition.viewQuery = superViewQuery;
  58142. }
  58143. }
  58144. function inheritContentQueries(definition, superContentQueries) {
  58145. const prevContentQueries = definition.contentQueries;
  58146. if (prevContentQueries) {
  58147. definition.contentQueries = (rf, ctx, directiveIndex) => {
  58148. superContentQueries(rf, ctx, directiveIndex);
  58149. prevContentQueries(rf, ctx, directiveIndex);
  58150. };
  58151. }
  58152. else {
  58153. definition.contentQueries = superContentQueries;
  58154. }
  58155. }
  58156. function inheritHostBindings(definition, superHostBindings) {
  58157. const prevHostBindings = definition.hostBindings;
  58158. if (prevHostBindings) {
  58159. definition.hostBindings = (rf, ctx) => {
  58160. superHostBindings(rf, ctx);
  58161. prevHostBindings(rf, ctx);
  58162. };
  58163. }
  58164. else {
  58165. definition.hostBindings = superHostBindings;
  58166. }
  58167. }
  58168. /**
  58169. * @license
  58170. * Copyright Google LLC All Rights Reserved.
  58171. *
  58172. * Use of this source code is governed by an MIT-style license that can be
  58173. * found in the LICENSE file at https://angular.io/license
  58174. */
  58175. /**
  58176. * Fields which exist on either directive or component definitions, and need to be copied from
  58177. * parent to child classes by the `ɵɵCopyDefinitionFeature`.
  58178. */
  58179. const COPY_DIRECTIVE_FIELDS = [
  58180. // The child class should use the providers of its parent.
  58181. 'providersResolver',
  58182. ];
  58183. /**
  58184. * Fields which exist only on component definitions, and need to be copied from parent to child
  58185. * classes by the `ɵɵCopyDefinitionFeature`.
  58186. *
  58187. * The type here allows any field of `ComponentDef` which is not also a property of `DirectiveDef`,
  58188. * since those should go in `COPY_DIRECTIVE_FIELDS` above.
  58189. */
  58190. const COPY_COMPONENT_FIELDS = [
  58191. // The child class should use the template function of its parent, including all template
  58192. // semantics.
  58193. 'template',
  58194. 'decls',
  58195. 'consts',
  58196. 'vars',
  58197. 'onPush',
  58198. 'ngContentSelectors',
  58199. // The child class should use the CSS styles of its parent, including all styling semantics.
  58200. 'styles',
  58201. 'encapsulation',
  58202. // The child class should be checked by the runtime in the same way as its parent.
  58203. 'schemas',
  58204. ];
  58205. /**
  58206. * Copies the fields not handled by the `ɵɵInheritDefinitionFeature` from the supertype of a
  58207. * definition.
  58208. *
  58209. * This exists primarily to support ngcc migration of an existing View Engine pattern, where an
  58210. * entire decorator is inherited from a parent to a child class. When ngcc detects this case, it
  58211. * generates a skeleton definition on the child class, and applies this feature.
  58212. *
  58213. * The `ɵɵCopyDefinitionFeature` then copies any needed fields from the parent class' definition,
  58214. * including things like the component template function.
  58215. *
  58216. * @param definition The definition of a child class which inherits from a parent class with its
  58217. * own definition.
  58218. *
  58219. * @codeGenApi
  58220. */
  58221. function ɵɵCopyDefinitionFeature(definition) {
  58222. let superType = getSuperType(definition.type);
  58223. let superDef = undefined;
  58224. if (isComponentDef(definition)) {
  58225. // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
  58226. superDef = superType.ɵcmp;
  58227. }
  58228. else {
  58229. // Don't use getComponentDef/getDirectiveDef. This logic relies on inheritance.
  58230. superDef = superType.ɵdir;
  58231. }
  58232. // Needed because `definition` fields are readonly.
  58233. const defAny = definition;
  58234. // Copy over any fields that apply to either directives or components.
  58235. for (const field of COPY_DIRECTIVE_FIELDS) {
  58236. defAny[field] = superDef[field];
  58237. }
  58238. if (isComponentDef(superDef)) {
  58239. // Copy over any component-specific fields.
  58240. for (const field of COPY_COMPONENT_FIELDS) {
  58241. defAny[field] = superDef[field];
  58242. }
  58243. }
  58244. }
  58245. /**
  58246. * @license
  58247. * Copyright Google LLC All Rights Reserved.
  58248. *
  58249. * Use of this source code is governed by an MIT-style license that can be
  58250. * found in the LICENSE file at https://angular.io/license
  58251. */
  58252. let _symbolIterator = null;
  58253. function getSymbolIterator() {
  58254. if (!_symbolIterator) {
  58255. const Symbol = _global['Symbol'];
  58256. if (Symbol && Symbol.iterator) {
  58257. _symbolIterator = Symbol.iterator;
  58258. }
  58259. else {
  58260. // es6-shim specific logic
  58261. const keys = Object.getOwnPropertyNames(Map.prototype);
  58262. for (let i = 0; i < keys.length; ++i) {
  58263. const key = keys[i];
  58264. if (key !== 'entries' && key !== 'size' &&
  58265. Map.prototype[key] === Map.prototype['entries']) {
  58266. _symbolIterator = key;
  58267. }
  58268. }
  58269. }
  58270. }
  58271. return _symbolIterator;
  58272. }
  58273. /**
  58274. * @license
  58275. * Copyright Google LLC All Rights Reserved.
  58276. *
  58277. * Use of this source code is governed by an MIT-style license that can be
  58278. * found in the LICENSE file at https://angular.io/license
  58279. */
  58280. function devModeEqual(a, b) {
  58281. const isListLikeIterableA = isListLikeIterable(a);
  58282. const isListLikeIterableB = isListLikeIterable(b);
  58283. if (isListLikeIterableA && isListLikeIterableB) {
  58284. return areIterablesEqual(a, b, devModeEqual);
  58285. }
  58286. else {
  58287. const isAObject = a && (typeof a === 'object' || typeof a === 'function');
  58288. const isBObject = b && (typeof b === 'object' || typeof b === 'function');
  58289. if (!isListLikeIterableA && isAObject && !isListLikeIterableB && isBObject) {
  58290. return true;
  58291. }
  58292. else {
  58293. return Object.is(a, b);
  58294. }
  58295. }
  58296. }
  58297. /**
  58298. * Indicates that the result of a {@link Pipe} transformation has changed even though the
  58299. * reference has not changed.
  58300. *
  58301. * Wrapped values are unwrapped automatically during the change detection, and the unwrapped value
  58302. * is stored.
  58303. *
  58304. * Example:
  58305. *
  58306. * ```
  58307. * if (this._latestValue === this._latestReturnedValue) {
  58308. * return this._latestReturnedValue;
  58309. * } else {
  58310. * this._latestReturnedValue = this._latestValue;
  58311. * return WrappedValue.wrap(this._latestValue); // this will force update
  58312. * }
  58313. * ```
  58314. *
  58315. * @publicApi
  58316. * @deprecated from v10 stop using. (No replacement, deemed unnecessary.)
  58317. */
  58318. class WrappedValue {
  58319. constructor(value) {
  58320. this.wrapped = value;
  58321. }
  58322. /** Creates a wrapped value. */
  58323. static wrap(value) {
  58324. return new WrappedValue(value);
  58325. }
  58326. /**
  58327. * Returns the underlying value of a wrapped value.
  58328. * Returns the given `value` when it is not wrapped.
  58329. **/
  58330. static unwrap(value) {
  58331. return WrappedValue.isWrapped(value) ? value.wrapped : value;
  58332. }
  58333. /** Returns true if `value` is a wrapped value. */
  58334. static isWrapped(value) {
  58335. return value instanceof WrappedValue;
  58336. }
  58337. }
  58338. function isListLikeIterable(obj) {
  58339. if (!isJsObject(obj))
  58340. return false;
  58341. return Array.isArray(obj) ||
  58342. (!(obj instanceof Map) && // JS Map are iterables but return entries as [k, v]
  58343. getSymbolIterator() in obj); // JS Iterable have a Symbol.iterator prop
  58344. }
  58345. function areIterablesEqual(a, b, comparator) {
  58346. const iterator1 = a[getSymbolIterator()]();
  58347. const iterator2 = b[getSymbolIterator()]();
  58348. while (true) {
  58349. const item1 = iterator1.next();
  58350. const item2 = iterator2.next();
  58351. if (item1.done && item2.done)
  58352. return true;
  58353. if (item1.done || item2.done)
  58354. return false;
  58355. if (!comparator(item1.value, item2.value))
  58356. return false;
  58357. }
  58358. }
  58359. function iterateListLike(obj, fn) {
  58360. if (Array.isArray(obj)) {
  58361. for (let i = 0; i < obj.length; i++) {
  58362. fn(obj[i]);
  58363. }
  58364. }
  58365. else {
  58366. const iterator = obj[getSymbolIterator()]();
  58367. let item;
  58368. while (!((item = iterator.next()).done)) {
  58369. fn(item.value);
  58370. }
  58371. }
  58372. }
  58373. function isJsObject(o) {
  58374. return o !== null && (typeof o === 'function' || typeof o === 'object');
  58375. }
  58376. /**
  58377. * @license
  58378. * Copyright Google LLC All Rights Reserved.
  58379. *
  58380. * Use of this source code is governed by an MIT-style license that can be
  58381. * found in the LICENSE file at https://angular.io/license
  58382. */
  58383. // TODO(misko): consider inlining
  58384. /** Updates binding and returns the value. */
  58385. function updateBinding(lView, bindingIndex, value) {
  58386. return lView[bindingIndex] = value;
  58387. }
  58388. /** Gets the current binding value. */
  58389. function getBinding(lView, bindingIndex) {
  58390. ngDevMode && assertIndexInRange(lView, bindingIndex);
  58391. ngDevMode &&
  58392. assertNotSame(lView[bindingIndex], NO_CHANGE, 'Stored value should never be NO_CHANGE.');
  58393. return lView[bindingIndex];
  58394. }
  58395. /**
  58396. * Updates binding if changed, then returns whether it was updated.
  58397. *
  58398. * This function also checks the `CheckNoChangesMode` and throws if changes are made.
  58399. * Some changes (Objects/iterables) during `CheckNoChangesMode` are exempt to comply with VE
  58400. * behavior.
  58401. *
  58402. * @param lView current `LView`
  58403. * @param bindingIndex The binding in the `LView` to check
  58404. * @param value New value to check against `lView[bindingIndex]`
  58405. * @returns `true` if the bindings has changed. (Throws if binding has changed during
  58406. * `CheckNoChangesMode`)
  58407. */
  58408. function bindingUpdated(lView, bindingIndex, value) {
  58409. ngDevMode && assertNotSame(value, NO_CHANGE, 'Incoming value should never be NO_CHANGE.');
  58410. ngDevMode &&
  58411. assertLessThan(bindingIndex, lView.length, `Slot should have been initialized to NO_CHANGE`);
  58412. const oldValue = lView[bindingIndex];
  58413. if (Object.is(oldValue, value)) {
  58414. return false;
  58415. }
  58416. else {
  58417. if (ngDevMode && isInCheckNoChangesMode()) {
  58418. // View engine didn't report undefined values as changed on the first checkNoChanges pass
  58419. // (before the change detection was run).
  58420. const oldValueToCompare = oldValue !== NO_CHANGE ? oldValue : undefined;
  58421. if (!devModeEqual(oldValueToCompare, value)) {
  58422. const details = getExpressionChangedErrorDetails(lView, bindingIndex, oldValueToCompare, value);
  58423. throwErrorIfNoChangesMode(oldValue === NO_CHANGE, details.oldValue, details.newValue, details.propName);
  58424. }
  58425. // There was a change, but the `devModeEqual` decided that the change is exempt from an error.
  58426. // For this reason we exit as if no change. The early exit is needed to prevent the changed
  58427. // value to be written into `LView` (If we would write the new value that we would not see it
  58428. // as change on next CD.)
  58429. return false;
  58430. }
  58431. lView[bindingIndex] = value;
  58432. return true;
  58433. }
  58434. }
  58435. /** Updates 2 bindings if changed, then returns whether either was updated. */
  58436. function bindingUpdated2(lView, bindingIndex, exp1, exp2) {
  58437. const different = bindingUpdated(lView, bindingIndex, exp1);
  58438. return bindingUpdated(lView, bindingIndex + 1, exp2) || different;
  58439. }
  58440. /** Updates 3 bindings if changed, then returns whether any was updated. */
  58441. function bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) {
  58442. const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);
  58443. return bindingUpdated(lView, bindingIndex + 2, exp3) || different;
  58444. }
  58445. /** Updates 4 bindings if changed, then returns whether any was updated. */
  58446. function bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) {
  58447. const different = bindingUpdated2(lView, bindingIndex, exp1, exp2);
  58448. return bindingUpdated2(lView, bindingIndex + 2, exp3, exp4) || different;
  58449. }
  58450. /**
  58451. * @license
  58452. * Copyright Google LLC All Rights Reserved.
  58453. *
  58454. * Use of this source code is governed by an MIT-style license that can be
  58455. * found in the LICENSE file at https://angular.io/license
  58456. */
  58457. /**
  58458. * Updates the value of or removes a bound attribute on an Element.
  58459. *
  58460. * Used in the case of `[attr.title]="value"`
  58461. *
  58462. * @param name name The name of the attribute.
  58463. * @param value value The attribute is removed when value is `null` or `undefined`.
  58464. * Otherwise the attribute value is set to the stringified value.
  58465. * @param sanitizer An optional function used to sanitize the value.
  58466. * @param namespace Optional namespace to use when setting the attribute.
  58467. *
  58468. * @codeGenApi
  58469. */
  58470. function ɵɵattribute(name, value, sanitizer, namespace) {
  58471. const lView = getLView();
  58472. const bindingIndex = nextBindingIndex();
  58473. if (bindingUpdated(lView, bindingIndex, value)) {
  58474. const tView = getTView();
  58475. const tNode = getSelectedTNode();
  58476. elementAttributeInternal(tNode, lView, name, value, sanitizer, namespace);
  58477. ngDevMode && storePropertyBindingMetadata(tView.data, tNode, 'attr.' + name, bindingIndex);
  58478. }
  58479. return ɵɵattribute;
  58480. }
  58481. /**
  58482. * @license
  58483. * Copyright Google LLC All Rights Reserved.
  58484. *
  58485. * Use of this source code is governed by an MIT-style license that can be
  58486. * found in the LICENSE file at https://angular.io/license
  58487. */
  58488. /**
  58489. * Create interpolation bindings with a variable number of expressions.
  58490. *
  58491. * If there are 1 to 8 expressions `interpolation1()` to `interpolation8()` should be used instead.
  58492. * Those are faster because there is no need to create an array of expressions and iterate over it.
  58493. *
  58494. * `values`:
  58495. * - has static text at even indexes,
  58496. * - has evaluated expressions at odd indexes.
  58497. *
  58498. * Returns the concatenated string when any of the arguments changes, `NO_CHANGE` otherwise.
  58499. */
  58500. function interpolationV(lView, values) {
  58501. ngDevMode && assertLessThan(2, values.length, 'should have at least 3 values');
  58502. ngDevMode && assertEqual(values.length % 2, 1, 'should have an odd number of values');
  58503. let isBindingUpdated = false;
  58504. let bindingIndex = getBindingIndex();
  58505. for (let i = 1; i < values.length; i += 2) {
  58506. // Check if bindings (odd indexes) have changed
  58507. isBindingUpdated = bindingUpdated(lView, bindingIndex++, values[i]) || isBindingUpdated;
  58508. }
  58509. setBindingIndex(bindingIndex);
  58510. if (!isBindingUpdated) {
  58511. return NO_CHANGE;
  58512. }
  58513. // Build the updated content
  58514. let content = values[0];
  58515. for (let i = 1; i < values.length; i += 2) {
  58516. content += renderStringify(values[i]) + values[i + 1];
  58517. }
  58518. return content;
  58519. }
  58520. /**
  58521. * Creates an interpolation binding with 1 expression.
  58522. *
  58523. * @param prefix static value used for concatenation only.
  58524. * @param v0 value checked for change.
  58525. * @param suffix static value used for concatenation only.
  58526. */
  58527. function interpolation1(lView, prefix, v0, suffix) {
  58528. const different = bindingUpdated(lView, nextBindingIndex(), v0);
  58529. return different ? prefix + renderStringify(v0) + suffix : NO_CHANGE;
  58530. }
  58531. /**
  58532. * Creates an interpolation binding with 2 expressions.
  58533. */
  58534. function interpolation2(lView, prefix, v0, i0, v1, suffix) {
  58535. const bindingIndex = getBindingIndex();
  58536. const different = bindingUpdated2(lView, bindingIndex, v0, v1);
  58537. incrementBindingIndex(2);
  58538. return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + suffix : NO_CHANGE;
  58539. }
  58540. /**
  58541. * Creates an interpolation binding with 3 expressions.
  58542. */
  58543. function interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix) {
  58544. const bindingIndex = getBindingIndex();
  58545. const different = bindingUpdated3(lView, bindingIndex, v0, v1, v2);
  58546. incrementBindingIndex(3);
  58547. return different ?
  58548. prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + suffix :
  58549. NO_CHANGE;
  58550. }
  58551. /**
  58552. * Create an interpolation binding with 4 expressions.
  58553. */
  58554. function interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
  58555. const bindingIndex = getBindingIndex();
  58556. const different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
  58557. incrementBindingIndex(4);
  58558. return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +
  58559. renderStringify(v2) + i2 + renderStringify(v3) + suffix :
  58560. NO_CHANGE;
  58561. }
  58562. /**
  58563. * Creates an interpolation binding with 5 expressions.
  58564. */
  58565. function interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
  58566. const bindingIndex = getBindingIndex();
  58567. let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
  58568. different = bindingUpdated(lView, bindingIndex + 4, v4) || different;
  58569. incrementBindingIndex(5);
  58570. return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +
  58571. renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + suffix :
  58572. NO_CHANGE;
  58573. }
  58574. /**
  58575. * Creates an interpolation binding with 6 expressions.
  58576. */
  58577. function interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
  58578. const bindingIndex = getBindingIndex();
  58579. let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
  58580. different = bindingUpdated2(lView, bindingIndex + 4, v4, v5) || different;
  58581. incrementBindingIndex(6);
  58582. return different ?
  58583. prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 + renderStringify(v2) + i2 +
  58584. renderStringify(v3) + i3 + renderStringify(v4) + i4 + renderStringify(v5) + suffix :
  58585. NO_CHANGE;
  58586. }
  58587. /**
  58588. * Creates an interpolation binding with 7 expressions.
  58589. */
  58590. function interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
  58591. const bindingIndex = getBindingIndex();
  58592. let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
  58593. different = bindingUpdated3(lView, bindingIndex + 4, v4, v5, v6) || different;
  58594. incrementBindingIndex(7);
  58595. return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +
  58596. renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 +
  58597. renderStringify(v5) + i5 + renderStringify(v6) + suffix :
  58598. NO_CHANGE;
  58599. }
  58600. /**
  58601. * Creates an interpolation binding with 8 expressions.
  58602. */
  58603. function interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
  58604. const bindingIndex = getBindingIndex();
  58605. let different = bindingUpdated4(lView, bindingIndex, v0, v1, v2, v3);
  58606. different = bindingUpdated4(lView, bindingIndex + 4, v4, v5, v6, v7) || different;
  58607. incrementBindingIndex(8);
  58608. return different ? prefix + renderStringify(v0) + i0 + renderStringify(v1) + i1 +
  58609. renderStringify(v2) + i2 + renderStringify(v3) + i3 + renderStringify(v4) + i4 +
  58610. renderStringify(v5) + i5 + renderStringify(v6) + i6 + renderStringify(v7) + suffix :
  58611. NO_CHANGE;
  58612. }
  58613. /**
  58614. *
  58615. * Update an interpolated attribute on an element with single bound value surrounded by text.
  58616. *
  58617. * Used when the value passed to a property has 1 interpolated value in it:
  58618. *
  58619. * ```html
  58620. * <div attr.title="prefix{{v0}}suffix"></div>
  58621. * ```
  58622. *
  58623. * Its compiled representation is::
  58624. *
  58625. * ```ts
  58626. * ɵɵattributeInterpolate1('title', 'prefix', v0, 'suffix');
  58627. * ```
  58628. *
  58629. * @param attrName The name of the attribute to update
  58630. * @param prefix Static value used for concatenation only.
  58631. * @param v0 Value checked for change.
  58632. * @param suffix Static value used for concatenation only.
  58633. * @param sanitizer An optional sanitizer function
  58634. * @returns itself, so that it may be chained.
  58635. * @codeGenApi
  58636. */
  58637. function ɵɵattributeInterpolate1(attrName, prefix, v0, suffix, sanitizer, namespace) {
  58638. const lView = getLView();
  58639. const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
  58640. if (interpolatedValue !== NO_CHANGE) {
  58641. const tNode = getSelectedTNode();
  58642. elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
  58643. ngDevMode &&
  58644. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 1, prefix, suffix);
  58645. }
  58646. return ɵɵattributeInterpolate1;
  58647. }
  58648. /**
  58649. *
  58650. * Update an interpolated attribute on an element with 2 bound values surrounded by text.
  58651. *
  58652. * Used when the value passed to a property has 2 interpolated values in it:
  58653. *
  58654. * ```html
  58655. * <div attr.title="prefix{{v0}}-{{v1}}suffix"></div>
  58656. * ```
  58657. *
  58658. * Its compiled representation is::
  58659. *
  58660. * ```ts
  58661. * ɵɵattributeInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');
  58662. * ```
  58663. *
  58664. * @param attrName The name of the attribute to update
  58665. * @param prefix Static value used for concatenation only.
  58666. * @param v0 Value checked for change.
  58667. * @param i0 Static value used for concatenation only.
  58668. * @param v1 Value checked for change.
  58669. * @param suffix Static value used for concatenation only.
  58670. * @param sanitizer An optional sanitizer function
  58671. * @returns itself, so that it may be chained.
  58672. * @codeGenApi
  58673. */
  58674. function ɵɵattributeInterpolate2(attrName, prefix, v0, i0, v1, suffix, sanitizer, namespace) {
  58675. const lView = getLView();
  58676. const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
  58677. if (interpolatedValue !== NO_CHANGE) {
  58678. const tNode = getSelectedTNode();
  58679. elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
  58680. ngDevMode &&
  58681. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 2, prefix, i0, suffix);
  58682. }
  58683. return ɵɵattributeInterpolate2;
  58684. }
  58685. /**
  58686. *
  58687. * Update an interpolated attribute on an element with 3 bound values surrounded by text.
  58688. *
  58689. * Used when the value passed to a property has 3 interpolated values in it:
  58690. *
  58691. * ```html
  58692. * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
  58693. * ```
  58694. *
  58695. * Its compiled representation is::
  58696. *
  58697. * ```ts
  58698. * ɵɵattributeInterpolate3(
  58699. * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');
  58700. * ```
  58701. *
  58702. * @param attrName The name of the attribute to update
  58703. * @param prefix Static value used for concatenation only.
  58704. * @param v0 Value checked for change.
  58705. * @param i0 Static value used for concatenation only.
  58706. * @param v1 Value checked for change.
  58707. * @param i1 Static value used for concatenation only.
  58708. * @param v2 Value checked for change.
  58709. * @param suffix Static value used for concatenation only.
  58710. * @param sanitizer An optional sanitizer function
  58711. * @returns itself, so that it may be chained.
  58712. * @codeGenApi
  58713. */
  58714. function ɵɵattributeInterpolate3(attrName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer, namespace) {
  58715. const lView = getLView();
  58716. const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
  58717. if (interpolatedValue !== NO_CHANGE) {
  58718. const tNode = getSelectedTNode();
  58719. elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
  58720. ngDevMode &&
  58721. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 3, prefix, i0, i1, suffix);
  58722. }
  58723. return ɵɵattributeInterpolate3;
  58724. }
  58725. /**
  58726. *
  58727. * Update an interpolated attribute on an element with 4 bound values surrounded by text.
  58728. *
  58729. * Used when the value passed to a property has 4 interpolated values in it:
  58730. *
  58731. * ```html
  58732. * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
  58733. * ```
  58734. *
  58735. * Its compiled representation is::
  58736. *
  58737. * ```ts
  58738. * ɵɵattributeInterpolate4(
  58739. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
  58740. * ```
  58741. *
  58742. * @param attrName The name of the attribute to update
  58743. * @param prefix Static value used for concatenation only.
  58744. * @param v0 Value checked for change.
  58745. * @param i0 Static value used for concatenation only.
  58746. * @param v1 Value checked for change.
  58747. * @param i1 Static value used for concatenation only.
  58748. * @param v2 Value checked for change.
  58749. * @param i2 Static value used for concatenation only.
  58750. * @param v3 Value checked for change.
  58751. * @param suffix Static value used for concatenation only.
  58752. * @param sanitizer An optional sanitizer function
  58753. * @returns itself, so that it may be chained.
  58754. * @codeGenApi
  58755. */
  58756. function ɵɵattributeInterpolate4(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer, namespace) {
  58757. const lView = getLView();
  58758. const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
  58759. if (interpolatedValue !== NO_CHANGE) {
  58760. const tNode = getSelectedTNode();
  58761. elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
  58762. ngDevMode &&
  58763. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);
  58764. }
  58765. return ɵɵattributeInterpolate4;
  58766. }
  58767. /**
  58768. *
  58769. * Update an interpolated attribute on an element with 5 bound values surrounded by text.
  58770. *
  58771. * Used when the value passed to a property has 5 interpolated values in it:
  58772. *
  58773. * ```html
  58774. * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
  58775. * ```
  58776. *
  58777. * Its compiled representation is::
  58778. *
  58779. * ```ts
  58780. * ɵɵattributeInterpolate5(
  58781. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
  58782. * ```
  58783. *
  58784. * @param attrName The name of the attribute to update
  58785. * @param prefix Static value used for concatenation only.
  58786. * @param v0 Value checked for change.
  58787. * @param i0 Static value used for concatenation only.
  58788. * @param v1 Value checked for change.
  58789. * @param i1 Static value used for concatenation only.
  58790. * @param v2 Value checked for change.
  58791. * @param i2 Static value used for concatenation only.
  58792. * @param v3 Value checked for change.
  58793. * @param i3 Static value used for concatenation only.
  58794. * @param v4 Value checked for change.
  58795. * @param suffix Static value used for concatenation only.
  58796. * @param sanitizer An optional sanitizer function
  58797. * @returns itself, so that it may be chained.
  58798. * @codeGenApi
  58799. */
  58800. function ɵɵattributeInterpolate5(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer, namespace) {
  58801. const lView = getLView();
  58802. const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
  58803. if (interpolatedValue !== NO_CHANGE) {
  58804. const tNode = getSelectedTNode();
  58805. elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
  58806. ngDevMode &&
  58807. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);
  58808. }
  58809. return ɵɵattributeInterpolate5;
  58810. }
  58811. /**
  58812. *
  58813. * Update an interpolated attribute on an element with 6 bound values surrounded by text.
  58814. *
  58815. * Used when the value passed to a property has 6 interpolated values in it:
  58816. *
  58817. * ```html
  58818. * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
  58819. * ```
  58820. *
  58821. * Its compiled representation is::
  58822. *
  58823. * ```ts
  58824. * ɵɵattributeInterpolate6(
  58825. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
  58826. * ```
  58827. *
  58828. * @param attrName The name of the attribute to update
  58829. * @param prefix Static value used for concatenation only.
  58830. * @param v0 Value checked for change.
  58831. * @param i0 Static value used for concatenation only.
  58832. * @param v1 Value checked for change.
  58833. * @param i1 Static value used for concatenation only.
  58834. * @param v2 Value checked for change.
  58835. * @param i2 Static value used for concatenation only.
  58836. * @param v3 Value checked for change.
  58837. * @param i3 Static value used for concatenation only.
  58838. * @param v4 Value checked for change.
  58839. * @param i4 Static value used for concatenation only.
  58840. * @param v5 Value checked for change.
  58841. * @param suffix Static value used for concatenation only.
  58842. * @param sanitizer An optional sanitizer function
  58843. * @returns itself, so that it may be chained.
  58844. * @codeGenApi
  58845. */
  58846. function ɵɵattributeInterpolate6(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer, namespace) {
  58847. const lView = getLView();
  58848. const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
  58849. if (interpolatedValue !== NO_CHANGE) {
  58850. const tNode = getSelectedTNode();
  58851. elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
  58852. ngDevMode &&
  58853. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);
  58854. }
  58855. return ɵɵattributeInterpolate6;
  58856. }
  58857. /**
  58858. *
  58859. * Update an interpolated attribute on an element with 7 bound values surrounded by text.
  58860. *
  58861. * Used when the value passed to a property has 7 interpolated values in it:
  58862. *
  58863. * ```html
  58864. * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
  58865. * ```
  58866. *
  58867. * Its compiled representation is::
  58868. *
  58869. * ```ts
  58870. * ɵɵattributeInterpolate7(
  58871. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
  58872. * ```
  58873. *
  58874. * @param attrName The name of the attribute to update
  58875. * @param prefix Static value used for concatenation only.
  58876. * @param v0 Value checked for change.
  58877. * @param i0 Static value used for concatenation only.
  58878. * @param v1 Value checked for change.
  58879. * @param i1 Static value used for concatenation only.
  58880. * @param v2 Value checked for change.
  58881. * @param i2 Static value used for concatenation only.
  58882. * @param v3 Value checked for change.
  58883. * @param i3 Static value used for concatenation only.
  58884. * @param v4 Value checked for change.
  58885. * @param i4 Static value used for concatenation only.
  58886. * @param v5 Value checked for change.
  58887. * @param i5 Static value used for concatenation only.
  58888. * @param v6 Value checked for change.
  58889. * @param suffix Static value used for concatenation only.
  58890. * @param sanitizer An optional sanitizer function
  58891. * @returns itself, so that it may be chained.
  58892. * @codeGenApi
  58893. */
  58894. function ɵɵattributeInterpolate7(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer, namespace) {
  58895. const lView = getLView();
  58896. const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
  58897. if (interpolatedValue !== NO_CHANGE) {
  58898. const tNode = getSelectedTNode();
  58899. elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
  58900. ngDevMode &&
  58901. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);
  58902. }
  58903. return ɵɵattributeInterpolate7;
  58904. }
  58905. /**
  58906. *
  58907. * Update an interpolated attribute on an element with 8 bound values surrounded by text.
  58908. *
  58909. * Used when the value passed to a property has 8 interpolated values in it:
  58910. *
  58911. * ```html
  58912. * <div attr.title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
  58913. * ```
  58914. *
  58915. * Its compiled representation is::
  58916. *
  58917. * ```ts
  58918. * ɵɵattributeInterpolate8(
  58919. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
  58920. * ```
  58921. *
  58922. * @param attrName The name of the attribute to update
  58923. * @param prefix Static value used for concatenation only.
  58924. * @param v0 Value checked for change.
  58925. * @param i0 Static value used for concatenation only.
  58926. * @param v1 Value checked for change.
  58927. * @param i1 Static value used for concatenation only.
  58928. * @param v2 Value checked for change.
  58929. * @param i2 Static value used for concatenation only.
  58930. * @param v3 Value checked for change.
  58931. * @param i3 Static value used for concatenation only.
  58932. * @param v4 Value checked for change.
  58933. * @param i4 Static value used for concatenation only.
  58934. * @param v5 Value checked for change.
  58935. * @param i5 Static value used for concatenation only.
  58936. * @param v6 Value checked for change.
  58937. * @param i6 Static value used for concatenation only.
  58938. * @param v7 Value checked for change.
  58939. * @param suffix Static value used for concatenation only.
  58940. * @param sanitizer An optional sanitizer function
  58941. * @returns itself, so that it may be chained.
  58942. * @codeGenApi
  58943. */
  58944. function ɵɵattributeInterpolate8(attrName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer, namespace) {
  58945. const lView = getLView();
  58946. const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
  58947. if (interpolatedValue !== NO_CHANGE) {
  58948. const tNode = getSelectedTNode();
  58949. elementAttributeInternal(tNode, lView, attrName, interpolatedValue, sanitizer, namespace);
  58950. ngDevMode &&
  58951. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);
  58952. }
  58953. return ɵɵattributeInterpolate8;
  58954. }
  58955. /**
  58956. * Update an interpolated attribute on an element with 9 or more bound values surrounded by text.
  58957. *
  58958. * Used when the number of interpolated values exceeds 8.
  58959. *
  58960. * ```html
  58961. * <div
  58962. * title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
  58963. * ```
  58964. *
  58965. * Its compiled representation is::
  58966. *
  58967. * ```ts
  58968. * ɵɵattributeInterpolateV(
  58969. * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
  58970. * 'suffix']);
  58971. * ```
  58972. *
  58973. * @param attrName The name of the attribute to update.
  58974. * @param values The collection of values and the strings in-between those values, beginning with
  58975. * a string prefix and ending with a string suffix.
  58976. * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
  58977. * @param sanitizer An optional sanitizer function
  58978. * @returns itself, so that it may be chained.
  58979. * @codeGenApi
  58980. */
  58981. function ɵɵattributeInterpolateV(attrName, values, sanitizer, namespace) {
  58982. const lView = getLView();
  58983. const interpolated = interpolationV(lView, values);
  58984. if (interpolated !== NO_CHANGE) {
  58985. const tNode = getSelectedTNode();
  58986. elementAttributeInternal(tNode, lView, attrName, interpolated, sanitizer, namespace);
  58987. if (ngDevMode) {
  58988. const interpolationInBetween = [values[0]]; // prefix
  58989. for (let i = 2; i < values.length; i += 2) {
  58990. interpolationInBetween.push(values[i]);
  58991. }
  58992. storePropertyBindingMetadata(getTView().data, tNode, 'attr.' + attrName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);
  58993. }
  58994. }
  58995. return ɵɵattributeInterpolateV;
  58996. }
  58997. /**
  58998. * @license
  58999. * Copyright Google LLC All Rights Reserved.
  59000. *
  59001. * Use of this source code is governed by an MIT-style license that can be
  59002. * found in the LICENSE file at https://angular.io/license
  59003. */
  59004. function templateFirstCreatePass(index, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) {
  59005. ngDevMode && assertFirstCreatePass(tView);
  59006. ngDevMode && ngDevMode.firstCreatePass++;
  59007. const tViewConsts = tView.consts;
  59008. // TODO(pk): refactor getOrCreateTNode to have the "create" only version
  59009. const tNode = getOrCreateTNode(tView, index, 4 /* Container */, tagName || null, getConstant(tViewConsts, attrsIndex));
  59010. resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
  59011. registerPostOrderHooks(tView, tNode);
  59012. const embeddedTView = tNode.tViews = createTView(2 /* Embedded */, tNode, templateFn, decls, vars, tView.directiveRegistry, tView.pipeRegistry, null, tView.schemas, tViewConsts);
  59013. if (tView.queries !== null) {
  59014. tView.queries.template(tView, tNode);
  59015. embeddedTView.queries = tView.queries.embeddedTView(tNode);
  59016. }
  59017. return tNode;
  59018. }
  59019. /**
  59020. * Creates an LContainer for an ng-template (dynamically-inserted view), e.g.
  59021. *
  59022. * <ng-template #foo>
  59023. * <div></div>
  59024. * </ng-template>
  59025. *
  59026. * @param index The index of the container in the data array
  59027. * @param templateFn Inline template
  59028. * @param decls The number of nodes, local refs, and pipes for this template
  59029. * @param vars The number of bindings for this template
  59030. * @param tagName The name of the container element, if applicable
  59031. * @param attrsIndex Index of template attributes in the `consts` array.
  59032. * @param localRefs Index of the local references in the `consts` array.
  59033. * @param localRefExtractor A function which extracts local-refs values from the template.
  59034. * Defaults to the current element associated with the local-ref.
  59035. *
  59036. * @codeGenApi
  59037. */
  59038. function ɵɵtemplate(index, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex, localRefExtractor) {
  59039. const lView = getLView();
  59040. const tView = getTView();
  59041. const adjustedIndex = index + HEADER_OFFSET;
  59042. const tNode = tView.firstCreatePass ? templateFirstCreatePass(adjustedIndex, tView, lView, templateFn, decls, vars, tagName, attrsIndex, localRefsIndex) :
  59043. tView.data[adjustedIndex];
  59044. setCurrentTNode(tNode, false);
  59045. const comment = lView[RENDERER].createComment(ngDevMode ? 'container' : '');
  59046. appendChild(tView, lView, comment, tNode);
  59047. attachPatchData(comment, lView);
  59048. addToViewTree(lView, lView[adjustedIndex] = createLContainer(comment, lView, comment, tNode));
  59049. if (isDirectiveHost(tNode)) {
  59050. createDirectivesInstances(tView, lView, tNode);
  59051. }
  59052. if (localRefsIndex != null) {
  59053. saveResolvedLocalsInData(lView, tNode, localRefExtractor);
  59054. }
  59055. }
  59056. /**
  59057. * @license
  59058. * Copyright Google LLC All Rights Reserved.
  59059. *
  59060. * Use of this source code is governed by an MIT-style license that can be
  59061. * found in the LICENSE file at https://angular.io/license
  59062. */
  59063. /** Store a value in the `data` at a given `index`. */
  59064. function store(tView, lView, index, value) {
  59065. // We don't store any static data for local variables, so the first time
  59066. // we see the template, we should store as null to avoid a sparse array
  59067. if (index >= tView.data.length) {
  59068. tView.data[index] = null;
  59069. tView.blueprint[index] = null;
  59070. }
  59071. lView[index] = value;
  59072. }
  59073. /**
  59074. * Retrieves a local reference from the current contextViewData.
  59075. *
  59076. * If the reference to retrieve is in a parent view, this instruction is used in conjunction
  59077. * with a nextContext() call, which walks up the tree and updates the contextViewData instance.
  59078. *
  59079. * @param index The index of the local ref in contextViewData.
  59080. *
  59081. * @codeGenApi
  59082. */
  59083. function ɵɵreference(index) {
  59084. const contextLView = getContextLView();
  59085. return load(contextLView, HEADER_OFFSET + index);
  59086. }
  59087. /**
  59088. * @license
  59089. * Copyright Google LLC All Rights Reserved.
  59090. *
  59091. * Use of this source code is governed by an MIT-style license that can be
  59092. * found in the LICENSE file at https://angular.io/license
  59093. */
  59094. /**
  59095. * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.
  59096. *
  59097. * This should be kept up to date with the public exports of @angular/core.
  59098. */
  59099. const angularCoreDiEnv = {
  59100. 'ɵɵdefineInjectable': ɵɵdefineInjectable,
  59101. 'ɵɵdefineInjector': ɵɵdefineInjector,
  59102. 'ɵɵinject': ɵɵinject,
  59103. 'ɵɵgetFactoryOf': getFactoryOf,
  59104. 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,
  59105. };
  59106. function getFactoryOf(type) {
  59107. const typeAny = type;
  59108. if (isForwardRef(type)) {
  59109. return (() => {
  59110. const factory = getFactoryOf(resolveForwardRef(typeAny));
  59111. return factory ? factory() : null;
  59112. });
  59113. }
  59114. const def = getInjectableDef(typeAny) || getInjectorDef(typeAny);
  59115. if (!def || def.factory === undefined) {
  59116. return null;
  59117. }
  59118. return def.factory;
  59119. }
  59120. /**
  59121. * @license
  59122. * Copyright Google LLC All Rights Reserved.
  59123. *
  59124. * Use of this source code is governed by an MIT-style license that can be
  59125. * found in the LICENSE file at https://angular.io/license
  59126. */
  59127. /**
  59128. * Compile an Angular injectable according to its `Injectable` metadata, and patch the resulting
  59129. * injectable def (`ɵprov`) onto the injectable type.
  59130. */
  59131. function compileInjectable(type, srcMeta) {
  59132. let ngInjectableDef = null;
  59133. let ngFactoryDef = null;
  59134. // if NG_PROV_DEF is already defined on this class then don't overwrite it
  59135. if (!type.hasOwnProperty(NG_PROV_DEF)) {
  59136. Object.defineProperty(type, NG_PROV_DEF, {
  59137. get: () => {
  59138. if (ngInjectableDef === null) {
  59139. ngInjectableDef = getCompilerFacade().compileInjectable(angularCoreDiEnv, `ng:///${type.name}/ɵprov.js`, getInjectableMetadata(type, srcMeta));
  59140. }
  59141. return ngInjectableDef;
  59142. },
  59143. });
  59144. }
  59145. // if NG_FACTORY_DEF is already defined on this class then don't overwrite it
  59146. if (!type.hasOwnProperty(NG_FACTORY_DEF)) {
  59147. Object.defineProperty(type, NG_FACTORY_DEF, {
  59148. get: () => {
  59149. if (ngFactoryDef === null) {
  59150. const metadata = getInjectableMetadata(type, srcMeta);
  59151. const compiler = getCompilerFacade();
  59152. ngFactoryDef = compiler.compileFactory(angularCoreDiEnv, `ng:///${type.name}/ɵfac.js`, {
  59153. name: metadata.name,
  59154. type: metadata.type,
  59155. typeArgumentCount: metadata.typeArgumentCount,
  59156. deps: reflectDependencies(type),
  59157. injectFn: 'inject',
  59158. target: compiler.R3FactoryTarget.Injectable
  59159. });
  59160. }
  59161. return ngFactoryDef;
  59162. },
  59163. // Leave this configurable so that the factories from directives or pipes can take precedence.
  59164. configurable: true
  59165. });
  59166. }
  59167. }
  59168. const ɵ0$8 = getClosureSafeProperty;
  59169. const USE_VALUE$1 = getClosureSafeProperty({ provide: String, useValue: ɵ0$8 });
  59170. function isUseClassProvider(meta) {
  59171. return meta.useClass !== undefined;
  59172. }
  59173. function isUseValueProvider(meta) {
  59174. return USE_VALUE$1 in meta;
  59175. }
  59176. function isUseFactoryProvider(meta) {
  59177. return meta.useFactory !== undefined;
  59178. }
  59179. function isUseExistingProvider(meta) {
  59180. return meta.useExisting !== undefined;
  59181. }
  59182. function getInjectableMetadata(type, srcMeta) {
  59183. // Allow the compilation of a class with a `@Injectable()` decorator without parameters
  59184. const meta = srcMeta || { providedIn: null };
  59185. const compilerMeta = {
  59186. name: type.name,
  59187. type: type,
  59188. typeArgumentCount: 0,
  59189. providedIn: meta.providedIn,
  59190. userDeps: undefined,
  59191. };
  59192. if ((isUseClassProvider(meta) || isUseFactoryProvider(meta)) && meta.deps !== undefined) {
  59193. compilerMeta.userDeps = convertDependencies(meta.deps);
  59194. }
  59195. if (isUseClassProvider(meta)) {
  59196. // The user explicitly specified useClass, and may or may not have provided deps.
  59197. compilerMeta.useClass = resolveForwardRef(meta.useClass);
  59198. }
  59199. else if (isUseValueProvider(meta)) {
  59200. // The user explicitly specified useValue.
  59201. compilerMeta.useValue = resolveForwardRef(meta.useValue);
  59202. }
  59203. else if (isUseFactoryProvider(meta)) {
  59204. // The user explicitly specified useFactory.
  59205. compilerMeta.useFactory = meta.useFactory;
  59206. }
  59207. else if (isUseExistingProvider(meta)) {
  59208. // The user explicitly specified useExisting.
  59209. compilerMeta.useExisting = resolveForwardRef(meta.useExisting);
  59210. }
  59211. return compilerMeta;
  59212. }
  59213. /**
  59214. * @license
  59215. * Copyright Google LLC All Rights Reserved.
  59216. *
  59217. * Use of this source code is governed by an MIT-style license that can be
  59218. * found in the LICENSE file at https://angular.io/license
  59219. */
  59220. const ɵ0$9 = getClosureSafeProperty;
  59221. const USE_VALUE$2 = getClosureSafeProperty({ provide: String, useValue: ɵ0$9 });
  59222. const EMPTY_ARRAY$2 = [];
  59223. function convertInjectableProviderToFactory(type, provider) {
  59224. if (!provider) {
  59225. const reflectionCapabilities = new ReflectionCapabilities();
  59226. const deps = reflectionCapabilities.parameters(type);
  59227. // TODO - convert to flags.
  59228. return () => new type(...injectArgs(deps));
  59229. }
  59230. if (USE_VALUE$2 in provider) {
  59231. const valueProvider = provider;
  59232. return () => valueProvider.useValue;
  59233. }
  59234. else if (provider.useExisting) {
  59235. const existingProvider = provider;
  59236. return () => ɵɵinject(resolveForwardRef(existingProvider.useExisting));
  59237. }
  59238. else if (provider.useFactory) {
  59239. const factoryProvider = provider;
  59240. return () => factoryProvider.useFactory(...injectArgs(factoryProvider.deps || EMPTY_ARRAY$2));
  59241. }
  59242. else if (provider.useClass) {
  59243. const classProvider = provider;
  59244. let deps = provider.deps;
  59245. if (!deps) {
  59246. const reflectionCapabilities = new ReflectionCapabilities();
  59247. deps = reflectionCapabilities.parameters(type);
  59248. }
  59249. return () => new (resolveForwardRef(classProvider.useClass))(...injectArgs(deps));
  59250. }
  59251. else {
  59252. let deps = provider.deps;
  59253. if (!deps) {
  59254. const reflectionCapabilities = new ReflectionCapabilities();
  59255. deps = reflectionCapabilities.parameters(type);
  59256. }
  59257. return () => new type(...injectArgs(deps));
  59258. }
  59259. }
  59260. /**
  59261. * @license
  59262. * Copyright Google LLC All Rights Reserved.
  59263. *
  59264. * Use of this source code is governed by an MIT-style license that can be
  59265. * found in the LICENSE file at https://angular.io/license
  59266. */
  59267. const ɵ0$a = (type, meta) => SWITCH_COMPILE_INJECTABLE(type, meta);
  59268. /**
  59269. * Injectable decorator and metadata.
  59270. *
  59271. * @Annotation
  59272. * @publicApi
  59273. */
  59274. const Injectable = makeDecorator('Injectable', undefined, undefined, undefined, ɵ0$a);
  59275. /**
  59276. * Supports @Injectable() in JIT mode for Render2.
  59277. */
  59278. function render2CompileInjectable(injectableType, options) {
  59279. if (options && options.providedIn !== undefined && !getInjectableDef(injectableType)) {
  59280. injectableType.ɵprov = ɵɵdefineInjectable({
  59281. token: injectableType,
  59282. providedIn: options.providedIn,
  59283. factory: convertInjectableProviderToFactory(injectableType, options),
  59284. });
  59285. }
  59286. }
  59287. const SWITCH_COMPILE_INJECTABLE__POST_R3__ = compileInjectable;
  59288. const SWITCH_COMPILE_INJECTABLE__PRE_R3__ = render2CompileInjectable;
  59289. const SWITCH_COMPILE_INJECTABLE = SWITCH_COMPILE_INJECTABLE__POST_R3__;
  59290. /**
  59291. * @license
  59292. * Copyright Google LLC All Rights Reserved.
  59293. *
  59294. * Use of this source code is governed by an MIT-style license that can be
  59295. * found in the LICENSE file at https://angular.io/license
  59296. */
  59297. function findFirstClosedCycle(keys) {
  59298. const res = [];
  59299. for (let i = 0; i < keys.length; ++i) {
  59300. if (res.indexOf(keys[i]) > -1) {
  59301. res.push(keys[i]);
  59302. return res;
  59303. }
  59304. res.push(keys[i]);
  59305. }
  59306. return res;
  59307. }
  59308. function constructResolvingPath(keys) {
  59309. if (keys.length > 1) {
  59310. const reversed = findFirstClosedCycle(keys.slice().reverse());
  59311. const tokenStrs = reversed.map(k => stringify(k.token));
  59312. return ' (' + tokenStrs.join(' -> ') + ')';
  59313. }
  59314. return '';
  59315. }
  59316. function injectionError(injector, key, constructResolvingMessage, originalError) {
  59317. const keys = [key];
  59318. const errMsg = constructResolvingMessage(keys);
  59319. const error = (originalError ? wrappedError(errMsg, originalError) : Error(errMsg));
  59320. error.addKey = addKey;
  59321. error.keys = keys;
  59322. error.injectors = [injector];
  59323. error.constructResolvingMessage = constructResolvingMessage;
  59324. error[ERROR_ORIGINAL_ERROR] = originalError;
  59325. return error;
  59326. }
  59327. function addKey(injector, key) {
  59328. this.injectors.push(injector);
  59329. this.keys.push(key);
  59330. // Note: This updated message won't be reflected in the `.stack` property
  59331. this.message = this.constructResolvingMessage(this.keys);
  59332. }
  59333. /**
  59334. * Thrown when trying to retrieve a dependency by key from {@link Injector}, but the
  59335. * {@link Injector} does not have a {@link Provider} for the given key.
  59336. *
  59337. * @usageNotes
  59338. * ### Example
  59339. *
  59340. * ```typescript
  59341. * class A {
  59342. * constructor(b:B) {}
  59343. * }
  59344. *
  59345. * expect(() => Injector.resolveAndCreate([A])).toThrowError();
  59346. * ```
  59347. */
  59348. function noProviderError(injector, key) {
  59349. return injectionError(injector, key, function (keys) {
  59350. const first = stringify(keys[0].token);
  59351. return `No provider for ${first}!${constructResolvingPath(keys)}`;
  59352. });
  59353. }
  59354. /**
  59355. * Thrown when dependencies form a cycle.
  59356. *
  59357. * @usageNotes
  59358. * ### Example
  59359. *
  59360. * ```typescript
  59361. * var injector = Injector.resolveAndCreate([
  59362. * {provide: "one", useFactory: (two) => "two", deps: [[new Inject("two")]]},
  59363. * {provide: "two", useFactory: (one) => "one", deps: [[new Inject("one")]]}
  59364. * ]);
  59365. *
  59366. * expect(() => injector.get("one")).toThrowError();
  59367. * ```
  59368. *
  59369. * Retrieving `A` or `B` throws a `CyclicDependencyError` as the graph above cannot be constructed.
  59370. */
  59371. function cyclicDependencyError(injector, key) {
  59372. return injectionError(injector, key, function (keys) {
  59373. return `Cannot instantiate cyclic dependency!${constructResolvingPath(keys)}`;
  59374. });
  59375. }
  59376. /**
  59377. * Thrown when a constructing type returns with an Error.
  59378. *
  59379. * The `InstantiationError` class contains the original error plus the dependency graph which caused
  59380. * this object to be instantiated.
  59381. *
  59382. * @usageNotes
  59383. * ### Example
  59384. *
  59385. * ```typescript
  59386. * class A {
  59387. * constructor() {
  59388. * throw new Error('message');
  59389. * }
  59390. * }
  59391. *
  59392. * var injector = Injector.resolveAndCreate([A]);
  59393. * try {
  59394. * injector.get(A);
  59395. * } catch (e) {
  59396. * expect(e instanceof InstantiationError).toBe(true);
  59397. * expect(e.originalException.message).toEqual("message");
  59398. * expect(e.originalStack).toBeDefined();
  59399. * }
  59400. * ```
  59401. */
  59402. function instantiationError(injector, originalException, originalStack, key) {
  59403. return injectionError(injector, key, function (keys) {
  59404. const first = stringify(keys[0].token);
  59405. return `${originalException.message}: Error during instantiation of ${first}!${constructResolvingPath(keys)}.`;
  59406. }, originalException);
  59407. }
  59408. /**
  59409. * Thrown when an object other then {@link Provider} (or `Type`) is passed to {@link Injector}
  59410. * creation.
  59411. *
  59412. * @usageNotes
  59413. * ### Example
  59414. *
  59415. * ```typescript
  59416. * expect(() => Injector.resolveAndCreate(["not a type"])).toThrowError();
  59417. * ```
  59418. */
  59419. function invalidProviderError(provider) {
  59420. return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${provider}`);
  59421. }
  59422. /**
  59423. * Thrown when the class has no annotation information.
  59424. *
  59425. * Lack of annotation information prevents the {@link Injector} from determining which dependencies
  59426. * need to be injected into the constructor.
  59427. *
  59428. * @usageNotes
  59429. * ### Example
  59430. *
  59431. * ```typescript
  59432. * class A {
  59433. * constructor(b) {}
  59434. * }
  59435. *
  59436. * expect(() => Injector.resolveAndCreate([A])).toThrowError();
  59437. * ```
  59438. *
  59439. * This error is also thrown when the class not marked with {@link Injectable} has parameter types.
  59440. *
  59441. * ```typescript
  59442. * class B {}
  59443. *
  59444. * class A {
  59445. * constructor(b:B) {} // no information about the parameter types of A is available at runtime.
  59446. * }
  59447. *
  59448. * expect(() => Injector.resolveAndCreate([A,B])).toThrowError();
  59449. * ```
  59450. *
  59451. */
  59452. function noAnnotationError(typeOrFunc, params) {
  59453. const signature = [];
  59454. for (let i = 0, ii = params.length; i < ii; i++) {
  59455. const parameter = params[i];
  59456. if (!parameter || parameter.length == 0) {
  59457. signature.push('?');
  59458. }
  59459. else {
  59460. signature.push(parameter.map(stringify).join(' '));
  59461. }
  59462. }
  59463. return Error('Cannot resolve all parameters for \'' + stringify(typeOrFunc) + '\'(' +
  59464. signature.join(', ') + '). ' +
  59465. 'Make sure that all the parameters are decorated with Inject or have valid type annotations and that \'' +
  59466. stringify(typeOrFunc) + '\' is decorated with Injectable.');
  59467. }
  59468. /**
  59469. * Thrown when getting an object by index.
  59470. *
  59471. * @usageNotes
  59472. * ### Example
  59473. *
  59474. * ```typescript
  59475. * class A {}
  59476. *
  59477. * var injector = Injector.resolveAndCreate([A]);
  59478. *
  59479. * expect(() => injector.getAt(100)).toThrowError();
  59480. * ```
  59481. *
  59482. */
  59483. function outOfBoundsError(index) {
  59484. return Error(`Index ${index} is out-of-bounds.`);
  59485. }
  59486. // TODO: add a working example after alpha38 is released
  59487. /**
  59488. * Thrown when a multi provider and a regular provider are bound to the same token.
  59489. *
  59490. * @usageNotes
  59491. * ### Example
  59492. *
  59493. * ```typescript
  59494. * expect(() => Injector.resolveAndCreate([
  59495. * { provide: "Strings", useValue: "string1", multi: true},
  59496. * { provide: "Strings", useValue: "string2", multi: false}
  59497. * ])).toThrowError();
  59498. * ```
  59499. */
  59500. function mixingMultiProvidersWithRegularProvidersError(provider1, provider2) {
  59501. return Error(`Cannot mix multi providers and regular providers, got: ${provider1} ${provider2}`);
  59502. }
  59503. /**
  59504. * @license
  59505. * Copyright Google LLC All Rights Reserved.
  59506. *
  59507. * Use of this source code is governed by an MIT-style license that can be
  59508. * found in the LICENSE file at https://angular.io/license
  59509. */
  59510. /**
  59511. * A unique object used for retrieving items from the {@link ReflectiveInjector}.
  59512. *
  59513. * Keys have:
  59514. * - a system-wide unique `id`.
  59515. * - a `token`.
  59516. *
  59517. * `Key` is used internally by {@link ReflectiveInjector} because its system-wide unique `id` allows
  59518. * the
  59519. * injector to store created objects in a more efficient way.
  59520. *
  59521. * `Key` should not be created directly. {@link ReflectiveInjector} creates keys automatically when
  59522. * resolving
  59523. * providers.
  59524. *
  59525. * @deprecated No replacement
  59526. * @publicApi
  59527. */
  59528. class ReflectiveKey {
  59529. /**
  59530. * Private
  59531. */
  59532. constructor(token, id) {
  59533. this.token = token;
  59534. this.id = id;
  59535. if (!token) {
  59536. throw new Error('Token must be defined!');
  59537. }
  59538. this.displayName = stringify(this.token);
  59539. }
  59540. /**
  59541. * Retrieves a `Key` for a token.
  59542. */
  59543. static get(token) {
  59544. return _globalKeyRegistry.get(resolveForwardRef(token));
  59545. }
  59546. /**
  59547. * @returns the number of keys registered in the system.
  59548. */
  59549. static get numberOfKeys() {
  59550. return _globalKeyRegistry.numberOfKeys;
  59551. }
  59552. }
  59553. class KeyRegistry {
  59554. constructor() {
  59555. this._allKeys = new Map();
  59556. }
  59557. get(token) {
  59558. if (token instanceof ReflectiveKey)
  59559. return token;
  59560. if (this._allKeys.has(token)) {
  59561. return this._allKeys.get(token);
  59562. }
  59563. const newKey = new ReflectiveKey(token, ReflectiveKey.numberOfKeys);
  59564. this._allKeys.set(token, newKey);
  59565. return newKey;
  59566. }
  59567. get numberOfKeys() {
  59568. return this._allKeys.size;
  59569. }
  59570. }
  59571. const _globalKeyRegistry = new KeyRegistry();
  59572. /**
  59573. * @license
  59574. * Copyright Google LLC All Rights Reserved.
  59575. *
  59576. * Use of this source code is governed by an MIT-style license that can be
  59577. * found in the LICENSE file at https://angular.io/license
  59578. */
  59579. /**
  59580. * Provides access to reflection data about symbols. Used internally by Angular
  59581. * to power dependency injection and compilation.
  59582. */
  59583. class Reflector {
  59584. constructor(reflectionCapabilities) {
  59585. this.reflectionCapabilities = reflectionCapabilities;
  59586. }
  59587. updateCapabilities(caps) {
  59588. this.reflectionCapabilities = caps;
  59589. }
  59590. factory(type) {
  59591. return this.reflectionCapabilities.factory(type);
  59592. }
  59593. parameters(typeOrFunc) {
  59594. return this.reflectionCapabilities.parameters(typeOrFunc);
  59595. }
  59596. annotations(typeOrFunc) {
  59597. return this.reflectionCapabilities.annotations(typeOrFunc);
  59598. }
  59599. propMetadata(typeOrFunc) {
  59600. return this.reflectionCapabilities.propMetadata(typeOrFunc);
  59601. }
  59602. hasLifecycleHook(type, lcProperty) {
  59603. return this.reflectionCapabilities.hasLifecycleHook(type, lcProperty);
  59604. }
  59605. getter(name) {
  59606. return this.reflectionCapabilities.getter(name);
  59607. }
  59608. setter(name) {
  59609. return this.reflectionCapabilities.setter(name);
  59610. }
  59611. method(name) {
  59612. return this.reflectionCapabilities.method(name);
  59613. }
  59614. importUri(type) {
  59615. return this.reflectionCapabilities.importUri(type);
  59616. }
  59617. resourceUri(type) {
  59618. return this.reflectionCapabilities.resourceUri(type);
  59619. }
  59620. resolveIdentifier(name, moduleUrl, members, runtime) {
  59621. return this.reflectionCapabilities.resolveIdentifier(name, moduleUrl, members, runtime);
  59622. }
  59623. resolveEnum(identifier, name) {
  59624. return this.reflectionCapabilities.resolveEnum(identifier, name);
  59625. }
  59626. }
  59627. /**
  59628. * @license
  59629. * Copyright Google LLC All Rights Reserved.
  59630. *
  59631. * Use of this source code is governed by an MIT-style license that can be
  59632. * found in the LICENSE file at https://angular.io/license
  59633. */
  59634. /**
  59635. * The {@link Reflector} used internally in Angular to access metadata
  59636. * about symbols.
  59637. */
  59638. const reflector = new Reflector(new ReflectionCapabilities());
  59639. /**
  59640. * @license
  59641. * Copyright Google LLC All Rights Reserved.
  59642. *
  59643. * Use of this source code is governed by an MIT-style license that can be
  59644. * found in the LICENSE file at https://angular.io/license
  59645. */
  59646. /**
  59647. * `Dependency` is used by the framework to extend DI.
  59648. * This is internal to Angular and should not be used directly.
  59649. */
  59650. class ReflectiveDependency {
  59651. constructor(key, optional, visibility) {
  59652. this.key = key;
  59653. this.optional = optional;
  59654. this.visibility = visibility;
  59655. }
  59656. static fromKey(key) {
  59657. return new ReflectiveDependency(key, false, null);
  59658. }
  59659. }
  59660. const _EMPTY_LIST = [];
  59661. class ResolvedReflectiveProvider_ {
  59662. constructor(key, resolvedFactories, multiProvider) {
  59663. this.key = key;
  59664. this.resolvedFactories = resolvedFactories;
  59665. this.multiProvider = multiProvider;
  59666. this.resolvedFactory = this.resolvedFactories[0];
  59667. }
  59668. }
  59669. /**
  59670. * An internal resolved representation of a factory function created by resolving `Provider`.
  59671. * @publicApi
  59672. */
  59673. class ResolvedReflectiveFactory {
  59674. constructor(
  59675. /**
  59676. * Factory function which can return an instance of an object represented by a key.
  59677. */
  59678. factory,
  59679. /**
  59680. * Arguments (dependencies) to the `factory` function.
  59681. */
  59682. dependencies) {
  59683. this.factory = factory;
  59684. this.dependencies = dependencies;
  59685. }
  59686. }
  59687. /**
  59688. * Resolve a single provider.
  59689. */
  59690. function resolveReflectiveFactory(provider) {
  59691. let factoryFn;
  59692. let resolvedDeps;
  59693. if (provider.useClass) {
  59694. const useClass = resolveForwardRef(provider.useClass);
  59695. factoryFn = reflector.factory(useClass);
  59696. resolvedDeps = _dependenciesFor(useClass);
  59697. }
  59698. else if (provider.useExisting) {
  59699. factoryFn = (aliasInstance) => aliasInstance;
  59700. resolvedDeps = [ReflectiveDependency.fromKey(ReflectiveKey.get(provider.useExisting))];
  59701. }
  59702. else if (provider.useFactory) {
  59703. factoryFn = provider.useFactory;
  59704. resolvedDeps = constructDependencies(provider.useFactory, provider.deps);
  59705. }
  59706. else {
  59707. factoryFn = () => provider.useValue;
  59708. resolvedDeps = _EMPTY_LIST;
  59709. }
  59710. return new ResolvedReflectiveFactory(factoryFn, resolvedDeps);
  59711. }
  59712. /**
  59713. * Converts the `Provider` into `ResolvedProvider`.
  59714. *
  59715. * `Injector` internally only uses `ResolvedProvider`, `Provider` contains convenience provider
  59716. * syntax.
  59717. */
  59718. function resolveReflectiveProvider(provider) {
  59719. return new ResolvedReflectiveProvider_(ReflectiveKey.get(provider.provide), [resolveReflectiveFactory(provider)], provider.multi || false);
  59720. }
  59721. /**
  59722. * Resolve a list of Providers.
  59723. */
  59724. function resolveReflectiveProviders(providers) {
  59725. const normalized = _normalizeProviders(providers, []);
  59726. const resolved = normalized.map(resolveReflectiveProvider);
  59727. const resolvedProviderMap = mergeResolvedReflectiveProviders(resolved, new Map());
  59728. return Array.from(resolvedProviderMap.values());
  59729. }
  59730. /**
  59731. * Merges a list of ResolvedProviders into a list where each key is contained exactly once and
  59732. * multi providers have been merged.
  59733. */
  59734. function mergeResolvedReflectiveProviders(providers, normalizedProvidersMap) {
  59735. for (let i = 0; i < providers.length; i++) {
  59736. const provider = providers[i];
  59737. const existing = normalizedProvidersMap.get(provider.key.id);
  59738. if (existing) {
  59739. if (provider.multiProvider !== existing.multiProvider) {
  59740. throw mixingMultiProvidersWithRegularProvidersError(existing, provider);
  59741. }
  59742. if (provider.multiProvider) {
  59743. for (let j = 0; j < provider.resolvedFactories.length; j++) {
  59744. existing.resolvedFactories.push(provider.resolvedFactories[j]);
  59745. }
  59746. }
  59747. else {
  59748. normalizedProvidersMap.set(provider.key.id, provider);
  59749. }
  59750. }
  59751. else {
  59752. let resolvedProvider;
  59753. if (provider.multiProvider) {
  59754. resolvedProvider = new ResolvedReflectiveProvider_(provider.key, provider.resolvedFactories.slice(), provider.multiProvider);
  59755. }
  59756. else {
  59757. resolvedProvider = provider;
  59758. }
  59759. normalizedProvidersMap.set(provider.key.id, resolvedProvider);
  59760. }
  59761. }
  59762. return normalizedProvidersMap;
  59763. }
  59764. function _normalizeProviders(providers, res) {
  59765. providers.forEach(b => {
  59766. if (b instanceof Type) {
  59767. res.push({ provide: b, useClass: b });
  59768. }
  59769. else if (b && typeof b == 'object' && b.provide !== undefined) {
  59770. res.push(b);
  59771. }
  59772. else if (Array.isArray(b)) {
  59773. _normalizeProviders(b, res);
  59774. }
  59775. else {
  59776. throw invalidProviderError(b);
  59777. }
  59778. });
  59779. return res;
  59780. }
  59781. function constructDependencies(typeOrFunc, dependencies) {
  59782. if (!dependencies) {
  59783. return _dependenciesFor(typeOrFunc);
  59784. }
  59785. else {
  59786. const params = dependencies.map(t => [t]);
  59787. return dependencies.map(t => _extractToken(typeOrFunc, t, params));
  59788. }
  59789. }
  59790. function _dependenciesFor(typeOrFunc) {
  59791. const params = reflector.parameters(typeOrFunc);
  59792. if (!params)
  59793. return [];
  59794. if (params.some(p => p == null)) {
  59795. throw noAnnotationError(typeOrFunc, params);
  59796. }
  59797. return params.map(p => _extractToken(typeOrFunc, p, params));
  59798. }
  59799. function _extractToken(typeOrFunc, metadata, params) {
  59800. let token = null;
  59801. let optional = false;
  59802. if (!Array.isArray(metadata)) {
  59803. if (metadata instanceof Inject) {
  59804. return _createDependency(metadata.token, optional, null);
  59805. }
  59806. else {
  59807. return _createDependency(metadata, optional, null);
  59808. }
  59809. }
  59810. let visibility = null;
  59811. for (let i = 0; i < metadata.length; ++i) {
  59812. const paramMetadata = metadata[i];
  59813. if (paramMetadata instanceof Type) {
  59814. token = paramMetadata;
  59815. }
  59816. else if (paramMetadata instanceof Inject) {
  59817. token = paramMetadata.token;
  59818. }
  59819. else if (paramMetadata instanceof Optional) {
  59820. optional = true;
  59821. }
  59822. else if (paramMetadata instanceof Self || paramMetadata instanceof SkipSelf) {
  59823. visibility = paramMetadata;
  59824. }
  59825. else if (paramMetadata instanceof InjectionToken) {
  59826. token = paramMetadata;
  59827. }
  59828. }
  59829. token = resolveForwardRef(token);
  59830. if (token != null) {
  59831. return _createDependency(token, optional, visibility);
  59832. }
  59833. else {
  59834. throw noAnnotationError(typeOrFunc, params);
  59835. }
  59836. }
  59837. function _createDependency(token, optional, visibility) {
  59838. return new ReflectiveDependency(ReflectiveKey.get(token), optional, visibility);
  59839. }
  59840. /**
  59841. * @license
  59842. * Copyright Google LLC All Rights Reserved.
  59843. *
  59844. * Use of this source code is governed by an MIT-style license that can be
  59845. * found in the LICENSE file at https://angular.io/license
  59846. */
  59847. // Threshold for the dynamic version
  59848. const UNDEFINED = {};
  59849. /**
  59850. * A ReflectiveDependency injection container used for instantiating objects and resolving
  59851. * dependencies.
  59852. *
  59853. * An `Injector` is a replacement for a `new` operator, which can automatically resolve the
  59854. * constructor dependencies.
  59855. *
  59856. * In typical use, application code asks for the dependencies in the constructor and they are
  59857. * resolved by the `Injector`.
  59858. *
  59859. * @usageNotes
  59860. * ### Example
  59861. *
  59862. * The following example creates an `Injector` configured to create `Engine` and `Car`.
  59863. *
  59864. * ```typescript
  59865. * @Injectable()
  59866. * class Engine {
  59867. * }
  59868. *
  59869. * @Injectable()
  59870. * class Car {
  59871. * constructor(public engine:Engine) {}
  59872. * }
  59873. *
  59874. * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);
  59875. * var car = injector.get(Car);
  59876. * expect(car instanceof Car).toBe(true);
  59877. * expect(car.engine instanceof Engine).toBe(true);
  59878. * ```
  59879. *
  59880. * Notice, we don't use the `new` operator because we explicitly want to have the `Injector`
  59881. * resolve all of the object's dependencies automatically.
  59882. *
  59883. * @deprecated from v5 - slow and brings in a lot of code, Use `Injector.create` instead.
  59884. * @publicApi
  59885. */
  59886. class ReflectiveInjector {
  59887. /**
  59888. * Turns an array of provider definitions into an array of resolved providers.
  59889. *
  59890. * A resolution is a process of flattening multiple nested arrays and converting individual
  59891. * providers into an array of `ResolvedReflectiveProvider`s.
  59892. *
  59893. * @usageNotes
  59894. * ### Example
  59895. *
  59896. * ```typescript
  59897. * @Injectable()
  59898. * class Engine {
  59899. * }
  59900. *
  59901. * @Injectable()
  59902. * class Car {
  59903. * constructor(public engine:Engine) {}
  59904. * }
  59905. *
  59906. * var providers = ReflectiveInjector.resolve([Car, [[Engine]]]);
  59907. *
  59908. * expect(providers.length).toEqual(2);
  59909. *
  59910. * expect(providers[0] instanceof ResolvedReflectiveProvider).toBe(true);
  59911. * expect(providers[0].key.displayName).toBe("Car");
  59912. * expect(providers[0].dependencies.length).toEqual(1);
  59913. * expect(providers[0].factory).toBeDefined();
  59914. *
  59915. * expect(providers[1].key.displayName).toBe("Engine");
  59916. * });
  59917. * ```
  59918. *
  59919. */
  59920. static resolve(providers) {
  59921. return resolveReflectiveProviders(providers);
  59922. }
  59923. /**
  59924. * Resolves an array of providers and creates an injector from those providers.
  59925. *
  59926. * The passed-in providers can be an array of `Type`, `Provider`,
  59927. * or a recursive array of more providers.
  59928. *
  59929. * @usageNotes
  59930. * ### Example
  59931. *
  59932. * ```typescript
  59933. * @Injectable()
  59934. * class Engine {
  59935. * }
  59936. *
  59937. * @Injectable()
  59938. * class Car {
  59939. * constructor(public engine:Engine) {}
  59940. * }
  59941. *
  59942. * var injector = ReflectiveInjector.resolveAndCreate([Car, Engine]);
  59943. * expect(injector.get(Car) instanceof Car).toBe(true);
  59944. * ```
  59945. */
  59946. static resolveAndCreate(providers, parent) {
  59947. const ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);
  59948. return ReflectiveInjector.fromResolvedProviders(ResolvedReflectiveProviders, parent);
  59949. }
  59950. /**
  59951. * Creates an injector from previously resolved providers.
  59952. *
  59953. * This API is the recommended way to construct injectors in performance-sensitive parts.
  59954. *
  59955. * @usageNotes
  59956. * ### Example
  59957. *
  59958. * ```typescript
  59959. * @Injectable()
  59960. * class Engine {
  59961. * }
  59962. *
  59963. * @Injectable()
  59964. * class Car {
  59965. * constructor(public engine:Engine) {}
  59966. * }
  59967. *
  59968. * var providers = ReflectiveInjector.resolve([Car, Engine]);
  59969. * var injector = ReflectiveInjector.fromResolvedProviders(providers);
  59970. * expect(injector.get(Car) instanceof Car).toBe(true);
  59971. * ```
  59972. */
  59973. static fromResolvedProviders(providers, parent) {
  59974. return new ReflectiveInjector_(providers, parent);
  59975. }
  59976. }
  59977. class ReflectiveInjector_ {
  59978. /**
  59979. * Private
  59980. */
  59981. constructor(_providers, _parent) {
  59982. /** @internal */
  59983. this._constructionCounter = 0;
  59984. this._providers = _providers;
  59985. this.parent = _parent || null;
  59986. const len = _providers.length;
  59987. this.keyIds = [];
  59988. this.objs = [];
  59989. for (let i = 0; i < len; i++) {
  59990. this.keyIds[i] = _providers[i].key.id;
  59991. this.objs[i] = UNDEFINED;
  59992. }
  59993. }
  59994. get(token, notFoundValue = THROW_IF_NOT_FOUND) {
  59995. return this._getByKey(ReflectiveKey.get(token), null, notFoundValue);
  59996. }
  59997. resolveAndCreateChild(providers) {
  59998. const ResolvedReflectiveProviders = ReflectiveInjector.resolve(providers);
  59999. return this.createChildFromResolved(ResolvedReflectiveProviders);
  60000. }
  60001. createChildFromResolved(providers) {
  60002. const inj = new ReflectiveInjector_(providers);
  60003. inj.parent = this;
  60004. return inj;
  60005. }
  60006. resolveAndInstantiate(provider) {
  60007. return this.instantiateResolved(ReflectiveInjector.resolve([provider])[0]);
  60008. }
  60009. instantiateResolved(provider) {
  60010. return this._instantiateProvider(provider);
  60011. }
  60012. getProviderAtIndex(index) {
  60013. if (index < 0 || index >= this._providers.length) {
  60014. throw outOfBoundsError(index);
  60015. }
  60016. return this._providers[index];
  60017. }
  60018. /** @internal */
  60019. _new(provider) {
  60020. if (this._constructionCounter++ > this._getMaxNumberOfObjects()) {
  60021. throw cyclicDependencyError(this, provider.key);
  60022. }
  60023. return this._instantiateProvider(provider);
  60024. }
  60025. _getMaxNumberOfObjects() {
  60026. return this.objs.length;
  60027. }
  60028. _instantiateProvider(provider) {
  60029. if (provider.multiProvider) {
  60030. const res = [];
  60031. for (let i = 0; i < provider.resolvedFactories.length; ++i) {
  60032. res[i] = this._instantiate(provider, provider.resolvedFactories[i]);
  60033. }
  60034. return res;
  60035. }
  60036. else {
  60037. return this._instantiate(provider, provider.resolvedFactories[0]);
  60038. }
  60039. }
  60040. _instantiate(provider, ResolvedReflectiveFactory) {
  60041. const factory = ResolvedReflectiveFactory.factory;
  60042. let deps;
  60043. try {
  60044. deps =
  60045. ResolvedReflectiveFactory.dependencies.map(dep => this._getByReflectiveDependency(dep));
  60046. }
  60047. catch (e) {
  60048. if (e.addKey) {
  60049. e.addKey(this, provider.key);
  60050. }
  60051. throw e;
  60052. }
  60053. let obj;
  60054. try {
  60055. obj = factory(...deps);
  60056. }
  60057. catch (e) {
  60058. throw instantiationError(this, e, e.stack, provider.key);
  60059. }
  60060. return obj;
  60061. }
  60062. _getByReflectiveDependency(dep) {
  60063. return this._getByKey(dep.key, dep.visibility, dep.optional ? null : THROW_IF_NOT_FOUND);
  60064. }
  60065. _getByKey(key, visibility, notFoundValue) {
  60066. if (key === ReflectiveInjector_.INJECTOR_KEY) {
  60067. return this;
  60068. }
  60069. if (visibility instanceof Self) {
  60070. return this._getByKeySelf(key, notFoundValue);
  60071. }
  60072. else {
  60073. return this._getByKeyDefault(key, notFoundValue, visibility);
  60074. }
  60075. }
  60076. _getObjByKeyId(keyId) {
  60077. for (let i = 0; i < this.keyIds.length; i++) {
  60078. if (this.keyIds[i] === keyId) {
  60079. if (this.objs[i] === UNDEFINED) {
  60080. this.objs[i] = this._new(this._providers[i]);
  60081. }
  60082. return this.objs[i];
  60083. }
  60084. }
  60085. return UNDEFINED;
  60086. }
  60087. /** @internal */
  60088. _throwOrNull(key, notFoundValue) {
  60089. if (notFoundValue !== THROW_IF_NOT_FOUND) {
  60090. return notFoundValue;
  60091. }
  60092. else {
  60093. throw noProviderError(this, key);
  60094. }
  60095. }
  60096. /** @internal */
  60097. _getByKeySelf(key, notFoundValue) {
  60098. const obj = this._getObjByKeyId(key.id);
  60099. return (obj !== UNDEFINED) ? obj : this._throwOrNull(key, notFoundValue);
  60100. }
  60101. /** @internal */
  60102. _getByKeyDefault(key, notFoundValue, visibility) {
  60103. let inj;
  60104. if (visibility instanceof SkipSelf) {
  60105. inj = this.parent;
  60106. }
  60107. else {
  60108. inj = this;
  60109. }
  60110. while (inj instanceof ReflectiveInjector_) {
  60111. const inj_ = inj;
  60112. const obj = inj_._getObjByKeyId(key.id);
  60113. if (obj !== UNDEFINED)
  60114. return obj;
  60115. inj = inj_.parent;
  60116. }
  60117. if (inj !== null) {
  60118. return inj.get(key.token, notFoundValue);
  60119. }
  60120. else {
  60121. return this._throwOrNull(key, notFoundValue);
  60122. }
  60123. }
  60124. get displayName() {
  60125. const providers = _mapProviders(this, (b) => ' "' + b.key.displayName + '" ')
  60126. .join(', ');
  60127. return `ReflectiveInjector(providers: [${providers}])`;
  60128. }
  60129. toString() {
  60130. return this.displayName;
  60131. }
  60132. }
  60133. ReflectiveInjector_.INJECTOR_KEY = ReflectiveKey.get(Injector);
  60134. function _mapProviders(injector, fn) {
  60135. const res = [];
  60136. for (let i = 0; i < injector._providers.length; ++i) {
  60137. res[i] = fn(injector.getProviderAtIndex(i));
  60138. }
  60139. return res;
  60140. }
  60141. /**
  60142. * @license
  60143. * Copyright Google LLC All Rights Reserved.
  60144. *
  60145. * Use of this source code is governed by an MIT-style license that can be
  60146. * found in the LICENSE file at https://angular.io/license
  60147. */
  60148. /**
  60149. * @license
  60150. * Copyright Google LLC All Rights Reserved.
  60151. *
  60152. * Use of this source code is governed by an MIT-style license that can be
  60153. * found in the LICENSE file at https://angular.io/license
  60154. */
  60155. /**
  60156. * @license
  60157. * Copyright Google LLC All Rights Reserved.
  60158. *
  60159. * Use of this source code is governed by an MIT-style license that can be
  60160. * found in the LICENSE file at https://angular.io/license
  60161. */
  60162. function ɵɵdirectiveInject(token, flags = InjectFlags.Default) {
  60163. const lView = getLView();
  60164. // Fall back to inject() if view hasn't been created. This situation can happen in tests
  60165. // if inject utilities are used before bootstrapping.
  60166. if (lView === null) {
  60167. // Verify that we will not get into infinite loop.
  60168. ngDevMode && assertInjectImplementationNotEqual(ɵɵdirectiveInject);
  60169. return ɵɵinject(token, flags);
  60170. }
  60171. const tNode = getCurrentTNode();
  60172. return getOrCreateInjectable(tNode, lView, resolveForwardRef(token), flags);
  60173. }
  60174. /**
  60175. * Throws an error indicating that a factory function could not be generated by the compiler for a
  60176. * particular class.
  60177. *
  60178. * This instruction allows the actual error message to be optimized away when ngDevMode is turned
  60179. * off, saving bytes of generated code while still providing a good experience in dev mode.
  60180. *
  60181. * The name of the class is not mentioned here, but will be in the generated factory function name
  60182. * and thus in the stack trace.
  60183. *
  60184. * @codeGenApi
  60185. */
  60186. function ɵɵinvalidFactory() {
  60187. const msg = ngDevMode ? `This constructor was not compatible with Dependency Injection.` : 'invalid';
  60188. throw new Error(msg);
  60189. }
  60190. /**
  60191. * @license
  60192. * Copyright Google LLC All Rights Reserved.
  60193. *
  60194. * Use of this source code is governed by an MIT-style license that can be
  60195. * found in the LICENSE file at https://angular.io/license
  60196. */
  60197. /**
  60198. * Update a property on a selected element.
  60199. *
  60200. * Operates on the element selected by index via the {@link select} instruction.
  60201. *
  60202. * If the property name also exists as an input property on one of the element's directives,
  60203. * the component property will be set instead of the element property. This check must
  60204. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled
  60205. *
  60206. * @param propName Name of property. Because it is going to DOM, this is not subject to
  60207. * renaming as part of minification.
  60208. * @param value New value to write.
  60209. * @param sanitizer An optional function used to sanitize the value.
  60210. * @returns This function returns itself so that it may be chained
  60211. * (e.g. `property('name', ctx.name)('title', ctx.title)`)
  60212. *
  60213. * @codeGenApi
  60214. */
  60215. function ɵɵproperty(propName, value, sanitizer) {
  60216. const lView = getLView();
  60217. const bindingIndex = nextBindingIndex();
  60218. if (bindingUpdated(lView, bindingIndex, value)) {
  60219. const tView = getTView();
  60220. const tNode = getSelectedTNode();
  60221. elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, false);
  60222. ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
  60223. }
  60224. return ɵɵproperty;
  60225. }
  60226. /**
  60227. * Given `<div style="..." my-dir>` and `MyDir` with `@Input('style')` we need to write to
  60228. * directive input.
  60229. */
  60230. function setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased) {
  60231. const inputs = tNode.inputs;
  60232. const property = isClassBased ? 'class' : 'style';
  60233. // We support both 'class' and `className` hence the fallback.
  60234. setInputsForProperty(tView, lView, inputs[property], property, value);
  60235. }
  60236. /**
  60237. * @license
  60238. * Copyright Google LLC All Rights Reserved.
  60239. *
  60240. * Use of this source code is governed by an MIT-style license that can be
  60241. * found in the LICENSE file at https://angular.io/license
  60242. */
  60243. function elementStartFirstCreatePass(index, tView, lView, native, name, attrsIndex, localRefsIndex) {
  60244. ngDevMode && assertFirstCreatePass(tView);
  60245. ngDevMode && ngDevMode.firstCreatePass++;
  60246. const tViewConsts = tView.consts;
  60247. const attrs = getConstant(tViewConsts, attrsIndex);
  60248. const tNode = getOrCreateTNode(tView, index, 2 /* Element */, name, attrs);
  60249. const hasDirectives = resolveDirectives(tView, lView, tNode, getConstant(tViewConsts, localRefsIndex));
  60250. ngDevMode && logUnknownElementError(tView, native, tNode, hasDirectives);
  60251. if (tNode.attrs !== null) {
  60252. computeStaticStyling(tNode, tNode.attrs, false);
  60253. }
  60254. if (tNode.mergedAttrs !== null) {
  60255. computeStaticStyling(tNode, tNode.mergedAttrs, true);
  60256. }
  60257. if (tView.queries !== null) {
  60258. tView.queries.elementStart(tView, tNode);
  60259. }
  60260. return tNode;
  60261. }
  60262. /**
  60263. * Create DOM element. The instruction must later be followed by `elementEnd()` call.
  60264. *
  60265. * @param index Index of the element in the LView array
  60266. * @param name Name of the DOM Node
  60267. * @param attrsIndex Index of the element's attributes in the `consts` array.
  60268. * @param localRefsIndex Index of the element's local references in the `consts` array.
  60269. *
  60270. * Attributes and localRefs are passed as an array of strings where elements with an even index
  60271. * hold an attribute name and elements with an odd index hold an attribute value, ex.:
  60272. * ['id', 'warning5', 'class', 'alert']
  60273. *
  60274. * @codeGenApi
  60275. */
  60276. function ɵɵelementStart(index, name, attrsIndex, localRefsIndex) {
  60277. const lView = getLView();
  60278. const tView = getTView();
  60279. const adjustedIndex = HEADER_OFFSET + index;
  60280. ngDevMode &&
  60281. assertEqual(getBindingIndex(), tView.bindingStartIndex, 'elements should be created before any bindings');
  60282. ngDevMode && assertIndexInRange(lView, adjustedIndex);
  60283. const renderer = lView[RENDERER];
  60284. const native = lView[adjustedIndex] = createElementNode(renderer, name, getNamespace());
  60285. const tNode = tView.firstCreatePass ?
  60286. elementStartFirstCreatePass(adjustedIndex, tView, lView, native, name, attrsIndex, localRefsIndex) :
  60287. tView.data[adjustedIndex];
  60288. setCurrentTNode(tNode, true);
  60289. const mergedAttrs = tNode.mergedAttrs;
  60290. if (mergedAttrs !== null) {
  60291. setUpAttributes(renderer, native, mergedAttrs);
  60292. }
  60293. const classes = tNode.classes;
  60294. if (classes !== null) {
  60295. writeDirectClass(renderer, native, classes);
  60296. }
  60297. const styles = tNode.styles;
  60298. if (styles !== null) {
  60299. writeDirectStyle(renderer, native, styles);
  60300. }
  60301. if ((tNode.flags & 64 /* isDetached */) !== 64 /* isDetached */) {
  60302. // In the i18n case, the translation may have removed this element, so only add it if it is not
  60303. // detached. See `TNodeType.Placeholder` and `LFrame.inI18n` for more context.
  60304. appendChild(tView, lView, native, tNode);
  60305. }
  60306. // any immediate children of a component or template container must be pre-emptively
  60307. // monkey-patched with the component view data so that the element can be inspected
  60308. // later on using any element discovery utility methods (see `element_discovery.ts`)
  60309. if (getElementDepthCount() === 0) {
  60310. attachPatchData(native, lView);
  60311. }
  60312. increaseElementDepthCount();
  60313. if (isDirectiveHost(tNode)) {
  60314. createDirectivesInstances(tView, lView, tNode);
  60315. executeContentQueries(tView, tNode, lView);
  60316. }
  60317. if (localRefsIndex !== null) {
  60318. saveResolvedLocalsInData(lView, tNode);
  60319. }
  60320. }
  60321. /**
  60322. * Mark the end of the element.
  60323. *
  60324. * @codeGenApi
  60325. */
  60326. function ɵɵelementEnd() {
  60327. let currentTNode = getCurrentTNode();
  60328. ngDevMode && assertDefined(currentTNode, 'No parent node to close.');
  60329. if (isCurrentTNodeParent()) {
  60330. setCurrentTNodeAsNotParent();
  60331. }
  60332. else {
  60333. ngDevMode && assertHasParent(getCurrentTNode());
  60334. currentTNode = currentTNode.parent;
  60335. setCurrentTNode(currentTNode, false);
  60336. }
  60337. const tNode = currentTNode;
  60338. ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */);
  60339. decreaseElementDepthCount();
  60340. const tView = getTView();
  60341. if (tView.firstCreatePass) {
  60342. registerPostOrderHooks(tView, currentTNode);
  60343. if (isContentQueryHost(currentTNode)) {
  60344. tView.queries.elementEnd(currentTNode);
  60345. }
  60346. }
  60347. if (tNode.classesWithoutHost != null && hasClassInput(tNode)) {
  60348. setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.classesWithoutHost, true);
  60349. }
  60350. if (tNode.stylesWithoutHost != null && hasStyleInput(tNode)) {
  60351. setDirectiveInputsWhichShadowsStyling(tView, tNode, getLView(), tNode.stylesWithoutHost, false);
  60352. }
  60353. }
  60354. /**
  60355. * Creates an empty element using {@link elementStart} and {@link elementEnd}
  60356. *
  60357. * @param index Index of the element in the data array
  60358. * @param name Name of the DOM Node
  60359. * @param attrsIndex Index of the element's attributes in the `consts` array.
  60360. * @param localRefsIndex Index of the element's local references in the `consts` array.
  60361. *
  60362. * @codeGenApi
  60363. */
  60364. function ɵɵelement(index, name, attrsIndex, localRefsIndex) {
  60365. ɵɵelementStart(index, name, attrsIndex, localRefsIndex);
  60366. ɵɵelementEnd();
  60367. }
  60368. function logUnknownElementError(tView, element, tNode, hasDirectives) {
  60369. const schemas = tView.schemas;
  60370. // If `schemas` is set to `null`, that's an indication that this Component was compiled in AOT
  60371. // mode where this check happens at compile time. In JIT mode, `schemas` is always present and
  60372. // defined as an array (as an empty array in case `schemas` field is not defined) and we should
  60373. // execute the check below.
  60374. if (schemas === null)
  60375. return;
  60376. const tagName = tNode.value;
  60377. // If the element matches any directive, it's considered as valid.
  60378. if (!hasDirectives && tagName !== null) {
  60379. // The element is unknown if it's an instance of HTMLUnknownElement or it isn't registered
  60380. // as a custom element. Note that unknown elements with a dash in their name won't be instances
  60381. // of HTMLUnknownElement in browsers that support web components.
  60382. const isUnknown =
  60383. // Note that we can't check for `typeof HTMLUnknownElement === 'function'`,
  60384. // because while most browsers return 'function', IE returns 'object'.
  60385. (typeof HTMLUnknownElement !== 'undefined' && HTMLUnknownElement &&
  60386. element instanceof HTMLUnknownElement) ||
  60387. (typeof customElements !== 'undefined' && tagName.indexOf('-') > -1 &&
  60388. !customElements.get(tagName));
  60389. if (isUnknown && !matchingSchemas(tView, tagName)) {
  60390. let message = `'${tagName}' is not a known element:\n`;
  60391. message += `1. If '${tagName}' is an Angular component, then verify that it is part of this module.\n`;
  60392. if (tagName && tagName.indexOf('-') > -1) {
  60393. message += `2. If '${tagName}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.`;
  60394. }
  60395. else {
  60396. message +=
  60397. `2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.`;
  60398. }
  60399. console.error(formatRuntimeError("304" /* UNKNOWN_ELEMENT */, message));
  60400. }
  60401. }
  60402. }
  60403. /**
  60404. * @license
  60405. * Copyright Google LLC All Rights Reserved.
  60406. *
  60407. * Use of this source code is governed by an MIT-style license that can be
  60408. * found in the LICENSE file at https://angular.io/license
  60409. */
  60410. function elementContainerStartFirstCreatePass(index, tView, lView, attrsIndex, localRefsIndex) {
  60411. ngDevMode && ngDevMode.firstCreatePass++;
  60412. const tViewConsts = tView.consts;
  60413. const attrs = getConstant(tViewConsts, attrsIndex);
  60414. const tNode = getOrCreateTNode(tView, index, 8 /* ElementContainer */, 'ng-container', attrs);
  60415. // While ng-container doesn't necessarily support styling, we use the style context to identify
  60416. // and execute directives on the ng-container.
  60417. if (attrs !== null) {
  60418. computeStaticStyling(tNode, attrs, true);
  60419. }
  60420. const localRefs = getConstant(tViewConsts, localRefsIndex);
  60421. resolveDirectives(tView, lView, tNode, localRefs);
  60422. if (tView.queries !== null) {
  60423. tView.queries.elementStart(tView, tNode);
  60424. }
  60425. return tNode;
  60426. }
  60427. /**
  60428. * Creates a logical container for other nodes (<ng-container>) backed by a comment node in the DOM.
  60429. * The instruction must later be followed by `elementContainerEnd()` call.
  60430. *
  60431. * @param index Index of the element in the LView array
  60432. * @param attrsIndex Index of the container attributes in the `consts` array.
  60433. * @param localRefsIndex Index of the container's local references in the `consts` array.
  60434. *
  60435. * Even if this instruction accepts a set of attributes no actual attribute values are propagated to
  60436. * the DOM (as a comment node can't have attributes). Attributes are here only for directive
  60437. * matching purposes and setting initial inputs of directives.
  60438. *
  60439. * @codeGenApi
  60440. */
  60441. function ɵɵelementContainerStart(index, attrsIndex, localRefsIndex) {
  60442. const lView = getLView();
  60443. const tView = getTView();
  60444. const adjustedIndex = index + HEADER_OFFSET;
  60445. ngDevMode && assertIndexInRange(lView, adjustedIndex);
  60446. ngDevMode &&
  60447. assertEqual(getBindingIndex(), tView.bindingStartIndex, 'element containers should be created before any bindings');
  60448. const tNode = tView.firstCreatePass ?
  60449. elementContainerStartFirstCreatePass(adjustedIndex, tView, lView, attrsIndex, localRefsIndex) :
  60450. tView.data[adjustedIndex];
  60451. setCurrentTNode(tNode, true);
  60452. ngDevMode && ngDevMode.rendererCreateComment++;
  60453. const native = lView[adjustedIndex] =
  60454. lView[RENDERER].createComment(ngDevMode ? 'ng-container' : '');
  60455. appendChild(tView, lView, native, tNode);
  60456. attachPatchData(native, lView);
  60457. if (isDirectiveHost(tNode)) {
  60458. createDirectivesInstances(tView, lView, tNode);
  60459. executeContentQueries(tView, tNode, lView);
  60460. }
  60461. if (localRefsIndex != null) {
  60462. saveResolvedLocalsInData(lView, tNode);
  60463. }
  60464. }
  60465. /**
  60466. * Mark the end of the <ng-container>.
  60467. *
  60468. * @codeGenApi
  60469. */
  60470. function ɵɵelementContainerEnd() {
  60471. let currentTNode = getCurrentTNode();
  60472. const tView = getTView();
  60473. if (isCurrentTNodeParent()) {
  60474. setCurrentTNodeAsNotParent();
  60475. }
  60476. else {
  60477. ngDevMode && assertHasParent(currentTNode);
  60478. currentTNode = currentTNode.parent;
  60479. setCurrentTNode(currentTNode, false);
  60480. }
  60481. ngDevMode && assertTNodeType(currentTNode, 8 /* ElementContainer */);
  60482. if (tView.firstCreatePass) {
  60483. registerPostOrderHooks(tView, currentTNode);
  60484. if (isContentQueryHost(currentTNode)) {
  60485. tView.queries.elementEnd(currentTNode);
  60486. }
  60487. }
  60488. }
  60489. /**
  60490. * Creates an empty logical container using {@link elementContainerStart}
  60491. * and {@link elementContainerEnd}
  60492. *
  60493. * @param index Index of the element in the LView array
  60494. * @param attrsIndex Index of the container attributes in the `consts` array.
  60495. * @param localRefsIndex Index of the container's local references in the `consts` array.
  60496. *
  60497. * @codeGenApi
  60498. */
  60499. function ɵɵelementContainer(index, attrsIndex, localRefsIndex) {
  60500. ɵɵelementContainerStart(index, attrsIndex, localRefsIndex);
  60501. ɵɵelementContainerEnd();
  60502. }
  60503. /**
  60504. * Returns the current OpaqueViewState instance.
  60505. *
  60506. * Used in conjunction with the restoreView() instruction to save a snapshot
  60507. * of the current view and restore it when listeners are invoked. This allows
  60508. * walking the declaration view tree in listeners to get vars from parent views.
  60509. *
  60510. * @codeGenApi
  60511. */
  60512. function ɵɵgetCurrentView() {
  60513. return getLView();
  60514. }
  60515. /**
  60516. * @license
  60517. * Copyright Google LLC All Rights Reserved.
  60518. *
  60519. * Use of this source code is governed by an MIT-style license that can be
  60520. * found in the LICENSE file at https://angular.io/license
  60521. */
  60522. /**
  60523. * Determine if the argument is shaped like a Promise
  60524. */
  60525. function isPromise(obj) {
  60526. // allow any Promise/A+ compliant thenable.
  60527. // It's up to the caller to ensure that obj.then conforms to the spec
  60528. return !!obj && typeof obj.then === 'function';
  60529. }
  60530. /**
  60531. * Determine if the argument is an Observable
  60532. *
  60533. * Strictly this tests that the `obj` is `Subscribable`, since `Observable`
  60534. * types need additional methods, such as `lift()`. But it is adequate for our
  60535. * needs since within the Angular framework code we only ever need to use the
  60536. * `subscribe()` method, and RxJS has mechanisms to wrap `Subscribable` objects
  60537. * into `Observable` as needed.
  60538. */
  60539. function isObservable(obj) {
  60540. return !!obj && typeof obj.subscribe === 'function';
  60541. }
  60542. /**
  60543. * @license
  60544. * Copyright Google LLC All Rights Reserved.
  60545. *
  60546. * Use of this source code is governed by an MIT-style license that can be
  60547. * found in the LICENSE file at https://angular.io/license
  60548. */
  60549. /**
  60550. * Adds an event listener to the current node.
  60551. *
  60552. * If an output exists on one of the node's directives, it also subscribes to the output
  60553. * and saves the subscription for later cleanup.
  60554. *
  60555. * @param eventName Name of the event
  60556. * @param listenerFn The function to be called when event emits
  60557. * @param useCapture Whether or not to use capture in event listener
  60558. * @param eventTargetResolver Function that returns global target information in case this listener
  60559. * should be attached to a global object like window, document or body
  60560. *
  60561. * @codeGenApi
  60562. */
  60563. function ɵɵlistener(eventName, listenerFn, useCapture = false, eventTargetResolver) {
  60564. const lView = getLView();
  60565. const tView = getTView();
  60566. const tNode = getCurrentTNode();
  60567. listenerInternal(tView, lView, lView[RENDERER], tNode, eventName, listenerFn, useCapture, eventTargetResolver);
  60568. return ɵɵlistener;
  60569. }
  60570. /**
  60571. * Registers a synthetic host listener (e.g. `(@foo.start)`) on a component or directive.
  60572. *
  60573. * This instruction is for compatibility purposes and is designed to ensure that a
  60574. * synthetic host listener (e.g. `@HostListener('@foo.start')`) properly gets rendered
  60575. * in the component's renderer. Normally all host listeners are evaluated with the
  60576. * parent component's renderer, but, in the case of animation @triggers, they need
  60577. * to be evaluated with the sub component's renderer (because that's where the
  60578. * animation triggers are defined).
  60579. *
  60580. * Do not use this instruction as a replacement for `listener`. This instruction
  60581. * only exists to ensure compatibility with the ViewEngine's host binding behavior.
  60582. *
  60583. * @param eventName Name of the event
  60584. * @param listenerFn The function to be called when event emits
  60585. * @param useCapture Whether or not to use capture in event listener
  60586. * @param eventTargetResolver Function that returns global target information in case this listener
  60587. * should be attached to a global object like window, document or body
  60588. *
  60589. * @codeGenApi
  60590. */
  60591. function ɵɵsyntheticHostListener(eventName, listenerFn, useCapture = false, eventTargetResolver) {
  60592. const tNode = getCurrentTNode();
  60593. const lView = getLView();
  60594. const tView = getTView();
  60595. const currentDef = getCurrentDirectiveDef(tView.data);
  60596. const renderer = loadComponentRenderer(currentDef, tNode, lView);
  60597. listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, useCapture, eventTargetResolver);
  60598. return ɵɵsyntheticHostListener;
  60599. }
  60600. /**
  60601. * A utility function that checks if a given element has already an event handler registered for an
  60602. * event with a specified name. The TView.cleanup data structure is used to find out which events
  60603. * are registered for a given element.
  60604. */
  60605. function findExistingListener(tView, lView, eventName, tNodeIdx) {
  60606. const tCleanup = tView.cleanup;
  60607. if (tCleanup != null) {
  60608. for (let i = 0; i < tCleanup.length - 1; i += 2) {
  60609. const cleanupEventName = tCleanup[i];
  60610. if (cleanupEventName === eventName && tCleanup[i + 1] === tNodeIdx) {
  60611. // We have found a matching event name on the same node but it might not have been
  60612. // registered yet, so we must explicitly verify entries in the LView cleanup data
  60613. // structures.
  60614. const lCleanup = lView[CLEANUP];
  60615. const listenerIdxInLCleanup = tCleanup[i + 2];
  60616. return lCleanup.length > listenerIdxInLCleanup ? lCleanup[listenerIdxInLCleanup] : null;
  60617. }
  60618. // TView.cleanup can have a mix of 4-elements entries (for event handler cleanups) or
  60619. // 2-element entries (for directive and queries destroy hooks). As such we can encounter
  60620. // blocks of 4 or 2 items in the tView.cleanup and this is why we iterate over 2 elements
  60621. // first and jump another 2 elements if we detect listeners cleanup (4 elements). Also check
  60622. // documentation of TView.cleanup for more details of this data structure layout.
  60623. if (typeof cleanupEventName === 'string') {
  60624. i += 2;
  60625. }
  60626. }
  60627. }
  60628. return null;
  60629. }
  60630. function listenerInternal(tView, lView, renderer, tNode, eventName, listenerFn, useCapture = false, eventTargetResolver) {
  60631. const isTNodeDirectiveHost = isDirectiveHost(tNode);
  60632. const firstCreatePass = tView.firstCreatePass;
  60633. const tCleanup = firstCreatePass && getTViewCleanup(tView);
  60634. // When the ɵɵlistener instruction was generated and is executed we know that there is either a
  60635. // native listener or a directive output on this element. As such we we know that we will have to
  60636. // register a listener and store its cleanup function on LView.
  60637. const lCleanup = getLCleanup(lView);
  60638. ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */);
  60639. let processOutputs = true;
  60640. // add native event listener - applicable to elements only
  60641. if (tNode.type & 3 /* AnyRNode */) {
  60642. const native = getNativeByTNode(tNode, lView);
  60643. const resolved = eventTargetResolver ? eventTargetResolver(native) : EMPTY_OBJ;
  60644. const target = resolved.target || native;
  60645. const lCleanupIndex = lCleanup.length;
  60646. const idxOrTargetGetter = eventTargetResolver ?
  60647. (_lView) => eventTargetResolver(unwrapRNode(_lView[tNode.index])).target :
  60648. tNode.index;
  60649. // In order to match current behavior, native DOM event listeners must be added for all
  60650. // events (including outputs).
  60651. if (isProceduralRenderer(renderer)) {
  60652. // There might be cases where multiple directives on the same element try to register an event
  60653. // handler function for the same event. In this situation we want to avoid registration of
  60654. // several native listeners as each registration would be intercepted by NgZone and
  60655. // trigger change detection. This would mean that a single user action would result in several
  60656. // change detections being invoked. To avoid this situation we want to have only one call to
  60657. // native handler registration (for the same element and same type of event).
  60658. //
  60659. // In order to have just one native event handler in presence of multiple handler functions,
  60660. // we just register a first handler function as a native event listener and then chain
  60661. // (coalesce) other handler functions on top of the first native handler function.
  60662. let existingListener = null;
  60663. // Please note that the coalescing described here doesn't happen for events specifying an
  60664. // alternative target (ex. (document:click)) - this is to keep backward compatibility with the
  60665. // view engine.
  60666. // Also, we don't have to search for existing listeners is there are no directives
  60667. // matching on a given node as we can't register multiple event handlers for the same event in
  60668. // a template (this would mean having duplicate attributes).
  60669. if (!eventTargetResolver && isTNodeDirectiveHost) {
  60670. existingListener = findExistingListener(tView, lView, eventName, tNode.index);
  60671. }
  60672. if (existingListener !== null) {
  60673. // Attach a new listener to coalesced listeners list, maintaining the order in which
  60674. // listeners are registered. For performance reasons, we keep a reference to the last
  60675. // listener in that list (in `__ngLastListenerFn__` field), so we can avoid going through
  60676. // the entire set each time we need to add a new listener.
  60677. const lastListenerFn = existingListener.__ngLastListenerFn__ || existingListener;
  60678. lastListenerFn.__ngNextListenerFn__ = listenerFn;
  60679. existingListener.__ngLastListenerFn__ = listenerFn;
  60680. processOutputs = false;
  60681. }
  60682. else {
  60683. // The first argument of `listen` function in Procedural Renderer is:
  60684. // - either a target name (as a string) in case of global target (window, document, body)
  60685. // - or element reference (in all other cases)
  60686. listenerFn = wrapListener(tNode, lView, listenerFn, false /** preventDefault */);
  60687. const cleanupFn = renderer.listen(resolved.name || target, eventName, listenerFn);
  60688. ngDevMode && ngDevMode.rendererAddEventListener++;
  60689. lCleanup.push(listenerFn, cleanupFn);
  60690. tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, lCleanupIndex + 1);
  60691. }
  60692. }
  60693. else {
  60694. listenerFn = wrapListener(tNode, lView, listenerFn, true /** preventDefault */);
  60695. target.addEventListener(eventName, listenerFn, useCapture);
  60696. ngDevMode && ngDevMode.rendererAddEventListener++;
  60697. lCleanup.push(listenerFn);
  60698. tCleanup && tCleanup.push(eventName, idxOrTargetGetter, lCleanupIndex, useCapture);
  60699. }
  60700. }
  60701. else {
  60702. // Even if there is no native listener to add, we still need to wrap the listener so that OnPush
  60703. // ancestors are marked dirty when an event occurs.
  60704. listenerFn = wrapListener(tNode, lView, listenerFn, false /** preventDefault */);
  60705. }
  60706. // subscribe to directive outputs
  60707. const outputs = tNode.outputs;
  60708. let props;
  60709. if (processOutputs && outputs !== null && (props = outputs[eventName])) {
  60710. const propsLength = props.length;
  60711. if (propsLength) {
  60712. for (let i = 0; i < propsLength; i += 2) {
  60713. const index = props[i];
  60714. ngDevMode && assertIndexInRange(lView, index);
  60715. const minifiedName = props[i + 1];
  60716. const directiveInstance = lView[index];
  60717. const output = directiveInstance[minifiedName];
  60718. if (ngDevMode && !isObservable(output)) {
  60719. throw new Error(`@Output ${minifiedName} not initialized in '${directiveInstance.constructor.name}'.`);
  60720. }
  60721. const subscription = output.subscribe(listenerFn);
  60722. const idx = lCleanup.length;
  60723. lCleanup.push(listenerFn, subscription);
  60724. tCleanup && tCleanup.push(eventName, tNode.index, idx, -(idx + 1));
  60725. }
  60726. }
  60727. }
  60728. }
  60729. function executeListenerWithErrorHandling(lView, listenerFn, e) {
  60730. try {
  60731. // Only explicitly returning false from a listener should preventDefault
  60732. return listenerFn(e) !== false;
  60733. }
  60734. catch (error) {
  60735. handleError(lView, error);
  60736. return false;
  60737. }
  60738. }
  60739. /**
  60740. * Wraps an event listener with a function that marks ancestors dirty and prevents default behavior,
  60741. * if applicable.
  60742. *
  60743. * @param tNode The TNode associated with this listener
  60744. * @param lView The LView that contains this listener
  60745. * @param listenerFn The listener function to call
  60746. * @param wrapWithPreventDefault Whether or not to prevent default behavior
  60747. * (the procedural renderer does this already, so in those cases, we should skip)
  60748. */
  60749. function wrapListener(tNode, lView, listenerFn, wrapWithPreventDefault) {
  60750. // Note: we are performing most of the work in the listener function itself
  60751. // to optimize listener registration.
  60752. return function wrapListenerIn_markDirtyAndPreventDefault(e) {
  60753. // Ivy uses `Function` as a special token that allows us to unwrap the function
  60754. // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`.
  60755. if (e === Function) {
  60756. return listenerFn;
  60757. }
  60758. // In order to be backwards compatible with View Engine, events on component host nodes
  60759. // must also mark the component view itself dirty (i.e. the view that it owns).
  60760. const startView = tNode.flags & 2 /* isComponentHost */ ?
  60761. getComponentLViewByIndex(tNode.index, lView) :
  60762. lView;
  60763. // See interfaces/view.ts for more on LViewFlags.ManualOnPush
  60764. if ((lView[FLAGS] & 32 /* ManualOnPush */) === 0) {
  60765. markViewDirty(startView);
  60766. }
  60767. let result = executeListenerWithErrorHandling(lView, listenerFn, e);
  60768. // A just-invoked listener function might have coalesced listeners so we need to check for
  60769. // their presence and invoke as needed.
  60770. let nextListenerFn = wrapListenerIn_markDirtyAndPreventDefault.__ngNextListenerFn__;
  60771. while (nextListenerFn) {
  60772. // We should prevent default if any of the listeners explicitly return false
  60773. result = executeListenerWithErrorHandling(lView, nextListenerFn, e) && result;
  60774. nextListenerFn = nextListenerFn.__ngNextListenerFn__;
  60775. }
  60776. if (wrapWithPreventDefault && result === false) {
  60777. e.preventDefault();
  60778. // Necessary for legacy browsers that don't support preventDefault (e.g. IE)
  60779. e.returnValue = false;
  60780. }
  60781. return result;
  60782. };
  60783. }
  60784. /**
  60785. * @license
  60786. * Copyright Google LLC All Rights Reserved.
  60787. *
  60788. * Use of this source code is governed by an MIT-style license that can be
  60789. * found in the LICENSE file at https://angular.io/license
  60790. */
  60791. /**
  60792. * @license
  60793. * Copyright Google LLC All Rights Reserved.
  60794. *
  60795. * Use of this source code is governed by an MIT-style license that can be
  60796. * found in the LICENSE file at https://angular.io/license
  60797. */
  60798. /**
  60799. * Retrieves a context at the level specified and saves it as the global, contextViewData.
  60800. * Will get the next level up if level is not specified.
  60801. *
  60802. * This is used to save contexts of parent views so they can be bound in embedded views, or
  60803. * in conjunction with reference() to bind a ref from a parent view.
  60804. *
  60805. * @param level The relative level of the view from which to grab context compared to contextVewData
  60806. * @returns context
  60807. *
  60808. * @codeGenApi
  60809. */
  60810. function ɵɵnextContext(level = 1) {
  60811. return nextContextImpl(level);
  60812. }
  60813. /**
  60814. * @license
  60815. * Copyright Google LLC All Rights Reserved.
  60816. *
  60817. * Use of this source code is governed by an MIT-style license that can be
  60818. * found in the LICENSE file at https://angular.io/license
  60819. */
  60820. /**
  60821. * Checks a given node against matching projection slots and returns the
  60822. * determined slot index. Returns "null" if no slot matched the given node.
  60823. *
  60824. * This function takes into account the parsed ngProjectAs selector from the
  60825. * node's attributes. If present, it will check whether the ngProjectAs selector
  60826. * matches any of the projection slot selectors.
  60827. */
  60828. function matchingProjectionSlotIndex(tNode, projectionSlots) {
  60829. let wildcardNgContentIndex = null;
  60830. const ngProjectAsAttrVal = getProjectAsAttrValue(tNode);
  60831. for (let i = 0; i < projectionSlots.length; i++) {
  60832. const slotValue = projectionSlots[i];
  60833. // The last wildcard projection slot should match all nodes which aren't matching
  60834. // any selector. This is necessary to be backwards compatible with view engine.
  60835. if (slotValue === '*') {
  60836. wildcardNgContentIndex = i;
  60837. continue;
  60838. }
  60839. // If we ran into an `ngProjectAs` attribute, we should match its parsed selector
  60840. // to the list of selectors, otherwise we fall back to matching against the node.
  60841. if (ngProjectAsAttrVal === null ?
  60842. isNodeMatchingSelectorList(tNode, slotValue, /* isProjectionMode */ true) :
  60843. isSelectorInSelectorList(ngProjectAsAttrVal, slotValue)) {
  60844. return i; // first matching selector "captures" a given node
  60845. }
  60846. }
  60847. return wildcardNgContentIndex;
  60848. }
  60849. /**
  60850. * Instruction to distribute projectable nodes among <ng-content> occurrences in a given template.
  60851. * It takes all the selectors from the entire component's template and decides where
  60852. * each projected node belongs (it re-distributes nodes among "buckets" where each "bucket" is
  60853. * backed by a selector).
  60854. *
  60855. * This function requires CSS selectors to be provided in 2 forms: parsed (by a compiler) and text,
  60856. * un-parsed form.
  60857. *
  60858. * The parsed form is needed for efficient matching of a node against a given CSS selector.
  60859. * The un-parsed, textual form is needed for support of the ngProjectAs attribute.
  60860. *
  60861. * Having a CSS selector in 2 different formats is not ideal, but alternatives have even more
  60862. * drawbacks:
  60863. * - having only a textual form would require runtime parsing of CSS selectors;
  60864. * - we can't have only a parsed as we can't re-construct textual form from it (as entered by a
  60865. * template author).
  60866. *
  60867. * @param projectionSlots? A collection of projection slots. A projection slot can be based
  60868. * on a parsed CSS selectors or set to the wildcard selector ("*") in order to match
  60869. * all nodes which do not match any selector. If not specified, a single wildcard
  60870. * selector projection slot will be defined.
  60871. *
  60872. * @codeGenApi
  60873. */
  60874. function ɵɵprojectionDef(projectionSlots) {
  60875. const componentNode = getLView()[DECLARATION_COMPONENT_VIEW][T_HOST];
  60876. if (!componentNode.projection) {
  60877. // If no explicit projection slots are defined, fall back to a single
  60878. // projection slot with the wildcard selector.
  60879. const numProjectionSlots = projectionSlots ? projectionSlots.length : 1;
  60880. const projectionHeads = componentNode.projection =
  60881. newArray(numProjectionSlots, null);
  60882. const tails = projectionHeads.slice();
  60883. let componentChild = componentNode.child;
  60884. while (componentChild !== null) {
  60885. const slotIndex = projectionSlots ? matchingProjectionSlotIndex(componentChild, projectionSlots) : 0;
  60886. if (slotIndex !== null) {
  60887. if (tails[slotIndex]) {
  60888. tails[slotIndex].projectionNext = componentChild;
  60889. }
  60890. else {
  60891. projectionHeads[slotIndex] = componentChild;
  60892. }
  60893. tails[slotIndex] = componentChild;
  60894. }
  60895. componentChild = componentChild.next;
  60896. }
  60897. }
  60898. }
  60899. /**
  60900. * Inserts previously re-distributed projected nodes. This instruction must be preceded by a call
  60901. * to the projectionDef instruction.
  60902. *
  60903. * @param nodeIndex
  60904. * @param selectorIndex:
  60905. * - 0 when the selector is `*` (or unspecified as this is the default value),
  60906. * - 1 based index of the selector from the {@link projectionDef}
  60907. *
  60908. * @codeGenApi
  60909. */
  60910. function ɵɵprojection(nodeIndex, selectorIndex = 0, attrs) {
  60911. const lView = getLView();
  60912. const tView = getTView();
  60913. const tProjectionNode = getOrCreateTNode(tView, HEADER_OFFSET + nodeIndex, 16 /* Projection */, null, attrs || null);
  60914. // We can't use viewData[HOST_NODE] because projection nodes can be nested in embedded views.
  60915. if (tProjectionNode.projection === null)
  60916. tProjectionNode.projection = selectorIndex;
  60917. // `<ng-content>` has no content
  60918. setCurrentTNodeAsNotParent();
  60919. if ((tProjectionNode.flags & 64 /* isDetached */) !== 64 /* isDetached */) {
  60920. // re-distribution of projectable nodes is stored on a component's view level
  60921. applyProjection(tView, lView, tProjectionNode);
  60922. }
  60923. }
  60924. /**
  60925. *
  60926. * Update an interpolated property on an element with a lone bound value
  60927. *
  60928. * Used when the value passed to a property has 1 interpolated value in it, an no additional text
  60929. * surrounds that interpolated value:
  60930. *
  60931. * ```html
  60932. * <div title="{{v0}}"></div>
  60933. * ```
  60934. *
  60935. * Its compiled representation is::
  60936. *
  60937. * ```ts
  60938. * ɵɵpropertyInterpolate('title', v0);
  60939. * ```
  60940. *
  60941. * If the property name also exists as an input property on one of the element's directives,
  60942. * the component property will be set instead of the element property. This check must
  60943. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  60944. *
  60945. * @param propName The name of the property to update
  60946. * @param prefix Static value used for concatenation only.
  60947. * @param v0 Value checked for change.
  60948. * @param suffix Static value used for concatenation only.
  60949. * @param sanitizer An optional sanitizer function
  60950. * @returns itself, so that it may be chained.
  60951. * @codeGenApi
  60952. */
  60953. function ɵɵpropertyInterpolate(propName, v0, sanitizer) {
  60954. ɵɵpropertyInterpolate1(propName, '', v0, '', sanitizer);
  60955. return ɵɵpropertyInterpolate;
  60956. }
  60957. /**
  60958. *
  60959. * Update an interpolated property on an element with single bound value surrounded by text.
  60960. *
  60961. * Used when the value passed to a property has 1 interpolated value in it:
  60962. *
  60963. * ```html
  60964. * <div title="prefix{{v0}}suffix"></div>
  60965. * ```
  60966. *
  60967. * Its compiled representation is::
  60968. *
  60969. * ```ts
  60970. * ɵɵpropertyInterpolate1('title', 'prefix', v0, 'suffix');
  60971. * ```
  60972. *
  60973. * If the property name also exists as an input property on one of the element's directives,
  60974. * the component property will be set instead of the element property. This check must
  60975. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  60976. *
  60977. * @param propName The name of the property to update
  60978. * @param prefix Static value used for concatenation only.
  60979. * @param v0 Value checked for change.
  60980. * @param suffix Static value used for concatenation only.
  60981. * @param sanitizer An optional sanitizer function
  60982. * @returns itself, so that it may be chained.
  60983. * @codeGenApi
  60984. */
  60985. function ɵɵpropertyInterpolate1(propName, prefix, v0, suffix, sanitizer) {
  60986. const lView = getLView();
  60987. const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
  60988. if (interpolatedValue !== NO_CHANGE) {
  60989. const tView = getTView();
  60990. const tNode = getSelectedTNode();
  60991. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  60992. ngDevMode &&
  60993. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 1, prefix, suffix);
  60994. }
  60995. return ɵɵpropertyInterpolate1;
  60996. }
  60997. /**
  60998. *
  60999. * Update an interpolated property on an element with 2 bound values surrounded by text.
  61000. *
  61001. * Used when the value passed to a property has 2 interpolated values in it:
  61002. *
  61003. * ```html
  61004. * <div title="prefix{{v0}}-{{v1}}suffix"></div>
  61005. * ```
  61006. *
  61007. * Its compiled representation is::
  61008. *
  61009. * ```ts
  61010. * ɵɵpropertyInterpolate2('title', 'prefix', v0, '-', v1, 'suffix');
  61011. * ```
  61012. *
  61013. * If the property name also exists as an input property on one of the element's directives,
  61014. * the component property will be set instead of the element property. This check must
  61015. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  61016. *
  61017. * @param propName The name of the property to update
  61018. * @param prefix Static value used for concatenation only.
  61019. * @param v0 Value checked for change.
  61020. * @param i0 Static value used for concatenation only.
  61021. * @param v1 Value checked for change.
  61022. * @param suffix Static value used for concatenation only.
  61023. * @param sanitizer An optional sanitizer function
  61024. * @returns itself, so that it may be chained.
  61025. * @codeGenApi
  61026. */
  61027. function ɵɵpropertyInterpolate2(propName, prefix, v0, i0, v1, suffix, sanitizer) {
  61028. const lView = getLView();
  61029. const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
  61030. if (interpolatedValue !== NO_CHANGE) {
  61031. const tView = getTView();
  61032. const tNode = getSelectedTNode();
  61033. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  61034. ngDevMode &&
  61035. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 2, prefix, i0, suffix);
  61036. }
  61037. return ɵɵpropertyInterpolate2;
  61038. }
  61039. /**
  61040. *
  61041. * Update an interpolated property on an element with 3 bound values surrounded by text.
  61042. *
  61043. * Used when the value passed to a property has 3 interpolated values in it:
  61044. *
  61045. * ```html
  61046. * <div title="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
  61047. * ```
  61048. *
  61049. * Its compiled representation is::
  61050. *
  61051. * ```ts
  61052. * ɵɵpropertyInterpolate3(
  61053. * 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');
  61054. * ```
  61055. *
  61056. * If the property name also exists as an input property on one of the element's directives,
  61057. * the component property will be set instead of the element property. This check must
  61058. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  61059. *
  61060. * @param propName The name of the property to update
  61061. * @param prefix Static value used for concatenation only.
  61062. * @param v0 Value checked for change.
  61063. * @param i0 Static value used for concatenation only.
  61064. * @param v1 Value checked for change.
  61065. * @param i1 Static value used for concatenation only.
  61066. * @param v2 Value checked for change.
  61067. * @param suffix Static value used for concatenation only.
  61068. * @param sanitizer An optional sanitizer function
  61069. * @returns itself, so that it may be chained.
  61070. * @codeGenApi
  61071. */
  61072. function ɵɵpropertyInterpolate3(propName, prefix, v0, i0, v1, i1, v2, suffix, sanitizer) {
  61073. const lView = getLView();
  61074. const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
  61075. if (interpolatedValue !== NO_CHANGE) {
  61076. const tView = getTView();
  61077. const tNode = getSelectedTNode();
  61078. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  61079. ngDevMode &&
  61080. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 3, prefix, i0, i1, suffix);
  61081. }
  61082. return ɵɵpropertyInterpolate3;
  61083. }
  61084. /**
  61085. *
  61086. * Update an interpolated property on an element with 4 bound values surrounded by text.
  61087. *
  61088. * Used when the value passed to a property has 4 interpolated values in it:
  61089. *
  61090. * ```html
  61091. * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
  61092. * ```
  61093. *
  61094. * Its compiled representation is::
  61095. *
  61096. * ```ts
  61097. * ɵɵpropertyInterpolate4(
  61098. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
  61099. * ```
  61100. *
  61101. * If the property name also exists as an input property on one of the element's directives,
  61102. * the component property will be set instead of the element property. This check must
  61103. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  61104. *
  61105. * @param propName The name of the property to update
  61106. * @param prefix Static value used for concatenation only.
  61107. * @param v0 Value checked for change.
  61108. * @param i0 Static value used for concatenation only.
  61109. * @param v1 Value checked for change.
  61110. * @param i1 Static value used for concatenation only.
  61111. * @param v2 Value checked for change.
  61112. * @param i2 Static value used for concatenation only.
  61113. * @param v3 Value checked for change.
  61114. * @param suffix Static value used for concatenation only.
  61115. * @param sanitizer An optional sanitizer function
  61116. * @returns itself, so that it may be chained.
  61117. * @codeGenApi
  61118. */
  61119. function ɵɵpropertyInterpolate4(propName, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, sanitizer) {
  61120. const lView = getLView();
  61121. const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
  61122. if (interpolatedValue !== NO_CHANGE) {
  61123. const tView = getTView();
  61124. const tNode = getSelectedTNode();
  61125. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  61126. ngDevMode &&
  61127. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 4, prefix, i0, i1, i2, suffix);
  61128. }
  61129. return ɵɵpropertyInterpolate4;
  61130. }
  61131. /**
  61132. *
  61133. * Update an interpolated property on an element with 5 bound values surrounded by text.
  61134. *
  61135. * Used when the value passed to a property has 5 interpolated values in it:
  61136. *
  61137. * ```html
  61138. * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
  61139. * ```
  61140. *
  61141. * Its compiled representation is::
  61142. *
  61143. * ```ts
  61144. * ɵɵpropertyInterpolate5(
  61145. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
  61146. * ```
  61147. *
  61148. * If the property name also exists as an input property on one of the element's directives,
  61149. * the component property will be set instead of the element property. This check must
  61150. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  61151. *
  61152. * @param propName The name of the property to update
  61153. * @param prefix Static value used for concatenation only.
  61154. * @param v0 Value checked for change.
  61155. * @param i0 Static value used for concatenation only.
  61156. * @param v1 Value checked for change.
  61157. * @param i1 Static value used for concatenation only.
  61158. * @param v2 Value checked for change.
  61159. * @param i2 Static value used for concatenation only.
  61160. * @param v3 Value checked for change.
  61161. * @param i3 Static value used for concatenation only.
  61162. * @param v4 Value checked for change.
  61163. * @param suffix Static value used for concatenation only.
  61164. * @param sanitizer An optional sanitizer function
  61165. * @returns itself, so that it may be chained.
  61166. * @codeGenApi
  61167. */
  61168. function ɵɵpropertyInterpolate5(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, sanitizer) {
  61169. const lView = getLView();
  61170. const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
  61171. if (interpolatedValue !== NO_CHANGE) {
  61172. const tView = getTView();
  61173. const tNode = getSelectedTNode();
  61174. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  61175. ngDevMode &&
  61176. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 5, prefix, i0, i1, i2, i3, suffix);
  61177. }
  61178. return ɵɵpropertyInterpolate5;
  61179. }
  61180. /**
  61181. *
  61182. * Update an interpolated property on an element with 6 bound values surrounded by text.
  61183. *
  61184. * Used when the value passed to a property has 6 interpolated values in it:
  61185. *
  61186. * ```html
  61187. * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
  61188. * ```
  61189. *
  61190. * Its compiled representation is::
  61191. *
  61192. * ```ts
  61193. * ɵɵpropertyInterpolate6(
  61194. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
  61195. * ```
  61196. *
  61197. * If the property name also exists as an input property on one of the element's directives,
  61198. * the component property will be set instead of the element property. This check must
  61199. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  61200. *
  61201. * @param propName The name of the property to update
  61202. * @param prefix Static value used for concatenation only.
  61203. * @param v0 Value checked for change.
  61204. * @param i0 Static value used for concatenation only.
  61205. * @param v1 Value checked for change.
  61206. * @param i1 Static value used for concatenation only.
  61207. * @param v2 Value checked for change.
  61208. * @param i2 Static value used for concatenation only.
  61209. * @param v3 Value checked for change.
  61210. * @param i3 Static value used for concatenation only.
  61211. * @param v4 Value checked for change.
  61212. * @param i4 Static value used for concatenation only.
  61213. * @param v5 Value checked for change.
  61214. * @param suffix Static value used for concatenation only.
  61215. * @param sanitizer An optional sanitizer function
  61216. * @returns itself, so that it may be chained.
  61217. * @codeGenApi
  61218. */
  61219. function ɵɵpropertyInterpolate6(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, sanitizer) {
  61220. const lView = getLView();
  61221. const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
  61222. if (interpolatedValue !== NO_CHANGE) {
  61223. const tView = getTView();
  61224. const tNode = getSelectedTNode();
  61225. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  61226. ngDevMode &&
  61227. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 6, prefix, i0, i1, i2, i3, i4, suffix);
  61228. }
  61229. return ɵɵpropertyInterpolate6;
  61230. }
  61231. /**
  61232. *
  61233. * Update an interpolated property on an element with 7 bound values surrounded by text.
  61234. *
  61235. * Used when the value passed to a property has 7 interpolated values in it:
  61236. *
  61237. * ```html
  61238. * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
  61239. * ```
  61240. *
  61241. * Its compiled representation is::
  61242. *
  61243. * ```ts
  61244. * ɵɵpropertyInterpolate7(
  61245. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
  61246. * ```
  61247. *
  61248. * If the property name also exists as an input property on one of the element's directives,
  61249. * the component property will be set instead of the element property. This check must
  61250. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  61251. *
  61252. * @param propName The name of the property to update
  61253. * @param prefix Static value used for concatenation only.
  61254. * @param v0 Value checked for change.
  61255. * @param i0 Static value used for concatenation only.
  61256. * @param v1 Value checked for change.
  61257. * @param i1 Static value used for concatenation only.
  61258. * @param v2 Value checked for change.
  61259. * @param i2 Static value used for concatenation only.
  61260. * @param v3 Value checked for change.
  61261. * @param i3 Static value used for concatenation only.
  61262. * @param v4 Value checked for change.
  61263. * @param i4 Static value used for concatenation only.
  61264. * @param v5 Value checked for change.
  61265. * @param i5 Static value used for concatenation only.
  61266. * @param v6 Value checked for change.
  61267. * @param suffix Static value used for concatenation only.
  61268. * @param sanitizer An optional sanitizer function
  61269. * @returns itself, so that it may be chained.
  61270. * @codeGenApi
  61271. */
  61272. function ɵɵpropertyInterpolate7(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, sanitizer) {
  61273. const lView = getLView();
  61274. const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
  61275. if (interpolatedValue !== NO_CHANGE) {
  61276. const tView = getTView();
  61277. const tNode = getSelectedTNode();
  61278. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  61279. ngDevMode &&
  61280. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 7, prefix, i0, i1, i2, i3, i4, i5, suffix);
  61281. }
  61282. return ɵɵpropertyInterpolate7;
  61283. }
  61284. /**
  61285. *
  61286. * Update an interpolated property on an element with 8 bound values surrounded by text.
  61287. *
  61288. * Used when the value passed to a property has 8 interpolated values in it:
  61289. *
  61290. * ```html
  61291. * <div title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
  61292. * ```
  61293. *
  61294. * Its compiled representation is::
  61295. *
  61296. * ```ts
  61297. * ɵɵpropertyInterpolate8(
  61298. * 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
  61299. * ```
  61300. *
  61301. * If the property name also exists as an input property on one of the element's directives,
  61302. * the component property will be set instead of the element property. This check must
  61303. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  61304. *
  61305. * @param propName The name of the property to update
  61306. * @param prefix Static value used for concatenation only.
  61307. * @param v0 Value checked for change.
  61308. * @param i0 Static value used for concatenation only.
  61309. * @param v1 Value checked for change.
  61310. * @param i1 Static value used for concatenation only.
  61311. * @param v2 Value checked for change.
  61312. * @param i2 Static value used for concatenation only.
  61313. * @param v3 Value checked for change.
  61314. * @param i3 Static value used for concatenation only.
  61315. * @param v4 Value checked for change.
  61316. * @param i4 Static value used for concatenation only.
  61317. * @param v5 Value checked for change.
  61318. * @param i5 Static value used for concatenation only.
  61319. * @param v6 Value checked for change.
  61320. * @param i6 Static value used for concatenation only.
  61321. * @param v7 Value checked for change.
  61322. * @param suffix Static value used for concatenation only.
  61323. * @param sanitizer An optional sanitizer function
  61324. * @returns itself, so that it may be chained.
  61325. * @codeGenApi
  61326. */
  61327. function ɵɵpropertyInterpolate8(propName, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, sanitizer) {
  61328. const lView = getLView();
  61329. const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
  61330. if (interpolatedValue !== NO_CHANGE) {
  61331. const tView = getTView();
  61332. const tNode = getSelectedTNode();
  61333. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  61334. ngDevMode &&
  61335. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - 8, prefix, i0, i1, i2, i3, i4, i5, i6, suffix);
  61336. }
  61337. return ɵɵpropertyInterpolate8;
  61338. }
  61339. /**
  61340. * Update an interpolated property on an element with 9 or more bound values surrounded by text.
  61341. *
  61342. * Used when the number of interpolated values exceeds 8.
  61343. *
  61344. * ```html
  61345. * <div
  61346. * title="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
  61347. * ```
  61348. *
  61349. * Its compiled representation is::
  61350. *
  61351. * ```ts
  61352. * ɵɵpropertyInterpolateV(
  61353. * 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
  61354. * 'suffix']);
  61355. * ```
  61356. *
  61357. * If the property name also exists as an input property on one of the element's directives,
  61358. * the component property will be set instead of the element property. This check must
  61359. * be conducted at runtime so child components that add new `@Inputs` don't have to be re-compiled.
  61360. *
  61361. * @param propName The name of the property to update.
  61362. * @param values The collection of values and the strings inbetween those values, beginning with a
  61363. * string prefix and ending with a string suffix.
  61364. * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
  61365. * @param sanitizer An optional sanitizer function
  61366. * @returns itself, so that it may be chained.
  61367. * @codeGenApi
  61368. */
  61369. function ɵɵpropertyInterpolateV(propName, values, sanitizer) {
  61370. const lView = getLView();
  61371. const interpolatedValue = interpolationV(lView, values);
  61372. if (interpolatedValue !== NO_CHANGE) {
  61373. const tView = getTView();
  61374. const tNode = getSelectedTNode();
  61375. elementPropertyInternal(tView, tNode, lView, propName, interpolatedValue, lView[RENDERER], sanitizer, false);
  61376. if (ngDevMode) {
  61377. const interpolationInBetween = [values[0]]; // prefix
  61378. for (let i = 2; i < values.length; i += 2) {
  61379. interpolationInBetween.push(values[i]);
  61380. }
  61381. storePropertyBindingMetadata(tView.data, tNode, propName, getBindingIndex() - interpolationInBetween.length + 1, ...interpolationInBetween);
  61382. }
  61383. }
  61384. return ɵɵpropertyInterpolateV;
  61385. }
  61386. /**
  61387. * @license
  61388. * Copyright Google LLC All Rights Reserved.
  61389. *
  61390. * Use of this source code is governed by an MIT-style license that can be
  61391. * found in the LICENSE file at https://angular.io/license
  61392. */
  61393. /**
  61394. * This file contains reuseable "empty" symbols that can be used as default return values
  61395. * in different parts of the rendering code. Because the same symbols are returned, this
  61396. * allows for identity checks against these values to be consistently used by the framework
  61397. * code.
  61398. */
  61399. const EMPTY_OBJ$1 = {};
  61400. const EMPTY_ARRAY$3 = [];
  61401. // freezing the values prevents any code from accidentally inserting new values in
  61402. if ((typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode()) {
  61403. // These property accesses can be ignored because ngDevMode will be set to false
  61404. // when optimizing code and the whole if statement will be dropped.
  61405. // tslint:disable-next-line:no-toplevel-property-access
  61406. Object.freeze(EMPTY_OBJ$1);
  61407. // tslint:disable-next-line:no-toplevel-property-access
  61408. Object.freeze(EMPTY_ARRAY$3);
  61409. }
  61410. /**
  61411. * @license
  61412. * Copyright Google LLC All Rights Reserved.
  61413. *
  61414. * Use of this source code is governed by an MIT-style license that can be
  61415. * found in the LICENSE file at https://angular.io/license
  61416. */
  61417. /**
  61418. * NOTE: The word `styling` is used interchangeably as style or class styling.
  61419. *
  61420. * This file contains code to link styling instructions together so that they can be replayed in
  61421. * priority order. The file exists because Ivy styling instruction execution order does not match
  61422. * that of the priority order. The purpose of this code is to create a linked list so that the
  61423. * instructions can be traversed in priority order when computing the styles.
  61424. *
  61425. * Assume we are dealing with the following code:
  61426. * ```
  61427. * @Component({
  61428. * template: `
  61429. * <my-cmp [style]=" {color: '#001'} "
  61430. * [style.color]=" #002 "
  61431. * dir-style-color-1
  61432. * dir-style-color-2> `
  61433. * })
  61434. * class ExampleComponent {
  61435. * static ngComp = ... {
  61436. * ...
  61437. * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
  61438. * ɵɵstyleMap({color: '#001'});
  61439. * ɵɵstyleProp('color', '#002');
  61440. * ...
  61441. * }
  61442. * }
  61443. *
  61444. * @Directive({
  61445. * selector: `[dir-style-color-1]',
  61446. * })
  61447. * class Style1Directive {
  61448. * @HostBinding('style') style = {color: '#005'};
  61449. * @HostBinding('style.color') color = '#006';
  61450. *
  61451. * static ngDir = ... {
  61452. * ...
  61453. * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
  61454. * ɵɵstyleMap({color: '#005'});
  61455. * ɵɵstyleProp('color', '#006');
  61456. * ...
  61457. * }
  61458. * }
  61459. *
  61460. * @Directive({
  61461. * selector: `[dir-style-color-2]',
  61462. * })
  61463. * class Style2Directive {
  61464. * @HostBinding('style') style = {color: '#007'};
  61465. * @HostBinding('style.color') color = '#008';
  61466. *
  61467. * static ngDir = ... {
  61468. * ...
  61469. * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
  61470. * ɵɵstyleMap({color: '#007'});
  61471. * ɵɵstyleProp('color', '#008');
  61472. * ...
  61473. * }
  61474. * }
  61475. *
  61476. * @Directive({
  61477. * selector: `my-cmp',
  61478. * })
  61479. * class MyComponent {
  61480. * @HostBinding('style') style = {color: '#003'};
  61481. * @HostBinding('style.color') color = '#004';
  61482. *
  61483. * static ngComp = ... {
  61484. * ...
  61485. * // Compiler ensures that `ɵɵstyleProp` is after `ɵɵstyleMap`
  61486. * ɵɵstyleMap({color: '#003'});
  61487. * ɵɵstyleProp('color', '#004');
  61488. * ...
  61489. * }
  61490. * }
  61491. * ```
  61492. *
  61493. * The Order of instruction execution is:
  61494. *
  61495. * NOTE: the comment binding location is for illustrative purposes only.
  61496. *
  61497. * ```
  61498. * // Template: (ExampleComponent)
  61499. * ɵɵstyleMap({color: '#001'}); // Binding index: 10
  61500. * ɵɵstyleProp('color', '#002'); // Binding index: 12
  61501. * // MyComponent
  61502. * ɵɵstyleMap({color: '#003'}); // Binding index: 20
  61503. * ɵɵstyleProp('color', '#004'); // Binding index: 22
  61504. * // Style1Directive
  61505. * ɵɵstyleMap({color: '#005'}); // Binding index: 24
  61506. * ɵɵstyleProp('color', '#006'); // Binding index: 26
  61507. * // Style2Directive
  61508. * ɵɵstyleMap({color: '#007'}); // Binding index: 28
  61509. * ɵɵstyleProp('color', '#008'); // Binding index: 30
  61510. * ```
  61511. *
  61512. * The correct priority order of concatenation is:
  61513. *
  61514. * ```
  61515. * // MyComponent
  61516. * ɵɵstyleMap({color: '#003'}); // Binding index: 20
  61517. * ɵɵstyleProp('color', '#004'); // Binding index: 22
  61518. * // Style1Directive
  61519. * ɵɵstyleMap({color: '#005'}); // Binding index: 24
  61520. * ɵɵstyleProp('color', '#006'); // Binding index: 26
  61521. * // Style2Directive
  61522. * ɵɵstyleMap({color: '#007'}); // Binding index: 28
  61523. * ɵɵstyleProp('color', '#008'); // Binding index: 30
  61524. * // Template: (ExampleComponent)
  61525. * ɵɵstyleMap({color: '#001'}); // Binding index: 10
  61526. * ɵɵstyleProp('color', '#002'); // Binding index: 12
  61527. * ```
  61528. *
  61529. * What color should be rendered?
  61530. *
  61531. * Once the items are correctly sorted in the list, the answer is simply the last item in the
  61532. * concatenation list which is `#002`.
  61533. *
  61534. * To do so we keep a linked list of all of the bindings which pertain to this element.
  61535. * Notice that the bindings are inserted in the order of execution, but the `TView.data` allows
  61536. * us to traverse them in the order of priority.
  61537. *
  61538. * |Idx|`TView.data`|`LView` | Notes
  61539. * |---|------------|-----------------|--------------
  61540. * |...| | |
  61541. * |10 |`null` |`{color: '#001'}`| `ɵɵstyleMap('color', {color: '#001'})`
  61542. * |11 |`30 | 12` | ... |
  61543. * |12 |`color` |`'#002'` | `ɵɵstyleProp('color', '#002')`
  61544. * |13 |`10 | 0` | ... |
  61545. * |...| | |
  61546. * |20 |`null` |`{color: '#003'}`| `ɵɵstyleMap('color', {color: '#003'})`
  61547. * |21 |`0 | 22` | ... |
  61548. * |22 |`color` |`'#004'` | `ɵɵstyleProp('color', '#004')`
  61549. * |23 |`20 | 24` | ... |
  61550. * |24 |`null` |`{color: '#005'}`| `ɵɵstyleMap('color', {color: '#005'})`
  61551. * |25 |`22 | 26` | ... |
  61552. * |26 |`color` |`'#006'` | `ɵɵstyleProp('color', '#006')`
  61553. * |27 |`24 | 28` | ... |
  61554. * |28 |`null` |`{color: '#007'}`| `ɵɵstyleMap('color', {color: '#007'})`
  61555. * |29 |`26 | 30` | ... |
  61556. * |30 |`color` |`'#008'` | `ɵɵstyleProp('color', '#008')`
  61557. * |31 |`28 | 10` | ... |
  61558. *
  61559. * The above data structure allows us to re-concatenate the styling no matter which data binding
  61560. * changes.
  61561. *
  61562. * NOTE: in addition to keeping track of next/previous index the `TView.data` also stores prev/next
  61563. * duplicate bit. The duplicate bit if true says there either is a binding with the same name or
  61564. * there is a map (which may contain the name). This information is useful in knowing if other
  61565. * styles with higher priority need to be searched for overwrites.
  61566. *
  61567. * NOTE: See `should support example in 'tnode_linked_list.ts' documentation` in
  61568. * `tnode_linked_list_spec.ts` for working example.
  61569. */
  61570. let __unused_const_as_closure_does_not_like_standalone_comment_blocks__;
  61571. /**
  61572. * Insert new `tStyleValue` at `TData` and link existing style bindings such that we maintain linked
  61573. * list of styles and compute the duplicate flag.
  61574. *
  61575. * Note: this function is executed during `firstUpdatePass` only to populate the `TView.data`.
  61576. *
  61577. * The function works by keeping track of `tStylingRange` which contains two pointers pointing to
  61578. * the head/tail of the template portion of the styles.
  61579. * - if `isHost === false` (we are template) then insertion is at tail of `TStylingRange`
  61580. * - if `isHost === true` (we are host binding) then insertion is at head of `TStylingRange`
  61581. *
  61582. * @param tData The `TData` to insert into.
  61583. * @param tNode `TNode` associated with the styling element.
  61584. * @param tStylingKey See `TStylingKey`.
  61585. * @param index location of where `tStyleValue` should be stored (and linked into list.)
  61586. * @param isHostBinding `true` if the insertion is for a `hostBinding`. (insertion is in front of
  61587. * template.)
  61588. * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.
  61589. * `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)
  61590. */
  61591. function insertTStylingBinding(tData, tNode, tStylingKeyWithStatic, index, isHostBinding, isClassBinding) {
  61592. ngDevMode && assertFirstUpdatePass(getTView());
  61593. let tBindings = isClassBinding ? tNode.classBindings : tNode.styleBindings;
  61594. let tmplHead = getTStylingRangePrev(tBindings);
  61595. let tmplTail = getTStylingRangeNext(tBindings);
  61596. tData[index] = tStylingKeyWithStatic;
  61597. let isKeyDuplicateOfStatic = false;
  61598. let tStylingKey;
  61599. if (Array.isArray(tStylingKeyWithStatic)) {
  61600. // We are case when the `TStylingKey` contains static fields as well.
  61601. const staticKeyValueArray = tStylingKeyWithStatic;
  61602. tStylingKey = staticKeyValueArray[1]; // unwrap.
  61603. // We need to check if our key is present in the static so that we can mark it as duplicate.
  61604. if (tStylingKey === null ||
  61605. keyValueArrayIndexOf(staticKeyValueArray, tStylingKey) > 0) {
  61606. // tStylingKey is present in the statics, need to mark it as duplicate.
  61607. isKeyDuplicateOfStatic = true;
  61608. }
  61609. }
  61610. else {
  61611. tStylingKey = tStylingKeyWithStatic;
  61612. }
  61613. if (isHostBinding) {
  61614. // We are inserting host bindings
  61615. // If we don't have template bindings then `tail` is 0.
  61616. const hasTemplateBindings = tmplTail !== 0;
  61617. // This is important to know because that means that the `head` can't point to the first
  61618. // template bindings (there are none.) Instead the head points to the tail of the template.
  61619. if (hasTemplateBindings) {
  61620. // template head's "prev" will point to last host binding or to 0 if no host bindings yet
  61621. const previousNode = getTStylingRangePrev(tData[tmplHead + 1]);
  61622. tData[index + 1] = toTStylingRange(previousNode, tmplHead);
  61623. // if a host binding has already been registered, we need to update the next of that host
  61624. // binding to point to this one
  61625. if (previousNode !== 0) {
  61626. // We need to update the template-tail value to point to us.
  61627. tData[previousNode + 1] =
  61628. setTStylingRangeNext(tData[previousNode + 1], index);
  61629. }
  61630. // The "previous" of the template binding head should point to this host binding
  61631. tData[tmplHead + 1] = setTStylingRangePrev(tData[tmplHead + 1], index);
  61632. }
  61633. else {
  61634. tData[index + 1] = toTStylingRange(tmplHead, 0);
  61635. // if a host binding has already been registered, we need to update the next of that host
  61636. // binding to point to this one
  61637. if (tmplHead !== 0) {
  61638. // We need to update the template-tail value to point to us.
  61639. tData[tmplHead + 1] = setTStylingRangeNext(tData[tmplHead + 1], index);
  61640. }
  61641. // if we don't have template, the head points to template-tail, and needs to be advanced.
  61642. tmplHead = index;
  61643. }
  61644. }
  61645. else {
  61646. // We are inserting in template section.
  61647. // We need to set this binding's "previous" to the current template tail
  61648. tData[index + 1] = toTStylingRange(tmplTail, 0);
  61649. ngDevMode &&
  61650. assertEqual(tmplHead !== 0 && tmplTail === 0, false, 'Adding template bindings after hostBindings is not allowed.');
  61651. if (tmplHead === 0) {
  61652. tmplHead = index;
  61653. }
  61654. else {
  61655. // We need to update the previous value "next" to point to this binding
  61656. tData[tmplTail + 1] = setTStylingRangeNext(tData[tmplTail + 1], index);
  61657. }
  61658. tmplTail = index;
  61659. }
  61660. // Now we need to update / compute the duplicates.
  61661. // Starting with our location search towards head (least priority)
  61662. if (isKeyDuplicateOfStatic) {
  61663. tData[index + 1] = setTStylingRangePrevDuplicate(tData[index + 1]);
  61664. }
  61665. markDuplicates(tData, tStylingKey, index, true, isClassBinding);
  61666. markDuplicates(tData, tStylingKey, index, false, isClassBinding);
  61667. markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding);
  61668. tBindings = toTStylingRange(tmplHead, tmplTail);
  61669. if (isClassBinding) {
  61670. tNode.classBindings = tBindings;
  61671. }
  61672. else {
  61673. tNode.styleBindings = tBindings;
  61674. }
  61675. }
  61676. /**
  61677. * Look into the residual styling to see if the current `tStylingKey` is duplicate of residual.
  61678. *
  61679. * @param tNode `TNode` where the residual is stored.
  61680. * @param tStylingKey `TStylingKey` to store.
  61681. * @param tData `TData` associated with the current `LView`.
  61682. * @param index location of where `tStyleValue` should be stored (and linked into list.)
  61683. * @param isClassBinding True if the associated `tStylingKey` as a `class` styling.
  61684. * `tNode.classBindings` should be used (or `tNode.styleBindings` otherwise.)
  61685. */
  61686. function markDuplicateOfResidualStyling(tNode, tStylingKey, tData, index, isClassBinding) {
  61687. const residual = isClassBinding ? tNode.residualClasses : tNode.residualStyles;
  61688. if (residual != null /* or undefined */ && typeof tStylingKey == 'string' &&
  61689. keyValueArrayIndexOf(residual, tStylingKey) >= 0) {
  61690. // We have duplicate in the residual so mark ourselves as duplicate.
  61691. tData[index + 1] = setTStylingRangeNextDuplicate(tData[index + 1]);
  61692. }
  61693. }
  61694. /**
  61695. * Marks `TStyleValue`s as duplicates if another style binding in the list has the same
  61696. * `TStyleValue`.
  61697. *
  61698. * NOTE: this function is intended to be called twice once with `isPrevDir` set to `true` and once
  61699. * with it set to `false` to search both the previous as well as next items in the list.
  61700. *
  61701. * No duplicate case
  61702. * ```
  61703. * [style.color]
  61704. * [style.width.px] <<- index
  61705. * [style.height.px]
  61706. * ```
  61707. *
  61708. * In the above case adding `[style.width.px]` to the existing `[style.color]` produces no
  61709. * duplicates because `width` is not found in any other part of the linked list.
  61710. *
  61711. * Duplicate case
  61712. * ```
  61713. * [style.color]
  61714. * [style.width.em]
  61715. * [style.width.px] <<- index
  61716. * ```
  61717. * In the above case adding `[style.width.px]` will produce a duplicate with `[style.width.em]`
  61718. * because `width` is found in the chain.
  61719. *
  61720. * Map case 1
  61721. * ```
  61722. * [style.width.px]
  61723. * [style.color]
  61724. * [style] <<- index
  61725. * ```
  61726. * In the above case adding `[style]` will produce a duplicate with any other bindings because
  61727. * `[style]` is a Map and as such is fully dynamic and could produce `color` or `width`.
  61728. *
  61729. * Map case 2
  61730. * ```
  61731. * [style]
  61732. * [style.width.px]
  61733. * [style.color] <<- index
  61734. * ```
  61735. * In the above case adding `[style.color]` will produce a duplicate because there is already a
  61736. * `[style]` binding which is a Map and as such is fully dynamic and could produce `color` or
  61737. * `width`.
  61738. *
  61739. * NOTE: Once `[style]` (Map) is added into the system all things are mapped as duplicates.
  61740. * NOTE: We use `style` as example, but same logic is applied to `class`es as well.
  61741. *
  61742. * @param tData `TData` where the linked list is stored.
  61743. * @param tStylingKey `TStylingKeyPrimitive` which contains the value to compare to other keys in
  61744. * the linked list.
  61745. * @param index Starting location in the linked list to search from
  61746. * @param isPrevDir Direction.
  61747. * - `true` for previous (lower priority);
  61748. * - `false` for next (higher priority).
  61749. */
  61750. function markDuplicates(tData, tStylingKey, index, isPrevDir, isClassBinding) {
  61751. const tStylingAtIndex = tData[index + 1];
  61752. const isMap = tStylingKey === null;
  61753. let cursor = isPrevDir ? getTStylingRangePrev(tStylingAtIndex) : getTStylingRangeNext(tStylingAtIndex);
  61754. let foundDuplicate = false;
  61755. // We keep iterating as long as we have a cursor
  61756. // AND either:
  61757. // - we found what we are looking for, OR
  61758. // - we are a map in which case we have to continue searching even after we find what we were
  61759. // looking for since we are a wild card and everything needs to be flipped to duplicate.
  61760. while (cursor !== 0 && (foundDuplicate === false || isMap)) {
  61761. ngDevMode && assertIndexInRange(tData, cursor);
  61762. const tStylingValueAtCursor = tData[cursor];
  61763. const tStyleRangeAtCursor = tData[cursor + 1];
  61764. if (isStylingMatch(tStylingValueAtCursor, tStylingKey)) {
  61765. foundDuplicate = true;
  61766. tData[cursor + 1] = isPrevDir ? setTStylingRangeNextDuplicate(tStyleRangeAtCursor) :
  61767. setTStylingRangePrevDuplicate(tStyleRangeAtCursor);
  61768. }
  61769. cursor = isPrevDir ? getTStylingRangePrev(tStyleRangeAtCursor) :
  61770. getTStylingRangeNext(tStyleRangeAtCursor);
  61771. }
  61772. if (foundDuplicate) {
  61773. // if we found a duplicate, than mark ourselves.
  61774. tData[index + 1] = isPrevDir ? setTStylingRangePrevDuplicate(tStylingAtIndex) :
  61775. setTStylingRangeNextDuplicate(tStylingAtIndex);
  61776. }
  61777. }
  61778. /**
  61779. * Determines if two `TStylingKey`s are a match.
  61780. *
  61781. * When computing whether a binding contains a duplicate, we need to compare if the instruction
  61782. * `TStylingKey` has a match.
  61783. *
  61784. * Here are examples of `TStylingKey`s which match given `tStylingKeyCursor` is:
  61785. * - `color`
  61786. * - `color` // Match another color
  61787. * - `null` // That means that `tStylingKey` is a `classMap`/`styleMap` instruction
  61788. * - `['', 'color', 'other', true]` // wrapped `color` so match
  61789. * - `['', null, 'other', true]` // wrapped `null` so match
  61790. * - `['', 'width', 'color', 'value']` // wrapped static value contains a match on `'color'`
  61791. * - `null` // `tStylingKeyCursor` always match as it is `classMap`/`styleMap` instruction
  61792. *
  61793. * @param tStylingKeyCursor
  61794. * @param tStylingKey
  61795. */
  61796. function isStylingMatch(tStylingKeyCursor, tStylingKey) {
  61797. ngDevMode &&
  61798. assertNotEqual(Array.isArray(tStylingKey), true, 'Expected that \'tStylingKey\' has been unwrapped');
  61799. if (tStylingKeyCursor === null || // If the cursor is `null` it means that we have map at that
  61800. // location so we must assume that we have a match.
  61801. tStylingKey == null || // If `tStylingKey` is `null` then it is a map therefor assume that it
  61802. // contains a match.
  61803. (Array.isArray(tStylingKeyCursor) ? tStylingKeyCursor[1] : tStylingKeyCursor) ===
  61804. tStylingKey // If the keys match explicitly than we are a match.
  61805. ) {
  61806. return true;
  61807. }
  61808. else if (Array.isArray(tStylingKeyCursor) && typeof tStylingKey === 'string') {
  61809. // if we did not find a match, but `tStylingKeyCursor` is `KeyValueArray` that means cursor has
  61810. // statics and we need to check those as well.
  61811. return keyValueArrayIndexOf(tStylingKeyCursor, tStylingKey) >=
  61812. 0; // see if we are matching the key
  61813. }
  61814. return false;
  61815. }
  61816. /**
  61817. * @license
  61818. * Copyright Google LLC All Rights Reserved.
  61819. *
  61820. * Use of this source code is governed by an MIT-style license that can be
  61821. * found in the LICENSE file at https://angular.io/license
  61822. */
  61823. // Global state of the parser. (This makes parser non-reentrant, but that is not an issue)
  61824. const parserState = {
  61825. textEnd: 0,
  61826. key: 0,
  61827. keyEnd: 0,
  61828. value: 0,
  61829. valueEnd: 0,
  61830. };
  61831. /**
  61832. * Retrieves the last parsed `key` of style.
  61833. * @param text the text to substring the key from.
  61834. */
  61835. function getLastParsedKey(text) {
  61836. return text.substring(parserState.key, parserState.keyEnd);
  61837. }
  61838. /**
  61839. * Retrieves the last parsed `value` of style.
  61840. * @param text the text to substring the key from.
  61841. */
  61842. function getLastParsedValue(text) {
  61843. return text.substring(parserState.value, parserState.valueEnd);
  61844. }
  61845. /**
  61846. * Initializes `className` string for parsing and parses the first token.
  61847. *
  61848. * This function is intended to be used in this format:
  61849. * ```
  61850. * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
  61851. * const key = getLastParsedKey();
  61852. * ...
  61853. * }
  61854. * ```
  61855. * @param text `className` to parse
  61856. * @returns index where the next invocation of `parseClassNameNext` should resume.
  61857. */
  61858. function parseClassName(text) {
  61859. resetParserState(text);
  61860. return parseClassNameNext(text, consumeWhitespace(text, 0, parserState.textEnd));
  61861. }
  61862. /**
  61863. * Parses next `className` token.
  61864. *
  61865. * This function is intended to be used in this format:
  61866. * ```
  61867. * for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
  61868. * const key = getLastParsedKey();
  61869. * ...
  61870. * }
  61871. * ```
  61872. *
  61873. * @param text `className` to parse
  61874. * @param index where the parsing should resume.
  61875. * @returns index where the next invocation of `parseClassNameNext` should resume.
  61876. */
  61877. function parseClassNameNext(text, index) {
  61878. const end = parserState.textEnd;
  61879. if (end === index) {
  61880. return -1;
  61881. }
  61882. index = parserState.keyEnd = consumeClassToken(text, parserState.key = index, end);
  61883. return consumeWhitespace(text, index, end);
  61884. }
  61885. /**
  61886. * Initializes `cssText` string for parsing and parses the first key/values.
  61887. *
  61888. * This function is intended to be used in this format:
  61889. * ```
  61890. * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {
  61891. * const key = getLastParsedKey();
  61892. * const value = getLastParsedValue();
  61893. * ...
  61894. * }
  61895. * ```
  61896. * @param text `cssText` to parse
  61897. * @returns index where the next invocation of `parseStyleNext` should resume.
  61898. */
  61899. function parseStyle(text) {
  61900. resetParserState(text);
  61901. return parseStyleNext(text, consumeWhitespace(text, 0, parserState.textEnd));
  61902. }
  61903. /**
  61904. * Parses the next `cssText` key/values.
  61905. *
  61906. * This function is intended to be used in this format:
  61907. * ```
  61908. * for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i))) {
  61909. * const key = getLastParsedKey();
  61910. * const value = getLastParsedValue();
  61911. * ...
  61912. * }
  61913. *
  61914. * @param text `cssText` to parse
  61915. * @param index where the parsing should resume.
  61916. * @returns index where the next invocation of `parseStyleNext` should resume.
  61917. */
  61918. function parseStyleNext(text, startIndex) {
  61919. const end = parserState.textEnd;
  61920. let index = parserState.key = consumeWhitespace(text, startIndex, end);
  61921. if (end === index) {
  61922. // we reached an end so just quit
  61923. return -1;
  61924. }
  61925. index = parserState.keyEnd = consumeStyleKey(text, index, end);
  61926. index = consumeSeparator(text, index, end, 58 /* COLON */);
  61927. index = parserState.value = consumeWhitespace(text, index, end);
  61928. index = parserState.valueEnd = consumeStyleValue(text, index, end);
  61929. return consumeSeparator(text, index, end, 59 /* SEMI_COLON */);
  61930. }
  61931. /**
  61932. * Reset the global state of the styling parser.
  61933. * @param text The styling text to parse.
  61934. */
  61935. function resetParserState(text) {
  61936. parserState.key = 0;
  61937. parserState.keyEnd = 0;
  61938. parserState.value = 0;
  61939. parserState.valueEnd = 0;
  61940. parserState.textEnd = text.length;
  61941. }
  61942. /**
  61943. * Returns index of next non-whitespace character.
  61944. *
  61945. * @param text Text to scan
  61946. * @param startIndex Starting index of character where the scan should start.
  61947. * @param endIndex Ending index of character where the scan should end.
  61948. * @returns Index of next non-whitespace character (May be the same as `start` if no whitespace at
  61949. * that location.)
  61950. */
  61951. function consumeWhitespace(text, startIndex, endIndex) {
  61952. while (startIndex < endIndex && text.charCodeAt(startIndex) <= 32 /* SPACE */) {
  61953. startIndex++;
  61954. }
  61955. return startIndex;
  61956. }
  61957. /**
  61958. * Returns index of last char in class token.
  61959. *
  61960. * @param text Text to scan
  61961. * @param startIndex Starting index of character where the scan should start.
  61962. * @param endIndex Ending index of character where the scan should end.
  61963. * @returns Index after last char in class token.
  61964. */
  61965. function consumeClassToken(text, startIndex, endIndex) {
  61966. while (startIndex < endIndex && text.charCodeAt(startIndex) > 32 /* SPACE */) {
  61967. startIndex++;
  61968. }
  61969. return startIndex;
  61970. }
  61971. /**
  61972. * Consumes all of the characters belonging to style key and token.
  61973. *
  61974. * @param text Text to scan
  61975. * @param startIndex Starting index of character where the scan should start.
  61976. * @param endIndex Ending index of character where the scan should end.
  61977. * @returns Index after last style key character.
  61978. */
  61979. function consumeStyleKey(text, startIndex, endIndex) {
  61980. let ch;
  61981. while (startIndex < endIndex &&
  61982. ((ch = text.charCodeAt(startIndex)) === 45 /* DASH */ || ch === 95 /* UNDERSCORE */ ||
  61983. ((ch & -33 /* UPPER_CASE */) >= 65 /* A */ && (ch & -33 /* UPPER_CASE */) <= 90 /* Z */) ||
  61984. (ch >= 48 /* ZERO */ && ch <= 57 /* NINE */))) {
  61985. startIndex++;
  61986. }
  61987. return startIndex;
  61988. }
  61989. /**
  61990. * Consumes all whitespace and the separator `:` after the style key.
  61991. *
  61992. * @param text Text to scan
  61993. * @param startIndex Starting index of character where the scan should start.
  61994. * @param endIndex Ending index of character where the scan should end.
  61995. * @returns Index after separator and surrounding whitespace.
  61996. */
  61997. function consumeSeparator(text, startIndex, endIndex, separator) {
  61998. startIndex = consumeWhitespace(text, startIndex, endIndex);
  61999. if (startIndex < endIndex) {
  62000. if (ngDevMode && text.charCodeAt(startIndex) !== separator) {
  62001. malformedStyleError(text, String.fromCharCode(separator), startIndex);
  62002. }
  62003. startIndex++;
  62004. }
  62005. return startIndex;
  62006. }
  62007. /**
  62008. * Consumes style value honoring `url()` and `""` text.
  62009. *
  62010. * @param text Text to scan
  62011. * @param startIndex Starting index of character where the scan should start.
  62012. * @param endIndex Ending index of character where the scan should end.
  62013. * @returns Index after last style value character.
  62014. */
  62015. function consumeStyleValue(text, startIndex, endIndex) {
  62016. let ch1 = -1; // 1st previous character
  62017. let ch2 = -1; // 2nd previous character
  62018. let ch3 = -1; // 3rd previous character
  62019. let i = startIndex;
  62020. let lastChIndex = i;
  62021. while (i < endIndex) {
  62022. const ch = text.charCodeAt(i++);
  62023. if (ch === 59 /* SEMI_COLON */) {
  62024. return lastChIndex;
  62025. }
  62026. else if (ch === 34 /* DOUBLE_QUOTE */ || ch === 39 /* SINGLE_QUOTE */) {
  62027. lastChIndex = i = consumeQuotedText(text, ch, i, endIndex);
  62028. }
  62029. else if (startIndex ===
  62030. i - 4 && // We have seen only 4 characters so far "URL(" (Ignore "foo_URL()")
  62031. ch3 === 85 /* U */ &&
  62032. ch2 === 82 /* R */ && ch1 === 76 /* L */ && ch === 40 /* OPEN_PAREN */) {
  62033. lastChIndex = i = consumeQuotedText(text, 41 /* CLOSE_PAREN */, i, endIndex);
  62034. }
  62035. else if (ch > 32 /* SPACE */) {
  62036. // if we have a non-whitespace character then capture its location
  62037. lastChIndex = i;
  62038. }
  62039. ch3 = ch2;
  62040. ch2 = ch1;
  62041. ch1 = ch & -33 /* UPPER_CASE */;
  62042. }
  62043. return lastChIndex;
  62044. }
  62045. /**
  62046. * Consumes all of the quoted characters.
  62047. *
  62048. * @param text Text to scan
  62049. * @param quoteCharCode CharCode of either `"` or `'` quote or `)` for `url(...)`.
  62050. * @param startIndex Starting index of character where the scan should start.
  62051. * @param endIndex Ending index of character where the scan should end.
  62052. * @returns Index after quoted characters.
  62053. */
  62054. function consumeQuotedText(text, quoteCharCode, startIndex, endIndex) {
  62055. let ch1 = -1; // 1st previous character
  62056. let index = startIndex;
  62057. while (index < endIndex) {
  62058. const ch = text.charCodeAt(index++);
  62059. if (ch == quoteCharCode && ch1 !== 92 /* BACK_SLASH */) {
  62060. return index;
  62061. }
  62062. if (ch == 92 /* BACK_SLASH */ && ch1 === 92 /* BACK_SLASH */) {
  62063. // two back slashes cancel each other out. For example `"\\"` should properly end the
  62064. // quotation. (It should not assume that the last `"` is escaped.)
  62065. ch1 = 0;
  62066. }
  62067. else {
  62068. ch1 = ch;
  62069. }
  62070. }
  62071. throw ngDevMode ? malformedStyleError(text, String.fromCharCode(quoteCharCode), endIndex) :
  62072. new Error();
  62073. }
  62074. function malformedStyleError(text, expecting, index) {
  62075. ngDevMode && assertEqual(typeof text === 'string', true, 'String expected here');
  62076. throw throwError(`Malformed style at location ${index} in string '` + text.substring(0, index) + '[>>' +
  62077. text.substring(index, index + 1) + '<<]' + text.substr(index + 1) +
  62078. `'. Expecting '${expecting}'.`);
  62079. }
  62080. /**
  62081. * @license
  62082. * Copyright Google LLC All Rights Reserved.
  62083. *
  62084. * Use of this source code is governed by an MIT-style license that can be
  62085. * found in the LICENSE file at https://angular.io/license
  62086. */
  62087. /**
  62088. * Update a style binding on an element with the provided value.
  62089. *
  62090. * If the style value is falsy then it will be removed from the element
  62091. * (or assigned a different value depending if there are any styles placed
  62092. * on the element with `styleMap` or any static styles that are
  62093. * present from when the element was created with `styling`).
  62094. *
  62095. * Note that the styling element is updated as part of `stylingApply`.
  62096. *
  62097. * @param prop A valid CSS property.
  62098. * @param value New value to write (`null` or an empty string to remove).
  62099. * @param suffix Optional suffix. Used with scalar values to add unit such as `px`.
  62100. *
  62101. * Note that this will apply the provided style value to the host element if this function is called
  62102. * within a host binding function.
  62103. *
  62104. * @codeGenApi
  62105. */
  62106. function ɵɵstyleProp(prop, value, suffix) {
  62107. checkStylingProperty(prop, value, suffix, false);
  62108. return ɵɵstyleProp;
  62109. }
  62110. /**
  62111. * Update a class binding on an element with the provided value.
  62112. *
  62113. * This instruction is meant to handle the `[class.foo]="exp"` case and,
  62114. * therefore, the class binding itself must already be allocated using
  62115. * `styling` within the creation block.
  62116. *
  62117. * @param prop A valid CSS class (only one).
  62118. * @param value A true/false value which will turn the class on or off.
  62119. *
  62120. * Note that this will apply the provided class value to the host element if this function
  62121. * is called within a host binding function.
  62122. *
  62123. * @codeGenApi
  62124. */
  62125. function ɵɵclassProp(className, value) {
  62126. checkStylingProperty(className, value, null, true);
  62127. return ɵɵclassProp;
  62128. }
  62129. /**
  62130. * Update style bindings using an object literal on an element.
  62131. *
  62132. * This instruction is meant to apply styling via the `[style]="exp"` template bindings.
  62133. * When styles are applied to the element they will then be updated with respect to
  62134. * any styles/classes set via `styleProp`. If any styles are set to falsy
  62135. * then they will be removed from the element.
  62136. *
  62137. * Note that the styling instruction will not be applied until `stylingApply` is called.
  62138. *
  62139. * @param styles A key/value style map of the styles that will be applied to the given element.
  62140. * Any missing styles (that have already been applied to the element beforehand) will be
  62141. * removed (unset) from the element's styling.
  62142. *
  62143. * Note that this will apply the provided styleMap value to the host element if this function
  62144. * is called within a host binding.
  62145. *
  62146. * @codeGenApi
  62147. */
  62148. function ɵɵstyleMap(styles) {
  62149. checkStylingMap(styleKeyValueArraySet, styleStringParser, styles, false);
  62150. }
  62151. /**
  62152. * Parse text as style and add values to KeyValueArray.
  62153. *
  62154. * This code is pulled out to a separate function so that it can be tree shaken away if it is not
  62155. * needed. It is only referenced from `ɵɵstyleMap`.
  62156. *
  62157. * @param keyValueArray KeyValueArray to add parsed values to.
  62158. * @param text text to parse.
  62159. */
  62160. function styleStringParser(keyValueArray, text) {
  62161. for (let i = parseStyle(text); i >= 0; i = parseStyleNext(text, i)) {
  62162. styleKeyValueArraySet(keyValueArray, getLastParsedKey(text), getLastParsedValue(text));
  62163. }
  62164. }
  62165. /**
  62166. * Update class bindings using an object literal or class-string on an element.
  62167. *
  62168. * This instruction is meant to apply styling via the `[class]="exp"` template bindings.
  62169. * When classes are applied to the element they will then be updated with
  62170. * respect to any styles/classes set via `classProp`. If any
  62171. * classes are set to falsy then they will be removed from the element.
  62172. *
  62173. * Note that the styling instruction will not be applied until `stylingApply` is called.
  62174. * Note that this will the provided classMap value to the host element if this function is called
  62175. * within a host binding.
  62176. *
  62177. * @param classes A key/value map or string of CSS classes that will be added to the
  62178. * given element. Any missing classes (that have already been applied to the element
  62179. * beforehand) will be removed (unset) from the element's list of CSS classes.
  62180. *
  62181. * @codeGenApi
  62182. */
  62183. function ɵɵclassMap(classes) {
  62184. checkStylingMap(keyValueArraySet, classStringParser, classes, true);
  62185. }
  62186. /**
  62187. * Parse text as class and add values to KeyValueArray.
  62188. *
  62189. * This code is pulled out to a separate function so that it can be tree shaken away if it is not
  62190. * needed. It is only referenced from `ɵɵclassMap`.
  62191. *
  62192. * @param keyValueArray KeyValueArray to add parsed values to.
  62193. * @param text text to parse.
  62194. */
  62195. function classStringParser(keyValueArray, text) {
  62196. for (let i = parseClassName(text); i >= 0; i = parseClassNameNext(text, i)) {
  62197. keyValueArraySet(keyValueArray, getLastParsedKey(text), true);
  62198. }
  62199. }
  62200. /**
  62201. * Common code between `ɵɵclassProp` and `ɵɵstyleProp`.
  62202. *
  62203. * @param prop property name.
  62204. * @param value binding value.
  62205. * @param suffix suffix for the property (e.g. `em` or `px`)
  62206. * @param isClassBased `true` if `class` change (`false` if `style`)
  62207. */
  62208. function checkStylingProperty(prop, value, suffix, isClassBased) {
  62209. const lView = getLView();
  62210. const tView = getTView();
  62211. // Styling instructions use 2 slots per binding.
  62212. // 1. one for the value / TStylingKey
  62213. // 2. one for the intermittent-value / TStylingRange
  62214. const bindingIndex = incrementBindingIndex(2);
  62215. if (tView.firstUpdatePass) {
  62216. stylingFirstUpdatePass(tView, prop, bindingIndex, isClassBased);
  62217. }
  62218. if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {
  62219. const tNode = tView.data[getSelectedIndex()];
  62220. updateStyling(tView, tNode, lView, lView[RENDERER], prop, lView[bindingIndex + 1] = normalizeSuffix(value, suffix), isClassBased, bindingIndex);
  62221. }
  62222. }
  62223. /**
  62224. * Common code between `ɵɵclassMap` and `ɵɵstyleMap`.
  62225. *
  62226. * @param keyValueArraySet (See `keyValueArraySet` in "util/array_utils") Gets passed in as a
  62227. * function so that `style` can be processed. This is done for tree shaking purposes.
  62228. * @param stringParser Parser used to parse `value` if `string`. (Passed in as `style` and `class`
  62229. * have different parsers.)
  62230. * @param value bound value from application
  62231. * @param isClassBased `true` if `class` change (`false` if `style`)
  62232. */
  62233. function checkStylingMap(keyValueArraySet, stringParser, value, isClassBased) {
  62234. const tView = getTView();
  62235. const bindingIndex = incrementBindingIndex(2);
  62236. if (tView.firstUpdatePass) {
  62237. stylingFirstUpdatePass(tView, null, bindingIndex, isClassBased);
  62238. }
  62239. const lView = getLView();
  62240. if (value !== NO_CHANGE && bindingUpdated(lView, bindingIndex, value)) {
  62241. // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the
  62242. // if so as not to read unnecessarily.
  62243. const tNode = tView.data[getSelectedIndex()];
  62244. if (hasStylingInputShadow(tNode, isClassBased) && !isInHostBindings(tView, bindingIndex)) {
  62245. if (ngDevMode) {
  62246. // verify that if we are shadowing then `TData` is appropriately marked so that we skip
  62247. // processing this binding in styling resolution.
  62248. const tStylingKey = tView.data[bindingIndex];
  62249. assertEqual(Array.isArray(tStylingKey) ? tStylingKey[1] : tStylingKey, false, 'Styling linked list shadow input should be marked as \'false\'');
  62250. }
  62251. // VE does not concatenate the static portion like we are doing here.
  62252. // Instead VE just ignores the static completely if dynamic binding is present.
  62253. // Because of locality we have already set the static portion because we don't know if there
  62254. // is a dynamic portion until later. If we would ignore the static portion it would look like
  62255. // the binding has removed it. This would confuse `[ngStyle]`/`[ngClass]` to do the wrong
  62256. // thing as it would think that the static portion was removed. For this reason we
  62257. // concatenate it so that `[ngStyle]`/`[ngClass]` can continue to work on changed.
  62258. let staticPrefix = isClassBased ? tNode.classesWithoutHost : tNode.stylesWithoutHost;
  62259. ngDevMode && isClassBased === false && staticPrefix !== null &&
  62260. assertEqual(staticPrefix.endsWith(';'), true, 'Expecting static portion to end with \';\'');
  62261. if (staticPrefix !== null) {
  62262. // We want to make sure that falsy values of `value` become empty strings.
  62263. value = concatStringsWithSpace(staticPrefix, value ? value : '');
  62264. }
  62265. // Given `<div [style] my-dir>` such that `my-dir` has `@Input('style')`.
  62266. // This takes over the `[style]` binding. (Same for `[class]`)
  62267. setDirectiveInputsWhichShadowsStyling(tView, tNode, lView, value, isClassBased);
  62268. }
  62269. else {
  62270. updateStylingMap(tView, tNode, lView, lView[RENDERER], lView[bindingIndex + 1], lView[bindingIndex + 1] = toStylingKeyValueArray(keyValueArraySet, stringParser, value), isClassBased, bindingIndex);
  62271. }
  62272. }
  62273. }
  62274. /**
  62275. * Determines when the binding is in `hostBindings` section
  62276. *
  62277. * @param tView Current `TView`
  62278. * @param bindingIndex index of binding which we would like if it is in `hostBindings`
  62279. */
  62280. function isInHostBindings(tView, bindingIndex) {
  62281. // All host bindings are placed after the expando section.
  62282. return bindingIndex >= tView.expandoStartIndex;
  62283. }
  62284. /**
  62285. * Collects the necessary information to insert the binding into a linked list of style bindings
  62286. * using `insertTStylingBinding`.
  62287. *
  62288. * @param tView `TView` where the binding linked list will be stored.
  62289. * @param tStylingKey Property/key of the binding.
  62290. * @param bindingIndex Index of binding associated with the `prop`
  62291. * @param isClassBased `true` if `class` change (`false` if `style`)
  62292. */
  62293. function stylingFirstUpdatePass(tView, tStylingKey, bindingIndex, isClassBased) {
  62294. ngDevMode && assertFirstUpdatePass(tView);
  62295. const tData = tView.data;
  62296. if (tData[bindingIndex + 1] === null) {
  62297. // The above check is necessary because we don't clear first update pass until first successful
  62298. // (no exception) template execution. This prevents the styling instruction from double adding
  62299. // itself to the list.
  62300. // `getSelectedIndex()` should be here (rather than in instruction) so that it is guarded by the
  62301. // if so as not to read unnecessarily.
  62302. const tNode = tData[getSelectedIndex()];
  62303. ngDevMode && assertDefined(tNode, 'TNode expected');
  62304. const isHostBindings = isInHostBindings(tView, bindingIndex);
  62305. if (hasStylingInputShadow(tNode, isClassBased) && tStylingKey === null && !isHostBindings) {
  62306. // `tStylingKey === null` implies that we are either `[style]` or `[class]` binding.
  62307. // If there is a directive which uses `@Input('style')` or `@Input('class')` than
  62308. // we need to neutralize this binding since that directive is shadowing it.
  62309. // We turn this into a noop by setting the key to `false`
  62310. tStylingKey = false;
  62311. }
  62312. tStylingKey = wrapInStaticStylingKey(tData, tNode, tStylingKey, isClassBased);
  62313. insertTStylingBinding(tData, tNode, tStylingKey, bindingIndex, isHostBindings, isClassBased);
  62314. }
  62315. }
  62316. /**
  62317. * Adds static styling information to the binding if applicable.
  62318. *
  62319. * The linked list of styles not only stores the list and keys, but also stores static styling
  62320. * information on some of the keys. This function determines if the key should contain the styling
  62321. * information and computes it.
  62322. *
  62323. * See `TStylingStatic` for more details.
  62324. *
  62325. * @param tData `TData` where the linked list is stored.
  62326. * @param tNode `TNode` for which the styling is being computed.
  62327. * @param stylingKey `TStylingKeyPrimitive` which may need to be wrapped into `TStylingKey`
  62328. * @param isClassBased `true` if `class` (`false` if `style`)
  62329. */
  62330. function wrapInStaticStylingKey(tData, tNode, stylingKey, isClassBased) {
  62331. const hostDirectiveDef = getCurrentDirectiveDef(tData);
  62332. let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;
  62333. if (hostDirectiveDef === null) {
  62334. // We are in template node.
  62335. // If template node already had styling instruction then it has already collected the static
  62336. // styling and there is no need to collect them again. We know that we are the first styling
  62337. // instruction because the `TNode.*Bindings` points to 0 (nothing has been inserted yet).
  62338. const isFirstStylingInstructionInTemplate = (isClassBased ? tNode.classBindings : tNode.styleBindings) === 0;
  62339. if (isFirstStylingInstructionInTemplate) {
  62340. // It would be nice to be able to get the statics from `mergeAttrs`, however, at this point
  62341. // they are already merged and it would not be possible to figure which property belongs where
  62342. // in the priority.
  62343. stylingKey = collectStylingFromDirectives(null, tData, tNode, stylingKey, isClassBased);
  62344. stylingKey = collectStylingFromTAttrs(stylingKey, tNode.attrs, isClassBased);
  62345. // We know that if we have styling binding in template we can't have residual.
  62346. residual = null;
  62347. }
  62348. }
  62349. else {
  62350. // We are in host binding node and there was no binding instruction in template node.
  62351. // This means that we need to compute the residual.
  62352. const directiveStylingLast = tNode.directiveStylingLast;
  62353. const isFirstStylingInstructionInHostBinding = directiveStylingLast === -1 || tData[directiveStylingLast] !== hostDirectiveDef;
  62354. if (isFirstStylingInstructionInHostBinding) {
  62355. stylingKey =
  62356. collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased);
  62357. if (residual === null) {
  62358. // - If `null` than either:
  62359. // - Template styling instruction already ran and it has consumed the static
  62360. // styling into its `TStylingKey` and so there is no need to update residual. Instead
  62361. // we need to update the `TStylingKey` associated with the first template node
  62362. // instruction. OR
  62363. // - Some other styling instruction ran and determined that there are no residuals
  62364. let templateStylingKey = getTemplateHeadTStylingKey(tData, tNode, isClassBased);
  62365. if (templateStylingKey !== undefined && Array.isArray(templateStylingKey)) {
  62366. // Only recompute if `templateStylingKey` had static values. (If no static value found
  62367. // then there is nothing to do since this operation can only produce less static keys, not
  62368. // more.)
  62369. templateStylingKey = collectStylingFromDirectives(null, tData, tNode, templateStylingKey[1] /* unwrap previous statics */, isClassBased);
  62370. templateStylingKey =
  62371. collectStylingFromTAttrs(templateStylingKey, tNode.attrs, isClassBased);
  62372. setTemplateHeadTStylingKey(tData, tNode, isClassBased, templateStylingKey);
  62373. }
  62374. }
  62375. else {
  62376. // We only need to recompute residual if it is not `null`.
  62377. // - If existing residual (implies there was no template styling). This means that some of
  62378. // the statics may have moved from the residual to the `stylingKey` and so we have to
  62379. // recompute.
  62380. // - If `undefined` this is the first time we are running.
  62381. residual = collectResidual(tData, tNode, isClassBased);
  62382. }
  62383. }
  62384. }
  62385. if (residual !== undefined) {
  62386. isClassBased ? (tNode.residualClasses = residual) : (tNode.residualStyles = residual);
  62387. }
  62388. return stylingKey;
  62389. }
  62390. /**
  62391. * Retrieve the `TStylingKey` for the template styling instruction.
  62392. *
  62393. * This is needed since `hostBinding` styling instructions are inserted after the template
  62394. * instruction. While the template instruction needs to update the residual in `TNode` the
  62395. * `hostBinding` instructions need to update the `TStylingKey` of the template instruction because
  62396. * the template instruction is downstream from the `hostBindings` instructions.
  62397. *
  62398. * @param tData `TData` where the linked list is stored.
  62399. * @param tNode `TNode` for which the styling is being computed.
  62400. * @param isClassBased `true` if `class` (`false` if `style`)
  62401. * @return `TStylingKey` if found or `undefined` if not found.
  62402. */
  62403. function getTemplateHeadTStylingKey(tData, tNode, isClassBased) {
  62404. const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;
  62405. if (getTStylingRangeNext(bindings) === 0) {
  62406. // There does not seem to be a styling instruction in the `template`.
  62407. return undefined;
  62408. }
  62409. return tData[getTStylingRangePrev(bindings)];
  62410. }
  62411. /**
  62412. * Update the `TStylingKey` of the first template instruction in `TNode`.
  62413. *
  62414. * Logically `hostBindings` styling instructions are of lower priority than that of the template.
  62415. * However, they execute after the template styling instructions. This means that they get inserted
  62416. * in front of the template styling instructions.
  62417. *
  62418. * If we have a template styling instruction and a new `hostBindings` styling instruction is
  62419. * executed it means that it may need to steal static fields from the template instruction. This
  62420. * method allows us to update the first template instruction `TStylingKey` with a new value.
  62421. *
  62422. * Assume:
  62423. * ```
  62424. * <div my-dir style="color: red" [style.color]="tmplExp"></div>
  62425. *
  62426. * @Directive({
  62427. * host: {
  62428. * 'style': 'width: 100px',
  62429. * '[style.color]': 'dirExp',
  62430. * }
  62431. * })
  62432. * class MyDir {}
  62433. * ```
  62434. *
  62435. * when `[style.color]="tmplExp"` executes it creates this data structure.
  62436. * ```
  62437. * ['', 'color', 'color', 'red', 'width', '100px'],
  62438. * ```
  62439. *
  62440. * The reason for this is that the template instruction does not know if there are styling
  62441. * instructions and must assume that there are none and must collect all of the static styling.
  62442. * (both
  62443. * `color' and 'width`)
  62444. *
  62445. * When `'[style.color]': 'dirExp',` executes we need to insert a new data into the linked list.
  62446. * ```
  62447. * ['', 'color', 'width', '100px'], // newly inserted
  62448. * ['', 'color', 'color', 'red', 'width', '100px'], // this is wrong
  62449. * ```
  62450. *
  62451. * Notice that the template statics is now wrong as it incorrectly contains `width` so we need to
  62452. * update it like so:
  62453. * ```
  62454. * ['', 'color', 'width', '100px'],
  62455. * ['', 'color', 'color', 'red'], // UPDATE
  62456. * ```
  62457. *
  62458. * @param tData `TData` where the linked list is stored.
  62459. * @param tNode `TNode` for which the styling is being computed.
  62460. * @param isClassBased `true` if `class` (`false` if `style`)
  62461. * @param tStylingKey New `TStylingKey` which is replacing the old one.
  62462. */
  62463. function setTemplateHeadTStylingKey(tData, tNode, isClassBased, tStylingKey) {
  62464. const bindings = isClassBased ? tNode.classBindings : tNode.styleBindings;
  62465. ngDevMode &&
  62466. assertNotEqual(getTStylingRangeNext(bindings), 0, 'Expecting to have at least one template styling binding.');
  62467. tData[getTStylingRangePrev(bindings)] = tStylingKey;
  62468. }
  62469. /**
  62470. * Collect all static values after the current `TNode.directiveStylingLast` index.
  62471. *
  62472. * Collect the remaining styling information which has not yet been collected by an existing
  62473. * styling instruction.
  62474. *
  62475. * @param tData `TData` where the `DirectiveDefs` are stored.
  62476. * @param tNode `TNode` which contains the directive range.
  62477. * @param isClassBased `true` if `class` (`false` if `style`)
  62478. */
  62479. function collectResidual(tData, tNode, isClassBased) {
  62480. let residual = undefined;
  62481. const directiveEnd = tNode.directiveEnd;
  62482. ngDevMode &&
  62483. assertNotEqual(tNode.directiveStylingLast, -1, 'By the time this function gets called at least one hostBindings-node styling instruction must have executed.');
  62484. // We add `1 + tNode.directiveStart` because we need to skip the current directive (as we are
  62485. // collecting things after the last `hostBindings` directive which had a styling instruction.)
  62486. for (let i = 1 + tNode.directiveStylingLast; i < directiveEnd; i++) {
  62487. const attrs = tData[i].hostAttrs;
  62488. residual = collectStylingFromTAttrs(residual, attrs, isClassBased);
  62489. }
  62490. return collectStylingFromTAttrs(residual, tNode.attrs, isClassBased);
  62491. }
  62492. /**
  62493. * Collect the static styling information with lower priority than `hostDirectiveDef`.
  62494. *
  62495. * (This is opposite of residual styling.)
  62496. *
  62497. * @param hostDirectiveDef `DirectiveDef` for which we want to collect lower priority static
  62498. * styling. (Or `null` if template styling)
  62499. * @param tData `TData` where the linked list is stored.
  62500. * @param tNode `TNode` for which the styling is being computed.
  62501. * @param stylingKey Existing `TStylingKey` to update or wrap.
  62502. * @param isClassBased `true` if `class` (`false` if `style`)
  62503. */
  62504. function collectStylingFromDirectives(hostDirectiveDef, tData, tNode, stylingKey, isClassBased) {
  62505. // We need to loop because there can be directives which have `hostAttrs` but don't have
  62506. // `hostBindings` so this loop catches up to the current directive..
  62507. let currentDirective = null;
  62508. const directiveEnd = tNode.directiveEnd;
  62509. let directiveStylingLast = tNode.directiveStylingLast;
  62510. if (directiveStylingLast === -1) {
  62511. directiveStylingLast = tNode.directiveStart;
  62512. }
  62513. else {
  62514. directiveStylingLast++;
  62515. }
  62516. while (directiveStylingLast < directiveEnd) {
  62517. currentDirective = tData[directiveStylingLast];
  62518. ngDevMode && assertDefined(currentDirective, 'expected to be defined');
  62519. stylingKey = collectStylingFromTAttrs(stylingKey, currentDirective.hostAttrs, isClassBased);
  62520. if (currentDirective === hostDirectiveDef)
  62521. break;
  62522. directiveStylingLast++;
  62523. }
  62524. if (hostDirectiveDef !== null) {
  62525. // we only advance the styling cursor if we are collecting data from host bindings.
  62526. // Template executes before host bindings and so if we would update the index,
  62527. // host bindings would not get their statics.
  62528. tNode.directiveStylingLast = directiveStylingLast;
  62529. }
  62530. return stylingKey;
  62531. }
  62532. /**
  62533. * Convert `TAttrs` into `TStylingStatic`.
  62534. *
  62535. * @param stylingKey existing `TStylingKey` to update or wrap.
  62536. * @param attrs `TAttributes` to process.
  62537. * @param isClassBased `true` if `class` (`false` if `style`)
  62538. */
  62539. function collectStylingFromTAttrs(stylingKey, attrs, isClassBased) {
  62540. const desiredMarker = isClassBased ? 1 /* Classes */ : 2 /* Styles */;
  62541. let currentMarker = -1 /* ImplicitAttributes */;
  62542. if (attrs !== null) {
  62543. for (let i = 0; i < attrs.length; i++) {
  62544. const item = attrs[i];
  62545. if (typeof item === 'number') {
  62546. currentMarker = item;
  62547. }
  62548. else {
  62549. if (currentMarker === desiredMarker) {
  62550. if (!Array.isArray(stylingKey)) {
  62551. stylingKey = stylingKey === undefined ? [] : ['', stylingKey];
  62552. }
  62553. keyValueArraySet(stylingKey, item, isClassBased ? true : attrs[++i]);
  62554. }
  62555. }
  62556. }
  62557. }
  62558. return stylingKey === undefined ? null : stylingKey;
  62559. }
  62560. /**
  62561. * Convert user input to `KeyValueArray`.
  62562. *
  62563. * This function takes user input which could be `string`, Object literal, or iterable and converts
  62564. * it into a consistent representation. The output of this is `KeyValueArray` (which is an array
  62565. * where
  62566. * even indexes contain keys and odd indexes contain values for those keys).
  62567. *
  62568. * The advantage of converting to `KeyValueArray` is that we can perform diff in an input
  62569. * independent
  62570. * way.
  62571. * (ie we can compare `foo bar` to `['bar', 'baz'] and determine a set of changes which need to be
  62572. * applied)
  62573. *
  62574. * The fact that `KeyValueArray` is sorted is very important because it allows us to compute the
  62575. * difference in linear fashion without the need to allocate any additional data.
  62576. *
  62577. * For example if we kept this as a `Map` we would have to iterate over previous `Map` to determine
  62578. * which values need to be deleted, over the new `Map` to determine additions, and we would have to
  62579. * keep additional `Map` to keep track of duplicates or items which have not yet been visited.
  62580. *
  62581. * @param keyValueArraySet (See `keyValueArraySet` in "util/array_utils") Gets passed in as a
  62582. * function so that `style` can be processed. This is done
  62583. * for tree shaking purposes.
  62584. * @param stringParser The parser is passed in so that it will be tree shakable. See
  62585. * `styleStringParser` and `classStringParser`
  62586. * @param value The value to parse/convert to `KeyValueArray`
  62587. */
  62588. function toStylingKeyValueArray(keyValueArraySet, stringParser, value) {
  62589. if (value == null /*|| value === undefined */ || value === '')
  62590. return EMPTY_ARRAY$3;
  62591. const styleKeyValueArray = [];
  62592. const unwrappedValue = unwrapSafeValue(value);
  62593. if (Array.isArray(unwrappedValue)) {
  62594. for (let i = 0; i < unwrappedValue.length; i++) {
  62595. keyValueArraySet(styleKeyValueArray, unwrappedValue[i], true);
  62596. }
  62597. }
  62598. else if (typeof unwrappedValue === 'object') {
  62599. for (const key in unwrappedValue) {
  62600. if (unwrappedValue.hasOwnProperty(key)) {
  62601. keyValueArraySet(styleKeyValueArray, key, unwrappedValue[key]);
  62602. }
  62603. }
  62604. }
  62605. else if (typeof unwrappedValue === 'string') {
  62606. stringParser(styleKeyValueArray, unwrappedValue);
  62607. }
  62608. else {
  62609. ngDevMode &&
  62610. throwError('Unsupported styling type ' + typeof unwrappedValue + ': ' + unwrappedValue);
  62611. }
  62612. return styleKeyValueArray;
  62613. }
  62614. /**
  62615. * Set a `value` for a `key`.
  62616. *
  62617. * See: `keyValueArraySet` for details
  62618. *
  62619. * @param keyValueArray KeyValueArray to add to.
  62620. * @param key Style key to add.
  62621. * @param value The value to set.
  62622. */
  62623. function styleKeyValueArraySet(keyValueArray, key, value) {
  62624. keyValueArraySet(keyValueArray, key, unwrapSafeValue(value));
  62625. }
  62626. /**
  62627. * Update map based styling.
  62628. *
  62629. * Map based styling could be anything which contains more than one binding. For example `string`,
  62630. * or object literal. Dealing with all of these types would complicate the logic so
  62631. * instead this function expects that the complex input is first converted into normalized
  62632. * `KeyValueArray`. The advantage of normalization is that we get the values sorted, which makes it
  62633. * very cheap to compute deltas between the previous and current value.
  62634. *
  62635. * @param tView Associated `TView.data` contains the linked list of binding priorities.
  62636. * @param tNode `TNode` where the binding is located.
  62637. * @param lView `LView` contains the values associated with other styling binding at this `TNode`.
  62638. * @param renderer Renderer to use if any updates.
  62639. * @param oldKeyValueArray Previous value represented as `KeyValueArray`
  62640. * @param newKeyValueArray Current value represented as `KeyValueArray`
  62641. * @param isClassBased `true` if `class` (`false` if `style`)
  62642. * @param bindingIndex Binding index of the binding.
  62643. */
  62644. function updateStylingMap(tView, tNode, lView, renderer, oldKeyValueArray, newKeyValueArray, isClassBased, bindingIndex) {
  62645. if (oldKeyValueArray === NO_CHANGE) {
  62646. // On first execution the oldKeyValueArray is NO_CHANGE => treat it as empty KeyValueArray.
  62647. oldKeyValueArray = EMPTY_ARRAY$3;
  62648. }
  62649. let oldIndex = 0;
  62650. let newIndex = 0;
  62651. let oldKey = 0 < oldKeyValueArray.length ? oldKeyValueArray[0] : null;
  62652. let newKey = 0 < newKeyValueArray.length ? newKeyValueArray[0] : null;
  62653. while (oldKey !== null || newKey !== null) {
  62654. ngDevMode && assertLessThan(oldIndex, 999, 'Are we stuck in infinite loop?');
  62655. ngDevMode && assertLessThan(newIndex, 999, 'Are we stuck in infinite loop?');
  62656. const oldValue = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex + 1] : undefined;
  62657. const newValue = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex + 1] : undefined;
  62658. let setKey = null;
  62659. let setValue = undefined;
  62660. if (oldKey === newKey) {
  62661. // UPDATE: Keys are equal => new value is overwriting old value.
  62662. oldIndex += 2;
  62663. newIndex += 2;
  62664. if (oldValue !== newValue) {
  62665. setKey = newKey;
  62666. setValue = newValue;
  62667. }
  62668. }
  62669. else if (newKey === null || oldKey !== null && oldKey < newKey) {
  62670. // DELETE: oldKey key is missing or we did not find the oldKey in the newValue
  62671. // (because the keyValueArray is sorted and `newKey` is found later alphabetically).
  62672. // `"background" < "color"` so we need to delete `"background"` because it is not found in the
  62673. // new array.
  62674. oldIndex += 2;
  62675. setKey = oldKey;
  62676. }
  62677. else {
  62678. // CREATE: newKey's is earlier alphabetically than oldKey's (or no oldKey) => we have new key.
  62679. // `"color" > "background"` so we need to add `color` because it is in new array but not in
  62680. // old array.
  62681. ngDevMode && assertDefined(newKey, 'Expecting to have a valid key');
  62682. newIndex += 2;
  62683. setKey = newKey;
  62684. setValue = newValue;
  62685. }
  62686. if (setKey !== null) {
  62687. updateStyling(tView, tNode, lView, renderer, setKey, setValue, isClassBased, bindingIndex);
  62688. }
  62689. oldKey = oldIndex < oldKeyValueArray.length ? oldKeyValueArray[oldIndex] : null;
  62690. newKey = newIndex < newKeyValueArray.length ? newKeyValueArray[newIndex] : null;
  62691. }
  62692. }
  62693. /**
  62694. * Update a simple (property name) styling.
  62695. *
  62696. * This function takes `prop` and updates the DOM to that value. The function takes the binding
  62697. * value as well as binding priority into consideration to determine which value should be written
  62698. * to DOM. (For example it may be determined that there is a higher priority overwrite which blocks
  62699. * the DOM write, or if the value goes to `undefined` a lower priority overwrite may be consulted.)
  62700. *
  62701. * @param tView Associated `TView.data` contains the linked list of binding priorities.
  62702. * @param tNode `TNode` where the binding is located.
  62703. * @param lView `LView` contains the values associated with other styling binding at this `TNode`.
  62704. * @param renderer Renderer to use if any updates.
  62705. * @param prop Either style property name or a class name.
  62706. * @param value Either style value for `prop` or `true`/`false` if `prop` is class.
  62707. * @param isClassBased `true` if `class` (`false` if `style`)
  62708. * @param bindingIndex Binding index of the binding.
  62709. */
  62710. function updateStyling(tView, tNode, lView, renderer, prop, value, isClassBased, bindingIndex) {
  62711. if (!(tNode.type & 3 /* AnyRNode */)) {
  62712. // It is possible to have styling on non-elements (such as ng-container).
  62713. // This is rare, but it does happen. In such a case, just ignore the binding.
  62714. return;
  62715. }
  62716. const tData = tView.data;
  62717. const tRange = tData[bindingIndex + 1];
  62718. const higherPriorityValue = getTStylingRangeNextDuplicate(tRange) ?
  62719. findStylingValue(tData, tNode, lView, prop, getTStylingRangeNext(tRange), isClassBased) :
  62720. undefined;
  62721. if (!isStylingValuePresent(higherPriorityValue)) {
  62722. // We don't have a next duplicate, or we did not find a duplicate value.
  62723. if (!isStylingValuePresent(value)) {
  62724. // We should delete current value or restore to lower priority value.
  62725. if (getTStylingRangePrevDuplicate(tRange)) {
  62726. // We have a possible prev duplicate, let's retrieve it.
  62727. value = findStylingValue(tData, null, lView, prop, bindingIndex, isClassBased);
  62728. }
  62729. }
  62730. const rNode = getNativeByIndex(getSelectedIndex(), lView);
  62731. applyStyling(renderer, isClassBased, rNode, prop, value);
  62732. }
  62733. }
  62734. /**
  62735. * Search for styling value with higher priority which is overwriting current value, or a
  62736. * value of lower priority to which we should fall back if the value is `undefined`.
  62737. *
  62738. * When value is being applied at a location, related values need to be consulted.
  62739. * - If there is a higher priority binding, we should be using that one instead.
  62740. * For example `<div [style]="{color:exp1}" [style.color]="exp2">` change to `exp1`
  62741. * requires that we check `exp2` to see if it is set to value other than `undefined`.
  62742. * - If there is a lower priority binding and we are changing to `undefined`
  62743. * For example `<div [style]="{color:exp1}" [style.color]="exp2">` change to `exp2` to
  62744. * `undefined` requires that we check `exp1` (and static values) and use that as new value.
  62745. *
  62746. * NOTE: The styling stores two values.
  62747. * 1. The raw value which came from the application is stored at `index + 0` location. (This value
  62748. * is used for dirty checking).
  62749. * 2. The normalized value is stored at `index + 1`.
  62750. *
  62751. * @param tData `TData` used for traversing the priority.
  62752. * @param tNode `TNode` to use for resolving static styling. Also controls search direction.
  62753. * - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.
  62754. * If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.
  62755. * - `null` search prev and go all the way to end. Return last value where
  62756. * `isStylingValuePresent(value)` is true.
  62757. * @param lView `LView` used for retrieving the actual values.
  62758. * @param prop Property which we are interested in.
  62759. * @param index Starting index in the linked list of styling bindings where the search should start.
  62760. * @param isClassBased `true` if `class` (`false` if `style`)
  62761. */
  62762. function findStylingValue(tData, tNode, lView, prop, index, isClassBased) {
  62763. // `TNode` to use for resolving static styling. Also controls search direction.
  62764. // - `TNode` search next and quit as soon as `isStylingValuePresent(value)` is true.
  62765. // If no value found consult `tNode.residualStyle`/`tNode.residualClass` for default value.
  62766. // - `null` search prev and go all the way to end. Return last value where
  62767. // `isStylingValuePresent(value)` is true.
  62768. const isPrevDirection = tNode === null;
  62769. let value = undefined;
  62770. while (index > 0) {
  62771. const rawKey = tData[index];
  62772. const containsStatics = Array.isArray(rawKey);
  62773. // Unwrap the key if we contain static values.
  62774. const key = containsStatics ? rawKey[1] : rawKey;
  62775. const isStylingMap = key === null;
  62776. let valueAtLViewIndex = lView[index + 1];
  62777. if (valueAtLViewIndex === NO_CHANGE) {
  62778. // In firstUpdatePass the styling instructions create a linked list of styling.
  62779. // On subsequent passes it is possible for a styling instruction to try to read a binding
  62780. // which
  62781. // has not yet executed. In that case we will find `NO_CHANGE` and we should assume that
  62782. // we have `undefined` (or empty array in case of styling-map instruction) instead. This
  62783. // allows the resolution to apply the value (which may later be overwritten when the
  62784. // binding actually executes.)
  62785. valueAtLViewIndex = isStylingMap ? EMPTY_ARRAY$3 : undefined;
  62786. }
  62787. let currentValue = isStylingMap ? keyValueArrayGet(valueAtLViewIndex, prop) :
  62788. key === prop ? valueAtLViewIndex : undefined;
  62789. if (containsStatics && !isStylingValuePresent(currentValue)) {
  62790. currentValue = keyValueArrayGet(rawKey, prop);
  62791. }
  62792. if (isStylingValuePresent(currentValue)) {
  62793. value = currentValue;
  62794. if (isPrevDirection) {
  62795. return value;
  62796. }
  62797. }
  62798. const tRange = tData[index + 1];
  62799. index = isPrevDirection ? getTStylingRangePrev(tRange) : getTStylingRangeNext(tRange);
  62800. }
  62801. if (tNode !== null) {
  62802. // in case where we are going in next direction AND we did not find anything, we need to
  62803. // consult residual styling
  62804. let residual = isClassBased ? tNode.residualClasses : tNode.residualStyles;
  62805. if (residual != null /** OR residual !=== undefined */) {
  62806. value = keyValueArrayGet(residual, prop);
  62807. }
  62808. }
  62809. return value;
  62810. }
  62811. /**
  62812. * Determines if the binding value should be used (or if the value is 'undefined' and hence priority
  62813. * resolution should be used.)
  62814. *
  62815. * @param value Binding style value.
  62816. */
  62817. function isStylingValuePresent(value) {
  62818. // Currently only `undefined` value is considered non-binding. That is `undefined` says I don't
  62819. // have an opinion as to what this binding should be and you should consult other bindings by
  62820. // priority to determine the valid value.
  62821. // This is extracted into a single function so that we have a single place to control this.
  62822. return value !== undefined;
  62823. }
  62824. /**
  62825. * Normalizes and/or adds a suffix to the value.
  62826. *
  62827. * If value is `null`/`undefined` no suffix is added
  62828. * @param value
  62829. * @param suffix
  62830. */
  62831. function normalizeSuffix(value, suffix) {
  62832. if (value == null /** || value === undefined */) {
  62833. // do nothing
  62834. }
  62835. else if (typeof suffix === 'string') {
  62836. value = value + suffix;
  62837. }
  62838. else if (typeof value === 'object') {
  62839. value = stringify(unwrapSafeValue(value));
  62840. }
  62841. return value;
  62842. }
  62843. /**
  62844. * Tests if the `TNode` has input shadow.
  62845. *
  62846. * An input shadow is when a directive steals (shadows) the input by using `@Input('style')` or
  62847. * `@Input('class')` as input.
  62848. *
  62849. * @param tNode `TNode` which we would like to see if it has shadow.
  62850. * @param isClassBased `true` if `class` (`false` if `style`)
  62851. */
  62852. function hasStylingInputShadow(tNode, isClassBased) {
  62853. return (tNode.flags & (isClassBased ? 16 /* hasClassInput */ : 32 /* hasStyleInput */)) !== 0;
  62854. }
  62855. /**
  62856. * @license
  62857. * Copyright Google LLC All Rights Reserved.
  62858. *
  62859. * Use of this source code is governed by an MIT-style license that can be
  62860. * found in the LICENSE file at https://angular.io/license
  62861. */
  62862. /**
  62863. * Create static text node
  62864. *
  62865. * @param index Index of the node in the data array
  62866. * @param value Static string value to write.
  62867. *
  62868. * @codeGenApi
  62869. */
  62870. function ɵɵtext(index, value = '') {
  62871. const lView = getLView();
  62872. const tView = getTView();
  62873. const adjustedIndex = index + HEADER_OFFSET;
  62874. ngDevMode &&
  62875. assertEqual(getBindingIndex(), tView.bindingStartIndex, 'text nodes should be created before any bindings');
  62876. ngDevMode && assertIndexInRange(lView, adjustedIndex);
  62877. const tNode = tView.firstCreatePass ?
  62878. getOrCreateTNode(tView, adjustedIndex, 1 /* Text */, value, null) :
  62879. tView.data[adjustedIndex];
  62880. const textNative = lView[adjustedIndex] = createTextNode(lView[RENDERER], value);
  62881. appendChild(tView, lView, textNative, tNode);
  62882. // Text nodes are self closing.
  62883. setCurrentTNode(tNode, false);
  62884. }
  62885. /**
  62886. * @license
  62887. * Copyright Google LLC All Rights Reserved.
  62888. *
  62889. * Use of this source code is governed by an MIT-style license that can be
  62890. * found in the LICENSE file at https://angular.io/license
  62891. */
  62892. /**
  62893. *
  62894. * Update text content with a lone bound value
  62895. *
  62896. * Used when a text node has 1 interpolated value in it, an no additional text
  62897. * surrounds that interpolated value:
  62898. *
  62899. * ```html
  62900. * <div>{{v0}}</div>
  62901. * ```
  62902. *
  62903. * Its compiled representation is:
  62904. *
  62905. * ```ts
  62906. * ɵɵtextInterpolate(v0);
  62907. * ```
  62908. * @returns itself, so that it may be chained.
  62909. * @see textInterpolateV
  62910. * @codeGenApi
  62911. */
  62912. function ɵɵtextInterpolate(v0) {
  62913. ɵɵtextInterpolate1('', v0, '');
  62914. return ɵɵtextInterpolate;
  62915. }
  62916. /**
  62917. *
  62918. * Update text content with single bound value surrounded by other text.
  62919. *
  62920. * Used when a text node has 1 interpolated value in it:
  62921. *
  62922. * ```html
  62923. * <div>prefix{{v0}}suffix</div>
  62924. * ```
  62925. *
  62926. * Its compiled representation is:
  62927. *
  62928. * ```ts
  62929. * ɵɵtextInterpolate1('prefix', v0, 'suffix');
  62930. * ```
  62931. * @returns itself, so that it may be chained.
  62932. * @see textInterpolateV
  62933. * @codeGenApi
  62934. */
  62935. function ɵɵtextInterpolate1(prefix, v0, suffix) {
  62936. const lView = getLView();
  62937. const interpolated = interpolation1(lView, prefix, v0, suffix);
  62938. if (interpolated !== NO_CHANGE) {
  62939. textBindingInternal(lView, getSelectedIndex(), interpolated);
  62940. }
  62941. return ɵɵtextInterpolate1;
  62942. }
  62943. /**
  62944. *
  62945. * Update text content with 2 bound values surrounded by other text.
  62946. *
  62947. * Used when a text node has 2 interpolated values in it:
  62948. *
  62949. * ```html
  62950. * <div>prefix{{v0}}-{{v1}}suffix</div>
  62951. * ```
  62952. *
  62953. * Its compiled representation is:
  62954. *
  62955. * ```ts
  62956. * ɵɵtextInterpolate2('prefix', v0, '-', v1, 'suffix');
  62957. * ```
  62958. * @returns itself, so that it may be chained.
  62959. * @see textInterpolateV
  62960. * @codeGenApi
  62961. */
  62962. function ɵɵtextInterpolate2(prefix, v0, i0, v1, suffix) {
  62963. const lView = getLView();
  62964. const interpolated = interpolation2(lView, prefix, v0, i0, v1, suffix);
  62965. if (interpolated !== NO_CHANGE) {
  62966. textBindingInternal(lView, getSelectedIndex(), interpolated);
  62967. }
  62968. return ɵɵtextInterpolate2;
  62969. }
  62970. /**
  62971. *
  62972. * Update text content with 3 bound values surrounded by other text.
  62973. *
  62974. * Used when a text node has 3 interpolated values in it:
  62975. *
  62976. * ```html
  62977. * <div>prefix{{v0}}-{{v1}}-{{v2}}suffix</div>
  62978. * ```
  62979. *
  62980. * Its compiled representation is:
  62981. *
  62982. * ```ts
  62983. * ɵɵtextInterpolate3(
  62984. * 'prefix', v0, '-', v1, '-', v2, 'suffix');
  62985. * ```
  62986. * @returns itself, so that it may be chained.
  62987. * @see textInterpolateV
  62988. * @codeGenApi
  62989. */
  62990. function ɵɵtextInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
  62991. const lView = getLView();
  62992. const interpolated = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
  62993. if (interpolated !== NO_CHANGE) {
  62994. textBindingInternal(lView, getSelectedIndex(), interpolated);
  62995. }
  62996. return ɵɵtextInterpolate3;
  62997. }
  62998. /**
  62999. *
  63000. * Update text content with 4 bound values surrounded by other text.
  63001. *
  63002. * Used when a text node has 4 interpolated values in it:
  63003. *
  63004. * ```html
  63005. * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix</div>
  63006. * ```
  63007. *
  63008. * Its compiled representation is:
  63009. *
  63010. * ```ts
  63011. * ɵɵtextInterpolate4(
  63012. * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
  63013. * ```
  63014. * @returns itself, so that it may be chained.
  63015. * @see ɵɵtextInterpolateV
  63016. * @codeGenApi
  63017. */
  63018. function ɵɵtextInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
  63019. const lView = getLView();
  63020. const interpolated = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
  63021. if (interpolated !== NO_CHANGE) {
  63022. textBindingInternal(lView, getSelectedIndex(), interpolated);
  63023. }
  63024. return ɵɵtextInterpolate4;
  63025. }
  63026. /**
  63027. *
  63028. * Update text content with 5 bound values surrounded by other text.
  63029. *
  63030. * Used when a text node has 5 interpolated values in it:
  63031. *
  63032. * ```html
  63033. * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix</div>
  63034. * ```
  63035. *
  63036. * Its compiled representation is:
  63037. *
  63038. * ```ts
  63039. * ɵɵtextInterpolate5(
  63040. * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
  63041. * ```
  63042. * @returns itself, so that it may be chained.
  63043. * @see textInterpolateV
  63044. * @codeGenApi
  63045. */
  63046. function ɵɵtextInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
  63047. const lView = getLView();
  63048. const interpolated = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
  63049. if (interpolated !== NO_CHANGE) {
  63050. textBindingInternal(lView, getSelectedIndex(), interpolated);
  63051. }
  63052. return ɵɵtextInterpolate5;
  63053. }
  63054. /**
  63055. *
  63056. * Update text content with 6 bound values surrounded by other text.
  63057. *
  63058. * Used when a text node has 6 interpolated values in it:
  63059. *
  63060. * ```html
  63061. * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix</div>
  63062. * ```
  63063. *
  63064. * Its compiled representation is:
  63065. *
  63066. * ```ts
  63067. * ɵɵtextInterpolate6(
  63068. * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
  63069. * ```
  63070. *
  63071. * @param i4 Static value used for concatenation only.
  63072. * @param v5 Value checked for change. @returns itself, so that it may be chained.
  63073. * @see textInterpolateV
  63074. * @codeGenApi
  63075. */
  63076. function ɵɵtextInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
  63077. const lView = getLView();
  63078. const interpolated = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
  63079. if (interpolated !== NO_CHANGE) {
  63080. textBindingInternal(lView, getSelectedIndex(), interpolated);
  63081. }
  63082. return ɵɵtextInterpolate6;
  63083. }
  63084. /**
  63085. *
  63086. * Update text content with 7 bound values surrounded by other text.
  63087. *
  63088. * Used when a text node has 7 interpolated values in it:
  63089. *
  63090. * ```html
  63091. * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix</div>
  63092. * ```
  63093. *
  63094. * Its compiled representation is:
  63095. *
  63096. * ```ts
  63097. * ɵɵtextInterpolate7(
  63098. * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
  63099. * ```
  63100. * @returns itself, so that it may be chained.
  63101. * @see textInterpolateV
  63102. * @codeGenApi
  63103. */
  63104. function ɵɵtextInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
  63105. const lView = getLView();
  63106. const interpolated = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
  63107. if (interpolated !== NO_CHANGE) {
  63108. textBindingInternal(lView, getSelectedIndex(), interpolated);
  63109. }
  63110. return ɵɵtextInterpolate7;
  63111. }
  63112. /**
  63113. *
  63114. * Update text content with 8 bound values surrounded by other text.
  63115. *
  63116. * Used when a text node has 8 interpolated values in it:
  63117. *
  63118. * ```html
  63119. * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix</div>
  63120. * ```
  63121. *
  63122. * Its compiled representation is:
  63123. *
  63124. * ```ts
  63125. * ɵɵtextInterpolate8(
  63126. * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
  63127. * ```
  63128. * @returns itself, so that it may be chained.
  63129. * @see textInterpolateV
  63130. * @codeGenApi
  63131. */
  63132. function ɵɵtextInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
  63133. const lView = getLView();
  63134. const interpolated = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
  63135. if (interpolated !== NO_CHANGE) {
  63136. textBindingInternal(lView, getSelectedIndex(), interpolated);
  63137. }
  63138. return ɵɵtextInterpolate8;
  63139. }
  63140. /**
  63141. * Update text content with 9 or more bound values other surrounded by text.
  63142. *
  63143. * Used when the number of interpolated values exceeds 8.
  63144. *
  63145. * ```html
  63146. * <div>prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix</div>
  63147. * ```
  63148. *
  63149. * Its compiled representation is:
  63150. *
  63151. * ```ts
  63152. * ɵɵtextInterpolateV(
  63153. * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
  63154. * 'suffix']);
  63155. * ```
  63156. *.
  63157. * @param values The collection of values and the strings in between those values, beginning with
  63158. * a string prefix and ending with a string suffix.
  63159. * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
  63160. *
  63161. * @returns itself, so that it may be chained.
  63162. * @codeGenApi
  63163. */
  63164. function ɵɵtextInterpolateV(values) {
  63165. const lView = getLView();
  63166. const interpolated = interpolationV(lView, values);
  63167. if (interpolated !== NO_CHANGE) {
  63168. textBindingInternal(lView, getSelectedIndex(), interpolated);
  63169. }
  63170. return ɵɵtextInterpolateV;
  63171. }
  63172. /**
  63173. * @license
  63174. * Copyright Google LLC All Rights Reserved.
  63175. *
  63176. * Use of this source code is governed by an MIT-style license that can be
  63177. * found in the LICENSE file at https://angular.io/license
  63178. */
  63179. /**
  63180. *
  63181. * Update an interpolated class on an element with single bound value surrounded by text.
  63182. *
  63183. * Used when the value passed to a property has 1 interpolated value in it:
  63184. *
  63185. * ```html
  63186. * <div class="prefix{{v0}}suffix"></div>
  63187. * ```
  63188. *
  63189. * Its compiled representation is:
  63190. *
  63191. * ```ts
  63192. * ɵɵclassMapInterpolate1('prefix', v0, 'suffix');
  63193. * ```
  63194. *
  63195. * @param prefix Static value used for concatenation only.
  63196. * @param v0 Value checked for change.
  63197. * @param suffix Static value used for concatenation only.
  63198. * @codeGenApi
  63199. */
  63200. function ɵɵclassMapInterpolate1(prefix, v0, suffix) {
  63201. const lView = getLView();
  63202. const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
  63203. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63204. }
  63205. /**
  63206. *
  63207. * Update an interpolated class on an element with 2 bound values surrounded by text.
  63208. *
  63209. * Used when the value passed to a property has 2 interpolated values in it:
  63210. *
  63211. * ```html
  63212. * <div class="prefix{{v0}}-{{v1}}suffix"></div>
  63213. * ```
  63214. *
  63215. * Its compiled representation is:
  63216. *
  63217. * ```ts
  63218. * ɵɵclassMapInterpolate2('prefix', v0, '-', v1, 'suffix');
  63219. * ```
  63220. *
  63221. * @param prefix Static value used for concatenation only.
  63222. * @param v0 Value checked for change.
  63223. * @param i0 Static value used for concatenation only.
  63224. * @param v1 Value checked for change.
  63225. * @param suffix Static value used for concatenation only.
  63226. * @codeGenApi
  63227. */
  63228. function ɵɵclassMapInterpolate2(prefix, v0, i0, v1, suffix) {
  63229. const lView = getLView();
  63230. const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
  63231. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63232. }
  63233. /**
  63234. *
  63235. * Update an interpolated class on an element with 3 bound values surrounded by text.
  63236. *
  63237. * Used when the value passed to a property has 3 interpolated values in it:
  63238. *
  63239. * ```html
  63240. * <div class="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
  63241. * ```
  63242. *
  63243. * Its compiled representation is:
  63244. *
  63245. * ```ts
  63246. * ɵɵclassMapInterpolate3(
  63247. * 'prefix', v0, '-', v1, '-', v2, 'suffix');
  63248. * ```
  63249. *
  63250. * @param prefix Static value used for concatenation only.
  63251. * @param v0 Value checked for change.
  63252. * @param i0 Static value used for concatenation only.
  63253. * @param v1 Value checked for change.
  63254. * @param i1 Static value used for concatenation only.
  63255. * @param v2 Value checked for change.
  63256. * @param suffix Static value used for concatenation only.
  63257. * @codeGenApi
  63258. */
  63259. function ɵɵclassMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
  63260. const lView = getLView();
  63261. const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
  63262. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63263. }
  63264. /**
  63265. *
  63266. * Update an interpolated class on an element with 4 bound values surrounded by text.
  63267. *
  63268. * Used when the value passed to a property has 4 interpolated values in it:
  63269. *
  63270. * ```html
  63271. * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
  63272. * ```
  63273. *
  63274. * Its compiled representation is:
  63275. *
  63276. * ```ts
  63277. * ɵɵclassMapInterpolate4(
  63278. * 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
  63279. * ```
  63280. *
  63281. * @param prefix Static value used for concatenation only.
  63282. * @param v0 Value checked for change.
  63283. * @param i0 Static value used for concatenation only.
  63284. * @param v1 Value checked for change.
  63285. * @param i1 Static value used for concatenation only.
  63286. * @param v2 Value checked for change.
  63287. * @param i2 Static value used for concatenation only.
  63288. * @param v3 Value checked for change.
  63289. * @param suffix Static value used for concatenation only.
  63290. * @codeGenApi
  63291. */
  63292. function ɵɵclassMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
  63293. const lView = getLView();
  63294. const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
  63295. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63296. }
  63297. /**
  63298. *
  63299. * Update an interpolated class on an element with 5 bound values surrounded by text.
  63300. *
  63301. * Used when the value passed to a property has 5 interpolated values in it:
  63302. *
  63303. * ```html
  63304. * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
  63305. * ```
  63306. *
  63307. * Its compiled representation is:
  63308. *
  63309. * ```ts
  63310. * ɵɵclassMapInterpolate5(
  63311. * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
  63312. * ```
  63313. *
  63314. * @param prefix Static value used for concatenation only.
  63315. * @param v0 Value checked for change.
  63316. * @param i0 Static value used for concatenation only.
  63317. * @param v1 Value checked for change.
  63318. * @param i1 Static value used for concatenation only.
  63319. * @param v2 Value checked for change.
  63320. * @param i2 Static value used for concatenation only.
  63321. * @param v3 Value checked for change.
  63322. * @param i3 Static value used for concatenation only.
  63323. * @param v4 Value checked for change.
  63324. * @param suffix Static value used for concatenation only.
  63325. * @codeGenApi
  63326. */
  63327. function ɵɵclassMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
  63328. const lView = getLView();
  63329. const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
  63330. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63331. }
  63332. /**
  63333. *
  63334. * Update an interpolated class on an element with 6 bound values surrounded by text.
  63335. *
  63336. * Used when the value passed to a property has 6 interpolated values in it:
  63337. *
  63338. * ```html
  63339. * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
  63340. * ```
  63341. *
  63342. * Its compiled representation is:
  63343. *
  63344. * ```ts
  63345. * ɵɵclassMapInterpolate6(
  63346. * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
  63347. * ```
  63348. *
  63349. * @param prefix Static value used for concatenation only.
  63350. * @param v0 Value checked for change.
  63351. * @param i0 Static value used for concatenation only.
  63352. * @param v1 Value checked for change.
  63353. * @param i1 Static value used for concatenation only.
  63354. * @param v2 Value checked for change.
  63355. * @param i2 Static value used for concatenation only.
  63356. * @param v3 Value checked for change.
  63357. * @param i3 Static value used for concatenation only.
  63358. * @param v4 Value checked for change.
  63359. * @param i4 Static value used for concatenation only.
  63360. * @param v5 Value checked for change.
  63361. * @param suffix Static value used for concatenation only.
  63362. * @codeGenApi
  63363. */
  63364. function ɵɵclassMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
  63365. const lView = getLView();
  63366. const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
  63367. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63368. }
  63369. /**
  63370. *
  63371. * Update an interpolated class on an element with 7 bound values surrounded by text.
  63372. *
  63373. * Used when the value passed to a property has 7 interpolated values in it:
  63374. *
  63375. * ```html
  63376. * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
  63377. * ```
  63378. *
  63379. * Its compiled representation is:
  63380. *
  63381. * ```ts
  63382. * ɵɵclassMapInterpolate7(
  63383. * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
  63384. * ```
  63385. *
  63386. * @param prefix Static value used for concatenation only.
  63387. * @param v0 Value checked for change.
  63388. * @param i0 Static value used for concatenation only.
  63389. * @param v1 Value checked for change.
  63390. * @param i1 Static value used for concatenation only.
  63391. * @param v2 Value checked for change.
  63392. * @param i2 Static value used for concatenation only.
  63393. * @param v3 Value checked for change.
  63394. * @param i3 Static value used for concatenation only.
  63395. * @param v4 Value checked for change.
  63396. * @param i4 Static value used for concatenation only.
  63397. * @param v5 Value checked for change.
  63398. * @param i5 Static value used for concatenation only.
  63399. * @param v6 Value checked for change.
  63400. * @param suffix Static value used for concatenation only.
  63401. * @codeGenApi
  63402. */
  63403. function ɵɵclassMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
  63404. const lView = getLView();
  63405. const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
  63406. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63407. }
  63408. /**
  63409. *
  63410. * Update an interpolated class on an element with 8 bound values surrounded by text.
  63411. *
  63412. * Used when the value passed to a property has 8 interpolated values in it:
  63413. *
  63414. * ```html
  63415. * <div class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
  63416. * ```
  63417. *
  63418. * Its compiled representation is:
  63419. *
  63420. * ```ts
  63421. * ɵɵclassMapInterpolate8(
  63422. * 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
  63423. * ```
  63424. *
  63425. * @param prefix Static value used for concatenation only.
  63426. * @param v0 Value checked for change.
  63427. * @param i0 Static value used for concatenation only.
  63428. * @param v1 Value checked for change.
  63429. * @param i1 Static value used for concatenation only.
  63430. * @param v2 Value checked for change.
  63431. * @param i2 Static value used for concatenation only.
  63432. * @param v3 Value checked for change.
  63433. * @param i3 Static value used for concatenation only.
  63434. * @param v4 Value checked for change.
  63435. * @param i4 Static value used for concatenation only.
  63436. * @param v5 Value checked for change.
  63437. * @param i5 Static value used for concatenation only.
  63438. * @param v6 Value checked for change.
  63439. * @param i6 Static value used for concatenation only.
  63440. * @param v7 Value checked for change.
  63441. * @param suffix Static value used for concatenation only.
  63442. * @codeGenApi
  63443. */
  63444. function ɵɵclassMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
  63445. const lView = getLView();
  63446. const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
  63447. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63448. }
  63449. /**
  63450. * Update an interpolated class on an element with 9 or more bound values surrounded by text.
  63451. *
  63452. * Used when the number of interpolated values exceeds 8.
  63453. *
  63454. * ```html
  63455. * <div
  63456. * class="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix"></div>
  63457. * ```
  63458. *
  63459. * Its compiled representation is:
  63460. *
  63461. * ```ts
  63462. * ɵɵclassMapInterpolateV(
  63463. * ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
  63464. * 'suffix']);
  63465. * ```
  63466. *.
  63467. * @param values The collection of values and the strings in-between those values, beginning with
  63468. * a string prefix and ending with a string suffix.
  63469. * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
  63470. * @codeGenApi
  63471. */
  63472. function ɵɵclassMapInterpolateV(values) {
  63473. const lView = getLView();
  63474. const interpolatedValue = interpolationV(lView, values);
  63475. checkStylingMap(keyValueArraySet, classStringParser, interpolatedValue, true);
  63476. }
  63477. /**
  63478. * @license
  63479. * Copyright Google LLC All Rights Reserved.
  63480. *
  63481. * Use of this source code is governed by an MIT-style license that can be
  63482. * found in the LICENSE file at https://angular.io/license
  63483. */
  63484. /**
  63485. *
  63486. * Update an interpolated style on an element with single bound value surrounded by text.
  63487. *
  63488. * Used when the value passed to a property has 1 interpolated value in it:
  63489. *
  63490. * ```html
  63491. * <div style="key: {{v0}}suffix"></div>
  63492. * ```
  63493. *
  63494. * Its compiled representation is:
  63495. *
  63496. * ```ts
  63497. * ɵɵstyleMapInterpolate1('key: ', v0, 'suffix');
  63498. * ```
  63499. *
  63500. * @param prefix Static value used for concatenation only.
  63501. * @param v0 Value checked for change.
  63502. * @param suffix Static value used for concatenation only.
  63503. * @codeGenApi
  63504. */
  63505. function ɵɵstyleMapInterpolate1(prefix, v0, suffix) {
  63506. const lView = getLView();
  63507. const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
  63508. ɵɵstyleMap(interpolatedValue);
  63509. }
  63510. /**
  63511. *
  63512. * Update an interpolated style on an element with 2 bound values surrounded by text.
  63513. *
  63514. * Used when the value passed to a property has 2 interpolated values in it:
  63515. *
  63516. * ```html
  63517. * <div style="key: {{v0}}; key1: {{v1}}suffix"></div>
  63518. * ```
  63519. *
  63520. * Its compiled representation is:
  63521. *
  63522. * ```ts
  63523. * ɵɵstyleMapInterpolate2('key: ', v0, '; key1: ', v1, 'suffix');
  63524. * ```
  63525. *
  63526. * @param prefix Static value used for concatenation only.
  63527. * @param v0 Value checked for change.
  63528. * @param i0 Static value used for concatenation only.
  63529. * @param v1 Value checked for change.
  63530. * @param suffix Static value used for concatenation only.
  63531. * @codeGenApi
  63532. */
  63533. function ɵɵstyleMapInterpolate2(prefix, v0, i0, v1, suffix) {
  63534. const lView = getLView();
  63535. const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
  63536. ɵɵstyleMap(interpolatedValue);
  63537. }
  63538. /**
  63539. *
  63540. * Update an interpolated style on an element with 3 bound values surrounded by text.
  63541. *
  63542. * Used when the value passed to a property has 3 interpolated values in it:
  63543. *
  63544. * ```html
  63545. * <div style="key: {{v0}}; key2: {{v1}}; key2: {{v2}}suffix"></div>
  63546. * ```
  63547. *
  63548. * Its compiled representation is:
  63549. *
  63550. * ```ts
  63551. * ɵɵstyleMapInterpolate3(
  63552. * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, 'suffix');
  63553. * ```
  63554. *
  63555. * @param prefix Static value used for concatenation only.
  63556. * @param v0 Value checked for change.
  63557. * @param i0 Static value used for concatenation only.
  63558. * @param v1 Value checked for change.
  63559. * @param i1 Static value used for concatenation only.
  63560. * @param v2 Value checked for change.
  63561. * @param suffix Static value used for concatenation only.
  63562. * @codeGenApi
  63563. */
  63564. function ɵɵstyleMapInterpolate3(prefix, v0, i0, v1, i1, v2, suffix) {
  63565. const lView = getLView();
  63566. const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
  63567. ɵɵstyleMap(interpolatedValue);
  63568. }
  63569. /**
  63570. *
  63571. * Update an interpolated style on an element with 4 bound values surrounded by text.
  63572. *
  63573. * Used when the value passed to a property has 4 interpolated values in it:
  63574. *
  63575. * ```html
  63576. * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}suffix"></div>
  63577. * ```
  63578. *
  63579. * Its compiled representation is:
  63580. *
  63581. * ```ts
  63582. * ɵɵstyleMapInterpolate4(
  63583. * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, 'suffix');
  63584. * ```
  63585. *
  63586. * @param prefix Static value used for concatenation only.
  63587. * @param v0 Value checked for change.
  63588. * @param i0 Static value used for concatenation only.
  63589. * @param v1 Value checked for change.
  63590. * @param i1 Static value used for concatenation only.
  63591. * @param v2 Value checked for change.
  63592. * @param i2 Static value used for concatenation only.
  63593. * @param v3 Value checked for change.
  63594. * @param suffix Static value used for concatenation only.
  63595. * @codeGenApi
  63596. */
  63597. function ɵɵstyleMapInterpolate4(prefix, v0, i0, v1, i1, v2, i2, v3, suffix) {
  63598. const lView = getLView();
  63599. const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
  63600. ɵɵstyleMap(interpolatedValue);
  63601. }
  63602. /**
  63603. *
  63604. * Update an interpolated style on an element with 5 bound values surrounded by text.
  63605. *
  63606. * Used when the value passed to a property has 5 interpolated values in it:
  63607. *
  63608. * ```html
  63609. * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}suffix"></div>
  63610. * ```
  63611. *
  63612. * Its compiled representation is:
  63613. *
  63614. * ```ts
  63615. * ɵɵstyleMapInterpolate5(
  63616. * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, 'suffix');
  63617. * ```
  63618. *
  63619. * @param prefix Static value used for concatenation only.
  63620. * @param v0 Value checked for change.
  63621. * @param i0 Static value used for concatenation only.
  63622. * @param v1 Value checked for change.
  63623. * @param i1 Static value used for concatenation only.
  63624. * @param v2 Value checked for change.
  63625. * @param i2 Static value used for concatenation only.
  63626. * @param v3 Value checked for change.
  63627. * @param i3 Static value used for concatenation only.
  63628. * @param v4 Value checked for change.
  63629. * @param suffix Static value used for concatenation only.
  63630. * @codeGenApi
  63631. */
  63632. function ɵɵstyleMapInterpolate5(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix) {
  63633. const lView = getLView();
  63634. const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
  63635. ɵɵstyleMap(interpolatedValue);
  63636. }
  63637. /**
  63638. *
  63639. * Update an interpolated style on an element with 6 bound values surrounded by text.
  63640. *
  63641. * Used when the value passed to a property has 6 interpolated values in it:
  63642. *
  63643. * ```html
  63644. * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}};
  63645. * key5: {{v5}}suffix"></div>
  63646. * ```
  63647. *
  63648. * Its compiled representation is:
  63649. *
  63650. * ```ts
  63651. * ɵɵstyleMapInterpolate6(
  63652. * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
  63653. * 'suffix');
  63654. * ```
  63655. *
  63656. * @param prefix Static value used for concatenation only.
  63657. * @param v0 Value checked for change.
  63658. * @param i0 Static value used for concatenation only.
  63659. * @param v1 Value checked for change.
  63660. * @param i1 Static value used for concatenation only.
  63661. * @param v2 Value checked for change.
  63662. * @param i2 Static value used for concatenation only.
  63663. * @param v3 Value checked for change.
  63664. * @param i3 Static value used for concatenation only.
  63665. * @param v4 Value checked for change.
  63666. * @param i4 Static value used for concatenation only.
  63667. * @param v5 Value checked for change.
  63668. * @param suffix Static value used for concatenation only.
  63669. * @codeGenApi
  63670. */
  63671. function ɵɵstyleMapInterpolate6(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix) {
  63672. const lView = getLView();
  63673. const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
  63674. ɵɵstyleMap(interpolatedValue);
  63675. }
  63676. /**
  63677. *
  63678. * Update an interpolated style on an element with 7 bound values surrounded by text.
  63679. *
  63680. * Used when the value passed to a property has 7 interpolated values in it:
  63681. *
  63682. * ```html
  63683. * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
  63684. * key6: {{v6}}suffix"></div>
  63685. * ```
  63686. *
  63687. * Its compiled representation is:
  63688. *
  63689. * ```ts
  63690. * ɵɵstyleMapInterpolate7(
  63691. * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
  63692. * '; key6: ', v6, 'suffix');
  63693. * ```
  63694. *
  63695. * @param prefix Static value used for concatenation only.
  63696. * @param v0 Value checked for change.
  63697. * @param i0 Static value used for concatenation only.
  63698. * @param v1 Value checked for change.
  63699. * @param i1 Static value used for concatenation only.
  63700. * @param v2 Value checked for change.
  63701. * @param i2 Static value used for concatenation only.
  63702. * @param v3 Value checked for change.
  63703. * @param i3 Static value used for concatenation only.
  63704. * @param v4 Value checked for change.
  63705. * @param i4 Static value used for concatenation only.
  63706. * @param v5 Value checked for change.
  63707. * @param i5 Static value used for concatenation only.
  63708. * @param v6 Value checked for change.
  63709. * @param suffix Static value used for concatenation only.
  63710. * @codeGenApi
  63711. */
  63712. function ɵɵstyleMapInterpolate7(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix) {
  63713. const lView = getLView();
  63714. const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
  63715. ɵɵstyleMap(interpolatedValue);
  63716. }
  63717. /**
  63718. *
  63719. * Update an interpolated style on an element with 8 bound values surrounded by text.
  63720. *
  63721. * Used when the value passed to a property has 8 interpolated values in it:
  63722. *
  63723. * ```html
  63724. * <div style="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
  63725. * key6: {{v6}}; key7: {{v7}}suffix"></div>
  63726. * ```
  63727. *
  63728. * Its compiled representation is:
  63729. *
  63730. * ```ts
  63731. * ɵɵstyleMapInterpolate8(
  63732. * 'key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
  63733. * '; key6: ', v6, '; key7: ', v7, 'suffix');
  63734. * ```
  63735. *
  63736. * @param prefix Static value used for concatenation only.
  63737. * @param v0 Value checked for change.
  63738. * @param i0 Static value used for concatenation only.
  63739. * @param v1 Value checked for change.
  63740. * @param i1 Static value used for concatenation only.
  63741. * @param v2 Value checked for change.
  63742. * @param i2 Static value used for concatenation only.
  63743. * @param v3 Value checked for change.
  63744. * @param i3 Static value used for concatenation only.
  63745. * @param v4 Value checked for change.
  63746. * @param i4 Static value used for concatenation only.
  63747. * @param v5 Value checked for change.
  63748. * @param i5 Static value used for concatenation only.
  63749. * @param v6 Value checked for change.
  63750. * @param i6 Static value used for concatenation only.
  63751. * @param v7 Value checked for change.
  63752. * @param suffix Static value used for concatenation only.
  63753. * @codeGenApi
  63754. */
  63755. function ɵɵstyleMapInterpolate8(prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix) {
  63756. const lView = getLView();
  63757. const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
  63758. ɵɵstyleMap(interpolatedValue);
  63759. }
  63760. /**
  63761. * Update an interpolated style on an element with 9 or more bound values surrounded by text.
  63762. *
  63763. * Used when the number of interpolated values exceeds 8.
  63764. *
  63765. * ```html
  63766. * <div
  63767. * class="key: {{v0}}; key1: {{v1}}; key2: {{v2}}; key3: {{v3}}; key4: {{v4}}; key5: {{v5}};
  63768. * key6: {{v6}}; key7: {{v7}}; key8: {{v8}}; key9: {{v9}}suffix"></div>
  63769. * ```
  63770. *
  63771. * Its compiled representation is:
  63772. *
  63773. * ```ts
  63774. * ɵɵstyleMapInterpolateV(
  63775. * ['key: ', v0, '; key1: ', v1, '; key2: ', v2, '; key3: ', v3, '; key4: ', v4, '; key5: ', v5,
  63776. * '; key6: ', v6, '; key7: ', v7, '; key8: ', v8, '; key9: ', v9, 'suffix']);
  63777. * ```
  63778. *.
  63779. * @param values The collection of values and the strings in-between those values, beginning with
  63780. * a string prefix and ending with a string suffix.
  63781. * (e.g. `['prefix', value0, '; key2: ', value1, '; key2: ', value2, ..., value99, 'suffix']`)
  63782. * @codeGenApi
  63783. */
  63784. function ɵɵstyleMapInterpolateV(values) {
  63785. const lView = getLView();
  63786. const interpolatedValue = interpolationV(lView, values);
  63787. ɵɵstyleMap(interpolatedValue);
  63788. }
  63789. /**
  63790. * @license
  63791. * Copyright Google LLC All Rights Reserved.
  63792. *
  63793. * Use of this source code is governed by an MIT-style license that can be
  63794. * found in the LICENSE file at https://angular.io/license
  63795. */
  63796. /**
  63797. *
  63798. * Update an interpolated style property on an element with single bound value surrounded by text.
  63799. *
  63800. * Used when the value passed to a property has 1 interpolated value in it:
  63801. *
  63802. * ```html
  63803. * <div style.color="prefix{{v0}}suffix"></div>
  63804. * ```
  63805. *
  63806. * Its compiled representation is:
  63807. *
  63808. * ```ts
  63809. * ɵɵstylePropInterpolate1(0, 'prefix', v0, 'suffix');
  63810. * ```
  63811. *
  63812. * @param styleIndex Index of style to update. This index value refers to the
  63813. * index of the style in the style bindings array that was passed into
  63814. * `styling`.
  63815. * @param prefix Static value used for concatenation only.
  63816. * @param v0 Value checked for change.
  63817. * @param suffix Static value used for concatenation only.
  63818. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  63819. * @returns itself, so that it may be chained.
  63820. * @codeGenApi
  63821. */
  63822. function ɵɵstylePropInterpolate1(prop, prefix, v0, suffix, valueSuffix) {
  63823. const lView = getLView();
  63824. const interpolatedValue = interpolation1(lView, prefix, v0, suffix);
  63825. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  63826. return ɵɵstylePropInterpolate1;
  63827. }
  63828. /**
  63829. *
  63830. * Update an interpolated style property on an element with 2 bound values surrounded by text.
  63831. *
  63832. * Used when the value passed to a property has 2 interpolated values in it:
  63833. *
  63834. * ```html
  63835. * <div style.color="prefix{{v0}}-{{v1}}suffix"></div>
  63836. * ```
  63837. *
  63838. * Its compiled representation is:
  63839. *
  63840. * ```ts
  63841. * ɵɵstylePropInterpolate2(0, 'prefix', v0, '-', v1, 'suffix');
  63842. * ```
  63843. *
  63844. * @param styleIndex Index of style to update. This index value refers to the
  63845. * index of the style in the style bindings array that was passed into
  63846. * `styling`.
  63847. * @param prefix Static value used for concatenation only.
  63848. * @param v0 Value checked for change.
  63849. * @param i0 Static value used for concatenation only.
  63850. * @param v1 Value checked for change.
  63851. * @param suffix Static value used for concatenation only.
  63852. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  63853. * @returns itself, so that it may be chained.
  63854. * @codeGenApi
  63855. */
  63856. function ɵɵstylePropInterpolate2(prop, prefix, v0, i0, v1, suffix, valueSuffix) {
  63857. const lView = getLView();
  63858. const interpolatedValue = interpolation2(lView, prefix, v0, i0, v1, suffix);
  63859. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  63860. return ɵɵstylePropInterpolate2;
  63861. }
  63862. /**
  63863. *
  63864. * Update an interpolated style property on an element with 3 bound values surrounded by text.
  63865. *
  63866. * Used when the value passed to a property has 3 interpolated values in it:
  63867. *
  63868. * ```html
  63869. * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}suffix"></div>
  63870. * ```
  63871. *
  63872. * Its compiled representation is:
  63873. *
  63874. * ```ts
  63875. * ɵɵstylePropInterpolate3(0, 'prefix', v0, '-', v1, '-', v2, 'suffix');
  63876. * ```
  63877. *
  63878. * @param styleIndex Index of style to update. This index value refers to the
  63879. * index of the style in the style bindings array that was passed into
  63880. * `styling`.
  63881. * @param prefix Static value used for concatenation only.
  63882. * @param v0 Value checked for change.
  63883. * @param i0 Static value used for concatenation only.
  63884. * @param v1 Value checked for change.
  63885. * @param i1 Static value used for concatenation only.
  63886. * @param v2 Value checked for change.
  63887. * @param suffix Static value used for concatenation only.
  63888. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  63889. * @returns itself, so that it may be chained.
  63890. * @codeGenApi
  63891. */
  63892. function ɵɵstylePropInterpolate3(prop, prefix, v0, i0, v1, i1, v2, suffix, valueSuffix) {
  63893. const lView = getLView();
  63894. const interpolatedValue = interpolation3(lView, prefix, v0, i0, v1, i1, v2, suffix);
  63895. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  63896. return ɵɵstylePropInterpolate3;
  63897. }
  63898. /**
  63899. *
  63900. * Update an interpolated style property on an element with 4 bound values surrounded by text.
  63901. *
  63902. * Used when the value passed to a property has 4 interpolated values in it:
  63903. *
  63904. * ```html
  63905. * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}suffix"></div>
  63906. * ```
  63907. *
  63908. * Its compiled representation is:
  63909. *
  63910. * ```ts
  63911. * ɵɵstylePropInterpolate4(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
  63912. * ```
  63913. *
  63914. * @param styleIndex Index of style to update. This index value refers to the
  63915. * index of the style in the style bindings array that was passed into
  63916. * `styling`.
  63917. * @param prefix Static value used for concatenation only.
  63918. * @param v0 Value checked for change.
  63919. * @param i0 Static value used for concatenation only.
  63920. * @param v1 Value checked for change.
  63921. * @param i1 Static value used for concatenation only.
  63922. * @param v2 Value checked for change.
  63923. * @param i2 Static value used for concatenation only.
  63924. * @param v3 Value checked for change.
  63925. * @param suffix Static value used for concatenation only.
  63926. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  63927. * @returns itself, so that it may be chained.
  63928. * @codeGenApi
  63929. */
  63930. function ɵɵstylePropInterpolate4(prop, prefix, v0, i0, v1, i1, v2, i2, v3, suffix, valueSuffix) {
  63931. const lView = getLView();
  63932. const interpolatedValue = interpolation4(lView, prefix, v0, i0, v1, i1, v2, i2, v3, suffix);
  63933. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  63934. return ɵɵstylePropInterpolate4;
  63935. }
  63936. /**
  63937. *
  63938. * Update an interpolated style property on an element with 5 bound values surrounded by text.
  63939. *
  63940. * Used when the value passed to a property has 5 interpolated values in it:
  63941. *
  63942. * ```html
  63943. * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}suffix"></div>
  63944. * ```
  63945. *
  63946. * Its compiled representation is:
  63947. *
  63948. * ```ts
  63949. * ɵɵstylePropInterpolate5(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
  63950. * ```
  63951. *
  63952. * @param styleIndex Index of style to update. This index value refers to the
  63953. * index of the style in the style bindings array that was passed into
  63954. * `styling`.
  63955. * @param prefix Static value used for concatenation only.
  63956. * @param v0 Value checked for change.
  63957. * @param i0 Static value used for concatenation only.
  63958. * @param v1 Value checked for change.
  63959. * @param i1 Static value used for concatenation only.
  63960. * @param v2 Value checked for change.
  63961. * @param i2 Static value used for concatenation only.
  63962. * @param v3 Value checked for change.
  63963. * @param i3 Static value used for concatenation only.
  63964. * @param v4 Value checked for change.
  63965. * @param suffix Static value used for concatenation only.
  63966. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  63967. * @returns itself, so that it may be chained.
  63968. * @codeGenApi
  63969. */
  63970. function ɵɵstylePropInterpolate5(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix, valueSuffix) {
  63971. const lView = getLView();
  63972. const interpolatedValue = interpolation5(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, suffix);
  63973. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  63974. return ɵɵstylePropInterpolate5;
  63975. }
  63976. /**
  63977. *
  63978. * Update an interpolated style property on an element with 6 bound values surrounded by text.
  63979. *
  63980. * Used when the value passed to a property has 6 interpolated values in it:
  63981. *
  63982. * ```html
  63983. * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}suffix"></div>
  63984. * ```
  63985. *
  63986. * Its compiled representation is:
  63987. *
  63988. * ```ts
  63989. * ɵɵstylePropInterpolate6(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
  63990. * ```
  63991. *
  63992. * @param styleIndex Index of style to update. This index value refers to the
  63993. * index of the style in the style bindings array that was passed into
  63994. * `styling`.
  63995. * @param prefix Static value used for concatenation only.
  63996. * @param v0 Value checked for change.
  63997. * @param i0 Static value used for concatenation only.
  63998. * @param v1 Value checked for change.
  63999. * @param i1 Static value used for concatenation only.
  64000. * @param v2 Value checked for change.
  64001. * @param i2 Static value used for concatenation only.
  64002. * @param v3 Value checked for change.
  64003. * @param i3 Static value used for concatenation only.
  64004. * @param v4 Value checked for change.
  64005. * @param i4 Static value used for concatenation only.
  64006. * @param v5 Value checked for change.
  64007. * @param suffix Static value used for concatenation only.
  64008. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  64009. * @returns itself, so that it may be chained.
  64010. * @codeGenApi
  64011. */
  64012. function ɵɵstylePropInterpolate6(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix, valueSuffix) {
  64013. const lView = getLView();
  64014. const interpolatedValue = interpolation6(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, suffix);
  64015. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  64016. return ɵɵstylePropInterpolate6;
  64017. }
  64018. /**
  64019. *
  64020. * Update an interpolated style property on an element with 7 bound values surrounded by text.
  64021. *
  64022. * Used when the value passed to a property has 7 interpolated values in it:
  64023. *
  64024. * ```html
  64025. * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}suffix"></div>
  64026. * ```
  64027. *
  64028. * Its compiled representation is:
  64029. *
  64030. * ```ts
  64031. * ɵɵstylePropInterpolate7(
  64032. * 0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
  64033. * ```
  64034. *
  64035. * @param styleIndex Index of style to update. This index value refers to the
  64036. * index of the style in the style bindings array that was passed into
  64037. * `styling`.
  64038. * @param prefix Static value used for concatenation only.
  64039. * @param v0 Value checked for change.
  64040. * @param i0 Static value used for concatenation only.
  64041. * @param v1 Value checked for change.
  64042. * @param i1 Static value used for concatenation only.
  64043. * @param v2 Value checked for change.
  64044. * @param i2 Static value used for concatenation only.
  64045. * @param v3 Value checked for change.
  64046. * @param i3 Static value used for concatenation only.
  64047. * @param v4 Value checked for change.
  64048. * @param i4 Static value used for concatenation only.
  64049. * @param v5 Value checked for change.
  64050. * @param i5 Static value used for concatenation only.
  64051. * @param v6 Value checked for change.
  64052. * @param suffix Static value used for concatenation only.
  64053. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  64054. * @returns itself, so that it may be chained.
  64055. * @codeGenApi
  64056. */
  64057. function ɵɵstylePropInterpolate7(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix, valueSuffix) {
  64058. const lView = getLView();
  64059. const interpolatedValue = interpolation7(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, suffix);
  64060. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  64061. return ɵɵstylePropInterpolate7;
  64062. }
  64063. /**
  64064. *
  64065. * Update an interpolated style property on an element with 8 bound values surrounded by text.
  64066. *
  64067. * Used when the value passed to a property has 8 interpolated values in it:
  64068. *
  64069. * ```html
  64070. * <div style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}suffix"></div>
  64071. * ```
  64072. *
  64073. * Its compiled representation is:
  64074. *
  64075. * ```ts
  64076. * ɵɵstylePropInterpolate8(0, 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6,
  64077. * '-', v7, 'suffix');
  64078. * ```
  64079. *
  64080. * @param styleIndex Index of style to update. This index value refers to the
  64081. * index of the style in the style bindings array that was passed into
  64082. * `styling`.
  64083. * @param prefix Static value used for concatenation only.
  64084. * @param v0 Value checked for change.
  64085. * @param i0 Static value used for concatenation only.
  64086. * @param v1 Value checked for change.
  64087. * @param i1 Static value used for concatenation only.
  64088. * @param v2 Value checked for change.
  64089. * @param i2 Static value used for concatenation only.
  64090. * @param v3 Value checked for change.
  64091. * @param i3 Static value used for concatenation only.
  64092. * @param v4 Value checked for change.
  64093. * @param i4 Static value used for concatenation only.
  64094. * @param v5 Value checked for change.
  64095. * @param i5 Static value used for concatenation only.
  64096. * @param v6 Value checked for change.
  64097. * @param i6 Static value used for concatenation only.
  64098. * @param v7 Value checked for change.
  64099. * @param suffix Static value used for concatenation only.
  64100. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  64101. * @returns itself, so that it may be chained.
  64102. * @codeGenApi
  64103. */
  64104. function ɵɵstylePropInterpolate8(prop, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix, valueSuffix) {
  64105. const lView = getLView();
  64106. const interpolatedValue = interpolation8(lView, prefix, v0, i0, v1, i1, v2, i2, v3, i3, v4, i4, v5, i5, v6, i6, v7, suffix);
  64107. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  64108. return ɵɵstylePropInterpolate8;
  64109. }
  64110. /**
  64111. * Update an interpolated style property on an element with 9 or more bound values surrounded by
  64112. * text.
  64113. *
  64114. * Used when the number of interpolated values exceeds 8.
  64115. *
  64116. * ```html
  64117. * <div
  64118. * style.color="prefix{{v0}}-{{v1}}-{{v2}}-{{v3}}-{{v4}}-{{v5}}-{{v6}}-{{v7}}-{{v8}}-{{v9}}suffix">
  64119. * </div>
  64120. * ```
  64121. *
  64122. * Its compiled representation is:
  64123. *
  64124. * ```ts
  64125. * ɵɵstylePropInterpolateV(
  64126. * 0, ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
  64127. * 'suffix']);
  64128. * ```
  64129. *
  64130. * @param styleIndex Index of style to update. This index value refers to the
  64131. * index of the style in the style bindings array that was passed into
  64132. * `styling`..
  64133. * @param values The collection of values and the strings in-between those values, beginning with
  64134. * a string prefix and ending with a string suffix.
  64135. * (e.g. `['prefix', value0, '-', value1, '-', value2, ..., value99, 'suffix']`)
  64136. * @param valueSuffix Optional suffix. Used with scalar values to add unit such as `px`.
  64137. * @returns itself, so that it may be chained.
  64138. * @codeGenApi
  64139. */
  64140. function ɵɵstylePropInterpolateV(prop, values, valueSuffix) {
  64141. const lView = getLView();
  64142. const interpolatedValue = interpolationV(lView, values);
  64143. checkStylingProperty(prop, interpolatedValue, valueSuffix, false);
  64144. return ɵɵstylePropInterpolateV;
  64145. }
  64146. /**
  64147. * @license
  64148. * Copyright Google LLC All Rights Reserved.
  64149. *
  64150. * Use of this source code is governed by an MIT-style license that can be
  64151. * found in the LICENSE file at https://angular.io/license
  64152. */
  64153. /**
  64154. * Update a property on a host element. Only applies to native node properties, not inputs.
  64155. *
  64156. * Operates on the element selected by index via the {@link select} instruction.
  64157. *
  64158. * @param propName Name of property. Because it is going to DOM, this is not subject to
  64159. * renaming as part of minification.
  64160. * @param value New value to write.
  64161. * @param sanitizer An optional function used to sanitize the value.
  64162. * @returns This function returns itself so that it may be chained
  64163. * (e.g. `property('name', ctx.name)('title', ctx.title)`)
  64164. *
  64165. * @codeGenApi
  64166. */
  64167. function ɵɵhostProperty(propName, value, sanitizer) {
  64168. const lView = getLView();
  64169. const bindingIndex = nextBindingIndex();
  64170. if (bindingUpdated(lView, bindingIndex, value)) {
  64171. const tView = getTView();
  64172. const tNode = getSelectedTNode();
  64173. elementPropertyInternal(tView, tNode, lView, propName, value, lView[RENDERER], sanitizer, true);
  64174. ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
  64175. }
  64176. return ɵɵhostProperty;
  64177. }
  64178. /**
  64179. * Updates a synthetic host binding (e.g. `[@foo]`) on a component or directive.
  64180. *
  64181. * This instruction is for compatibility purposes and is designed to ensure that a
  64182. * synthetic host binding (e.g. `@HostBinding('@foo')`) properly gets rendered in
  64183. * the component's renderer. Normally all host bindings are evaluated with the parent
  64184. * component's renderer, but, in the case of animation @triggers, they need to be
  64185. * evaluated with the sub component's renderer (because that's where the animation
  64186. * triggers are defined).
  64187. *
  64188. * Do not use this instruction as a replacement for `elementProperty`. This instruction
  64189. * only exists to ensure compatibility with the ViewEngine's host binding behavior.
  64190. *
  64191. * @param index The index of the element to update in the data array
  64192. * @param propName Name of property. Because it is going to DOM, this is not subject to
  64193. * renaming as part of minification.
  64194. * @param value New value to write.
  64195. * @param sanitizer An optional function used to sanitize the value.
  64196. *
  64197. * @codeGenApi
  64198. */
  64199. function ɵɵsyntheticHostProperty(propName, value, sanitizer) {
  64200. const lView = getLView();
  64201. const bindingIndex = nextBindingIndex();
  64202. if (bindingUpdated(lView, bindingIndex, value)) {
  64203. const tView = getTView();
  64204. const tNode = getSelectedTNode();
  64205. const currentDef = getCurrentDirectiveDef(tView.data);
  64206. const renderer = loadComponentRenderer(currentDef, tNode, lView);
  64207. elementPropertyInternal(tView, tNode, lView, propName, value, renderer, sanitizer, true);
  64208. ngDevMode && storePropertyBindingMetadata(tView.data, tNode, propName, bindingIndex);
  64209. }
  64210. return ɵɵsyntheticHostProperty;
  64211. }
  64212. /**
  64213. * @license
  64214. * Copyright Google LLC All Rights Reserved.
  64215. *
  64216. * Use of this source code is governed by an MIT-style license that can be
  64217. * found in the LICENSE file at https://angular.io/license
  64218. */
  64219. /**
  64220. * NOTE: changes to the `ngI18nClosureMode` name must be synced with `compiler-cli/src/tooling.ts`.
  64221. */
  64222. if (typeof ngI18nClosureMode === 'undefined') {
  64223. // These property accesses can be ignored because ngI18nClosureMode will be set to false
  64224. // when optimizing code and the whole if statement will be dropped.
  64225. // Make sure to refer to ngI18nClosureMode as ['ngI18nClosureMode'] for closure.
  64226. // NOTE: we need to have it in IIFE so that the tree-shaker is happy.
  64227. (function () {
  64228. // tslint:disable-next-line:no-toplevel-property-access
  64229. _global['ngI18nClosureMode'] =
  64230. // TODO(FW-1250): validate that this actually, you know, works.
  64231. // tslint:disable-next-line:no-toplevel-property-access
  64232. typeof goog !== 'undefined' && typeof goog.getMsg === 'function';
  64233. })();
  64234. }
  64235. /**
  64236. * @license
  64237. * Copyright Google LLC All Rights Reserved.
  64238. *
  64239. * Use of this source code is governed by an MIT-style license that can be
  64240. * found in the LICENSE file at https://angular.io/license
  64241. */
  64242. // THIS CODE IS GENERATED - DO NOT MODIFY
  64243. // See angular/tools/gulp-tasks/cldr/extract.js
  64244. const u = undefined;
  64245. function plural(n) {
  64246. let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
  64247. if (i === 1 && v === 0)
  64248. return 1;
  64249. return 5;
  64250. }
  64251. var localeEn = [
  64252. 'en',
  64253. [['a', 'p'], ['AM', 'PM'], u],
  64254. [['AM', 'PM'], u, u],
  64255. [
  64256. ['S', 'M', 'T', 'W', 'T', 'F', 'S'], ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  64257. ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
  64258. ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
  64259. ],
  64260. u,
  64261. [
  64262. ['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
  64263. ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  64264. [
  64265. 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
  64266. 'October', 'November', 'December'
  64267. ]
  64268. ],
  64269. u,
  64270. [['B', 'A'], ['BC', 'AD'], ['Before Christ', 'Anno Domini']],
  64271. 0,
  64272. [6, 0],
  64273. ['M/d/yy', 'MMM d, y', 'MMMM d, y', 'EEEE, MMMM d, y'],
  64274. ['h:mm a', 'h:mm:ss a', 'h:mm:ss a z', 'h:mm:ss a zzzz'],
  64275. ['{1}, {0}', u, '{1} \'at\' {0}', u],
  64276. ['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'],
  64277. ['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'],
  64278. 'USD',
  64279. '$',
  64280. 'US Dollar',
  64281. {},
  64282. 'ltr',
  64283. plural
  64284. ];
  64285. /**
  64286. * @license
  64287. * Copyright Google LLC All Rights Reserved.
  64288. *
  64289. * Use of this source code is governed by an MIT-style license that can be
  64290. * found in the LICENSE file at https://angular.io/license
  64291. */
  64292. /**
  64293. * This const is used to store the locale data registered with `registerLocaleData`
  64294. */
  64295. let LOCALE_DATA = {};
  64296. /**
  64297. * Register locale data to be used internally by Angular. See the
  64298. * ["I18n guide"](guide/i18n#i18n-pipes) to know how to import additional locale data.
  64299. *
  64300. * The signature `registerLocaleData(data: any, extraData?: any)` is deprecated since v5.1
  64301. */
  64302. function registerLocaleData(data, localeId, extraData) {
  64303. if (typeof localeId !== 'string') {
  64304. extraData = localeId;
  64305. localeId = data[LocaleDataIndex.LocaleId];
  64306. }
  64307. localeId = localeId.toLowerCase().replace(/_/g, '-');
  64308. LOCALE_DATA[localeId] = data;
  64309. if (extraData) {
  64310. LOCALE_DATA[localeId][LocaleDataIndex.ExtraData] = extraData;
  64311. }
  64312. }
  64313. /**
  64314. * Finds the locale data for a given locale.
  64315. *
  64316. * @param locale The locale code.
  64317. * @returns The locale data.
  64318. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  64319. */
  64320. function findLocaleData(locale) {
  64321. const normalizedLocale = normalizeLocale(locale);
  64322. let match = getLocaleData(normalizedLocale);
  64323. if (match) {
  64324. return match;
  64325. }
  64326. // let's try to find a parent locale
  64327. const parentLocale = normalizedLocale.split('-')[0];
  64328. match = getLocaleData(parentLocale);
  64329. if (match) {
  64330. return match;
  64331. }
  64332. if (parentLocale === 'en') {
  64333. return localeEn;
  64334. }
  64335. throw new Error(`Missing locale data for the locale "${locale}".`);
  64336. }
  64337. /**
  64338. * Retrieves the default currency code for the given locale.
  64339. *
  64340. * The default is defined as the first currency which is still in use.
  64341. *
  64342. * @param locale The code of the locale whose currency code we want.
  64343. * @returns The code of the default currency for the given locale.
  64344. *
  64345. */
  64346. function getLocaleCurrencyCode(locale) {
  64347. const data = findLocaleData(locale);
  64348. return data[LocaleDataIndex.CurrencyCode] || null;
  64349. }
  64350. /**
  64351. * Retrieves the plural function used by ICU expressions to determine the plural case to use
  64352. * for a given locale.
  64353. * @param locale A locale code for the locale format rules to use.
  64354. * @returns The plural function for the locale.
  64355. * @see `NgPlural`
  64356. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  64357. */
  64358. function getLocalePluralCase(locale) {
  64359. const data = findLocaleData(locale);
  64360. return data[LocaleDataIndex.PluralCase];
  64361. }
  64362. /**
  64363. * Helper function to get the given `normalizedLocale` from `LOCALE_DATA`
  64364. * or from the global `ng.common.locale`.
  64365. */
  64366. function getLocaleData(normalizedLocale) {
  64367. if (!(normalizedLocale in LOCALE_DATA)) {
  64368. LOCALE_DATA[normalizedLocale] = _global.ng && _global.ng.common && _global.ng.common.locales &&
  64369. _global.ng.common.locales[normalizedLocale];
  64370. }
  64371. return LOCALE_DATA[normalizedLocale];
  64372. }
  64373. /**
  64374. * Helper function to remove all the locale data from `LOCALE_DATA`.
  64375. */
  64376. function unregisterAllLocaleData() {
  64377. LOCALE_DATA = {};
  64378. }
  64379. /**
  64380. * Index of each type of locale data from the locale data array
  64381. */
  64382. var LocaleDataIndex;
  64383. (function (LocaleDataIndex) {
  64384. LocaleDataIndex[LocaleDataIndex["LocaleId"] = 0] = "LocaleId";
  64385. LocaleDataIndex[LocaleDataIndex["DayPeriodsFormat"] = 1] = "DayPeriodsFormat";
  64386. LocaleDataIndex[LocaleDataIndex["DayPeriodsStandalone"] = 2] = "DayPeriodsStandalone";
  64387. LocaleDataIndex[LocaleDataIndex["DaysFormat"] = 3] = "DaysFormat";
  64388. LocaleDataIndex[LocaleDataIndex["DaysStandalone"] = 4] = "DaysStandalone";
  64389. LocaleDataIndex[LocaleDataIndex["MonthsFormat"] = 5] = "MonthsFormat";
  64390. LocaleDataIndex[LocaleDataIndex["MonthsStandalone"] = 6] = "MonthsStandalone";
  64391. LocaleDataIndex[LocaleDataIndex["Eras"] = 7] = "Eras";
  64392. LocaleDataIndex[LocaleDataIndex["FirstDayOfWeek"] = 8] = "FirstDayOfWeek";
  64393. LocaleDataIndex[LocaleDataIndex["WeekendRange"] = 9] = "WeekendRange";
  64394. LocaleDataIndex[LocaleDataIndex["DateFormat"] = 10] = "DateFormat";
  64395. LocaleDataIndex[LocaleDataIndex["TimeFormat"] = 11] = "TimeFormat";
  64396. LocaleDataIndex[LocaleDataIndex["DateTimeFormat"] = 12] = "DateTimeFormat";
  64397. LocaleDataIndex[LocaleDataIndex["NumberSymbols"] = 13] = "NumberSymbols";
  64398. LocaleDataIndex[LocaleDataIndex["NumberFormats"] = 14] = "NumberFormats";
  64399. LocaleDataIndex[LocaleDataIndex["CurrencyCode"] = 15] = "CurrencyCode";
  64400. LocaleDataIndex[LocaleDataIndex["CurrencySymbol"] = 16] = "CurrencySymbol";
  64401. LocaleDataIndex[LocaleDataIndex["CurrencyName"] = 17] = "CurrencyName";
  64402. LocaleDataIndex[LocaleDataIndex["Currencies"] = 18] = "Currencies";
  64403. LocaleDataIndex[LocaleDataIndex["Directionality"] = 19] = "Directionality";
  64404. LocaleDataIndex[LocaleDataIndex["PluralCase"] = 20] = "PluralCase";
  64405. LocaleDataIndex[LocaleDataIndex["ExtraData"] = 21] = "ExtraData";
  64406. })(LocaleDataIndex || (LocaleDataIndex = {}));
  64407. /**
  64408. * Returns the canonical form of a locale name - lowercase with `_` replaced with `-`.
  64409. */
  64410. function normalizeLocale(locale) {
  64411. return locale.toLowerCase().replace(/_/g, '-');
  64412. }
  64413. /**
  64414. * @license
  64415. * Copyright Google LLC All Rights Reserved.
  64416. *
  64417. * Use of this source code is governed by an MIT-style license that can be
  64418. * found in the LICENSE file at https://angular.io/license
  64419. */
  64420. const pluralMapping = ['zero', 'one', 'two', 'few', 'many'];
  64421. /**
  64422. * Returns the plural case based on the locale
  64423. */
  64424. function getPluralCase(value, locale) {
  64425. const plural = getLocalePluralCase(locale)(parseInt(value, 10));
  64426. const result = pluralMapping[plural];
  64427. return (result !== undefined) ? result : 'other';
  64428. }
  64429. /**
  64430. * The locale id that the application is using by default (for translations and ICU expressions).
  64431. */
  64432. const DEFAULT_LOCALE_ID = 'en-US';
  64433. /**
  64434. * USD currency code that the application uses by default for CurrencyPipe when no
  64435. * DEFAULT_CURRENCY_CODE is provided.
  64436. */
  64437. const USD_CURRENCY_CODE = 'USD';
  64438. /**
  64439. * @license
  64440. * Copyright Google LLC All Rights Reserved.
  64441. *
  64442. * Use of this source code is governed by an MIT-style license that can be
  64443. * found in the LICENSE file at https://angular.io/license
  64444. */
  64445. /**
  64446. * Marks that the next string is an element name.
  64447. *
  64448. * See `I18nMutateOpCodes` documentation.
  64449. */
  64450. const ELEMENT_MARKER = {
  64451. marker: 'element'
  64452. };
  64453. /**
  64454. * Marks that the next string is comment text need for ICU.
  64455. *
  64456. * See `I18nMutateOpCodes` documentation.
  64457. */
  64458. const ICU_MARKER = {
  64459. marker: 'ICU'
  64460. };
  64461. /**
  64462. * See `I18nCreateOpCodes`
  64463. */
  64464. var I18nCreateOpCode;
  64465. (function (I18nCreateOpCode) {
  64466. /**
  64467. * Number of bits to shift index so that it can be combined with the `APPEND_EAGERLY` and
  64468. * `COMMENT`.
  64469. */
  64470. I18nCreateOpCode[I18nCreateOpCode["SHIFT"] = 2] = "SHIFT";
  64471. /**
  64472. * Should the node be appended to parent imedditatly after creation.
  64473. */
  64474. I18nCreateOpCode[I18nCreateOpCode["APPEND_EAGERLY"] = 1] = "APPEND_EAGERLY";
  64475. /**
  64476. * If set the node should be comment (rather than a text) node.
  64477. */
  64478. I18nCreateOpCode[I18nCreateOpCode["COMMENT"] = 2] = "COMMENT";
  64479. })(I18nCreateOpCode || (I18nCreateOpCode = {}));
  64480. // Note: This hack is necessary so we don't erroneously get a circular dependency
  64481. // failure based on types.
  64482. const unusedValueExportToPlacateAjd$6 = 1;
  64483. /**
  64484. * @license
  64485. * Copyright Google LLC All Rights Reserved.
  64486. *
  64487. * Use of this source code is governed by an MIT-style license that can be
  64488. * found in the LICENSE file at https://angular.io/license
  64489. */
  64490. /**
  64491. * The locale id that the application is currently using (for translations and ICU expressions).
  64492. * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
  64493. * but is now defined as a global value.
  64494. */
  64495. let LOCALE_ID = DEFAULT_LOCALE_ID;
  64496. /**
  64497. * Sets the locale id that will be used for translations and ICU expressions.
  64498. * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
  64499. * but is now defined as a global value.
  64500. *
  64501. * @param localeId
  64502. */
  64503. function setLocaleId(localeId) {
  64504. assertDefined(localeId, `Expected localeId to be defined`);
  64505. if (typeof localeId === 'string') {
  64506. LOCALE_ID = localeId.toLowerCase().replace(/_/g, '-');
  64507. }
  64508. }
  64509. /**
  64510. * Gets the locale id that will be used for translations and ICU expressions.
  64511. * This is the ivy version of `LOCALE_ID` that was defined as an injection token for the view engine
  64512. * but is now defined as a global value.
  64513. */
  64514. function getLocaleId() {
  64515. return LOCALE_ID;
  64516. }
  64517. /**
  64518. * @license
  64519. * Copyright Google LLC All Rights Reserved.
  64520. *
  64521. * Use of this source code is governed by an MIT-style license that can be
  64522. * found in the LICENSE file at https://angular.io/license
  64523. */
  64524. /**
  64525. * Find a node in front of which `currentTNode` should be inserted (takes i18n into account).
  64526. *
  64527. * This method determines the `RNode` in front of which we should insert the `currentRNode`. This
  64528. * takes `TNode.insertBeforeIndex` into account.
  64529. *
  64530. * @param parentTNode parent `TNode`
  64531. * @param currentTNode current `TNode` (The node which we would like to insert into the DOM)
  64532. * @param lView current `LView`
  64533. */
  64534. function getInsertInFrontOfRNodeWithI18n(parentTNode, currentTNode, lView) {
  64535. const tNodeInsertBeforeIndex = currentTNode.insertBeforeIndex;
  64536. const insertBeforeIndex = Array.isArray(tNodeInsertBeforeIndex) ? tNodeInsertBeforeIndex[0] : tNodeInsertBeforeIndex;
  64537. if (insertBeforeIndex === null) {
  64538. return getInsertInFrontOfRNodeWithNoI18n(parentTNode, currentTNode, lView);
  64539. }
  64540. else {
  64541. ngDevMode && assertIndexInRange(lView, insertBeforeIndex);
  64542. return unwrapRNode(lView[insertBeforeIndex]);
  64543. }
  64544. }
  64545. /**
  64546. * Process `TNode.insertBeforeIndex` by adding i18n text nodes.
  64547. *
  64548. * See `TNode.insertBeforeIndex`
  64549. */
  64550. function processI18nInsertBefore(renderer, childTNode, lView, childRNode, parentRElement) {
  64551. const tNodeInsertBeforeIndex = childTNode.insertBeforeIndex;
  64552. if (Array.isArray(tNodeInsertBeforeIndex)) {
  64553. // An array indicates that there are i18n nodes that need to be added as children of this
  64554. // `childRNode`. These i18n nodes were created before this `childRNode` was available and so
  64555. // only now can be added. The first element of the array is the normal index where we should
  64556. // insert the `childRNode`. Additional elements are the extra nodes to be added as children of
  64557. // `childRNode`.
  64558. ngDevMode && assertDomNode(childRNode);
  64559. let i18nParent = childRNode;
  64560. let anchorRNode = null;
  64561. if (!(childTNode.type & 3 /* AnyRNode */)) {
  64562. anchorRNode = i18nParent;
  64563. i18nParent = parentRElement;
  64564. }
  64565. if (i18nParent !== null && (childTNode.flags & 2 /* isComponentHost */) === 0) {
  64566. for (let i = 1; i < tNodeInsertBeforeIndex.length; i++) {
  64567. // No need to `unwrapRNode` because all of the indexes point to i18n text nodes.
  64568. // see `assertDomNode` below.
  64569. const i18nChild = lView[tNodeInsertBeforeIndex[i]];
  64570. nativeInsertBefore(renderer, i18nParent, i18nChild, anchorRNode, false);
  64571. }
  64572. }
  64573. }
  64574. }
  64575. /**
  64576. * @license
  64577. * Copyright Google LLC All Rights Reserved.
  64578. *
  64579. * Use of this source code is governed by an MIT-style license that can be
  64580. * found in the LICENSE file at https://angular.io/license
  64581. */
  64582. /**
  64583. * Add `tNode` to `previousTNodes` list and update relevant `TNode`s in `previousTNodes` list
  64584. * `tNode.insertBeforeIndex`.
  64585. *
  64586. * Things to keep in mind:
  64587. * 1. All i18n text nodes are encoded as `TNodeType.Element` and are created eagerly by the
  64588. * `ɵɵi18nStart` instruction.
  64589. * 2. All `TNodeType.Placeholder` `TNodes` are elements which will be created later by
  64590. * `ɵɵelementStart` instruction.
  64591. * 3. `ɵɵelementStart` instruction will create `TNode`s in the ascending `TNode.index` order. (So a
  64592. * smaller index `TNode` is guaranteed to be created before a larger one)
  64593. *
  64594. * We use the above three invariants to determine `TNode.insertBeforeIndex`.
  64595. *
  64596. * In an ideal world `TNode.insertBeforeIndex` would always be `TNode.next.index`. However,
  64597. * this will not work because `TNode.next.index` may be larger than `TNode.index` which means that
  64598. * the next node is not yet created and therefore we can't insert in front of it.
  64599. *
  64600. * Rule1: `TNode.insertBeforeIndex = null` if `TNode.next === null` (Initial condition, as we don't
  64601. * know if there will be further `TNode`s inserted after.)
  64602. * Rule2: If `previousTNode` is created after the `tNode` being inserted, then
  64603. * `previousTNode.insertBeforeNode = tNode.index` (So when a new `tNode` is added we check
  64604. * previous to see if we can update its `insertBeforeTNode`)
  64605. *
  64606. * See `TNode.insertBeforeIndex` for more context.
  64607. *
  64608. * @param previousTNodes A list of previous TNodes so that we can easily traverse `TNode`s in
  64609. * reverse order. (If `TNode` would have `previous` this would not be necessary.)
  64610. * @param newTNode A TNode to add to the `previousTNodes` list.
  64611. */
  64612. function addTNodeAndUpdateInsertBeforeIndex(previousTNodes, newTNode) {
  64613. // Start with Rule1
  64614. ngDevMode &&
  64615. assertEqual(newTNode.insertBeforeIndex, null, 'We expect that insertBeforeIndex is not set');
  64616. previousTNodes.push(newTNode);
  64617. if (previousTNodes.length > 1) {
  64618. for (let i = previousTNodes.length - 2; i >= 0; i--) {
  64619. const existingTNode = previousTNodes[i];
  64620. // Text nodes are created eagerly and so they don't need their `indexBeforeIndex` updated.
  64621. // It is safe to ignore them.
  64622. if (!isI18nText(existingTNode)) {
  64623. if (isNewTNodeCreatedBefore(existingTNode, newTNode) &&
  64624. getInsertBeforeIndex(existingTNode) === null) {
  64625. // If it was created before us in time, (and it does not yet have `insertBeforeIndex`)
  64626. // then add the `insertBeforeIndex`.
  64627. setInsertBeforeIndex(existingTNode, newTNode.index);
  64628. }
  64629. }
  64630. }
  64631. }
  64632. }
  64633. function isI18nText(tNode) {
  64634. return !(tNode.type & 64 /* Placeholder */);
  64635. }
  64636. function isNewTNodeCreatedBefore(existingTNode, newTNode) {
  64637. return isI18nText(newTNode) || existingTNode.index > newTNode.index;
  64638. }
  64639. function getInsertBeforeIndex(tNode) {
  64640. const index = tNode.insertBeforeIndex;
  64641. return Array.isArray(index) ? index[0] : index;
  64642. }
  64643. function setInsertBeforeIndex(tNode, value) {
  64644. const index = tNode.insertBeforeIndex;
  64645. if (Array.isArray(index)) {
  64646. // Array is stored if we have to insert child nodes. See `TNode.insertBeforeIndex`
  64647. index[0] = value;
  64648. }
  64649. else {
  64650. setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);
  64651. tNode.insertBeforeIndex = value;
  64652. }
  64653. }
  64654. /**
  64655. * @license
  64656. * Copyright Google LLC All Rights Reserved.
  64657. *
  64658. * Use of this source code is governed by an MIT-style license that can be
  64659. * found in the LICENSE file at https://angular.io/license
  64660. */
  64661. /**
  64662. * Retrieve `TIcu` at a given `index`.
  64663. *
  64664. * The `TIcu` can be stored either directly (if it is nested ICU) OR
  64665. * it is stored inside tho `TIcuContainer` if it is top level ICU.
  64666. *
  64667. * The reason for this is that the top level ICU need a `TNode` so that they are part of the render
  64668. * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is
  64669. * expressed (parent ICU may have selected a case which does not contain it.)
  64670. *
  64671. * @param tView Current `TView`.
  64672. * @param index Index where the value should be read from.
  64673. */
  64674. function getTIcu(tView, index) {
  64675. const value = tView.data[index];
  64676. if (value === null || typeof value === 'string')
  64677. return null;
  64678. if (ngDevMode &&
  64679. !(value.hasOwnProperty('tViews') || value.hasOwnProperty('currentCaseLViewIndex'))) {
  64680. throwError('We expect to get \'null\'|\'TIcu\'|\'TIcuContainer\', but got: ' + value);
  64681. }
  64682. // Here the `value.hasOwnProperty('currentCaseLViewIndex')` is a polymorphic read as it can be
  64683. // either TIcu or TIcuContainerNode. This is not ideal, but we still think it is OK because it
  64684. // will be just two cases which fits into the browser inline cache (inline cache can take up to
  64685. // 4)
  64686. const tIcu = value.hasOwnProperty('currentCaseLViewIndex') ? value :
  64687. value.value;
  64688. ngDevMode && assertTIcu(tIcu);
  64689. return tIcu;
  64690. }
  64691. /**
  64692. * Store `TIcu` at a give `index`.
  64693. *
  64694. * The `TIcu` can be stored either directly (if it is nested ICU) OR
  64695. * it is stored inside tho `TIcuContainer` if it is top level ICU.
  64696. *
  64697. * The reason for this is that the top level ICU need a `TNode` so that they are part of the render
  64698. * tree, but nested ICU's have no TNode, because we don't know ahead of time if the nested ICU is
  64699. * expressed (parent ICU may have selected a case which does not contain it.)
  64700. *
  64701. * @param tView Current `TView`.
  64702. * @param index Index where the value should be stored at in `Tview.data`
  64703. * @param tIcu The TIcu to store.
  64704. */
  64705. function setTIcu(tView, index, tIcu) {
  64706. const tNode = tView.data[index];
  64707. ngDevMode &&
  64708. assertEqual(tNode === null || tNode.hasOwnProperty('tViews'), true, 'We expect to get \'null\'|\'TIcuContainer\'');
  64709. if (tNode === null) {
  64710. tView.data[index] = tIcu;
  64711. }
  64712. else {
  64713. ngDevMode && assertTNodeType(tNode, 32 /* Icu */);
  64714. tNode.value = tIcu;
  64715. }
  64716. }
  64717. /**
  64718. * Set `TNode.insertBeforeIndex` taking the `Array` into account.
  64719. *
  64720. * See `TNode.insertBeforeIndex`
  64721. */
  64722. function setTNodeInsertBeforeIndex(tNode, index) {
  64723. ngDevMode && assertTNode(tNode);
  64724. let insertBeforeIndex = tNode.insertBeforeIndex;
  64725. if (insertBeforeIndex === null) {
  64726. setI18nHandling(getInsertInFrontOfRNodeWithI18n, processI18nInsertBefore);
  64727. insertBeforeIndex = tNode.insertBeforeIndex =
  64728. [null /* may be updated to number later */, index];
  64729. }
  64730. else {
  64731. assertEqual(Array.isArray(insertBeforeIndex), true, 'Expecting array here');
  64732. insertBeforeIndex.push(index);
  64733. }
  64734. }
  64735. /**
  64736. * Create `TNode.type=TNodeType.Placeholder` node.
  64737. *
  64738. * See `TNodeType.Placeholder` for more information.
  64739. */
  64740. function createTNodePlaceholder(tView, previousTNodes, index) {
  64741. const tNode = createTNodeAtIndex(tView, index, 64 /* Placeholder */, null, null);
  64742. addTNodeAndUpdateInsertBeforeIndex(previousTNodes, tNode);
  64743. return tNode;
  64744. }
  64745. /**
  64746. * Returns current ICU case.
  64747. *
  64748. * ICU cases are stored as index into the `TIcu.cases`.
  64749. * At times it is necessary to communicate that the ICU case just switched and that next ICU update
  64750. * should update all bindings regardless of the mask. In such a case the we store negative numbers
  64751. * for cases which have just been switched. This function removes the negative flag.
  64752. */
  64753. function getCurrentICUCaseIndex(tIcu, lView) {
  64754. const currentCase = lView[tIcu.currentCaseLViewIndex];
  64755. return currentCase === null ? currentCase : (currentCase < 0 ? ~currentCase : currentCase);
  64756. }
  64757. function getParentFromIcuCreateOpCode(mergedCode) {
  64758. return mergedCode >>> 17 /* SHIFT_PARENT */;
  64759. }
  64760. function getRefFromIcuCreateOpCode(mergedCode) {
  64761. return (mergedCode & 131070 /* MASK_REF */) >>> 1 /* SHIFT_REF */;
  64762. }
  64763. function getInstructionFromIcuCreateOpCode(mergedCode) {
  64764. return mergedCode & 1 /* MASK_INSTRUCTION */;
  64765. }
  64766. function icuCreateOpCode(opCode, parentIdx, refIdx) {
  64767. ngDevMode && assertGreaterThanOrEqual(parentIdx, 0, 'Missing parent index');
  64768. ngDevMode && assertGreaterThan(refIdx, 0, 'Missing ref index');
  64769. return opCode | parentIdx << 17 /* SHIFT_PARENT */ | refIdx << 1 /* SHIFT_REF */;
  64770. }
  64771. /**
  64772. * @license
  64773. * Copyright Google LLC All Rights Reserved.
  64774. *
  64775. * Use of this source code is governed by an MIT-style license that can be
  64776. * found in the LICENSE file at https://angular.io/license
  64777. */
  64778. /**
  64779. * Keep track of which input bindings in `ɵɵi18nExp` have changed.
  64780. *
  64781. * This is used to efficiently update expressions in i18n only when the corresponding input has
  64782. * changed.
  64783. *
  64784. * 1) Each bit represents which of the `ɵɵi18nExp` has changed.
  64785. * 2) There are 32 bits allowed in JS.
  64786. * 3) Bit 32 is special as it is shared for all changes past 32. (In other words if you have more
  64787. * than 32 `ɵɵi18nExp` then all changes past 32nd `ɵɵi18nExp` will be mapped to same bit. This means
  64788. * that we may end up changing more than we need to. But i18n expressions with 32 bindings is rare
  64789. * so in practice it should not be an issue.)
  64790. */
  64791. let changeMask = 0b0;
  64792. /**
  64793. * Keeps track of which bit needs to be updated in `changeMask`
  64794. *
  64795. * This value gets incremented on every call to `ɵɵi18nExp`
  64796. */
  64797. let changeMaskCounter = 0;
  64798. /**
  64799. * Keep track of which input bindings in `ɵɵi18nExp` have changed.
  64800. *
  64801. * `setMaskBit` gets invoked by each call to `ɵɵi18nExp`.
  64802. *
  64803. * @param hasChange did `ɵɵi18nExp` detect a change.
  64804. */
  64805. function setMaskBit(hasChange) {
  64806. if (hasChange) {
  64807. changeMask = changeMask | (1 << Math.min(changeMaskCounter, 31));
  64808. }
  64809. changeMaskCounter++;
  64810. }
  64811. function applyI18n(tView, lView, index) {
  64812. if (changeMaskCounter > 0) {
  64813. ngDevMode && assertDefined(tView, `tView should be defined`);
  64814. const tI18n = tView.data[index];
  64815. // When `index` points to an `ɵɵi18nAttributes` then we have an array otherwise `TI18n`
  64816. const updateOpCodes = Array.isArray(tI18n) ? tI18n : tI18n.update;
  64817. const bindingsStartIndex = getBindingIndex() - changeMaskCounter - 1;
  64818. applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask);
  64819. }
  64820. // Reset changeMask & maskBit to default for the next update cycle
  64821. changeMask = 0b0;
  64822. changeMaskCounter = 0;
  64823. }
  64824. /**
  64825. * Apply `I18nCreateOpCodes` op-codes as stored in `TI18n.create`.
  64826. *
  64827. * Creates text (and comment) nodes which are internationalized.
  64828. *
  64829. * @param lView Current lView
  64830. * @param createOpCodes Set of op-codes to apply
  64831. * @param parentRNode Parent node (so that direct children can be added eagerly) or `null` if it is
  64832. * a root node.
  64833. * @param insertInFrontOf DOM node that should be used as an anchor.
  64834. */
  64835. function applyCreateOpCodes(lView, createOpCodes, parentRNode, insertInFrontOf) {
  64836. const renderer = lView[RENDERER];
  64837. for (let i = 0; i < createOpCodes.length; i++) {
  64838. const opCode = createOpCodes[i++];
  64839. const text = createOpCodes[i];
  64840. const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;
  64841. const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;
  64842. const index = opCode >>> I18nCreateOpCode.SHIFT;
  64843. let rNode = lView[index];
  64844. if (rNode === null) {
  64845. // We only create new DOM nodes if they don't already exist: If ICU switches case back to a
  64846. // case which was already instantiated, no need to create new DOM nodes.
  64847. rNode = lView[index] =
  64848. isComment ? renderer.createComment(text) : createTextNode(renderer, text);
  64849. }
  64850. if (appendNow && parentRNode !== null) {
  64851. nativeInsertBefore(renderer, parentRNode, rNode, insertInFrontOf, false);
  64852. }
  64853. }
  64854. }
  64855. /**
  64856. * Apply `I18nMutateOpCodes` OpCodes.
  64857. *
  64858. * @param tView Current `TView`
  64859. * @param mutableOpCodes Mutable OpCodes to process
  64860. * @param lView Current `LView`
  64861. * @param anchorRNode place where the i18n node should be inserted.
  64862. */
  64863. function applyMutableOpCodes(tView, mutableOpCodes, lView, anchorRNode) {
  64864. ngDevMode && assertDomNode(anchorRNode);
  64865. const renderer = lView[RENDERER];
  64866. // `rootIdx` represents the node into which all inserts happen.
  64867. let rootIdx = null;
  64868. // `rootRNode` represents the real node into which we insert. This can be different from
  64869. // `lView[rootIdx]` if we have projection.
  64870. // - null we don't have a parent (as can be the case in when we are inserting into a root of
  64871. // LView which has no parent.)
  64872. // - `RElement` The element representing the root after taking projection into account.
  64873. let rootRNode;
  64874. for (let i = 0; i < mutableOpCodes.length; i++) {
  64875. const opCode = mutableOpCodes[i];
  64876. if (typeof opCode == 'string') {
  64877. const textNodeIndex = mutableOpCodes[++i];
  64878. if (lView[textNodeIndex] === null) {
  64879. ngDevMode && ngDevMode.rendererCreateTextNode++;
  64880. ngDevMode && assertIndexInRange(lView, textNodeIndex);
  64881. lView[textNodeIndex] = createTextNode(renderer, opCode);
  64882. }
  64883. }
  64884. else if (typeof opCode == 'number') {
  64885. switch (opCode & 1 /* MASK_INSTRUCTION */) {
  64886. case 0 /* AppendChild */:
  64887. const parentIdx = getParentFromIcuCreateOpCode(opCode);
  64888. if (rootIdx === null) {
  64889. // The first operation should save the `rootIdx` because the first operation
  64890. // must insert into the root. (Only subsequent operations can insert into a dynamic
  64891. // parent)
  64892. rootIdx = parentIdx;
  64893. rootRNode = nativeParentNode(renderer, anchorRNode);
  64894. }
  64895. let insertInFrontOf;
  64896. let parentRNode;
  64897. if (parentIdx === rootIdx) {
  64898. insertInFrontOf = anchorRNode;
  64899. parentRNode = rootRNode;
  64900. }
  64901. else {
  64902. insertInFrontOf = null;
  64903. parentRNode = unwrapRNode(lView[parentIdx]);
  64904. }
  64905. // FIXME(misko): Refactor with `processI18nText`
  64906. if (parentRNode !== null) {
  64907. // This can happen if the `LView` we are adding to is not attached to a parent `LView`.
  64908. // In such a case there is no "root" we can attach to. This is fine, as we still need to
  64909. // create the elements. When the `LView` gets later added to a parent these "root" nodes
  64910. // get picked up and added.
  64911. ngDevMode && assertDomNode(parentRNode);
  64912. const refIdx = getRefFromIcuCreateOpCode(opCode);
  64913. ngDevMode && assertGreaterThan(refIdx, HEADER_OFFSET, 'Missing ref');
  64914. // `unwrapRNode` is not needed here as all of these point to RNodes as part of the i18n
  64915. // which can't have components.
  64916. const child = lView[refIdx];
  64917. ngDevMode && assertDomNode(child);
  64918. nativeInsertBefore(renderer, parentRNode, child, insertInFrontOf, false);
  64919. const tIcu = getTIcu(tView, refIdx);
  64920. if (tIcu !== null && typeof tIcu === 'object') {
  64921. // If we just added a comment node which has ICU then that ICU may have already been
  64922. // rendered and therefore we need to re-add it here.
  64923. ngDevMode && assertTIcu(tIcu);
  64924. const caseIndex = getCurrentICUCaseIndex(tIcu, lView);
  64925. if (caseIndex !== null) {
  64926. applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, lView[tIcu.anchorIdx]);
  64927. }
  64928. }
  64929. }
  64930. break;
  64931. case 1 /* Attr */:
  64932. const elementNodeIndex = opCode >>> 1 /* SHIFT_REF */;
  64933. const attrName = mutableOpCodes[++i];
  64934. const attrValue = mutableOpCodes[++i];
  64935. // This code is used for ICU expressions only, since we don't support
  64936. // directives/components in ICUs, we don't need to worry about inputs here
  64937. setElementAttribute(renderer, getNativeByIndex(elementNodeIndex, lView), null, null, attrName, attrValue, null);
  64938. break;
  64939. default:
  64940. throw new Error(`Unable to determine the type of mutate operation for "${opCode}"`);
  64941. }
  64942. }
  64943. else {
  64944. switch (opCode) {
  64945. case ICU_MARKER:
  64946. const commentValue = mutableOpCodes[++i];
  64947. const commentNodeIndex = mutableOpCodes[++i];
  64948. if (lView[commentNodeIndex] === null) {
  64949. ngDevMode &&
  64950. assertEqual(typeof commentValue, 'string', `Expected "${commentValue}" to be a comment node value`);
  64951. ngDevMode && ngDevMode.rendererCreateComment++;
  64952. ngDevMode && assertIndexInExpandoRange(lView, commentNodeIndex);
  64953. const commentRNode = lView[commentNodeIndex] =
  64954. createCommentNode(renderer, commentValue);
  64955. // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)
  64956. attachPatchData(commentRNode, lView);
  64957. }
  64958. break;
  64959. case ELEMENT_MARKER:
  64960. const tagName = mutableOpCodes[++i];
  64961. const elementNodeIndex = mutableOpCodes[++i];
  64962. if (lView[elementNodeIndex] === null) {
  64963. ngDevMode &&
  64964. assertEqual(typeof tagName, 'string', `Expected "${tagName}" to be an element node tag name`);
  64965. ngDevMode && ngDevMode.rendererCreateElement++;
  64966. ngDevMode && assertIndexInExpandoRange(lView, elementNodeIndex);
  64967. const elementRNode = lView[elementNodeIndex] =
  64968. createElementNode(renderer, tagName, null);
  64969. // FIXME(misko): Attaching patch data is only needed for the root (Also add tests)
  64970. attachPatchData(elementRNode, lView);
  64971. }
  64972. break;
  64973. default:
  64974. ngDevMode &&
  64975. throwError(`Unable to determine the type of mutate operation for "${opCode}"`);
  64976. }
  64977. }
  64978. }
  64979. }
  64980. /**
  64981. * Apply `I18nUpdateOpCodes` OpCodes
  64982. *
  64983. * @param tView Current `TView`
  64984. * @param lView Current `LView`
  64985. * @param updateOpCodes OpCodes to process
  64986. * @param bindingsStartIndex Location of the first `ɵɵi18nApply`
  64987. * @param changeMask Each bit corresponds to a `ɵɵi18nExp` (Counting backwards from
  64988. * `bindingsStartIndex`)
  64989. */
  64990. function applyUpdateOpCodes(tView, lView, updateOpCodes, bindingsStartIndex, changeMask) {
  64991. for (let i = 0; i < updateOpCodes.length; i++) {
  64992. // bit code to check if we should apply the next update
  64993. const checkBit = updateOpCodes[i];
  64994. // Number of opCodes to skip until next set of update codes
  64995. const skipCodes = updateOpCodes[++i];
  64996. if (checkBit & changeMask) {
  64997. // The value has been updated since last checked
  64998. let value = '';
  64999. for (let j = i + 1; j <= (i + skipCodes); j++) {
  65000. const opCode = updateOpCodes[j];
  65001. if (typeof opCode == 'string') {
  65002. value += opCode;
  65003. }
  65004. else if (typeof opCode == 'number') {
  65005. if (opCode < 0) {
  65006. // Negative opCode represent `i18nExp` values offset.
  65007. value += renderStringify(lView[bindingsStartIndex - opCode]);
  65008. }
  65009. else {
  65010. const nodeIndex = (opCode >>> 2 /* SHIFT_REF */);
  65011. switch (opCode & 3 /* MASK_OPCODE */) {
  65012. case 1 /* Attr */:
  65013. const propName = updateOpCodes[++j];
  65014. const sanitizeFn = updateOpCodes[++j];
  65015. const tNodeOrTagName = tView.data[nodeIndex];
  65016. ngDevMode && assertDefined(tNodeOrTagName, 'Experting TNode or string');
  65017. if (typeof tNodeOrTagName === 'string') {
  65018. // IF we don't have a `TNode`, then we are an element in ICU (as ICU content does
  65019. // not have TNode), in which case we know that there are no directives, and hence
  65020. // we use attribute setting.
  65021. setElementAttribute(lView[RENDERER], lView[nodeIndex], null, tNodeOrTagName, propName, value, sanitizeFn);
  65022. }
  65023. else {
  65024. elementPropertyInternal(tView, tNodeOrTagName, lView, propName, value, lView[RENDERER], sanitizeFn, false);
  65025. }
  65026. break;
  65027. case 0 /* Text */:
  65028. const rText = lView[nodeIndex];
  65029. rText !== null && updateTextNode(lView[RENDERER], rText, value);
  65030. break;
  65031. case 2 /* IcuSwitch */:
  65032. applyIcuSwitchCase(tView, getTIcu(tView, nodeIndex), lView, value);
  65033. break;
  65034. case 3 /* IcuUpdate */:
  65035. applyIcuUpdateCase(tView, getTIcu(tView, nodeIndex), bindingsStartIndex, lView);
  65036. break;
  65037. }
  65038. }
  65039. }
  65040. }
  65041. }
  65042. else {
  65043. const opCode = updateOpCodes[i + 1];
  65044. if (opCode > 0 && (opCode & 3 /* MASK_OPCODE */) === 3 /* IcuUpdate */) {
  65045. // Special case for the `icuUpdateCase`. It could be that the mask did not match, but
  65046. // we still need to execute `icuUpdateCase` because the case has changed recently due to
  65047. // previous `icuSwitchCase` instruction. (`icuSwitchCase` and `icuUpdateCase` always come in
  65048. // pairs.)
  65049. const nodeIndex = (opCode >>> 2 /* SHIFT_REF */);
  65050. const tIcu = getTIcu(tView, nodeIndex);
  65051. const currentIndex = lView[tIcu.currentCaseLViewIndex];
  65052. if (currentIndex < 0) {
  65053. applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView);
  65054. }
  65055. }
  65056. }
  65057. i += skipCodes;
  65058. }
  65059. }
  65060. /**
  65061. * Apply OpCodes associated with updating an existing ICU.
  65062. *
  65063. * @param tView Current `TView`
  65064. * @param tIcu Current `TIcu`
  65065. * @param bindingsStartIndex Location of the first `ɵɵi18nApply`
  65066. * @param lView Current `LView`
  65067. */
  65068. function applyIcuUpdateCase(tView, tIcu, bindingsStartIndex, lView) {
  65069. ngDevMode && assertIndexInRange(lView, tIcu.currentCaseLViewIndex);
  65070. let activeCaseIndex = lView[tIcu.currentCaseLViewIndex];
  65071. if (activeCaseIndex !== null) {
  65072. let mask = changeMask;
  65073. if (activeCaseIndex < 0) {
  65074. // Clear the flag.
  65075. // Negative number means that the ICU was freshly created and we need to force the update.
  65076. activeCaseIndex = lView[tIcu.currentCaseLViewIndex] = ~activeCaseIndex;
  65077. // -1 is same as all bits on, which simulates creation since it marks all bits dirty
  65078. mask = -1;
  65079. }
  65080. applyUpdateOpCodes(tView, lView, tIcu.update[activeCaseIndex], bindingsStartIndex, mask);
  65081. }
  65082. }
  65083. /**
  65084. * Apply OpCodes associated with switching a case on ICU.
  65085. *
  65086. * This involves tearing down existing case and than building up a new case.
  65087. *
  65088. * @param tView Current `TView`
  65089. * @param tIcu Current `TIcu`
  65090. * @param lView Current `LView`
  65091. * @param value Value of the case to update to.
  65092. */
  65093. function applyIcuSwitchCase(tView, tIcu, lView, value) {
  65094. // Rebuild a new case for this ICU
  65095. const caseIndex = getCaseIndex(tIcu, value);
  65096. let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);
  65097. if (activeCaseIndex !== caseIndex) {
  65098. applyIcuSwitchCaseRemove(tView, tIcu, lView);
  65099. lView[tIcu.currentCaseLViewIndex] = caseIndex === null ? null : ~caseIndex;
  65100. if (caseIndex !== null) {
  65101. // Add the nodes for the new case
  65102. const anchorRNode = lView[tIcu.anchorIdx];
  65103. if (anchorRNode) {
  65104. ngDevMode && assertDomNode(anchorRNode);
  65105. applyMutableOpCodes(tView, tIcu.create[caseIndex], lView, anchorRNode);
  65106. }
  65107. }
  65108. }
  65109. }
  65110. /**
  65111. * Apply OpCodes associated with tearing ICU case.
  65112. *
  65113. * This involves tearing down existing case and than building up a new case.
  65114. *
  65115. * @param tView Current `TView`
  65116. * @param tIcu Current `TIcu`
  65117. * @param lView Current `LView`
  65118. */
  65119. function applyIcuSwitchCaseRemove(tView, tIcu, lView) {
  65120. let activeCaseIndex = getCurrentICUCaseIndex(tIcu, lView);
  65121. if (activeCaseIndex !== null) {
  65122. const removeCodes = tIcu.remove[activeCaseIndex];
  65123. for (let i = 0; i < removeCodes.length; i++) {
  65124. const nodeOrIcuIndex = removeCodes[i];
  65125. if (nodeOrIcuIndex > 0) {
  65126. // Positive numbers are `RNode`s.
  65127. const rNode = getNativeByIndex(nodeOrIcuIndex, lView);
  65128. rNode !== null && nativeRemoveNode(lView[RENDERER], rNode);
  65129. }
  65130. else {
  65131. // Negative numbers are ICUs
  65132. applyIcuSwitchCaseRemove(tView, getTIcu(tView, ~nodeOrIcuIndex), lView);
  65133. }
  65134. }
  65135. }
  65136. }
  65137. /**
  65138. * Returns the index of the current case of an ICU expression depending on the main binding value
  65139. *
  65140. * @param icuExpression
  65141. * @param bindingValue The value of the main binding used by this ICU expression
  65142. */
  65143. function getCaseIndex(icuExpression, bindingValue) {
  65144. let index = icuExpression.cases.indexOf(bindingValue);
  65145. if (index === -1) {
  65146. switch (icuExpression.type) {
  65147. case 1 /* plural */: {
  65148. const resolvedCase = getPluralCase(bindingValue, getLocaleId());
  65149. index = icuExpression.cases.indexOf(resolvedCase);
  65150. if (index === -1 && resolvedCase !== 'other') {
  65151. index = icuExpression.cases.indexOf('other');
  65152. }
  65153. break;
  65154. }
  65155. case 0 /* select */: {
  65156. index = icuExpression.cases.indexOf('other');
  65157. break;
  65158. }
  65159. }
  65160. }
  65161. return index === -1 ? null : index;
  65162. }
  65163. /**
  65164. * @license
  65165. * Copyright Google LLC All Rights Reserved.
  65166. *
  65167. * Use of this source code is governed by an MIT-style license that can be
  65168. * found in the LICENSE file at https://angular.io/license
  65169. */
  65170. function loadIcuContainerVisitor() {
  65171. const _stack = [];
  65172. let _index = -1;
  65173. let _lView;
  65174. let _removes;
  65175. /**
  65176. * Retrieves a set of root nodes from `TIcu.remove`. Used by `TNodeType.ICUContainer`
  65177. * to determine which root belong to the ICU.
  65178. *
  65179. * Example of usage.
  65180. * ```
  65181. * const nextRNode = icuContainerIteratorStart(tIcuContainerNode, lView);
  65182. * let rNode: RNode|null;
  65183. * while(rNode = nextRNode()) {
  65184. * console.log(rNode);
  65185. * }
  65186. * ```
  65187. *
  65188. * @param tIcuContainerNode Current `TIcuContainerNode`
  65189. * @param lView `LView` where the `RNode`s should be looked up.
  65190. */
  65191. function icuContainerIteratorStart(tIcuContainerNode, lView) {
  65192. _lView = lView;
  65193. while (_stack.length)
  65194. _stack.pop();
  65195. ngDevMode && assertTNodeForLView(tIcuContainerNode, lView);
  65196. enterIcu(tIcuContainerNode.value, lView);
  65197. return icuContainerIteratorNext;
  65198. }
  65199. function enterIcu(tIcu, lView) {
  65200. _index = 0;
  65201. const currentCase = getCurrentICUCaseIndex(tIcu, lView);
  65202. if (currentCase !== null) {
  65203. ngDevMode && assertNumberInRange(currentCase, 0, tIcu.cases.length - 1);
  65204. _removes = tIcu.remove[currentCase];
  65205. }
  65206. else {
  65207. _removes = EMPTY_ARRAY;
  65208. }
  65209. }
  65210. function icuContainerIteratorNext() {
  65211. if (_index < _removes.length) {
  65212. const removeOpCode = _removes[_index++];
  65213. ngDevMode && assertNumber(removeOpCode, 'Expecting OpCode number');
  65214. if (removeOpCode > 0) {
  65215. const rNode = _lView[removeOpCode];
  65216. ngDevMode && assertDomNode(rNode);
  65217. return rNode;
  65218. }
  65219. else {
  65220. _stack.push(_index, _removes);
  65221. // ICUs are represented by negative indices
  65222. const tIcuIndex = ~removeOpCode;
  65223. const tIcu = _lView[TVIEW].data[tIcuIndex];
  65224. ngDevMode && assertTIcu(tIcu);
  65225. enterIcu(tIcu, _lView);
  65226. return icuContainerIteratorNext();
  65227. }
  65228. }
  65229. else {
  65230. if (_stack.length === 0) {
  65231. return null;
  65232. }
  65233. else {
  65234. _removes = _stack.pop();
  65235. _index = _stack.pop();
  65236. return icuContainerIteratorNext();
  65237. }
  65238. }
  65239. }
  65240. return icuContainerIteratorStart;
  65241. }
  65242. /**
  65243. * @license
  65244. * Copyright Google LLC All Rights Reserved.
  65245. *
  65246. * Use of this source code is governed by an MIT-style license that can be
  65247. * found in the LICENSE file at https://angular.io/license
  65248. */
  65249. /**
  65250. * Converts `I18nCreateOpCodes` array into a human readable format.
  65251. *
  65252. * This function is attached to the `I18nCreateOpCodes.debug` property if `ngDevMode` is enabled.
  65253. * This function provides a human readable view of the opcodes. This is useful when debugging the
  65254. * application as well as writing more readable tests.
  65255. *
  65256. * @param this `I18nCreateOpCodes` if attached as a method.
  65257. * @param opcodes `I18nCreateOpCodes` if invoked as a function.
  65258. */
  65259. function i18nCreateOpCodesToString(opcodes) {
  65260. const createOpCodes = opcodes || (Array.isArray(this) ? this : []);
  65261. let lines = [];
  65262. for (let i = 0; i < createOpCodes.length; i++) {
  65263. const opCode = createOpCodes[i++];
  65264. const text = createOpCodes[i];
  65265. const isComment = (opCode & I18nCreateOpCode.COMMENT) === I18nCreateOpCode.COMMENT;
  65266. const appendNow = (opCode & I18nCreateOpCode.APPEND_EAGERLY) === I18nCreateOpCode.APPEND_EAGERLY;
  65267. const index = opCode >>> I18nCreateOpCode.SHIFT;
  65268. lines.push(`lView[${index}] = document.${isComment ? 'createComment' : 'createText'}(${JSON.stringify(text)});`);
  65269. if (appendNow) {
  65270. lines.push(`parent.appendChild(lView[${index}]);`);
  65271. }
  65272. }
  65273. return lines;
  65274. }
  65275. /**
  65276. * Converts `I18nUpdateOpCodes` array into a human readable format.
  65277. *
  65278. * This function is attached to the `I18nUpdateOpCodes.debug` property if `ngDevMode` is enabled.
  65279. * This function provides a human readable view of the opcodes. This is useful when debugging the
  65280. * application as well as writing more readable tests.
  65281. *
  65282. * @param this `I18nUpdateOpCodes` if attached as a method.
  65283. * @param opcodes `I18nUpdateOpCodes` if invoked as a function.
  65284. */
  65285. function i18nUpdateOpCodesToString(opcodes) {
  65286. const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));
  65287. let lines = [];
  65288. function consumeOpCode(value) {
  65289. const ref = value >>> 2 /* SHIFT_REF */;
  65290. const opCode = value & 3 /* MASK_OPCODE */;
  65291. switch (opCode) {
  65292. case 0 /* Text */:
  65293. return `(lView[${ref}] as Text).textContent = $$$`;
  65294. case 1 /* Attr */:
  65295. const attrName = parser.consumeString();
  65296. const sanitizationFn = parser.consumeFunction();
  65297. const value = sanitizationFn ? `(${sanitizationFn})($$$)` : '$$$';
  65298. return `(lView[${ref}] as Element).setAttribute('${attrName}', ${value})`;
  65299. case 2 /* IcuSwitch */:
  65300. return `icuSwitchCase(${ref}, $$$)`;
  65301. case 3 /* IcuUpdate */:
  65302. return `icuUpdateCase(${ref})`;
  65303. }
  65304. throw new Error('unexpected OpCode');
  65305. }
  65306. while (parser.hasMore()) {
  65307. let mask = parser.consumeNumber();
  65308. let size = parser.consumeNumber();
  65309. const end = parser.i + size;
  65310. const statements = [];
  65311. let statement = '';
  65312. while (parser.i < end) {
  65313. let value = parser.consumeNumberOrString();
  65314. if (typeof value === 'string') {
  65315. statement += value;
  65316. }
  65317. else if (value < 0) {
  65318. // Negative numbers are ref indexes
  65319. // Here `i` refers to current binding index. It is to signify that the value is relative,
  65320. // rather than absolute.
  65321. statement += '${lView[i' + value + ']}';
  65322. }
  65323. else {
  65324. // Positive numbers are operations.
  65325. const opCodeText = consumeOpCode(value);
  65326. statements.push(opCodeText.replace('$$$', '`' + statement + '`') + ';');
  65327. statement = '';
  65328. }
  65329. }
  65330. lines.push(`if (mask & 0b${mask.toString(2)}) { ${statements.join(' ')} }`);
  65331. }
  65332. return lines;
  65333. }
  65334. /**
  65335. * Converts `I18nCreateOpCodes` array into a human readable format.
  65336. *
  65337. * This function is attached to the `I18nCreateOpCodes.debug` if `ngDevMode` is enabled. This
  65338. * function provides a human readable view of the opcodes. This is useful when debugging the
  65339. * application as well as writing more readable tests.
  65340. *
  65341. * @param this `I18nCreateOpCodes` if attached as a method.
  65342. * @param opcodes `I18nCreateOpCodes` if invoked as a function.
  65343. */
  65344. function icuCreateOpCodesToString(opcodes) {
  65345. const parser = new OpCodeParser(opcodes || (Array.isArray(this) ? this : []));
  65346. let lines = [];
  65347. function consumeOpCode(opCode) {
  65348. const parent = getParentFromIcuCreateOpCode(opCode);
  65349. const ref = getRefFromIcuCreateOpCode(opCode);
  65350. switch (getInstructionFromIcuCreateOpCode(opCode)) {
  65351. case 0 /* AppendChild */:
  65352. return `(lView[${parent}] as Element).appendChild(lView[${lastRef}])`;
  65353. case 1 /* Attr */:
  65354. return `(lView[${ref}] as Element).setAttribute("${parser.consumeString()}", "${parser.consumeString()}")`;
  65355. }
  65356. throw new Error('Unexpected OpCode: ' + getInstructionFromIcuCreateOpCode(opCode));
  65357. }
  65358. let lastRef = -1;
  65359. while (parser.hasMore()) {
  65360. let value = parser.consumeNumberStringOrMarker();
  65361. if (value === ICU_MARKER) {
  65362. const text = parser.consumeString();
  65363. lastRef = parser.consumeNumber();
  65364. lines.push(`lView[${lastRef}] = document.createComment("${text}")`);
  65365. }
  65366. else if (value === ELEMENT_MARKER) {
  65367. const text = parser.consumeString();
  65368. lastRef = parser.consumeNumber();
  65369. lines.push(`lView[${lastRef}] = document.createElement("${text}")`);
  65370. }
  65371. else if (typeof value === 'string') {
  65372. lastRef = parser.consumeNumber();
  65373. lines.push(`lView[${lastRef}] = document.createTextNode("${value}")`);
  65374. }
  65375. else if (typeof value === 'number') {
  65376. const line = consumeOpCode(value);
  65377. line && lines.push(line);
  65378. }
  65379. else {
  65380. throw new Error('Unexpected value');
  65381. }
  65382. }
  65383. return lines;
  65384. }
  65385. /**
  65386. * Converts `I18nRemoveOpCodes` array into a human readable format.
  65387. *
  65388. * This function is attached to the `I18nRemoveOpCodes.debug` if `ngDevMode` is enabled. This
  65389. * function provides a human readable view of the opcodes. This is useful when debugging the
  65390. * application as well as writing more readable tests.
  65391. *
  65392. * @param this `I18nRemoveOpCodes` if attached as a method.
  65393. * @param opcodes `I18nRemoveOpCodes` if invoked as a function.
  65394. */
  65395. function i18nRemoveOpCodesToString(opcodes) {
  65396. const removeCodes = opcodes || (Array.isArray(this) ? this : []);
  65397. let lines = [];
  65398. for (let i = 0; i < removeCodes.length; i++) {
  65399. const nodeOrIcuIndex = removeCodes[i];
  65400. if (nodeOrIcuIndex > 0) {
  65401. // Positive numbers are `RNode`s.
  65402. lines.push(`remove(lView[${nodeOrIcuIndex}])`);
  65403. }
  65404. else {
  65405. // Negative numbers are ICUs
  65406. lines.push(`removeNestedICU(${~nodeOrIcuIndex})`);
  65407. }
  65408. }
  65409. return lines;
  65410. }
  65411. class OpCodeParser {
  65412. constructor(codes) {
  65413. this.i = 0;
  65414. this.codes = codes;
  65415. }
  65416. hasMore() {
  65417. return this.i < this.codes.length;
  65418. }
  65419. consumeNumber() {
  65420. let value = this.codes[this.i++];
  65421. assertNumber(value, 'expecting number in OpCode');
  65422. return value;
  65423. }
  65424. consumeString() {
  65425. let value = this.codes[this.i++];
  65426. assertString(value, 'expecting string in OpCode');
  65427. return value;
  65428. }
  65429. consumeFunction() {
  65430. let value = this.codes[this.i++];
  65431. if (value === null || typeof value === 'function') {
  65432. return value;
  65433. }
  65434. throw new Error('expecting function in OpCode');
  65435. }
  65436. consumeNumberOrString() {
  65437. let value = this.codes[this.i++];
  65438. if (typeof value === 'string') {
  65439. return value;
  65440. }
  65441. assertNumber(value, 'expecting number or string in OpCode');
  65442. return value;
  65443. }
  65444. consumeNumberStringOrMarker() {
  65445. let value = this.codes[this.i++];
  65446. if (typeof value === 'string' || typeof value === 'number' || value == ICU_MARKER ||
  65447. value == ELEMENT_MARKER) {
  65448. return value;
  65449. }
  65450. assertNumber(value, 'expecting number, string, ICU_MARKER or ELEMENT_MARKER in OpCode');
  65451. return value;
  65452. }
  65453. }
  65454. /**
  65455. * @license
  65456. * Copyright Google LLC All Rights Reserved.
  65457. *
  65458. * Use of this source code is governed by an MIT-style license that can be
  65459. * found in the LICENSE file at https://angular.io/license
  65460. */
  65461. const BINDING_REGEXP = /�(\d+):?\d*�/gi;
  65462. const ICU_REGEXP = /({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi;
  65463. const NESTED_ICU = /�(\d+)�/;
  65464. const ICU_BLOCK_REGEXP = /^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/;
  65465. const MARKER = `�`;
  65466. const SUBTEMPLATE_REGEXP = /�\/?\*(\d+:\d+)�/gi;
  65467. const PH_REGEXP = /�(\/?[#*]\d+):?\d*�/gi;
  65468. /**
  65469. * Angular Dart introduced &ngsp; as a placeholder for non-removable space, see:
  65470. * https://github.com/dart-lang/angular/blob/0bb611387d29d65b5af7f9d2515ab571fd3fbee4/_tests/test/compiler/preserve_whitespace_test.dart#L25-L32
  65471. * In Angular Dart &ngsp; is converted to the 0xE500 PUA (Private Use Areas) unicode character
  65472. * and later on replaced by a space. We are re-implementing the same idea here, since translations
  65473. * might contain this special character.
  65474. */
  65475. const NGSP_UNICODE_REGEXP = /\uE500/g;
  65476. function replaceNgsp(value) {
  65477. return value.replace(NGSP_UNICODE_REGEXP, ' ');
  65478. }
  65479. /**
  65480. * Create dynamic nodes from i18n translation block.
  65481. *
  65482. * - Text nodes are created synchronously
  65483. * - TNodes are linked into tree lazily
  65484. *
  65485. * @param tView Current `TView`
  65486. * @parentTNodeIndex index to the parent TNode of this i18n block
  65487. * @param lView Current `LView`
  65488. * @param index Index of `ɵɵi18nStart` instruction.
  65489. * @param message Message to translate.
  65490. * @param subTemplateIndex Index into the sub template of message translation. (ie in case of
  65491. * `ngIf`) (-1 otherwise)
  65492. */
  65493. function i18nStartFirstCreatePass(tView, parentTNodeIndex, lView, index, message, subTemplateIndex) {
  65494. const rootTNode = getCurrentParentTNode();
  65495. const createOpCodes = [];
  65496. const updateOpCodes = [];
  65497. const existingTNodeStack = [[]];
  65498. if (ngDevMode) {
  65499. attachDebugGetter(createOpCodes, i18nCreateOpCodesToString);
  65500. attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
  65501. }
  65502. message = getTranslationForTemplate(message, subTemplateIndex);
  65503. const msgParts = replaceNgsp(message).split(PH_REGEXP);
  65504. for (let i = 0; i < msgParts.length; i++) {
  65505. let value = msgParts[i];
  65506. if ((i & 1) === 0) {
  65507. // Even indexes are text (including bindings & ICU expressions)
  65508. const parts = i18nParseTextIntoPartsAndICU(value);
  65509. for (let j = 0; j < parts.length; j++) {
  65510. let part = parts[j];
  65511. if ((j & 1) === 0) {
  65512. // `j` is odd therefore `part` is string
  65513. const text = part;
  65514. ngDevMode && assertString(text, 'Parsed ICU part should be string');
  65515. if (text !== '') {
  65516. i18nStartFirstCreatePassProcessTextNode(tView, rootTNode, existingTNodeStack[0], createOpCodes, updateOpCodes, lView, text);
  65517. }
  65518. }
  65519. else {
  65520. // `j` is Even therefor `part` is an `ICUExpression`
  65521. const icuExpression = part;
  65522. // Verify that ICU expression has the right shape. Translations might contain invalid
  65523. // constructions (while original messages were correct), so ICU parsing at runtime may
  65524. // not succeed (thus `icuExpression` remains a string).
  65525. // Note: we intentionally retain the error here by not using `ngDevMode`, because
  65526. // the value can change based on the locale and users aren't guaranteed to hit
  65527. // an invalid string while they're developing.
  65528. if (typeof icuExpression !== 'object') {
  65529. throw new Error(`Unable to parse ICU expression in "${message}" message.`);
  65530. }
  65531. const icuContainerTNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodeStack[0], lView, createOpCodes, ngDevMode ? `ICU ${index}:${icuExpression.mainBinding}` : '', true);
  65532. const icuNodeIndex = icuContainerTNode.index;
  65533. ngDevMode &&
  65534. assertGreaterThanOrEqual(icuNodeIndex, HEADER_OFFSET, 'Index must be in absolute LView offset');
  65535. icuStart(tView, lView, updateOpCodes, parentTNodeIndex, icuExpression, icuNodeIndex);
  65536. }
  65537. }
  65538. }
  65539. else {
  65540. // Odd indexes are placeholders (elements and sub-templates)
  65541. // At this point value is something like: '/#1:2' (originally coming from '�/#1:2�')
  65542. const isClosing = value.charCodeAt(0) === 47 /* SLASH */;
  65543. const type = value.charCodeAt(isClosing ? 1 : 0);
  65544. ngDevMode && assertOneOf(type, 42 /* STAR */, 35 /* HASH */);
  65545. const index = HEADER_OFFSET + Number.parseInt(value.substring((isClosing ? 2 : 1)));
  65546. if (isClosing) {
  65547. existingTNodeStack.shift();
  65548. setCurrentTNode(getCurrentParentTNode(), false);
  65549. }
  65550. else {
  65551. const tNode = createTNodePlaceholder(tView, existingTNodeStack[0], index);
  65552. existingTNodeStack.unshift([]);
  65553. setCurrentTNode(tNode, true);
  65554. }
  65555. }
  65556. }
  65557. tView.data[index] = {
  65558. create: createOpCodes,
  65559. update: updateOpCodes,
  65560. };
  65561. }
  65562. /**
  65563. * Allocate space in i18n Range add create OpCode instruction to crete a text or comment node.
  65564. *
  65565. * @param tView Current `TView` needed to allocate space in i18n range.
  65566. * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will be
  65567. * added as part of the `i18nStart` instruction or as part of the `TNode.insertBeforeIndex`.
  65568. * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.
  65569. * @param lView Current `LView` needed to allocate space in i18n range.
  65570. * @param createOpCodes Array storing `I18nCreateOpCodes` where new opCodes will be added.
  65571. * @param text Text to be added when the `Text` or `Comment` node will be created.
  65572. * @param isICU true if a `Comment` node for ICU (instead of `Text`) node should be created.
  65573. */
  65574. function createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, text, isICU) {
  65575. const i18nNodeIdx = allocExpando(tView, lView, 1, null);
  65576. let opCode = i18nNodeIdx << I18nCreateOpCode.SHIFT;
  65577. let parentTNode = getCurrentParentTNode();
  65578. if (rootTNode === parentTNode) {
  65579. // FIXME(misko): A null `parentTNode` should represent when we fall of the `LView` boundary.
  65580. // (there is no parent), but in some circumstances (because we are inconsistent about how we set
  65581. // `previousOrParentTNode`) it could point to `rootTNode` So this is a work around.
  65582. parentTNode = null;
  65583. }
  65584. if (parentTNode === null) {
  65585. // If we don't have a parent that means that we can eagerly add nodes.
  65586. // If we have a parent than these nodes can't be added now (as the parent has not been created
  65587. // yet) and instead the `parentTNode` is responsible for adding it. See
  65588. // `TNode.insertBeforeIndex`
  65589. opCode |= I18nCreateOpCode.APPEND_EAGERLY;
  65590. }
  65591. if (isICU) {
  65592. opCode |= I18nCreateOpCode.COMMENT;
  65593. ensureIcuContainerVisitorLoaded(loadIcuContainerVisitor);
  65594. }
  65595. createOpCodes.push(opCode, text === null ? '' : text);
  65596. // We store `{{?}}` so that when looking at debug `TNodeType.template` we can see where the
  65597. // bindings are.
  65598. const tNode = createTNodeAtIndex(tView, i18nNodeIdx, isICU ? 32 /* Icu */ : 1 /* Text */, text === null ? (ngDevMode ? '{{?}}' : '') : text, null);
  65599. addTNodeAndUpdateInsertBeforeIndex(existingTNodes, tNode);
  65600. const tNodeIdx = tNode.index;
  65601. setCurrentTNode(tNode, false /* Text nodes are self closing */);
  65602. if (parentTNode !== null && rootTNode !== parentTNode) {
  65603. // We are a child of deeper node (rather than a direct child of `i18nStart` instruction.)
  65604. // We have to make sure to add ourselves to the parent.
  65605. setTNodeInsertBeforeIndex(parentTNode, tNodeIdx);
  65606. }
  65607. return tNode;
  65608. }
  65609. /**
  65610. * Processes text node in i18n block.
  65611. *
  65612. * Text nodes can have:
  65613. * - Create instruction in `createOpCodes` for creating the text node.
  65614. * - Allocate spec for text node in i18n range of `LView`
  65615. * - If contains binding:
  65616. * - bindings => allocate space in i18n range of `LView` to store the binding value.
  65617. * - populate `updateOpCodes` with update instructions.
  65618. *
  65619. * @param tView Current `TView`
  65620. * @param rootTNode Root `TNode` of the i18n block. This node determines if the new TNode will
  65621. * be added as part of the `i18nStart` instruction or as part of the
  65622. * `TNode.insertBeforeIndex`.
  65623. * @param existingTNodes internal state for `addTNodeAndUpdateInsertBeforeIndex`.
  65624. * @param createOpCodes Location where the creation OpCodes will be stored.
  65625. * @param lView Current `LView`
  65626. * @param text The translated text (which may contain binding)
  65627. */
  65628. function i18nStartFirstCreatePassProcessTextNode(tView, rootTNode, existingTNodes, createOpCodes, updateOpCodes, lView, text) {
  65629. const hasBinding = text.match(BINDING_REGEXP);
  65630. const tNode = createTNodeAndAddOpCode(tView, rootTNode, existingTNodes, lView, createOpCodes, hasBinding ? null : text, false);
  65631. if (hasBinding) {
  65632. generateBindingUpdateOpCodes(updateOpCodes, text, tNode.index);
  65633. }
  65634. }
  65635. /**
  65636. * See `i18nAttributes` above.
  65637. */
  65638. function i18nAttributesFirstPass(tView, index, values) {
  65639. const previousElement = getCurrentTNode();
  65640. const previousElementIndex = previousElement.index;
  65641. const updateOpCodes = [];
  65642. if (ngDevMode) {
  65643. attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
  65644. }
  65645. if (tView.firstCreatePass && tView.data[index] === null) {
  65646. for (let i = 0; i < values.length; i += 2) {
  65647. const attrName = values[i];
  65648. const message = values[i + 1];
  65649. if (message !== '') {
  65650. // Check if attribute value contains an ICU and throw an error if that's the case.
  65651. // ICUs in element attributes are not supported.
  65652. // Note: we intentionally retain the error here by not using `ngDevMode`, because
  65653. // the `value` can change based on the locale and users aren't guaranteed to hit
  65654. // an invalid string while they're developing.
  65655. if (ICU_REGEXP.test(message)) {
  65656. throw new Error(`ICU expressions are not supported in attributes. Message: "${message}".`);
  65657. }
  65658. // i18n attributes that hit this code path are guaranteed to have bindings, because
  65659. // the compiler treats static i18n attributes as regular attribute bindings.
  65660. generateBindingUpdateOpCodes(updateOpCodes, message, previousElementIndex, attrName);
  65661. }
  65662. }
  65663. tView.data[index] = updateOpCodes;
  65664. }
  65665. }
  65666. /**
  65667. * Generate the OpCodes to update the bindings of a string.
  65668. *
  65669. * @param updateOpCodes Place where the update opcodes will be stored.
  65670. * @param str The string containing the bindings.
  65671. * @param destinationNode Index of the destination node which will receive the binding.
  65672. * @param attrName Name of the attribute, if the string belongs to an attribute.
  65673. * @param sanitizeFn Sanitization function used to sanitize the string after update, if necessary.
  65674. */
  65675. function generateBindingUpdateOpCodes(updateOpCodes, str, destinationNode, attrName, sanitizeFn = null) {
  65676. ngDevMode &&
  65677. assertGreaterThanOrEqual(destinationNode, HEADER_OFFSET, 'Index must be in absolute LView offset');
  65678. const maskIndex = updateOpCodes.length; // Location of mask
  65679. const sizeIndex = maskIndex + 1; // location of size for skipping
  65680. updateOpCodes.push(null, null); // Alloc space for mask and size
  65681. const startIndex = maskIndex + 2; // location of first allocation.
  65682. if (ngDevMode) {
  65683. attachDebugGetter(updateOpCodes, i18nUpdateOpCodesToString);
  65684. }
  65685. const textParts = str.split(BINDING_REGEXP);
  65686. let mask = 0;
  65687. for (let j = 0; j < textParts.length; j++) {
  65688. const textValue = textParts[j];
  65689. if (j & 1) {
  65690. // Odd indexes are bindings
  65691. const bindingIndex = parseInt(textValue, 10);
  65692. updateOpCodes.push(-1 - bindingIndex);
  65693. mask = mask | toMaskBit(bindingIndex);
  65694. }
  65695. else if (textValue !== '') {
  65696. // Even indexes are text
  65697. updateOpCodes.push(textValue);
  65698. }
  65699. }
  65700. updateOpCodes.push(destinationNode << 2 /* SHIFT_REF */ |
  65701. (attrName ? 1 /* Attr */ : 0 /* Text */));
  65702. if (attrName) {
  65703. updateOpCodes.push(attrName, sanitizeFn);
  65704. }
  65705. updateOpCodes[maskIndex] = mask;
  65706. updateOpCodes[sizeIndex] = updateOpCodes.length - startIndex;
  65707. return mask;
  65708. }
  65709. /**
  65710. * Convert binding index to mask bit.
  65711. *
  65712. * Each index represents a single bit on the bit-mask. Because bit-mask only has 32 bits, we make
  65713. * the 32nd bit share all masks for all bindings higher than 32. Since it is extremely rare to
  65714. * have more than 32 bindings this will be hit very rarely. The downside of hitting this corner
  65715. * case is that we will execute binding code more often than necessary. (penalty of performance)
  65716. */
  65717. function toMaskBit(bindingIndex) {
  65718. return 1 << Math.min(bindingIndex, 31);
  65719. }
  65720. function isRootTemplateMessage(subTemplateIndex) {
  65721. return subTemplateIndex === -1;
  65722. }
  65723. /**
  65724. * Removes everything inside the sub-templates of a message.
  65725. */
  65726. function removeInnerTemplateTranslation(message) {
  65727. let match;
  65728. let res = '';
  65729. let index = 0;
  65730. let inTemplate = false;
  65731. let tagMatched;
  65732. while ((match = SUBTEMPLATE_REGEXP.exec(message)) !== null) {
  65733. if (!inTemplate) {
  65734. res += message.substring(index, match.index + match[0].length);
  65735. tagMatched = match[1];
  65736. inTemplate = true;
  65737. }
  65738. else {
  65739. if (match[0] === `${MARKER}/*${tagMatched}${MARKER}`) {
  65740. index = match.index;
  65741. inTemplate = false;
  65742. }
  65743. }
  65744. }
  65745. ngDevMode &&
  65746. assertEqual(inTemplate, false, `Tag mismatch: unable to find the end of the sub-template in the translation "${message}"`);
  65747. res += message.substr(index);
  65748. return res;
  65749. }
  65750. /**
  65751. * Extracts a part of a message and removes the rest.
  65752. *
  65753. * This method is used for extracting a part of the message associated with a template. A
  65754. * translated message can span multiple templates.
  65755. *
  65756. * Example:
  65757. * ```
  65758. * <div i18n>Translate <span *ngIf>me</span>!</div>
  65759. * ```
  65760. *
  65761. * @param message The message to crop
  65762. * @param subTemplateIndex Index of the sub-template to extract. If undefined it returns the
  65763. * external template and removes all sub-templates.
  65764. */
  65765. function getTranslationForTemplate(message, subTemplateIndex) {
  65766. if (isRootTemplateMessage(subTemplateIndex)) {
  65767. // We want the root template message, ignore all sub-templates
  65768. return removeInnerTemplateTranslation(message);
  65769. }
  65770. else {
  65771. // We want a specific sub-template
  65772. const start = message.indexOf(`:${subTemplateIndex}${MARKER}`) + 2 + subTemplateIndex.toString().length;
  65773. const end = message.search(new RegExp(`${MARKER}\\/\\*\\d+:${subTemplateIndex}${MARKER}`));
  65774. return removeInnerTemplateTranslation(message.substring(start, end));
  65775. }
  65776. }
  65777. /**
  65778. * Generate the OpCodes for ICU expressions.
  65779. *
  65780. * @param icuExpression
  65781. * @param index Index where the anchor is stored and an optional `TIcuContainerNode`
  65782. * - `lView[anchorIdx]` points to a `Comment` node representing the anchor for the ICU.
  65783. * - `tView.data[anchorIdx]` points to the `TIcuContainerNode` if ICU is root (`null` otherwise)
  65784. */
  65785. function icuStart(tView, lView, updateOpCodes, parentIdx, icuExpression, anchorIdx) {
  65786. ngDevMode && assertDefined(icuExpression, 'ICU expression must be defined');
  65787. let bindingMask = 0;
  65788. const tIcu = {
  65789. type: icuExpression.type,
  65790. currentCaseLViewIndex: allocExpando(tView, lView, 1, null),
  65791. anchorIdx,
  65792. cases: [],
  65793. create: [],
  65794. remove: [],
  65795. update: []
  65796. };
  65797. addUpdateIcuSwitch(updateOpCodes, icuExpression, anchorIdx);
  65798. setTIcu(tView, anchorIdx, tIcu);
  65799. const values = icuExpression.values;
  65800. for (let i = 0; i < values.length; i++) {
  65801. // Each value is an array of strings & other ICU expressions
  65802. const valueArr = values[i];
  65803. const nestedIcus = [];
  65804. for (let j = 0; j < valueArr.length; j++) {
  65805. const value = valueArr[j];
  65806. if (typeof value !== 'string') {
  65807. // It is an nested ICU expression
  65808. const icuIndex = nestedIcus.push(value) - 1;
  65809. // Replace nested ICU expression by a comment node
  65810. valueArr[j] = `<!--�${icuIndex}�-->`;
  65811. }
  65812. }
  65813. bindingMask = parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, icuExpression.cases[i], valueArr.join(''), nestedIcus) |
  65814. bindingMask;
  65815. }
  65816. if (bindingMask) {
  65817. addUpdateIcuUpdate(updateOpCodes, bindingMask, anchorIdx);
  65818. }
  65819. }
  65820. /**
  65821. * Parses text containing an ICU expression and produces a JSON object for it.
  65822. * Original code from closure library, modified for Angular.
  65823. *
  65824. * @param pattern Text containing an ICU expression that needs to be parsed.
  65825. *
  65826. */
  65827. function parseICUBlock(pattern) {
  65828. const cases = [];
  65829. const values = [];
  65830. let icuType = 1 /* plural */;
  65831. let mainBinding = 0;
  65832. pattern = pattern.replace(ICU_BLOCK_REGEXP, function (str, binding, type) {
  65833. if (type === 'select') {
  65834. icuType = 0 /* select */;
  65835. }
  65836. else {
  65837. icuType = 1 /* plural */;
  65838. }
  65839. mainBinding = parseInt(binding.substr(1), 10);
  65840. return '';
  65841. });
  65842. const parts = i18nParseTextIntoPartsAndICU(pattern);
  65843. // Looking for (key block)+ sequence. One of the keys has to be "other".
  65844. for (let pos = 0; pos < parts.length;) {
  65845. let key = parts[pos++].trim();
  65846. if (icuType === 1 /* plural */) {
  65847. // Key can be "=x", we just want "x"
  65848. key = key.replace(/\s*(?:=)?(\w+)\s*/, '$1');
  65849. }
  65850. if (key.length) {
  65851. cases.push(key);
  65852. }
  65853. const blocks = i18nParseTextIntoPartsAndICU(parts[pos++]);
  65854. if (cases.length > values.length) {
  65855. values.push(blocks);
  65856. }
  65857. }
  65858. // TODO(ocombe): support ICU expressions in attributes, see #21615
  65859. return { type: icuType, mainBinding: mainBinding, cases, values };
  65860. }
  65861. /**
  65862. * Breaks pattern into strings and top level {...} blocks.
  65863. * Can be used to break a message into text and ICU expressions, or to break an ICU expression
  65864. * into keys and cases. Original code from closure library, modified for Angular.
  65865. *
  65866. * @param pattern (sub)Pattern to be broken.
  65867. * @returns An `Array<string|IcuExpression>` where:
  65868. * - odd positions: `string` => text between ICU expressions
  65869. * - even positions: `ICUExpression` => ICU expression parsed into `ICUExpression` record.
  65870. */
  65871. function i18nParseTextIntoPartsAndICU(pattern) {
  65872. if (!pattern) {
  65873. return [];
  65874. }
  65875. let prevPos = 0;
  65876. const braceStack = [];
  65877. const results = [];
  65878. const braces = /[{}]/g;
  65879. // lastIndex doesn't get set to 0 so we have to.
  65880. braces.lastIndex = 0;
  65881. let match;
  65882. while (match = braces.exec(pattern)) {
  65883. const pos = match.index;
  65884. if (match[0] == '}') {
  65885. braceStack.pop();
  65886. if (braceStack.length == 0) {
  65887. // End of the block.
  65888. const block = pattern.substring(prevPos, pos);
  65889. if (ICU_BLOCK_REGEXP.test(block)) {
  65890. results.push(parseICUBlock(block));
  65891. }
  65892. else {
  65893. results.push(block);
  65894. }
  65895. prevPos = pos + 1;
  65896. }
  65897. }
  65898. else {
  65899. if (braceStack.length == 0) {
  65900. const substring = pattern.substring(prevPos, pos);
  65901. results.push(substring);
  65902. prevPos = pos + 1;
  65903. }
  65904. braceStack.push('{');
  65905. }
  65906. }
  65907. const substring = pattern.substring(prevPos);
  65908. results.push(substring);
  65909. return results;
  65910. }
  65911. /**
  65912. * Parses a node, its children and its siblings, and generates the mutate & update OpCodes.
  65913. *
  65914. */
  65915. function parseIcuCase(tView, tIcu, lView, updateOpCodes, parentIdx, caseName, unsafeCaseHtml, nestedIcus) {
  65916. const create = [];
  65917. const remove = [];
  65918. const update = [];
  65919. if (ngDevMode) {
  65920. attachDebugGetter(create, icuCreateOpCodesToString);
  65921. attachDebugGetter(remove, i18nRemoveOpCodesToString);
  65922. attachDebugGetter(update, i18nUpdateOpCodesToString);
  65923. }
  65924. tIcu.cases.push(caseName);
  65925. tIcu.create.push(create);
  65926. tIcu.remove.push(remove);
  65927. tIcu.update.push(update);
  65928. const inertBodyHelper = getInertBodyHelper(getDocument());
  65929. const inertBodyElement = inertBodyHelper.getInertBodyElement(unsafeCaseHtml);
  65930. ngDevMode && assertDefined(inertBodyElement, 'Unable to generate inert body element');
  65931. const inertRootNode = getTemplateContent(inertBodyElement) || inertBodyElement;
  65932. if (inertRootNode) {
  65933. return walkIcuTree(tView, tIcu, lView, updateOpCodes, create, remove, update, inertRootNode, parentIdx, nestedIcus, 0);
  65934. }
  65935. else {
  65936. return 0;
  65937. }
  65938. }
  65939. function walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, parentNode, parentIdx, nestedIcus, depth) {
  65940. let bindingMask = 0;
  65941. let currentNode = parentNode.firstChild;
  65942. while (currentNode) {
  65943. const newIndex = allocExpando(tView, lView, 1, null);
  65944. switch (currentNode.nodeType) {
  65945. case Node.ELEMENT_NODE:
  65946. const element = currentNode;
  65947. const tagName = element.tagName.toLowerCase();
  65948. if (VALID_ELEMENTS.hasOwnProperty(tagName)) {
  65949. addCreateNodeAndAppend(create, ELEMENT_MARKER, tagName, parentIdx, newIndex);
  65950. tView.data[newIndex] = tagName;
  65951. const elAttrs = element.attributes;
  65952. for (let i = 0; i < elAttrs.length; i++) {
  65953. const attr = elAttrs.item(i);
  65954. const lowerAttrName = attr.name.toLowerCase();
  65955. const hasBinding = !!attr.value.match(BINDING_REGEXP);
  65956. // we assume the input string is safe, unless it's using a binding
  65957. if (hasBinding) {
  65958. if (VALID_ATTRS.hasOwnProperty(lowerAttrName)) {
  65959. if (URI_ATTRS[lowerAttrName]) {
  65960. generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, _sanitizeUrl);
  65961. }
  65962. else if (SRCSET_ATTRS[lowerAttrName]) {
  65963. generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name, sanitizeSrcset);
  65964. }
  65965. else {
  65966. generateBindingUpdateOpCodes(update, attr.value, newIndex, attr.name);
  65967. }
  65968. }
  65969. else {
  65970. ngDevMode &&
  65971. console.warn(`WARNING: ignoring unsafe attribute value ` +
  65972. `${lowerAttrName} on element ${tagName} ` +
  65973. `(see https://g.co/ng/security#xss)`);
  65974. }
  65975. }
  65976. else {
  65977. addCreateAttribute(create, newIndex, attr);
  65978. }
  65979. }
  65980. // Parse the children of this node (if any)
  65981. bindingMask = walkIcuTree(tView, tIcu, lView, sharedUpdateOpCodes, create, remove, update, currentNode, newIndex, nestedIcus, depth + 1) |
  65982. bindingMask;
  65983. addRemoveNode(remove, newIndex, depth);
  65984. }
  65985. break;
  65986. case Node.TEXT_NODE:
  65987. const value = currentNode.textContent || '';
  65988. const hasBinding = value.match(BINDING_REGEXP);
  65989. addCreateNodeAndAppend(create, null, hasBinding ? '' : value, parentIdx, newIndex);
  65990. addRemoveNode(remove, newIndex, depth);
  65991. if (hasBinding) {
  65992. bindingMask = generateBindingUpdateOpCodes(update, value, newIndex) | bindingMask;
  65993. }
  65994. break;
  65995. case Node.COMMENT_NODE:
  65996. // Check if the comment node is a placeholder for a nested ICU
  65997. const isNestedIcu = NESTED_ICU.exec(currentNode.textContent || '');
  65998. if (isNestedIcu) {
  65999. const nestedIcuIndex = parseInt(isNestedIcu[1], 10);
  66000. const icuExpression = nestedIcus[nestedIcuIndex];
  66001. // Create the comment node that will anchor the ICU expression
  66002. addCreateNodeAndAppend(create, ICU_MARKER, ngDevMode ? `nested ICU ${nestedIcuIndex}` : '', parentIdx, newIndex);
  66003. icuStart(tView, lView, sharedUpdateOpCodes, parentIdx, icuExpression, newIndex);
  66004. addRemoveNestedIcu(remove, newIndex, depth);
  66005. }
  66006. break;
  66007. }
  66008. currentNode = currentNode.nextSibling;
  66009. }
  66010. return bindingMask;
  66011. }
  66012. function addRemoveNode(remove, index, depth) {
  66013. if (depth === 0) {
  66014. remove.push(index);
  66015. }
  66016. }
  66017. function addRemoveNestedIcu(remove, index, depth) {
  66018. if (depth === 0) {
  66019. remove.push(~index); // remove ICU at `index`
  66020. remove.push(index); // remove ICU comment at `index`
  66021. }
  66022. }
  66023. function addUpdateIcuSwitch(update, icuExpression, index) {
  66024. update.push(toMaskBit(icuExpression.mainBinding), 2, -1 - icuExpression.mainBinding, index << 2 /* SHIFT_REF */ | 2 /* IcuSwitch */);
  66025. }
  66026. function addUpdateIcuUpdate(update, bindingMask, index) {
  66027. update.push(bindingMask, 1, index << 2 /* SHIFT_REF */ | 3 /* IcuUpdate */);
  66028. }
  66029. function addCreateNodeAndAppend(create, marker, text, appendToParentIdx, createAtIdx) {
  66030. if (marker !== null) {
  66031. create.push(marker);
  66032. }
  66033. create.push(text, createAtIdx, icuCreateOpCode(0 /* AppendChild */, appendToParentIdx, createAtIdx));
  66034. }
  66035. function addCreateAttribute(create, newIndex, attr) {
  66036. create.push(newIndex << 1 /* SHIFT_REF */ | 1 /* Attr */, attr.name, attr.value);
  66037. }
  66038. /**
  66039. * @license
  66040. * Copyright Google LLC All Rights Reserved.
  66041. *
  66042. * Use of this source code is governed by an MIT-style license that can be
  66043. * found in the LICENSE file at https://angular.io/license
  66044. */
  66045. // i18nPostprocess consts
  66046. const ROOT_TEMPLATE_ID = 0;
  66047. const PP_MULTI_VALUE_PLACEHOLDERS_REGEXP = /\[(�.+?�?)\]/;
  66048. const PP_PLACEHOLDERS_REGEXP = /\[(�.+?�?)\]|(�\/?\*\d+:\d+�)/g;
  66049. const PP_ICU_VARS_REGEXP = /({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g;
  66050. const PP_ICU_PLACEHOLDERS_REGEXP = /{([A-Z0-9_]+)}/g;
  66051. const PP_ICUS_REGEXP = /�I18N_EXP_(ICU(_\d+)?)�/g;
  66052. const PP_CLOSE_TEMPLATE_REGEXP = /\/\*/;
  66053. const PP_TEMPLATE_ID_REGEXP = /\d+\:(\d+)/;
  66054. /**
  66055. * Handles message string post-processing for internationalization.
  66056. *
  66057. * Handles message string post-processing by transforming it from intermediate
  66058. * format (that might contain some markers that we need to replace) to the final
  66059. * form, consumable by i18nStart instruction. Post processing steps include:
  66060. *
  66061. * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])
  66062. * 2. Replace all ICU vars (like "VAR_PLURAL")
  66063. * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
  66064. * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)
  66065. * in case multiple ICUs have the same placeholder name
  66066. *
  66067. * @param message Raw translation string for post processing
  66068. * @param replacements Set of replacements that should be applied
  66069. *
  66070. * @returns Transformed string that can be consumed by i18nStart instruction
  66071. *
  66072. * @codeGenApi
  66073. */
  66074. function i18nPostprocess(message, replacements = {}) {
  66075. /**
  66076. * Step 1: resolve all multi-value placeholders like [�#5�|�*1:1��#2:1�|�#4:1�]
  66077. *
  66078. * Note: due to the way we process nested templates (BFS), multi-value placeholders are typically
  66079. * grouped by templates, for example: [�#5�|�#6�|�#1:1�|�#3:2�] where �#5� and �#6� belong to root
  66080. * template, �#1:1� belong to nested template with index 1 and �#1:2� - nested template with index
  66081. * 3. However in real templates the order might be different: i.e. �#1:1� and/or �#3:2� may go in
  66082. * front of �#6�. The post processing step restores the right order by keeping track of the
  66083. * template id stack and looks for placeholders that belong to the currently active template.
  66084. */
  66085. let result = message;
  66086. if (PP_MULTI_VALUE_PLACEHOLDERS_REGEXP.test(message)) {
  66087. const matches = {};
  66088. const templateIdsStack = [ROOT_TEMPLATE_ID];
  66089. result = result.replace(PP_PLACEHOLDERS_REGEXP, (m, phs, tmpl) => {
  66090. const content = phs || tmpl;
  66091. const placeholders = matches[content] || [];
  66092. if (!placeholders.length) {
  66093. content.split('|').forEach((placeholder) => {
  66094. const match = placeholder.match(PP_TEMPLATE_ID_REGEXP);
  66095. const templateId = match ? parseInt(match[1], 10) : ROOT_TEMPLATE_ID;
  66096. const isCloseTemplateTag = PP_CLOSE_TEMPLATE_REGEXP.test(placeholder);
  66097. placeholders.push([templateId, isCloseTemplateTag, placeholder]);
  66098. });
  66099. matches[content] = placeholders;
  66100. }
  66101. if (!placeholders.length) {
  66102. throw new Error(`i18n postprocess: unmatched placeholder - ${content}`);
  66103. }
  66104. const currentTemplateId = templateIdsStack[templateIdsStack.length - 1];
  66105. let idx = 0;
  66106. // find placeholder index that matches current template id
  66107. for (let i = 0; i < placeholders.length; i++) {
  66108. if (placeholders[i][0] === currentTemplateId) {
  66109. idx = i;
  66110. break;
  66111. }
  66112. }
  66113. // update template id stack based on the current tag extracted
  66114. const [templateId, isCloseTemplateTag, placeholder] = placeholders[idx];
  66115. if (isCloseTemplateTag) {
  66116. templateIdsStack.pop();
  66117. }
  66118. else if (currentTemplateId !== templateId) {
  66119. templateIdsStack.push(templateId);
  66120. }
  66121. // remove processed tag from the list
  66122. placeholders.splice(idx, 1);
  66123. return placeholder;
  66124. });
  66125. }
  66126. // return current result if no replacements specified
  66127. if (!Object.keys(replacements).length) {
  66128. return result;
  66129. }
  66130. /**
  66131. * Step 2: replace all ICU vars (like "VAR_PLURAL")
  66132. */
  66133. result = result.replace(PP_ICU_VARS_REGEXP, (match, start, key, _type, _idx, end) => {
  66134. return replacements.hasOwnProperty(key) ? `${start}${replacements[key]}${end}` : match;
  66135. });
  66136. /**
  66137. * Step 3: replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
  66138. */
  66139. result = result.replace(PP_ICU_PLACEHOLDERS_REGEXP, (match, key) => {
  66140. return replacements.hasOwnProperty(key) ? replacements[key] : match;
  66141. });
  66142. /**
  66143. * Step 4: replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�) in case
  66144. * multiple ICUs have the same placeholder name
  66145. */
  66146. result = result.replace(PP_ICUS_REGEXP, (match, key) => {
  66147. if (replacements.hasOwnProperty(key)) {
  66148. const list = replacements[key];
  66149. if (!list.length) {
  66150. throw new Error(`i18n postprocess: unmatched ICU - ${match} with key: ${key}`);
  66151. }
  66152. return list.shift();
  66153. }
  66154. return match;
  66155. });
  66156. return result;
  66157. }
  66158. /**
  66159. * @license
  66160. * Copyright Google LLC All Rights Reserved.
  66161. *
  66162. * Use of this source code is governed by an MIT-style license that can be
  66163. * found in the LICENSE file at https://angular.io/license
  66164. */
  66165. /**
  66166. * Marks a block of text as translatable.
  66167. *
  66168. * The instructions `i18nStart` and `i18nEnd` mark the translation block in the template.
  66169. * The translation `message` is the value which is locale specific. The translation string may
  66170. * contain placeholders which associate inner elements and sub-templates within the translation.
  66171. *
  66172. * The translation `message` placeholders are:
  66173. * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be
  66174. * interpolated into. The placeholder `index` points to the expression binding index. An optional
  66175. * `block` that matches the sub-template in which it was declared.
  66176. * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning
  66177. * and end of DOM element that were embedded in the original translation block. The placeholder
  66178. * `index` points to the element index in the template instructions set. An optional `block` that
  66179. * matches the sub-template in which it was declared.
  66180. * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be
  66181. * split up and translated separately in each angular template function. The `index` points to the
  66182. * `template` instruction index. A `block` that matches the sub-template in which it was declared.
  66183. *
  66184. * @param index A unique index of the translation in the static block.
  66185. * @param messageIndex An index of the translation message from the `def.consts` array.
  66186. * @param subTemplateIndex Optional sub-template index in the `message`.
  66187. *
  66188. * @codeGenApi
  66189. */
  66190. function ɵɵi18nStart(index, messageIndex, subTemplateIndex = -1) {
  66191. const tView = getTView();
  66192. const lView = getLView();
  66193. const adjustedIndex = HEADER_OFFSET + index;
  66194. ngDevMode && assertDefined(tView, `tView should be defined`);
  66195. const message = getConstant(tView.consts, messageIndex);
  66196. const parentTNode = getCurrentParentTNode();
  66197. if (tView.firstCreatePass) {
  66198. i18nStartFirstCreatePass(tView, parentTNode === null ? 0 : parentTNode.index, lView, adjustedIndex, message, subTemplateIndex);
  66199. }
  66200. const tI18n = tView.data[adjustedIndex];
  66201. const sameViewParentTNode = parentTNode === lView[T_HOST] ? null : parentTNode;
  66202. const parentRNode = getClosestRElement(tView, sameViewParentTNode, lView);
  66203. // If `parentTNode` is an `ElementContainer` than it has `<!--ng-container--->`.
  66204. // When we do inserts we have to make sure to insert in front of `<!--ng-container--->`.
  66205. const insertInFrontOf = parentTNode && (parentTNode.type & 8 /* ElementContainer */) ?
  66206. lView[parentTNode.index] :
  66207. null;
  66208. applyCreateOpCodes(lView, tI18n.create, parentRNode, insertInFrontOf);
  66209. setInI18nBlock(true);
  66210. }
  66211. /**
  66212. * Translates a translation block marked by `i18nStart` and `i18nEnd`. It inserts the text/ICU nodes
  66213. * into the render tree, moves the placeholder nodes and removes the deleted nodes.
  66214. *
  66215. * @codeGenApi
  66216. */
  66217. function ɵɵi18nEnd() {
  66218. setInI18nBlock(false);
  66219. }
  66220. /**
  66221. *
  66222. * Use this instruction to create a translation block that doesn't contain any placeholder.
  66223. * It calls both {@link i18nStart} and {@link i18nEnd} in one instruction.
  66224. *
  66225. * The translation `message` is the value which is locale specific. The translation string may
  66226. * contain placeholders which associate inner elements and sub-templates within the translation.
  66227. *
  66228. * The translation `message` placeholders are:
  66229. * - `�{index}(:{block})�`: *Binding Placeholder*: Marks a location where an expression will be
  66230. * interpolated into. The placeholder `index` points to the expression binding index. An optional
  66231. * `block` that matches the sub-template in which it was declared.
  66232. * - `�#{index}(:{block})�`/`�/#{index}(:{block})�`: *Element Placeholder*: Marks the beginning
  66233. * and end of DOM element that were embedded in the original translation block. The placeholder
  66234. * `index` points to the element index in the template instructions set. An optional `block` that
  66235. * matches the sub-template in which it was declared.
  66236. * - `�*{index}:{block}�`/`�/*{index}:{block}�`: *Sub-template Placeholder*: Sub-templates must be
  66237. * split up and translated separately in each angular template function. The `index` points to the
  66238. * `template` instruction index. A `block` that matches the sub-template in which it was declared.
  66239. *
  66240. * @param index A unique index of the translation in the static block.
  66241. * @param messageIndex An index of the translation message from the `def.consts` array.
  66242. * @param subTemplateIndex Optional sub-template index in the `message`.
  66243. *
  66244. * @codeGenApi
  66245. */
  66246. function ɵɵi18n(index, messageIndex, subTemplateIndex) {
  66247. ɵɵi18nStart(index, messageIndex, subTemplateIndex);
  66248. ɵɵi18nEnd();
  66249. }
  66250. /**
  66251. * Marks a list of attributes as translatable.
  66252. *
  66253. * @param index A unique index in the static block
  66254. * @param values
  66255. *
  66256. * @codeGenApi
  66257. */
  66258. function ɵɵi18nAttributes(index, attrsIndex) {
  66259. const tView = getTView();
  66260. ngDevMode && assertDefined(tView, `tView should be defined`);
  66261. const attrs = getConstant(tView.consts, attrsIndex);
  66262. i18nAttributesFirstPass(tView, index + HEADER_OFFSET, attrs);
  66263. }
  66264. /**
  66265. * Stores the values of the bindings during each update cycle in order to determine if we need to
  66266. * update the translated nodes.
  66267. *
  66268. * @param value The binding's value
  66269. * @returns This function returns itself so that it may be chained
  66270. * (e.g. `i18nExp(ctx.name)(ctx.title)`)
  66271. *
  66272. * @codeGenApi
  66273. */
  66274. function ɵɵi18nExp(value) {
  66275. const lView = getLView();
  66276. setMaskBit(bindingUpdated(lView, nextBindingIndex(), value));
  66277. return ɵɵi18nExp;
  66278. }
  66279. /**
  66280. * Updates a translation block or an i18n attribute when the bindings have changed.
  66281. *
  66282. * @param index Index of either {@link i18nStart} (translation block) or {@link i18nAttributes}
  66283. * (i18n attribute) on which it should update the content.
  66284. *
  66285. * @codeGenApi
  66286. */
  66287. function ɵɵi18nApply(index) {
  66288. applyI18n(getTView(), getLView(), index + HEADER_OFFSET);
  66289. }
  66290. /**
  66291. * Handles message string post-processing for internationalization.
  66292. *
  66293. * Handles message string post-processing by transforming it from intermediate
  66294. * format (that might contain some markers that we need to replace) to the final
  66295. * form, consumable by i18nStart instruction. Post processing steps include:
  66296. *
  66297. * 1. Resolve all multi-value cases (like [�*1:1��#2:1�|�#4:1�|�5�])
  66298. * 2. Replace all ICU vars (like "VAR_PLURAL")
  66299. * 3. Replace all placeholders used inside ICUs in a form of {PLACEHOLDER}
  66300. * 4. Replace all ICU references with corresponding values (like �ICU_EXP_ICU_1�)
  66301. * in case multiple ICUs have the same placeholder name
  66302. *
  66303. * @param message Raw translation string for post processing
  66304. * @param replacements Set of replacements that should be applied
  66305. *
  66306. * @returns Transformed string that can be consumed by i18nStart instruction
  66307. *
  66308. * @codeGenApi
  66309. */
  66310. function ɵɵi18nPostprocess(message, replacements = {}) {
  66311. return i18nPostprocess(message, replacements);
  66312. }
  66313. /**
  66314. * @license
  66315. * Copyright Google LLC All Rights Reserved.
  66316. *
  66317. * Use of this source code is governed by an MIT-style license that can be
  66318. * found in the LICENSE file at https://angular.io/license
  66319. */
  66320. /**
  66321. * @license
  66322. * Copyright Google LLC All Rights Reserved.
  66323. *
  66324. * Use of this source code is governed by an MIT-style license that can be
  66325. * found in the LICENSE file at https://angular.io/license
  66326. */
  66327. /**
  66328. * Resolves the providers which are defined in the DirectiveDef.
  66329. *
  66330. * When inserting the tokens and the factories in their respective arrays, we can assume that
  66331. * this method is called first for the component (if any), and then for other directives on the same
  66332. * node.
  66333. * As a consequence,the providers are always processed in that order:
  66334. * 1) The view providers of the component
  66335. * 2) The providers of the component
  66336. * 3) The providers of the other directives
  66337. * This matches the structure of the injectables arrays of a view (for each node).
  66338. * So the tokens and the factories can be pushed at the end of the arrays, except
  66339. * in one case for multi providers.
  66340. *
  66341. * @param def the directive definition
  66342. * @param providers: Array of `providers`.
  66343. * @param viewProviders: Array of `viewProviders`.
  66344. */
  66345. function providersResolver(def, providers, viewProviders) {
  66346. const tView = getTView();
  66347. if (tView.firstCreatePass) {
  66348. const isComponent = isComponentDef(def);
  66349. // The list of view providers is processed first, and the flags are updated
  66350. resolveProvider$1(viewProviders, tView.data, tView.blueprint, isComponent, true);
  66351. // Then, the list of providers is processed, and the flags are updated
  66352. resolveProvider$1(providers, tView.data, tView.blueprint, isComponent, false);
  66353. }
  66354. }
  66355. /**
  66356. * Resolves a provider and publishes it to the DI system.
  66357. */
  66358. function resolveProvider$1(provider, tInjectables, lInjectablesBlueprint, isComponent, isViewProvider) {
  66359. provider = resolveForwardRef(provider);
  66360. if (Array.isArray(provider)) {
  66361. // Recursively call `resolveProvider`
  66362. // Recursion is OK in this case because this code will not be in hot-path once we implement
  66363. // cloning of the initial state.
  66364. for (let i = 0; i < provider.length; i++) {
  66365. resolveProvider$1(provider[i], tInjectables, lInjectablesBlueprint, isComponent, isViewProvider);
  66366. }
  66367. }
  66368. else {
  66369. const tView = getTView();
  66370. const lView = getLView();
  66371. let token = isTypeProvider(provider) ? provider : resolveForwardRef(provider.provide);
  66372. let providerFactory = providerToFactory(provider);
  66373. const tNode = getCurrentTNode();
  66374. const beginIndex = tNode.providerIndexes & 1048575 /* ProvidersStartIndexMask */;
  66375. const endIndex = tNode.directiveStart;
  66376. const cptViewProvidersCount = tNode.providerIndexes >> 20 /* CptViewProvidersCountShift */;
  66377. if (isTypeProvider(provider) || !provider.multi) {
  66378. // Single provider case: the factory is created and pushed immediately
  66379. const factory = new NodeInjectorFactory(providerFactory, isViewProvider, ɵɵdirectiveInject);
  66380. const existingFactoryIndex = indexOf(token, tInjectables, isViewProvider ? beginIndex : beginIndex + cptViewProvidersCount, endIndex);
  66381. if (existingFactoryIndex === -1) {
  66382. diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);
  66383. registerDestroyHooksIfSupported(tView, provider, tInjectables.length);
  66384. tInjectables.push(token);
  66385. tNode.directiveStart++;
  66386. tNode.directiveEnd++;
  66387. if (isViewProvider) {
  66388. tNode.providerIndexes += 1048576 /* CptViewProvidersCountShifter */;
  66389. }
  66390. lInjectablesBlueprint.push(factory);
  66391. lView.push(factory);
  66392. }
  66393. else {
  66394. lInjectablesBlueprint[existingFactoryIndex] = factory;
  66395. lView[existingFactoryIndex] = factory;
  66396. }
  66397. }
  66398. else {
  66399. // Multi provider case:
  66400. // We create a multi factory which is going to aggregate all the values.
  66401. // Since the output of such a factory depends on content or view injection,
  66402. // we create two of them, which are linked together.
  66403. //
  66404. // The first one (for view providers) is always in the first block of the injectables array,
  66405. // and the second one (for providers) is always in the second block.
  66406. // This is important because view providers have higher priority. When a multi token
  66407. // is being looked up, the view providers should be found first.
  66408. // Note that it is not possible to have a multi factory in the third block (directive block).
  66409. //
  66410. // The algorithm to process multi providers is as follows:
  66411. // 1) If the multi provider comes from the `viewProviders` of the component:
  66412. // a) If the special view providers factory doesn't exist, it is created and pushed.
  66413. // b) Else, the multi provider is added to the existing multi factory.
  66414. // 2) If the multi provider comes from the `providers` of the component or of another
  66415. // directive:
  66416. // a) If the multi factory doesn't exist, it is created and provider pushed into it.
  66417. // It is also linked to the multi factory for view providers, if it exists.
  66418. // b) Else, the multi provider is added to the existing multi factory.
  66419. const existingProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex + cptViewProvidersCount, endIndex);
  66420. const existingViewProvidersFactoryIndex = indexOf(token, tInjectables, beginIndex, beginIndex + cptViewProvidersCount);
  66421. const doesProvidersFactoryExist = existingProvidersFactoryIndex >= 0 &&
  66422. lInjectablesBlueprint[existingProvidersFactoryIndex];
  66423. const doesViewProvidersFactoryExist = existingViewProvidersFactoryIndex >= 0 &&
  66424. lInjectablesBlueprint[existingViewProvidersFactoryIndex];
  66425. if (isViewProvider && !doesViewProvidersFactoryExist ||
  66426. !isViewProvider && !doesProvidersFactoryExist) {
  66427. // Cases 1.a and 2.a
  66428. diPublicInInjector(getOrCreateNodeInjectorForNode(tNode, lView), tView, token);
  66429. const factory = multiFactory(isViewProvider ? multiViewProvidersFactoryResolver : multiProvidersFactoryResolver, lInjectablesBlueprint.length, isViewProvider, isComponent, providerFactory);
  66430. if (!isViewProvider && doesViewProvidersFactoryExist) {
  66431. lInjectablesBlueprint[existingViewProvidersFactoryIndex].providerFactory = factory;
  66432. }
  66433. registerDestroyHooksIfSupported(tView, provider, tInjectables.length, 0);
  66434. tInjectables.push(token);
  66435. tNode.directiveStart++;
  66436. tNode.directiveEnd++;
  66437. if (isViewProvider) {
  66438. tNode.providerIndexes += 1048576 /* CptViewProvidersCountShifter */;
  66439. }
  66440. lInjectablesBlueprint.push(factory);
  66441. lView.push(factory);
  66442. }
  66443. else {
  66444. // Cases 1.b and 2.b
  66445. const indexInFactory = multiFactoryAdd(lInjectablesBlueprint[isViewProvider ? existingViewProvidersFactoryIndex :
  66446. existingProvidersFactoryIndex], providerFactory, !isViewProvider && isComponent);
  66447. registerDestroyHooksIfSupported(tView, provider, existingProvidersFactoryIndex > -1 ? existingProvidersFactoryIndex :
  66448. existingViewProvidersFactoryIndex, indexInFactory);
  66449. }
  66450. if (!isViewProvider && isComponent && doesViewProvidersFactoryExist) {
  66451. lInjectablesBlueprint[existingViewProvidersFactoryIndex].componentProviders++;
  66452. }
  66453. }
  66454. }
  66455. }
  66456. /**
  66457. * Registers the `ngOnDestroy` hook of a provider, if the provider supports destroy hooks.
  66458. * @param tView `TView` in which to register the hook.
  66459. * @param provider Provider whose hook should be registered.
  66460. * @param contextIndex Index under which to find the context for the hook when it's being invoked.
  66461. * @param indexInFactory Only required for `multi` providers. Index of the provider in the multi
  66462. * provider factory.
  66463. */
  66464. function registerDestroyHooksIfSupported(tView, provider, contextIndex, indexInFactory) {
  66465. const providerIsTypeProvider = isTypeProvider(provider);
  66466. if (providerIsTypeProvider || isClassProvider(provider)) {
  66467. const prototype = (provider.useClass || provider).prototype;
  66468. const ngOnDestroy = prototype.ngOnDestroy;
  66469. if (ngOnDestroy) {
  66470. const hooks = tView.destroyHooks || (tView.destroyHooks = []);
  66471. if (!providerIsTypeProvider && provider.multi) {
  66472. ngDevMode &&
  66473. assertDefined(indexInFactory, 'indexInFactory when registering multi factory destroy hook');
  66474. const existingCallbacksIndex = hooks.indexOf(contextIndex);
  66475. if (existingCallbacksIndex === -1) {
  66476. hooks.push(contextIndex, [indexInFactory, ngOnDestroy]);
  66477. }
  66478. else {
  66479. hooks[existingCallbacksIndex + 1].push(indexInFactory, ngOnDestroy);
  66480. }
  66481. }
  66482. else {
  66483. hooks.push(contextIndex, ngOnDestroy);
  66484. }
  66485. }
  66486. }
  66487. }
  66488. /**
  66489. * Add a factory in a multi factory.
  66490. * @returns Index at which the factory was inserted.
  66491. */
  66492. function multiFactoryAdd(multiFactory, factory, isComponentProvider) {
  66493. if (isComponentProvider) {
  66494. multiFactory.componentProviders++;
  66495. }
  66496. return multiFactory.multi.push(factory) - 1;
  66497. }
  66498. /**
  66499. * Returns the index of item in the array, but only in the begin to end range.
  66500. */
  66501. function indexOf(item, arr, begin, end) {
  66502. for (let i = begin; i < end; i++) {
  66503. if (arr[i] === item)
  66504. return i;
  66505. }
  66506. return -1;
  66507. }
  66508. /**
  66509. * Use this with `multi` `providers`.
  66510. */
  66511. function multiProvidersFactoryResolver(_, tData, lData, tNode) {
  66512. return multiResolve(this.multi, []);
  66513. }
  66514. /**
  66515. * Use this with `multi` `viewProviders`.
  66516. *
  66517. * This factory knows how to concatenate itself with the existing `multi` `providers`.
  66518. */
  66519. function multiViewProvidersFactoryResolver(_, tData, lView, tNode) {
  66520. const factories = this.multi;
  66521. let result;
  66522. if (this.providerFactory) {
  66523. const componentCount = this.providerFactory.componentProviders;
  66524. const multiProviders = getNodeInjectable(lView, lView[TVIEW], this.providerFactory.index, tNode);
  66525. // Copy the section of the array which contains `multi` `providers` from the component
  66526. result = multiProviders.slice(0, componentCount);
  66527. // Insert the `viewProvider` instances.
  66528. multiResolve(factories, result);
  66529. // Copy the section of the array which contains `multi` `providers` from other directives
  66530. for (let i = componentCount; i < multiProviders.length; i++) {
  66531. result.push(multiProviders[i]);
  66532. }
  66533. }
  66534. else {
  66535. result = [];
  66536. // Insert the `viewProvider` instances.
  66537. multiResolve(factories, result);
  66538. }
  66539. return result;
  66540. }
  66541. /**
  66542. * Maps an array of factories into an array of values.
  66543. */
  66544. function multiResolve(factories, result) {
  66545. for (let i = 0; i < factories.length; i++) {
  66546. const factory = factories[i];
  66547. result.push(factory());
  66548. }
  66549. return result;
  66550. }
  66551. /**
  66552. * Creates a multi factory.
  66553. */
  66554. function multiFactory(factoryFn, index, isViewProvider, isComponent, f) {
  66555. const factory = new NodeInjectorFactory(factoryFn, isViewProvider, ɵɵdirectiveInject);
  66556. factory.multi = [];
  66557. factory.index = index;
  66558. factory.componentProviders = 0;
  66559. multiFactoryAdd(factory, f, isComponent && !isViewProvider);
  66560. return factory;
  66561. }
  66562. /**
  66563. * This feature resolves the providers of a directive (or component),
  66564. * and publish them into the DI system, making it visible to others for injection.
  66565. *
  66566. * For example:
  66567. * ```ts
  66568. * class ComponentWithProviders {
  66569. * constructor(private greeter: GreeterDE) {}
  66570. *
  66571. * static ɵcmp = defineComponent({
  66572. * type: ComponentWithProviders,
  66573. * selectors: [['component-with-providers']],
  66574. * factory: () => new ComponentWithProviders(directiveInject(GreeterDE as any)),
  66575. * decls: 1,
  66576. * vars: 1,
  66577. * template: function(fs: RenderFlags, ctx: ComponentWithProviders) {
  66578. * if (fs & RenderFlags.Create) {
  66579. * ɵɵtext(0);
  66580. * }
  66581. * if (fs & RenderFlags.Update) {
  66582. * ɵɵtextInterpolate(ctx.greeter.greet());
  66583. * }
  66584. * },
  66585. * features: [ɵɵProvidersFeature([GreeterDE])]
  66586. * });
  66587. * }
  66588. * ```
  66589. *
  66590. * @param definition
  66591. *
  66592. * @codeGenApi
  66593. */
  66594. function ɵɵProvidersFeature(providers, viewProviders = []) {
  66595. return (definition) => {
  66596. definition.providersResolver =
  66597. (def, processProvidersFn) => {
  66598. return providersResolver(def, //
  66599. processProvidersFn ? processProvidersFn(providers) : providers, //
  66600. viewProviders);
  66601. };
  66602. };
  66603. }
  66604. /**
  66605. * @license
  66606. * Copyright Google LLC All Rights Reserved.
  66607. *
  66608. * Use of this source code is governed by an MIT-style license that can be
  66609. * found in the LICENSE file at https://angular.io/license
  66610. */
  66611. /**
  66612. * Represents a component created by a `ComponentFactory`.
  66613. * Provides access to the component instance and related objects,
  66614. * and provides the means of destroying the instance.
  66615. *
  66616. * @publicApi
  66617. */
  66618. class ComponentRef {
  66619. }
  66620. /**
  66621. * Base class for a factory that can create a component dynamically.
  66622. * Instantiate a factory for a given type of component with `resolveComponentFactory()`.
  66623. * Use the resulting `ComponentFactory.create()` method to create a component of that type.
  66624. *
  66625. * @see [Dynamic Components](guide/dynamic-component-loader)
  66626. *
  66627. * @publicApi
  66628. */
  66629. class ComponentFactory {
  66630. }
  66631. /**
  66632. * @license
  66633. * Copyright Google LLC All Rights Reserved.
  66634. *
  66635. * Use of this source code is governed by an MIT-style license that can be
  66636. * found in the LICENSE file at https://angular.io/license
  66637. */
  66638. function noComponentFactoryError(component) {
  66639. const error = Error(`No component factory found for ${stringify(component)}. Did you add it to @NgModule.entryComponents?`);
  66640. error[ERROR_COMPONENT] = component;
  66641. return error;
  66642. }
  66643. const ERROR_COMPONENT = 'ngComponent';
  66644. function getComponent$1(error) {
  66645. return error[ERROR_COMPONENT];
  66646. }
  66647. class _NullComponentFactoryResolver {
  66648. resolveComponentFactory(component) {
  66649. throw noComponentFactoryError(component);
  66650. }
  66651. }
  66652. /**
  66653. * A simple registry that maps `Components` to generated `ComponentFactory` classes
  66654. * that can be used to create instances of components.
  66655. * Use to obtain the factory for a given component type,
  66656. * then use the factory's `create()` method to create a component of that type.
  66657. *
  66658. * @see [Dynamic Components](guide/dynamic-component-loader)
  66659. * @publicApi
  66660. */
  66661. class ComponentFactoryResolver {
  66662. }
  66663. ComponentFactoryResolver.NULL = new _NullComponentFactoryResolver();
  66664. class CodegenComponentFactoryResolver {
  66665. constructor(factories, _parent, _ngModule) {
  66666. this._parent = _parent;
  66667. this._ngModule = _ngModule;
  66668. this._factories = new Map();
  66669. for (let i = 0; i < factories.length; i++) {
  66670. const factory = factories[i];
  66671. this._factories.set(factory.componentType, factory);
  66672. }
  66673. }
  66674. resolveComponentFactory(component) {
  66675. let factory = this._factories.get(component);
  66676. if (!factory && this._parent) {
  66677. factory = this._parent.resolveComponentFactory(component);
  66678. }
  66679. if (!factory) {
  66680. throw noComponentFactoryError(component);
  66681. }
  66682. return new ComponentFactoryBoundToModule(factory, this._ngModule);
  66683. }
  66684. }
  66685. class ComponentFactoryBoundToModule extends ComponentFactory {
  66686. constructor(factory, ngModule) {
  66687. super();
  66688. this.factory = factory;
  66689. this.ngModule = ngModule;
  66690. this.selector = factory.selector;
  66691. this.componentType = factory.componentType;
  66692. this.ngContentSelectors = factory.ngContentSelectors;
  66693. this.inputs = factory.inputs;
  66694. this.outputs = factory.outputs;
  66695. }
  66696. create(injector, projectableNodes, rootSelectorOrNode, ngModule) {
  66697. return this.factory.create(injector, projectableNodes, rootSelectorOrNode, ngModule || this.ngModule);
  66698. }
  66699. }
  66700. /**
  66701. * @license
  66702. * Copyright Google LLC All Rights Reserved.
  66703. *
  66704. * Use of this source code is governed by an MIT-style license that can be
  66705. * found in the LICENSE file at https://angular.io/license
  66706. */
  66707. function noop(...args) {
  66708. // Do nothing.
  66709. }
  66710. /**
  66711. * @license
  66712. * Copyright Google LLC All Rights Reserved.
  66713. *
  66714. * Use of this source code is governed by an MIT-style license that can be
  66715. * found in the LICENSE file at https://angular.io/license
  66716. */
  66717. /**
  66718. * Creates an ElementRef from the most recent node.
  66719. *
  66720. * @returns The ElementRef instance to use
  66721. */
  66722. function injectElementRef() {
  66723. return createElementRef(getCurrentTNode(), getLView());
  66724. }
  66725. /**
  66726. * Creates an ElementRef given a node.
  66727. *
  66728. * @param tNode The node for which you'd like an ElementRef
  66729. * @param lView The view to which the node belongs
  66730. * @returns The ElementRef instance to use
  66731. */
  66732. function createElementRef(tNode, lView) {
  66733. return new ElementRef(getNativeByTNode(tNode, lView));
  66734. }
  66735. const SWITCH_ELEMENT_REF_FACTORY__POST_R3__ = injectElementRef;
  66736. const SWITCH_ELEMENT_REF_FACTORY__PRE_R3__ = noop;
  66737. const SWITCH_ELEMENT_REF_FACTORY = SWITCH_ELEMENT_REF_FACTORY__POST_R3__;
  66738. /**
  66739. * A wrapper around a native element inside of a View.
  66740. *
  66741. * An `ElementRef` is backed by a render-specific element. In the browser, this is usually a DOM
  66742. * element.
  66743. *
  66744. * @security Permitting direct access to the DOM can make your application more vulnerable to
  66745. * XSS attacks. Carefully review any use of `ElementRef` in your code. For more detail, see the
  66746. * [Security Guide](https://g.co/ng/security).
  66747. *
  66748. * @publicApi
  66749. */
  66750. // Note: We don't expose things like `Injector`, `ViewContainer`, ... here,
  66751. // i.e. users have to ask for what they need. With that, we can build better analysis tools
  66752. // and could do better codegen in the future.
  66753. class ElementRef {
  66754. constructor(nativeElement) {
  66755. this.nativeElement = nativeElement;
  66756. }
  66757. }
  66758. /**
  66759. * @internal
  66760. * @nocollapse
  66761. */
  66762. ElementRef.__NG_ELEMENT_ID__ = SWITCH_ELEMENT_REF_FACTORY;
  66763. /**
  66764. * @license
  66765. * Copyright Google LLC All Rights Reserved.
  66766. *
  66767. * Use of this source code is governed by an MIT-style license that can be
  66768. * found in the LICENSE file at https://angular.io/license
  66769. */
  66770. const Renderer2Interceptor = new InjectionToken('Renderer2Interceptor');
  66771. /**
  66772. * Creates and initializes a custom renderer that implements the `Renderer2` base class.
  66773. *
  66774. * @publicApi
  66775. */
  66776. class RendererFactory2 {
  66777. }
  66778. /**
  66779. * Extend this base class to implement custom rendering. By default, Angular
  66780. * renders a template into DOM. You can use custom rendering to intercept
  66781. * rendering calls, or to render to something other than DOM.
  66782. *
  66783. * Create your custom renderer using `RendererFactory2`.
  66784. *
  66785. * Use a custom renderer to bypass Angular's templating and
  66786. * make custom UI changes that can't be expressed declaratively.
  66787. * For example if you need to set a property or an attribute whose name is
  66788. * not statically known, use the `setProperty()` or
  66789. * `setAttribute()` method.
  66790. *
  66791. * @publicApi
  66792. */
  66793. class Renderer2 {
  66794. }
  66795. /**
  66796. * @internal
  66797. * @nocollapse
  66798. */
  66799. Renderer2.__NG_ELEMENT_ID__ = () => SWITCH_RENDERER2_FACTORY();
  66800. const SWITCH_RENDERER2_FACTORY__POST_R3__ = injectRenderer2;
  66801. const SWITCH_RENDERER2_FACTORY__PRE_R3__ = noop;
  66802. const SWITCH_RENDERER2_FACTORY = SWITCH_RENDERER2_FACTORY__POST_R3__;
  66803. /** Returns a Renderer2 (or throws when application was bootstrapped with Renderer3) */
  66804. function getOrCreateRenderer2(lView) {
  66805. const renderer = lView[RENDERER];
  66806. if (ngDevMode && !isProceduralRenderer(renderer)) {
  66807. throw new Error('Cannot inject Renderer2 when the application uses Renderer3!');
  66808. }
  66809. return renderer;
  66810. }
  66811. /** Injects a Renderer2 for the current component. */
  66812. function injectRenderer2() {
  66813. // We need the Renderer to be based on the component that it's being injected into, however since
  66814. // DI happens before we've entered its view, `getLView` will return the parent view instead.
  66815. const lView = getLView();
  66816. const tNode = getCurrentTNode();
  66817. const nodeAtIndex = getComponentLViewByIndex(tNode.index, lView);
  66818. return getOrCreateRenderer2(isLView(nodeAtIndex) ? nodeAtIndex : lView);
  66819. }
  66820. /**
  66821. * @license
  66822. * Copyright Google LLC All Rights Reserved.
  66823. *
  66824. * Use of this source code is governed by an MIT-style license that can be
  66825. * found in the LICENSE file at https://angular.io/license
  66826. */
  66827. /**
  66828. * Sanitizer is used by the views to sanitize potentially dangerous values.
  66829. *
  66830. * @publicApi
  66831. */
  66832. class Sanitizer {
  66833. }
  66834. /** @nocollapse */
  66835. Sanitizer.ɵprov = ɵɵdefineInjectable({
  66836. token: Sanitizer,
  66837. providedIn: 'root',
  66838. factory: () => null,
  66839. });
  66840. /**
  66841. * @license
  66842. * Copyright Google LLC All Rights Reserved.
  66843. *
  66844. * Use of this source code is governed by an MIT-style license that can be
  66845. * found in the LICENSE file at https://angular.io/license
  66846. */
  66847. /**
  66848. * @description Represents the version of Angular
  66849. *
  66850. * @publicApi
  66851. */
  66852. class Version {
  66853. constructor(full) {
  66854. this.full = full;
  66855. this.major = full.split('.')[0];
  66856. this.minor = full.split('.')[1];
  66857. this.patch = full.split('.').slice(2).join('.');
  66858. }
  66859. }
  66860. /**
  66861. * @publicApi
  66862. */
  66863. const VERSION = new Version('11.0.4');
  66864. /**
  66865. * @license
  66866. * Copyright Google LLC All Rights Reserved.
  66867. *
  66868. * Use of this source code is governed by an MIT-style license that can be
  66869. * found in the LICENSE file at https://angular.io/license
  66870. */
  66871. class DefaultIterableDifferFactory {
  66872. constructor() { }
  66873. supports(obj) {
  66874. return isListLikeIterable(obj);
  66875. }
  66876. create(trackByFn) {
  66877. return new DefaultIterableDiffer(trackByFn);
  66878. }
  66879. }
  66880. const trackByIdentity = (index, item) => item;
  66881. const ɵ0$b = trackByIdentity;
  66882. /**
  66883. * @deprecated v4.0.0 - Should not be part of public API.
  66884. * @publicApi
  66885. */
  66886. class DefaultIterableDiffer {
  66887. constructor(trackByFn) {
  66888. this.length = 0;
  66889. // Keeps track of the used records at any point in time (during & across `_check()` calls)
  66890. this._linkedRecords = null;
  66891. // Keeps track of the removed records at any point in time during `_check()` calls.
  66892. this._unlinkedRecords = null;
  66893. this._previousItHead = null;
  66894. this._itHead = null;
  66895. this._itTail = null;
  66896. this._additionsHead = null;
  66897. this._additionsTail = null;
  66898. this._movesHead = null;
  66899. this._movesTail = null;
  66900. this._removalsHead = null;
  66901. this._removalsTail = null;
  66902. // Keeps track of records where custom track by is the same, but item identity has changed
  66903. this._identityChangesHead = null;
  66904. this._identityChangesTail = null;
  66905. this._trackByFn = trackByFn || trackByIdentity;
  66906. }
  66907. forEachItem(fn) {
  66908. let record;
  66909. for (record = this._itHead; record !== null; record = record._next) {
  66910. fn(record);
  66911. }
  66912. }
  66913. forEachOperation(fn) {
  66914. let nextIt = this._itHead;
  66915. let nextRemove = this._removalsHead;
  66916. let addRemoveOffset = 0;
  66917. let moveOffsets = null;
  66918. while (nextIt || nextRemove) {
  66919. // Figure out which is the next record to process
  66920. // Order: remove, add, move
  66921. const record = !nextRemove ||
  66922. nextIt &&
  66923. nextIt.currentIndex <
  66924. getPreviousIndex(nextRemove, addRemoveOffset, moveOffsets) ?
  66925. nextIt :
  66926. nextRemove;
  66927. const adjPreviousIndex = getPreviousIndex(record, addRemoveOffset, moveOffsets);
  66928. const currentIndex = record.currentIndex;
  66929. // consume the item, and adjust the addRemoveOffset and update moveDistance if necessary
  66930. if (record === nextRemove) {
  66931. addRemoveOffset--;
  66932. nextRemove = nextRemove._nextRemoved;
  66933. }
  66934. else {
  66935. nextIt = nextIt._next;
  66936. if (record.previousIndex == null) {
  66937. addRemoveOffset++;
  66938. }
  66939. else {
  66940. // INVARIANT: currentIndex < previousIndex
  66941. if (!moveOffsets)
  66942. moveOffsets = [];
  66943. const localMovePreviousIndex = adjPreviousIndex - addRemoveOffset;
  66944. const localCurrentIndex = currentIndex - addRemoveOffset;
  66945. if (localMovePreviousIndex != localCurrentIndex) {
  66946. for (let i = 0; i < localMovePreviousIndex; i++) {
  66947. const offset = i < moveOffsets.length ? moveOffsets[i] : (moveOffsets[i] = 0);
  66948. const index = offset + i;
  66949. if (localCurrentIndex <= index && index < localMovePreviousIndex) {
  66950. moveOffsets[i] = offset + 1;
  66951. }
  66952. }
  66953. const previousIndex = record.previousIndex;
  66954. moveOffsets[previousIndex] = localCurrentIndex - localMovePreviousIndex;
  66955. }
  66956. }
  66957. }
  66958. if (adjPreviousIndex !== currentIndex) {
  66959. fn(record, adjPreviousIndex, currentIndex);
  66960. }
  66961. }
  66962. }
  66963. forEachPreviousItem(fn) {
  66964. let record;
  66965. for (record = this._previousItHead; record !== null; record = record._nextPrevious) {
  66966. fn(record);
  66967. }
  66968. }
  66969. forEachAddedItem(fn) {
  66970. let record;
  66971. for (record = this._additionsHead; record !== null; record = record._nextAdded) {
  66972. fn(record);
  66973. }
  66974. }
  66975. forEachMovedItem(fn) {
  66976. let record;
  66977. for (record = this._movesHead; record !== null; record = record._nextMoved) {
  66978. fn(record);
  66979. }
  66980. }
  66981. forEachRemovedItem(fn) {
  66982. let record;
  66983. for (record = this._removalsHead; record !== null; record = record._nextRemoved) {
  66984. fn(record);
  66985. }
  66986. }
  66987. forEachIdentityChange(fn) {
  66988. let record;
  66989. for (record = this._identityChangesHead; record !== null; record = record._nextIdentityChange) {
  66990. fn(record);
  66991. }
  66992. }
  66993. diff(collection) {
  66994. if (collection == null)
  66995. collection = [];
  66996. if (!isListLikeIterable(collection)) {
  66997. throw new Error(`Error trying to diff '${stringify(collection)}'. Only arrays and iterables are allowed`);
  66998. }
  66999. if (this.check(collection)) {
  67000. return this;
  67001. }
  67002. else {
  67003. return null;
  67004. }
  67005. }
  67006. onDestroy() { }
  67007. check(collection) {
  67008. this._reset();
  67009. let record = this._itHead;
  67010. let mayBeDirty = false;
  67011. let index;
  67012. let item;
  67013. let itemTrackBy;
  67014. if (Array.isArray(collection)) {
  67015. this.length = collection.length;
  67016. for (let index = 0; index < this.length; index++) {
  67017. item = collection[index];
  67018. itemTrackBy = this._trackByFn(index, item);
  67019. if (record === null || !Object.is(record.trackById, itemTrackBy)) {
  67020. record = this._mismatch(record, item, itemTrackBy, index);
  67021. mayBeDirty = true;
  67022. }
  67023. else {
  67024. if (mayBeDirty) {
  67025. // TODO(misko): can we limit this to duplicates only?
  67026. record = this._verifyReinsertion(record, item, itemTrackBy, index);
  67027. }
  67028. if (!Object.is(record.item, item))
  67029. this._addIdentityChange(record, item);
  67030. }
  67031. record = record._next;
  67032. }
  67033. }
  67034. else {
  67035. index = 0;
  67036. iterateListLike(collection, (item) => {
  67037. itemTrackBy = this._trackByFn(index, item);
  67038. if (record === null || !Object.is(record.trackById, itemTrackBy)) {
  67039. record = this._mismatch(record, item, itemTrackBy, index);
  67040. mayBeDirty = true;
  67041. }
  67042. else {
  67043. if (mayBeDirty) {
  67044. // TODO(misko): can we limit this to duplicates only?
  67045. record = this._verifyReinsertion(record, item, itemTrackBy, index);
  67046. }
  67047. if (!Object.is(record.item, item))
  67048. this._addIdentityChange(record, item);
  67049. }
  67050. record = record._next;
  67051. index++;
  67052. });
  67053. this.length = index;
  67054. }
  67055. this._truncate(record);
  67056. this.collection = collection;
  67057. return this.isDirty;
  67058. }
  67059. /* CollectionChanges is considered dirty if it has any additions, moves, removals, or identity
  67060. * changes.
  67061. */
  67062. get isDirty() {
  67063. return this._additionsHead !== null || this._movesHead !== null ||
  67064. this._removalsHead !== null || this._identityChangesHead !== null;
  67065. }
  67066. /**
  67067. * Reset the state of the change objects to show no changes. This means set previousKey to
  67068. * currentKey, and clear all of the queues (additions, moves, removals).
  67069. * Set the previousIndexes of moved and added items to their currentIndexes
  67070. * Reset the list of additions, moves and removals
  67071. *
  67072. * @internal
  67073. */
  67074. _reset() {
  67075. if (this.isDirty) {
  67076. let record;
  67077. for (record = this._previousItHead = this._itHead; record !== null; record = record._next) {
  67078. record._nextPrevious = record._next;
  67079. }
  67080. for (record = this._additionsHead; record !== null; record = record._nextAdded) {
  67081. record.previousIndex = record.currentIndex;
  67082. }
  67083. this._additionsHead = this._additionsTail = null;
  67084. for (record = this._movesHead; record !== null; record = record._nextMoved) {
  67085. record.previousIndex = record.currentIndex;
  67086. }
  67087. this._movesHead = this._movesTail = null;
  67088. this._removalsHead = this._removalsTail = null;
  67089. this._identityChangesHead = this._identityChangesTail = null;
  67090. // TODO(vicb): when assert gets supported
  67091. // assert(!this.isDirty);
  67092. }
  67093. }
  67094. /**
  67095. * This is the core function which handles differences between collections.
  67096. *
  67097. * - `record` is the record which we saw at this position last time. If null then it is a new
  67098. * item.
  67099. * - `item` is the current item in the collection
  67100. * - `index` is the position of the item in the collection
  67101. *
  67102. * @internal
  67103. */
  67104. _mismatch(record, item, itemTrackBy, index) {
  67105. // The previous record after which we will append the current one.
  67106. let previousRecord;
  67107. if (record === null) {
  67108. previousRecord = this._itTail;
  67109. }
  67110. else {
  67111. previousRecord = record._prev;
  67112. // Remove the record from the collection since we know it does not match the item.
  67113. this._remove(record);
  67114. }
  67115. // Attempt to see if we have seen the item before.
  67116. record = this._linkedRecords === null ? null : this._linkedRecords.get(itemTrackBy, index);
  67117. if (record !== null) {
  67118. // We have seen this before, we need to move it forward in the collection.
  67119. // But first we need to check if identity changed, so we can update in view if necessary
  67120. if (!Object.is(record.item, item))
  67121. this._addIdentityChange(record, item);
  67122. this._moveAfter(record, previousRecord, index);
  67123. }
  67124. else {
  67125. // Never seen it, check evicted list.
  67126. record = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);
  67127. if (record !== null) {
  67128. // It is an item which we have evicted earlier: reinsert it back into the list.
  67129. // But first we need to check if identity changed, so we can update in view if necessary
  67130. if (!Object.is(record.item, item))
  67131. this._addIdentityChange(record, item);
  67132. this._reinsertAfter(record, previousRecord, index);
  67133. }
  67134. else {
  67135. // It is a new item: add it.
  67136. record =
  67137. this._addAfter(new IterableChangeRecord_(item, itemTrackBy), previousRecord, index);
  67138. }
  67139. }
  67140. return record;
  67141. }
  67142. /**
  67143. * This check is only needed if an array contains duplicates. (Short circuit of nothing dirty)
  67144. *
  67145. * Use case: `[a, a]` => `[b, a, a]`
  67146. *
  67147. * If we did not have this check then the insertion of `b` would:
  67148. * 1) evict first `a`
  67149. * 2) insert `b` at `0` index.
  67150. * 3) leave `a` at index `1` as is. <-- this is wrong!
  67151. * 3) reinsert `a` at index 2. <-- this is wrong!
  67152. *
  67153. * The correct behavior is:
  67154. * 1) evict first `a`
  67155. * 2) insert `b` at `0` index.
  67156. * 3) reinsert `a` at index 1.
  67157. * 3) move `a` at from `1` to `2`.
  67158. *
  67159. *
  67160. * Double check that we have not evicted a duplicate item. We need to check if the item type may
  67161. * have already been removed:
  67162. * The insertion of b will evict the first 'a'. If we don't reinsert it now it will be reinserted
  67163. * at the end. Which will show up as the two 'a's switching position. This is incorrect, since a
  67164. * better way to think of it is as insert of 'b' rather then switch 'a' with 'b' and then add 'a'
  67165. * at the end.
  67166. *
  67167. * @internal
  67168. */
  67169. _verifyReinsertion(record, item, itemTrackBy, index) {
  67170. let reinsertRecord = this._unlinkedRecords === null ? null : this._unlinkedRecords.get(itemTrackBy, null);
  67171. if (reinsertRecord !== null) {
  67172. record = this._reinsertAfter(reinsertRecord, record._prev, index);
  67173. }
  67174. else if (record.currentIndex != index) {
  67175. record.currentIndex = index;
  67176. this._addToMoves(record, index);
  67177. }
  67178. return record;
  67179. }
  67180. /**
  67181. * Get rid of any excess {@link IterableChangeRecord_}s from the previous collection
  67182. *
  67183. * - `record` The first excess {@link IterableChangeRecord_}.
  67184. *
  67185. * @internal
  67186. */
  67187. _truncate(record) {
  67188. // Anything after that needs to be removed;
  67189. while (record !== null) {
  67190. const nextRecord = record._next;
  67191. this._addToRemovals(this._unlink(record));
  67192. record = nextRecord;
  67193. }
  67194. if (this._unlinkedRecords !== null) {
  67195. this._unlinkedRecords.clear();
  67196. }
  67197. if (this._additionsTail !== null) {
  67198. this._additionsTail._nextAdded = null;
  67199. }
  67200. if (this._movesTail !== null) {
  67201. this._movesTail._nextMoved = null;
  67202. }
  67203. if (this._itTail !== null) {
  67204. this._itTail._next = null;
  67205. }
  67206. if (this._removalsTail !== null) {
  67207. this._removalsTail._nextRemoved = null;
  67208. }
  67209. if (this._identityChangesTail !== null) {
  67210. this._identityChangesTail._nextIdentityChange = null;
  67211. }
  67212. }
  67213. /** @internal */
  67214. _reinsertAfter(record, prevRecord, index) {
  67215. if (this._unlinkedRecords !== null) {
  67216. this._unlinkedRecords.remove(record);
  67217. }
  67218. const prev = record._prevRemoved;
  67219. const next = record._nextRemoved;
  67220. if (prev === null) {
  67221. this._removalsHead = next;
  67222. }
  67223. else {
  67224. prev._nextRemoved = next;
  67225. }
  67226. if (next === null) {
  67227. this._removalsTail = prev;
  67228. }
  67229. else {
  67230. next._prevRemoved = prev;
  67231. }
  67232. this._insertAfter(record, prevRecord, index);
  67233. this._addToMoves(record, index);
  67234. return record;
  67235. }
  67236. /** @internal */
  67237. _moveAfter(record, prevRecord, index) {
  67238. this._unlink(record);
  67239. this._insertAfter(record, prevRecord, index);
  67240. this._addToMoves(record, index);
  67241. return record;
  67242. }
  67243. /** @internal */
  67244. _addAfter(record, prevRecord, index) {
  67245. this._insertAfter(record, prevRecord, index);
  67246. if (this._additionsTail === null) {
  67247. // TODO(vicb):
  67248. // assert(this._additionsHead === null);
  67249. this._additionsTail = this._additionsHead = record;
  67250. }
  67251. else {
  67252. // TODO(vicb):
  67253. // assert(_additionsTail._nextAdded === null);
  67254. // assert(record._nextAdded === null);
  67255. this._additionsTail = this._additionsTail._nextAdded = record;
  67256. }
  67257. return record;
  67258. }
  67259. /** @internal */
  67260. _insertAfter(record, prevRecord, index) {
  67261. // TODO(vicb):
  67262. // assert(record != prevRecord);
  67263. // assert(record._next === null);
  67264. // assert(record._prev === null);
  67265. const next = prevRecord === null ? this._itHead : prevRecord._next;
  67266. // TODO(vicb):
  67267. // assert(next != record);
  67268. // assert(prevRecord != record);
  67269. record._next = next;
  67270. record._prev = prevRecord;
  67271. if (next === null) {
  67272. this._itTail = record;
  67273. }
  67274. else {
  67275. next._prev = record;
  67276. }
  67277. if (prevRecord === null) {
  67278. this._itHead = record;
  67279. }
  67280. else {
  67281. prevRecord._next = record;
  67282. }
  67283. if (this._linkedRecords === null) {
  67284. this._linkedRecords = new _DuplicateMap();
  67285. }
  67286. this._linkedRecords.put(record);
  67287. record.currentIndex = index;
  67288. return record;
  67289. }
  67290. /** @internal */
  67291. _remove(record) {
  67292. return this._addToRemovals(this._unlink(record));
  67293. }
  67294. /** @internal */
  67295. _unlink(record) {
  67296. if (this._linkedRecords !== null) {
  67297. this._linkedRecords.remove(record);
  67298. }
  67299. const prev = record._prev;
  67300. const next = record._next;
  67301. // TODO(vicb):
  67302. // assert((record._prev = null) === null);
  67303. // assert((record._next = null) === null);
  67304. if (prev === null) {
  67305. this._itHead = next;
  67306. }
  67307. else {
  67308. prev._next = next;
  67309. }
  67310. if (next === null) {
  67311. this._itTail = prev;
  67312. }
  67313. else {
  67314. next._prev = prev;
  67315. }
  67316. return record;
  67317. }
  67318. /** @internal */
  67319. _addToMoves(record, toIndex) {
  67320. // TODO(vicb):
  67321. // assert(record._nextMoved === null);
  67322. if (record.previousIndex === toIndex) {
  67323. return record;
  67324. }
  67325. if (this._movesTail === null) {
  67326. // TODO(vicb):
  67327. // assert(_movesHead === null);
  67328. this._movesTail = this._movesHead = record;
  67329. }
  67330. else {
  67331. // TODO(vicb):
  67332. // assert(_movesTail._nextMoved === null);
  67333. this._movesTail = this._movesTail._nextMoved = record;
  67334. }
  67335. return record;
  67336. }
  67337. _addToRemovals(record) {
  67338. if (this._unlinkedRecords === null) {
  67339. this._unlinkedRecords = new _DuplicateMap();
  67340. }
  67341. this._unlinkedRecords.put(record);
  67342. record.currentIndex = null;
  67343. record._nextRemoved = null;
  67344. if (this._removalsTail === null) {
  67345. // TODO(vicb):
  67346. // assert(_removalsHead === null);
  67347. this._removalsTail = this._removalsHead = record;
  67348. record._prevRemoved = null;
  67349. }
  67350. else {
  67351. // TODO(vicb):
  67352. // assert(_removalsTail._nextRemoved === null);
  67353. // assert(record._nextRemoved === null);
  67354. record._prevRemoved = this._removalsTail;
  67355. this._removalsTail = this._removalsTail._nextRemoved = record;
  67356. }
  67357. return record;
  67358. }
  67359. /** @internal */
  67360. _addIdentityChange(record, item) {
  67361. record.item = item;
  67362. if (this._identityChangesTail === null) {
  67363. this._identityChangesTail = this._identityChangesHead = record;
  67364. }
  67365. else {
  67366. this._identityChangesTail = this._identityChangesTail._nextIdentityChange = record;
  67367. }
  67368. return record;
  67369. }
  67370. }
  67371. class IterableChangeRecord_ {
  67372. constructor(item, trackById) {
  67373. this.item = item;
  67374. this.trackById = trackById;
  67375. this.currentIndex = null;
  67376. this.previousIndex = null;
  67377. /** @internal */
  67378. this._nextPrevious = null;
  67379. /** @internal */
  67380. this._prev = null;
  67381. /** @internal */
  67382. this._next = null;
  67383. /** @internal */
  67384. this._prevDup = null;
  67385. /** @internal */
  67386. this._nextDup = null;
  67387. /** @internal */
  67388. this._prevRemoved = null;
  67389. /** @internal */
  67390. this._nextRemoved = null;
  67391. /** @internal */
  67392. this._nextAdded = null;
  67393. /** @internal */
  67394. this._nextMoved = null;
  67395. /** @internal */
  67396. this._nextIdentityChange = null;
  67397. }
  67398. }
  67399. // A linked list of IterableChangeRecords with the same IterableChangeRecord_.item
  67400. class _DuplicateItemRecordList {
  67401. constructor() {
  67402. /** @internal */
  67403. this._head = null;
  67404. /** @internal */
  67405. this._tail = null;
  67406. }
  67407. /**
  67408. * Append the record to the list of duplicates.
  67409. *
  67410. * Note: by design all records in the list of duplicates hold the same value in record.item.
  67411. */
  67412. add(record) {
  67413. if (this._head === null) {
  67414. this._head = this._tail = record;
  67415. record._nextDup = null;
  67416. record._prevDup = null;
  67417. }
  67418. else {
  67419. // TODO(vicb):
  67420. // assert(record.item == _head.item ||
  67421. // record.item is num && record.item.isNaN && _head.item is num && _head.item.isNaN);
  67422. this._tail._nextDup = record;
  67423. record._prevDup = this._tail;
  67424. record._nextDup = null;
  67425. this._tail = record;
  67426. }
  67427. }
  67428. // Returns a IterableChangeRecord_ having IterableChangeRecord_.trackById == trackById and
  67429. // IterableChangeRecord_.currentIndex >= atOrAfterIndex
  67430. get(trackById, atOrAfterIndex) {
  67431. let record;
  67432. for (record = this._head; record !== null; record = record._nextDup) {
  67433. if ((atOrAfterIndex === null || atOrAfterIndex <= record.currentIndex) &&
  67434. Object.is(record.trackById, trackById)) {
  67435. return record;
  67436. }
  67437. }
  67438. return null;
  67439. }
  67440. /**
  67441. * Remove one {@link IterableChangeRecord_} from the list of duplicates.
  67442. *
  67443. * Returns whether the list of duplicates is empty.
  67444. */
  67445. remove(record) {
  67446. // TODO(vicb):
  67447. // assert(() {
  67448. // // verify that the record being removed is in the list.
  67449. // for (IterableChangeRecord_ cursor = _head; cursor != null; cursor = cursor._nextDup) {
  67450. // if (identical(cursor, record)) return true;
  67451. // }
  67452. // return false;
  67453. //});
  67454. const prev = record._prevDup;
  67455. const next = record._nextDup;
  67456. if (prev === null) {
  67457. this._head = next;
  67458. }
  67459. else {
  67460. prev._nextDup = next;
  67461. }
  67462. if (next === null) {
  67463. this._tail = prev;
  67464. }
  67465. else {
  67466. next._prevDup = prev;
  67467. }
  67468. return this._head === null;
  67469. }
  67470. }
  67471. class _DuplicateMap {
  67472. constructor() {
  67473. this.map = new Map();
  67474. }
  67475. put(record) {
  67476. const key = record.trackById;
  67477. let duplicates = this.map.get(key);
  67478. if (!duplicates) {
  67479. duplicates = new _DuplicateItemRecordList();
  67480. this.map.set(key, duplicates);
  67481. }
  67482. duplicates.add(record);
  67483. }
  67484. /**
  67485. * Retrieve the `value` using key. Because the IterableChangeRecord_ value may be one which we
  67486. * have already iterated over, we use the `atOrAfterIndex` to pretend it is not there.
  67487. *
  67488. * Use case: `[a, b, c, a, a]` if we are at index `3` which is the second `a` then asking if we
  67489. * have any more `a`s needs to return the second `a`.
  67490. */
  67491. get(trackById, atOrAfterIndex) {
  67492. const key = trackById;
  67493. const recordList = this.map.get(key);
  67494. return recordList ? recordList.get(trackById, atOrAfterIndex) : null;
  67495. }
  67496. /**
  67497. * Removes a {@link IterableChangeRecord_} from the list of duplicates.
  67498. *
  67499. * The list of duplicates also is removed from the map if it gets empty.
  67500. */
  67501. remove(record) {
  67502. const key = record.trackById;
  67503. const recordList = this.map.get(key);
  67504. // Remove the list of duplicates when it gets empty
  67505. if (recordList.remove(record)) {
  67506. this.map.delete(key);
  67507. }
  67508. return record;
  67509. }
  67510. get isEmpty() {
  67511. return this.map.size === 0;
  67512. }
  67513. clear() {
  67514. this.map.clear();
  67515. }
  67516. }
  67517. function getPreviousIndex(item, addRemoveOffset, moveOffsets) {
  67518. const previousIndex = item.previousIndex;
  67519. if (previousIndex === null)
  67520. return previousIndex;
  67521. let moveOffset = 0;
  67522. if (moveOffsets && previousIndex < moveOffsets.length) {
  67523. moveOffset = moveOffsets[previousIndex];
  67524. }
  67525. return previousIndex + addRemoveOffset + moveOffset;
  67526. }
  67527. /**
  67528. * @license
  67529. * Copyright Google LLC All Rights Reserved.
  67530. *
  67531. * Use of this source code is governed by an MIT-style license that can be
  67532. * found in the LICENSE file at https://angular.io/license
  67533. */
  67534. class DefaultKeyValueDifferFactory {
  67535. constructor() { }
  67536. supports(obj) {
  67537. return obj instanceof Map || isJsObject(obj);
  67538. }
  67539. create() {
  67540. return new DefaultKeyValueDiffer();
  67541. }
  67542. }
  67543. class DefaultKeyValueDiffer {
  67544. constructor() {
  67545. this._records = new Map();
  67546. this._mapHead = null;
  67547. // _appendAfter is used in the check loop
  67548. this._appendAfter = null;
  67549. this._previousMapHead = null;
  67550. this._changesHead = null;
  67551. this._changesTail = null;
  67552. this._additionsHead = null;
  67553. this._additionsTail = null;
  67554. this._removalsHead = null;
  67555. this._removalsTail = null;
  67556. }
  67557. get isDirty() {
  67558. return this._additionsHead !== null || this._changesHead !== null ||
  67559. this._removalsHead !== null;
  67560. }
  67561. forEachItem(fn) {
  67562. let record;
  67563. for (record = this._mapHead; record !== null; record = record._next) {
  67564. fn(record);
  67565. }
  67566. }
  67567. forEachPreviousItem(fn) {
  67568. let record;
  67569. for (record = this._previousMapHead; record !== null; record = record._nextPrevious) {
  67570. fn(record);
  67571. }
  67572. }
  67573. forEachChangedItem(fn) {
  67574. let record;
  67575. for (record = this._changesHead; record !== null; record = record._nextChanged) {
  67576. fn(record);
  67577. }
  67578. }
  67579. forEachAddedItem(fn) {
  67580. let record;
  67581. for (record = this._additionsHead; record !== null; record = record._nextAdded) {
  67582. fn(record);
  67583. }
  67584. }
  67585. forEachRemovedItem(fn) {
  67586. let record;
  67587. for (record = this._removalsHead; record !== null; record = record._nextRemoved) {
  67588. fn(record);
  67589. }
  67590. }
  67591. diff(map) {
  67592. if (!map) {
  67593. map = new Map();
  67594. }
  67595. else if (!(map instanceof Map || isJsObject(map))) {
  67596. throw new Error(`Error trying to diff '${stringify(map)}'. Only maps and objects are allowed`);
  67597. }
  67598. return this.check(map) ? this : null;
  67599. }
  67600. onDestroy() { }
  67601. /**
  67602. * Check the current state of the map vs the previous.
  67603. * The algorithm is optimised for when the keys do no change.
  67604. */
  67605. check(map) {
  67606. this._reset();
  67607. let insertBefore = this._mapHead;
  67608. this._appendAfter = null;
  67609. this._forEach(map, (value, key) => {
  67610. if (insertBefore && insertBefore.key === key) {
  67611. this._maybeAddToChanges(insertBefore, value);
  67612. this._appendAfter = insertBefore;
  67613. insertBefore = insertBefore._next;
  67614. }
  67615. else {
  67616. const record = this._getOrCreateRecordForKey(key, value);
  67617. insertBefore = this._insertBeforeOrAppend(insertBefore, record);
  67618. }
  67619. });
  67620. // Items remaining at the end of the list have been deleted
  67621. if (insertBefore) {
  67622. if (insertBefore._prev) {
  67623. insertBefore._prev._next = null;
  67624. }
  67625. this._removalsHead = insertBefore;
  67626. for (let record = insertBefore; record !== null; record = record._nextRemoved) {
  67627. if (record === this._mapHead) {
  67628. this._mapHead = null;
  67629. }
  67630. this._records.delete(record.key);
  67631. record._nextRemoved = record._next;
  67632. record.previousValue = record.currentValue;
  67633. record.currentValue = null;
  67634. record._prev = null;
  67635. record._next = null;
  67636. }
  67637. }
  67638. // Make sure tails have no next records from previous runs
  67639. if (this._changesTail)
  67640. this._changesTail._nextChanged = null;
  67641. if (this._additionsTail)
  67642. this._additionsTail._nextAdded = null;
  67643. return this.isDirty;
  67644. }
  67645. /**
  67646. * Inserts a record before `before` or append at the end of the list when `before` is null.
  67647. *
  67648. * Notes:
  67649. * - This method appends at `this._appendAfter`,
  67650. * - This method updates `this._appendAfter`,
  67651. * - The return value is the new value for the insertion pointer.
  67652. */
  67653. _insertBeforeOrAppend(before, record) {
  67654. if (before) {
  67655. const prev = before._prev;
  67656. record._next = before;
  67657. record._prev = prev;
  67658. before._prev = record;
  67659. if (prev) {
  67660. prev._next = record;
  67661. }
  67662. if (before === this._mapHead) {
  67663. this._mapHead = record;
  67664. }
  67665. this._appendAfter = before;
  67666. return before;
  67667. }
  67668. if (this._appendAfter) {
  67669. this._appendAfter._next = record;
  67670. record._prev = this._appendAfter;
  67671. }
  67672. else {
  67673. this._mapHead = record;
  67674. }
  67675. this._appendAfter = record;
  67676. return null;
  67677. }
  67678. _getOrCreateRecordForKey(key, value) {
  67679. if (this._records.has(key)) {
  67680. const record = this._records.get(key);
  67681. this._maybeAddToChanges(record, value);
  67682. const prev = record._prev;
  67683. const next = record._next;
  67684. if (prev) {
  67685. prev._next = next;
  67686. }
  67687. if (next) {
  67688. next._prev = prev;
  67689. }
  67690. record._next = null;
  67691. record._prev = null;
  67692. return record;
  67693. }
  67694. const record = new KeyValueChangeRecord_(key);
  67695. this._records.set(key, record);
  67696. record.currentValue = value;
  67697. this._addToAdditions(record);
  67698. return record;
  67699. }
  67700. /** @internal */
  67701. _reset() {
  67702. if (this.isDirty) {
  67703. let record;
  67704. // let `_previousMapHead` contain the state of the map before the changes
  67705. this._previousMapHead = this._mapHead;
  67706. for (record = this._previousMapHead; record !== null; record = record._next) {
  67707. record._nextPrevious = record._next;
  67708. }
  67709. // Update `record.previousValue` with the value of the item before the changes
  67710. // We need to update all changed items (that's those which have been added and changed)
  67711. for (record = this._changesHead; record !== null; record = record._nextChanged) {
  67712. record.previousValue = record.currentValue;
  67713. }
  67714. for (record = this._additionsHead; record != null; record = record._nextAdded) {
  67715. record.previousValue = record.currentValue;
  67716. }
  67717. this._changesHead = this._changesTail = null;
  67718. this._additionsHead = this._additionsTail = null;
  67719. this._removalsHead = null;
  67720. }
  67721. }
  67722. // Add the record or a given key to the list of changes only when the value has actually changed
  67723. _maybeAddToChanges(record, newValue) {
  67724. if (!Object.is(newValue, record.currentValue)) {
  67725. record.previousValue = record.currentValue;
  67726. record.currentValue = newValue;
  67727. this._addToChanges(record);
  67728. }
  67729. }
  67730. _addToAdditions(record) {
  67731. if (this._additionsHead === null) {
  67732. this._additionsHead = this._additionsTail = record;
  67733. }
  67734. else {
  67735. this._additionsTail._nextAdded = record;
  67736. this._additionsTail = record;
  67737. }
  67738. }
  67739. _addToChanges(record) {
  67740. if (this._changesHead === null) {
  67741. this._changesHead = this._changesTail = record;
  67742. }
  67743. else {
  67744. this._changesTail._nextChanged = record;
  67745. this._changesTail = record;
  67746. }
  67747. }
  67748. /** @internal */
  67749. _forEach(obj, fn) {
  67750. if (obj instanceof Map) {
  67751. obj.forEach(fn);
  67752. }
  67753. else {
  67754. Object.keys(obj).forEach(k => fn(obj[k], k));
  67755. }
  67756. }
  67757. }
  67758. class KeyValueChangeRecord_ {
  67759. constructor(key) {
  67760. this.key = key;
  67761. this.previousValue = null;
  67762. this.currentValue = null;
  67763. /** @internal */
  67764. this._nextPrevious = null;
  67765. /** @internal */
  67766. this._next = null;
  67767. /** @internal */
  67768. this._prev = null;
  67769. /** @internal */
  67770. this._nextAdded = null;
  67771. /** @internal */
  67772. this._nextRemoved = null;
  67773. /** @internal */
  67774. this._nextChanged = null;
  67775. }
  67776. }
  67777. /**
  67778. * @license
  67779. * Copyright Google LLC All Rights Reserved.
  67780. *
  67781. * Use of this source code is governed by an MIT-style license that can be
  67782. * found in the LICENSE file at https://angular.io/license
  67783. */
  67784. /**
  67785. * A repository of different iterable diffing strategies used by NgFor, NgClass, and others.
  67786. *
  67787. * @publicApi
  67788. */
  67789. class IterableDiffers {
  67790. constructor(factories) {
  67791. this.factories = factories;
  67792. }
  67793. static create(factories, parent) {
  67794. if (parent != null) {
  67795. const copied = parent.factories.slice();
  67796. factories = factories.concat(copied);
  67797. }
  67798. return new IterableDiffers(factories);
  67799. }
  67800. /**
  67801. * Takes an array of {@link IterableDifferFactory} and returns a provider used to extend the
  67802. * inherited {@link IterableDiffers} instance with the provided factories and return a new
  67803. * {@link IterableDiffers} instance.
  67804. *
  67805. * @usageNotes
  67806. * ### Example
  67807. *
  67808. * The following example shows how to extend an existing list of factories,
  67809. * which will only be applied to the injector for this component and its children.
  67810. * This step is all that's required to make a new {@link IterableDiffer} available.
  67811. *
  67812. * ```
  67813. * @Component({
  67814. * viewProviders: [
  67815. * IterableDiffers.extend([new ImmutableListDiffer()])
  67816. * ]
  67817. * })
  67818. * ```
  67819. */
  67820. static extend(factories) {
  67821. return {
  67822. provide: IterableDiffers,
  67823. useFactory: (parent) => {
  67824. if (!parent) {
  67825. // Typically would occur when calling IterableDiffers.extend inside of dependencies passed
  67826. // to
  67827. // bootstrap(), which would override default pipes instead of extending them.
  67828. throw new Error('Cannot extend IterableDiffers without a parent injector');
  67829. }
  67830. return IterableDiffers.create(factories, parent);
  67831. },
  67832. // Dependency technically isn't optional, but we can provide a better error message this way.
  67833. deps: [[IterableDiffers, new SkipSelf(), new Optional()]]
  67834. };
  67835. }
  67836. find(iterable) {
  67837. const factory = this.factories.find(f => f.supports(iterable));
  67838. if (factory != null) {
  67839. return factory;
  67840. }
  67841. else {
  67842. throw new Error(`Cannot find a differ supporting object '${iterable}' of type '${getTypeNameForDebugging(iterable)}'`);
  67843. }
  67844. }
  67845. }
  67846. /** @nocollapse */
  67847. IterableDiffers.ɵprov = ɵɵdefineInjectable({
  67848. token: IterableDiffers,
  67849. providedIn: 'root',
  67850. factory: () => new IterableDiffers([new DefaultIterableDifferFactory()])
  67851. });
  67852. function getTypeNameForDebugging(type) {
  67853. return type['name'] || typeof type;
  67854. }
  67855. /**
  67856. * @license
  67857. * Copyright Google LLC All Rights Reserved.
  67858. *
  67859. * Use of this source code is governed by an MIT-style license that can be
  67860. * found in the LICENSE file at https://angular.io/license
  67861. */
  67862. /**
  67863. * A repository of different Map diffing strategies used by NgClass, NgStyle, and others.
  67864. *
  67865. * @publicApi
  67866. */
  67867. class KeyValueDiffers {
  67868. constructor(factories) {
  67869. this.factories = factories;
  67870. }
  67871. static create(factories, parent) {
  67872. if (parent) {
  67873. const copied = parent.factories.slice();
  67874. factories = factories.concat(copied);
  67875. }
  67876. return new KeyValueDiffers(factories);
  67877. }
  67878. /**
  67879. * Takes an array of {@link KeyValueDifferFactory} and returns a provider used to extend the
  67880. * inherited {@link KeyValueDiffers} instance with the provided factories and return a new
  67881. * {@link KeyValueDiffers} instance.
  67882. *
  67883. * @usageNotes
  67884. * ### Example
  67885. *
  67886. * The following example shows how to extend an existing list of factories,
  67887. * which will only be applied to the injector for this component and its children.
  67888. * This step is all that's required to make a new {@link KeyValueDiffer} available.
  67889. *
  67890. * ```
  67891. * @Component({
  67892. * viewProviders: [
  67893. * KeyValueDiffers.extend([new ImmutableMapDiffer()])
  67894. * ]
  67895. * })
  67896. * ```
  67897. */
  67898. static extend(factories) {
  67899. return {
  67900. provide: KeyValueDiffers,
  67901. useFactory: (parent) => {
  67902. if (!parent) {
  67903. // Typically would occur when calling KeyValueDiffers.extend inside of dependencies passed
  67904. // to bootstrap(), which would override default pipes instead of extending them.
  67905. throw new Error('Cannot extend KeyValueDiffers without a parent injector');
  67906. }
  67907. return KeyValueDiffers.create(factories, parent);
  67908. },
  67909. // Dependency technically isn't optional, but we can provide a better error message this way.
  67910. deps: [[KeyValueDiffers, new SkipSelf(), new Optional()]]
  67911. };
  67912. }
  67913. find(kv) {
  67914. const factory = this.factories.find(f => f.supports(kv));
  67915. if (factory) {
  67916. return factory;
  67917. }
  67918. throw new Error(`Cannot find a differ supporting object '${kv}'`);
  67919. }
  67920. }
  67921. /** @nocollapse */
  67922. KeyValueDiffers.ɵprov = ɵɵdefineInjectable({
  67923. token: KeyValueDiffers,
  67924. providedIn: 'root',
  67925. factory: () => new KeyValueDiffers([new DefaultKeyValueDifferFactory()])
  67926. });
  67927. /**
  67928. * @license
  67929. * Copyright Google LLC All Rights Reserved.
  67930. *
  67931. * Use of this source code is governed by an MIT-style license that can be
  67932. * found in the LICENSE file at https://angular.io/license
  67933. */
  67934. function collectNativeNodes(tView, lView, tNode, result, isProjection = false) {
  67935. while (tNode !== null) {
  67936. ngDevMode &&
  67937. assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */ | 16 /* Projection */ | 32 /* Icu */);
  67938. const lNode = lView[tNode.index];
  67939. if (lNode !== null) {
  67940. result.push(unwrapRNode(lNode));
  67941. }
  67942. // A given lNode can represent either a native node or a LContainer (when it is a host of a
  67943. // ViewContainerRef). When we find a LContainer we need to descend into it to collect root nodes
  67944. // from the views in this container.
  67945. if (isLContainer(lNode)) {
  67946. for (let i = CONTAINER_HEADER_OFFSET; i < lNode.length; i++) {
  67947. const lViewInAContainer = lNode[i];
  67948. const lViewFirstChildTNode = lViewInAContainer[TVIEW].firstChild;
  67949. if (lViewFirstChildTNode !== null) {
  67950. collectNativeNodes(lViewInAContainer[TVIEW], lViewInAContainer, lViewFirstChildTNode, result);
  67951. }
  67952. }
  67953. }
  67954. const tNodeType = tNode.type;
  67955. if (tNodeType & 8 /* ElementContainer */) {
  67956. collectNativeNodes(tView, lView, tNode.child, result);
  67957. }
  67958. else if (tNodeType & 32 /* Icu */) {
  67959. const nextRNode = icuContainerIterate(tNode, lView);
  67960. let rNode;
  67961. while (rNode = nextRNode()) {
  67962. result.push(rNode);
  67963. }
  67964. }
  67965. else if (tNodeType & 16 /* Projection */) {
  67966. const componentView = lView[DECLARATION_COMPONENT_VIEW];
  67967. const componentHost = componentView[T_HOST];
  67968. const slotIdx = tNode.projection;
  67969. ngDevMode &&
  67970. assertDefined(componentHost.projection, 'Components with projection nodes (<ng-content>) must have projection slots defined.');
  67971. const nodesInSlot = componentHost.projection[slotIdx];
  67972. if (Array.isArray(nodesInSlot)) {
  67973. result.push(...nodesInSlot);
  67974. }
  67975. else {
  67976. const parentView = getLViewParent(componentView);
  67977. ngDevMode &&
  67978. assertDefined(parentView, 'Component views should always have a parent view (component\'s host view)');
  67979. collectNativeNodes(parentView[TVIEW], parentView, nodesInSlot, result, true);
  67980. }
  67981. }
  67982. tNode = isProjection ? tNode.projectionNext : tNode.next;
  67983. }
  67984. return result;
  67985. }
  67986. /**
  67987. * @license
  67988. * Copyright Google LLC All Rights Reserved.
  67989. *
  67990. * Use of this source code is governed by an MIT-style license that can be
  67991. * found in the LICENSE file at https://angular.io/license
  67992. */
  67993. class ViewRef {
  67994. constructor(
  67995. /**
  67996. * This represents `LView` associated with the component when ViewRef is a ChangeDetectorRef.
  67997. *
  67998. * When ViewRef is created for a dynamic component, this also represents the `LView` for the
  67999. * component.
  68000. *
  68001. * For a "regular" ViewRef created for an embedded view, this is the `LView` for the embedded
  68002. * view.
  68003. *
  68004. * @internal
  68005. */
  68006. _lView,
  68007. /**
  68008. * This represents the `LView` associated with the point where `ChangeDetectorRef` was
  68009. * requested.
  68010. *
  68011. * This may be different from `_lView` if the `_cdRefInjectingView` is an embedded view.
  68012. */
  68013. _cdRefInjectingView) {
  68014. this._lView = _lView;
  68015. this._cdRefInjectingView = _cdRefInjectingView;
  68016. this._appRef = null;
  68017. this._viewContainerRef = null;
  68018. }
  68019. get rootNodes() {
  68020. const lView = this._lView;
  68021. const tView = lView[TVIEW];
  68022. return collectNativeNodes(tView, lView, tView.firstChild, []);
  68023. }
  68024. get context() {
  68025. return this._lView[CONTEXT];
  68026. }
  68027. get destroyed() {
  68028. return (this._lView[FLAGS] & 256 /* Destroyed */) === 256 /* Destroyed */;
  68029. }
  68030. destroy() {
  68031. if (this._appRef) {
  68032. this._appRef.detachView(this);
  68033. }
  68034. else if (this._viewContainerRef) {
  68035. const index = this._viewContainerRef.indexOf(this);
  68036. if (index > -1) {
  68037. this._viewContainerRef.detach(index);
  68038. }
  68039. this._viewContainerRef = null;
  68040. }
  68041. destroyLView(this._lView[TVIEW], this._lView);
  68042. }
  68043. onDestroy(callback) {
  68044. storeCleanupWithContext(this._lView[TVIEW], this._lView, null, callback);
  68045. }
  68046. /**
  68047. * Marks a view and all of its ancestors dirty.
  68048. *
  68049. * It also triggers change detection by calling `scheduleTick` internally, which coalesces
  68050. * multiple `markForCheck` calls to into one change detection run.
  68051. *
  68052. * This can be used to ensure an {@link ChangeDetectionStrategy#OnPush OnPush} component is
  68053. * checked when it needs to be re-rendered but the two normal triggers haven't marked it
  68054. * dirty (i.e. inputs haven't changed and events haven't fired in the view).
  68055. *
  68056. * <!-- TODO: Add a link to a chapter on OnPush components -->
  68057. *
  68058. * @usageNotes
  68059. * ### Example
  68060. *
  68061. * ```typescript
  68062. * @Component({
  68063. * selector: 'my-app',
  68064. * template: `Number of ticks: {{numberOfTicks}}`
  68065. * changeDetection: ChangeDetectionStrategy.OnPush,
  68066. * })
  68067. * class AppComponent {
  68068. * numberOfTicks = 0;
  68069. *
  68070. * constructor(private ref: ChangeDetectorRef) {
  68071. * setInterval(() => {
  68072. * this.numberOfTicks++;
  68073. * // the following is required, otherwise the view will not be updated
  68074. * this.ref.markForCheck();
  68075. * }, 1000);
  68076. * }
  68077. * }
  68078. * ```
  68079. */
  68080. markForCheck() {
  68081. markViewDirty(this._cdRefInjectingView || this._lView);
  68082. }
  68083. /**
  68084. * Detaches the view from the change detection tree.
  68085. *
  68086. * Detached views will not be checked during change detection runs until they are
  68087. * re-attached, even if they are dirty. `detach` can be used in combination with
  68088. * {@link ChangeDetectorRef#detectChanges detectChanges} to implement local change
  68089. * detection checks.
  68090. *
  68091. * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
  68092. * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
  68093. *
  68094. * @usageNotes
  68095. * ### Example
  68096. *
  68097. * The following example defines a component with a large list of readonly data.
  68098. * Imagine the data changes constantly, many times per second. For performance reasons,
  68099. * we want to check and update the list every five seconds. We can do that by detaching
  68100. * the component's change detector and doing a local check every five seconds.
  68101. *
  68102. * ```typescript
  68103. * class DataProvider {
  68104. * // in a real application the returned data will be different every time
  68105. * get data() {
  68106. * return [1,2,3,4,5];
  68107. * }
  68108. * }
  68109. *
  68110. * @Component({
  68111. * selector: 'giant-list',
  68112. * template: `
  68113. * <li *ngFor="let d of dataProvider.data">Data {{d}}</li>
  68114. * `,
  68115. * })
  68116. * class GiantList {
  68117. * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {
  68118. * ref.detach();
  68119. * setInterval(() => {
  68120. * this.ref.detectChanges();
  68121. * }, 5000);
  68122. * }
  68123. * }
  68124. *
  68125. * @Component({
  68126. * selector: 'app',
  68127. * providers: [DataProvider],
  68128. * template: `
  68129. * <giant-list><giant-list>
  68130. * `,
  68131. * })
  68132. * class App {
  68133. * }
  68134. * ```
  68135. */
  68136. detach() {
  68137. this._lView[FLAGS] &= ~128 /* Attached */;
  68138. }
  68139. /**
  68140. * Re-attaches a view to the change detection tree.
  68141. *
  68142. * This can be used to re-attach views that were previously detached from the tree
  68143. * using {@link ChangeDetectorRef#detach detach}. Views are attached to the tree by default.
  68144. *
  68145. * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
  68146. *
  68147. * @usageNotes
  68148. * ### Example
  68149. *
  68150. * The following example creates a component displaying `live` data. The component will detach
  68151. * its change detector from the main change detector tree when the component's live property
  68152. * is set to false.
  68153. *
  68154. * ```typescript
  68155. * class DataProvider {
  68156. * data = 1;
  68157. *
  68158. * constructor() {
  68159. * setInterval(() => {
  68160. * this.data = this.data * 2;
  68161. * }, 500);
  68162. * }
  68163. * }
  68164. *
  68165. * @Component({
  68166. * selector: 'live-data',
  68167. * inputs: ['live'],
  68168. * template: 'Data: {{dataProvider.data}}'
  68169. * })
  68170. * class LiveData {
  68171. * constructor(private ref: ChangeDetectorRef, private dataProvider: DataProvider) {}
  68172. *
  68173. * set live(value) {
  68174. * if (value) {
  68175. * this.ref.reattach();
  68176. * } else {
  68177. * this.ref.detach();
  68178. * }
  68179. * }
  68180. * }
  68181. *
  68182. * @Component({
  68183. * selector: 'my-app',
  68184. * providers: [DataProvider],
  68185. * template: `
  68186. * Live Update: <input type="checkbox" [(ngModel)]="live">
  68187. * <live-data [live]="live"><live-data>
  68188. * `,
  68189. * })
  68190. * class AppComponent {
  68191. * live = true;
  68192. * }
  68193. * ```
  68194. */
  68195. reattach() {
  68196. this._lView[FLAGS] |= 128 /* Attached */;
  68197. }
  68198. /**
  68199. * Checks the view and its children.
  68200. *
  68201. * This can also be used in combination with {@link ChangeDetectorRef#detach detach} to implement
  68202. * local change detection checks.
  68203. *
  68204. * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
  68205. * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
  68206. *
  68207. * @usageNotes
  68208. * ### Example
  68209. *
  68210. * The following example defines a component with a large list of readonly data.
  68211. * Imagine, the data changes constantly, many times per second. For performance reasons,
  68212. * we want to check and update the list every five seconds.
  68213. *
  68214. * We can do that by detaching the component's change detector and doing a local change detection
  68215. * check every five seconds.
  68216. *
  68217. * See {@link ChangeDetectorRef#detach detach} for more information.
  68218. */
  68219. detectChanges() {
  68220. detectChangesInternal(this._lView[TVIEW], this._lView, this.context);
  68221. }
  68222. /**
  68223. * Checks the change detector and its children, and throws if any changes are detected.
  68224. *
  68225. * This is used in development mode to verify that running change detection doesn't
  68226. * introduce other changes.
  68227. */
  68228. checkNoChanges() {
  68229. checkNoChangesInternal(this._lView[TVIEW], this._lView, this.context);
  68230. }
  68231. attachToViewContainerRef(vcRef) {
  68232. if (this._appRef) {
  68233. throw new Error('This view is already attached directly to the ApplicationRef!');
  68234. }
  68235. this._viewContainerRef = vcRef;
  68236. }
  68237. detachFromAppRef() {
  68238. this._appRef = null;
  68239. renderDetachView(this._lView[TVIEW], this._lView);
  68240. }
  68241. attachToAppRef(appRef) {
  68242. if (this._viewContainerRef) {
  68243. throw new Error('This view is already attached to a ViewContainer!');
  68244. }
  68245. this._appRef = appRef;
  68246. }
  68247. }
  68248. /** @internal */
  68249. class RootViewRef extends ViewRef {
  68250. constructor(_view) {
  68251. super(_view);
  68252. this._view = _view;
  68253. }
  68254. detectChanges() {
  68255. detectChangesInRootView(this._view);
  68256. }
  68257. checkNoChanges() {
  68258. checkNoChangesInRootView(this._view);
  68259. }
  68260. get context() {
  68261. return null;
  68262. }
  68263. }
  68264. /**
  68265. * @license
  68266. * Copyright Google LLC All Rights Reserved.
  68267. *
  68268. * Use of this source code is governed by an MIT-style license that can be
  68269. * found in the LICENSE file at https://angular.io/license
  68270. */
  68271. const SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__ = injectChangeDetectorRef;
  68272. const SWITCH_CHANGE_DETECTOR_REF_FACTORY__PRE_R3__ = noop;
  68273. const SWITCH_CHANGE_DETECTOR_REF_FACTORY = SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__;
  68274. /**
  68275. * Base class that provides change detection functionality.
  68276. * A change-detection tree collects all views that are to be checked for changes.
  68277. * Use the methods to add and remove views from the tree, initiate change-detection,
  68278. * and explicitly mark views as _dirty_, meaning that they have changed and need to be re-rendered.
  68279. *
  68280. * @see [Using change detection hooks](guide/lifecycle-hooks#using-change-detection-hooks)
  68281. * @see [Defining custom change detection](guide/lifecycle-hooks#defining-custom-change-detection)
  68282. *
  68283. * @usageNotes
  68284. *
  68285. * The following examples demonstrate how to modify default change-detection behavior
  68286. * to perform explicit detection when needed.
  68287. *
  68288. * ### Use `markForCheck()` with `CheckOnce` strategy
  68289. *
  68290. * The following example sets the `OnPush` change-detection strategy for a component
  68291. * (`CheckOnce`, rather than the default `CheckAlways`), then forces a second check
  68292. * after an interval. See [live demo](https://plnkr.co/edit/GC512b?p=preview).
  68293. *
  68294. * <code-example path="core/ts/change_detect/change-detection.ts"
  68295. * region="mark-for-check"></code-example>
  68296. *
  68297. * ### Detach change detector to limit how often check occurs
  68298. *
  68299. * The following example defines a component with a large list of read-only data
  68300. * that is expected to change constantly, many times per second.
  68301. * To improve performance, we want to check and update the list
  68302. * less often than the changes actually occur. To do that, we detach
  68303. * the component's change detector and perform an explicit local check every five seconds.
  68304. *
  68305. * <code-example path="core/ts/change_detect/change-detection.ts" region="detach"></code-example>
  68306. *
  68307. *
  68308. * ### Reattaching a detached component
  68309. *
  68310. * The following example creates a component displaying live data.
  68311. * The component detaches its change detector from the main change detector tree
  68312. * when the `live` property is set to false, and reattaches it when the property
  68313. * becomes true.
  68314. *
  68315. * <code-example path="core/ts/change_detect/change-detection.ts" region="reattach"></code-example>
  68316. *
  68317. * @publicApi
  68318. */
  68319. class ChangeDetectorRef {
  68320. }
  68321. /**
  68322. * @internal
  68323. * @nocollapse
  68324. */
  68325. ChangeDetectorRef.__NG_ELEMENT_ID__ = SWITCH_CHANGE_DETECTOR_REF_FACTORY;
  68326. /**
  68327. * This marker is need so that the JIT compiler can correctly identify this class as special.
  68328. *
  68329. * @internal
  68330. * @nocollapse
  68331. */
  68332. ChangeDetectorRef.__ChangeDetectorRef__ = true;
  68333. /** Returns a ChangeDetectorRef (a.k.a. a ViewRef) */
  68334. function injectChangeDetectorRef(isPipe = false) {
  68335. return createViewRef(getCurrentTNode(), getLView(), isPipe);
  68336. }
  68337. /**
  68338. * Creates a ViewRef and stores it on the injector as ChangeDetectorRef (public alias).
  68339. *
  68340. * @param tNode The node that is requesting a ChangeDetectorRef
  68341. * @param lView The view to which the node belongs
  68342. * @param isPipe Whether the view is being injected into a pipe.
  68343. * @returns The ChangeDetectorRef to use
  68344. */
  68345. function createViewRef(tNode, lView, isPipe) {
  68346. // `isComponentView` will be true for Component and Directives (but not for Pipes).
  68347. // See https://github.com/angular/angular/pull/33072 for proper fix
  68348. const isComponentView = !isPipe && isComponentHost(tNode);
  68349. if (isComponentView) {
  68350. // The LView represents the location where the component is declared.
  68351. // Instead we want the LView for the component View and so we need to look it up.
  68352. const componentView = getComponentLViewByIndex(tNode.index, lView); // look down
  68353. return new ViewRef(componentView, componentView);
  68354. }
  68355. else if (tNode.type & (3 /* AnyRNode */ | 12 /* AnyContainer */ | 32 /* Icu */)) {
  68356. // The LView represents the location where the injection is requested from.
  68357. // We need to locate the containing LView (in case where the `lView` is an embedded view)
  68358. const hostComponentView = lView[DECLARATION_COMPONENT_VIEW]; // look up
  68359. return new ViewRef(hostComponentView, lView);
  68360. }
  68361. return null;
  68362. }
  68363. /**
  68364. * @license
  68365. * Copyright Google LLC All Rights Reserved.
  68366. *
  68367. * Use of this source code is governed by an MIT-style license that can be
  68368. * found in the LICENSE file at https://angular.io/license
  68369. */
  68370. /**
  68371. * Structural diffing for `Object`s and `Map`s.
  68372. */
  68373. const keyValDiff = [new DefaultKeyValueDifferFactory()];
  68374. /**
  68375. * Structural diffing for `Iterable` types such as `Array`s.
  68376. */
  68377. const iterableDiff = [new DefaultIterableDifferFactory()];
  68378. const defaultIterableDiffers = new IterableDiffers(iterableDiff);
  68379. const defaultKeyValueDiffers = new KeyValueDiffers(keyValDiff);
  68380. /**
  68381. * @license
  68382. * Copyright Google LLC All Rights Reserved.
  68383. *
  68384. * Use of this source code is governed by an MIT-style license that can be
  68385. * found in the LICENSE file at https://angular.io/license
  68386. */
  68387. const SWITCH_TEMPLATE_REF_FACTORY__POST_R3__ = injectTemplateRef;
  68388. const SWITCH_TEMPLATE_REF_FACTORY__PRE_R3__ = noop;
  68389. const SWITCH_TEMPLATE_REF_FACTORY = SWITCH_TEMPLATE_REF_FACTORY__POST_R3__;
  68390. /**
  68391. * Represents an embedded template that can be used to instantiate embedded views.
  68392. * To instantiate embedded views based on a template, use the `ViewContainerRef`
  68393. * method `createEmbeddedView()`.
  68394. *
  68395. * Access a `TemplateRef` instance by placing a directive on an `<ng-template>`
  68396. * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view
  68397. * is injected into the constructor of the directive,
  68398. * using the `TemplateRef` token.
  68399. *
  68400. * You can also use a `Query` to find a `TemplateRef` associated with
  68401. * a component or a directive.
  68402. *
  68403. * @see `ViewContainerRef`
  68404. * @see [Navigate the Component Tree with DI](guide/dependency-injection-navtree)
  68405. *
  68406. * @publicApi
  68407. */
  68408. class TemplateRef {
  68409. }
  68410. /**
  68411. * @internal
  68412. * @nocollapse
  68413. */
  68414. TemplateRef.__NG_ELEMENT_ID__ = SWITCH_TEMPLATE_REF_FACTORY;
  68415. const ViewEngineTemplateRef = TemplateRef;
  68416. const R3TemplateRef = class TemplateRef extends ViewEngineTemplateRef {
  68417. constructor(_declarationLView, _declarationTContainer, elementRef) {
  68418. super();
  68419. this._declarationLView = _declarationLView;
  68420. this._declarationTContainer = _declarationTContainer;
  68421. this.elementRef = elementRef;
  68422. }
  68423. createEmbeddedView(context) {
  68424. const embeddedTView = this._declarationTContainer.tViews;
  68425. const embeddedLView = createLView(this._declarationLView, embeddedTView, context, 16 /* CheckAlways */, null, embeddedTView.declTNode, null, null, null, null);
  68426. const declarationLContainer = this._declarationLView[this._declarationTContainer.index];
  68427. ngDevMode && assertLContainer(declarationLContainer);
  68428. embeddedLView[DECLARATION_LCONTAINER] = declarationLContainer;
  68429. const declarationViewLQueries = this._declarationLView[QUERIES];
  68430. if (declarationViewLQueries !== null) {
  68431. embeddedLView[QUERIES] = declarationViewLQueries.createEmbeddedView(embeddedTView);
  68432. }
  68433. renderView(embeddedTView, embeddedLView, context);
  68434. return new ViewRef(embeddedLView);
  68435. }
  68436. };
  68437. /**
  68438. * Creates a TemplateRef given a node.
  68439. *
  68440. * @returns The TemplateRef instance to use
  68441. */
  68442. function injectTemplateRef() {
  68443. return createTemplateRef(getCurrentTNode(), getLView());
  68444. }
  68445. /**
  68446. * Creates a TemplateRef and stores it on the injector.
  68447. *
  68448. * @param hostTNode The node on which a TemplateRef is requested
  68449. * @param hostLView The `LView` to which the node belongs
  68450. * @returns The TemplateRef instance or null if we can't create a TemplateRef on a given node type
  68451. */
  68452. function createTemplateRef(hostTNode, hostLView) {
  68453. if (hostTNode.type & 4 /* Container */) {
  68454. ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');
  68455. return new R3TemplateRef(hostLView, hostTNode, createElementRef(hostTNode, hostLView));
  68456. }
  68457. return null;
  68458. }
  68459. /**
  68460. * @license
  68461. * Copyright Google LLC All Rights Reserved.
  68462. *
  68463. * Use of this source code is governed by an MIT-style license that can be
  68464. * found in the LICENSE file at https://angular.io/license
  68465. */
  68466. /**
  68467. * Represents an instance of an `NgModule` created by an `NgModuleFactory`.
  68468. * Provides access to the `NgModule` instance and related objects.
  68469. *
  68470. * @publicApi
  68471. */
  68472. class NgModuleRef {
  68473. }
  68474. /**
  68475. * @publicApi
  68476. */
  68477. class NgModuleFactory {
  68478. }
  68479. /**
  68480. * @license
  68481. * Copyright Google LLC All Rights Reserved.
  68482. *
  68483. * Use of this source code is governed by an MIT-style license that can be
  68484. * found in the LICENSE file at https://angular.io/license
  68485. */
  68486. const SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__ = injectViewContainerRef;
  68487. const SWITCH_VIEW_CONTAINER_REF_FACTORY__PRE_R3__ = noop;
  68488. const SWITCH_VIEW_CONTAINER_REF_FACTORY = SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__;
  68489. /**
  68490. * Represents a container where one or more views can be attached to a component.
  68491. *
  68492. * Can contain *host views* (created by instantiating a
  68493. * component with the `createComponent()` method), and *embedded views*
  68494. * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method).
  68495. *
  68496. * A view container instance can contain other view containers,
  68497. * creating a [view hierarchy](guide/glossary#view-tree).
  68498. *
  68499. * @see `ComponentRef`
  68500. * @see `EmbeddedViewRef`
  68501. *
  68502. * @publicApi
  68503. */
  68504. class ViewContainerRef {
  68505. }
  68506. /**
  68507. * @internal
  68508. * @nocollapse
  68509. */
  68510. ViewContainerRef.__NG_ELEMENT_ID__ = SWITCH_VIEW_CONTAINER_REF_FACTORY;
  68511. /**
  68512. * Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef
  68513. * already exists, retrieves the existing ViewContainerRef.
  68514. *
  68515. * @returns The ViewContainerRef instance to use
  68516. */
  68517. function injectViewContainerRef() {
  68518. const previousTNode = getCurrentTNode();
  68519. return createContainerRef(previousTNode, getLView());
  68520. }
  68521. const VE_ViewContainerRef = ViewContainerRef;
  68522. const R3ViewContainerRef = class ViewContainerRef extends VE_ViewContainerRef {
  68523. constructor(_lContainer, _hostTNode, _hostLView) {
  68524. super();
  68525. this._lContainer = _lContainer;
  68526. this._hostTNode = _hostTNode;
  68527. this._hostLView = _hostLView;
  68528. }
  68529. get element() {
  68530. return createElementRef(this._hostTNode, this._hostLView);
  68531. }
  68532. get injector() {
  68533. return new NodeInjector(this._hostTNode, this._hostLView);
  68534. }
  68535. /** @deprecated No replacement */
  68536. get parentInjector() {
  68537. const parentLocation = getParentInjectorLocation(this._hostTNode, this._hostLView);
  68538. if (hasParentInjector(parentLocation)) {
  68539. const parentView = getParentInjectorView(parentLocation, this._hostLView);
  68540. const injectorIndex = getParentInjectorIndex(parentLocation);
  68541. ngDevMode && assertNodeInjector(parentView, injectorIndex);
  68542. const parentTNode = parentView[TVIEW].data[injectorIndex + 8 /* TNODE */];
  68543. return new NodeInjector(parentTNode, parentView);
  68544. }
  68545. else {
  68546. return new NodeInjector(null, this._hostLView);
  68547. }
  68548. }
  68549. clear() {
  68550. while (this.length > 0) {
  68551. this.remove(this.length - 1);
  68552. }
  68553. }
  68554. get(index) {
  68555. const viewRefs = getViewRefs(this._lContainer);
  68556. return viewRefs !== null && viewRefs[index] || null;
  68557. }
  68558. get length() {
  68559. return this._lContainer.length - CONTAINER_HEADER_OFFSET;
  68560. }
  68561. createEmbeddedView(templateRef, context, index) {
  68562. const viewRef = templateRef.createEmbeddedView(context || {});
  68563. this.insert(viewRef, index);
  68564. return viewRef;
  68565. }
  68566. createComponent(componentFactory, index, injector, projectableNodes, ngModuleRef) {
  68567. const contextInjector = injector || this.parentInjector;
  68568. if (!ngModuleRef && componentFactory.ngModule == null && contextInjector) {
  68569. // DO NOT REFACTOR. The code here used to have a `value || undefined` expression
  68570. // which seems to cause internal google apps to fail. This is documented in the
  68571. // following internal bug issue: go/b/142967802
  68572. const result = contextInjector.get(NgModuleRef, null);
  68573. if (result) {
  68574. ngModuleRef = result;
  68575. }
  68576. }
  68577. const componentRef = componentFactory.create(contextInjector, projectableNodes, undefined, ngModuleRef);
  68578. this.insert(componentRef.hostView, index);
  68579. return componentRef;
  68580. }
  68581. insert(viewRef, index) {
  68582. const lView = viewRef._lView;
  68583. const tView = lView[TVIEW];
  68584. if (ngDevMode && viewRef.destroyed) {
  68585. throw new Error('Cannot insert a destroyed View in a ViewContainer!');
  68586. }
  68587. if (viewAttachedToContainer(lView)) {
  68588. // If view is already attached, detach it first so we clean up references appropriately.
  68589. const prevIdx = this.indexOf(viewRef);
  68590. // A view might be attached either to this or a different container. The `prevIdx` for
  68591. // those cases will be:
  68592. // equal to -1 for views attached to this ViewContainerRef
  68593. // >= 0 for views attached to a different ViewContainerRef
  68594. if (prevIdx !== -1) {
  68595. this.detach(prevIdx);
  68596. }
  68597. else {
  68598. const prevLContainer = lView[PARENT];
  68599. ngDevMode &&
  68600. assertEqual(isLContainer(prevLContainer), true, 'An attached view should have its PARENT point to a container.');
  68601. // We need to re-create a R3ViewContainerRef instance since those are not stored on
  68602. // LView (nor anywhere else).
  68603. const prevVCRef = new R3ViewContainerRef(prevLContainer, prevLContainer[T_HOST], prevLContainer[PARENT]);
  68604. prevVCRef.detach(prevVCRef.indexOf(viewRef));
  68605. }
  68606. }
  68607. // Logical operation of adding `LView` to `LContainer`
  68608. const adjustedIdx = this._adjustIndex(index);
  68609. const lContainer = this._lContainer;
  68610. insertView(tView, lView, lContainer, adjustedIdx);
  68611. // Physical operation of adding the DOM nodes.
  68612. const beforeNode = getBeforeNodeForView(adjustedIdx, lContainer);
  68613. const renderer = lView[RENDERER];
  68614. const parentRNode = nativeParentNode(renderer, lContainer[NATIVE]);
  68615. if (parentRNode !== null) {
  68616. addViewToContainer(tView, lContainer[T_HOST], renderer, lView, parentRNode, beforeNode);
  68617. }
  68618. viewRef.attachToViewContainerRef(this);
  68619. addToArray(getOrCreateViewRefs(lContainer), adjustedIdx, viewRef);
  68620. return viewRef;
  68621. }
  68622. move(viewRef, newIndex) {
  68623. if (ngDevMode && viewRef.destroyed) {
  68624. throw new Error('Cannot move a destroyed View in a ViewContainer!');
  68625. }
  68626. return this.insert(viewRef, newIndex);
  68627. }
  68628. indexOf(viewRef) {
  68629. const viewRefsArr = getViewRefs(this._lContainer);
  68630. return viewRefsArr !== null ? viewRefsArr.indexOf(viewRef) : -1;
  68631. }
  68632. remove(index) {
  68633. const adjustedIdx = this._adjustIndex(index, -1);
  68634. const detachedView = detachView(this._lContainer, adjustedIdx);
  68635. if (detachedView) {
  68636. // Before destroying the view, remove it from the container's array of `ViewRef`s.
  68637. // This ensures the view container length is updated before calling
  68638. // `destroyLView`, which could recursively call view container methods that
  68639. // rely on an accurate container length.
  68640. // (e.g. a method on this view container being called by a child directive's OnDestroy
  68641. // lifecycle hook)
  68642. removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx);
  68643. destroyLView(detachedView[TVIEW], detachedView);
  68644. }
  68645. }
  68646. detach(index) {
  68647. const adjustedIdx = this._adjustIndex(index, -1);
  68648. const view = detachView(this._lContainer, adjustedIdx);
  68649. const wasDetached = view && removeFromArray(getOrCreateViewRefs(this._lContainer), adjustedIdx) != null;
  68650. return wasDetached ? new ViewRef(view) : null;
  68651. }
  68652. _adjustIndex(index, shift = 0) {
  68653. if (index == null) {
  68654. return this.length + shift;
  68655. }
  68656. if (ngDevMode) {
  68657. assertGreaterThan(index, -1, `ViewRef index must be positive, got ${index}`);
  68658. // +1 because it's legal to insert at the end.
  68659. assertLessThan(index, this.length + 1 + shift, 'index');
  68660. }
  68661. return index;
  68662. }
  68663. };
  68664. function getViewRefs(lContainer) {
  68665. return lContainer[VIEW_REFS];
  68666. }
  68667. function getOrCreateViewRefs(lContainer) {
  68668. return (lContainer[VIEW_REFS] || (lContainer[VIEW_REFS] = []));
  68669. }
  68670. /**
  68671. * Creates a ViewContainerRef and stores it on the injector.
  68672. *
  68673. * @param ViewContainerRefToken The ViewContainerRef type
  68674. * @param ElementRefToken The ElementRef type
  68675. * @param hostTNode The node that is requesting a ViewContainerRef
  68676. * @param hostLView The view to which the node belongs
  68677. * @returns The ViewContainerRef instance to use
  68678. */
  68679. function createContainerRef(hostTNode, hostLView) {
  68680. ngDevMode && assertTNodeType(hostTNode, 12 /* AnyContainer */ | 3 /* AnyRNode */);
  68681. let lContainer;
  68682. const slotValue = hostLView[hostTNode.index];
  68683. if (isLContainer(slotValue)) {
  68684. // If the host is a container, we don't need to create a new LContainer
  68685. lContainer = slotValue;
  68686. }
  68687. else {
  68688. let commentNode;
  68689. // If the host is an element container, the native host element is guaranteed to be a
  68690. // comment and we can reuse that comment as anchor element for the new LContainer.
  68691. // The comment node in question is already part of the DOM structure so we don't need to append
  68692. // it again.
  68693. if (hostTNode.type & 8 /* ElementContainer */) {
  68694. commentNode = unwrapRNode(slotValue);
  68695. }
  68696. else {
  68697. // If the host is a regular element, we have to insert a comment node manually which will
  68698. // be used as an anchor when inserting elements. In this specific case we use low-level DOM
  68699. // manipulation to insert it.
  68700. const renderer = hostLView[RENDERER];
  68701. ngDevMode && ngDevMode.rendererCreateComment++;
  68702. commentNode = renderer.createComment(ngDevMode ? 'container' : '');
  68703. const hostNative = getNativeByTNode(hostTNode, hostLView);
  68704. const parentOfHostNative = nativeParentNode(renderer, hostNative);
  68705. nativeInsertBefore(renderer, parentOfHostNative, commentNode, nativeNextSibling(renderer, hostNative), false);
  68706. }
  68707. hostLView[hostTNode.index] = lContainer =
  68708. createLContainer(slotValue, hostLView, commentNode, hostTNode);
  68709. addToViewTree(hostLView, lContainer);
  68710. }
  68711. return new R3ViewContainerRef(lContainer, hostTNode, hostLView);
  68712. }
  68713. /**
  68714. * @license
  68715. * Copyright Google LLC All Rights Reserved.
  68716. *
  68717. * Use of this source code is governed by an MIT-style license that can be
  68718. * found in the LICENSE file at https://angular.io/license
  68719. */
  68720. function expressionChangedAfterItHasBeenCheckedError(context, oldValue, currValue, isFirstCheck) {
  68721. let msg = `ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${oldValue}'. Current value: '${currValue}'.`;
  68722. if (isFirstCheck) {
  68723. msg +=
  68724. ` It seems like the view has been created after its parent and its children have been dirty checked.` +
  68725. ` Has it been created in a change detection hook ?`;
  68726. }
  68727. return viewDebugError(msg, context);
  68728. }
  68729. function viewWrappedDebugError(err, context) {
  68730. if (!(err instanceof Error)) {
  68731. // errors that are not Error instances don't have a stack,
  68732. // so it is ok to wrap them into a new Error object...
  68733. err = new Error(err.toString());
  68734. }
  68735. _addDebugContext(err, context);
  68736. return err;
  68737. }
  68738. function viewDebugError(msg, context) {
  68739. const err = new Error(msg);
  68740. _addDebugContext(err, context);
  68741. return err;
  68742. }
  68743. function _addDebugContext(err, context) {
  68744. err[ERROR_DEBUG_CONTEXT] = context;
  68745. err[ERROR_LOGGER] = context.logError.bind(context);
  68746. }
  68747. function isViewDebugError(err) {
  68748. return !!getDebugContext(err);
  68749. }
  68750. function viewDestroyedError(action) {
  68751. return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${action}`);
  68752. }
  68753. /**
  68754. * @license
  68755. * Copyright Google LLC All Rights Reserved.
  68756. *
  68757. * Use of this source code is governed by an MIT-style license that can be
  68758. * found in the LICENSE file at https://angular.io/license
  68759. */
  68760. // Called before each cycle of a view's check to detect whether this is in the
  68761. // initState for which we need to call ngOnInit, ngAfterContentInit or ngAfterViewInit
  68762. // lifecycle methods. Returns true if this check cycle should call lifecycle
  68763. // methods.
  68764. function shiftInitState(view, priorInitState, newInitState) {
  68765. // Only update the InitState if we are currently in the prior state.
  68766. // For example, only move into CallingInit if we are in BeforeInit. Only
  68767. // move into CallingContentInit if we are in CallingInit. Normally this will
  68768. // always be true because of how checkCycle is called in checkAndUpdateView.
  68769. // However, if checkAndUpdateView is called recursively or if an exception is
  68770. // thrown while checkAndUpdateView is running, checkAndUpdateView starts over
  68771. // from the beginning. This ensures the state is monotonically increasing,
  68772. // terminating in the AfterInit state, which ensures the Init methods are called
  68773. // at least once and only once.
  68774. const state = view.state;
  68775. const initState = state & 1792 /* InitState_Mask */;
  68776. if (initState === priorInitState) {
  68777. view.state = (state & ~1792 /* InitState_Mask */) | newInitState;
  68778. view.initIndex = -1;
  68779. return true;
  68780. }
  68781. return initState === newInitState;
  68782. }
  68783. // Returns true if the lifecycle init method should be called for the node with
  68784. // the given init index.
  68785. function shouldCallLifecycleInitHook(view, initState, index) {
  68786. if ((view.state & 1792 /* InitState_Mask */) === initState && view.initIndex <= index) {
  68787. view.initIndex = index + 1;
  68788. return true;
  68789. }
  68790. return false;
  68791. }
  68792. /**
  68793. * Node instance data.
  68794. *
  68795. * We have a separate type per NodeType to save memory
  68796. * (TextData | ElementData | ProviderData | PureExpressionData | QueryList<any>)
  68797. *
  68798. * To keep our code monomorphic,
  68799. * we prohibit using `NodeData` directly but enforce the use of accessors (`asElementData`, ...).
  68800. * This way, no usage site can get a `NodeData` from view.nodes and then use it for different
  68801. * purposes.
  68802. */
  68803. class NodeData {
  68804. }
  68805. /**
  68806. * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
  68807. */
  68808. function asTextData(view, index) {
  68809. return view.nodes[index];
  68810. }
  68811. /**
  68812. * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
  68813. */
  68814. function asElementData(view, index) {
  68815. return view.nodes[index];
  68816. }
  68817. /**
  68818. * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
  68819. */
  68820. function asProviderData(view, index) {
  68821. return view.nodes[index];
  68822. }
  68823. /**
  68824. * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
  68825. */
  68826. function asPureExpressionData(view, index) {
  68827. return view.nodes[index];
  68828. }
  68829. /**
  68830. * Accessor for view.nodes, enforcing that every usage site stays monomorphic.
  68831. */
  68832. function asQueryList(view, index) {
  68833. return view.nodes[index];
  68834. }
  68835. class DebugContext {
  68836. }
  68837. /**
  68838. * This object is used to prevent cycles in the source files and to have a place where
  68839. * debug mode can hook it. It is lazily filled when `isDevMode` is known.
  68840. */
  68841. const Services = {
  68842. setCurrentNode: undefined,
  68843. createRootView: undefined,
  68844. createEmbeddedView: undefined,
  68845. createComponentView: undefined,
  68846. createNgModuleRef: undefined,
  68847. overrideProvider: undefined,
  68848. overrideComponentView: undefined,
  68849. clearOverrides: undefined,
  68850. checkAndUpdateView: undefined,
  68851. checkNoChangesView: undefined,
  68852. destroyView: undefined,
  68853. resolveDep: undefined,
  68854. createDebugContext: undefined,
  68855. handleEvent: undefined,
  68856. updateDirectives: undefined,
  68857. updateRenderer: undefined,
  68858. dirtyParentQueries: undefined,
  68859. };
  68860. /**
  68861. * @license
  68862. * Copyright Google LLC All Rights Reserved.
  68863. *
  68864. * Use of this source code is governed by an MIT-style license that can be
  68865. * found in the LICENSE file at https://angular.io/license
  68866. */
  68867. const NOOP = () => { };
  68868. const _tokenKeyCache = new Map();
  68869. function tokenKey(token) {
  68870. let key = _tokenKeyCache.get(token);
  68871. if (!key) {
  68872. key = stringify(token) + '_' + _tokenKeyCache.size;
  68873. _tokenKeyCache.set(token, key);
  68874. }
  68875. return key;
  68876. }
  68877. function unwrapValue(view, nodeIdx, bindingIdx, value) {
  68878. if (WrappedValue.isWrapped(value)) {
  68879. value = WrappedValue.unwrap(value);
  68880. const globalBindingIdx = view.def.nodes[nodeIdx].bindingIndex + bindingIdx;
  68881. const oldValue = WrappedValue.unwrap(view.oldValues[globalBindingIdx]);
  68882. view.oldValues[globalBindingIdx] = new WrappedValue(oldValue);
  68883. }
  68884. return value;
  68885. }
  68886. const UNDEFINED_RENDERER_TYPE_ID = '$$undefined';
  68887. const EMPTY_RENDERER_TYPE_ID = '$$empty';
  68888. // Attention: this function is called as top level function.
  68889. // Putting any logic in here will destroy closure tree shaking!
  68890. function createRendererType2(values) {
  68891. return {
  68892. id: UNDEFINED_RENDERER_TYPE_ID,
  68893. styles: values.styles,
  68894. encapsulation: values.encapsulation,
  68895. data: values.data
  68896. };
  68897. }
  68898. let _renderCompCount$1 = 0;
  68899. function resolveRendererType2(type) {
  68900. if (type && type.id === UNDEFINED_RENDERER_TYPE_ID) {
  68901. // first time we see this RendererType2. Initialize it...
  68902. const isFilled = ((type.encapsulation != null && type.encapsulation !== ViewEncapsulation.None) ||
  68903. type.styles.length || Object.keys(type.data).length);
  68904. if (isFilled) {
  68905. type.id = `c${_renderCompCount$1++}`;
  68906. }
  68907. else {
  68908. type.id = EMPTY_RENDERER_TYPE_ID;
  68909. }
  68910. }
  68911. if (type && type.id === EMPTY_RENDERER_TYPE_ID) {
  68912. type = null;
  68913. }
  68914. return type || null;
  68915. }
  68916. function checkBinding(view, def, bindingIdx, value) {
  68917. const oldValues = view.oldValues;
  68918. if ((view.state & 2 /* FirstCheck */) ||
  68919. !Object.is(oldValues[def.bindingIndex + bindingIdx], value)) {
  68920. return true;
  68921. }
  68922. return false;
  68923. }
  68924. function checkAndUpdateBinding(view, def, bindingIdx, value) {
  68925. if (checkBinding(view, def, bindingIdx, value)) {
  68926. view.oldValues[def.bindingIndex + bindingIdx] = value;
  68927. return true;
  68928. }
  68929. return false;
  68930. }
  68931. function checkBindingNoChanges(view, def, bindingIdx, value) {
  68932. const oldValue = view.oldValues[def.bindingIndex + bindingIdx];
  68933. if ((view.state & 1 /* BeforeFirstCheck */) || !devModeEqual(oldValue, value)) {
  68934. const bindingName = def.bindings[bindingIdx].name;
  68935. throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, def.nodeIndex), `${bindingName}: ${oldValue}`, `${bindingName}: ${value}`, (view.state & 1 /* BeforeFirstCheck */) !== 0);
  68936. }
  68937. }
  68938. function markParentViewsForCheck(view) {
  68939. let currView = view;
  68940. while (currView) {
  68941. if (currView.def.flags & 2 /* OnPush */) {
  68942. currView.state |= 8 /* ChecksEnabled */;
  68943. }
  68944. currView = currView.viewContainerParent || currView.parent;
  68945. }
  68946. }
  68947. function markParentViewsForCheckProjectedViews(view, endView) {
  68948. let currView = view;
  68949. while (currView && currView !== endView) {
  68950. currView.state |= 64 /* CheckProjectedViews */;
  68951. currView = currView.viewContainerParent || currView.parent;
  68952. }
  68953. }
  68954. function dispatchEvent(view, nodeIndex, eventName, event) {
  68955. try {
  68956. const nodeDef = view.def.nodes[nodeIndex];
  68957. const startView = nodeDef.flags & 33554432 /* ComponentView */ ?
  68958. asElementData(view, nodeIndex).componentView :
  68959. view;
  68960. markParentViewsForCheck(startView);
  68961. return Services.handleEvent(view, nodeIndex, eventName, event);
  68962. }
  68963. catch (e) {
  68964. // Attention: Don't rethrow, as it would cancel Observable subscriptions!
  68965. view.root.errorHandler.handleError(e);
  68966. }
  68967. }
  68968. function declaredViewContainer(view) {
  68969. if (view.parent) {
  68970. const parentView = view.parent;
  68971. return asElementData(parentView, view.parentNodeDef.nodeIndex);
  68972. }
  68973. return null;
  68974. }
  68975. /**
  68976. * for component views, this is the host element.
  68977. * for embedded views, this is the index of the parent node
  68978. * that contains the view container.
  68979. */
  68980. function viewParentEl(view) {
  68981. const parentView = view.parent;
  68982. if (parentView) {
  68983. return view.parentNodeDef.parent;
  68984. }
  68985. else {
  68986. return null;
  68987. }
  68988. }
  68989. function renderNode(view, def) {
  68990. switch (def.flags & 201347067 /* Types */) {
  68991. case 1 /* TypeElement */:
  68992. return asElementData(view, def.nodeIndex).renderElement;
  68993. case 2 /* TypeText */:
  68994. return asTextData(view, def.nodeIndex).renderText;
  68995. }
  68996. }
  68997. function elementEventFullName(target, name) {
  68998. return target ? `${target}:${name}` : name;
  68999. }
  69000. function isComponentView(view) {
  69001. return !!view.parent && !!(view.parentNodeDef.flags & 32768 /* Component */);
  69002. }
  69003. function isEmbeddedView(view) {
  69004. return !!view.parent && !(view.parentNodeDef.flags & 32768 /* Component */);
  69005. }
  69006. function filterQueryId(queryId) {
  69007. return 1 << (queryId % 32);
  69008. }
  69009. function splitMatchedQueriesDsl(matchedQueriesDsl) {
  69010. const matchedQueries = {};
  69011. let matchedQueryIds = 0;
  69012. const references = {};
  69013. if (matchedQueriesDsl) {
  69014. matchedQueriesDsl.forEach(([queryId, valueType]) => {
  69015. if (typeof queryId === 'number') {
  69016. matchedQueries[queryId] = valueType;
  69017. matchedQueryIds |= filterQueryId(queryId);
  69018. }
  69019. else {
  69020. references[queryId] = valueType;
  69021. }
  69022. });
  69023. }
  69024. return { matchedQueries, references, matchedQueryIds };
  69025. }
  69026. function splitDepsDsl(deps, sourceName) {
  69027. return deps.map(value => {
  69028. let token;
  69029. let flags;
  69030. if (Array.isArray(value)) {
  69031. [flags, token] = value;
  69032. }
  69033. else {
  69034. flags = 0 /* None */;
  69035. token = value;
  69036. }
  69037. if (token && (typeof token === 'function' || typeof token === 'object') && sourceName) {
  69038. Object.defineProperty(token, SOURCE, { value: sourceName, configurable: true });
  69039. }
  69040. return { flags, token, tokenKey: tokenKey(token) };
  69041. });
  69042. }
  69043. function getParentRenderElement(view, renderHost, def) {
  69044. let renderParent = def.renderParent;
  69045. if (renderParent) {
  69046. if ((renderParent.flags & 1 /* TypeElement */) === 0 ||
  69047. (renderParent.flags & 33554432 /* ComponentView */) === 0 ||
  69048. (renderParent.element.componentRendererType &&
  69049. (renderParent.element.componentRendererType.encapsulation ===
  69050. ViewEncapsulation.ShadowDom ||
  69051. // TODO(FW-2290): remove the `encapsulation === 1` fallback logic in v12.
  69052. renderParent.element.componentRendererType.encapsulation === 1))) {
  69053. // only children of non components, or children of components with native encapsulation should
  69054. // be attached.
  69055. return asElementData(view, def.renderParent.nodeIndex).renderElement;
  69056. }
  69057. }
  69058. else {
  69059. return renderHost;
  69060. }
  69061. }
  69062. const DEFINITION_CACHE = new WeakMap();
  69063. function resolveDefinition(factory) {
  69064. let value = DEFINITION_CACHE.get(factory);
  69065. if (!value) {
  69066. value = factory(() => NOOP);
  69067. value.factory = factory;
  69068. DEFINITION_CACHE.set(factory, value);
  69069. }
  69070. return value;
  69071. }
  69072. function rootRenderNodes(view) {
  69073. const renderNodes = [];
  69074. visitRootRenderNodes(view, 0 /* Collect */, undefined, undefined, renderNodes);
  69075. return renderNodes;
  69076. }
  69077. function visitRootRenderNodes(view, action, parentNode, nextSibling, target) {
  69078. // We need to re-compute the parent node in case the nodes have been moved around manually
  69079. if (action === 3 /* RemoveChild */) {
  69080. parentNode = view.renderer.parentNode(renderNode(view, view.def.lastRenderRootNode));
  69081. }
  69082. visitSiblingRenderNodes(view, action, 0, view.def.nodes.length - 1, parentNode, nextSibling, target);
  69083. }
  69084. function visitSiblingRenderNodes(view, action, startIndex, endIndex, parentNode, nextSibling, target) {
  69085. for (let i = startIndex; i <= endIndex; i++) {
  69086. const nodeDef = view.def.nodes[i];
  69087. if (nodeDef.flags & (1 /* TypeElement */ | 2 /* TypeText */ | 8 /* TypeNgContent */)) {
  69088. visitRenderNode(view, nodeDef, action, parentNode, nextSibling, target);
  69089. }
  69090. // jump to next sibling
  69091. i += nodeDef.childCount;
  69092. }
  69093. }
  69094. function visitProjectedRenderNodes(view, ngContentIndex, action, parentNode, nextSibling, target) {
  69095. let compView = view;
  69096. while (compView && !isComponentView(compView)) {
  69097. compView = compView.parent;
  69098. }
  69099. const hostView = compView.parent;
  69100. const hostElDef = viewParentEl(compView);
  69101. const startIndex = hostElDef.nodeIndex + 1;
  69102. const endIndex = hostElDef.nodeIndex + hostElDef.childCount;
  69103. for (let i = startIndex; i <= endIndex; i++) {
  69104. const nodeDef = hostView.def.nodes[i];
  69105. if (nodeDef.ngContentIndex === ngContentIndex) {
  69106. visitRenderNode(hostView, nodeDef, action, parentNode, nextSibling, target);
  69107. }
  69108. // jump to next sibling
  69109. i += nodeDef.childCount;
  69110. }
  69111. if (!hostView.parent) {
  69112. // a root view
  69113. const projectedNodes = view.root.projectableNodes[ngContentIndex];
  69114. if (projectedNodes) {
  69115. for (let i = 0; i < projectedNodes.length; i++) {
  69116. execRenderNodeAction(view, projectedNodes[i], action, parentNode, nextSibling, target);
  69117. }
  69118. }
  69119. }
  69120. }
  69121. function visitRenderNode(view, nodeDef, action, parentNode, nextSibling, target) {
  69122. if (nodeDef.flags & 8 /* TypeNgContent */) {
  69123. visitProjectedRenderNodes(view, nodeDef.ngContent.index, action, parentNode, nextSibling, target);
  69124. }
  69125. else {
  69126. const rn = renderNode(view, nodeDef);
  69127. if (action === 3 /* RemoveChild */ && (nodeDef.flags & 33554432 /* ComponentView */) &&
  69128. (nodeDef.bindingFlags & 48 /* CatSyntheticProperty */)) {
  69129. // Note: we might need to do both actions.
  69130. if (nodeDef.bindingFlags & (16 /* SyntheticProperty */)) {
  69131. execRenderNodeAction(view, rn, action, parentNode, nextSibling, target);
  69132. }
  69133. if (nodeDef.bindingFlags & (32 /* SyntheticHostProperty */)) {
  69134. const compView = asElementData(view, nodeDef.nodeIndex).componentView;
  69135. execRenderNodeAction(compView, rn, action, parentNode, nextSibling, target);
  69136. }
  69137. }
  69138. else {
  69139. execRenderNodeAction(view, rn, action, parentNode, nextSibling, target);
  69140. }
  69141. if (nodeDef.flags & 16777216 /* EmbeddedViews */) {
  69142. const embeddedViews = asElementData(view, nodeDef.nodeIndex).viewContainer._embeddedViews;
  69143. for (let k = 0; k < embeddedViews.length; k++) {
  69144. visitRootRenderNodes(embeddedViews[k], action, parentNode, nextSibling, target);
  69145. }
  69146. }
  69147. if (nodeDef.flags & 1 /* TypeElement */ && !nodeDef.element.name) {
  69148. visitSiblingRenderNodes(view, action, nodeDef.nodeIndex + 1, nodeDef.nodeIndex + nodeDef.childCount, parentNode, nextSibling, target);
  69149. }
  69150. }
  69151. }
  69152. function execRenderNodeAction(view, renderNode, action, parentNode, nextSibling, target) {
  69153. const renderer = view.renderer;
  69154. switch (action) {
  69155. case 1 /* AppendChild */:
  69156. renderer.appendChild(parentNode, renderNode);
  69157. break;
  69158. case 2 /* InsertBefore */:
  69159. renderer.insertBefore(parentNode, renderNode, nextSibling);
  69160. break;
  69161. case 3 /* RemoveChild */:
  69162. renderer.removeChild(parentNode, renderNode);
  69163. break;
  69164. case 0 /* Collect */:
  69165. target.push(renderNode);
  69166. break;
  69167. }
  69168. }
  69169. const NS_PREFIX_RE = /^:([^:]+):(.+)$/;
  69170. function splitNamespace(name) {
  69171. if (name[0] === ':') {
  69172. const match = name.match(NS_PREFIX_RE);
  69173. return [match[1], match[2]];
  69174. }
  69175. return ['', name];
  69176. }
  69177. function calcBindingFlags(bindings) {
  69178. let flags = 0;
  69179. for (let i = 0; i < bindings.length; i++) {
  69180. flags |= bindings[i].flags;
  69181. }
  69182. return flags;
  69183. }
  69184. function interpolate(valueCount, constAndInterp) {
  69185. let result = '';
  69186. for (let i = 0; i < valueCount * 2; i = i + 2) {
  69187. result = result + constAndInterp[i] + _toStringWithNull(constAndInterp[i + 1]);
  69188. }
  69189. return result + constAndInterp[valueCount * 2];
  69190. }
  69191. function inlineInterpolate(valueCount, c0, a1, c1, a2, c2, a3, c3, a4, c4, a5, c5, a6, c6, a7, c7, a8, c8, a9, c9) {
  69192. switch (valueCount) {
  69193. case 1:
  69194. return c0 + _toStringWithNull(a1) + c1;
  69195. case 2:
  69196. return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2;
  69197. case 3:
  69198. return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +
  69199. c3;
  69200. case 4:
  69201. return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +
  69202. c3 + _toStringWithNull(a4) + c4;
  69203. case 5:
  69204. return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +
  69205. c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5;
  69206. case 6:
  69207. return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +
  69208. c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) + c6;
  69209. case 7:
  69210. return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +
  69211. c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +
  69212. c6 + _toStringWithNull(a7) + c7;
  69213. case 8:
  69214. return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +
  69215. c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +
  69216. c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8;
  69217. case 9:
  69218. return c0 + _toStringWithNull(a1) + c1 + _toStringWithNull(a2) + c2 + _toStringWithNull(a3) +
  69219. c3 + _toStringWithNull(a4) + c4 + _toStringWithNull(a5) + c5 + _toStringWithNull(a6) +
  69220. c6 + _toStringWithNull(a7) + c7 + _toStringWithNull(a8) + c8 + _toStringWithNull(a9) + c9;
  69221. default:
  69222. throw new Error(`Does not support more than 9 expressions`);
  69223. }
  69224. }
  69225. function _toStringWithNull(v) {
  69226. return v != null ? v.toString() : '';
  69227. }
  69228. const EMPTY_ARRAY$4 = [];
  69229. const EMPTY_MAP = {};
  69230. /**
  69231. * @license
  69232. * Copyright Google LLC All Rights Reserved.
  69233. *
  69234. * Use of this source code is governed by an MIT-style license that can be
  69235. * found in the LICENSE file at https://angular.io/license
  69236. */
  69237. const UNDEFINED_VALUE = {};
  69238. const InjectorRefTokenKey = tokenKey(Injector);
  69239. const INJECTORRefTokenKey = tokenKey(INJECTOR$1);
  69240. const NgModuleRefTokenKey = tokenKey(NgModuleRef);
  69241. function moduleProvideDef(flags, token, value, deps) {
  69242. // Need to resolve forwardRefs as e.g. for `useValue` we
  69243. // lowered the expression and then stopped evaluating it,
  69244. // i.e. also didn't unwrap it.
  69245. value = resolveForwardRef(value);
  69246. const depDefs = splitDepsDsl(deps, stringify(token));
  69247. return {
  69248. // will bet set by the module definition
  69249. index: -1,
  69250. deps: depDefs,
  69251. flags,
  69252. token,
  69253. value
  69254. };
  69255. }
  69256. function moduleDef(providers) {
  69257. const providersByKey = {};
  69258. const modules = [];
  69259. let scope = null;
  69260. for (let i = 0; i < providers.length; i++) {
  69261. const provider = providers[i];
  69262. if (provider.token === INJECTOR_SCOPE) {
  69263. scope = provider.value;
  69264. }
  69265. if (provider.flags & 1073741824 /* TypeNgModule */) {
  69266. modules.push(provider.token);
  69267. }
  69268. provider.index = i;
  69269. providersByKey[tokenKey(provider.token)] = provider;
  69270. }
  69271. return {
  69272. // Will be filled later...
  69273. factory: null,
  69274. providersByKey,
  69275. providers,
  69276. modules,
  69277. scope: scope,
  69278. };
  69279. }
  69280. function initNgModule(data) {
  69281. const def = data._def;
  69282. const providers = data._providers = newArray(def.providers.length);
  69283. for (let i = 0; i < def.providers.length; i++) {
  69284. const provDef = def.providers[i];
  69285. if (!(provDef.flags & 4096 /* LazyProvider */)) {
  69286. // Make sure the provider has not been already initialized outside this loop.
  69287. if (providers[i] === undefined) {
  69288. providers[i] = _createProviderInstance(data, provDef);
  69289. }
  69290. }
  69291. }
  69292. }
  69293. function resolveNgModuleDep(data, depDef, notFoundValue = Injector.THROW_IF_NOT_FOUND) {
  69294. const former = setCurrentInjector(data);
  69295. try {
  69296. if (depDef.flags & 8 /* Value */) {
  69297. return depDef.token;
  69298. }
  69299. if (depDef.flags & 2 /* Optional */) {
  69300. notFoundValue = null;
  69301. }
  69302. if (depDef.flags & 1 /* SkipSelf */) {
  69303. return data._parent.get(depDef.token, notFoundValue);
  69304. }
  69305. const tokenKey = depDef.tokenKey;
  69306. switch (tokenKey) {
  69307. case InjectorRefTokenKey:
  69308. case INJECTORRefTokenKey:
  69309. case NgModuleRefTokenKey:
  69310. return data;
  69311. }
  69312. const providerDef = data._def.providersByKey[tokenKey];
  69313. let injectableDef;
  69314. if (providerDef) {
  69315. let providerInstance = data._providers[providerDef.index];
  69316. if (providerInstance === undefined) {
  69317. providerInstance = data._providers[providerDef.index] =
  69318. _createProviderInstance(data, providerDef);
  69319. }
  69320. return providerInstance === UNDEFINED_VALUE ? undefined : providerInstance;
  69321. }
  69322. else if ((injectableDef = getInjectableDef(depDef.token)) && targetsModule(data, injectableDef)) {
  69323. const index = data._providers.length;
  69324. data._def.providers[index] = data._def.providersByKey[depDef.tokenKey] = {
  69325. flags: 1024 /* TypeFactoryProvider */ | 4096 /* LazyProvider */,
  69326. value: injectableDef.factory,
  69327. deps: [],
  69328. index,
  69329. token: depDef.token,
  69330. };
  69331. data._providers[index] = UNDEFINED_VALUE;
  69332. return (data._providers[index] =
  69333. _createProviderInstance(data, data._def.providersByKey[depDef.tokenKey]));
  69334. }
  69335. else if (depDef.flags & 4 /* Self */) {
  69336. return notFoundValue;
  69337. }
  69338. return data._parent.get(depDef.token, notFoundValue);
  69339. }
  69340. finally {
  69341. setCurrentInjector(former);
  69342. }
  69343. }
  69344. function moduleTransitivelyPresent(ngModule, scope) {
  69345. return ngModule._def.modules.indexOf(scope) > -1;
  69346. }
  69347. function targetsModule(ngModule, def) {
  69348. const providedIn = def.providedIn;
  69349. return providedIn != null &&
  69350. (providedIn === 'any' || providedIn === ngModule._def.scope ||
  69351. moduleTransitivelyPresent(ngModule, providedIn));
  69352. }
  69353. function _createProviderInstance(ngModule, providerDef) {
  69354. let injectable;
  69355. switch (providerDef.flags & 201347067 /* Types */) {
  69356. case 512 /* TypeClassProvider */:
  69357. injectable = _createClass(ngModule, providerDef.value, providerDef.deps);
  69358. break;
  69359. case 1024 /* TypeFactoryProvider */:
  69360. injectable = _callFactory(ngModule, providerDef.value, providerDef.deps);
  69361. break;
  69362. case 2048 /* TypeUseExistingProvider */:
  69363. injectable = resolveNgModuleDep(ngModule, providerDef.deps[0]);
  69364. break;
  69365. case 256 /* TypeValueProvider */:
  69366. injectable = providerDef.value;
  69367. break;
  69368. }
  69369. // The read of `ngOnDestroy` here is slightly expensive as it's megamorphic, so it should be
  69370. // avoided if possible. The sequence of checks here determines whether ngOnDestroy needs to be
  69371. // checked. It might not if the `injectable` isn't an object or if NodeFlags.OnDestroy is already
  69372. // set (ngOnDestroy was detected statically).
  69373. if (injectable !== UNDEFINED_VALUE && injectable !== null && typeof injectable === 'object' &&
  69374. !(providerDef.flags & 131072 /* OnDestroy */) && typeof injectable.ngOnDestroy === 'function') {
  69375. providerDef.flags |= 131072 /* OnDestroy */;
  69376. }
  69377. return injectable === undefined ? UNDEFINED_VALUE : injectable;
  69378. }
  69379. function _createClass(ngModule, ctor, deps) {
  69380. const len = deps.length;
  69381. switch (len) {
  69382. case 0:
  69383. return new ctor();
  69384. case 1:
  69385. return new ctor(resolveNgModuleDep(ngModule, deps[0]));
  69386. case 2:
  69387. return new ctor(resolveNgModuleDep(ngModule, deps[0]), resolveNgModuleDep(ngModule, deps[1]));
  69388. case 3:
  69389. return new ctor(resolveNgModuleDep(ngModule, deps[0]), resolveNgModuleDep(ngModule, deps[1]), resolveNgModuleDep(ngModule, deps[2]));
  69390. default:
  69391. const depValues = [];
  69392. for (let i = 0; i < len; i++) {
  69393. depValues[i] = resolveNgModuleDep(ngModule, deps[i]);
  69394. }
  69395. return new ctor(...depValues);
  69396. }
  69397. }
  69398. function _callFactory(ngModule, factory, deps) {
  69399. const len = deps.length;
  69400. switch (len) {
  69401. case 0:
  69402. return factory();
  69403. case 1:
  69404. return factory(resolveNgModuleDep(ngModule, deps[0]));
  69405. case 2:
  69406. return factory(resolveNgModuleDep(ngModule, deps[0]), resolveNgModuleDep(ngModule, deps[1]));
  69407. case 3:
  69408. return factory(resolveNgModuleDep(ngModule, deps[0]), resolveNgModuleDep(ngModule, deps[1]), resolveNgModuleDep(ngModule, deps[2]));
  69409. default:
  69410. const depValues = [];
  69411. for (let i = 0; i < len; i++) {
  69412. depValues[i] = resolveNgModuleDep(ngModule, deps[i]);
  69413. }
  69414. return factory(...depValues);
  69415. }
  69416. }
  69417. function callNgModuleLifecycle(ngModule, lifecycles) {
  69418. const def = ngModule._def;
  69419. const destroyed = new Set();
  69420. for (let i = 0; i < def.providers.length; i++) {
  69421. const provDef = def.providers[i];
  69422. if (provDef.flags & 131072 /* OnDestroy */) {
  69423. const instance = ngModule._providers[i];
  69424. if (instance && instance !== UNDEFINED_VALUE) {
  69425. const onDestroy = instance.ngOnDestroy;
  69426. if (typeof onDestroy === 'function' && !destroyed.has(instance)) {
  69427. onDestroy.apply(instance);
  69428. destroyed.add(instance);
  69429. }
  69430. }
  69431. }
  69432. }
  69433. }
  69434. /**
  69435. * @license
  69436. * Copyright Google LLC All Rights Reserved.
  69437. *
  69438. * Use of this source code is governed by an MIT-style license that can be
  69439. * found in the LICENSE file at https://angular.io/license
  69440. */
  69441. function attachEmbeddedView(parentView, elementData, viewIndex, view) {
  69442. let embeddedViews = elementData.viewContainer._embeddedViews;
  69443. if (viewIndex === null || viewIndex === undefined) {
  69444. viewIndex = embeddedViews.length;
  69445. }
  69446. view.viewContainerParent = parentView;
  69447. addToArray(embeddedViews, viewIndex, view);
  69448. attachProjectedView(elementData, view);
  69449. Services.dirtyParentQueries(view);
  69450. const prevView = viewIndex > 0 ? embeddedViews[viewIndex - 1] : null;
  69451. renderAttachEmbeddedView(elementData, prevView, view);
  69452. }
  69453. function attachProjectedView(vcElementData, view) {
  69454. const dvcElementData = declaredViewContainer(view);
  69455. if (!dvcElementData || dvcElementData === vcElementData ||
  69456. view.state & 16 /* IsProjectedView */) {
  69457. return;
  69458. }
  69459. // Note: For performance reasons, we
  69460. // - add a view to template._projectedViews only 1x throughout its lifetime,
  69461. // and remove it not until the view is destroyed.
  69462. // (hard, as when a parent view is attached/detached we would need to attach/detach all
  69463. // nested projected views as well, even across component boundaries).
  69464. // - don't track the insertion order of views in the projected views array
  69465. // (hard, as when the views of the same template are inserted different view containers)
  69466. view.state |= 16 /* IsProjectedView */;
  69467. let projectedViews = dvcElementData.template._projectedViews;
  69468. if (!projectedViews) {
  69469. projectedViews = dvcElementData.template._projectedViews = [];
  69470. }
  69471. projectedViews.push(view);
  69472. // Note: we are changing the NodeDef here as we cannot calculate
  69473. // the fact whether a template is used for projection during compilation.
  69474. markNodeAsProjectedTemplate(view.parent.def, view.parentNodeDef);
  69475. }
  69476. function markNodeAsProjectedTemplate(viewDef, nodeDef) {
  69477. if (nodeDef.flags & 4 /* ProjectedTemplate */) {
  69478. return;
  69479. }
  69480. viewDef.nodeFlags |= 4 /* ProjectedTemplate */;
  69481. nodeDef.flags |= 4 /* ProjectedTemplate */;
  69482. let parentNodeDef = nodeDef.parent;
  69483. while (parentNodeDef) {
  69484. parentNodeDef.childFlags |= 4 /* ProjectedTemplate */;
  69485. parentNodeDef = parentNodeDef.parent;
  69486. }
  69487. }
  69488. function detachEmbeddedView(elementData, viewIndex) {
  69489. const embeddedViews = elementData.viewContainer._embeddedViews;
  69490. if (viewIndex == null || viewIndex >= embeddedViews.length) {
  69491. viewIndex = embeddedViews.length - 1;
  69492. }
  69493. if (viewIndex < 0) {
  69494. return null;
  69495. }
  69496. const view = embeddedViews[viewIndex];
  69497. view.viewContainerParent = null;
  69498. removeFromArray(embeddedViews, viewIndex);
  69499. // See attachProjectedView for why we don't update projectedViews here.
  69500. Services.dirtyParentQueries(view);
  69501. renderDetachView$1(view);
  69502. return view;
  69503. }
  69504. function detachProjectedView(view) {
  69505. if (!(view.state & 16 /* IsProjectedView */)) {
  69506. return;
  69507. }
  69508. const dvcElementData = declaredViewContainer(view);
  69509. if (dvcElementData) {
  69510. const projectedViews = dvcElementData.template._projectedViews;
  69511. if (projectedViews) {
  69512. removeFromArray(projectedViews, projectedViews.indexOf(view));
  69513. Services.dirtyParentQueries(view);
  69514. }
  69515. }
  69516. }
  69517. function moveEmbeddedView(elementData, oldViewIndex, newViewIndex) {
  69518. const embeddedViews = elementData.viewContainer._embeddedViews;
  69519. const view = embeddedViews[oldViewIndex];
  69520. removeFromArray(embeddedViews, oldViewIndex);
  69521. if (newViewIndex == null) {
  69522. newViewIndex = embeddedViews.length;
  69523. }
  69524. addToArray(embeddedViews, newViewIndex, view);
  69525. // Note: Don't need to change projectedViews as the order in there
  69526. // as always invalid...
  69527. Services.dirtyParentQueries(view);
  69528. renderDetachView$1(view);
  69529. const prevView = newViewIndex > 0 ? embeddedViews[newViewIndex - 1] : null;
  69530. renderAttachEmbeddedView(elementData, prevView, view);
  69531. return view;
  69532. }
  69533. function renderAttachEmbeddedView(elementData, prevView, view) {
  69534. const prevRenderNode = prevView ? renderNode(prevView, prevView.def.lastRenderRootNode) : elementData.renderElement;
  69535. const parentNode = view.renderer.parentNode(prevRenderNode);
  69536. const nextSibling = view.renderer.nextSibling(prevRenderNode);
  69537. // Note: We can't check if `nextSibling` is present, as on WebWorkers it will always be!
  69538. // However, browsers automatically do `appendChild` when there is no `nextSibling`.
  69539. visitRootRenderNodes(view, 2 /* InsertBefore */, parentNode, nextSibling, undefined);
  69540. }
  69541. function renderDetachView$1(view) {
  69542. visitRootRenderNodes(view, 3 /* RemoveChild */, null, null, undefined);
  69543. }
  69544. /**
  69545. * @license
  69546. * Copyright Google LLC All Rights Reserved.
  69547. *
  69548. * Use of this source code is governed by an MIT-style license that can be
  69549. * found in the LICENSE file at https://angular.io/license
  69550. */
  69551. const EMPTY_CONTEXT = {};
  69552. // Attention: this function is called as top level function.
  69553. // Putting any logic in here will destroy closure tree shaking!
  69554. function createComponentFactory(selector, componentType, viewDefFactory, inputs, outputs, ngContentSelectors) {
  69555. return new ComponentFactory_(selector, componentType, viewDefFactory, inputs, outputs, ngContentSelectors);
  69556. }
  69557. function getComponentViewDefinitionFactory(componentFactory) {
  69558. return componentFactory.viewDefFactory;
  69559. }
  69560. class ComponentFactory_ extends ComponentFactory {
  69561. constructor(selector, componentType, viewDefFactory, _inputs, _outputs, ngContentSelectors) {
  69562. // Attention: this ctor is called as top level function.
  69563. // Putting any logic in here will destroy closure tree shaking!
  69564. super();
  69565. this.selector = selector;
  69566. this.componentType = componentType;
  69567. this._inputs = _inputs;
  69568. this._outputs = _outputs;
  69569. this.ngContentSelectors = ngContentSelectors;
  69570. this.viewDefFactory = viewDefFactory;
  69571. }
  69572. get inputs() {
  69573. const inputsArr = [];
  69574. const inputs = this._inputs;
  69575. for (let propName in inputs) {
  69576. const templateName = inputs[propName];
  69577. inputsArr.push({ propName, templateName });
  69578. }
  69579. return inputsArr;
  69580. }
  69581. get outputs() {
  69582. const outputsArr = [];
  69583. for (let propName in this._outputs) {
  69584. const templateName = this._outputs[propName];
  69585. outputsArr.push({ propName, templateName });
  69586. }
  69587. return outputsArr;
  69588. }
  69589. /**
  69590. * Creates a new component.
  69591. */
  69592. create(injector, projectableNodes, rootSelectorOrNode, ngModule) {
  69593. if (!ngModule) {
  69594. throw new Error('ngModule should be provided');
  69595. }
  69596. const viewDef = resolveDefinition(this.viewDefFactory);
  69597. const componentNodeIndex = viewDef.nodes[0].element.componentProvider.nodeIndex;
  69598. const view = Services.createRootView(injector, projectableNodes || [], rootSelectorOrNode, viewDef, ngModule, EMPTY_CONTEXT);
  69599. const component = asProviderData(view, componentNodeIndex).instance;
  69600. if (rootSelectorOrNode) {
  69601. view.renderer.setAttribute(asElementData(view, 0).renderElement, 'ng-version', VERSION.full);
  69602. }
  69603. return new ComponentRef_(view, new ViewRef_(view), component);
  69604. }
  69605. }
  69606. class ComponentRef_ extends ComponentRef {
  69607. constructor(_view, _viewRef, _component) {
  69608. super();
  69609. this._view = _view;
  69610. this._viewRef = _viewRef;
  69611. this._component = _component;
  69612. this._elDef = this._view.def.nodes[0];
  69613. this.hostView = _viewRef;
  69614. this.changeDetectorRef = _viewRef;
  69615. this.instance = _component;
  69616. }
  69617. get location() {
  69618. return new ElementRef(asElementData(this._view, this._elDef.nodeIndex).renderElement);
  69619. }
  69620. get injector() {
  69621. return new Injector_(this._view, this._elDef);
  69622. }
  69623. get componentType() {
  69624. return this._component.constructor;
  69625. }
  69626. destroy() {
  69627. this._viewRef.destroy();
  69628. }
  69629. onDestroy(callback) {
  69630. this._viewRef.onDestroy(callback);
  69631. }
  69632. }
  69633. function createViewContainerData(view, elDef, elData) {
  69634. return new ViewContainerRef_(view, elDef, elData);
  69635. }
  69636. class ViewContainerRef_ {
  69637. constructor(_view, _elDef, _data) {
  69638. this._view = _view;
  69639. this._elDef = _elDef;
  69640. this._data = _data;
  69641. /**
  69642. * @internal
  69643. */
  69644. this._embeddedViews = [];
  69645. }
  69646. get element() {
  69647. return new ElementRef(this._data.renderElement);
  69648. }
  69649. get injector() {
  69650. return new Injector_(this._view, this._elDef);
  69651. }
  69652. /** @deprecated No replacement */
  69653. get parentInjector() {
  69654. let view = this._view;
  69655. let elDef = this._elDef.parent;
  69656. while (!elDef && view) {
  69657. elDef = viewParentEl(view);
  69658. view = view.parent;
  69659. }
  69660. return view ? new Injector_(view, elDef) : new Injector_(this._view, null);
  69661. }
  69662. clear() {
  69663. const len = this._embeddedViews.length;
  69664. for (let i = len - 1; i >= 0; i--) {
  69665. const view = detachEmbeddedView(this._data, i);
  69666. Services.destroyView(view);
  69667. }
  69668. }
  69669. get(index) {
  69670. const view = this._embeddedViews[index];
  69671. if (view) {
  69672. const ref = new ViewRef_(view);
  69673. ref.attachToViewContainerRef(this);
  69674. return ref;
  69675. }
  69676. return null;
  69677. }
  69678. get length() {
  69679. return this._embeddedViews.length;
  69680. }
  69681. createEmbeddedView(templateRef, context, index) {
  69682. const viewRef = templateRef.createEmbeddedView(context || {});
  69683. this.insert(viewRef, index);
  69684. return viewRef;
  69685. }
  69686. createComponent(componentFactory, index, injector, projectableNodes, ngModuleRef) {
  69687. const contextInjector = injector || this.parentInjector;
  69688. if (!ngModuleRef && !(componentFactory instanceof ComponentFactoryBoundToModule)) {
  69689. ngModuleRef = contextInjector.get(NgModuleRef);
  69690. }
  69691. const componentRef = componentFactory.create(contextInjector, projectableNodes, undefined, ngModuleRef);
  69692. this.insert(componentRef.hostView, index);
  69693. return componentRef;
  69694. }
  69695. insert(viewRef, index) {
  69696. if (viewRef.destroyed) {
  69697. throw new Error('Cannot insert a destroyed View in a ViewContainer!');
  69698. }
  69699. const viewRef_ = viewRef;
  69700. const viewData = viewRef_._view;
  69701. attachEmbeddedView(this._view, this._data, index, viewData);
  69702. viewRef_.attachToViewContainerRef(this);
  69703. return viewRef;
  69704. }
  69705. move(viewRef, currentIndex) {
  69706. if (viewRef.destroyed) {
  69707. throw new Error('Cannot move a destroyed View in a ViewContainer!');
  69708. }
  69709. const previousIndex = this._embeddedViews.indexOf(viewRef._view);
  69710. moveEmbeddedView(this._data, previousIndex, currentIndex);
  69711. return viewRef;
  69712. }
  69713. indexOf(viewRef) {
  69714. return this._embeddedViews.indexOf(viewRef._view);
  69715. }
  69716. remove(index) {
  69717. const viewData = detachEmbeddedView(this._data, index);
  69718. if (viewData) {
  69719. Services.destroyView(viewData);
  69720. }
  69721. }
  69722. detach(index) {
  69723. const view = detachEmbeddedView(this._data, index);
  69724. return view ? new ViewRef_(view) : null;
  69725. }
  69726. }
  69727. function createChangeDetectorRef(view) {
  69728. return new ViewRef_(view);
  69729. }
  69730. class ViewRef_ {
  69731. constructor(_view) {
  69732. this._view = _view;
  69733. this._viewContainerRef = null;
  69734. this._appRef = null;
  69735. }
  69736. get rootNodes() {
  69737. return rootRenderNodes(this._view);
  69738. }
  69739. get context() {
  69740. return this._view.context;
  69741. }
  69742. get destroyed() {
  69743. return (this._view.state & 128 /* Destroyed */) !== 0;
  69744. }
  69745. markForCheck() {
  69746. markParentViewsForCheck(this._view);
  69747. }
  69748. detach() {
  69749. this._view.state &= ~4 /* Attached */;
  69750. }
  69751. detectChanges() {
  69752. const fs = this._view.root.rendererFactory;
  69753. if (fs.begin) {
  69754. fs.begin();
  69755. }
  69756. try {
  69757. Services.checkAndUpdateView(this._view);
  69758. }
  69759. finally {
  69760. if (fs.end) {
  69761. fs.end();
  69762. }
  69763. }
  69764. }
  69765. checkNoChanges() {
  69766. Services.checkNoChangesView(this._view);
  69767. }
  69768. reattach() {
  69769. this._view.state |= 4 /* Attached */;
  69770. }
  69771. onDestroy(callback) {
  69772. if (!this._view.disposables) {
  69773. this._view.disposables = [];
  69774. }
  69775. this._view.disposables.push(callback);
  69776. }
  69777. destroy() {
  69778. if (this._appRef) {
  69779. this._appRef.detachView(this);
  69780. }
  69781. else if (this._viewContainerRef) {
  69782. this._viewContainerRef.detach(this._viewContainerRef.indexOf(this));
  69783. }
  69784. Services.destroyView(this._view);
  69785. }
  69786. detachFromAppRef() {
  69787. this._appRef = null;
  69788. renderDetachView$1(this._view);
  69789. Services.dirtyParentQueries(this._view);
  69790. }
  69791. attachToAppRef(appRef) {
  69792. if (this._viewContainerRef) {
  69793. throw new Error('This view is already attached to a ViewContainer!');
  69794. }
  69795. this._appRef = appRef;
  69796. }
  69797. attachToViewContainerRef(vcRef) {
  69798. if (this._appRef) {
  69799. throw new Error('This view is already attached directly to the ApplicationRef!');
  69800. }
  69801. this._viewContainerRef = vcRef;
  69802. }
  69803. }
  69804. function createTemplateData(view, def) {
  69805. return new TemplateRef_(view, def);
  69806. }
  69807. class TemplateRef_ extends TemplateRef {
  69808. constructor(_parentView, _def) {
  69809. super();
  69810. this._parentView = _parentView;
  69811. this._def = _def;
  69812. }
  69813. createEmbeddedView(context) {
  69814. return new ViewRef_(Services.createEmbeddedView(this._parentView, this._def, this._def.element.template, context));
  69815. }
  69816. get elementRef() {
  69817. return new ElementRef(asElementData(this._parentView, this._def.nodeIndex).renderElement);
  69818. }
  69819. }
  69820. function createInjector$1(view, elDef) {
  69821. return new Injector_(view, elDef);
  69822. }
  69823. class Injector_ {
  69824. constructor(view, elDef) {
  69825. this.view = view;
  69826. this.elDef = elDef;
  69827. }
  69828. get(token, notFoundValue = Injector.THROW_IF_NOT_FOUND) {
  69829. const allowPrivateServices = this.elDef ? (this.elDef.flags & 33554432 /* ComponentView */) !== 0 : false;
  69830. return Services.resolveDep(this.view, this.elDef, allowPrivateServices, { flags: 0 /* None */, token, tokenKey: tokenKey(token) }, notFoundValue);
  69831. }
  69832. }
  69833. function nodeValue(view, index) {
  69834. const def = view.def.nodes[index];
  69835. if (def.flags & 1 /* TypeElement */) {
  69836. const elData = asElementData(view, def.nodeIndex);
  69837. return def.element.template ? elData.template : elData.renderElement;
  69838. }
  69839. else if (def.flags & 2 /* TypeText */) {
  69840. return asTextData(view, def.nodeIndex).renderText;
  69841. }
  69842. else if (def.flags & (20224 /* CatProvider */ | 16 /* TypePipe */)) {
  69843. return asProviderData(view, def.nodeIndex).instance;
  69844. }
  69845. throw new Error(`Illegal state: read nodeValue for node index ${index}`);
  69846. }
  69847. function createNgModuleRef(moduleType, parent, bootstrapComponents, def) {
  69848. return new NgModuleRef_(moduleType, parent, bootstrapComponents, def);
  69849. }
  69850. class NgModuleRef_ {
  69851. constructor(_moduleType, _parent, _bootstrapComponents, _def) {
  69852. this._moduleType = _moduleType;
  69853. this._parent = _parent;
  69854. this._bootstrapComponents = _bootstrapComponents;
  69855. this._def = _def;
  69856. this._destroyListeners = [];
  69857. this._destroyed = false;
  69858. this.injector = this;
  69859. initNgModule(this);
  69860. }
  69861. get(token, notFoundValue = Injector.THROW_IF_NOT_FOUND, injectFlags = InjectFlags.Default) {
  69862. let flags = 0 /* None */;
  69863. if (injectFlags & InjectFlags.SkipSelf) {
  69864. flags |= 1 /* SkipSelf */;
  69865. }
  69866. else if (injectFlags & InjectFlags.Self) {
  69867. flags |= 4 /* Self */;
  69868. }
  69869. return resolveNgModuleDep(this, { token: token, tokenKey: tokenKey(token), flags: flags }, notFoundValue);
  69870. }
  69871. get instance() {
  69872. return this.get(this._moduleType);
  69873. }
  69874. get componentFactoryResolver() {
  69875. return this.get(ComponentFactoryResolver);
  69876. }
  69877. destroy() {
  69878. if (this._destroyed) {
  69879. throw new Error(`The ng module ${stringify(this.instance.constructor)} has already been destroyed.`);
  69880. }
  69881. this._destroyed = true;
  69882. callNgModuleLifecycle(this, 131072 /* OnDestroy */);
  69883. this._destroyListeners.forEach((listener) => listener());
  69884. }
  69885. onDestroy(callback) {
  69886. this._destroyListeners.push(callback);
  69887. }
  69888. }
  69889. /**
  69890. * @license
  69891. * Copyright Google LLC All Rights Reserved.
  69892. *
  69893. * Use of this source code is governed by an MIT-style license that can be
  69894. * found in the LICENSE file at https://angular.io/license
  69895. */
  69896. const Renderer2TokenKey = tokenKey(Renderer2);
  69897. const ElementRefTokenKey = tokenKey(ElementRef);
  69898. const ViewContainerRefTokenKey = tokenKey(ViewContainerRef);
  69899. const TemplateRefTokenKey = tokenKey(TemplateRef);
  69900. const ChangeDetectorRefTokenKey = tokenKey(ChangeDetectorRef);
  69901. const InjectorRefTokenKey$1 = tokenKey(Injector);
  69902. const INJECTORRefTokenKey$1 = tokenKey(INJECTOR$1);
  69903. function directiveDef(checkIndex, flags, matchedQueries, childCount, ctor, deps, props, outputs) {
  69904. const bindings = [];
  69905. if (props) {
  69906. for (let prop in props) {
  69907. const [bindingIndex, nonMinifiedName] = props[prop];
  69908. bindings[bindingIndex] = {
  69909. flags: 8 /* TypeProperty */,
  69910. name: prop,
  69911. nonMinifiedName,
  69912. ns: null,
  69913. securityContext: null,
  69914. suffix: null
  69915. };
  69916. }
  69917. }
  69918. const outputDefs = [];
  69919. if (outputs) {
  69920. for (let propName in outputs) {
  69921. outputDefs.push({ type: 1 /* DirectiveOutput */, propName, target: null, eventName: outputs[propName] });
  69922. }
  69923. }
  69924. flags |= 16384 /* TypeDirective */;
  69925. return _def(checkIndex, flags, matchedQueries, childCount, ctor, ctor, deps, bindings, outputDefs);
  69926. }
  69927. function pipeDef(flags, ctor, deps) {
  69928. flags |= 16 /* TypePipe */;
  69929. return _def(-1, flags, null, 0, ctor, ctor, deps);
  69930. }
  69931. function providerDef(flags, matchedQueries, token, value, deps) {
  69932. return _def(-1, flags, matchedQueries, 0, token, value, deps);
  69933. }
  69934. function _def(checkIndex, flags, matchedQueriesDsl, childCount, token, value, deps, bindings, outputs) {
  69935. const { matchedQueries, references, matchedQueryIds } = splitMatchedQueriesDsl(matchedQueriesDsl);
  69936. if (!outputs) {
  69937. outputs = [];
  69938. }
  69939. if (!bindings) {
  69940. bindings = [];
  69941. }
  69942. // Need to resolve forwardRefs as e.g. for `useValue` we
  69943. // lowered the expression and then stopped evaluating it,
  69944. // i.e. also didn't unwrap it.
  69945. value = resolveForwardRef(value);
  69946. const depDefs = splitDepsDsl(deps, stringify(token));
  69947. return {
  69948. // will bet set by the view definition
  69949. nodeIndex: -1,
  69950. parent: null,
  69951. renderParent: null,
  69952. bindingIndex: -1,
  69953. outputIndex: -1,
  69954. // regular values
  69955. checkIndex,
  69956. flags,
  69957. childFlags: 0,
  69958. directChildFlags: 0,
  69959. childMatchedQueries: 0,
  69960. matchedQueries,
  69961. matchedQueryIds,
  69962. references,
  69963. ngContentIndex: -1,
  69964. childCount,
  69965. bindings,
  69966. bindingFlags: calcBindingFlags(bindings),
  69967. outputs,
  69968. element: null,
  69969. provider: { token, value, deps: depDefs },
  69970. text: null,
  69971. query: null,
  69972. ngContent: null
  69973. };
  69974. }
  69975. function createProviderInstance(view, def) {
  69976. return _createProviderInstance$1(view, def);
  69977. }
  69978. function createPipeInstance(view, def) {
  69979. // deps are looked up from component.
  69980. let compView = view;
  69981. while (compView.parent && !isComponentView(compView)) {
  69982. compView = compView.parent;
  69983. }
  69984. // pipes can see the private services of the component
  69985. const allowPrivateServices = true;
  69986. // pipes are always eager and classes!
  69987. return createClass(compView.parent, viewParentEl(compView), allowPrivateServices, def.provider.value, def.provider.deps);
  69988. }
  69989. function createDirectiveInstance(view, def) {
  69990. // components can see other private services, other directives can't.
  69991. const allowPrivateServices = (def.flags & 32768 /* Component */) > 0;
  69992. // directives are always eager and classes!
  69993. const instance = createClass(view, def.parent, allowPrivateServices, def.provider.value, def.provider.deps);
  69994. if (def.outputs.length) {
  69995. for (let i = 0; i < def.outputs.length; i++) {
  69996. const output = def.outputs[i];
  69997. const outputObservable = instance[output.propName];
  69998. if (isObservable(outputObservable)) {
  69999. const subscription = outputObservable.subscribe(eventHandlerClosure(view, def.parent.nodeIndex, output.eventName));
  70000. view.disposables[def.outputIndex + i] = subscription.unsubscribe.bind(subscription);
  70001. }
  70002. else {
  70003. throw new Error(`@Output ${output.propName} not initialized in '${instance.constructor.name}'.`);
  70004. }
  70005. }
  70006. }
  70007. return instance;
  70008. }
  70009. function eventHandlerClosure(view, index, eventName) {
  70010. return (event) => dispatchEvent(view, index, eventName, event);
  70011. }
  70012. function checkAndUpdateDirectiveInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  70013. const providerData = asProviderData(view, def.nodeIndex);
  70014. const directive = providerData.instance;
  70015. let changed = false;
  70016. let changes = undefined;
  70017. const bindLen = def.bindings.length;
  70018. if (bindLen > 0 && checkBinding(view, def, 0, v0)) {
  70019. changed = true;
  70020. changes = updateProp(view, providerData, def, 0, v0, changes);
  70021. }
  70022. if (bindLen > 1 && checkBinding(view, def, 1, v1)) {
  70023. changed = true;
  70024. changes = updateProp(view, providerData, def, 1, v1, changes);
  70025. }
  70026. if (bindLen > 2 && checkBinding(view, def, 2, v2)) {
  70027. changed = true;
  70028. changes = updateProp(view, providerData, def, 2, v2, changes);
  70029. }
  70030. if (bindLen > 3 && checkBinding(view, def, 3, v3)) {
  70031. changed = true;
  70032. changes = updateProp(view, providerData, def, 3, v3, changes);
  70033. }
  70034. if (bindLen > 4 && checkBinding(view, def, 4, v4)) {
  70035. changed = true;
  70036. changes = updateProp(view, providerData, def, 4, v4, changes);
  70037. }
  70038. if (bindLen > 5 && checkBinding(view, def, 5, v5)) {
  70039. changed = true;
  70040. changes = updateProp(view, providerData, def, 5, v5, changes);
  70041. }
  70042. if (bindLen > 6 && checkBinding(view, def, 6, v6)) {
  70043. changed = true;
  70044. changes = updateProp(view, providerData, def, 6, v6, changes);
  70045. }
  70046. if (bindLen > 7 && checkBinding(view, def, 7, v7)) {
  70047. changed = true;
  70048. changes = updateProp(view, providerData, def, 7, v7, changes);
  70049. }
  70050. if (bindLen > 8 && checkBinding(view, def, 8, v8)) {
  70051. changed = true;
  70052. changes = updateProp(view, providerData, def, 8, v8, changes);
  70053. }
  70054. if (bindLen > 9 && checkBinding(view, def, 9, v9)) {
  70055. changed = true;
  70056. changes = updateProp(view, providerData, def, 9, v9, changes);
  70057. }
  70058. if (changes) {
  70059. directive.ngOnChanges(changes);
  70060. }
  70061. if ((def.flags & 65536 /* OnInit */) &&
  70062. shouldCallLifecycleInitHook(view, 256 /* InitState_CallingOnInit */, def.nodeIndex)) {
  70063. directive.ngOnInit();
  70064. }
  70065. if (def.flags & 262144 /* DoCheck */) {
  70066. directive.ngDoCheck();
  70067. }
  70068. return changed;
  70069. }
  70070. function checkAndUpdateDirectiveDynamic(view, def, values) {
  70071. const providerData = asProviderData(view, def.nodeIndex);
  70072. const directive = providerData.instance;
  70073. let changed = false;
  70074. let changes = undefined;
  70075. for (let i = 0; i < values.length; i++) {
  70076. if (checkBinding(view, def, i, values[i])) {
  70077. changed = true;
  70078. changes = updateProp(view, providerData, def, i, values[i], changes);
  70079. }
  70080. }
  70081. if (changes) {
  70082. directive.ngOnChanges(changes);
  70083. }
  70084. if ((def.flags & 65536 /* OnInit */) &&
  70085. shouldCallLifecycleInitHook(view, 256 /* InitState_CallingOnInit */, def.nodeIndex)) {
  70086. directive.ngOnInit();
  70087. }
  70088. if (def.flags & 262144 /* DoCheck */) {
  70089. directive.ngDoCheck();
  70090. }
  70091. return changed;
  70092. }
  70093. function _createProviderInstance$1(view, def) {
  70094. // private services can see other private services
  70095. const allowPrivateServices = (def.flags & 8192 /* PrivateProvider */) > 0;
  70096. const providerDef = def.provider;
  70097. switch (def.flags & 201347067 /* Types */) {
  70098. case 512 /* TypeClassProvider */:
  70099. return createClass(view, def.parent, allowPrivateServices, providerDef.value, providerDef.deps);
  70100. case 1024 /* TypeFactoryProvider */:
  70101. return callFactory(view, def.parent, allowPrivateServices, providerDef.value, providerDef.deps);
  70102. case 2048 /* TypeUseExistingProvider */:
  70103. return resolveDep(view, def.parent, allowPrivateServices, providerDef.deps[0]);
  70104. case 256 /* TypeValueProvider */:
  70105. return providerDef.value;
  70106. }
  70107. }
  70108. function createClass(view, elDef, allowPrivateServices, ctor, deps) {
  70109. const len = deps.length;
  70110. switch (len) {
  70111. case 0:
  70112. return new ctor();
  70113. case 1:
  70114. return new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]));
  70115. case 2:
  70116. return new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]));
  70117. case 3:
  70118. return new ctor(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]), resolveDep(view, elDef, allowPrivateServices, deps[2]));
  70119. default:
  70120. const depValues = [];
  70121. for (let i = 0; i < len; i++) {
  70122. depValues.push(resolveDep(view, elDef, allowPrivateServices, deps[i]));
  70123. }
  70124. return new ctor(...depValues);
  70125. }
  70126. }
  70127. function callFactory(view, elDef, allowPrivateServices, factory, deps) {
  70128. const len = deps.length;
  70129. switch (len) {
  70130. case 0:
  70131. return factory();
  70132. case 1:
  70133. return factory(resolveDep(view, elDef, allowPrivateServices, deps[0]));
  70134. case 2:
  70135. return factory(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]));
  70136. case 3:
  70137. return factory(resolveDep(view, elDef, allowPrivateServices, deps[0]), resolveDep(view, elDef, allowPrivateServices, deps[1]), resolveDep(view, elDef, allowPrivateServices, deps[2]));
  70138. default:
  70139. const depValues = [];
  70140. for (let i = 0; i < len; i++) {
  70141. depValues.push(resolveDep(view, elDef, allowPrivateServices, deps[i]));
  70142. }
  70143. return factory(...depValues);
  70144. }
  70145. }
  70146. // This default value is when checking the hierarchy for a token.
  70147. //
  70148. // It means both:
  70149. // - the token is not provided by the current injector,
  70150. // - only the element injectors should be checked (ie do not check module injectors
  70151. //
  70152. // mod1
  70153. // /
  70154. // el1 mod2
  70155. // \ /
  70156. // el2
  70157. //
  70158. // When requesting el2.injector.get(token), we should check in the following order and return the
  70159. // first found value:
  70160. // - el2.injector.get(token, default)
  70161. // - el1.injector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) -> do not check the module
  70162. // - mod2.injector.get(token, default)
  70163. const NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR = {};
  70164. function resolveDep(view, elDef, allowPrivateServices, depDef, notFoundValue = Injector.THROW_IF_NOT_FOUND) {
  70165. if (depDef.flags & 8 /* Value */) {
  70166. return depDef.token;
  70167. }
  70168. const startView = view;
  70169. if (depDef.flags & 2 /* Optional */) {
  70170. notFoundValue = null;
  70171. }
  70172. const tokenKey = depDef.tokenKey;
  70173. if (tokenKey === ChangeDetectorRefTokenKey) {
  70174. // directives on the same element as a component should be able to control the change detector
  70175. // of that component as well.
  70176. allowPrivateServices = !!(elDef && elDef.element.componentView);
  70177. }
  70178. if (elDef && (depDef.flags & 1 /* SkipSelf */)) {
  70179. allowPrivateServices = false;
  70180. elDef = elDef.parent;
  70181. }
  70182. let searchView = view;
  70183. while (searchView) {
  70184. if (elDef) {
  70185. switch (tokenKey) {
  70186. case Renderer2TokenKey: {
  70187. const compView = findCompView(searchView, elDef, allowPrivateServices);
  70188. return compView.renderer;
  70189. }
  70190. case ElementRefTokenKey:
  70191. return new ElementRef(asElementData(searchView, elDef.nodeIndex).renderElement);
  70192. case ViewContainerRefTokenKey:
  70193. return asElementData(searchView, elDef.nodeIndex).viewContainer;
  70194. case TemplateRefTokenKey: {
  70195. if (elDef.element.template) {
  70196. return asElementData(searchView, elDef.nodeIndex).template;
  70197. }
  70198. break;
  70199. }
  70200. case ChangeDetectorRefTokenKey: {
  70201. let cdView = findCompView(searchView, elDef, allowPrivateServices);
  70202. return createChangeDetectorRef(cdView);
  70203. }
  70204. case InjectorRefTokenKey$1:
  70205. case INJECTORRefTokenKey$1:
  70206. return createInjector$1(searchView, elDef);
  70207. default:
  70208. const providerDef = (allowPrivateServices ? elDef.element.allProviders :
  70209. elDef.element.publicProviders)[tokenKey];
  70210. if (providerDef) {
  70211. let providerData = asProviderData(searchView, providerDef.nodeIndex);
  70212. if (!providerData) {
  70213. providerData = { instance: _createProviderInstance$1(searchView, providerDef) };
  70214. searchView.nodes[providerDef.nodeIndex] = providerData;
  70215. }
  70216. return providerData.instance;
  70217. }
  70218. }
  70219. }
  70220. allowPrivateServices = isComponentView(searchView);
  70221. elDef = viewParentEl(searchView);
  70222. searchView = searchView.parent;
  70223. if (depDef.flags & 4 /* Self */) {
  70224. searchView = null;
  70225. }
  70226. }
  70227. const value = startView.root.injector.get(depDef.token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR);
  70228. if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR ||
  70229. notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {
  70230. // Return the value from the root element injector when
  70231. // - it provides it
  70232. // (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
  70233. // - the module injector should not be checked
  70234. // (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
  70235. return value;
  70236. }
  70237. return startView.root.ngModule.injector.get(depDef.token, notFoundValue);
  70238. }
  70239. function findCompView(view, elDef, allowPrivateServices) {
  70240. let compView;
  70241. if (allowPrivateServices) {
  70242. compView = asElementData(view, elDef.nodeIndex).componentView;
  70243. }
  70244. else {
  70245. compView = view;
  70246. while (compView.parent && !isComponentView(compView)) {
  70247. compView = compView.parent;
  70248. }
  70249. }
  70250. return compView;
  70251. }
  70252. function updateProp(view, providerData, def, bindingIdx, value, changes) {
  70253. if (def.flags & 32768 /* Component */) {
  70254. const compView = asElementData(view, def.parent.nodeIndex).componentView;
  70255. if (compView.def.flags & 2 /* OnPush */) {
  70256. compView.state |= 8 /* ChecksEnabled */;
  70257. }
  70258. }
  70259. const binding = def.bindings[bindingIdx];
  70260. const propName = binding.name;
  70261. // Note: This is still safe with Closure Compiler as
  70262. // the user passed in the property name as an object has to `providerDef`,
  70263. // so Closure Compiler will have renamed the property correctly already.
  70264. providerData.instance[propName] = value;
  70265. if (def.flags & 524288 /* OnChanges */) {
  70266. changes = changes || {};
  70267. const oldValue = WrappedValue.unwrap(view.oldValues[def.bindingIndex + bindingIdx]);
  70268. const binding = def.bindings[bindingIdx];
  70269. changes[binding.nonMinifiedName] =
  70270. new SimpleChange(oldValue, value, (view.state & 2 /* FirstCheck */) !== 0);
  70271. }
  70272. view.oldValues[def.bindingIndex + bindingIdx] = value;
  70273. return changes;
  70274. }
  70275. // This function calls the ngAfterContentCheck, ngAfterContentInit,
  70276. // ngAfterViewCheck, and ngAfterViewInit lifecycle hooks (depending on the node
  70277. // flags in lifecycle). Unlike ngDoCheck, ngOnChanges and ngOnInit, which are
  70278. // called during a pre-order traversal of the view tree (that is calling the
  70279. // parent hooks before the child hooks) these events are sent in using a
  70280. // post-order traversal of the tree (children before parents). This changes the
  70281. // meaning of initIndex in the view state. For ngOnInit, initIndex tracks the
  70282. // expected nodeIndex which a ngOnInit should be called. When sending
  70283. // ngAfterContentInit and ngAfterViewInit it is the expected count of
  70284. // ngAfterContentInit or ngAfterViewInit methods that have been called. This
  70285. // ensure that despite being called recursively or after picking up after an
  70286. // exception, the ngAfterContentInit or ngAfterViewInit will be called on the
  70287. // correct nodes. Consider for example, the following (where E is an element
  70288. // and D is a directive)
  70289. // Tree: pre-order index post-order index
  70290. // E1 0 6
  70291. // E2 1 1
  70292. // D3 2 0
  70293. // E4 3 5
  70294. // E5 4 4
  70295. // E6 5 2
  70296. // E7 6 3
  70297. // As can be seen, the post-order index has an unclear relationship to the
  70298. // pre-order index (postOrderIndex === preOrderIndex - parentCount +
  70299. // childCount). Since number of calls to ngAfterContentInit and ngAfterViewInit
  70300. // are stable (will be the same for the same view regardless of exceptions or
  70301. // recursion) we just need to count them which will roughly correspond to the
  70302. // post-order index (it skips elements and directives that do not have
  70303. // lifecycle hooks).
  70304. //
  70305. // For example, if an exception is raised in the E6.onAfterViewInit() the
  70306. // initIndex is left at 3 (by shouldCallLifecycleInitHook() which set it to
  70307. // initIndex + 1). When checkAndUpdateView() is called again D3, E2 and E6 will
  70308. // not have their ngAfterViewInit() called but, starting with E7, the rest of
  70309. // the view will begin getting ngAfterViewInit() called until a check and
  70310. // pass is complete.
  70311. //
  70312. // This algorthim also handles recursion. Consider if E4's ngAfterViewInit()
  70313. // indirectly calls E1's ChangeDetectorRef.detectChanges(). The expected
  70314. // initIndex is set to 6, the recusive checkAndUpdateView() starts walk again.
  70315. // D3, E2, E6, E7, E5 and E4 are skipped, ngAfterViewInit() is called on E1.
  70316. // When the recursion returns the initIndex will be 7 so E1 is skipped as it
  70317. // has already been called in the recursively called checkAnUpdateView().
  70318. function callLifecycleHooksChildrenFirst(view, lifecycles) {
  70319. if (!(view.def.nodeFlags & lifecycles)) {
  70320. return;
  70321. }
  70322. const nodes = view.def.nodes;
  70323. let initIndex = 0;
  70324. for (let i = 0; i < nodes.length; i++) {
  70325. const nodeDef = nodes[i];
  70326. let parent = nodeDef.parent;
  70327. if (!parent && nodeDef.flags & lifecycles) {
  70328. // matching root node (e.g. a pipe)
  70329. callProviderLifecycles(view, i, nodeDef.flags & lifecycles, initIndex++);
  70330. }
  70331. if ((nodeDef.childFlags & lifecycles) === 0) {
  70332. // no child matches one of the lifecycles
  70333. i += nodeDef.childCount;
  70334. }
  70335. while (parent && (parent.flags & 1 /* TypeElement */) &&
  70336. i === parent.nodeIndex + parent.childCount) {
  70337. // last child of an element
  70338. if (parent.directChildFlags & lifecycles) {
  70339. initIndex = callElementProvidersLifecycles(view, parent, lifecycles, initIndex);
  70340. }
  70341. parent = parent.parent;
  70342. }
  70343. }
  70344. }
  70345. function callElementProvidersLifecycles(view, elDef, lifecycles, initIndex) {
  70346. for (let i = elDef.nodeIndex + 1; i <= elDef.nodeIndex + elDef.childCount; i++) {
  70347. const nodeDef = view.def.nodes[i];
  70348. if (nodeDef.flags & lifecycles) {
  70349. callProviderLifecycles(view, i, nodeDef.flags & lifecycles, initIndex++);
  70350. }
  70351. // only visit direct children
  70352. i += nodeDef.childCount;
  70353. }
  70354. return initIndex;
  70355. }
  70356. function callProviderLifecycles(view, index, lifecycles, initIndex) {
  70357. const providerData = asProviderData(view, index);
  70358. if (!providerData) {
  70359. return;
  70360. }
  70361. const provider = providerData.instance;
  70362. if (!provider) {
  70363. return;
  70364. }
  70365. Services.setCurrentNode(view, index);
  70366. if (lifecycles & 1048576 /* AfterContentInit */ &&
  70367. shouldCallLifecycleInitHook(view, 512 /* InitState_CallingAfterContentInit */, initIndex)) {
  70368. provider.ngAfterContentInit();
  70369. }
  70370. if (lifecycles & 2097152 /* AfterContentChecked */) {
  70371. provider.ngAfterContentChecked();
  70372. }
  70373. if (lifecycles & 4194304 /* AfterViewInit */ &&
  70374. shouldCallLifecycleInitHook(view, 768 /* InitState_CallingAfterViewInit */, initIndex)) {
  70375. provider.ngAfterViewInit();
  70376. }
  70377. if (lifecycles & 8388608 /* AfterViewChecked */) {
  70378. provider.ngAfterViewChecked();
  70379. }
  70380. if (lifecycles & 131072 /* OnDestroy */) {
  70381. provider.ngOnDestroy();
  70382. }
  70383. }
  70384. /**
  70385. * @license
  70386. * Copyright Google LLC All Rights Reserved.
  70387. *
  70388. * Use of this source code is governed by an MIT-style license that can be
  70389. * found in the LICENSE file at https://angular.io/license
  70390. */
  70391. class ComponentFactoryResolver$1 extends ComponentFactoryResolver {
  70392. /**
  70393. * @param ngModule The NgModuleRef to which all resolved factories are bound.
  70394. */
  70395. constructor(ngModule) {
  70396. super();
  70397. this.ngModule = ngModule;
  70398. }
  70399. resolveComponentFactory(component) {
  70400. ngDevMode && assertComponentType(component);
  70401. const componentDef = getComponentDef(component);
  70402. return new ComponentFactory$1(componentDef, this.ngModule);
  70403. }
  70404. }
  70405. function toRefArray(map) {
  70406. const array = [];
  70407. for (let nonMinified in map) {
  70408. if (map.hasOwnProperty(nonMinified)) {
  70409. const minified = map[nonMinified];
  70410. array.push({ propName: minified, templateName: nonMinified });
  70411. }
  70412. }
  70413. return array;
  70414. }
  70415. function getNamespace$1(elementName) {
  70416. const name = elementName.toLowerCase();
  70417. return name === 'svg' ? SVG_NAMESPACE : (name === 'math' ? MATH_ML_NAMESPACE : null);
  70418. }
  70419. /**
  70420. * A change detection scheduler token for {@link RootContext}. This token is the default value used
  70421. * for the default `RootContext` found in the {@link ROOT_CONTEXT} token.
  70422. */
  70423. const SCHEDULER = new InjectionToken('SCHEDULER_TOKEN', {
  70424. providedIn: 'root',
  70425. factory: () => defaultScheduler,
  70426. });
  70427. function createChainedInjector(rootViewInjector, moduleInjector) {
  70428. return {
  70429. get: (token, notFoundValue, flags) => {
  70430. const value = rootViewInjector.get(token, NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR, flags);
  70431. if (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR ||
  70432. notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR) {
  70433. // Return the value from the root element injector when
  70434. // - it provides it
  70435. // (value !== NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
  70436. // - the module injector should not be checked
  70437. // (notFoundValue === NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR)
  70438. return value;
  70439. }
  70440. return moduleInjector.get(token, notFoundValue, flags);
  70441. }
  70442. };
  70443. }
  70444. /**
  70445. * Render3 implementation of {@link viewEngine_ComponentFactory}.
  70446. */
  70447. class ComponentFactory$1 extends ComponentFactory {
  70448. /**
  70449. * @param componentDef The component definition.
  70450. * @param ngModule The NgModuleRef to which the factory is bound.
  70451. */
  70452. constructor(componentDef, ngModule) {
  70453. super();
  70454. this.componentDef = componentDef;
  70455. this.ngModule = ngModule;
  70456. this.componentType = componentDef.type;
  70457. this.selector = stringifyCSSSelectorList(componentDef.selectors);
  70458. this.ngContentSelectors =
  70459. componentDef.ngContentSelectors ? componentDef.ngContentSelectors : [];
  70460. this.isBoundToModule = !!ngModule;
  70461. }
  70462. get inputs() {
  70463. return toRefArray(this.componentDef.inputs);
  70464. }
  70465. get outputs() {
  70466. return toRefArray(this.componentDef.outputs);
  70467. }
  70468. create(injector, projectableNodes, rootSelectorOrNode, ngModule) {
  70469. ngModule = ngModule || this.ngModule;
  70470. const rootViewInjector = ngModule ? createChainedInjector(injector, ngModule.injector) : injector;
  70471. const rendererFactory = rootViewInjector.get(RendererFactory2, domRendererFactory3);
  70472. const sanitizer = rootViewInjector.get(Sanitizer, null);
  70473. const hostRenderer = rendererFactory.createRenderer(null, this.componentDef);
  70474. // Determine a tag name used for creating host elements when this component is created
  70475. // dynamically. Default to 'div' if this component did not specify any tag name in its selector.
  70476. const elementName = this.componentDef.selectors[0][0] || 'div';
  70477. const hostRNode = rootSelectorOrNode ?
  70478. locateHostElement(hostRenderer, rootSelectorOrNode, this.componentDef.encapsulation) :
  70479. createElementNode(rendererFactory.createRenderer(null, this.componentDef), elementName, getNamespace$1(elementName));
  70480. const rootFlags = this.componentDef.onPush ? 64 /* Dirty */ | 512 /* IsRoot */ :
  70481. 16 /* CheckAlways */ | 512 /* IsRoot */;
  70482. const rootContext = createRootContext();
  70483. // Create the root view. Uses empty TView and ContentTemplate.
  70484. const rootTView = createTView(0 /* Root */, null, null, 1, 0, null, null, null, null, null);
  70485. const rootLView = createLView(null, rootTView, rootContext, rootFlags, null, null, rendererFactory, hostRenderer, sanitizer, rootViewInjector);
  70486. // rootView is the parent when bootstrapping
  70487. // TODO(misko): it looks like we are entering view here but we don't really need to as
  70488. // `renderView` does that. However as the code is written it is needed because
  70489. // `createRootComponentView` and `createRootComponent` both read global state. Fixing those
  70490. // issues would allow us to drop this.
  70491. enterView(rootLView);
  70492. let component;
  70493. let tElementNode;
  70494. try {
  70495. const componentView = createRootComponentView(hostRNode, this.componentDef, rootLView, rendererFactory, hostRenderer);
  70496. if (hostRNode) {
  70497. if (rootSelectorOrNode) {
  70498. setUpAttributes(hostRenderer, hostRNode, ['ng-version', VERSION.full]);
  70499. }
  70500. else {
  70501. // If host element is created as a part of this function call (i.e. `rootSelectorOrNode`
  70502. // is not defined), also apply attributes and classes extracted from component selector.
  70503. // Extract attributes and classes from the first selector only to match VE behavior.
  70504. const { attrs, classes } = extractAttrsAndClassesFromSelector(this.componentDef.selectors[0]);
  70505. if (attrs) {
  70506. setUpAttributes(hostRenderer, hostRNode, attrs);
  70507. }
  70508. if (classes && classes.length > 0) {
  70509. writeDirectClass(hostRenderer, hostRNode, classes.join(' '));
  70510. }
  70511. }
  70512. }
  70513. tElementNode = getTNode(rootTView, HEADER_OFFSET);
  70514. if (projectableNodes !== undefined) {
  70515. const projection = tElementNode.projection = [];
  70516. for (let i = 0; i < this.ngContentSelectors.length; i++) {
  70517. const nodesforSlot = projectableNodes[i];
  70518. // Projectable nodes can be passed as array of arrays or an array of iterables (ngUpgrade
  70519. // case). Here we do normalize passed data structure to be an array of arrays to avoid
  70520. // complex checks down the line.
  70521. // We also normalize the length of the passed in projectable nodes (to match the number of
  70522. // <ng-container> slots defined by a component).
  70523. projection.push(nodesforSlot != null ? Array.from(nodesforSlot) : null);
  70524. }
  70525. }
  70526. // TODO: should LifecycleHooksFeature and other host features be generated by the compiler and
  70527. // executed here?
  70528. // Angular 5 reference: https://stackblitz.com/edit/lifecycle-hooks-vcref
  70529. component = createRootComponent(componentView, this.componentDef, rootLView, rootContext, [LifecycleHooksFeature]);
  70530. renderView(rootTView, rootLView, null);
  70531. }
  70532. finally {
  70533. leaveView();
  70534. }
  70535. return new ComponentRef$1(this.componentType, component, createElementRef(tElementNode, rootLView), rootLView, tElementNode);
  70536. }
  70537. }
  70538. const componentFactoryResolver = new ComponentFactoryResolver$1();
  70539. /**
  70540. * Creates a ComponentFactoryResolver and stores it on the injector. Or, if the
  70541. * ComponentFactoryResolver
  70542. * already exists, retrieves the existing ComponentFactoryResolver.
  70543. *
  70544. * @returns The ComponentFactoryResolver instance to use
  70545. */
  70546. function injectComponentFactoryResolver() {
  70547. return componentFactoryResolver;
  70548. }
  70549. /**
  70550. * Represents an instance of a Component created via a {@link ComponentFactory}.
  70551. *
  70552. * `ComponentRef` provides access to the Component Instance as well other objects related to this
  70553. * Component Instance and allows you to destroy the Component Instance via the {@link #destroy}
  70554. * method.
  70555. *
  70556. */
  70557. class ComponentRef$1 extends ComponentRef {
  70558. constructor(componentType, instance, location, _rootLView, _tNode) {
  70559. super();
  70560. this.location = location;
  70561. this._rootLView = _rootLView;
  70562. this._tNode = _tNode;
  70563. this.instance = instance;
  70564. this.hostView = this.changeDetectorRef = new RootViewRef(_rootLView);
  70565. this.componentType = componentType;
  70566. }
  70567. get injector() {
  70568. return new NodeInjector(this._tNode, this._rootLView);
  70569. }
  70570. destroy() {
  70571. this.hostView.destroy();
  70572. }
  70573. onDestroy(callback) {
  70574. this.hostView.onDestroy(callback);
  70575. }
  70576. }
  70577. /**
  70578. * @license
  70579. * Copyright Google LLC All Rights Reserved.
  70580. *
  70581. * Use of this source code is governed by an MIT-style license that can be
  70582. * found in the LICENSE file at https://angular.io/license
  70583. */
  70584. /**
  70585. * Adds decorator, constructor, and property metadata to a given type via static metadata fields
  70586. * on the type.
  70587. *
  70588. * These metadata fields can later be read with Angular's `ReflectionCapabilities` API.
  70589. *
  70590. * Calls to `setClassMetadata` can be marked as pure, resulting in the metadata assignments being
  70591. * tree-shaken away during production builds.
  70592. */
  70593. function setClassMetadata(type, decorators, ctorParameters, propDecorators) {
  70594. return noSideEffects(() => {
  70595. const clazz = type;
  70596. if (decorators !== null) {
  70597. if (clazz.hasOwnProperty('decorators') && clazz.decorators !== undefined) {
  70598. clazz.decorators.push(...decorators);
  70599. }
  70600. else {
  70601. clazz.decorators = decorators;
  70602. }
  70603. }
  70604. if (ctorParameters !== null) {
  70605. // Rather than merging, clobber the existing parameters. If other projects exist which
  70606. // use tsickle-style annotations and reflect over them in the same way, this could
  70607. // cause issues, but that is vanishingly unlikely.
  70608. clazz.ctorParameters = ctorParameters;
  70609. }
  70610. if (propDecorators !== null) {
  70611. // The property decorator objects are merged as it is possible different fields have
  70612. // different decorator types. Decorators on individual fields are not merged, as it's
  70613. // also incredibly unlikely that a field will be decorated both with an Angular
  70614. // decorator and a non-Angular decorator that's also been downleveled.
  70615. if (clazz.hasOwnProperty('propDecorators') && clazz.propDecorators !== undefined) {
  70616. clazz.propDecorators = Object.assign(Object.assign({}, clazz.propDecorators), propDecorators);
  70617. }
  70618. else {
  70619. clazz.propDecorators = propDecorators;
  70620. }
  70621. }
  70622. });
  70623. }
  70624. /**
  70625. * @license
  70626. * Copyright Google LLC All Rights Reserved.
  70627. *
  70628. * Use of this source code is governed by an MIT-style license that can be
  70629. * found in the LICENSE file at https://angular.io/license
  70630. */
  70631. /**
  70632. * Map of module-id to the corresponding NgModule.
  70633. * - In pre Ivy we track NgModuleFactory,
  70634. * - In post Ivy we track the NgModuleType
  70635. */
  70636. const modules = new Map();
  70637. /**
  70638. * Registers a loaded module. Should only be called from generated NgModuleFactory code.
  70639. * @publicApi
  70640. */
  70641. function registerModuleFactory(id, factory) {
  70642. const existing = modules.get(id);
  70643. assertSameOrNotExisting(id, existing && existing.moduleType, factory.moduleType);
  70644. modules.set(id, factory);
  70645. }
  70646. function assertSameOrNotExisting(id, type, incoming) {
  70647. if (type && type !== incoming) {
  70648. throw new Error(`Duplicate module registered for ${id} - ${stringify(type)} vs ${stringify(type.name)}`);
  70649. }
  70650. }
  70651. function registerNgModuleType(ngModuleType) {
  70652. const visited = new Set();
  70653. recurse(ngModuleType);
  70654. function recurse(ngModuleType) {
  70655. // The imports array of an NgModule must refer to other NgModules,
  70656. // so an error is thrown if no module definition is available.
  70657. const def = getNgModuleDef(ngModuleType, /* throwNotFound */ true);
  70658. const id = def.id;
  70659. if (id !== null) {
  70660. const existing = modules.get(id);
  70661. assertSameOrNotExisting(id, existing, ngModuleType);
  70662. modules.set(id, ngModuleType);
  70663. }
  70664. const imports = maybeUnwrapFn(def.imports);
  70665. for (const i of imports) {
  70666. if (!visited.has(i)) {
  70667. visited.add(i);
  70668. recurse(i);
  70669. }
  70670. }
  70671. }
  70672. }
  70673. function clearModulesForTest() {
  70674. modules.clear();
  70675. }
  70676. function getRegisteredNgModuleType(id) {
  70677. return modules.get(id) || autoRegisterModuleById[id];
  70678. }
  70679. /**
  70680. * @license
  70681. * Copyright Google LLC All Rights Reserved.
  70682. *
  70683. * Use of this source code is governed by an MIT-style license that can be
  70684. * found in the LICENSE file at https://angular.io/license
  70685. */
  70686. class NgModuleRef$1 extends NgModuleRef {
  70687. constructor(ngModuleType, _parent) {
  70688. super();
  70689. this._parent = _parent;
  70690. // tslint:disable-next-line:require-internal-with-underscore
  70691. this._bootstrapComponents = [];
  70692. this.injector = this;
  70693. this.destroyCbs = [];
  70694. // When bootstrapping a module we have a dependency graph that looks like this:
  70695. // ApplicationRef -> ComponentFactoryResolver -> NgModuleRef. The problem is that if the
  70696. // module being resolved tries to inject the ComponentFactoryResolver, it'll create a
  70697. // circular dependency which will result in a runtime error, because the injector doesn't
  70698. // exist yet. We work around the issue by creating the ComponentFactoryResolver ourselves
  70699. // and providing it, rather than letting the injector resolve it.
  70700. this.componentFactoryResolver = new ComponentFactoryResolver$1(this);
  70701. const ngModuleDef = getNgModuleDef(ngModuleType);
  70702. ngDevMode &&
  70703. assertDefined(ngModuleDef, `NgModule '${stringify(ngModuleType)}' is not a subtype of 'NgModuleType'.`);
  70704. const ngLocaleIdDef = getNgLocaleIdDef(ngModuleType);
  70705. ngLocaleIdDef && setLocaleId(ngLocaleIdDef);
  70706. this._bootstrapComponents = maybeUnwrapFn(ngModuleDef.bootstrap);
  70707. this._r3Injector = createInjectorWithoutInjectorInstances(ngModuleType, _parent, [
  70708. { provide: NgModuleRef, useValue: this }, {
  70709. provide: ComponentFactoryResolver,
  70710. useValue: this.componentFactoryResolver
  70711. }
  70712. ], stringify(ngModuleType));
  70713. // We need to resolve the injector types separately from the injector creation, because
  70714. // the module might be trying to use this ref in its contructor for DI which will cause a
  70715. // circular error that will eventually error out, because the injector isn't created yet.
  70716. this._r3Injector._resolveInjectorDefTypes();
  70717. this.instance = this.get(ngModuleType);
  70718. }
  70719. get(token, notFoundValue = Injector.THROW_IF_NOT_FOUND, injectFlags = InjectFlags.Default) {
  70720. if (token === Injector || token === NgModuleRef || token === INJECTOR$1) {
  70721. return this;
  70722. }
  70723. return this._r3Injector.get(token, notFoundValue, injectFlags);
  70724. }
  70725. destroy() {
  70726. ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');
  70727. const injector = this._r3Injector;
  70728. !injector.destroyed && injector.destroy();
  70729. this.destroyCbs.forEach(fn => fn());
  70730. this.destroyCbs = null;
  70731. }
  70732. onDestroy(callback) {
  70733. ngDevMode && assertDefined(this.destroyCbs, 'NgModule already destroyed');
  70734. this.destroyCbs.push(callback);
  70735. }
  70736. }
  70737. class NgModuleFactory$1 extends NgModuleFactory {
  70738. constructor(moduleType) {
  70739. super();
  70740. this.moduleType = moduleType;
  70741. const ngModuleDef = getNgModuleDef(moduleType);
  70742. if (ngModuleDef !== null) {
  70743. // Register the NgModule with Angular's module registry. The location (and hence timing) of
  70744. // this call is critical to ensure this works correctly (modules get registered when expected)
  70745. // without bloating bundles (modules are registered when otherwise not referenced).
  70746. //
  70747. // In View Engine, registration occurs in the .ngfactory.js file as a side effect. This has
  70748. // several practical consequences:
  70749. //
  70750. // - If an .ngfactory file is not imported from, the module won't be registered (and can be
  70751. // tree shaken).
  70752. // - If an .ngfactory file is imported from, the module will be registered even if an instance
  70753. // is not actually created (via `create` below).
  70754. // - Since an .ngfactory file in View Engine references the .ngfactory files of the NgModule's
  70755. // imports,
  70756. //
  70757. // In Ivy, things are a bit different. .ngfactory files still exist for compatibility, but are
  70758. // not a required API to use - there are other ways to obtain an NgModuleFactory for a given
  70759. // NgModule. Thus, relying on a side effect in the .ngfactory file is not sufficient. Instead,
  70760. // the side effect of registration is added here, in the constructor of NgModuleFactory,
  70761. // ensuring no matter how a factory is created, the module is registered correctly.
  70762. //
  70763. // An alternative would be to include the registration side effect inline following the actual
  70764. // NgModule definition. This also has the correct timing, but breaks tree-shaking - modules
  70765. // will be registered and retained even if they're otherwise never referenced.
  70766. registerNgModuleType(moduleType);
  70767. }
  70768. }
  70769. create(parentInjector) {
  70770. return new NgModuleRef$1(this.moduleType, parentInjector);
  70771. }
  70772. }
  70773. /**
  70774. * @license
  70775. * Copyright Google LLC All Rights Reserved.
  70776. *
  70777. * Use of this source code is governed by an MIT-style license that can be
  70778. * found in the LICENSE file at https://angular.io/license
  70779. */
  70780. /**
  70781. * Bindings for pure functions are stored after regular bindings.
  70782. *
  70783. * |-------decls------|---------vars---------| |----- hostVars (dir1) ------|
  70784. * ------------------------------------------------------------------------------------------
  70785. * | nodes/refs/pipes | bindings | fn slots | injector | dir1 | host bindings | host slots |
  70786. * ------------------------------------------------------------------------------------------
  70787. * ^ ^
  70788. * TView.bindingStartIndex TView.expandoStartIndex
  70789. *
  70790. * Pure function instructions are given an offset from the binding root. Adding the offset to the
  70791. * binding root gives the first index where the bindings are stored. In component views, the binding
  70792. * root is the bindingStartIndex. In host bindings, the binding root is the expandoStartIndex +
  70793. * any directive instances + any hostVars in directives evaluated before it.
  70794. *
  70795. * See VIEW_DATA.md for more information about host binding resolution.
  70796. */
  70797. /**
  70798. * If the value hasn't been saved, calls the pure function to store and return the
  70799. * value. If it has been saved, returns the saved value.
  70800. *
  70801. * @param slotOffset the offset from binding root to the reserved slot
  70802. * @param pureFn Function that returns a value
  70803. * @param thisArg Optional calling context of pureFn
  70804. * @returns value
  70805. *
  70806. * @codeGenApi
  70807. */
  70808. function ɵɵpureFunction0(slotOffset, pureFn, thisArg) {
  70809. const bindingIndex = getBindingRoot() + slotOffset;
  70810. const lView = getLView();
  70811. return lView[bindingIndex] === NO_CHANGE ?
  70812. updateBinding(lView, bindingIndex, thisArg ? pureFn.call(thisArg) : pureFn()) :
  70813. getBinding(lView, bindingIndex);
  70814. }
  70815. /**
  70816. * If the value of the provided exp has changed, calls the pure function to return
  70817. * an updated value. Or if the value has not changed, returns cached value.
  70818. *
  70819. * @param slotOffset the offset from binding root to the reserved slot
  70820. * @param pureFn Function that returns an updated value
  70821. * @param exp Updated expression value
  70822. * @param thisArg Optional calling context of pureFn
  70823. * @returns Updated or cached value
  70824. *
  70825. * @codeGenApi
  70826. */
  70827. function ɵɵpureFunction1(slotOffset, pureFn, exp, thisArg) {
  70828. return pureFunction1Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp, thisArg);
  70829. }
  70830. /**
  70831. * If the value of any provided exp has changed, calls the pure function to return
  70832. * an updated value. Or if no values have changed, returns cached value.
  70833. *
  70834. * @param slotOffset the offset from binding root to the reserved slot
  70835. * @param pureFn
  70836. * @param exp1
  70837. * @param exp2
  70838. * @param thisArg Optional calling context of pureFn
  70839. * @returns Updated or cached value
  70840. *
  70841. * @codeGenApi
  70842. */
  70843. function ɵɵpureFunction2(slotOffset, pureFn, exp1, exp2, thisArg) {
  70844. return pureFunction2Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, thisArg);
  70845. }
  70846. /**
  70847. * If the value of any provided exp has changed, calls the pure function to return
  70848. * an updated value. Or if no values have changed, returns cached value.
  70849. *
  70850. * @param slotOffset the offset from binding root to the reserved slot
  70851. * @param pureFn
  70852. * @param exp1
  70853. * @param exp2
  70854. * @param exp3
  70855. * @param thisArg Optional calling context of pureFn
  70856. * @returns Updated or cached value
  70857. *
  70858. * @codeGenApi
  70859. */
  70860. function ɵɵpureFunction3(slotOffset, pureFn, exp1, exp2, exp3, thisArg) {
  70861. return pureFunction3Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, thisArg);
  70862. }
  70863. /**
  70864. * If the value of any provided exp has changed, calls the pure function to return
  70865. * an updated value. Or if no values have changed, returns cached value.
  70866. *
  70867. * @param slotOffset the offset from binding root to the reserved slot
  70868. * @param pureFn
  70869. * @param exp1
  70870. * @param exp2
  70871. * @param exp3
  70872. * @param exp4
  70873. * @param thisArg Optional calling context of pureFn
  70874. * @returns Updated or cached value
  70875. *
  70876. * @codeGenApi
  70877. */
  70878. function ɵɵpureFunction4(slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {
  70879. return pureFunction4Internal(getLView(), getBindingRoot(), slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg);
  70880. }
  70881. /**
  70882. * If the value of any provided exp has changed, calls the pure function to return
  70883. * an updated value. Or if no values have changed, returns cached value.
  70884. *
  70885. * @param slotOffset the offset from binding root to the reserved slot
  70886. * @param pureFn
  70887. * @param exp1
  70888. * @param exp2
  70889. * @param exp3
  70890. * @param exp4
  70891. * @param exp5
  70892. * @param thisArg Optional calling context of pureFn
  70893. * @returns Updated or cached value
  70894. *
  70895. * @codeGenApi
  70896. */
  70897. function ɵɵpureFunction5(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, thisArg) {
  70898. const bindingIndex = getBindingRoot() + slotOffset;
  70899. const lView = getLView();
  70900. const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
  70901. return bindingUpdated(lView, bindingIndex + 4, exp5) || different ?
  70902. updateBinding(lView, bindingIndex + 5, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5) :
  70903. pureFn(exp1, exp2, exp3, exp4, exp5)) :
  70904. getBinding(lView, bindingIndex + 5);
  70905. }
  70906. /**
  70907. * If the value of any provided exp has changed, calls the pure function to return
  70908. * an updated value. Or if no values have changed, returns cached value.
  70909. *
  70910. * @param slotOffset the offset from binding root to the reserved slot
  70911. * @param pureFn
  70912. * @param exp1
  70913. * @param exp2
  70914. * @param exp3
  70915. * @param exp4
  70916. * @param exp5
  70917. * @param exp6
  70918. * @param thisArg Optional calling context of pureFn
  70919. * @returns Updated or cached value
  70920. *
  70921. * @codeGenApi
  70922. */
  70923. function ɵɵpureFunction6(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, thisArg) {
  70924. const bindingIndex = getBindingRoot() + slotOffset;
  70925. const lView = getLView();
  70926. const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
  70927. return bindingUpdated2(lView, bindingIndex + 4, exp5, exp6) || different ?
  70928. updateBinding(lView, bindingIndex + 6, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6) :
  70929. pureFn(exp1, exp2, exp3, exp4, exp5, exp6)) :
  70930. getBinding(lView, bindingIndex + 6);
  70931. }
  70932. /**
  70933. * If the value of any provided exp has changed, calls the pure function to return
  70934. * an updated value. Or if no values have changed, returns cached value.
  70935. *
  70936. * @param slotOffset the offset from binding root to the reserved slot
  70937. * @param pureFn
  70938. * @param exp1
  70939. * @param exp2
  70940. * @param exp3
  70941. * @param exp4
  70942. * @param exp5
  70943. * @param exp6
  70944. * @param exp7
  70945. * @param thisArg Optional calling context of pureFn
  70946. * @returns Updated or cached value
  70947. *
  70948. * @codeGenApi
  70949. */
  70950. function ɵɵpureFunction7(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, thisArg) {
  70951. const bindingIndex = getBindingRoot() + slotOffset;
  70952. const lView = getLView();
  70953. let different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
  70954. return bindingUpdated3(lView, bindingIndex + 4, exp5, exp6, exp7) || different ?
  70955. updateBinding(lView, bindingIndex + 7, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7) :
  70956. pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7)) :
  70957. getBinding(lView, bindingIndex + 7);
  70958. }
  70959. /**
  70960. * If the value of any provided exp has changed, calls the pure function to return
  70961. * an updated value. Or if no values have changed, returns cached value.
  70962. *
  70963. * @param slotOffset the offset from binding root to the reserved slot
  70964. * @param pureFn
  70965. * @param exp1
  70966. * @param exp2
  70967. * @param exp3
  70968. * @param exp4
  70969. * @param exp5
  70970. * @param exp6
  70971. * @param exp7
  70972. * @param exp8
  70973. * @param thisArg Optional calling context of pureFn
  70974. * @returns Updated or cached value
  70975. *
  70976. * @codeGenApi
  70977. */
  70978. function ɵɵpureFunction8(slotOffset, pureFn, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8, thisArg) {
  70979. const bindingIndex = getBindingRoot() + slotOffset;
  70980. const lView = getLView();
  70981. const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
  70982. return bindingUpdated4(lView, bindingIndex + 4, exp5, exp6, exp7, exp8) || different ?
  70983. updateBinding(lView, bindingIndex + 8, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8) :
  70984. pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8)) :
  70985. getBinding(lView, bindingIndex + 8);
  70986. }
  70987. /**
  70988. * pureFunction instruction that can support any number of bindings.
  70989. *
  70990. * If the value of any provided exp has changed, calls the pure function to return
  70991. * an updated value. Or if no values have changed, returns cached value.
  70992. *
  70993. * @param slotOffset the offset from binding root to the reserved slot
  70994. * @param pureFn A pure function that takes binding values and builds an object or array
  70995. * containing those values.
  70996. * @param exps An array of binding values
  70997. * @param thisArg Optional calling context of pureFn
  70998. * @returns Updated or cached value
  70999. *
  71000. * @codeGenApi
  71001. */
  71002. function ɵɵpureFunctionV(slotOffset, pureFn, exps, thisArg) {
  71003. return pureFunctionVInternal(getLView(), getBindingRoot(), slotOffset, pureFn, exps, thisArg);
  71004. }
  71005. /**
  71006. * Results of a pure function invocation are stored in LView in a dedicated slot that is initialized
  71007. * to NO_CHANGE. In rare situations a pure pipe might throw an exception on the very first
  71008. * invocation and not produce any valid results. In this case LView would keep holding the NO_CHANGE
  71009. * value. The NO_CHANGE is not something that we can use in expressions / bindings thus we convert
  71010. * it to `undefined`.
  71011. */
  71012. function getPureFunctionReturnValue(lView, returnValueIndex) {
  71013. ngDevMode && assertIndexInRange(lView, returnValueIndex);
  71014. const lastReturnValue = lView[returnValueIndex];
  71015. return lastReturnValue === NO_CHANGE ? undefined : lastReturnValue;
  71016. }
  71017. /**
  71018. * If the value of the provided exp has changed, calls the pure function to return
  71019. * an updated value. Or if the value has not changed, returns cached value.
  71020. *
  71021. * @param lView LView in which the function is being executed.
  71022. * @param bindingRoot Binding root index.
  71023. * @param slotOffset the offset from binding root to the reserved slot
  71024. * @param pureFn Function that returns an updated value
  71025. * @param exp Updated expression value
  71026. * @param thisArg Optional calling context of pureFn
  71027. * @returns Updated or cached value
  71028. */
  71029. function pureFunction1Internal(lView, bindingRoot, slotOffset, pureFn, exp, thisArg) {
  71030. const bindingIndex = bindingRoot + slotOffset;
  71031. return bindingUpdated(lView, bindingIndex, exp) ?
  71032. updateBinding(lView, bindingIndex + 1, thisArg ? pureFn.call(thisArg, exp) : pureFn(exp)) :
  71033. getPureFunctionReturnValue(lView, bindingIndex + 1);
  71034. }
  71035. /**
  71036. * If the value of any provided exp has changed, calls the pure function to return
  71037. * an updated value. Or if no values have changed, returns cached value.
  71038. *
  71039. * @param lView LView in which the function is being executed.
  71040. * @param bindingRoot Binding root index.
  71041. * @param slotOffset the offset from binding root to the reserved slot
  71042. * @param pureFn
  71043. * @param exp1
  71044. * @param exp2
  71045. * @param thisArg Optional calling context of pureFn
  71046. * @returns Updated or cached value
  71047. */
  71048. function pureFunction2Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, thisArg) {
  71049. const bindingIndex = bindingRoot + slotOffset;
  71050. return bindingUpdated2(lView, bindingIndex, exp1, exp2) ?
  71051. updateBinding(lView, bindingIndex + 2, thisArg ? pureFn.call(thisArg, exp1, exp2) : pureFn(exp1, exp2)) :
  71052. getPureFunctionReturnValue(lView, bindingIndex + 2);
  71053. }
  71054. /**
  71055. * If the value of any provided exp has changed, calls the pure function to return
  71056. * an updated value. Or if no values have changed, returns cached value.
  71057. *
  71058. * @param lView LView in which the function is being executed.
  71059. * @param bindingRoot Binding root index.
  71060. * @param slotOffset the offset from binding root to the reserved slot
  71061. * @param pureFn
  71062. * @param exp1
  71063. * @param exp2
  71064. * @param exp3
  71065. * @param thisArg Optional calling context of pureFn
  71066. * @returns Updated or cached value
  71067. */
  71068. function pureFunction3Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, thisArg) {
  71069. const bindingIndex = bindingRoot + slotOffset;
  71070. return bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3) ?
  71071. updateBinding(lView, bindingIndex + 3, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3) : pureFn(exp1, exp2, exp3)) :
  71072. getPureFunctionReturnValue(lView, bindingIndex + 3);
  71073. }
  71074. /**
  71075. * If the value of any provided exp has changed, calls the pure function to return
  71076. * an updated value. Or if no values have changed, returns cached value.
  71077. *
  71078. * @param lView LView in which the function is being executed.
  71079. * @param bindingRoot Binding root index.
  71080. * @param slotOffset the offset from binding root to the reserved slot
  71081. * @param pureFn
  71082. * @param exp1
  71083. * @param exp2
  71084. * @param exp3
  71085. * @param exp4
  71086. * @param thisArg Optional calling context of pureFn
  71087. * @returns Updated or cached value
  71088. *
  71089. */
  71090. function pureFunction4Internal(lView, bindingRoot, slotOffset, pureFn, exp1, exp2, exp3, exp4, thisArg) {
  71091. const bindingIndex = bindingRoot + slotOffset;
  71092. return bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4) ?
  71093. updateBinding(lView, bindingIndex + 4, thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4) : pureFn(exp1, exp2, exp3, exp4)) :
  71094. getPureFunctionReturnValue(lView, bindingIndex + 4);
  71095. }
  71096. /**
  71097. * pureFunction instruction that can support any number of bindings.
  71098. *
  71099. * If the value of any provided exp has changed, calls the pure function to return
  71100. * an updated value. Or if no values have changed, returns cached value.
  71101. *
  71102. * @param lView LView in which the function is being executed.
  71103. * @param bindingRoot Binding root index.
  71104. * @param slotOffset the offset from binding root to the reserved slot
  71105. * @param pureFn A pure function that takes binding values and builds an object or array
  71106. * containing those values.
  71107. * @param exps An array of binding values
  71108. * @param thisArg Optional calling context of pureFn
  71109. * @returns Updated or cached value
  71110. */
  71111. function pureFunctionVInternal(lView, bindingRoot, slotOffset, pureFn, exps, thisArg) {
  71112. let bindingIndex = bindingRoot + slotOffset;
  71113. let different = false;
  71114. for (let i = 0; i < exps.length; i++) {
  71115. bindingUpdated(lView, bindingIndex++, exps[i]) && (different = true);
  71116. }
  71117. return different ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps)) :
  71118. getPureFunctionReturnValue(lView, bindingIndex);
  71119. }
  71120. /**
  71121. * @license
  71122. * Copyright Google LLC All Rights Reserved.
  71123. *
  71124. * Use of this source code is governed by an MIT-style license that can be
  71125. * found in the LICENSE file at https://angular.io/license
  71126. */
  71127. /**
  71128. * Create a pipe.
  71129. *
  71130. * @param index Pipe index where the pipe will be stored.
  71131. * @param pipeName The name of the pipe
  71132. * @returns T the instance of the pipe.
  71133. *
  71134. * @codeGenApi
  71135. */
  71136. function ɵɵpipe(index, pipeName) {
  71137. const tView = getTView();
  71138. let pipeDef;
  71139. const adjustedIndex = index + HEADER_OFFSET;
  71140. if (tView.firstCreatePass) {
  71141. pipeDef = getPipeDef$1(pipeName, tView.pipeRegistry);
  71142. tView.data[adjustedIndex] = pipeDef;
  71143. if (pipeDef.onDestroy) {
  71144. (tView.destroyHooks || (tView.destroyHooks = [])).push(adjustedIndex, pipeDef.onDestroy);
  71145. }
  71146. }
  71147. else {
  71148. pipeDef = tView.data[adjustedIndex];
  71149. }
  71150. const pipeFactory = pipeDef.factory || (pipeDef.factory = getFactoryDef(pipeDef.type, true));
  71151. const previousInjectImplementation = setInjectImplementation(ɵɵdirectiveInject);
  71152. try {
  71153. // DI for pipes is supposed to behave like directives when placed on a component
  71154. // host node, which means that we have to disable access to `viewProviders`.
  71155. const previousIncludeViewProviders = setIncludeViewProviders(false);
  71156. const pipeInstance = pipeFactory();
  71157. setIncludeViewProviders(previousIncludeViewProviders);
  71158. store(tView, getLView(), adjustedIndex, pipeInstance);
  71159. return pipeInstance;
  71160. }
  71161. finally {
  71162. // we have to restore the injector implementation in finally, just in case the creation of the
  71163. // pipe throws an error.
  71164. setInjectImplementation(previousInjectImplementation);
  71165. }
  71166. }
  71167. /**
  71168. * Searches the pipe registry for a pipe with the given name. If one is found,
  71169. * returns the pipe. Otherwise, an error is thrown because the pipe cannot be resolved.
  71170. *
  71171. * @param name Name of pipe to resolve
  71172. * @param registry Full list of available pipes
  71173. * @returns Matching PipeDef
  71174. */
  71175. function getPipeDef$1(name, registry) {
  71176. if (registry) {
  71177. for (let i = registry.length - 1; i >= 0; i--) {
  71178. const pipeDef = registry[i];
  71179. if (name === pipeDef.name) {
  71180. return pipeDef;
  71181. }
  71182. }
  71183. }
  71184. throw new RuntimeError("302" /* PIPE_NOT_FOUND */, `The pipe '${name}' could not be found!`);
  71185. }
  71186. /**
  71187. * Invokes a pipe with 1 arguments.
  71188. *
  71189. * This instruction acts as a guard to {@link PipeTransform#transform} invoking
  71190. * the pipe only when an input to the pipe changes.
  71191. *
  71192. * @param index Pipe index where the pipe was stored on creation.
  71193. * @param slotOffset the offset in the reserved slot space
  71194. * @param v1 1st argument to {@link PipeTransform#transform}.
  71195. *
  71196. * @codeGenApi
  71197. */
  71198. function ɵɵpipeBind1(index, slotOffset, v1) {
  71199. const adjustedIndex = index + HEADER_OFFSET;
  71200. const lView = getLView();
  71201. const pipeInstance = load(lView, adjustedIndex);
  71202. return unwrapValue$1(lView, isPure(lView, adjustedIndex) ?
  71203. pureFunction1Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, pipeInstance) :
  71204. pipeInstance.transform(v1));
  71205. }
  71206. /**
  71207. * Invokes a pipe with 2 arguments.
  71208. *
  71209. * This instruction acts as a guard to {@link PipeTransform#transform} invoking
  71210. * the pipe only when an input to the pipe changes.
  71211. *
  71212. * @param index Pipe index where the pipe was stored on creation.
  71213. * @param slotOffset the offset in the reserved slot space
  71214. * @param v1 1st argument to {@link PipeTransform#transform}.
  71215. * @param v2 2nd argument to {@link PipeTransform#transform}.
  71216. *
  71217. * @codeGenApi
  71218. */
  71219. function ɵɵpipeBind2(index, slotOffset, v1, v2) {
  71220. const adjustedIndex = index + HEADER_OFFSET;
  71221. const lView = getLView();
  71222. const pipeInstance = load(lView, adjustedIndex);
  71223. return unwrapValue$1(lView, isPure(lView, adjustedIndex) ?
  71224. pureFunction2Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, pipeInstance) :
  71225. pipeInstance.transform(v1, v2));
  71226. }
  71227. /**
  71228. * Invokes a pipe with 3 arguments.
  71229. *
  71230. * This instruction acts as a guard to {@link PipeTransform#transform} invoking
  71231. * the pipe only when an input to the pipe changes.
  71232. *
  71233. * @param index Pipe index where the pipe was stored on creation.
  71234. * @param slotOffset the offset in the reserved slot space
  71235. * @param v1 1st argument to {@link PipeTransform#transform}.
  71236. * @param v2 2nd argument to {@link PipeTransform#transform}.
  71237. * @param v3 4rd argument to {@link PipeTransform#transform}.
  71238. *
  71239. * @codeGenApi
  71240. */
  71241. function ɵɵpipeBind3(index, slotOffset, v1, v2, v3) {
  71242. const adjustedIndex = index + HEADER_OFFSET;
  71243. const lView = getLView();
  71244. const pipeInstance = load(lView, adjustedIndex);
  71245. return unwrapValue$1(lView, isPure(lView, adjustedIndex) ? pureFunction3Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, pipeInstance) :
  71246. pipeInstance.transform(v1, v2, v3));
  71247. }
  71248. /**
  71249. * Invokes a pipe with 4 arguments.
  71250. *
  71251. * This instruction acts as a guard to {@link PipeTransform#transform} invoking
  71252. * the pipe only when an input to the pipe changes.
  71253. *
  71254. * @param index Pipe index where the pipe was stored on creation.
  71255. * @param slotOffset the offset in the reserved slot space
  71256. * @param v1 1st argument to {@link PipeTransform#transform}.
  71257. * @param v2 2nd argument to {@link PipeTransform#transform}.
  71258. * @param v3 3rd argument to {@link PipeTransform#transform}.
  71259. * @param v4 4th argument to {@link PipeTransform#transform}.
  71260. *
  71261. * @codeGenApi
  71262. */
  71263. function ɵɵpipeBind4(index, slotOffset, v1, v2, v3, v4) {
  71264. const adjustedIndex = index + HEADER_OFFSET;
  71265. const lView = getLView();
  71266. const pipeInstance = load(lView, adjustedIndex);
  71267. return unwrapValue$1(lView, isPure(lView, adjustedIndex) ? pureFunction4Internal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, v1, v2, v3, v4, pipeInstance) :
  71268. pipeInstance.transform(v1, v2, v3, v4));
  71269. }
  71270. /**
  71271. * Invokes a pipe with variable number of arguments.
  71272. *
  71273. * This instruction acts as a guard to {@link PipeTransform#transform} invoking
  71274. * the pipe only when an input to the pipe changes.
  71275. *
  71276. * @param index Pipe index where the pipe was stored on creation.
  71277. * @param slotOffset the offset in the reserved slot space
  71278. * @param values Array of arguments to pass to {@link PipeTransform#transform} method.
  71279. *
  71280. * @codeGenApi
  71281. */
  71282. function ɵɵpipeBindV(index, slotOffset, values) {
  71283. const adjustedIndex = index + HEADER_OFFSET;
  71284. const lView = getLView();
  71285. const pipeInstance = load(lView, adjustedIndex);
  71286. return unwrapValue$1(lView, isPure(lView, adjustedIndex) ?
  71287. pureFunctionVInternal(lView, getBindingRoot(), slotOffset, pipeInstance.transform, values, pipeInstance) :
  71288. pipeInstance.transform.apply(pipeInstance, values));
  71289. }
  71290. function isPure(lView, index) {
  71291. return lView[TVIEW].data[index].pure;
  71292. }
  71293. /**
  71294. * Unwrap the output of a pipe transformation.
  71295. * In order to trick change detection into considering that the new value is always different from
  71296. * the old one, the old value is overwritten by NO_CHANGE.
  71297. *
  71298. * @param newValue the pipe transformation output.
  71299. */
  71300. function unwrapValue$1(lView, newValue) {
  71301. if (WrappedValue.isWrapped(newValue)) {
  71302. newValue = WrappedValue.unwrap(newValue);
  71303. // The NO_CHANGE value needs to be written at the index where the impacted binding value is
  71304. // stored
  71305. const bindingToInvalidateIdx = getBindingIndex();
  71306. lView[bindingToInvalidateIdx] = NO_CHANGE;
  71307. }
  71308. return newValue;
  71309. }
  71310. /**
  71311. * @license
  71312. * Copyright Google LLC All Rights Reserved.
  71313. *
  71314. * Use of this source code is governed by an MIT-style license that can be
  71315. * found in the LICENSE file at https://angular.io/license
  71316. */
  71317. class EventEmitter_ extends rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"] {
  71318. constructor(isAsync = false) {
  71319. super();
  71320. this.__isAsync = isAsync;
  71321. }
  71322. emit(value) {
  71323. super.next(value);
  71324. }
  71325. subscribe(generatorOrNext, error, complete) {
  71326. let schedulerFn;
  71327. let errorFn = (err) => null;
  71328. let completeFn = () => null;
  71329. if (generatorOrNext && typeof generatorOrNext === 'object') {
  71330. schedulerFn = this.__isAsync ? (value) => {
  71331. setTimeout(() => generatorOrNext.next(value));
  71332. } : (value) => {
  71333. generatorOrNext.next(value);
  71334. };
  71335. if (generatorOrNext.error) {
  71336. errorFn = this.__isAsync ? (err) => {
  71337. setTimeout(() => generatorOrNext.error(err));
  71338. } : (err) => {
  71339. generatorOrNext.error(err);
  71340. };
  71341. }
  71342. if (generatorOrNext.complete) {
  71343. completeFn = this.__isAsync ? () => {
  71344. setTimeout(() => generatorOrNext.complete());
  71345. } : () => {
  71346. generatorOrNext.complete();
  71347. };
  71348. }
  71349. }
  71350. else {
  71351. schedulerFn = this.__isAsync ? (value) => {
  71352. setTimeout(() => generatorOrNext(value));
  71353. } : (value) => {
  71354. generatorOrNext(value);
  71355. };
  71356. if (error) {
  71357. errorFn = this.__isAsync ? (err) => {
  71358. setTimeout(() => error(err));
  71359. } : (err) => {
  71360. error(err);
  71361. };
  71362. }
  71363. if (complete) {
  71364. completeFn = this.__isAsync ? () => {
  71365. setTimeout(() => complete());
  71366. } : () => {
  71367. complete();
  71368. };
  71369. }
  71370. }
  71371. const sink = super.subscribe(schedulerFn, errorFn, completeFn);
  71372. if (generatorOrNext instanceof rxjs__WEBPACK_IMPORTED_MODULE_0__["Subscription"]) {
  71373. generatorOrNext.add(sink);
  71374. }
  71375. return sink;
  71376. }
  71377. }
  71378. /**
  71379. * @publicApi
  71380. */
  71381. const EventEmitter = EventEmitter_;
  71382. /**
  71383. * @license
  71384. * Copyright Google LLC All Rights Reserved.
  71385. *
  71386. * Use of this source code is governed by an MIT-style license that can be
  71387. * found in the LICENSE file at https://angular.io/license
  71388. */
  71389. function symbolIterator() {
  71390. return this._results[getSymbolIterator()]();
  71391. }
  71392. /**
  71393. * An unmodifiable list of items that Angular keeps up to date when the state
  71394. * of the application changes.
  71395. *
  71396. * The type of object that {@link ViewChildren}, {@link ContentChildren}, and {@link QueryList}
  71397. * provide.
  71398. *
  71399. * Implements an iterable interface, therefore it can be used in both ES6
  71400. * javascript `for (var i of items)` loops as well as in Angular templates with
  71401. * `*ngFor="let i of myList"`.
  71402. *
  71403. * Changes can be observed by subscribing to the changes `Observable`.
  71404. *
  71405. * NOTE: In the future this class will implement an `Observable` interface.
  71406. *
  71407. * @usageNotes
  71408. * ### Example
  71409. * ```typescript
  71410. * @Component({...})
  71411. * class Container {
  71412. * @ViewChildren(Item) items:QueryList<Item>;
  71413. * }
  71414. * ```
  71415. *
  71416. * @publicApi
  71417. */
  71418. class QueryList {
  71419. constructor() {
  71420. this.dirty = true;
  71421. this._results = [];
  71422. this.changes = new EventEmitter();
  71423. this.length = 0;
  71424. // This function should be declared on the prototype, but doing so there will cause the class
  71425. // declaration to have side-effects and become not tree-shakable. For this reason we do it in
  71426. // the constructor.
  71427. // [getSymbolIterator()](): Iterator<T> { ... }
  71428. const symbol = getSymbolIterator();
  71429. const proto = QueryList.prototype;
  71430. if (!proto[symbol])
  71431. proto[symbol] = symbolIterator;
  71432. }
  71433. /**
  71434. * See
  71435. * [Array.map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)
  71436. */
  71437. map(fn) {
  71438. return this._results.map(fn);
  71439. }
  71440. /**
  71441. * See
  71442. * [Array.filter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter)
  71443. */
  71444. filter(fn) {
  71445. return this._results.filter(fn);
  71446. }
  71447. /**
  71448. * See
  71449. * [Array.find](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find)
  71450. */
  71451. find(fn) {
  71452. return this._results.find(fn);
  71453. }
  71454. /**
  71455. * See
  71456. * [Array.reduce](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce)
  71457. */
  71458. reduce(fn, init) {
  71459. return this._results.reduce(fn, init);
  71460. }
  71461. /**
  71462. * See
  71463. * [Array.forEach](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach)
  71464. */
  71465. forEach(fn) {
  71466. this._results.forEach(fn);
  71467. }
  71468. /**
  71469. * See
  71470. * [Array.some](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some)
  71471. */
  71472. some(fn) {
  71473. return this._results.some(fn);
  71474. }
  71475. /**
  71476. * Returns a copy of the internal results list as an Array.
  71477. */
  71478. toArray() {
  71479. return this._results.slice();
  71480. }
  71481. toString() {
  71482. return this._results.toString();
  71483. }
  71484. /**
  71485. * Updates the stored data of the query list, and resets the `dirty` flag to `false`, so that
  71486. * on change detection, it will not notify of changes to the queries, unless a new change
  71487. * occurs.
  71488. *
  71489. * @param resultsTree The query results to store
  71490. */
  71491. reset(resultsTree) {
  71492. this._results = flatten(resultsTree);
  71493. this.dirty = false;
  71494. this.length = this._results.length;
  71495. this.last = this._results[this.length - 1];
  71496. this.first = this._results[0];
  71497. }
  71498. /**
  71499. * Triggers a change event by emitting on the `changes` {@link EventEmitter}.
  71500. */
  71501. notifyOnChanges() {
  71502. this.changes.emit(this);
  71503. }
  71504. /** internal */
  71505. setDirty() {
  71506. this.dirty = true;
  71507. }
  71508. /** internal */
  71509. destroy() {
  71510. this.changes.complete();
  71511. this.changes.unsubscribe();
  71512. }
  71513. }
  71514. /**
  71515. * @license
  71516. * Copyright Google LLC All Rights Reserved.
  71517. *
  71518. * Use of this source code is governed by an MIT-style license that can be
  71519. * found in the LICENSE file at https://angular.io/license
  71520. */
  71521. // Note: This hack is necessary so we don't erroneously get a circular dependency
  71522. // failure based on types.
  71523. const unusedValueExportToPlacateAjd$7 = 1;
  71524. /**
  71525. * @license
  71526. * Copyright Google LLC All Rights Reserved.
  71527. *
  71528. * Use of this source code is governed by an MIT-style license that can be
  71529. * found in the LICENSE file at https://angular.io/license
  71530. */
  71531. // Note: This hack is necessary so we don't erroneously get a circular dependency
  71532. // failure based on types.
  71533. const unusedValueExportToPlacateAjd$8 = 1;
  71534. /**
  71535. * @license
  71536. * Copyright Google LLC All Rights Reserved.
  71537. *
  71538. * Use of this source code is governed by an MIT-style license that can be
  71539. * found in the LICENSE file at https://angular.io/license
  71540. */
  71541. const unusedValueToPlacateAjd$2 = unusedValueExportToPlacateAjd$7 + unusedValueExportToPlacateAjd$3 + unusedValueExportToPlacateAjd$4 + unusedValueExportToPlacateAjd$8;
  71542. class LQuery_ {
  71543. constructor(queryList) {
  71544. this.queryList = queryList;
  71545. this.matches = null;
  71546. }
  71547. clone() {
  71548. return new LQuery_(this.queryList);
  71549. }
  71550. setDirty() {
  71551. this.queryList.setDirty();
  71552. }
  71553. }
  71554. class LQueries_ {
  71555. constructor(queries = []) {
  71556. this.queries = queries;
  71557. }
  71558. createEmbeddedView(tView) {
  71559. const tQueries = tView.queries;
  71560. if (tQueries !== null) {
  71561. const noOfInheritedQueries = tView.contentQueries !== null ? tView.contentQueries[0] : tQueries.length;
  71562. const viewLQueries = [];
  71563. // An embedded view has queries propagated from a declaration view at the beginning of the
  71564. // TQueries collection and up until a first content query declared in the embedded view. Only
  71565. // propagated LQueries are created at this point (LQuery corresponding to declared content
  71566. // queries will be instantiated from the content query instructions for each directive).
  71567. for (let i = 0; i < noOfInheritedQueries; i++) {
  71568. const tQuery = tQueries.getByIndex(i);
  71569. const parentLQuery = this.queries[tQuery.indexInDeclarationView];
  71570. viewLQueries.push(parentLQuery.clone());
  71571. }
  71572. return new LQueries_(viewLQueries);
  71573. }
  71574. return null;
  71575. }
  71576. insertView(tView) {
  71577. this.dirtyQueriesWithMatches(tView);
  71578. }
  71579. detachView(tView) {
  71580. this.dirtyQueriesWithMatches(tView);
  71581. }
  71582. dirtyQueriesWithMatches(tView) {
  71583. for (let i = 0; i < this.queries.length; i++) {
  71584. if (getTQuery(tView, i).matches !== null) {
  71585. this.queries[i].setDirty();
  71586. }
  71587. }
  71588. }
  71589. }
  71590. class TQueryMetadata_ {
  71591. constructor(predicate, descendants, isStatic, read = null) {
  71592. this.predicate = predicate;
  71593. this.descendants = descendants;
  71594. this.isStatic = isStatic;
  71595. this.read = read;
  71596. }
  71597. }
  71598. class TQueries_ {
  71599. constructor(queries = []) {
  71600. this.queries = queries;
  71601. }
  71602. elementStart(tView, tNode) {
  71603. ngDevMode &&
  71604. assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');
  71605. for (let i = 0; i < this.queries.length; i++) {
  71606. this.queries[i].elementStart(tView, tNode);
  71607. }
  71608. }
  71609. elementEnd(tNode) {
  71610. for (let i = 0; i < this.queries.length; i++) {
  71611. this.queries[i].elementEnd(tNode);
  71612. }
  71613. }
  71614. embeddedTView(tNode) {
  71615. let queriesForTemplateRef = null;
  71616. for (let i = 0; i < this.length; i++) {
  71617. const childQueryIndex = queriesForTemplateRef !== null ? queriesForTemplateRef.length : 0;
  71618. const tqueryClone = this.getByIndex(i).embeddedTView(tNode, childQueryIndex);
  71619. if (tqueryClone) {
  71620. tqueryClone.indexInDeclarationView = i;
  71621. if (queriesForTemplateRef !== null) {
  71622. queriesForTemplateRef.push(tqueryClone);
  71623. }
  71624. else {
  71625. queriesForTemplateRef = [tqueryClone];
  71626. }
  71627. }
  71628. }
  71629. return queriesForTemplateRef !== null ? new TQueries_(queriesForTemplateRef) : null;
  71630. }
  71631. template(tView, tNode) {
  71632. ngDevMode &&
  71633. assertFirstCreatePass(tView, 'Queries should collect results on the first template pass only');
  71634. for (let i = 0; i < this.queries.length; i++) {
  71635. this.queries[i].template(tView, tNode);
  71636. }
  71637. }
  71638. getByIndex(index) {
  71639. ngDevMode && assertIndexInRange(this.queries, index);
  71640. return this.queries[index];
  71641. }
  71642. get length() {
  71643. return this.queries.length;
  71644. }
  71645. track(tquery) {
  71646. this.queries.push(tquery);
  71647. }
  71648. }
  71649. class TQuery_ {
  71650. constructor(metadata, nodeIndex = -1) {
  71651. this.metadata = metadata;
  71652. this.matches = null;
  71653. this.indexInDeclarationView = -1;
  71654. this.crossesNgTemplate = false;
  71655. /**
  71656. * A flag indicating if a given query still applies to nodes it is crossing. We use this flag
  71657. * (alongside with _declarationNodeIndex) to know when to stop applying content queries to
  71658. * elements in a template.
  71659. */
  71660. this._appliesToNextNode = true;
  71661. this._declarationNodeIndex = nodeIndex;
  71662. }
  71663. elementStart(tView, tNode) {
  71664. if (this.isApplyingToNode(tNode)) {
  71665. this.matchTNode(tView, tNode);
  71666. }
  71667. }
  71668. elementEnd(tNode) {
  71669. if (this._declarationNodeIndex === tNode.index) {
  71670. this._appliesToNextNode = false;
  71671. }
  71672. }
  71673. template(tView, tNode) {
  71674. this.elementStart(tView, tNode);
  71675. }
  71676. embeddedTView(tNode, childQueryIndex) {
  71677. if (this.isApplyingToNode(tNode)) {
  71678. this.crossesNgTemplate = true;
  71679. // A marker indicating a `<ng-template>` element (a placeholder for query results from
  71680. // embedded views created based on this `<ng-template>`).
  71681. this.addMatch(-tNode.index, childQueryIndex);
  71682. return new TQuery_(this.metadata);
  71683. }
  71684. return null;
  71685. }
  71686. isApplyingToNode(tNode) {
  71687. if (this._appliesToNextNode && this.metadata.descendants === false) {
  71688. const declarationNodeIdx = this._declarationNodeIndex;
  71689. let parent = tNode.parent;
  71690. // Determine if a given TNode is a "direct" child of a node on which a content query was
  71691. // declared (only direct children of query's host node can match with the descendants: false
  71692. // option). There are 3 main use-case / conditions to consider here:
  71693. // - <needs-target><i #target></i></needs-target>: here <i #target> parent node is a query
  71694. // host node;
  71695. // - <needs-target><ng-template [ngIf]="true"><i #target></i></ng-template></needs-target>:
  71696. // here <i #target> parent node is null;
  71697. // - <needs-target><ng-container><i #target></i></ng-container></needs-target>: here we need
  71698. // to go past `<ng-container>` to determine <i #target> parent node (but we shouldn't traverse
  71699. // up past the query's host node!).
  71700. while (parent !== null && (parent.type & 8 /* ElementContainer */) &&
  71701. parent.index !== declarationNodeIdx) {
  71702. parent = parent.parent;
  71703. }
  71704. return declarationNodeIdx === (parent !== null ? parent.index : -1);
  71705. }
  71706. return this._appliesToNextNode;
  71707. }
  71708. matchTNode(tView, tNode) {
  71709. const predicate = this.metadata.predicate;
  71710. if (Array.isArray(predicate)) {
  71711. for (let i = 0; i < predicate.length; i++) {
  71712. const name = predicate[i];
  71713. this.matchTNodeWithReadOption(tView, tNode, getIdxOfMatchingSelector(tNode, name));
  71714. // Also try matching the name to a provider since strings can be used as DI tokens too.
  71715. this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, name, false, false));
  71716. }
  71717. }
  71718. else {
  71719. if (predicate === TemplateRef) {
  71720. if (tNode.type & 4 /* Container */) {
  71721. this.matchTNodeWithReadOption(tView, tNode, -1);
  71722. }
  71723. }
  71724. else {
  71725. this.matchTNodeWithReadOption(tView, tNode, locateDirectiveOrProvider(tNode, tView, predicate, false, false));
  71726. }
  71727. }
  71728. }
  71729. matchTNodeWithReadOption(tView, tNode, nodeMatchIdx) {
  71730. if (nodeMatchIdx !== null) {
  71731. const read = this.metadata.read;
  71732. if (read !== null) {
  71733. if (read === ElementRef || read === ViewContainerRef ||
  71734. read === TemplateRef && (tNode.type & 4 /* Container */)) {
  71735. this.addMatch(tNode.index, -2);
  71736. }
  71737. else {
  71738. const directiveOrProviderIdx = locateDirectiveOrProvider(tNode, tView, read, false, false);
  71739. if (directiveOrProviderIdx !== null) {
  71740. this.addMatch(tNode.index, directiveOrProviderIdx);
  71741. }
  71742. }
  71743. }
  71744. else {
  71745. this.addMatch(tNode.index, nodeMatchIdx);
  71746. }
  71747. }
  71748. }
  71749. addMatch(tNodeIdx, matchIdx) {
  71750. if (this.matches === null) {
  71751. this.matches = [tNodeIdx, matchIdx];
  71752. }
  71753. else {
  71754. this.matches.push(tNodeIdx, matchIdx);
  71755. }
  71756. }
  71757. }
  71758. /**
  71759. * Iterates over local names for a given node and returns directive index
  71760. * (or -1 if a local name points to an element).
  71761. *
  71762. * @param tNode static data of a node to check
  71763. * @param selector selector to match
  71764. * @returns directive index, -1 or null if a selector didn't match any of the local names
  71765. */
  71766. function getIdxOfMatchingSelector(tNode, selector) {
  71767. const localNames = tNode.localNames;
  71768. if (localNames !== null) {
  71769. for (let i = 0; i < localNames.length; i += 2) {
  71770. if (localNames[i] === selector) {
  71771. return localNames[i + 1];
  71772. }
  71773. }
  71774. }
  71775. return null;
  71776. }
  71777. function createResultByTNodeType(tNode, currentView) {
  71778. if (tNode.type & (3 /* AnyRNode */ | 8 /* ElementContainer */)) {
  71779. return createElementRef(tNode, currentView);
  71780. }
  71781. else if (tNode.type & 4 /* Container */) {
  71782. return createTemplateRef(tNode, currentView);
  71783. }
  71784. return null;
  71785. }
  71786. function createResultForNode(lView, tNode, matchingIdx, read) {
  71787. if (matchingIdx === -1) {
  71788. // if read token and / or strategy is not specified, detect it using appropriate tNode type
  71789. return createResultByTNodeType(tNode, lView);
  71790. }
  71791. else if (matchingIdx === -2) {
  71792. // read a special token from a node injector
  71793. return createSpecialToken(lView, tNode, read);
  71794. }
  71795. else {
  71796. // read a token
  71797. return getNodeInjectable(lView, lView[TVIEW], matchingIdx, tNode);
  71798. }
  71799. }
  71800. function createSpecialToken(lView, tNode, read) {
  71801. if (read === ElementRef) {
  71802. return createElementRef(tNode, lView);
  71803. }
  71804. else if (read === TemplateRef) {
  71805. return createTemplateRef(tNode, lView);
  71806. }
  71807. else if (read === ViewContainerRef) {
  71808. ngDevMode && assertTNodeType(tNode, 3 /* AnyRNode */ | 12 /* AnyContainer */);
  71809. return createContainerRef(tNode, lView);
  71810. }
  71811. else {
  71812. ngDevMode &&
  71813. throwError(`Special token to read should be one of ElementRef, TemplateRef or ViewContainerRef but got ${stringify(read)}.`);
  71814. }
  71815. }
  71816. /**
  71817. * A helper function that creates query results for a given view. This function is meant to do the
  71818. * processing once and only once for a given view instance (a set of results for a given view
  71819. * doesn't change).
  71820. */
  71821. function materializeViewResults(tView, lView, tQuery, queryIndex) {
  71822. const lQuery = lView[QUERIES].queries[queryIndex];
  71823. if (lQuery.matches === null) {
  71824. const tViewData = tView.data;
  71825. const tQueryMatches = tQuery.matches;
  71826. const result = [];
  71827. for (let i = 0; i < tQueryMatches.length; i += 2) {
  71828. const matchedNodeIdx = tQueryMatches[i];
  71829. if (matchedNodeIdx < 0) {
  71830. // we at the <ng-template> marker which might have results in views created based on this
  71831. // <ng-template> - those results will be in separate views though, so here we just leave
  71832. // null as a placeholder
  71833. result.push(null);
  71834. }
  71835. else {
  71836. ngDevMode && assertIndexInRange(tViewData, matchedNodeIdx);
  71837. const tNode = tViewData[matchedNodeIdx];
  71838. result.push(createResultForNode(lView, tNode, tQueryMatches[i + 1], tQuery.metadata.read));
  71839. }
  71840. }
  71841. lQuery.matches = result;
  71842. }
  71843. return lQuery.matches;
  71844. }
  71845. /**
  71846. * A helper function that collects (already materialized) query results from a tree of views,
  71847. * starting with a provided LView.
  71848. */
  71849. function collectQueryResults(tView, lView, queryIndex, result) {
  71850. const tQuery = tView.queries.getByIndex(queryIndex);
  71851. const tQueryMatches = tQuery.matches;
  71852. if (tQueryMatches !== null) {
  71853. const lViewResults = materializeViewResults(tView, lView, tQuery, queryIndex);
  71854. for (let i = 0; i < tQueryMatches.length; i += 2) {
  71855. const tNodeIdx = tQueryMatches[i];
  71856. if (tNodeIdx > 0) {
  71857. result.push(lViewResults[i / 2]);
  71858. }
  71859. else {
  71860. const childQueryIndex = tQueryMatches[i + 1];
  71861. const declarationLContainer = lView[-tNodeIdx];
  71862. ngDevMode && assertLContainer(declarationLContainer);
  71863. // collect matches for views inserted in this container
  71864. for (let i = CONTAINER_HEADER_OFFSET; i < declarationLContainer.length; i++) {
  71865. const embeddedLView = declarationLContainer[i];
  71866. if (embeddedLView[DECLARATION_LCONTAINER] === embeddedLView[PARENT]) {
  71867. collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);
  71868. }
  71869. }
  71870. // collect matches for views created from this declaration container and inserted into
  71871. // different containers
  71872. if (declarationLContainer[MOVED_VIEWS] !== null) {
  71873. const embeddedLViews = declarationLContainer[MOVED_VIEWS];
  71874. for (let i = 0; i < embeddedLViews.length; i++) {
  71875. const embeddedLView = embeddedLViews[i];
  71876. collectQueryResults(embeddedLView[TVIEW], embeddedLView, childQueryIndex, result);
  71877. }
  71878. }
  71879. }
  71880. }
  71881. }
  71882. return result;
  71883. }
  71884. /**
  71885. * Refreshes a query by combining matches from all active views and removing matches from deleted
  71886. * views.
  71887. *
  71888. * @returns `true` if a query got dirty during change detection or if this is a static query
  71889. * resolving in creation mode, `false` otherwise.
  71890. *
  71891. * @codeGenApi
  71892. */
  71893. function ɵɵqueryRefresh(queryList) {
  71894. const lView = getLView();
  71895. const tView = getTView();
  71896. const queryIndex = getCurrentQueryIndex();
  71897. setCurrentQueryIndex(queryIndex + 1);
  71898. const tQuery = getTQuery(tView, queryIndex);
  71899. if (queryList.dirty && (isCreationMode(lView) === tQuery.metadata.isStatic)) {
  71900. if (tQuery.matches === null) {
  71901. queryList.reset([]);
  71902. }
  71903. else {
  71904. const result = tQuery.crossesNgTemplate ?
  71905. collectQueryResults(tView, lView, queryIndex, []) :
  71906. materializeViewResults(tView, lView, tQuery, queryIndex);
  71907. queryList.reset(result);
  71908. queryList.notifyOnChanges();
  71909. }
  71910. return true;
  71911. }
  71912. return false;
  71913. }
  71914. /**
  71915. * Creates new QueryList for a static view query.
  71916. *
  71917. * @param predicate The type for which the query will search
  71918. * @param descend Whether or not to descend into children
  71919. * @param read What to save in the query
  71920. *
  71921. * @codeGenApi
  71922. */
  71923. function ɵɵstaticViewQuery(predicate, descend, read) {
  71924. viewQueryInternal(getTView(), getLView(), predicate, descend, read, true);
  71925. }
  71926. /**
  71927. * Creates new QueryList, stores the reference in LView and returns QueryList.
  71928. *
  71929. * @param predicate The type for which the query will search
  71930. * @param descend Whether or not to descend into children
  71931. * @param read What to save in the query
  71932. *
  71933. * @codeGenApi
  71934. */
  71935. function ɵɵviewQuery(predicate, descend, read) {
  71936. viewQueryInternal(getTView(), getLView(), predicate, descend, read, false);
  71937. }
  71938. function viewQueryInternal(tView, lView, predicate, descend, read, isStatic) {
  71939. if (tView.firstCreatePass) {
  71940. createTQuery(tView, new TQueryMetadata_(predicate, descend, isStatic, read), -1);
  71941. if (isStatic) {
  71942. tView.staticViewQueries = true;
  71943. }
  71944. }
  71945. createLQuery(tView, lView);
  71946. }
  71947. /**
  71948. * Registers a QueryList, associated with a content query, for later refresh (part of a view
  71949. * refresh).
  71950. *
  71951. * @param directiveIndex Current directive index
  71952. * @param predicate The type for which the query will search
  71953. * @param descend Whether or not to descend into children
  71954. * @param read What to save in the query
  71955. * @returns QueryList<T>
  71956. *
  71957. * @codeGenApi
  71958. */
  71959. function ɵɵcontentQuery(directiveIndex, predicate, descend, read) {
  71960. contentQueryInternal(getTView(), getLView(), predicate, descend, read, false, getCurrentTNode(), directiveIndex);
  71961. }
  71962. /**
  71963. * Registers a QueryList, associated with a static content query, for later refresh
  71964. * (part of a view refresh).
  71965. *
  71966. * @param directiveIndex Current directive index
  71967. * @param predicate The type for which the query will search
  71968. * @param descend Whether or not to descend into children
  71969. * @param read What to save in the query
  71970. * @returns QueryList<T>
  71971. *
  71972. * @codeGenApi
  71973. */
  71974. function ɵɵstaticContentQuery(directiveIndex, predicate, descend, read) {
  71975. contentQueryInternal(getTView(), getLView(), predicate, descend, read, true, getCurrentTNode(), directiveIndex);
  71976. }
  71977. function contentQueryInternal(tView, lView, predicate, descend, read, isStatic, tNode, directiveIndex) {
  71978. if (tView.firstCreatePass) {
  71979. createTQuery(tView, new TQueryMetadata_(predicate, descend, isStatic, read), tNode.index);
  71980. saveContentQueryAndDirectiveIndex(tView, directiveIndex);
  71981. if (isStatic) {
  71982. tView.staticContentQueries = true;
  71983. }
  71984. }
  71985. createLQuery(tView, lView);
  71986. }
  71987. /**
  71988. * Loads a QueryList corresponding to the current view or content query.
  71989. *
  71990. * @codeGenApi
  71991. */
  71992. function ɵɵloadQuery() {
  71993. return loadQueryInternal(getLView(), getCurrentQueryIndex());
  71994. }
  71995. function loadQueryInternal(lView, queryIndex) {
  71996. ngDevMode &&
  71997. assertDefined(lView[QUERIES], 'LQueries should be defined when trying to load a query');
  71998. ngDevMode && assertIndexInRange(lView[QUERIES].queries, queryIndex);
  71999. return lView[QUERIES].queries[queryIndex].queryList;
  72000. }
  72001. function createLQuery(tView, lView) {
  72002. const queryList = new QueryList();
  72003. storeCleanupWithContext(tView, lView, queryList, queryList.destroy);
  72004. if (lView[QUERIES] === null)
  72005. lView[QUERIES] = new LQueries_();
  72006. lView[QUERIES].queries.push(new LQuery_(queryList));
  72007. }
  72008. function createTQuery(tView, metadata, nodeIndex) {
  72009. if (tView.queries === null)
  72010. tView.queries = new TQueries_();
  72011. tView.queries.track(new TQuery_(metadata, nodeIndex));
  72012. }
  72013. function saveContentQueryAndDirectiveIndex(tView, directiveIndex) {
  72014. const tViewContentQueries = tView.contentQueries || (tView.contentQueries = []);
  72015. const lastSavedDirectiveIndex = tViewContentQueries.length ? tViewContentQueries[tViewContentQueries.length - 1] : -1;
  72016. if (directiveIndex !== lastSavedDirectiveIndex) {
  72017. tViewContentQueries.push(tView.queries.length - 1, directiveIndex);
  72018. }
  72019. }
  72020. function getTQuery(tView, index) {
  72021. ngDevMode && assertDefined(tView.queries, 'TQueries must be defined to retrieve a TQuery');
  72022. return tView.queries.getByIndex(index);
  72023. }
  72024. /**
  72025. * @license
  72026. * Copyright Google LLC All Rights Reserved.
  72027. *
  72028. * Use of this source code is governed by an MIT-style license that can be
  72029. * found in the LICENSE file at https://angular.io/license
  72030. */
  72031. /**
  72032. * Retrieves `TemplateRef` instance from `Injector` when a local reference is placed on the
  72033. * `<ng-template>` element.
  72034. *
  72035. * @codeGenApi
  72036. */
  72037. function ɵɵtemplateRefExtractor(tNode, lView) {
  72038. return createTemplateRef(tNode, lView);
  72039. }
  72040. /**
  72041. * Returns the appropriate `ChangeDetectorRef` for a pipe.
  72042. *
  72043. * @codeGenApi
  72044. */
  72045. function ɵɵinjectPipeChangeDetectorRef(flags = InjectFlags.Default) {
  72046. const value = injectChangeDetectorRef(true);
  72047. if (value == null && !(flags & InjectFlags.Optional)) {
  72048. throwProviderNotFoundError('ChangeDetectorRef');
  72049. }
  72050. else {
  72051. return value;
  72052. }
  72053. }
  72054. /**
  72055. * @license
  72056. * Copyright Google LLC All Rights Reserved.
  72057. *
  72058. * Use of this source code is governed by an MIT-style license that can be
  72059. * found in the LICENSE file at https://angular.io/license
  72060. */
  72061. /**
  72062. * @license
  72063. * Copyright Google LLC All Rights Reserved.
  72064. *
  72065. * Use of this source code is governed by an MIT-style license that can be
  72066. * found in the LICENSE file at https://angular.io/license
  72067. */
  72068. const ɵ0$c = () => ({
  72069. 'ɵɵattribute': ɵɵattribute,
  72070. 'ɵɵattributeInterpolate1': ɵɵattributeInterpolate1,
  72071. 'ɵɵattributeInterpolate2': ɵɵattributeInterpolate2,
  72072. 'ɵɵattributeInterpolate3': ɵɵattributeInterpolate3,
  72073. 'ɵɵattributeInterpolate4': ɵɵattributeInterpolate4,
  72074. 'ɵɵattributeInterpolate5': ɵɵattributeInterpolate5,
  72075. 'ɵɵattributeInterpolate6': ɵɵattributeInterpolate6,
  72076. 'ɵɵattributeInterpolate7': ɵɵattributeInterpolate7,
  72077. 'ɵɵattributeInterpolate8': ɵɵattributeInterpolate8,
  72078. 'ɵɵattributeInterpolateV': ɵɵattributeInterpolateV,
  72079. 'ɵɵdefineComponent': ɵɵdefineComponent,
  72080. 'ɵɵdefineDirective': ɵɵdefineDirective,
  72081. 'ɵɵdefineInjectable': ɵɵdefineInjectable,
  72082. 'ɵɵdefineInjector': ɵɵdefineInjector,
  72083. 'ɵɵdefineNgModule': ɵɵdefineNgModule,
  72084. 'ɵɵdefinePipe': ɵɵdefinePipe,
  72085. 'ɵɵdirectiveInject': ɵɵdirectiveInject,
  72086. 'ɵɵgetFactoryOf': ɵɵgetFactoryOf,
  72087. 'ɵɵgetInheritedFactory': ɵɵgetInheritedFactory,
  72088. 'ɵɵinject': ɵɵinject,
  72089. 'ɵɵinjectAttribute': ɵɵinjectAttribute,
  72090. 'ɵɵinvalidFactory': ɵɵinvalidFactory,
  72091. 'ɵɵinvalidFactoryDep': ɵɵinvalidFactoryDep,
  72092. 'ɵɵinjectPipeChangeDetectorRef': ɵɵinjectPipeChangeDetectorRef,
  72093. 'ɵɵtemplateRefExtractor': ɵɵtemplateRefExtractor,
  72094. 'ɵɵNgOnChangesFeature': ɵɵNgOnChangesFeature,
  72095. 'ɵɵProvidersFeature': ɵɵProvidersFeature,
  72096. 'ɵɵCopyDefinitionFeature': ɵɵCopyDefinitionFeature,
  72097. 'ɵɵInheritDefinitionFeature': ɵɵInheritDefinitionFeature,
  72098. 'ɵɵnextContext': ɵɵnextContext,
  72099. 'ɵɵnamespaceHTML': ɵɵnamespaceHTML,
  72100. 'ɵɵnamespaceMathML': ɵɵnamespaceMathML,
  72101. 'ɵɵnamespaceSVG': ɵɵnamespaceSVG,
  72102. 'ɵɵenableBindings': ɵɵenableBindings,
  72103. 'ɵɵdisableBindings': ɵɵdisableBindings,
  72104. 'ɵɵelementStart': ɵɵelementStart,
  72105. 'ɵɵelementEnd': ɵɵelementEnd,
  72106. 'ɵɵelement': ɵɵelement,
  72107. 'ɵɵelementContainerStart': ɵɵelementContainerStart,
  72108. 'ɵɵelementContainerEnd': ɵɵelementContainerEnd,
  72109. 'ɵɵelementContainer': ɵɵelementContainer,
  72110. 'ɵɵpureFunction0': ɵɵpureFunction0,
  72111. 'ɵɵpureFunction1': ɵɵpureFunction1,
  72112. 'ɵɵpureFunction2': ɵɵpureFunction2,
  72113. 'ɵɵpureFunction3': ɵɵpureFunction3,
  72114. 'ɵɵpureFunction4': ɵɵpureFunction4,
  72115. 'ɵɵpureFunction5': ɵɵpureFunction5,
  72116. 'ɵɵpureFunction6': ɵɵpureFunction6,
  72117. 'ɵɵpureFunction7': ɵɵpureFunction7,
  72118. 'ɵɵpureFunction8': ɵɵpureFunction8,
  72119. 'ɵɵpureFunctionV': ɵɵpureFunctionV,
  72120. 'ɵɵgetCurrentView': ɵɵgetCurrentView,
  72121. 'ɵɵrestoreView': ɵɵrestoreView,
  72122. 'ɵɵlistener': ɵɵlistener,
  72123. 'ɵɵprojection': ɵɵprojection,
  72124. 'ɵɵsyntheticHostProperty': ɵɵsyntheticHostProperty,
  72125. 'ɵɵsyntheticHostListener': ɵɵsyntheticHostListener,
  72126. 'ɵɵpipeBind1': ɵɵpipeBind1,
  72127. 'ɵɵpipeBind2': ɵɵpipeBind2,
  72128. 'ɵɵpipeBind3': ɵɵpipeBind3,
  72129. 'ɵɵpipeBind4': ɵɵpipeBind4,
  72130. 'ɵɵpipeBindV': ɵɵpipeBindV,
  72131. 'ɵɵprojectionDef': ɵɵprojectionDef,
  72132. 'ɵɵhostProperty': ɵɵhostProperty,
  72133. 'ɵɵproperty': ɵɵproperty,
  72134. 'ɵɵpropertyInterpolate': ɵɵpropertyInterpolate,
  72135. 'ɵɵpropertyInterpolate1': ɵɵpropertyInterpolate1,
  72136. 'ɵɵpropertyInterpolate2': ɵɵpropertyInterpolate2,
  72137. 'ɵɵpropertyInterpolate3': ɵɵpropertyInterpolate3,
  72138. 'ɵɵpropertyInterpolate4': ɵɵpropertyInterpolate4,
  72139. 'ɵɵpropertyInterpolate5': ɵɵpropertyInterpolate5,
  72140. 'ɵɵpropertyInterpolate6': ɵɵpropertyInterpolate6,
  72141. 'ɵɵpropertyInterpolate7': ɵɵpropertyInterpolate7,
  72142. 'ɵɵpropertyInterpolate8': ɵɵpropertyInterpolate8,
  72143. 'ɵɵpropertyInterpolateV': ɵɵpropertyInterpolateV,
  72144. 'ɵɵpipe': ɵɵpipe,
  72145. 'ɵɵqueryRefresh': ɵɵqueryRefresh,
  72146. 'ɵɵviewQuery': ɵɵviewQuery,
  72147. 'ɵɵstaticViewQuery': ɵɵstaticViewQuery,
  72148. 'ɵɵstaticContentQuery': ɵɵstaticContentQuery,
  72149. 'ɵɵloadQuery': ɵɵloadQuery,
  72150. 'ɵɵcontentQuery': ɵɵcontentQuery,
  72151. 'ɵɵreference': ɵɵreference,
  72152. 'ɵɵclassMap': ɵɵclassMap,
  72153. 'ɵɵclassMapInterpolate1': ɵɵclassMapInterpolate1,
  72154. 'ɵɵclassMapInterpolate2': ɵɵclassMapInterpolate2,
  72155. 'ɵɵclassMapInterpolate3': ɵɵclassMapInterpolate3,
  72156. 'ɵɵclassMapInterpolate4': ɵɵclassMapInterpolate4,
  72157. 'ɵɵclassMapInterpolate5': ɵɵclassMapInterpolate5,
  72158. 'ɵɵclassMapInterpolate6': ɵɵclassMapInterpolate6,
  72159. 'ɵɵclassMapInterpolate7': ɵɵclassMapInterpolate7,
  72160. 'ɵɵclassMapInterpolate8': ɵɵclassMapInterpolate8,
  72161. 'ɵɵclassMapInterpolateV': ɵɵclassMapInterpolateV,
  72162. 'ɵɵstyleMap': ɵɵstyleMap,
  72163. 'ɵɵstyleMapInterpolate1': ɵɵstyleMapInterpolate1,
  72164. 'ɵɵstyleMapInterpolate2': ɵɵstyleMapInterpolate2,
  72165. 'ɵɵstyleMapInterpolate3': ɵɵstyleMapInterpolate3,
  72166. 'ɵɵstyleMapInterpolate4': ɵɵstyleMapInterpolate4,
  72167. 'ɵɵstyleMapInterpolate5': ɵɵstyleMapInterpolate5,
  72168. 'ɵɵstyleMapInterpolate6': ɵɵstyleMapInterpolate6,
  72169. 'ɵɵstyleMapInterpolate7': ɵɵstyleMapInterpolate7,
  72170. 'ɵɵstyleMapInterpolate8': ɵɵstyleMapInterpolate8,
  72171. 'ɵɵstyleMapInterpolateV': ɵɵstyleMapInterpolateV,
  72172. 'ɵɵstyleProp': ɵɵstyleProp,
  72173. 'ɵɵstylePropInterpolate1': ɵɵstylePropInterpolate1,
  72174. 'ɵɵstylePropInterpolate2': ɵɵstylePropInterpolate2,
  72175. 'ɵɵstylePropInterpolate3': ɵɵstylePropInterpolate3,
  72176. 'ɵɵstylePropInterpolate4': ɵɵstylePropInterpolate4,
  72177. 'ɵɵstylePropInterpolate5': ɵɵstylePropInterpolate5,
  72178. 'ɵɵstylePropInterpolate6': ɵɵstylePropInterpolate6,
  72179. 'ɵɵstylePropInterpolate7': ɵɵstylePropInterpolate7,
  72180. 'ɵɵstylePropInterpolate8': ɵɵstylePropInterpolate8,
  72181. 'ɵɵstylePropInterpolateV': ɵɵstylePropInterpolateV,
  72182. 'ɵɵclassProp': ɵɵclassProp,
  72183. 'ɵɵadvance': ɵɵadvance,
  72184. 'ɵɵtemplate': ɵɵtemplate,
  72185. 'ɵɵtext': ɵɵtext,
  72186. 'ɵɵtextInterpolate': ɵɵtextInterpolate,
  72187. 'ɵɵtextInterpolate1': ɵɵtextInterpolate1,
  72188. 'ɵɵtextInterpolate2': ɵɵtextInterpolate2,
  72189. 'ɵɵtextInterpolate3': ɵɵtextInterpolate3,
  72190. 'ɵɵtextInterpolate4': ɵɵtextInterpolate4,
  72191. 'ɵɵtextInterpolate5': ɵɵtextInterpolate5,
  72192. 'ɵɵtextInterpolate6': ɵɵtextInterpolate6,
  72193. 'ɵɵtextInterpolate7': ɵɵtextInterpolate7,
  72194. 'ɵɵtextInterpolate8': ɵɵtextInterpolate8,
  72195. 'ɵɵtextInterpolateV': ɵɵtextInterpolateV,
  72196. 'ɵɵi18n': ɵɵi18n,
  72197. 'ɵɵi18nAttributes': ɵɵi18nAttributes,
  72198. 'ɵɵi18nExp': ɵɵi18nExp,
  72199. 'ɵɵi18nStart': ɵɵi18nStart,
  72200. 'ɵɵi18nEnd': ɵɵi18nEnd,
  72201. 'ɵɵi18nApply': ɵɵi18nApply,
  72202. 'ɵɵi18nPostprocess': ɵɵi18nPostprocess,
  72203. 'ɵɵresolveWindow': ɵɵresolveWindow,
  72204. 'ɵɵresolveDocument': ɵɵresolveDocument,
  72205. 'ɵɵresolveBody': ɵɵresolveBody,
  72206. 'ɵɵsetComponentScope': ɵɵsetComponentScope,
  72207. 'ɵɵsetNgModuleScope': ɵɵsetNgModuleScope,
  72208. 'ɵɵsanitizeHtml': ɵɵsanitizeHtml,
  72209. 'ɵɵsanitizeStyle': ɵɵsanitizeStyle,
  72210. 'ɵɵsanitizeResourceUrl': ɵɵsanitizeResourceUrl,
  72211. 'ɵɵsanitizeScript': ɵɵsanitizeScript,
  72212. 'ɵɵsanitizeUrl': ɵɵsanitizeUrl,
  72213. 'ɵɵsanitizeUrlOrResourceUrl': ɵɵsanitizeUrlOrResourceUrl,
  72214. 'ɵɵtrustConstantHtml': ɵɵtrustConstantHtml,
  72215. 'ɵɵtrustConstantScript': ɵɵtrustConstantScript,
  72216. 'ɵɵtrustConstantResourceUrl': ɵɵtrustConstantResourceUrl,
  72217. });
  72218. /**
  72219. * A mapping of the @angular/core API surface used in generated expressions to the actual symbols.
  72220. *
  72221. * This should be kept up to date with the public exports of @angular/core.
  72222. */
  72223. const angularCoreEnv = (ɵ0$c)();
  72224. let jitOptions = null;
  72225. function setJitOptions(options) {
  72226. if (jitOptions !== null) {
  72227. if (options.defaultEncapsulation !== jitOptions.defaultEncapsulation) {
  72228. ngDevMode &&
  72229. console.error('Provided value for `defaultEncapsulation` can not be changed once it has been set.');
  72230. return;
  72231. }
  72232. if (options.preserveWhitespaces !== jitOptions.preserveWhitespaces) {
  72233. ngDevMode &&
  72234. console.error('Provided value for `preserveWhitespaces` can not be changed once it has been set.');
  72235. return;
  72236. }
  72237. }
  72238. jitOptions = options;
  72239. }
  72240. function getJitOptions() {
  72241. return jitOptions;
  72242. }
  72243. function resetJitOptions() {
  72244. jitOptions = null;
  72245. }
  72246. /**
  72247. * @license
  72248. * Copyright Google LLC All Rights Reserved.
  72249. *
  72250. * Use of this source code is governed by an MIT-style license that can be
  72251. * found in the LICENSE file at https://angular.io/license
  72252. */
  72253. const EMPTY_ARRAY$5 = [];
  72254. const moduleQueue = [];
  72255. /**
  72256. * Enqueues moduleDef to be checked later to see if scope can be set on its
  72257. * component declarations.
  72258. */
  72259. function enqueueModuleForDelayedScoping(moduleType, ngModule) {
  72260. moduleQueue.push({ moduleType, ngModule });
  72261. }
  72262. let flushingModuleQueue = false;
  72263. /**
  72264. * Loops over queued module definitions, if a given module definition has all of its
  72265. * declarations resolved, it dequeues that module definition and sets the scope on
  72266. * its declarations.
  72267. */
  72268. function flushModuleScopingQueueAsMuchAsPossible() {
  72269. if (!flushingModuleQueue) {
  72270. flushingModuleQueue = true;
  72271. try {
  72272. for (let i = moduleQueue.length - 1; i >= 0; i--) {
  72273. const { moduleType, ngModule } = moduleQueue[i];
  72274. if (ngModule.declarations && ngModule.declarations.every(isResolvedDeclaration)) {
  72275. // dequeue
  72276. moduleQueue.splice(i, 1);
  72277. setScopeOnDeclaredComponents(moduleType, ngModule);
  72278. }
  72279. }
  72280. }
  72281. finally {
  72282. flushingModuleQueue = false;
  72283. }
  72284. }
  72285. }
  72286. /**
  72287. * Returns truthy if a declaration has resolved. If the declaration happens to be
  72288. * an array of declarations, it will recurse to check each declaration in that array
  72289. * (which may also be arrays).
  72290. */
  72291. function isResolvedDeclaration(declaration) {
  72292. if (Array.isArray(declaration)) {
  72293. return declaration.every(isResolvedDeclaration);
  72294. }
  72295. return !!resolveForwardRef(declaration);
  72296. }
  72297. /**
  72298. * Compiles a module in JIT mode.
  72299. *
  72300. * This function automatically gets called when a class has a `@NgModule` decorator.
  72301. */
  72302. function compileNgModule(moduleType, ngModule = {}) {
  72303. compileNgModuleDefs(moduleType, ngModule);
  72304. // Because we don't know if all declarations have resolved yet at the moment the
  72305. // NgModule decorator is executing, we're enqueueing the setting of module scope
  72306. // on its declarations to be run at a later time when all declarations for the module,
  72307. // including forward refs, have resolved.
  72308. enqueueModuleForDelayedScoping(moduleType, ngModule);
  72309. }
  72310. /**
  72311. * Compiles and adds the `ɵmod` and `ɵinj` properties to the module class.
  72312. *
  72313. * It's possible to compile a module via this API which will allow duplicate declarations in its
  72314. * root.
  72315. */
  72316. function compileNgModuleDefs(moduleType, ngModule, allowDuplicateDeclarationsInRoot = false) {
  72317. ngDevMode && assertDefined(moduleType, 'Required value moduleType');
  72318. ngDevMode && assertDefined(ngModule, 'Required value ngModule');
  72319. const declarations = flatten(ngModule.declarations || EMPTY_ARRAY$5);
  72320. let ngModuleDef = null;
  72321. Object.defineProperty(moduleType, NG_MOD_DEF, {
  72322. configurable: true,
  72323. get: () => {
  72324. if (ngModuleDef === null) {
  72325. if (ngDevMode && ngModule.imports && ngModule.imports.indexOf(moduleType) > -1) {
  72326. // We need to assert this immediately, because allowing it to continue will cause it to
  72327. // go into an infinite loop before we've reached the point where we throw all the errors.
  72328. throw new Error(`'${stringifyForError(moduleType)}' module can't import itself`);
  72329. }
  72330. ngModuleDef = getCompilerFacade().compileNgModule(angularCoreEnv, `ng:///${moduleType.name}/ɵmod.js`, {
  72331. type: moduleType,
  72332. bootstrap: flatten(ngModule.bootstrap || EMPTY_ARRAY$5).map(resolveForwardRef),
  72333. declarations: declarations.map(resolveForwardRef),
  72334. imports: flatten(ngModule.imports || EMPTY_ARRAY$5)
  72335. .map(resolveForwardRef)
  72336. .map(expandModuleWithProviders),
  72337. exports: flatten(ngModule.exports || EMPTY_ARRAY$5)
  72338. .map(resolveForwardRef)
  72339. .map(expandModuleWithProviders),
  72340. schemas: ngModule.schemas ? flatten(ngModule.schemas) : null,
  72341. id: ngModule.id || null,
  72342. });
  72343. // Set `schemas` on ngModuleDef to an empty array in JIT mode to indicate that runtime
  72344. // should verify that there are no unknown elements in a template. In AOT mode, that check
  72345. // happens at compile time and `schemas` information is not present on Component and Module
  72346. // defs after compilation (so the check doesn't happen the second time at runtime).
  72347. if (!ngModuleDef.schemas) {
  72348. ngModuleDef.schemas = [];
  72349. }
  72350. }
  72351. return ngModuleDef;
  72352. }
  72353. });
  72354. let ngInjectorDef = null;
  72355. Object.defineProperty(moduleType, NG_INJ_DEF, {
  72356. get: () => {
  72357. if (ngInjectorDef === null) {
  72358. ngDevMode &&
  72359. verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot);
  72360. const meta = {
  72361. name: moduleType.name,
  72362. type: moduleType,
  72363. deps: reflectDependencies(moduleType),
  72364. providers: ngModule.providers || EMPTY_ARRAY$5,
  72365. imports: [
  72366. (ngModule.imports || EMPTY_ARRAY$5).map(resolveForwardRef),
  72367. (ngModule.exports || EMPTY_ARRAY$5).map(resolveForwardRef),
  72368. ],
  72369. };
  72370. ngInjectorDef = getCompilerFacade().compileInjector(angularCoreEnv, `ng:///${moduleType.name}/ɵinj.js`, meta);
  72371. }
  72372. return ngInjectorDef;
  72373. },
  72374. // Make the property configurable in dev mode to allow overriding in tests
  72375. configurable: !!ngDevMode,
  72376. });
  72377. }
  72378. function verifySemanticsOfNgModuleDef(moduleType, allowDuplicateDeclarationsInRoot, importingModule) {
  72379. if (verifiedNgModule.get(moduleType))
  72380. return;
  72381. verifiedNgModule.set(moduleType, true);
  72382. moduleType = resolveForwardRef(moduleType);
  72383. let ngModuleDef;
  72384. if (importingModule) {
  72385. ngModuleDef = getNgModuleDef(moduleType);
  72386. if (!ngModuleDef) {
  72387. throw new Error(`Unexpected value '${moduleType.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);
  72388. }
  72389. }
  72390. else {
  72391. ngModuleDef = getNgModuleDef(moduleType, true);
  72392. }
  72393. const errors = [];
  72394. const declarations = maybeUnwrapFn(ngModuleDef.declarations);
  72395. const imports = maybeUnwrapFn(ngModuleDef.imports);
  72396. flatten(imports).map(unwrapModuleWithProvidersImports).forEach(mod => {
  72397. verifySemanticsOfNgModuleImport(mod, moduleType);
  72398. verifySemanticsOfNgModuleDef(mod, false, moduleType);
  72399. });
  72400. const exports = maybeUnwrapFn(ngModuleDef.exports);
  72401. declarations.forEach(verifyDeclarationsHaveDefinitions);
  72402. declarations.forEach(verifyDirectivesHaveSelector);
  72403. const combinedDeclarations = [
  72404. ...declarations.map(resolveForwardRef),
  72405. ...flatten(imports.map(computeCombinedExports)).map(resolveForwardRef),
  72406. ];
  72407. exports.forEach(verifyExportsAreDeclaredOrReExported);
  72408. declarations.forEach(decl => verifyDeclarationIsUnique(decl, allowDuplicateDeclarationsInRoot));
  72409. declarations.forEach(verifyComponentEntryComponentsIsPartOfNgModule);
  72410. const ngModule = getAnnotation(moduleType, 'NgModule');
  72411. if (ngModule) {
  72412. ngModule.imports &&
  72413. flatten(ngModule.imports).map(unwrapModuleWithProvidersImports).forEach(mod => {
  72414. verifySemanticsOfNgModuleImport(mod, moduleType);
  72415. verifySemanticsOfNgModuleDef(mod, false, moduleType);
  72416. });
  72417. ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyCorrectBootstrapType);
  72418. ngModule.bootstrap && deepForEach(ngModule.bootstrap, verifyComponentIsPartOfNgModule);
  72419. ngModule.entryComponents &&
  72420. deepForEach(ngModule.entryComponents, verifyComponentIsPartOfNgModule);
  72421. }
  72422. // Throw Error if any errors were detected.
  72423. if (errors.length) {
  72424. throw new Error(errors.join('\n'));
  72425. }
  72426. ////////////////////////////////////////////////////////////////////////////////////////////////
  72427. function verifyDeclarationsHaveDefinitions(type) {
  72428. type = resolveForwardRef(type);
  72429. const def = getComponentDef(type) || getDirectiveDef(type) || getPipeDef(type);
  72430. if (!def) {
  72431. errors.push(`Unexpected value '${stringifyForError(type)}' declared by the module '${stringifyForError(moduleType)}'. Please add a @Pipe/@Directive/@Component annotation.`);
  72432. }
  72433. }
  72434. function verifyDirectivesHaveSelector(type) {
  72435. type = resolveForwardRef(type);
  72436. const def = getDirectiveDef(type);
  72437. if (!getComponentDef(type) && def && def.selectors.length == 0) {
  72438. errors.push(`Directive ${stringifyForError(type)} has no selector, please add it!`);
  72439. }
  72440. }
  72441. function verifyExportsAreDeclaredOrReExported(type) {
  72442. type = resolveForwardRef(type);
  72443. const kind = getComponentDef(type) && 'component' || getDirectiveDef(type) && 'directive' ||
  72444. getPipeDef(type) && 'pipe';
  72445. if (kind) {
  72446. // only checked if we are declared as Component, Directive, or Pipe
  72447. // Modules don't need to be declared or imported.
  72448. if (combinedDeclarations.lastIndexOf(type) === -1) {
  72449. // We are exporting something which we don't explicitly declare or import.
  72450. errors.push(`Can't export ${kind} ${stringifyForError(type)} from ${stringifyForError(moduleType)} as it was neither declared nor imported!`);
  72451. }
  72452. }
  72453. }
  72454. function verifyDeclarationIsUnique(type, suppressErrors) {
  72455. type = resolveForwardRef(type);
  72456. const existingModule = ownerNgModule.get(type);
  72457. if (existingModule && existingModule !== moduleType) {
  72458. if (!suppressErrors) {
  72459. const modules = [existingModule, moduleType].map(stringifyForError).sort();
  72460. errors.push(`Type ${stringifyForError(type)} is part of the declarations of 2 modules: ${modules[0]} and ${modules[1]}! ` +
  72461. `Please consider moving ${stringifyForError(type)} to a higher module that imports ${modules[0]} and ${modules[1]}. ` +
  72462. `You can also create a new NgModule that exports and includes ${stringifyForError(type)} then import that NgModule in ${modules[0]} and ${modules[1]}.`);
  72463. }
  72464. }
  72465. else {
  72466. // Mark type as having owner.
  72467. ownerNgModule.set(type, moduleType);
  72468. }
  72469. }
  72470. function verifyComponentIsPartOfNgModule(type) {
  72471. type = resolveForwardRef(type);
  72472. const existingModule = ownerNgModule.get(type);
  72473. if (!existingModule) {
  72474. errors.push(`Component ${stringifyForError(type)} is not part of any NgModule or the module has not been imported into your module.`);
  72475. }
  72476. }
  72477. function verifyCorrectBootstrapType(type) {
  72478. type = resolveForwardRef(type);
  72479. if (!getComponentDef(type)) {
  72480. errors.push(`${stringifyForError(type)} cannot be used as an entry component.`);
  72481. }
  72482. }
  72483. function verifyComponentEntryComponentsIsPartOfNgModule(type) {
  72484. type = resolveForwardRef(type);
  72485. if (getComponentDef(type)) {
  72486. // We know we are component
  72487. const component = getAnnotation(type, 'Component');
  72488. if (component && component.entryComponents) {
  72489. deepForEach(component.entryComponents, verifyComponentIsPartOfNgModule);
  72490. }
  72491. }
  72492. }
  72493. function verifySemanticsOfNgModuleImport(type, importingModule) {
  72494. type = resolveForwardRef(type);
  72495. if (getComponentDef(type) || getDirectiveDef(type)) {
  72496. throw new Error(`Unexpected directive '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);
  72497. }
  72498. if (getPipeDef(type)) {
  72499. throw new Error(`Unexpected pipe '${type.name}' imported by the module '${importingModule.name}'. Please add an @NgModule annotation.`);
  72500. }
  72501. }
  72502. }
  72503. function unwrapModuleWithProvidersImports(typeOrWithProviders) {
  72504. typeOrWithProviders = resolveForwardRef(typeOrWithProviders);
  72505. return typeOrWithProviders.ngModule || typeOrWithProviders;
  72506. }
  72507. function getAnnotation(type, name) {
  72508. let annotation = null;
  72509. collect(type.__annotations__);
  72510. collect(type.decorators);
  72511. return annotation;
  72512. function collect(annotations) {
  72513. if (annotations) {
  72514. annotations.forEach(readAnnotation);
  72515. }
  72516. }
  72517. function readAnnotation(decorator) {
  72518. if (!annotation) {
  72519. const proto = Object.getPrototypeOf(decorator);
  72520. if (proto.ngMetadataName == name) {
  72521. annotation = decorator;
  72522. }
  72523. else if (decorator.type) {
  72524. const proto = Object.getPrototypeOf(decorator.type);
  72525. if (proto.ngMetadataName == name) {
  72526. annotation = decorator.args[0];
  72527. }
  72528. }
  72529. }
  72530. }
  72531. }
  72532. /**
  72533. * Keep track of compiled components. This is needed because in tests we often want to compile the
  72534. * same component with more than one NgModule. This would cause an error unless we reset which
  72535. * NgModule the component belongs to. We keep the list of compiled components here so that the
  72536. * TestBed can reset it later.
  72537. */
  72538. let ownerNgModule = new Map();
  72539. let verifiedNgModule = new Map();
  72540. function resetCompiledComponents() {
  72541. ownerNgModule = new Map();
  72542. verifiedNgModule = new Map();
  72543. moduleQueue.length = 0;
  72544. }
  72545. /**
  72546. * Computes the combined declarations of explicit declarations, as well as declarations inherited by
  72547. * traversing the exports of imported modules.
  72548. * @param type
  72549. */
  72550. function computeCombinedExports(type) {
  72551. type = resolveForwardRef(type);
  72552. const ngModuleDef = getNgModuleDef(type, true);
  72553. return [...flatten(maybeUnwrapFn(ngModuleDef.exports).map((type) => {
  72554. const ngModuleDef = getNgModuleDef(type);
  72555. if (ngModuleDef) {
  72556. verifySemanticsOfNgModuleDef(type, false);
  72557. return computeCombinedExports(type);
  72558. }
  72559. else {
  72560. return type;
  72561. }
  72562. }))];
  72563. }
  72564. /**
  72565. * Some declared components may be compiled asynchronously, and thus may not have their
  72566. * ɵcmp set yet. If this is the case, then a reference to the module is written into
  72567. * the `ngSelectorScope` property of the declared type.
  72568. */
  72569. function setScopeOnDeclaredComponents(moduleType, ngModule) {
  72570. const declarations = flatten(ngModule.declarations || EMPTY_ARRAY$5);
  72571. const transitiveScopes = transitiveScopesFor(moduleType);
  72572. declarations.forEach(declaration => {
  72573. if (declaration.hasOwnProperty(NG_COMP_DEF)) {
  72574. // A `ɵcmp` field exists - go ahead and patch the component directly.
  72575. const component = declaration;
  72576. const componentDef = getComponentDef(component);
  72577. patchComponentDefWithScope(componentDef, transitiveScopes);
  72578. }
  72579. else if (!declaration.hasOwnProperty(NG_DIR_DEF) && !declaration.hasOwnProperty(NG_PIPE_DEF)) {
  72580. // Set `ngSelectorScope` for future reference when the component compilation finishes.
  72581. declaration.ngSelectorScope = moduleType;
  72582. }
  72583. });
  72584. }
  72585. /**
  72586. * Patch the definition of a component with directives and pipes from the compilation scope of
  72587. * a given module.
  72588. */
  72589. function patchComponentDefWithScope(componentDef, transitiveScopes) {
  72590. componentDef.directiveDefs = () => Array.from(transitiveScopes.compilation.directives)
  72591. .map(dir => dir.hasOwnProperty(NG_COMP_DEF) ? getComponentDef(dir) : getDirectiveDef(dir))
  72592. .filter(def => !!def);
  72593. componentDef.pipeDefs = () => Array.from(transitiveScopes.compilation.pipes).map(pipe => getPipeDef(pipe));
  72594. componentDef.schemas = transitiveScopes.schemas;
  72595. // Since we avoid Components/Directives/Pipes recompiling in case there are no overrides, we
  72596. // may face a problem where previously compiled defs available to a given Component/Directive
  72597. // are cached in TView and may become stale (in case any of these defs gets recompiled). In
  72598. // order to avoid this problem, we force fresh TView to be created.
  72599. componentDef.tView = null;
  72600. }
  72601. /**
  72602. * Compute the pair of transitive scopes (compilation scope and exported scope) for a given module.
  72603. *
  72604. * This operation is memoized and the result is cached on the module's definition. This function can
  72605. * be called on modules with components that have not fully compiled yet, but the result should not
  72606. * be used until they have.
  72607. *
  72608. * @param moduleType module that transitive scope should be calculated for.
  72609. */
  72610. function transitiveScopesFor(moduleType) {
  72611. if (!isNgModule(moduleType)) {
  72612. throw new Error(`${moduleType.name} does not have a module def (ɵmod property)`);
  72613. }
  72614. const def = getNgModuleDef(moduleType);
  72615. if (def.transitiveCompileScopes !== null) {
  72616. return def.transitiveCompileScopes;
  72617. }
  72618. const scopes = {
  72619. schemas: def.schemas || null,
  72620. compilation: {
  72621. directives: new Set(),
  72622. pipes: new Set(),
  72623. },
  72624. exported: {
  72625. directives: new Set(),
  72626. pipes: new Set(),
  72627. },
  72628. };
  72629. maybeUnwrapFn(def.imports).forEach((imported) => {
  72630. const importedType = imported;
  72631. if (!isNgModule(importedType)) {
  72632. throw new Error(`Importing ${importedType.name} which does not have a ɵmod property`);
  72633. }
  72634. // When this module imports another, the imported module's exported directives and pipes are
  72635. // added to the compilation scope of this module.
  72636. const importedScope = transitiveScopesFor(importedType);
  72637. importedScope.exported.directives.forEach(entry => scopes.compilation.directives.add(entry));
  72638. importedScope.exported.pipes.forEach(entry => scopes.compilation.pipes.add(entry));
  72639. });
  72640. maybeUnwrapFn(def.declarations).forEach(declared => {
  72641. const declaredWithDefs = declared;
  72642. if (getPipeDef(declaredWithDefs)) {
  72643. scopes.compilation.pipes.add(declared);
  72644. }
  72645. else {
  72646. // Either declared has a ɵcmp or ɵdir, or it's a component which hasn't
  72647. // had its template compiled yet. In either case, it gets added to the compilation's
  72648. // directives.
  72649. scopes.compilation.directives.add(declared);
  72650. }
  72651. });
  72652. maybeUnwrapFn(def.exports).forEach((exported) => {
  72653. const exportedType = exported;
  72654. // Either the type is a module, a pipe, or a component/directive (which may not have a
  72655. // ɵcmp as it might be compiled asynchronously).
  72656. if (isNgModule(exportedType)) {
  72657. // When this module exports another, the exported module's exported directives and pipes are
  72658. // added to both the compilation and exported scopes of this module.
  72659. const exportedScope = transitiveScopesFor(exportedType);
  72660. exportedScope.exported.directives.forEach(entry => {
  72661. scopes.compilation.directives.add(entry);
  72662. scopes.exported.directives.add(entry);
  72663. });
  72664. exportedScope.exported.pipes.forEach(entry => {
  72665. scopes.compilation.pipes.add(entry);
  72666. scopes.exported.pipes.add(entry);
  72667. });
  72668. }
  72669. else if (getPipeDef(exportedType)) {
  72670. scopes.exported.pipes.add(exportedType);
  72671. }
  72672. else {
  72673. scopes.exported.directives.add(exportedType);
  72674. }
  72675. });
  72676. def.transitiveCompileScopes = scopes;
  72677. return scopes;
  72678. }
  72679. function expandModuleWithProviders(value) {
  72680. if (isModuleWithProviders(value)) {
  72681. return value.ngModule;
  72682. }
  72683. return value;
  72684. }
  72685. function isModuleWithProviders(value) {
  72686. return value.ngModule !== undefined;
  72687. }
  72688. function isNgModule(value) {
  72689. return !!getNgModuleDef(value);
  72690. }
  72691. /**
  72692. * @license
  72693. * Copyright Google LLC All Rights Reserved.
  72694. *
  72695. * Use of this source code is governed by an MIT-style license that can be
  72696. * found in the LICENSE file at https://angular.io/license
  72697. */
  72698. /**
  72699. * Keep track of the compilation depth to avoid reentrancy issues during JIT compilation. This
  72700. * matters in the following scenario:
  72701. *
  72702. * Consider a component 'A' that extends component 'B', both declared in module 'M'. During
  72703. * the compilation of 'A' the definition of 'B' is requested to capture the inheritance chain,
  72704. * potentially triggering compilation of 'B'. If this nested compilation were to trigger
  72705. * `flushModuleScopingQueueAsMuchAsPossible` it may happen that module 'M' is still pending in the
  72706. * queue, resulting in 'A' and 'B' to be patched with the NgModule scope. As the compilation of
  72707. * 'A' is still in progress, this would introduce a circular dependency on its compilation. To avoid
  72708. * this issue, the module scope queue is only flushed for compilations at the depth 0, to ensure
  72709. * all compilations have finished.
  72710. */
  72711. let compilationDepth = 0;
  72712. /**
  72713. * Compile an Angular component according to its decorator metadata, and patch the resulting
  72714. * component def (ɵcmp) onto the component type.
  72715. *
  72716. * Compilation may be asynchronous (due to the need to resolve URLs for the component template or
  72717. * other resources, for example). In the event that compilation is not immediate, `compileComponent`
  72718. * will enqueue resource resolution into a global queue and will fail to return the `ɵcmp`
  72719. * until the global queue has been resolved with a call to `resolveComponentResources`.
  72720. */
  72721. function compileComponent(type, metadata) {
  72722. // Initialize ngDevMode. This must be the first statement in compileComponent.
  72723. // See the `initNgDevMode` docstring for more information.
  72724. (typeof ngDevMode === 'undefined' || ngDevMode) && initNgDevMode();
  72725. let ngComponentDef = null;
  72726. // Metadata may have resources which need to be resolved.
  72727. maybeQueueResolutionOfComponentResources(type, metadata);
  72728. // Note that we're using the same function as `Directive`, because that's only subset of metadata
  72729. // that we need to create the ngFactoryDef. We're avoiding using the component metadata
  72730. // because we'd have to resolve the asynchronous templates.
  72731. addDirectiveFactoryDef(type, metadata);
  72732. Object.defineProperty(type, NG_COMP_DEF, {
  72733. get: () => {
  72734. if (ngComponentDef === null) {
  72735. const compiler = getCompilerFacade();
  72736. if (componentNeedsResolution(metadata)) {
  72737. const error = [`Component '${type.name}' is not resolved:`];
  72738. if (metadata.templateUrl) {
  72739. error.push(` - templateUrl: ${metadata.templateUrl}`);
  72740. }
  72741. if (metadata.styleUrls && metadata.styleUrls.length) {
  72742. error.push(` - styleUrls: ${JSON.stringify(metadata.styleUrls)}`);
  72743. }
  72744. error.push(`Did you run and wait for 'resolveComponentResources()'?`);
  72745. throw new Error(error.join('\n'));
  72746. }
  72747. // This const was called `jitOptions` previously but had to be renamed to `options` because
  72748. // of a bug with Terser that caused optimized JIT builds to throw a `ReferenceError`.
  72749. // This bug was investigated in https://github.com/angular/angular-cli/issues/17264.
  72750. // We should not rename it back until https://github.com/terser/terser/issues/615 is fixed.
  72751. const options = getJitOptions();
  72752. let preserveWhitespaces = metadata.preserveWhitespaces;
  72753. if (preserveWhitespaces === undefined) {
  72754. if (options !== null && options.preserveWhitespaces !== undefined) {
  72755. preserveWhitespaces = options.preserveWhitespaces;
  72756. }
  72757. else {
  72758. preserveWhitespaces = false;
  72759. }
  72760. }
  72761. let encapsulation = metadata.encapsulation;
  72762. if (encapsulation === undefined) {
  72763. if (options !== null && options.defaultEncapsulation !== undefined) {
  72764. encapsulation = options.defaultEncapsulation;
  72765. }
  72766. else {
  72767. encapsulation = ViewEncapsulation.Emulated;
  72768. }
  72769. }
  72770. const templateUrl = metadata.templateUrl || `ng:///${type.name}/template.html`;
  72771. const meta = Object.assign(Object.assign({}, directiveMetadata(type, metadata)), { typeSourceSpan: compiler.createParseSourceSpan('Component', type.name, templateUrl), template: metadata.template || '', preserveWhitespaces, styles: metadata.styles || EMPTY_ARRAY, animations: metadata.animations, directives: [], changeDetection: metadata.changeDetection, pipes: new Map(), encapsulation, interpolation: metadata.interpolation, viewProviders: metadata.viewProviders || null });
  72772. compilationDepth++;
  72773. try {
  72774. if (meta.usesInheritance) {
  72775. addDirectiveDefToUndecoratedParents(type);
  72776. }
  72777. ngComponentDef = compiler.compileComponent(angularCoreEnv, templateUrl, meta);
  72778. }
  72779. finally {
  72780. // Ensure that the compilation depth is decremented even when the compilation failed.
  72781. compilationDepth--;
  72782. }
  72783. if (compilationDepth === 0) {
  72784. // When NgModule decorator executed, we enqueued the module definition such that
  72785. // it would only dequeue and add itself as module scope to all of its declarations,
  72786. // but only if if all of its declarations had resolved. This call runs the check
  72787. // to see if any modules that are in the queue can be dequeued and add scope to
  72788. // their declarations.
  72789. flushModuleScopingQueueAsMuchAsPossible();
  72790. }
  72791. // If component compilation is async, then the @NgModule annotation which declares the
  72792. // component may execute and set an ngSelectorScope property on the component type. This
  72793. // allows the component to patch itself with directiveDefs from the module after it
  72794. // finishes compiling.
  72795. if (hasSelectorScope(type)) {
  72796. const scopes = transitiveScopesFor(type.ngSelectorScope);
  72797. patchComponentDefWithScope(ngComponentDef, scopes);
  72798. }
  72799. }
  72800. return ngComponentDef;
  72801. },
  72802. // Make the property configurable in dev mode to allow overriding in tests
  72803. configurable: !!ngDevMode,
  72804. });
  72805. }
  72806. function hasSelectorScope(component) {
  72807. return component.ngSelectorScope !== undefined;
  72808. }
  72809. /**
  72810. * Compile an Angular directive according to its decorator metadata, and patch the resulting
  72811. * directive def onto the component type.
  72812. *
  72813. * In the event that compilation is not immediate, `compileDirective` will return a `Promise` which
  72814. * will resolve when compilation completes and the directive becomes usable.
  72815. */
  72816. function compileDirective(type, directive) {
  72817. let ngDirectiveDef = null;
  72818. addDirectiveFactoryDef(type, directive || {});
  72819. Object.defineProperty(type, NG_DIR_DEF, {
  72820. get: () => {
  72821. if (ngDirectiveDef === null) {
  72822. // `directive` can be null in the case of abstract directives as a base class
  72823. // that use `@Directive()` with no selector. In that case, pass empty object to the
  72824. // `directiveMetadata` function instead of null.
  72825. const meta = getDirectiveMetadata(type, directive || {});
  72826. ngDirectiveDef =
  72827. getCompilerFacade().compileDirective(angularCoreEnv, meta.sourceMapUrl, meta.metadata);
  72828. }
  72829. return ngDirectiveDef;
  72830. },
  72831. // Make the property configurable in dev mode to allow overriding in tests
  72832. configurable: !!ngDevMode,
  72833. });
  72834. }
  72835. function getDirectiveMetadata(type, metadata) {
  72836. const name = type && type.name;
  72837. const sourceMapUrl = `ng:///${name}/ɵdir.js`;
  72838. const compiler = getCompilerFacade();
  72839. const facade = directiveMetadata(type, metadata);
  72840. facade.typeSourceSpan = compiler.createParseSourceSpan('Directive', name, sourceMapUrl);
  72841. if (facade.usesInheritance) {
  72842. addDirectiveDefToUndecoratedParents(type);
  72843. }
  72844. return { metadata: facade, sourceMapUrl };
  72845. }
  72846. function addDirectiveFactoryDef(type, metadata) {
  72847. let ngFactoryDef = null;
  72848. Object.defineProperty(type, NG_FACTORY_DEF, {
  72849. get: () => {
  72850. if (ngFactoryDef === null) {
  72851. const meta = getDirectiveMetadata(type, metadata);
  72852. const compiler = getCompilerFacade();
  72853. ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${type.name}/ɵfac.js`, Object.assign(Object.assign({}, meta.metadata), { injectFn: 'directiveInject', target: compiler.R3FactoryTarget.Directive }));
  72854. }
  72855. return ngFactoryDef;
  72856. },
  72857. // Make the property configurable in dev mode to allow overriding in tests
  72858. configurable: !!ngDevMode,
  72859. });
  72860. }
  72861. function extendsDirectlyFromObject(type) {
  72862. return Object.getPrototypeOf(type.prototype) === Object.prototype;
  72863. }
  72864. /**
  72865. * Extract the `R3DirectiveMetadata` for a particular directive (either a `Directive` or a
  72866. * `Component`).
  72867. */
  72868. function directiveMetadata(type, metadata) {
  72869. // Reflect inputs and outputs.
  72870. const reflect = getReflect();
  72871. const propMetadata = reflect.ownPropMetadata(type);
  72872. return {
  72873. name: type.name,
  72874. type: type,
  72875. typeArgumentCount: 0,
  72876. selector: metadata.selector !== undefined ? metadata.selector : null,
  72877. deps: reflectDependencies(type),
  72878. host: metadata.host || EMPTY_OBJ,
  72879. propMetadata: propMetadata,
  72880. inputs: metadata.inputs || EMPTY_ARRAY,
  72881. outputs: metadata.outputs || EMPTY_ARRAY,
  72882. queries: extractQueriesMetadata(type, propMetadata, isContentQuery),
  72883. lifecycle: { usesOnChanges: reflect.hasLifecycleHook(type, 'ngOnChanges') },
  72884. typeSourceSpan: null,
  72885. usesInheritance: !extendsDirectlyFromObject(type),
  72886. exportAs: extractExportAs(metadata.exportAs),
  72887. providers: metadata.providers || null,
  72888. viewQueries: extractQueriesMetadata(type, propMetadata, isViewQuery)
  72889. };
  72890. }
  72891. /**
  72892. * Adds a directive definition to all parent classes of a type that don't have an Angular decorator.
  72893. */
  72894. function addDirectiveDefToUndecoratedParents(type) {
  72895. const objPrototype = Object.prototype;
  72896. let parent = Object.getPrototypeOf(type.prototype).constructor;
  72897. // Go up the prototype until we hit `Object`.
  72898. while (parent && parent !== objPrototype) {
  72899. // Since inheritance works if the class was annotated already, we only need to add
  72900. // the def if there are no annotations and the def hasn't been created already.
  72901. if (!getDirectiveDef(parent) && !getComponentDef(parent) &&
  72902. shouldAddAbstractDirective(parent)) {
  72903. compileDirective(parent, null);
  72904. }
  72905. parent = Object.getPrototypeOf(parent);
  72906. }
  72907. }
  72908. function convertToR3QueryPredicate(selector) {
  72909. return typeof selector === 'string' ? splitByComma(selector) : resolveForwardRef(selector);
  72910. }
  72911. function convertToR3QueryMetadata(propertyName, ann) {
  72912. return {
  72913. propertyName: propertyName,
  72914. predicate: convertToR3QueryPredicate(ann.selector),
  72915. descendants: ann.descendants,
  72916. first: ann.first,
  72917. read: ann.read ? ann.read : null,
  72918. static: !!ann.static
  72919. };
  72920. }
  72921. function extractQueriesMetadata(type, propMetadata, isQueryAnn) {
  72922. const queriesMeta = [];
  72923. for (const field in propMetadata) {
  72924. if (propMetadata.hasOwnProperty(field)) {
  72925. const annotations = propMetadata[field];
  72926. annotations.forEach(ann => {
  72927. if (isQueryAnn(ann)) {
  72928. if (!ann.selector) {
  72929. throw new Error(`Can't construct a query for the property "${field}" of ` +
  72930. `"${stringifyForError(type)}" since the query selector wasn't defined.`);
  72931. }
  72932. if (annotations.some(isInputAnnotation)) {
  72933. throw new Error(`Cannot combine @Input decorators with query decorators`);
  72934. }
  72935. queriesMeta.push(convertToR3QueryMetadata(field, ann));
  72936. }
  72937. });
  72938. }
  72939. }
  72940. return queriesMeta;
  72941. }
  72942. function extractExportAs(exportAs) {
  72943. return exportAs === undefined ? null : splitByComma(exportAs);
  72944. }
  72945. function isContentQuery(value) {
  72946. const name = value.ngMetadataName;
  72947. return name === 'ContentChild' || name === 'ContentChildren';
  72948. }
  72949. function isViewQuery(value) {
  72950. const name = value.ngMetadataName;
  72951. return name === 'ViewChild' || name === 'ViewChildren';
  72952. }
  72953. function isInputAnnotation(value) {
  72954. return value.ngMetadataName === 'Input';
  72955. }
  72956. function splitByComma(value) {
  72957. return value.split(',').map(piece => piece.trim());
  72958. }
  72959. const LIFECYCLE_HOOKS = [
  72960. 'ngOnChanges', 'ngOnInit', 'ngOnDestroy', 'ngDoCheck', 'ngAfterViewInit', 'ngAfterViewChecked',
  72961. 'ngAfterContentInit', 'ngAfterContentChecked'
  72962. ];
  72963. function shouldAddAbstractDirective(type) {
  72964. const reflect = getReflect();
  72965. if (LIFECYCLE_HOOKS.some(hookName => reflect.hasLifecycleHook(type, hookName))) {
  72966. return true;
  72967. }
  72968. const propMetadata = reflect.propMetadata(type);
  72969. for (const field in propMetadata) {
  72970. const annotations = propMetadata[field];
  72971. for (let i = 0; i < annotations.length; i++) {
  72972. const current = annotations[i];
  72973. const metadataName = current.ngMetadataName;
  72974. if (isInputAnnotation(current) || isContentQuery(current) || isViewQuery(current) ||
  72975. metadataName === 'Output' || metadataName === 'HostBinding' ||
  72976. metadataName === 'HostListener') {
  72977. return true;
  72978. }
  72979. }
  72980. }
  72981. return false;
  72982. }
  72983. /**
  72984. * @license
  72985. * Copyright Google LLC All Rights Reserved.
  72986. *
  72987. * Use of this source code is governed by an MIT-style license that can be
  72988. * found in the LICENSE file at https://angular.io/license
  72989. */
  72990. function compilePipe(type, meta) {
  72991. let ngPipeDef = null;
  72992. let ngFactoryDef = null;
  72993. Object.defineProperty(type, NG_FACTORY_DEF, {
  72994. get: () => {
  72995. if (ngFactoryDef === null) {
  72996. const metadata = getPipeMetadata(type, meta);
  72997. const compiler = getCompilerFacade();
  72998. ngFactoryDef = compiler.compileFactory(angularCoreEnv, `ng:///${metadata.name}/ɵfac.js`, Object.assign(Object.assign({}, metadata), { injectFn: 'directiveInject', target: compiler.R3FactoryTarget.Pipe }));
  72999. }
  73000. return ngFactoryDef;
  73001. },
  73002. // Make the property configurable in dev mode to allow overriding in tests
  73003. configurable: !!ngDevMode,
  73004. });
  73005. Object.defineProperty(type, NG_PIPE_DEF, {
  73006. get: () => {
  73007. if (ngPipeDef === null) {
  73008. const metadata = getPipeMetadata(type, meta);
  73009. ngPipeDef = getCompilerFacade().compilePipe(angularCoreEnv, `ng:///${metadata.name}/ɵpipe.js`, metadata);
  73010. }
  73011. return ngPipeDef;
  73012. },
  73013. // Make the property configurable in dev mode to allow overriding in tests
  73014. configurable: !!ngDevMode,
  73015. });
  73016. }
  73017. function getPipeMetadata(type, meta) {
  73018. return {
  73019. type: type,
  73020. typeArgumentCount: 0,
  73021. name: type.name,
  73022. deps: reflectDependencies(type),
  73023. pipeName: meta.name,
  73024. pure: meta.pure !== undefined ? meta.pure : true
  73025. };
  73026. }
  73027. /**
  73028. * @license
  73029. * Copyright Google LLC All Rights Reserved.
  73030. *
  73031. * Use of this source code is governed by an MIT-style license that can be
  73032. * found in the LICENSE file at https://angular.io/license
  73033. */
  73034. const ɵ0$d = (dir = {}) => dir, ɵ1$2 = (type, meta) => SWITCH_COMPILE_DIRECTIVE(type, meta);
  73035. /**
  73036. * Type of the Directive metadata.
  73037. *
  73038. * @publicApi
  73039. */
  73040. const Directive = makeDecorator('Directive', ɵ0$d, undefined, undefined, ɵ1$2);
  73041. const ɵ2$1 = (c = {}) => (Object.assign({ changeDetection: ChangeDetectionStrategy.Default }, c)), ɵ3$1 = (type, meta) => SWITCH_COMPILE_COMPONENT(type, meta);
  73042. /**
  73043. * Component decorator and metadata.
  73044. *
  73045. * @Annotation
  73046. * @publicApi
  73047. */
  73048. const Component = makeDecorator('Component', ɵ2$1, Directive, undefined, ɵ3$1);
  73049. const ɵ4 = (p) => (Object.assign({ pure: true }, p)), ɵ5 = (type, meta) => SWITCH_COMPILE_PIPE(type, meta);
  73050. /**
  73051. * @Annotation
  73052. * @publicApi
  73053. */
  73054. const Pipe = makeDecorator('Pipe', ɵ4, undefined, undefined, ɵ5);
  73055. const ɵ6 = (bindingPropertyName) => ({ bindingPropertyName });
  73056. /**
  73057. * @Annotation
  73058. * @publicApi
  73059. */
  73060. const Input = makePropDecorator('Input', ɵ6);
  73061. const ɵ7 = (bindingPropertyName) => ({ bindingPropertyName });
  73062. /**
  73063. * @Annotation
  73064. * @publicApi
  73065. */
  73066. const Output = makePropDecorator('Output', ɵ7);
  73067. const ɵ8 = (hostPropertyName) => ({ hostPropertyName });
  73068. /**
  73069. * @Annotation
  73070. * @publicApi
  73071. */
  73072. const HostBinding = makePropDecorator('HostBinding', ɵ8);
  73073. const ɵ9 = (eventName, args) => ({ eventName, args });
  73074. /**
  73075. * Decorator that binds a DOM event to a host listener and supplies configuration metadata.
  73076. * Angular invokes the supplied handler method when the host element emits the specified event,
  73077. * and updates the bound element with the result.
  73078. *
  73079. * If the handler method returns false, applies `preventDefault` on the bound element.
  73080. *
  73081. * @usageNotes
  73082. *
  73083. * The following example declares a directive
  73084. * that attaches a click listener to a button and counts clicks.
  73085. *
  73086. * ```ts
  73087. * @Directive({selector: 'button[counting]'})
  73088. * class CountClicks {
  73089. * numberOfClicks = 0;
  73090. *
  73091. * @HostListener('click', ['$event.target'])
  73092. * onClick(btn) {
  73093. * console.log('button', btn, 'number of clicks:', this.numberOfClicks++);
  73094. * }
  73095. * }
  73096. *
  73097. * @Component({
  73098. * selector: 'app',
  73099. * template: '<button counting>Increment</button>',
  73100. * })
  73101. * class App {}
  73102. *
  73103. * ```
  73104. *
  73105. * The following example registers another DOM event handler that listens for key-press events.
  73106. * ``` ts
  73107. * import { HostListener, Component } from "@angular/core";
  73108. *
  73109. * @Component({
  73110. * selector: 'app',
  73111. * template: `<h1>Hello, you have pressed keys {{counter}} number of times!</h1> Press any key to
  73112. * increment the counter.
  73113. * <button (click)="resetCounter()">Reset Counter</button>`
  73114. * })
  73115. * class AppComponent {
  73116. * counter = 0;
  73117. * @HostListener('window:keydown', ['$event'])
  73118. * handleKeyDown(event: KeyboardEvent) {
  73119. * this.counter++;
  73120. * }
  73121. * resetCounter() {
  73122. * this.counter = 0;
  73123. * }
  73124. * }
  73125. * ```
  73126. *
  73127. * @Annotation
  73128. * @publicApi
  73129. */
  73130. const HostListener = makePropDecorator('HostListener', ɵ9);
  73131. const SWITCH_COMPILE_COMPONENT__POST_R3__ = compileComponent;
  73132. const SWITCH_COMPILE_DIRECTIVE__POST_R3__ = compileDirective;
  73133. const SWITCH_COMPILE_PIPE__POST_R3__ = compilePipe;
  73134. const SWITCH_COMPILE_COMPONENT__PRE_R3__ = noop;
  73135. const SWITCH_COMPILE_DIRECTIVE__PRE_R3__ = noop;
  73136. const SWITCH_COMPILE_PIPE__PRE_R3__ = noop;
  73137. const SWITCH_COMPILE_COMPONENT = SWITCH_COMPILE_COMPONENT__POST_R3__;
  73138. const SWITCH_COMPILE_DIRECTIVE = SWITCH_COMPILE_DIRECTIVE__POST_R3__;
  73139. const SWITCH_COMPILE_PIPE = SWITCH_COMPILE_PIPE__POST_R3__;
  73140. /**
  73141. * @license
  73142. * Copyright Google LLC All Rights Reserved.
  73143. *
  73144. * Use of this source code is governed by an MIT-style license that can be
  73145. * found in the LICENSE file at https://angular.io/license
  73146. */
  73147. const ɵ0$e = (ngModule) => ngModule, ɵ1$3 =
  73148. /**
  73149. * Decorator that marks the following class as an NgModule, and supplies
  73150. * configuration metadata for it.
  73151. *
  73152. * * The `declarations` and `entryComponents` options configure the compiler
  73153. * with information about what belongs to the NgModule.
  73154. * * The `providers` options configures the NgModule's injector to provide
  73155. * dependencies the NgModule members.
  73156. * * The `imports` and `exports` options bring in members from other modules, and make
  73157. * this module's members available to others.
  73158. */
  73159. (type, meta) => SWITCH_COMPILE_NGMODULE(type, meta);
  73160. /**
  73161. * @Annotation
  73162. * @publicApi
  73163. */
  73164. const NgModule = makeDecorator('NgModule', ɵ0$e, undefined, undefined, ɵ1$3);
  73165. function preR3NgModuleCompile(moduleType, metadata) {
  73166. let imports = (metadata && metadata.imports) || [];
  73167. if (metadata && metadata.exports) {
  73168. imports = [...imports, metadata.exports];
  73169. }
  73170. moduleType.ɵinj = ɵɵdefineInjector({
  73171. factory: convertInjectableProviderToFactory(moduleType, { useClass: moduleType }),
  73172. providers: metadata && metadata.providers,
  73173. imports: imports,
  73174. });
  73175. }
  73176. const SWITCH_COMPILE_NGMODULE__POST_R3__ = compileNgModule;
  73177. const SWITCH_COMPILE_NGMODULE__PRE_R3__ = preR3NgModuleCompile;
  73178. const SWITCH_COMPILE_NGMODULE = SWITCH_COMPILE_NGMODULE__POST_R3__;
  73179. /**
  73180. * @license
  73181. * Copyright Google LLC All Rights Reserved.
  73182. *
  73183. * Use of this source code is governed by an MIT-style license that can be
  73184. * found in the LICENSE file at https://angular.io/license
  73185. */
  73186. /**
  73187. * @license
  73188. * Copyright Google LLC All Rights Reserved.
  73189. *
  73190. * Use of this source code is governed by an MIT-style license that can be
  73191. * found in the LICENSE file at https://angular.io/license
  73192. */
  73193. /**
  73194. * @license
  73195. * Copyright Google LLC All Rights Reserved.
  73196. *
  73197. * Use of this source code is governed by an MIT-style license that can be
  73198. * found in the LICENSE file at https://angular.io/license
  73199. */
  73200. /**
  73201. * A [DI token](guide/glossary#di-token "DI token definition") that you can use to provide
  73202. * one or more initialization functions.
  73203. *
  73204. * The provided functions are injected at application startup and executed during
  73205. * app initialization. If any of these functions returns a Promise, initialization
  73206. * does not complete until the Promise is resolved.
  73207. *
  73208. * You can, for example, create a factory function that loads language data
  73209. * or an external configuration, and provide that function to the `APP_INITIALIZER` token.
  73210. * The function is executed during the application bootstrap process,
  73211. * and the needed data is available on startup.
  73212. *
  73213. * @see `ApplicationInitStatus`
  73214. *
  73215. * @publicApi
  73216. */
  73217. const APP_INITIALIZER = new InjectionToken('Application Initializer');
  73218. /**
  73219. * A class that reflects the state of running {@link APP_INITIALIZER} functions.
  73220. *
  73221. * @publicApi
  73222. */
  73223. class ApplicationInitStatus {
  73224. constructor(appInits) {
  73225. this.appInits = appInits;
  73226. this.resolve = noop;
  73227. this.reject = noop;
  73228. this.initialized = false;
  73229. this.done = false;
  73230. this.donePromise = new Promise((res, rej) => {
  73231. this.resolve = res;
  73232. this.reject = rej;
  73233. });
  73234. }
  73235. /** @internal */
  73236. runInitializers() {
  73237. if (this.initialized) {
  73238. return;
  73239. }
  73240. const asyncInitPromises = [];
  73241. const complete = () => {
  73242. this.done = true;
  73243. this.resolve();
  73244. };
  73245. if (this.appInits) {
  73246. for (let i = 0; i < this.appInits.length; i++) {
  73247. const initResult = this.appInits[i]();
  73248. if (isPromise(initResult)) {
  73249. asyncInitPromises.push(initResult);
  73250. }
  73251. }
  73252. }
  73253. Promise.all(asyncInitPromises)
  73254. .then(() => {
  73255. complete();
  73256. })
  73257. .catch(e => {
  73258. this.reject(e);
  73259. });
  73260. if (asyncInitPromises.length === 0) {
  73261. complete();
  73262. }
  73263. this.initialized = true;
  73264. }
  73265. }
  73266. ApplicationInitStatus.ɵfac = function ApplicationInitStatus_Factory(t) { return new (t || ApplicationInitStatus)(ɵɵinject(APP_INITIALIZER, 8)); };
  73267. ApplicationInitStatus.ɵprov = ɵɵdefineInjectable({ token: ApplicationInitStatus, factory: ApplicationInitStatus.ɵfac });
  73268. ApplicationInitStatus.ctorParameters = () => [
  73269. { type: Array, decorators: [{ type: Inject, args: [APP_INITIALIZER,] }, { type: Optional }] }
  73270. ];
  73271. /*@__PURE__*/ (function () { setClassMetadata(ApplicationInitStatus, [{
  73272. type: Injectable
  73273. }], function () { return [{ type: Array, decorators: [{
  73274. type: Inject,
  73275. args: [APP_INITIALIZER]
  73276. }, {
  73277. type: Optional
  73278. }] }]; }, null); })();
  73279. /**
  73280. * @license
  73281. * Copyright Google LLC All Rights Reserved.
  73282. *
  73283. * Use of this source code is governed by an MIT-style license that can be
  73284. * found in the LICENSE file at https://angular.io/license
  73285. */
  73286. /**
  73287. * A [DI token](guide/glossary#di-token "DI token definition") representing a unique string ID, used
  73288. * primarily for prefixing application attributes and CSS styles when
  73289. * {@link ViewEncapsulation#Emulated ViewEncapsulation.Emulated} is being used.
  73290. *
  73291. * BY default, the value is randomly generated and assigned to the application by Angular.
  73292. * To provide a custom ID value, use a DI provider <!-- TODO: provider --> to configure
  73293. * the root {@link Injector} that uses this token.
  73294. *
  73295. * @publicApi
  73296. */
  73297. const APP_ID = new InjectionToken('AppId');
  73298. function _appIdRandomProviderFactory() {
  73299. return `${_randomChar()}${_randomChar()}${_randomChar()}`;
  73300. }
  73301. /**
  73302. * Providers that generate a random `APP_ID_TOKEN`.
  73303. * @publicApi
  73304. */
  73305. const APP_ID_RANDOM_PROVIDER = {
  73306. provide: APP_ID,
  73307. useFactory: _appIdRandomProviderFactory,
  73308. deps: [],
  73309. };
  73310. function _randomChar() {
  73311. return String.fromCharCode(97 + Math.floor(Math.random() * 25));
  73312. }
  73313. /**
  73314. * A function that is executed when a platform is initialized.
  73315. * @publicApi
  73316. */
  73317. const PLATFORM_INITIALIZER = new InjectionToken('Platform Initializer');
  73318. /**
  73319. * A token that indicates an opaque platform ID.
  73320. * @publicApi
  73321. */
  73322. const PLATFORM_ID = new InjectionToken('Platform ID');
  73323. /**
  73324. * A [DI token](guide/glossary#di-token "DI token definition") that provides a set of callbacks to
  73325. * be called for every component that is bootstrapped.
  73326. *
  73327. * Each callback must take a `ComponentRef` instance and return nothing.
  73328. *
  73329. * `(componentRef: ComponentRef) => void`
  73330. *
  73331. * @publicApi
  73332. */
  73333. const APP_BOOTSTRAP_LISTENER = new InjectionToken('appBootstrapListener');
  73334. /**
  73335. * A [DI token](guide/glossary#di-token "DI token definition") that indicates the root directory of
  73336. * the application
  73337. * @publicApi
  73338. */
  73339. const PACKAGE_ROOT_URL = new InjectionToken('Application Packages Root URL');
  73340. /**
  73341. * @license
  73342. * Copyright Google LLC All Rights Reserved.
  73343. *
  73344. * Use of this source code is governed by an MIT-style license that can be
  73345. * found in the LICENSE file at https://angular.io/license
  73346. */
  73347. class Console {
  73348. log(message) {
  73349. // tslint:disable-next-line:no-console
  73350. console.log(message);
  73351. }
  73352. // Note: for reporting errors use `DOM.logError()` as it is platform specific
  73353. warn(message) {
  73354. // tslint:disable-next-line:no-console
  73355. console.warn(message);
  73356. }
  73357. }
  73358. Console.ɵfac = function Console_Factory(t) { return new (t || Console)(); };
  73359. Console.ɵprov = ɵɵdefineInjectable({ token: Console, factory: Console.ɵfac });
  73360. /*@__PURE__*/ (function () { setClassMetadata(Console, [{
  73361. type: Injectable
  73362. }], null, null); })();
  73363. /**
  73364. * @license
  73365. * Copyright Google LLC All Rights Reserved.
  73366. *
  73367. * Use of this source code is governed by an MIT-style license that can be
  73368. * found in the LICENSE file at https://angular.io/license
  73369. */
  73370. /**
  73371. * Provide this token to set the locale of your application.
  73372. * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
  73373. * DecimalPipe and PercentPipe) and by ICU expressions.
  73374. *
  73375. * See the [i18n guide](guide/i18n#setting-up-locale) for more information.
  73376. *
  73377. * @usageNotes
  73378. * ### Example
  73379. *
  73380. * ```typescript
  73381. * import { LOCALE_ID } from '@angular/core';
  73382. * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  73383. * import { AppModule } from './app/app.module';
  73384. *
  73385. * platformBrowserDynamic().bootstrapModule(AppModule, {
  73386. * providers: [{provide: LOCALE_ID, useValue: 'en-US' }]
  73387. * });
  73388. * ```
  73389. *
  73390. * @publicApi
  73391. */
  73392. const LOCALE_ID$1 = new InjectionToken('LocaleId');
  73393. /**
  73394. * Provide this token to set the default currency code your application uses for
  73395. * CurrencyPipe when there is no currency code passed into it. This is only used by
  73396. * CurrencyPipe and has no relation to locale currency. Defaults to USD if not configured.
  73397. *
  73398. * See the [i18n guide](guide/i18n#setting-up-locale) for more information.
  73399. *
  73400. * <div class="alert is-helpful">
  73401. *
  73402. * **Deprecation notice:**
  73403. *
  73404. * The default currency code is currently always `USD` but this is deprecated from v9.
  73405. *
  73406. * **In v10 the default currency code will be taken from the current locale.**
  73407. *
  73408. * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in
  73409. * your application `NgModule`:
  73410. *
  73411. * ```ts
  73412. * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}
  73413. * ```
  73414. *
  73415. * </div>
  73416. *
  73417. * @usageNotes
  73418. * ### Example
  73419. *
  73420. * ```typescript
  73421. * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  73422. * import { AppModule } from './app/app.module';
  73423. *
  73424. * platformBrowserDynamic().bootstrapModule(AppModule, {
  73425. * providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]
  73426. * });
  73427. * ```
  73428. *
  73429. * @publicApi
  73430. */
  73431. const DEFAULT_CURRENCY_CODE = new InjectionToken('DefaultCurrencyCode');
  73432. /**
  73433. * Use this token at bootstrap to provide the content of your translation file (`xtb`,
  73434. * `xlf` or `xlf2`) when you want to translate your application in another language.
  73435. *
  73436. * See the [i18n guide](guide/i18n#merge) for more information.
  73437. *
  73438. * @usageNotes
  73439. * ### Example
  73440. *
  73441. * ```typescript
  73442. * import { TRANSLATIONS } from '@angular/core';
  73443. * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  73444. * import { AppModule } from './app/app.module';
  73445. *
  73446. * // content of your translation file
  73447. * const translations = '....';
  73448. *
  73449. * platformBrowserDynamic().bootstrapModule(AppModule, {
  73450. * providers: [{provide: TRANSLATIONS, useValue: translations }]
  73451. * });
  73452. * ```
  73453. *
  73454. * @publicApi
  73455. */
  73456. const TRANSLATIONS = new InjectionToken('Translations');
  73457. /**
  73458. * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
  73459. * `xlf` or `xlf2`.
  73460. *
  73461. * See the [i18n guide](guide/i18n#merge) for more information.
  73462. *
  73463. * @usageNotes
  73464. * ### Example
  73465. *
  73466. * ```typescript
  73467. * import { TRANSLATIONS_FORMAT } from '@angular/core';
  73468. * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  73469. * import { AppModule } from './app/app.module';
  73470. *
  73471. * platformBrowserDynamic().bootstrapModule(AppModule, {
  73472. * providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]
  73473. * });
  73474. * ```
  73475. *
  73476. * @publicApi
  73477. */
  73478. const TRANSLATIONS_FORMAT = new InjectionToken('TranslationsFormat');
  73479. /**
  73480. * Use this enum at bootstrap as an option of `bootstrapModule` to define the strategy
  73481. * that the compiler should use in case of missing translations:
  73482. * - Error: throw if you have missing translations.
  73483. * - Warning (default): show a warning in the console and/or shell.
  73484. * - Ignore: do nothing.
  73485. *
  73486. * See the [i18n guide](guide/i18n#missing-translation) for more information.
  73487. *
  73488. * @usageNotes
  73489. * ### Example
  73490. * ```typescript
  73491. * import { MissingTranslationStrategy } from '@angular/core';
  73492. * import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  73493. * import { AppModule } from './app/app.module';
  73494. *
  73495. * platformBrowserDynamic().bootstrapModule(AppModule, {
  73496. * missingTranslation: MissingTranslationStrategy.Error
  73497. * });
  73498. * ```
  73499. *
  73500. * @publicApi
  73501. */
  73502. var MissingTranslationStrategy;
  73503. (function (MissingTranslationStrategy) {
  73504. MissingTranslationStrategy[MissingTranslationStrategy["Error"] = 0] = "Error";
  73505. MissingTranslationStrategy[MissingTranslationStrategy["Warning"] = 1] = "Warning";
  73506. MissingTranslationStrategy[MissingTranslationStrategy["Ignore"] = 2] = "Ignore";
  73507. })(MissingTranslationStrategy || (MissingTranslationStrategy = {}));
  73508. /**
  73509. * @license
  73510. * Copyright Google LLC All Rights Reserved.
  73511. *
  73512. * Use of this source code is governed by an MIT-style license that can be
  73513. * found in the LICENSE file at https://angular.io/license
  73514. */
  73515. const SWITCH_IVY_ENABLED__POST_R3__ = true;
  73516. const SWITCH_IVY_ENABLED__PRE_R3__ = false;
  73517. const ivyEnabled = SWITCH_IVY_ENABLED__POST_R3__;
  73518. /**
  73519. * @license
  73520. * Copyright Google LLC All Rights Reserved.
  73521. *
  73522. * Use of this source code is governed by an MIT-style license that can be
  73523. * found in the LICENSE file at https://angular.io/license
  73524. */
  73525. /**
  73526. * Combination of NgModuleFactory and ComponentFactorys.
  73527. *
  73528. * @publicApi
  73529. */
  73530. class ModuleWithComponentFactories {
  73531. constructor(ngModuleFactory, componentFactories) {
  73532. this.ngModuleFactory = ngModuleFactory;
  73533. this.componentFactories = componentFactories;
  73534. }
  73535. }
  73536. function _throwError() {
  73537. throw new Error(`Runtime compiler is not loaded`);
  73538. }
  73539. const Compiler_compileModuleSync__PRE_R3__ = _throwError;
  73540. const Compiler_compileModuleSync__POST_R3__ = function (moduleType) {
  73541. return new NgModuleFactory$1(moduleType);
  73542. };
  73543. const Compiler_compileModuleSync = Compiler_compileModuleSync__POST_R3__;
  73544. const Compiler_compileModuleAsync__PRE_R3__ = _throwError;
  73545. const Compiler_compileModuleAsync__POST_R3__ = function (moduleType) {
  73546. return Promise.resolve(Compiler_compileModuleSync__POST_R3__(moduleType));
  73547. };
  73548. const Compiler_compileModuleAsync = Compiler_compileModuleAsync__POST_R3__;
  73549. const Compiler_compileModuleAndAllComponentsSync__PRE_R3__ = _throwError;
  73550. const Compiler_compileModuleAndAllComponentsSync__POST_R3__ = function (moduleType) {
  73551. const ngModuleFactory = Compiler_compileModuleSync__POST_R3__(moduleType);
  73552. const moduleDef = getNgModuleDef(moduleType);
  73553. const componentFactories = maybeUnwrapFn(moduleDef.declarations)
  73554. .reduce((factories, declaration) => {
  73555. const componentDef = getComponentDef(declaration);
  73556. componentDef && factories.push(new ComponentFactory$1(componentDef));
  73557. return factories;
  73558. }, []);
  73559. return new ModuleWithComponentFactories(ngModuleFactory, componentFactories);
  73560. };
  73561. const Compiler_compileModuleAndAllComponentsSync = Compiler_compileModuleAndAllComponentsSync__POST_R3__;
  73562. const Compiler_compileModuleAndAllComponentsAsync__PRE_R3__ = _throwError;
  73563. const Compiler_compileModuleAndAllComponentsAsync__POST_R3__ = function (moduleType) {
  73564. return Promise.resolve(Compiler_compileModuleAndAllComponentsSync__POST_R3__(moduleType));
  73565. };
  73566. const Compiler_compileModuleAndAllComponentsAsync = Compiler_compileModuleAndAllComponentsAsync__POST_R3__;
  73567. /**
  73568. * Low-level service for running the angular compiler during runtime
  73569. * to create {@link ComponentFactory}s, which
  73570. * can later be used to create and render a Component instance.
  73571. *
  73572. * Each `@NgModule` provides an own `Compiler` to its injector,
  73573. * that will use the directives/pipes of the ng module for compilation
  73574. * of components.
  73575. *
  73576. * @publicApi
  73577. */
  73578. class Compiler {
  73579. constructor() {
  73580. /**
  73581. * Compiles the given NgModule and all of its components. All templates of the components listed
  73582. * in `entryComponents` have to be inlined.
  73583. */
  73584. this.compileModuleSync = Compiler_compileModuleSync;
  73585. /**
  73586. * Compiles the given NgModule and all of its components
  73587. */
  73588. this.compileModuleAsync = Compiler_compileModuleAsync;
  73589. /**
  73590. * Same as {@link #compileModuleSync} but also creates ComponentFactories for all components.
  73591. */
  73592. this.compileModuleAndAllComponentsSync = Compiler_compileModuleAndAllComponentsSync;
  73593. /**
  73594. * Same as {@link #compileModuleAsync} but also creates ComponentFactories for all components.
  73595. */
  73596. this.compileModuleAndAllComponentsAsync = Compiler_compileModuleAndAllComponentsAsync;
  73597. }
  73598. /**
  73599. * Clears all caches.
  73600. */
  73601. clearCache() { }
  73602. /**
  73603. * Clears the cache for the given component/ngModule.
  73604. */
  73605. clearCacheFor(type) { }
  73606. /**
  73607. * Returns the id for a given NgModule, if one is defined and known to the compiler.
  73608. */
  73609. getModuleId(moduleType) {
  73610. return undefined;
  73611. }
  73612. }
  73613. Compiler.ɵfac = function Compiler_Factory(t) { return new (t || Compiler)(); };
  73614. Compiler.ɵprov = ɵɵdefineInjectable({ token: Compiler, factory: Compiler.ɵfac });
  73615. /*@__PURE__*/ (function () { setClassMetadata(Compiler, [{
  73616. type: Injectable
  73617. }], function () { return []; }, null); })();
  73618. /**
  73619. * Token to provide CompilerOptions in the platform injector.
  73620. *
  73621. * @publicApi
  73622. */
  73623. const COMPILER_OPTIONS = new InjectionToken('compilerOptions');
  73624. /**
  73625. * A factory for creating a Compiler
  73626. *
  73627. * @publicApi
  73628. */
  73629. class CompilerFactory {
  73630. }
  73631. /**
  73632. * @license
  73633. * Copyright Google LLC All Rights Reserved.
  73634. *
  73635. * Use of this source code is governed by an MIT-style license that can be
  73636. * found in the LICENSE file at https://angular.io/license
  73637. */
  73638. const promise = (() => Promise.resolve(0))();
  73639. function scheduleMicroTask(fn) {
  73640. if (typeof Zone === 'undefined') {
  73641. // use promise to schedule microTask instead of use Zone
  73642. promise.then(() => {
  73643. fn && fn.apply(null, null);
  73644. });
  73645. }
  73646. else {
  73647. Zone.current.scheduleMicroTask('scheduleMicrotask', fn);
  73648. }
  73649. }
  73650. /**
  73651. * @license
  73652. * Copyright Google LLC All Rights Reserved.
  73653. *
  73654. * Use of this source code is governed by an MIT-style license that can be
  73655. * found in the LICENSE file at https://angular.io/license
  73656. */
  73657. function getNativeRequestAnimationFrame() {
  73658. let nativeRequestAnimationFrame = _global['requestAnimationFrame'];
  73659. let nativeCancelAnimationFrame = _global['cancelAnimationFrame'];
  73660. if (typeof Zone !== 'undefined' && nativeRequestAnimationFrame && nativeCancelAnimationFrame) {
  73661. // use unpatched version of requestAnimationFrame(native delegate) if possible
  73662. // to avoid another Change detection
  73663. const unpatchedRequestAnimationFrame = nativeRequestAnimationFrame[Zone.__symbol__('OriginalDelegate')];
  73664. if (unpatchedRequestAnimationFrame) {
  73665. nativeRequestAnimationFrame = unpatchedRequestAnimationFrame;
  73666. }
  73667. const unpatchedCancelAnimationFrame = nativeCancelAnimationFrame[Zone.__symbol__('OriginalDelegate')];
  73668. if (unpatchedCancelAnimationFrame) {
  73669. nativeCancelAnimationFrame = unpatchedCancelAnimationFrame;
  73670. }
  73671. }
  73672. return { nativeRequestAnimationFrame, nativeCancelAnimationFrame };
  73673. }
  73674. /**
  73675. * @license
  73676. * Copyright Google LLC All Rights Reserved.
  73677. *
  73678. * Use of this source code is governed by an MIT-style license that can be
  73679. * found in the LICENSE file at https://angular.io/license
  73680. */
  73681. /**
  73682. * An injectable service for executing work inside or outside of the Angular zone.
  73683. *
  73684. * The most common use of this service is to optimize performance when starting a work consisting of
  73685. * one or more asynchronous tasks that don't require UI updates or error handling to be handled by
  73686. * Angular. Such tasks can be kicked off via {@link #runOutsideAngular} and if needed, these tasks
  73687. * can reenter the Angular zone via {@link #run}.
  73688. *
  73689. * <!-- TODO: add/fix links to:
  73690. * - docs explaining zones and the use of zones in Angular and change-detection
  73691. * - link to runOutsideAngular/run (throughout this file!)
  73692. * -->
  73693. *
  73694. * @usageNotes
  73695. * ### Example
  73696. *
  73697. * ```
  73698. * import {Component, NgZone} from '@angular/core';
  73699. * import {NgIf} from '@angular/common';
  73700. *
  73701. * @Component({
  73702. * selector: 'ng-zone-demo',
  73703. * template: `
  73704. * <h2>Demo: NgZone</h2>
  73705. *
  73706. * <p>Progress: {{progress}}%</p>
  73707. * <p *ngIf="progress >= 100">Done processing {{label}} of Angular zone!</p>
  73708. *
  73709. * <button (click)="processWithinAngularZone()">Process within Angular zone</button>
  73710. * <button (click)="processOutsideOfAngularZone()">Process outside of Angular zone</button>
  73711. * `,
  73712. * })
  73713. * export class NgZoneDemo {
  73714. * progress: number = 0;
  73715. * label: string;
  73716. *
  73717. * constructor(private _ngZone: NgZone) {}
  73718. *
  73719. * // Loop inside the Angular zone
  73720. * // so the UI DOES refresh after each setTimeout cycle
  73721. * processWithinAngularZone() {
  73722. * this.label = 'inside';
  73723. * this.progress = 0;
  73724. * this._increaseProgress(() => console.log('Inside Done!'));
  73725. * }
  73726. *
  73727. * // Loop outside of the Angular zone
  73728. * // so the UI DOES NOT refresh after each setTimeout cycle
  73729. * processOutsideOfAngularZone() {
  73730. * this.label = 'outside';
  73731. * this.progress = 0;
  73732. * this._ngZone.runOutsideAngular(() => {
  73733. * this._increaseProgress(() => {
  73734. * // reenter the Angular zone and display done
  73735. * this._ngZone.run(() => { console.log('Outside Done!'); });
  73736. * });
  73737. * });
  73738. * }
  73739. *
  73740. * _increaseProgress(doneCallback: () => void) {
  73741. * this.progress += 1;
  73742. * console.log(`Current progress: ${this.progress}%`);
  73743. *
  73744. * if (this.progress < 100) {
  73745. * window.setTimeout(() => this._increaseProgress(doneCallback), 10);
  73746. * } else {
  73747. * doneCallback();
  73748. * }
  73749. * }
  73750. * }
  73751. * ```
  73752. *
  73753. * @publicApi
  73754. */
  73755. class NgZone {
  73756. constructor({ enableLongStackTrace = false, shouldCoalesceEventChangeDetection = false }) {
  73757. this.hasPendingMacrotasks = false;
  73758. this.hasPendingMicrotasks = false;
  73759. /**
  73760. * Whether there are no outstanding microtasks or macrotasks.
  73761. */
  73762. this.isStable = true;
  73763. /**
  73764. * Notifies when code enters Angular Zone. This gets fired first on VM Turn.
  73765. */
  73766. this.onUnstable = new EventEmitter(false);
  73767. /**
  73768. * Notifies when there is no more microtasks enqueued in the current VM Turn.
  73769. * This is a hint for Angular to do change detection, which may enqueue more microtasks.
  73770. * For this reason this event can fire multiple times per VM Turn.
  73771. */
  73772. this.onMicrotaskEmpty = new EventEmitter(false);
  73773. /**
  73774. * Notifies when the last `onMicrotaskEmpty` has run and there are no more microtasks, which
  73775. * implies we are about to relinquish VM turn.
  73776. * This event gets called just once.
  73777. */
  73778. this.onStable = new EventEmitter(false);
  73779. /**
  73780. * Notifies that an error has been delivered.
  73781. */
  73782. this.onError = new EventEmitter(false);
  73783. if (typeof Zone == 'undefined') {
  73784. throw new Error(`In this configuration Angular requires Zone.js`);
  73785. }
  73786. Zone.assertZonePatched();
  73787. const self = this;
  73788. self._nesting = 0;
  73789. self._outer = self._inner = Zone.current;
  73790. if (Zone['TaskTrackingZoneSpec']) {
  73791. self._inner = self._inner.fork(new Zone['TaskTrackingZoneSpec']);
  73792. }
  73793. if (enableLongStackTrace && Zone['longStackTraceZoneSpec']) {
  73794. self._inner = self._inner.fork(Zone['longStackTraceZoneSpec']);
  73795. }
  73796. self.shouldCoalesceEventChangeDetection = shouldCoalesceEventChangeDetection;
  73797. self.lastRequestAnimationFrameId = -1;
  73798. self.nativeRequestAnimationFrame = getNativeRequestAnimationFrame().nativeRequestAnimationFrame;
  73799. forkInnerZoneWithAngularBehavior(self);
  73800. }
  73801. static isInAngularZone() {
  73802. return Zone.current.get('isAngularZone') === true;
  73803. }
  73804. static assertInAngularZone() {
  73805. if (!NgZone.isInAngularZone()) {
  73806. throw new Error('Expected to be in Angular Zone, but it is not!');
  73807. }
  73808. }
  73809. static assertNotInAngularZone() {
  73810. if (NgZone.isInAngularZone()) {
  73811. throw new Error('Expected to not be in Angular Zone, but it is!');
  73812. }
  73813. }
  73814. /**
  73815. * Executes the `fn` function synchronously within the Angular zone and returns value returned by
  73816. * the function.
  73817. *
  73818. * Running functions via `run` allows you to reenter Angular zone from a task that was executed
  73819. * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
  73820. *
  73821. * Any future tasks or microtasks scheduled from within this function will continue executing from
  73822. * within the Angular zone.
  73823. *
  73824. * If a synchronous error happens it will be rethrown and not reported via `onError`.
  73825. */
  73826. run(fn, applyThis, applyArgs) {
  73827. return this._inner.run(fn, applyThis, applyArgs);
  73828. }
  73829. /**
  73830. * Executes the `fn` function synchronously within the Angular zone as a task and returns value
  73831. * returned by the function.
  73832. *
  73833. * Running functions via `run` allows you to reenter Angular zone from a task that was executed
  73834. * outside of the Angular zone (typically started via {@link #runOutsideAngular}).
  73835. *
  73836. * Any future tasks or microtasks scheduled from within this function will continue executing from
  73837. * within the Angular zone.
  73838. *
  73839. * If a synchronous error happens it will be rethrown and not reported via `onError`.
  73840. */
  73841. runTask(fn, applyThis, applyArgs, name) {
  73842. const zone = this._inner;
  73843. const task = zone.scheduleEventTask('NgZoneEvent: ' + name, fn, EMPTY_PAYLOAD, noop, noop);
  73844. try {
  73845. return zone.runTask(task, applyThis, applyArgs);
  73846. }
  73847. finally {
  73848. zone.cancelTask(task);
  73849. }
  73850. }
  73851. /**
  73852. * Same as `run`, except that synchronous errors are caught and forwarded via `onError` and not
  73853. * rethrown.
  73854. */
  73855. runGuarded(fn, applyThis, applyArgs) {
  73856. return this._inner.runGuarded(fn, applyThis, applyArgs);
  73857. }
  73858. /**
  73859. * Executes the `fn` function synchronously in Angular's parent zone and returns value returned by
  73860. * the function.
  73861. *
  73862. * Running functions via {@link #runOutsideAngular} allows you to escape Angular's zone and do
  73863. * work that
  73864. * doesn't trigger Angular change-detection or is subject to Angular's error handling.
  73865. *
  73866. * Any future tasks or microtasks scheduled from within this function will continue executing from
  73867. * outside of the Angular zone.
  73868. *
  73869. * Use {@link #run} to reenter the Angular zone and do work that updates the application model.
  73870. */
  73871. runOutsideAngular(fn) {
  73872. return this._outer.run(fn);
  73873. }
  73874. }
  73875. const EMPTY_PAYLOAD = {};
  73876. function checkStable(zone) {
  73877. if (zone._nesting == 0 && !zone.hasPendingMicrotasks && !zone.isStable) {
  73878. try {
  73879. zone._nesting++;
  73880. zone.onMicrotaskEmpty.emit(null);
  73881. }
  73882. finally {
  73883. zone._nesting--;
  73884. if (!zone.hasPendingMicrotasks) {
  73885. try {
  73886. zone.runOutsideAngular(() => zone.onStable.emit(null));
  73887. }
  73888. finally {
  73889. zone.isStable = true;
  73890. }
  73891. }
  73892. }
  73893. }
  73894. }
  73895. function delayChangeDetectionForEvents(zone) {
  73896. if (zone.lastRequestAnimationFrameId !== -1) {
  73897. return;
  73898. }
  73899. zone.lastRequestAnimationFrameId = zone.nativeRequestAnimationFrame.call(_global, () => {
  73900. // This is a work around for https://github.com/angular/angular/issues/36839.
  73901. // The core issue is that when event coalescing is enabled it is possible for microtasks
  73902. // to get flushed too early (As is the case with `Promise.then`) between the
  73903. // coalescing eventTasks.
  73904. //
  73905. // To workaround this we schedule a "fake" eventTask before we process the
  73906. // coalescing eventTasks. The benefit of this is that the "fake" container eventTask
  73907. // will prevent the microtasks queue from getting drained in between the coalescing
  73908. // eventTask execution.
  73909. if (!zone.fakeTopEventTask) {
  73910. zone.fakeTopEventTask = Zone.root.scheduleEventTask('fakeTopEventTask', () => {
  73911. zone.lastRequestAnimationFrameId = -1;
  73912. updateMicroTaskStatus(zone);
  73913. checkStable(zone);
  73914. }, undefined, () => { }, () => { });
  73915. }
  73916. zone.fakeTopEventTask.invoke();
  73917. });
  73918. updateMicroTaskStatus(zone);
  73919. }
  73920. function forkInnerZoneWithAngularBehavior(zone) {
  73921. const delayChangeDetectionForEventsDelegate = () => {
  73922. delayChangeDetectionForEvents(zone);
  73923. };
  73924. const maybeDelayChangeDetection = !!zone.shouldCoalesceEventChangeDetection &&
  73925. zone.nativeRequestAnimationFrame && delayChangeDetectionForEventsDelegate;
  73926. zone._inner = zone._inner.fork({
  73927. name: 'angular',
  73928. properties: { 'isAngularZone': true, 'maybeDelayChangeDetection': maybeDelayChangeDetection },
  73929. onInvokeTask: (delegate, current, target, task, applyThis, applyArgs) => {
  73930. try {
  73931. onEnter(zone);
  73932. return delegate.invokeTask(target, task, applyThis, applyArgs);
  73933. }
  73934. finally {
  73935. if (maybeDelayChangeDetection && task.type === 'eventTask') {
  73936. maybeDelayChangeDetection();
  73937. }
  73938. onLeave(zone);
  73939. }
  73940. },
  73941. onInvoke: (delegate, current, target, callback, applyThis, applyArgs, source) => {
  73942. try {
  73943. onEnter(zone);
  73944. return delegate.invoke(target, callback, applyThis, applyArgs, source);
  73945. }
  73946. finally {
  73947. onLeave(zone);
  73948. }
  73949. },
  73950. onHasTask: (delegate, current, target, hasTaskState) => {
  73951. delegate.hasTask(target, hasTaskState);
  73952. if (current === target) {
  73953. // We are only interested in hasTask events which originate from our zone
  73954. // (A child hasTask event is not interesting to us)
  73955. if (hasTaskState.change == 'microTask') {
  73956. zone._hasPendingMicrotasks = hasTaskState.microTask;
  73957. updateMicroTaskStatus(zone);
  73958. checkStable(zone);
  73959. }
  73960. else if (hasTaskState.change == 'macroTask') {
  73961. zone.hasPendingMacrotasks = hasTaskState.macroTask;
  73962. }
  73963. }
  73964. },
  73965. onHandleError: (delegate, current, target, error) => {
  73966. delegate.handleError(target, error);
  73967. zone.runOutsideAngular(() => zone.onError.emit(error));
  73968. return false;
  73969. }
  73970. });
  73971. }
  73972. function updateMicroTaskStatus(zone) {
  73973. if (zone._hasPendingMicrotasks ||
  73974. (zone.shouldCoalesceEventChangeDetection && zone.lastRequestAnimationFrameId !== -1)) {
  73975. zone.hasPendingMicrotasks = true;
  73976. }
  73977. else {
  73978. zone.hasPendingMicrotasks = false;
  73979. }
  73980. }
  73981. function onEnter(zone) {
  73982. zone._nesting++;
  73983. if (zone.isStable) {
  73984. zone.isStable = false;
  73985. zone.onUnstable.emit(null);
  73986. }
  73987. }
  73988. function onLeave(zone) {
  73989. zone._nesting--;
  73990. checkStable(zone);
  73991. }
  73992. /**
  73993. * Provides a noop implementation of `NgZone` which does nothing. This zone requires explicit calls
  73994. * to framework to perform rendering.
  73995. */
  73996. class NoopNgZone {
  73997. constructor() {
  73998. this.hasPendingMicrotasks = false;
  73999. this.hasPendingMacrotasks = false;
  74000. this.isStable = true;
  74001. this.onUnstable = new EventEmitter();
  74002. this.onMicrotaskEmpty = new EventEmitter();
  74003. this.onStable = new EventEmitter();
  74004. this.onError = new EventEmitter();
  74005. }
  74006. run(fn, applyThis, applyArgs) {
  74007. return fn.apply(applyThis, applyArgs);
  74008. }
  74009. runGuarded(fn, applyThis, applyArgs) {
  74010. return fn.apply(applyThis, applyArgs);
  74011. }
  74012. runOutsideAngular(fn) {
  74013. return fn();
  74014. }
  74015. runTask(fn, applyThis, applyArgs, name) {
  74016. return fn.apply(applyThis, applyArgs);
  74017. }
  74018. }
  74019. /**
  74020. * @license
  74021. * Copyright Google LLC All Rights Reserved.
  74022. *
  74023. * Use of this source code is governed by an MIT-style license that can be
  74024. * found in the LICENSE file at https://angular.io/license
  74025. */
  74026. /**
  74027. * The Testability service provides testing hooks that can be accessed from
  74028. * the browser and by services such as Protractor. Each bootstrapped Angular
  74029. * application on the page will have an instance of Testability.
  74030. * @publicApi
  74031. */
  74032. class Testability {
  74033. constructor(_ngZone) {
  74034. this._ngZone = _ngZone;
  74035. this._pendingCount = 0;
  74036. this._isZoneStable = true;
  74037. /**
  74038. * Whether any work was done since the last 'whenStable' callback. This is
  74039. * useful to detect if this could have potentially destabilized another
  74040. * component while it is stabilizing.
  74041. * @internal
  74042. */
  74043. this._didWork = false;
  74044. this._callbacks = [];
  74045. this.taskTrackingZone = null;
  74046. this._watchAngularEvents();
  74047. _ngZone.run(() => {
  74048. this.taskTrackingZone =
  74049. typeof Zone == 'undefined' ? null : Zone.current.get('TaskTrackingZone');
  74050. });
  74051. }
  74052. _watchAngularEvents() {
  74053. this._ngZone.onUnstable.subscribe({
  74054. next: () => {
  74055. this._didWork = true;
  74056. this._isZoneStable = false;
  74057. }
  74058. });
  74059. this._ngZone.runOutsideAngular(() => {
  74060. this._ngZone.onStable.subscribe({
  74061. next: () => {
  74062. NgZone.assertNotInAngularZone();
  74063. scheduleMicroTask(() => {
  74064. this._isZoneStable = true;
  74065. this._runCallbacksIfReady();
  74066. });
  74067. }
  74068. });
  74069. });
  74070. }
  74071. /**
  74072. * Increases the number of pending request
  74073. * @deprecated pending requests are now tracked with zones.
  74074. */
  74075. increasePendingRequestCount() {
  74076. this._pendingCount += 1;
  74077. this._didWork = true;
  74078. return this._pendingCount;
  74079. }
  74080. /**
  74081. * Decreases the number of pending request
  74082. * @deprecated pending requests are now tracked with zones
  74083. */
  74084. decreasePendingRequestCount() {
  74085. this._pendingCount -= 1;
  74086. if (this._pendingCount < 0) {
  74087. throw new Error('pending async requests below zero');
  74088. }
  74089. this._runCallbacksIfReady();
  74090. return this._pendingCount;
  74091. }
  74092. /**
  74093. * Whether an associated application is stable
  74094. */
  74095. isStable() {
  74096. return this._isZoneStable && this._pendingCount === 0 && !this._ngZone.hasPendingMacrotasks;
  74097. }
  74098. _runCallbacksIfReady() {
  74099. if (this.isStable()) {
  74100. // Schedules the call backs in a new frame so that it is always async.
  74101. scheduleMicroTask(() => {
  74102. while (this._callbacks.length !== 0) {
  74103. let cb = this._callbacks.pop();
  74104. clearTimeout(cb.timeoutId);
  74105. cb.doneCb(this._didWork);
  74106. }
  74107. this._didWork = false;
  74108. });
  74109. }
  74110. else {
  74111. // Still not stable, send updates.
  74112. let pending = this.getPendingTasks();
  74113. this._callbacks = this._callbacks.filter((cb) => {
  74114. if (cb.updateCb && cb.updateCb(pending)) {
  74115. clearTimeout(cb.timeoutId);
  74116. return false;
  74117. }
  74118. return true;
  74119. });
  74120. this._didWork = true;
  74121. }
  74122. }
  74123. getPendingTasks() {
  74124. if (!this.taskTrackingZone) {
  74125. return [];
  74126. }
  74127. // Copy the tasks data so that we don't leak tasks.
  74128. return this.taskTrackingZone.macroTasks.map((t) => {
  74129. return {
  74130. source: t.source,
  74131. // From TaskTrackingZone:
  74132. // https://github.com/angular/zone.js/blob/master/lib/zone-spec/task-tracking.ts#L40
  74133. creationLocation: t.creationLocation,
  74134. data: t.data
  74135. };
  74136. });
  74137. }
  74138. addCallback(cb, timeout, updateCb) {
  74139. let timeoutId = -1;
  74140. if (timeout && timeout > 0) {
  74141. timeoutId = setTimeout(() => {
  74142. this._callbacks = this._callbacks.filter((cb) => cb.timeoutId !== timeoutId);
  74143. cb(this._didWork, this.getPendingTasks());
  74144. }, timeout);
  74145. }
  74146. this._callbacks.push({ doneCb: cb, timeoutId: timeoutId, updateCb: updateCb });
  74147. }
  74148. /**
  74149. * Wait for the application to be stable with a timeout. If the timeout is reached before that
  74150. * happens, the callback receives a list of the macro tasks that were pending, otherwise null.
  74151. *
  74152. * @param doneCb The callback to invoke when Angular is stable or the timeout expires
  74153. * whichever comes first.
  74154. * @param timeout Optional. The maximum time to wait for Angular to become stable. If not
  74155. * specified, whenStable() will wait forever.
  74156. * @param updateCb Optional. If specified, this callback will be invoked whenever the set of
  74157. * pending macrotasks changes. If this callback returns true doneCb will not be invoked
  74158. * and no further updates will be issued.
  74159. */
  74160. whenStable(doneCb, timeout, updateCb) {
  74161. if (updateCb && !this.taskTrackingZone) {
  74162. throw new Error('Task tracking zone is required when passing an update callback to ' +
  74163. 'whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');
  74164. }
  74165. // These arguments are 'Function' above to keep the public API simple.
  74166. this.addCallback(doneCb, timeout, updateCb);
  74167. this._runCallbacksIfReady();
  74168. }
  74169. /**
  74170. * Get the number of pending requests
  74171. * @deprecated pending requests are now tracked with zones
  74172. */
  74173. getPendingRequestCount() {
  74174. return this._pendingCount;
  74175. }
  74176. /**
  74177. * Find providers by name
  74178. * @param using The root element to search from
  74179. * @param provider The name of binding variable
  74180. * @param exactMatch Whether using exactMatch
  74181. */
  74182. findProviders(using, provider, exactMatch) {
  74183. // TODO(juliemr): implement.
  74184. return [];
  74185. }
  74186. }
  74187. Testability.ɵfac = function Testability_Factory(t) { return new (t || Testability)(ɵɵinject(NgZone)); };
  74188. Testability.ɵprov = ɵɵdefineInjectable({ token: Testability, factory: Testability.ɵfac });
  74189. Testability.ctorParameters = () => [
  74190. { type: NgZone }
  74191. ];
  74192. /*@__PURE__*/ (function () { setClassMetadata(Testability, [{
  74193. type: Injectable
  74194. }], function () { return [{ type: NgZone }]; }, null); })();
  74195. /**
  74196. * A global registry of {@link Testability} instances for specific elements.
  74197. * @publicApi
  74198. */
  74199. class TestabilityRegistry {
  74200. constructor() {
  74201. /** @internal */
  74202. this._applications = new Map();
  74203. _testabilityGetter.addToWindow(this);
  74204. }
  74205. /**
  74206. * Registers an application with a testability hook so that it can be tracked
  74207. * @param token token of application, root element
  74208. * @param testability Testability hook
  74209. */
  74210. registerApplication(token, testability) {
  74211. this._applications.set(token, testability);
  74212. }
  74213. /**
  74214. * Unregisters an application.
  74215. * @param token token of application, root element
  74216. */
  74217. unregisterApplication(token) {
  74218. this._applications.delete(token);
  74219. }
  74220. /**
  74221. * Unregisters all applications
  74222. */
  74223. unregisterAllApplications() {
  74224. this._applications.clear();
  74225. }
  74226. /**
  74227. * Get a testability hook associated with the application
  74228. * @param elem root element
  74229. */
  74230. getTestability(elem) {
  74231. return this._applications.get(elem) || null;
  74232. }
  74233. /**
  74234. * Get all registered testabilities
  74235. */
  74236. getAllTestabilities() {
  74237. return Array.from(this._applications.values());
  74238. }
  74239. /**
  74240. * Get all registered applications(root elements)
  74241. */
  74242. getAllRootElements() {
  74243. return Array.from(this._applications.keys());
  74244. }
  74245. /**
  74246. * Find testability of a node in the Tree
  74247. * @param elem node
  74248. * @param findInAncestors whether finding testability in ancestors if testability was not found in
  74249. * current node
  74250. */
  74251. findTestabilityInTree(elem, findInAncestors = true) {
  74252. return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);
  74253. }
  74254. }
  74255. TestabilityRegistry.ɵfac = function TestabilityRegistry_Factory(t) { return new (t || TestabilityRegistry)(); };
  74256. TestabilityRegistry.ɵprov = ɵɵdefineInjectable({ token: TestabilityRegistry, factory: TestabilityRegistry.ɵfac });
  74257. TestabilityRegistry.ctorParameters = () => [];
  74258. /*@__PURE__*/ (function () { setClassMetadata(TestabilityRegistry, [{
  74259. type: Injectable
  74260. }], function () { return []; }, null); })();
  74261. class _NoopGetTestability {
  74262. addToWindow(registry) { }
  74263. findTestabilityInTree(registry, elem, findInAncestors) {
  74264. return null;
  74265. }
  74266. }
  74267. /**
  74268. * Set the {@link GetTestability} implementation used by the Angular testing framework.
  74269. * @publicApi
  74270. */
  74271. function setTestabilityGetter(getter) {
  74272. _testabilityGetter = getter;
  74273. }
  74274. let _testabilityGetter = new _NoopGetTestability();
  74275. /**
  74276. * @license
  74277. * Copyright Google LLC All Rights Reserved.
  74278. *
  74279. * Use of this source code is governed by an MIT-style license that can be
  74280. * found in the LICENSE file at https://angular.io/license
  74281. */
  74282. /**
  74283. * This file is used to control if the default rendering pipeline should be `ViewEngine` or `Ivy`.
  74284. *
  74285. * For more information on how to run and debug tests with either Ivy or View Engine (legacy),
  74286. * please see [BAZEL.md](./docs/BAZEL.md).
  74287. */
  74288. let _devMode = true;
  74289. let _runModeLocked = false;
  74290. /**
  74291. * Returns whether Angular is in development mode. After called once,
  74292. * the value is locked and won't change any more.
  74293. *
  74294. * By default, this is true, unless a user calls `enableProdMode` before calling this.
  74295. *
  74296. * @publicApi
  74297. */
  74298. function isDevMode() {
  74299. _runModeLocked = true;
  74300. return _devMode;
  74301. }
  74302. /**
  74303. * Disable Angular's development mode, which turns off assertions and other
  74304. * checks within the framework.
  74305. *
  74306. * One important assertion this disables verifies that a change detection pass
  74307. * does not result in additional changes to any bindings (also known as
  74308. * unidirectional data flow).
  74309. *
  74310. * @publicApi
  74311. */
  74312. function enableProdMode() {
  74313. if (_runModeLocked) {
  74314. throw new Error('Cannot enable prod mode after platform setup.');
  74315. }
  74316. _devMode = false;
  74317. }
  74318. /**
  74319. * @license
  74320. * Copyright Google LLC All Rights Reserved.
  74321. *
  74322. * Use of this source code is governed by an MIT-style license that can be
  74323. * found in the LICENSE file at https://angular.io/license
  74324. */
  74325. let _platform;
  74326. let compileNgModuleFactory = compileNgModuleFactory__POST_R3__;
  74327. function compileNgModuleFactory__PRE_R3__(injector, options, moduleType) {
  74328. const compilerFactory = injector.get(CompilerFactory);
  74329. const compiler = compilerFactory.createCompiler([options]);
  74330. return compiler.compileModuleAsync(moduleType);
  74331. }
  74332. function compileNgModuleFactory__POST_R3__(injector, options, moduleType) {
  74333. ngDevMode && assertNgModuleType(moduleType);
  74334. const moduleFactory = new NgModuleFactory$1(moduleType);
  74335. // All of the logic below is irrelevant for AOT-compiled code.
  74336. if (typeof ngJitMode !== 'undefined' && !ngJitMode) {
  74337. return Promise.resolve(moduleFactory);
  74338. }
  74339. const compilerOptions = injector.get(COMPILER_OPTIONS, []).concat(options);
  74340. // Configure the compiler to use the provided options. This call may fail when multiple modules
  74341. // are bootstrapped with incompatible options, as a component can only be compiled according to
  74342. // a single set of options.
  74343. setJitOptions({
  74344. defaultEncapsulation: _lastDefined(compilerOptions.map(opts => opts.defaultEncapsulation)),
  74345. preserveWhitespaces: _lastDefined(compilerOptions.map(opts => opts.preserveWhitespaces)),
  74346. });
  74347. if (isComponentResourceResolutionQueueEmpty()) {
  74348. return Promise.resolve(moduleFactory);
  74349. }
  74350. const compilerProviders = _mergeArrays(compilerOptions.map(o => o.providers));
  74351. // In case there are no compiler providers, we just return the module factory as
  74352. // there won't be any resource loader. This can happen with Ivy, because AOT compiled
  74353. // modules can be still passed through "bootstrapModule". In that case we shouldn't
  74354. // unnecessarily require the JIT compiler.
  74355. if (compilerProviders.length === 0) {
  74356. return Promise.resolve(moduleFactory);
  74357. }
  74358. const compiler = getCompilerFacade();
  74359. const compilerInjector = Injector.create({ providers: compilerProviders });
  74360. const resourceLoader = compilerInjector.get(compiler.ResourceLoader);
  74361. // The resource loader can also return a string while the "resolveComponentResources"
  74362. // always expects a promise. Therefore we need to wrap the returned value in a promise.
  74363. return resolveComponentResources(url => Promise.resolve(resourceLoader.get(url)))
  74364. .then(() => moduleFactory);
  74365. }
  74366. // the `window.ng` global utilities are only available in non-VE versions of
  74367. // Angular. The function switch below will make sure that the code is not
  74368. // included into Angular when PRE mode is active.
  74369. function publishDefaultGlobalUtils__PRE_R3__() { }
  74370. function publishDefaultGlobalUtils__POST_R3__() {
  74371. ngDevMode && publishDefaultGlobalUtils();
  74372. }
  74373. let publishDefaultGlobalUtils$1 = publishDefaultGlobalUtils__POST_R3__;
  74374. let isBoundToModule = isBoundToModule__POST_R3__;
  74375. function isBoundToModule__PRE_R3__(cf) {
  74376. return cf instanceof ComponentFactoryBoundToModule;
  74377. }
  74378. function isBoundToModule__POST_R3__(cf) {
  74379. return cf.isBoundToModule;
  74380. }
  74381. const ALLOW_MULTIPLE_PLATFORMS = new InjectionToken('AllowMultipleToken');
  74382. /**
  74383. * A token for third-party components that can register themselves with NgProbe.
  74384. *
  74385. * @publicApi
  74386. */
  74387. class NgProbeToken {
  74388. constructor(name, token) {
  74389. this.name = name;
  74390. this.token = token;
  74391. }
  74392. }
  74393. /**
  74394. * Creates a platform.
  74395. * Platforms must be created on launch using this function.
  74396. *
  74397. * @publicApi
  74398. */
  74399. function createPlatform(injector) {
  74400. if (_platform && !_platform.destroyed &&
  74401. !_platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
  74402. throw new Error('There can be only one platform. Destroy the previous one to create a new one.');
  74403. }
  74404. publishDefaultGlobalUtils$1();
  74405. _platform = injector.get(PlatformRef);
  74406. const inits = injector.get(PLATFORM_INITIALIZER, null);
  74407. if (inits)
  74408. inits.forEach((init) => init());
  74409. return _platform;
  74410. }
  74411. /**
  74412. * Creates a factory for a platform. Can be used to provide or override `Providers` specific to
  74413. * your applciation's runtime needs, such as `PLATFORM_INITIALIZER` and `PLATFORM_ID`.
  74414. * @param parentPlatformFactory Another platform factory to modify. Allows you to compose factories
  74415. * to build up configurations that might be required by different libraries or parts of the
  74416. * application.
  74417. * @param name Identifies the new platform factory.
  74418. * @param providers A set of dependency providers for platforms created with the new factory.
  74419. *
  74420. * @publicApi
  74421. */
  74422. function createPlatformFactory(parentPlatformFactory, name, providers = []) {
  74423. const desc = `Platform: ${name}`;
  74424. const marker = new InjectionToken(desc);
  74425. return (extraProviders = []) => {
  74426. let platform = getPlatform();
  74427. if (!platform || platform.injector.get(ALLOW_MULTIPLE_PLATFORMS, false)) {
  74428. if (parentPlatformFactory) {
  74429. parentPlatformFactory(providers.concat(extraProviders).concat({ provide: marker, useValue: true }));
  74430. }
  74431. else {
  74432. const injectedProviders = providers.concat(extraProviders).concat({ provide: marker, useValue: true }, {
  74433. provide: INJECTOR_SCOPE,
  74434. useValue: 'platform'
  74435. });
  74436. createPlatform(Injector.create({ providers: injectedProviders, name: desc }));
  74437. }
  74438. }
  74439. return assertPlatform(marker);
  74440. };
  74441. }
  74442. /**
  74443. * Checks that there is currently a platform that contains the given token as a provider.
  74444. *
  74445. * @publicApi
  74446. */
  74447. function assertPlatform(requiredToken) {
  74448. const platform = getPlatform();
  74449. if (!platform) {
  74450. throw new Error('No platform exists!');
  74451. }
  74452. if (!platform.injector.get(requiredToken, null)) {
  74453. throw new Error('A platform with a different configuration has been created. Please destroy it first.');
  74454. }
  74455. return platform;
  74456. }
  74457. /**
  74458. * Destroys the current Angular platform and all Angular applications on the page.
  74459. * Destroys all modules and listeners registered with the platform.
  74460. *
  74461. * @publicApi
  74462. */
  74463. function destroyPlatform() {
  74464. if (_platform && !_platform.destroyed) {
  74465. _platform.destroy();
  74466. }
  74467. }
  74468. /**
  74469. * Returns the current platform.
  74470. *
  74471. * @publicApi
  74472. */
  74473. function getPlatform() {
  74474. return _platform && !_platform.destroyed ? _platform : null;
  74475. }
  74476. /**
  74477. * The Angular platform is the entry point for Angular on a web page.
  74478. * Each page has exactly one platform. Services (such as reflection) which are common
  74479. * to every Angular application running on the page are bound in its scope.
  74480. * A page's platform is initialized implicitly when a platform is created using a platform
  74481. * factory such as `PlatformBrowser`, or explicitly by calling the `createPlatform()` function.
  74482. *
  74483. * @publicApi
  74484. */
  74485. class PlatformRef {
  74486. /** @internal */
  74487. constructor(_injector) {
  74488. this._injector = _injector;
  74489. this._modules = [];
  74490. this._destroyListeners = [];
  74491. this._destroyed = false;
  74492. }
  74493. /**
  74494. * Creates an instance of an `@NgModule` for the given platform for offline compilation.
  74495. *
  74496. * @usageNotes
  74497. *
  74498. * The following example creates the NgModule for a browser platform.
  74499. *
  74500. * ```typescript
  74501. * my_module.ts:
  74502. *
  74503. * @NgModule({
  74504. * imports: [BrowserModule]
  74505. * })
  74506. * class MyModule {}
  74507. *
  74508. * main.ts:
  74509. * import {MyModuleNgFactory} from './my_module.ngfactory';
  74510. * import {platformBrowser} from '@angular/platform-browser';
  74511. *
  74512. * let moduleRef = platformBrowser().bootstrapModuleFactory(MyModuleNgFactory);
  74513. * ```
  74514. */
  74515. bootstrapModuleFactory(moduleFactory, options) {
  74516. // Note: We need to create the NgZone _before_ we instantiate the module,
  74517. // as instantiating the module creates some providers eagerly.
  74518. // So we create a mini parent injector that just contains the new NgZone and
  74519. // pass that as parent to the NgModuleFactory.
  74520. const ngZoneOption = options ? options.ngZone : undefined;
  74521. const ngZoneEventCoalescing = (options && options.ngZoneEventCoalescing) || false;
  74522. const ngZone = getNgZone(ngZoneOption, ngZoneEventCoalescing);
  74523. const providers = [{ provide: NgZone, useValue: ngZone }];
  74524. // Attention: Don't use ApplicationRef.run here,
  74525. // as we want to be sure that all possible constructor calls are inside `ngZone.run`!
  74526. return ngZone.run(() => {
  74527. const ngZoneInjector = Injector.create({ providers: providers, parent: this.injector, name: moduleFactory.moduleType.name });
  74528. const moduleRef = moduleFactory.create(ngZoneInjector);
  74529. const exceptionHandler = moduleRef.injector.get(ErrorHandler, null);
  74530. if (!exceptionHandler) {
  74531. throw new Error('No ErrorHandler. Is platform module (BrowserModule) included?');
  74532. }
  74533. ngZone.runOutsideAngular(() => {
  74534. const subscription = ngZone.onError.subscribe({
  74535. next: (error) => {
  74536. exceptionHandler.handleError(error);
  74537. }
  74538. });
  74539. moduleRef.onDestroy(() => {
  74540. remove(this._modules, moduleRef);
  74541. subscription.unsubscribe();
  74542. });
  74543. });
  74544. return _callAndReportToErrorHandler(exceptionHandler, ngZone, () => {
  74545. const initStatus = moduleRef.injector.get(ApplicationInitStatus);
  74546. initStatus.runInitializers();
  74547. return initStatus.donePromise.then(() => {
  74548. if (ivyEnabled) {
  74549. // If the `LOCALE_ID` provider is defined at bootstrap then we set the value for ivy
  74550. const localeId = moduleRef.injector.get(LOCALE_ID$1, DEFAULT_LOCALE_ID);
  74551. setLocaleId(localeId || DEFAULT_LOCALE_ID);
  74552. }
  74553. this._moduleDoBootstrap(moduleRef);
  74554. return moduleRef;
  74555. });
  74556. });
  74557. });
  74558. }
  74559. /**
  74560. * Creates an instance of an `@NgModule` for a given platform using the given runtime compiler.
  74561. *
  74562. * @usageNotes
  74563. * ### Simple Example
  74564. *
  74565. * ```typescript
  74566. * @NgModule({
  74567. * imports: [BrowserModule]
  74568. * })
  74569. * class MyModule {}
  74570. *
  74571. * let moduleRef = platformBrowser().bootstrapModule(MyModule);
  74572. * ```
  74573. *
  74574. */
  74575. bootstrapModule(moduleType, compilerOptions = []) {
  74576. const options = optionsReducer({}, compilerOptions);
  74577. return compileNgModuleFactory(this.injector, options, moduleType)
  74578. .then(moduleFactory => this.bootstrapModuleFactory(moduleFactory, options));
  74579. }
  74580. _moduleDoBootstrap(moduleRef) {
  74581. const appRef = moduleRef.injector.get(ApplicationRef);
  74582. if (moduleRef._bootstrapComponents.length > 0) {
  74583. moduleRef._bootstrapComponents.forEach(f => appRef.bootstrap(f));
  74584. }
  74585. else if (moduleRef.instance.ngDoBootstrap) {
  74586. moduleRef.instance.ngDoBootstrap(appRef);
  74587. }
  74588. else {
  74589. throw new Error(`The module ${stringify(moduleRef.instance
  74590. .constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ` +
  74591. `Please define one of these.`);
  74592. }
  74593. this._modules.push(moduleRef);
  74594. }
  74595. /**
  74596. * Registers a listener to be called when the platform is destroyed.
  74597. */
  74598. onDestroy(callback) {
  74599. this._destroyListeners.push(callback);
  74600. }
  74601. /**
  74602. * Retrieves the platform {@link Injector}, which is the parent injector for
  74603. * every Angular application on the page and provides singleton providers.
  74604. */
  74605. get injector() {
  74606. return this._injector;
  74607. }
  74608. /**
  74609. * Destroys the current Angular platform and all Angular applications on the page.
  74610. * Destroys all modules and listeners registered with the platform.
  74611. */
  74612. destroy() {
  74613. if (this._destroyed) {
  74614. throw new Error('The platform has already been destroyed!');
  74615. }
  74616. this._modules.slice().forEach(module => module.destroy());
  74617. this._destroyListeners.forEach(listener => listener());
  74618. this._destroyed = true;
  74619. }
  74620. get destroyed() {
  74621. return this._destroyed;
  74622. }
  74623. }
  74624. PlatformRef.ɵfac = function PlatformRef_Factory(t) { return new (t || PlatformRef)(ɵɵinject(Injector)); };
  74625. PlatformRef.ɵprov = ɵɵdefineInjectable({ token: PlatformRef, factory: PlatformRef.ɵfac });
  74626. PlatformRef.ctorParameters = () => [
  74627. { type: Injector }
  74628. ];
  74629. /*@__PURE__*/ (function () { setClassMetadata(PlatformRef, [{
  74630. type: Injectable
  74631. }], function () { return [{ type: Injector }]; }, null); })();
  74632. function getNgZone(ngZoneOption, ngZoneEventCoalescing) {
  74633. let ngZone;
  74634. if (ngZoneOption === 'noop') {
  74635. ngZone = new NoopNgZone();
  74636. }
  74637. else {
  74638. ngZone = (ngZoneOption === 'zone.js' ? undefined : ngZoneOption) || new NgZone({
  74639. enableLongStackTrace: isDevMode(),
  74640. shouldCoalesceEventChangeDetection: ngZoneEventCoalescing
  74641. });
  74642. }
  74643. return ngZone;
  74644. }
  74645. function _callAndReportToErrorHandler(errorHandler, ngZone, callback) {
  74646. try {
  74647. const result = callback();
  74648. if (isPromise(result)) {
  74649. return result.catch((e) => {
  74650. ngZone.runOutsideAngular(() => errorHandler.handleError(e));
  74651. // rethrow as the exception handler might not do it
  74652. throw e;
  74653. });
  74654. }
  74655. return result;
  74656. }
  74657. catch (e) {
  74658. ngZone.runOutsideAngular(() => errorHandler.handleError(e));
  74659. // rethrow as the exception handler might not do it
  74660. throw e;
  74661. }
  74662. }
  74663. function optionsReducer(dst, objs) {
  74664. if (Array.isArray(objs)) {
  74665. dst = objs.reduce(optionsReducer, dst);
  74666. }
  74667. else {
  74668. dst = Object.assign(Object.assign({}, dst), objs);
  74669. }
  74670. return dst;
  74671. }
  74672. /**
  74673. * A reference to an Angular application running on a page.
  74674. *
  74675. * @usageNotes
  74676. *
  74677. * {@a is-stable-examples}
  74678. * ### isStable examples and caveats
  74679. *
  74680. * Note two important points about `isStable`, demonstrated in the examples below:
  74681. * - the application will never be stable if you start any kind
  74682. * of recurrent asynchronous task when the application starts
  74683. * (for example for a polling process, started with a `setInterval`, a `setTimeout`
  74684. * or using RxJS operators like `interval`);
  74685. * - the `isStable` Observable runs outside of the Angular zone.
  74686. *
  74687. * Let's imagine that you start a recurrent task
  74688. * (here incrementing a counter, using RxJS `interval`),
  74689. * and at the same time subscribe to `isStable`.
  74690. *
  74691. * ```
  74692. * constructor(appRef: ApplicationRef) {
  74693. * appRef.isStable.pipe(
  74694. * filter(stable => stable)
  74695. * ).subscribe(() => console.log('App is stable now');
  74696. * interval(1000).subscribe(counter => console.log(counter));
  74697. * }
  74698. * ```
  74699. * In this example, `isStable` will never emit `true`,
  74700. * and the trace "App is stable now" will never get logged.
  74701. *
  74702. * If you want to execute something when the app is stable,
  74703. * you have to wait for the application to be stable
  74704. * before starting your polling process.
  74705. *
  74706. * ```
  74707. * constructor(appRef: ApplicationRef) {
  74708. * appRef.isStable.pipe(
  74709. * first(stable => stable),
  74710. * tap(stable => console.log('App is stable now')),
  74711. * switchMap(() => interval(1000))
  74712. * ).subscribe(counter => console.log(counter));
  74713. * }
  74714. * ```
  74715. * In this example, the trace "App is stable now" will be logged
  74716. * and then the counter starts incrementing every second.
  74717. *
  74718. * Note also that this Observable runs outside of the Angular zone,
  74719. * which means that the code in the subscription
  74720. * to this Observable will not trigger the change detection.
  74721. *
  74722. * Let's imagine that instead of logging the counter value,
  74723. * you update a field of your component
  74724. * and display it in its template.
  74725. *
  74726. * ```
  74727. * constructor(appRef: ApplicationRef) {
  74728. * appRef.isStable.pipe(
  74729. * first(stable => stable),
  74730. * switchMap(() => interval(1000))
  74731. * ).subscribe(counter => this.value = counter);
  74732. * }
  74733. * ```
  74734. * As the `isStable` Observable runs outside the zone,
  74735. * the `value` field will be updated properly,
  74736. * but the template will not be refreshed!
  74737. *
  74738. * You'll have to manually trigger the change detection to update the template.
  74739. *
  74740. * ```
  74741. * constructor(appRef: ApplicationRef, cd: ChangeDetectorRef) {
  74742. * appRef.isStable.pipe(
  74743. * first(stable => stable),
  74744. * switchMap(() => interval(1000))
  74745. * ).subscribe(counter => {
  74746. * this.value = counter;
  74747. * cd.detectChanges();
  74748. * });
  74749. * }
  74750. * ```
  74751. *
  74752. * Or make the subscription callback run inside the zone.
  74753. *
  74754. * ```
  74755. * constructor(appRef: ApplicationRef, zone: NgZone) {
  74756. * appRef.isStable.pipe(
  74757. * first(stable => stable),
  74758. * switchMap(() => interval(1000))
  74759. * ).subscribe(counter => zone.run(() => this.value = counter));
  74760. * }
  74761. * ```
  74762. *
  74763. * @publicApi
  74764. */
  74765. class ApplicationRef {
  74766. /** @internal */
  74767. constructor(_zone, _console, _injector, _exceptionHandler, _componentFactoryResolver, _initStatus) {
  74768. this._zone = _zone;
  74769. this._console = _console;
  74770. this._injector = _injector;
  74771. this._exceptionHandler = _exceptionHandler;
  74772. this._componentFactoryResolver = _componentFactoryResolver;
  74773. this._initStatus = _initStatus;
  74774. /** @internal */
  74775. this._bootstrapListeners = [];
  74776. this._views = [];
  74777. this._runningTick = false;
  74778. this._stable = true;
  74779. /**
  74780. * Get a list of component types registered to this application.
  74781. * This list is populated even before the component is created.
  74782. */
  74783. this.componentTypes = [];
  74784. /**
  74785. * Get a list of components registered to this application.
  74786. */
  74787. this.components = [];
  74788. this._onMicrotaskEmptySubscription = this._zone.onMicrotaskEmpty.subscribe({
  74789. next: () => {
  74790. this._zone.run(() => {
  74791. this.tick();
  74792. });
  74793. }
  74794. });
  74795. const isCurrentlyStable = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Observable"]((observer) => {
  74796. this._stable = this._zone.isStable && !this._zone.hasPendingMacrotasks &&
  74797. !this._zone.hasPendingMicrotasks;
  74798. this._zone.runOutsideAngular(() => {
  74799. observer.next(this._stable);
  74800. observer.complete();
  74801. });
  74802. });
  74803. const isStable = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Observable"]((observer) => {
  74804. // Create the subscription to onStable outside the Angular Zone so that
  74805. // the callback is run outside the Angular Zone.
  74806. let stableSub;
  74807. this._zone.runOutsideAngular(() => {
  74808. stableSub = this._zone.onStable.subscribe(() => {
  74809. NgZone.assertNotInAngularZone();
  74810. // Check whether there are no pending macro/micro tasks in the next tick
  74811. // to allow for NgZone to update the state.
  74812. scheduleMicroTask(() => {
  74813. if (!this._stable && !this._zone.hasPendingMacrotasks &&
  74814. !this._zone.hasPendingMicrotasks) {
  74815. this._stable = true;
  74816. observer.next(true);
  74817. }
  74818. });
  74819. });
  74820. });
  74821. const unstableSub = this._zone.onUnstable.subscribe(() => {
  74822. NgZone.assertInAngularZone();
  74823. if (this._stable) {
  74824. this._stable = false;
  74825. this._zone.runOutsideAngular(() => {
  74826. observer.next(false);
  74827. });
  74828. }
  74829. });
  74830. return () => {
  74831. stableSub.unsubscribe();
  74832. unstableSub.unsubscribe();
  74833. };
  74834. });
  74835. this.isStable =
  74836. Object(rxjs__WEBPACK_IMPORTED_MODULE_0__["merge"])(isCurrentlyStable, isStable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["share"])()));
  74837. }
  74838. /**
  74839. * Bootstrap a new component at the root level of the application.
  74840. *
  74841. * @usageNotes
  74842. * ### Bootstrap process
  74843. *
  74844. * When bootstrapping a new root component into an application, Angular mounts the
  74845. * specified application component onto DOM elements identified by the componentType's
  74846. * selector and kicks off automatic change detection to finish initializing the component.
  74847. *
  74848. * Optionally, a component can be mounted onto a DOM element that does not match the
  74849. * componentType's selector.
  74850. *
  74851. * ### Example
  74852. * {@example core/ts/platform/platform.ts region='longform'}
  74853. */
  74854. bootstrap(componentOrFactory, rootSelectorOrNode) {
  74855. if (!this._initStatus.done) {
  74856. throw new Error('Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.');
  74857. }
  74858. let componentFactory;
  74859. if (componentOrFactory instanceof ComponentFactory) {
  74860. componentFactory = componentOrFactory;
  74861. }
  74862. else {
  74863. componentFactory =
  74864. this._componentFactoryResolver.resolveComponentFactory(componentOrFactory);
  74865. }
  74866. this.componentTypes.push(componentFactory.componentType);
  74867. // Create a factory associated with the current module if it's not bound to some other
  74868. const ngModule = isBoundToModule(componentFactory) ? undefined : this._injector.get(NgModuleRef);
  74869. const selectorOrNode = rootSelectorOrNode || componentFactory.selector;
  74870. const compRef = componentFactory.create(Injector.NULL, [], selectorOrNode, ngModule);
  74871. const nativeElement = compRef.location.nativeElement;
  74872. const testability = compRef.injector.get(Testability, null);
  74873. const testabilityRegistry = testability && compRef.injector.get(TestabilityRegistry);
  74874. if (testability && testabilityRegistry) {
  74875. testabilityRegistry.registerApplication(nativeElement, testability);
  74876. }
  74877. compRef.onDestroy(() => {
  74878. this.detachView(compRef.hostView);
  74879. remove(this.components, compRef);
  74880. if (testabilityRegistry) {
  74881. testabilityRegistry.unregisterApplication(nativeElement);
  74882. }
  74883. });
  74884. this._loadComponent(compRef);
  74885. if (isDevMode()) {
  74886. this._console.log(`Angular is running in development mode. Call enableProdMode() to enable production mode.`);
  74887. }
  74888. return compRef;
  74889. }
  74890. /**
  74891. * Invoke this method to explicitly process change detection and its side-effects.
  74892. *
  74893. * In development mode, `tick()` also performs a second change detection cycle to ensure that no
  74894. * further changes are detected. If additional changes are picked up during this second cycle,
  74895. * bindings in the app have side-effects that cannot be resolved in a single change detection
  74896. * pass.
  74897. * In this case, Angular throws an error, since an Angular application can only have one change
  74898. * detection pass during which all change detection must complete.
  74899. */
  74900. tick() {
  74901. if (this._runningTick) {
  74902. throw new Error('ApplicationRef.tick is called recursively');
  74903. }
  74904. try {
  74905. this._runningTick = true;
  74906. for (let view of this._views) {
  74907. view.detectChanges();
  74908. }
  74909. // Note that we have still left the `isDevMode()` condition in order to avoid
  74910. // creating a breaking change for projects that still use the View Engine.
  74911. if ((typeof ngDevMode === 'undefined' || ngDevMode) && isDevMode()) {
  74912. for (let view of this._views) {
  74913. view.checkNoChanges();
  74914. }
  74915. }
  74916. }
  74917. catch (e) {
  74918. // Attention: Don't rethrow as it could cancel subscriptions to Observables!
  74919. this._zone.runOutsideAngular(() => this._exceptionHandler.handleError(e));
  74920. }
  74921. finally {
  74922. this._runningTick = false;
  74923. }
  74924. }
  74925. /**
  74926. * Attaches a view so that it will be dirty checked.
  74927. * The view will be automatically detached when it is destroyed.
  74928. * This will throw if the view is already attached to a ViewContainer.
  74929. */
  74930. attachView(viewRef) {
  74931. const view = viewRef;
  74932. this._views.push(view);
  74933. view.attachToAppRef(this);
  74934. }
  74935. /**
  74936. * Detaches a view from dirty checking again.
  74937. */
  74938. detachView(viewRef) {
  74939. const view = viewRef;
  74940. remove(this._views, view);
  74941. view.detachFromAppRef();
  74942. }
  74943. _loadComponent(componentRef) {
  74944. this.attachView(componentRef.hostView);
  74945. this.tick();
  74946. this.components.push(componentRef);
  74947. // Get the listeners lazily to prevent DI cycles.
  74948. const listeners = this._injector.get(APP_BOOTSTRAP_LISTENER, []).concat(this._bootstrapListeners);
  74949. listeners.forEach((listener) => listener(componentRef));
  74950. }
  74951. /** @internal */
  74952. ngOnDestroy() {
  74953. this._views.slice().forEach((view) => view.destroy());
  74954. this._onMicrotaskEmptySubscription.unsubscribe();
  74955. }
  74956. /**
  74957. * Returns the number of attached views.
  74958. */
  74959. get viewCount() {
  74960. return this._views.length;
  74961. }
  74962. }
  74963. ApplicationRef.ɵfac = function ApplicationRef_Factory(t) { return new (t || ApplicationRef)(ɵɵinject(NgZone), ɵɵinject(Console), ɵɵinject(Injector), ɵɵinject(ErrorHandler), ɵɵinject(ComponentFactoryResolver), ɵɵinject(ApplicationInitStatus)); };
  74964. ApplicationRef.ɵprov = ɵɵdefineInjectable({ token: ApplicationRef, factory: ApplicationRef.ɵfac });
  74965. ApplicationRef.ctorParameters = () => [
  74966. { type: NgZone },
  74967. { type: Console },
  74968. { type: Injector },
  74969. { type: ErrorHandler },
  74970. { type: ComponentFactoryResolver },
  74971. { type: ApplicationInitStatus }
  74972. ];
  74973. /*@__PURE__*/ (function () { setClassMetadata(ApplicationRef, [{
  74974. type: Injectable
  74975. }], function () { return [{ type: NgZone }, { type: Console }, { type: Injector }, { type: ErrorHandler }, { type: ComponentFactoryResolver }, { type: ApplicationInitStatus }]; }, null); })();
  74976. function remove(list, el) {
  74977. const index = list.indexOf(el);
  74978. if (index > -1) {
  74979. list.splice(index, 1);
  74980. }
  74981. }
  74982. function _lastDefined(args) {
  74983. for (let i = args.length - 1; i >= 0; i--) {
  74984. if (args[i] !== undefined) {
  74985. return args[i];
  74986. }
  74987. }
  74988. return undefined;
  74989. }
  74990. function _mergeArrays(parts) {
  74991. const result = [];
  74992. parts.forEach((part) => part && result.push(...part));
  74993. return result;
  74994. }
  74995. /**
  74996. * @license
  74997. * Copyright Google LLC All Rights Reserved.
  74998. *
  74999. * Use of this source code is governed by an MIT-style license that can be
  75000. * found in the LICENSE file at https://angular.io/license
  75001. */
  75002. /**
  75003. * @license
  75004. * Copyright Google LLC All Rights Reserved.
  75005. *
  75006. * Use of this source code is governed by an MIT-style license that can be
  75007. * found in the LICENSE file at https://angular.io/license
  75008. */
  75009. /**
  75010. * @license
  75011. * Copyright Google LLC All Rights Reserved.
  75012. *
  75013. * Use of this source code is governed by an MIT-style license that can be
  75014. * found in the LICENSE file at https://angular.io/license
  75015. */
  75016. /**
  75017. * Used to load ng module factories.
  75018. *
  75019. * @publicApi
  75020. * @deprecated the `string` form of `loadChildren` is deprecated, and `NgModuleFactoryLoader` is
  75021. * part of its implementation. See `LoadChildren` for more details.
  75022. */
  75023. class NgModuleFactoryLoader {
  75024. }
  75025. function getModuleFactory__PRE_R3__(id) {
  75026. const factory = getRegisteredNgModuleType(id);
  75027. if (!factory)
  75028. throw noModuleError(id);
  75029. return factory;
  75030. }
  75031. function getModuleFactory__POST_R3__(id) {
  75032. const type = getRegisteredNgModuleType(id);
  75033. if (!type)
  75034. throw noModuleError(id);
  75035. return new NgModuleFactory$1(type);
  75036. }
  75037. /**
  75038. * Returns the NgModuleFactory with the given id, if it exists and has been loaded.
  75039. * Factories for modules that do not specify an `id` cannot be retrieved. Throws if the module
  75040. * cannot be found.
  75041. * @publicApi
  75042. */
  75043. const getModuleFactory = getModuleFactory__POST_R3__;
  75044. function noModuleError(id) {
  75045. return new Error(`No module with ID ${id} loaded`);
  75046. }
  75047. /**
  75048. * @license
  75049. * Copyright Google LLC All Rights Reserved.
  75050. *
  75051. * Use of this source code is governed by an MIT-style license that can be
  75052. * found in the LICENSE file at https://angular.io/license
  75053. */
  75054. const _SEPARATOR = '#';
  75055. const FACTORY_CLASS_SUFFIX = 'NgFactory';
  75056. /**
  75057. * Configuration for SystemJsNgModuleLoader.
  75058. * token.
  75059. *
  75060. * @publicApi
  75061. * @deprecated the `string` form of `loadChildren` is deprecated, and `SystemJsNgModuleLoaderConfig`
  75062. * is part of its implementation. See `LoadChildren` for more details.
  75063. */
  75064. class SystemJsNgModuleLoaderConfig {
  75065. }
  75066. const DEFAULT_CONFIG = {
  75067. factoryPathPrefix: '',
  75068. factoryPathSuffix: '.ngfactory',
  75069. };
  75070. /**
  75071. * NgModuleFactoryLoader that uses SystemJS to load NgModuleFactory
  75072. * @publicApi
  75073. * @deprecated the `string` form of `loadChildren` is deprecated, and `SystemJsNgModuleLoader` is
  75074. * part of its implementation. See `LoadChildren` for more details.
  75075. */
  75076. class SystemJsNgModuleLoader {
  75077. constructor(_compiler, config) {
  75078. this._compiler = _compiler;
  75079. this._config = config || DEFAULT_CONFIG;
  75080. }
  75081. load(path) {
  75082. const legacyOfflineMode = !ivyEnabled && this._compiler instanceof Compiler;
  75083. return legacyOfflineMode ? this.loadFactory(path) : this.loadAndCompile(path);
  75084. }
  75085. loadAndCompile(path) {
  75086. let [module, exportName] = path.split(_SEPARATOR);
  75087. if (exportName === undefined) {
  75088. exportName = 'default';
  75089. }
  75090. return __webpack_require__("zn8P")(module)
  75091. .then((module) => module[exportName])
  75092. .then((type) => checkNotEmpty(type, module, exportName))
  75093. .then((type) => this._compiler.compileModuleAsync(type));
  75094. }
  75095. loadFactory(path) {
  75096. let [module, exportName] = path.split(_SEPARATOR);
  75097. let factoryClassSuffix = FACTORY_CLASS_SUFFIX;
  75098. if (exportName === undefined) {
  75099. exportName = 'default';
  75100. factoryClassSuffix = '';
  75101. }
  75102. return __webpack_require__("zn8P")(this._config.factoryPathPrefix + module + this._config.factoryPathSuffix)
  75103. .then((module) => module[exportName + factoryClassSuffix])
  75104. .then((factory) => checkNotEmpty(factory, module, exportName));
  75105. }
  75106. }
  75107. SystemJsNgModuleLoader.ɵfac = function SystemJsNgModuleLoader_Factory(t) { return new (t || SystemJsNgModuleLoader)(ɵɵinject(Compiler), ɵɵinject(SystemJsNgModuleLoaderConfig, 8)); };
  75108. SystemJsNgModuleLoader.ɵprov = ɵɵdefineInjectable({ token: SystemJsNgModuleLoader, factory: SystemJsNgModuleLoader.ɵfac });
  75109. SystemJsNgModuleLoader.ctorParameters = () => [
  75110. { type: Compiler },
  75111. { type: SystemJsNgModuleLoaderConfig, decorators: [{ type: Optional }] }
  75112. ];
  75113. /*@__PURE__*/ (function () { setClassMetadata(SystemJsNgModuleLoader, [{
  75114. type: Injectable
  75115. }], function () { return [{ type: Compiler }, { type: SystemJsNgModuleLoaderConfig, decorators: [{
  75116. type: Optional
  75117. }] }]; }, null); })();
  75118. function checkNotEmpty(value, modulePath, exportName) {
  75119. if (!value) {
  75120. throw new Error(`Cannot find '${exportName}' in '${modulePath}'`);
  75121. }
  75122. return value;
  75123. }
  75124. /**
  75125. * @license
  75126. * Copyright Google LLC All Rights Reserved.
  75127. *
  75128. * Use of this source code is governed by an MIT-style license that can be
  75129. * found in the LICENSE file at https://angular.io/license
  75130. */
  75131. /**
  75132. * Represents an Angular [view](guide/glossary#view "Definition").
  75133. *
  75134. * @see {@link ChangeDetectorRef#usage-notes Change detection usage}
  75135. *
  75136. * @publicApi
  75137. */
  75138. class ViewRef$1 extends ChangeDetectorRef {
  75139. }
  75140. /**
  75141. * Represents an Angular [view](guide/glossary#view) in a view container.
  75142. * An [embedded view](guide/glossary#view-tree) can be referenced from a component
  75143. * other than the hosting component whose template defines it, or it can be defined
  75144. * independently by a `TemplateRef`.
  75145. *
  75146. * Properties of elements in a view can change, but the structure (number and order) of elements in
  75147. * a view cannot. Change the structure of elements by inserting, moving, or
  75148. * removing nested views in a view container.
  75149. *
  75150. * @see `ViewContainerRef`
  75151. *
  75152. * @usageNotes
  75153. *
  75154. * The following template breaks down into two separate `TemplateRef` instances,
  75155. * an outer one and an inner one.
  75156. *
  75157. * ```
  75158. * Count: {{items.length}}
  75159. * <ul>
  75160. * <li *ngFor="let item of items">{{item}}</li>
  75161. * </ul>
  75162. * ```
  75163. *
  75164. * This is the outer `TemplateRef`:
  75165. *
  75166. * ```
  75167. * Count: {{items.length}}
  75168. * <ul>
  75169. * <ng-template ngFor let-item [ngForOf]="items"></ng-template>
  75170. * </ul>
  75171. * ```
  75172. *
  75173. * This is the inner `TemplateRef`:
  75174. *
  75175. * ```
  75176. * <li>{{item}}</li>
  75177. * ```
  75178. *
  75179. * The outer and inner `TemplateRef` instances are assembled into views as follows:
  75180. *
  75181. * ```
  75182. * <!-- ViewRef: outer-0 -->
  75183. * Count: 2
  75184. * <ul>
  75185. * <ng-template view-container-ref></ng-template>
  75186. * <!-- ViewRef: inner-1 --><li>first</li><!-- /ViewRef: inner-1 -->
  75187. * <!-- ViewRef: inner-2 --><li>second</li><!-- /ViewRef: inner-2 -->
  75188. * </ul>
  75189. * <!-- /ViewRef: outer-0 -->
  75190. * ```
  75191. * @publicApi
  75192. */
  75193. class EmbeddedViewRef extends ViewRef$1 {
  75194. }
  75195. /**
  75196. * @license
  75197. * Copyright Google LLC All Rights Reserved.
  75198. *
  75199. * Use of this source code is governed by an MIT-style license that can be
  75200. * found in the LICENSE file at https://angular.io/license
  75201. */
  75202. /**
  75203. * @license
  75204. * Copyright Google LLC All Rights Reserved.
  75205. *
  75206. * Use of this source code is governed by an MIT-style license that can be
  75207. * found in the LICENSE file at https://angular.io/license
  75208. */
  75209. /**
  75210. * @publicApi
  75211. */
  75212. class DebugEventListener {
  75213. constructor(name, callback) {
  75214. this.name = name;
  75215. this.callback = callback;
  75216. }
  75217. }
  75218. class DebugNode__PRE_R3__ {
  75219. constructor(nativeNode, parent, _debugContext) {
  75220. this.listeners = [];
  75221. this.parent = null;
  75222. this._debugContext = _debugContext;
  75223. this.nativeNode = nativeNode;
  75224. if (parent && parent instanceof DebugElement__PRE_R3__) {
  75225. parent.addChild(this);
  75226. }
  75227. }
  75228. get injector() {
  75229. return this._debugContext.injector;
  75230. }
  75231. get componentInstance() {
  75232. return this._debugContext.component;
  75233. }
  75234. get context() {
  75235. return this._debugContext.context;
  75236. }
  75237. get references() {
  75238. return this._debugContext.references;
  75239. }
  75240. get providerTokens() {
  75241. return this._debugContext.providerTokens;
  75242. }
  75243. }
  75244. class DebugElement__PRE_R3__ extends DebugNode__PRE_R3__ {
  75245. constructor(nativeNode, parent, _debugContext) {
  75246. super(nativeNode, parent, _debugContext);
  75247. this.properties = {};
  75248. this.attributes = {};
  75249. this.classes = {};
  75250. this.styles = {};
  75251. this.childNodes = [];
  75252. this.nativeElement = nativeNode;
  75253. }
  75254. addChild(child) {
  75255. if (child) {
  75256. this.childNodes.push(child);
  75257. child.parent = this;
  75258. }
  75259. }
  75260. removeChild(child) {
  75261. const childIndex = this.childNodes.indexOf(child);
  75262. if (childIndex !== -1) {
  75263. child.parent = null;
  75264. this.childNodes.splice(childIndex, 1);
  75265. }
  75266. }
  75267. insertChildrenAfter(child, newChildren) {
  75268. const siblingIndex = this.childNodes.indexOf(child);
  75269. if (siblingIndex !== -1) {
  75270. this.childNodes.splice(siblingIndex + 1, 0, ...newChildren);
  75271. newChildren.forEach(c => {
  75272. if (c.parent) {
  75273. c.parent.removeChild(c);
  75274. }
  75275. child.parent = this;
  75276. });
  75277. }
  75278. }
  75279. insertBefore(refChild, newChild) {
  75280. const refIndex = this.childNodes.indexOf(refChild);
  75281. if (refIndex === -1) {
  75282. this.addChild(newChild);
  75283. }
  75284. else {
  75285. if (newChild.parent) {
  75286. newChild.parent.removeChild(newChild);
  75287. }
  75288. newChild.parent = this;
  75289. this.childNodes.splice(refIndex, 0, newChild);
  75290. }
  75291. }
  75292. query(predicate) {
  75293. const results = this.queryAll(predicate);
  75294. return results[0] || null;
  75295. }
  75296. queryAll(predicate) {
  75297. const matches = [];
  75298. _queryElementChildren(this, predicate, matches);
  75299. return matches;
  75300. }
  75301. queryAllNodes(predicate) {
  75302. const matches = [];
  75303. _queryNodeChildren(this, predicate, matches);
  75304. return matches;
  75305. }
  75306. get children() {
  75307. return this.childNodes //
  75308. .filter((node) => node instanceof DebugElement__PRE_R3__);
  75309. }
  75310. triggerEventHandler(eventName, eventObj) {
  75311. this.listeners.forEach((listener) => {
  75312. if (listener.name == eventName) {
  75313. listener.callback(eventObj);
  75314. }
  75315. });
  75316. }
  75317. }
  75318. /**
  75319. * @publicApi
  75320. */
  75321. function asNativeElements(debugEls) {
  75322. return debugEls.map((el) => el.nativeElement);
  75323. }
  75324. function _queryElementChildren(element, predicate, matches) {
  75325. element.childNodes.forEach(node => {
  75326. if (node instanceof DebugElement__PRE_R3__) {
  75327. if (predicate(node)) {
  75328. matches.push(node);
  75329. }
  75330. _queryElementChildren(node, predicate, matches);
  75331. }
  75332. });
  75333. }
  75334. function _queryNodeChildren(parentNode, predicate, matches) {
  75335. if (parentNode instanceof DebugElement__PRE_R3__) {
  75336. parentNode.childNodes.forEach(node => {
  75337. if (predicate(node)) {
  75338. matches.push(node);
  75339. }
  75340. if (node instanceof DebugElement__PRE_R3__) {
  75341. _queryNodeChildren(node, predicate, matches);
  75342. }
  75343. });
  75344. }
  75345. }
  75346. class DebugNode__POST_R3__ {
  75347. constructor(nativeNode) {
  75348. this.nativeNode = nativeNode;
  75349. }
  75350. get parent() {
  75351. const parent = this.nativeNode.parentNode;
  75352. return parent ? new DebugElement__POST_R3__(parent) : null;
  75353. }
  75354. get injector() {
  75355. return getInjector(this.nativeNode);
  75356. }
  75357. get componentInstance() {
  75358. const nativeElement = this.nativeNode;
  75359. return nativeElement &&
  75360. (getComponent(nativeElement) || getOwningComponent(nativeElement));
  75361. }
  75362. get context() {
  75363. return getComponent(this.nativeNode) || getContext(this.nativeNode);
  75364. }
  75365. get listeners() {
  75366. return getListeners(this.nativeNode).filter(listener => listener.type === 'dom');
  75367. }
  75368. get references() {
  75369. return getLocalRefs(this.nativeNode);
  75370. }
  75371. get providerTokens() {
  75372. return getInjectionTokens(this.nativeNode);
  75373. }
  75374. }
  75375. class DebugElement__POST_R3__ extends DebugNode__POST_R3__ {
  75376. constructor(nativeNode) {
  75377. ngDevMode && assertDomNode(nativeNode);
  75378. super(nativeNode);
  75379. }
  75380. get nativeElement() {
  75381. return this.nativeNode.nodeType == Node.ELEMENT_NODE ? this.nativeNode : null;
  75382. }
  75383. get name() {
  75384. try {
  75385. const context = loadLContext(this.nativeNode);
  75386. const lView = context.lView;
  75387. const tData = lView[TVIEW].data;
  75388. const tNode = tData[context.nodeIndex];
  75389. return tNode.value;
  75390. }
  75391. catch (e) {
  75392. return this.nativeNode.nodeName;
  75393. }
  75394. }
  75395. /**
  75396. * Gets a map of property names to property values for an element.
  75397. *
  75398. * This map includes:
  75399. * - Regular property bindings (e.g. `[id]="id"`)
  75400. * - Host property bindings (e.g. `host: { '[id]': "id" }`)
  75401. * - Interpolated property bindings (e.g. `id="{{ value }}")
  75402. *
  75403. * It does not include:
  75404. * - input property bindings (e.g. `[myCustomInput]="value"`)
  75405. * - attribute bindings (e.g. `[attr.role]="menu"`)
  75406. */
  75407. get properties() {
  75408. const context = loadLContext(this.nativeNode, false);
  75409. if (context == null) {
  75410. return {};
  75411. }
  75412. const lView = context.lView;
  75413. const tData = lView[TVIEW].data;
  75414. const tNode = tData[context.nodeIndex];
  75415. const properties = {};
  75416. // Collect properties from the DOM.
  75417. copyDomProperties(this.nativeElement, properties);
  75418. // Collect properties from the bindings. This is needed for animation renderer which has
  75419. // synthetic properties which don't get reflected into the DOM.
  75420. collectPropertyBindings(properties, tNode, lView, tData);
  75421. return properties;
  75422. }
  75423. get attributes() {
  75424. const attributes = {};
  75425. const element = this.nativeElement;
  75426. if (!element) {
  75427. return attributes;
  75428. }
  75429. const context = loadLContext(element, false);
  75430. if (context == null) {
  75431. return {};
  75432. }
  75433. const lView = context.lView;
  75434. const tNodeAttrs = lView[TVIEW].data[context.nodeIndex].attrs;
  75435. const lowercaseTNodeAttrs = [];
  75436. // For debug nodes we take the element's attribute directly from the DOM since it allows us
  75437. // to account for ones that weren't set via bindings (e.g. ViewEngine keeps track of the ones
  75438. // that are set through `Renderer2`). The problem is that the browser will lowercase all names,
  75439. // however since we have the attributes already on the TNode, we can preserve the case by going
  75440. // through them once, adding them to the `attributes` map and putting their lower-cased name
  75441. // into an array. Afterwards when we're going through the native DOM attributes, we can check
  75442. // whether we haven't run into an attribute already through the TNode.
  75443. if (tNodeAttrs) {
  75444. let i = 0;
  75445. while (i < tNodeAttrs.length) {
  75446. const attrName = tNodeAttrs[i];
  75447. // Stop as soon as we hit a marker. We only care about the regular attributes. Everything
  75448. // else will be handled below when we read the final attributes off the DOM.
  75449. if (typeof attrName !== 'string')
  75450. break;
  75451. const attrValue = tNodeAttrs[i + 1];
  75452. attributes[attrName] = attrValue;
  75453. lowercaseTNodeAttrs.push(attrName.toLowerCase());
  75454. i += 2;
  75455. }
  75456. }
  75457. const eAttrs = element.attributes;
  75458. for (let i = 0; i < eAttrs.length; i++) {
  75459. const attr = eAttrs[i];
  75460. const lowercaseName = attr.name.toLowerCase();
  75461. // Make sure that we don't assign the same attribute both in its
  75462. // case-sensitive form and the lower-cased one from the browser.
  75463. if (lowercaseTNodeAttrs.indexOf(lowercaseName) === -1) {
  75464. // Save the lowercase name to align the behavior between browsers.
  75465. // IE preserves the case, while all other browser convert it to lower case.
  75466. attributes[lowercaseName] = attr.value;
  75467. }
  75468. }
  75469. return attributes;
  75470. }
  75471. get styles() {
  75472. if (this.nativeElement && this.nativeElement.style) {
  75473. return this.nativeElement.style;
  75474. }
  75475. return {};
  75476. }
  75477. get classes() {
  75478. const result = {};
  75479. const element = this.nativeElement;
  75480. // SVG elements return an `SVGAnimatedString` instead of a plain string for the `className`.
  75481. const className = element.className;
  75482. const classes = className && typeof className !== 'string' ? className.baseVal.split(' ') :
  75483. className.split(' ');
  75484. classes.forEach((value) => result[value] = true);
  75485. return result;
  75486. }
  75487. get childNodes() {
  75488. const childNodes = this.nativeNode.childNodes;
  75489. const children = [];
  75490. for (let i = 0; i < childNodes.length; i++) {
  75491. const element = childNodes[i];
  75492. children.push(getDebugNode__POST_R3__(element));
  75493. }
  75494. return children;
  75495. }
  75496. get children() {
  75497. const nativeElement = this.nativeElement;
  75498. if (!nativeElement)
  75499. return [];
  75500. const childNodes = nativeElement.children;
  75501. const children = [];
  75502. for (let i = 0; i < childNodes.length; i++) {
  75503. const element = childNodes[i];
  75504. children.push(getDebugNode__POST_R3__(element));
  75505. }
  75506. return children;
  75507. }
  75508. query(predicate) {
  75509. const results = this.queryAll(predicate);
  75510. return results[0] || null;
  75511. }
  75512. queryAll(predicate) {
  75513. const matches = [];
  75514. _queryAllR3(this, predicate, matches, true);
  75515. return matches;
  75516. }
  75517. queryAllNodes(predicate) {
  75518. const matches = [];
  75519. _queryAllR3(this, predicate, matches, false);
  75520. return matches;
  75521. }
  75522. triggerEventHandler(eventName, eventObj) {
  75523. const node = this.nativeNode;
  75524. const invokedListeners = [];
  75525. this.listeners.forEach(listener => {
  75526. if (listener.name === eventName) {
  75527. const callback = listener.callback;
  75528. callback.call(node, eventObj);
  75529. invokedListeners.push(callback);
  75530. }
  75531. });
  75532. // We need to check whether `eventListeners` exists, because it's something
  75533. // that Zone.js only adds to `EventTarget` in browser environments.
  75534. if (typeof node.eventListeners === 'function') {
  75535. // Note that in Ivy we wrap event listeners with a call to `event.preventDefault` in some
  75536. // cases. We use '__ngUnwrap__' as a special token that gives us access to the actual event
  75537. // listener.
  75538. node.eventListeners(eventName).forEach((listener) => {
  75539. // In order to ensure that we can detect the special __ngUnwrap__ token described above, we
  75540. // use `toString` on the listener and see if it contains the token. We use this approach to
  75541. // ensure that it still worked with compiled code since it cannot remove or rename string
  75542. // literals. We also considered using a special function name (i.e. if(listener.name ===
  75543. // special)) but that was more cumbersome and we were also concerned the compiled code could
  75544. // strip the name, turning the condition in to ("" === "") and always returning true.
  75545. if (listener.toString().indexOf('__ngUnwrap__') !== -1) {
  75546. const unwrappedListener = listener('__ngUnwrap__');
  75547. return invokedListeners.indexOf(unwrappedListener) === -1 &&
  75548. unwrappedListener.call(node, eventObj);
  75549. }
  75550. });
  75551. }
  75552. }
  75553. }
  75554. function copyDomProperties(element, properties) {
  75555. if (element) {
  75556. // Skip own properties (as those are patched)
  75557. let obj = Object.getPrototypeOf(element);
  75558. const NodePrototype = Node.prototype;
  75559. while (obj !== null && obj !== NodePrototype) {
  75560. const descriptors = Object.getOwnPropertyDescriptors(obj);
  75561. for (let key in descriptors) {
  75562. if (!key.startsWith('__') && !key.startsWith('on')) {
  75563. // don't include properties starting with `__` and `on`.
  75564. // `__` are patched values which should not be included.
  75565. // `on` are listeners which also should not be included.
  75566. const value = element[key];
  75567. if (isPrimitiveValue(value)) {
  75568. properties[key] = value;
  75569. }
  75570. }
  75571. }
  75572. obj = Object.getPrototypeOf(obj);
  75573. }
  75574. }
  75575. }
  75576. function isPrimitiveValue(value) {
  75577. return typeof value === 'string' || typeof value === 'boolean' || typeof value === 'number' ||
  75578. value === null;
  75579. }
  75580. function _queryAllR3(parentElement, predicate, matches, elementsOnly) {
  75581. const context = loadLContext(parentElement.nativeNode, false);
  75582. if (context !== null) {
  75583. const parentTNode = context.lView[TVIEW].data[context.nodeIndex];
  75584. _queryNodeChildrenR3(parentTNode, context.lView, predicate, matches, elementsOnly, parentElement.nativeNode);
  75585. }
  75586. else {
  75587. // If the context is null, then `parentElement` was either created with Renderer2 or native DOM
  75588. // APIs.
  75589. _queryNativeNodeDescendants(parentElement.nativeNode, predicate, matches, elementsOnly);
  75590. }
  75591. }
  75592. /**
  75593. * Recursively match the current TNode against the predicate, and goes on with the next ones.
  75594. *
  75595. * @param tNode the current TNode
  75596. * @param lView the LView of this TNode
  75597. * @param predicate the predicate to match
  75598. * @param matches the list of positive matches
  75599. * @param elementsOnly whether only elements should be searched
  75600. * @param rootNativeNode the root native node on which predicate should not be matched
  75601. */
  75602. function _queryNodeChildrenR3(tNode, lView, predicate, matches, elementsOnly, rootNativeNode) {
  75603. ngDevMode && assertTNodeForLView(tNode, lView);
  75604. const nativeNode = getNativeByTNodeOrNull(tNode, lView);
  75605. // For each type of TNode, specific logic is executed.
  75606. if (tNode.type & (3 /* AnyRNode */ | 8 /* ElementContainer */)) {
  75607. // Case 1: the TNode is an element
  75608. // The native node has to be checked.
  75609. _addQueryMatchR3(nativeNode, predicate, matches, elementsOnly, rootNativeNode);
  75610. if (isComponentHost(tNode)) {
  75611. // If the element is the host of a component, then all nodes in its view have to be processed.
  75612. // Note: the component's content (tNode.child) will be processed from the insertion points.
  75613. const componentView = getComponentLViewByIndex(tNode.index, lView);
  75614. if (componentView && componentView[TVIEW].firstChild) {
  75615. _queryNodeChildrenR3(componentView[TVIEW].firstChild, componentView, predicate, matches, elementsOnly, rootNativeNode);
  75616. }
  75617. }
  75618. else {
  75619. if (tNode.child) {
  75620. // Otherwise, its children have to be processed.
  75621. _queryNodeChildrenR3(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);
  75622. }
  75623. // We also have to query the DOM directly in order to catch elements inserted through
  75624. // Renderer2. Note that this is __not__ optimal, because we're walking similar trees multiple
  75625. // times. ViewEngine could do it more efficiently, because all the insertions go through
  75626. // Renderer2, however that's not the case in Ivy. This approach is being used because:
  75627. // 1. Matching the ViewEngine behavior would mean potentially introducing a depedency
  75628. // from `Renderer2` to Ivy which could bring Ivy code into ViewEngine.
  75629. // 2. We would have to make `Renderer3` "know" about debug nodes.
  75630. // 3. It allows us to capture nodes that were inserted directly via the DOM.
  75631. nativeNode && _queryNativeNodeDescendants(nativeNode, predicate, matches, elementsOnly);
  75632. }
  75633. // In all cases, if a dynamic container exists for this node, each view inside it has to be
  75634. // processed.
  75635. const nodeOrContainer = lView[tNode.index];
  75636. if (isLContainer(nodeOrContainer)) {
  75637. _queryNodeChildrenInContainerR3(nodeOrContainer, predicate, matches, elementsOnly, rootNativeNode);
  75638. }
  75639. }
  75640. else if (tNode.type & 4 /* Container */) {
  75641. // Case 2: the TNode is a container
  75642. // The native node has to be checked.
  75643. const lContainer = lView[tNode.index];
  75644. _addQueryMatchR3(lContainer[NATIVE], predicate, matches, elementsOnly, rootNativeNode);
  75645. // Each view inside the container has to be processed.
  75646. _queryNodeChildrenInContainerR3(lContainer, predicate, matches, elementsOnly, rootNativeNode);
  75647. }
  75648. else if (tNode.type & 16 /* Projection */) {
  75649. // Case 3: the TNode is a projection insertion point (i.e. a <ng-content>).
  75650. // The nodes projected at this location all need to be processed.
  75651. const componentView = lView[DECLARATION_COMPONENT_VIEW];
  75652. const componentHost = componentView[T_HOST];
  75653. const head = componentHost.projection[tNode.projection];
  75654. if (Array.isArray(head)) {
  75655. for (let nativeNode of head) {
  75656. _addQueryMatchR3(nativeNode, predicate, matches, elementsOnly, rootNativeNode);
  75657. }
  75658. }
  75659. else if (head) {
  75660. const nextLView = componentView[PARENT];
  75661. const nextTNode = nextLView[TVIEW].data[head.index];
  75662. _queryNodeChildrenR3(nextTNode, nextLView, predicate, matches, elementsOnly, rootNativeNode);
  75663. }
  75664. }
  75665. else if (tNode.child) {
  75666. // Case 4: the TNode is a view.
  75667. _queryNodeChildrenR3(tNode.child, lView, predicate, matches, elementsOnly, rootNativeNode);
  75668. }
  75669. // We don't want to go to the next sibling of the root node.
  75670. if (rootNativeNode !== nativeNode) {
  75671. // To determine the next node to be processed, we need to use the next or the projectionNext
  75672. // link, depending on whether the current node has been projected.
  75673. const nextTNode = (tNode.flags & 4 /* isProjected */) ? tNode.projectionNext : tNode.next;
  75674. if (nextTNode) {
  75675. _queryNodeChildrenR3(nextTNode, lView, predicate, matches, elementsOnly, rootNativeNode);
  75676. }
  75677. }
  75678. }
  75679. /**
  75680. * Process all TNodes in a given container.
  75681. *
  75682. * @param lContainer the container to be processed
  75683. * @param predicate the predicate to match
  75684. * @param matches the list of positive matches
  75685. * @param elementsOnly whether only elements should be searched
  75686. * @param rootNativeNode the root native node on which predicate should not be matched
  75687. */
  75688. function _queryNodeChildrenInContainerR3(lContainer, predicate, matches, elementsOnly, rootNativeNode) {
  75689. for (let i = CONTAINER_HEADER_OFFSET; i < lContainer.length; i++) {
  75690. const childView = lContainer[i];
  75691. const firstChild = childView[TVIEW].firstChild;
  75692. if (firstChild) {
  75693. _queryNodeChildrenR3(firstChild, childView, predicate, matches, elementsOnly, rootNativeNode);
  75694. }
  75695. }
  75696. }
  75697. /**
  75698. * Match the current native node against the predicate.
  75699. *
  75700. * @param nativeNode the current native node
  75701. * @param predicate the predicate to match
  75702. * @param matches the list of positive matches
  75703. * @param elementsOnly whether only elements should be searched
  75704. * @param rootNativeNode the root native node on which predicate should not be matched
  75705. */
  75706. function _addQueryMatchR3(nativeNode, predicate, matches, elementsOnly, rootNativeNode) {
  75707. if (rootNativeNode !== nativeNode) {
  75708. const debugNode = getDebugNode$1(nativeNode);
  75709. if (!debugNode) {
  75710. return;
  75711. }
  75712. // Type of the "predicate and "matches" array are set based on the value of
  75713. // the "elementsOnly" parameter. TypeScript is not able to properly infer these
  75714. // types with generics, so we manually cast the parameters accordingly.
  75715. if (elementsOnly && debugNode instanceof DebugElement__POST_R3__ && predicate(debugNode) &&
  75716. matches.indexOf(debugNode) === -1) {
  75717. matches.push(debugNode);
  75718. }
  75719. else if (!elementsOnly && predicate(debugNode) &&
  75720. matches.indexOf(debugNode) === -1) {
  75721. matches.push(debugNode);
  75722. }
  75723. }
  75724. }
  75725. /**
  75726. * Match all the descendants of a DOM node against a predicate.
  75727. *
  75728. * @param nativeNode the current native node
  75729. * @param predicate the predicate to match
  75730. * @param matches the list where matches are stored
  75731. * @param elementsOnly whether only elements should be searched
  75732. */
  75733. function _queryNativeNodeDescendants(parentNode, predicate, matches, elementsOnly) {
  75734. const nodes = parentNode.childNodes;
  75735. const length = nodes.length;
  75736. for (let i = 0; i < length; i++) {
  75737. const node = nodes[i];
  75738. const debugNode = getDebugNode$1(node);
  75739. if (debugNode) {
  75740. if (elementsOnly && debugNode instanceof DebugElement__POST_R3__ && predicate(debugNode) &&
  75741. matches.indexOf(debugNode) === -1) {
  75742. matches.push(debugNode);
  75743. }
  75744. else if (!elementsOnly && predicate(debugNode) &&
  75745. matches.indexOf(debugNode) === -1) {
  75746. matches.push(debugNode);
  75747. }
  75748. _queryNativeNodeDescendants(node, predicate, matches, elementsOnly);
  75749. }
  75750. }
  75751. }
  75752. /**
  75753. * Iterates through the property bindings for a given node and generates
  75754. * a map of property names to values. This map only contains property bindings
  75755. * defined in templates, not in host bindings.
  75756. */
  75757. function collectPropertyBindings(properties, tNode, lView, tData) {
  75758. let bindingIndexes = tNode.propertyBindings;
  75759. if (bindingIndexes !== null) {
  75760. for (let i = 0; i < bindingIndexes.length; i++) {
  75761. const bindingIndex = bindingIndexes[i];
  75762. const propMetadata = tData[bindingIndex];
  75763. const metadataParts = propMetadata.split(INTERPOLATION_DELIMITER);
  75764. const propertyName = metadataParts[0];
  75765. if (metadataParts.length > 1) {
  75766. let value = metadataParts[1];
  75767. for (let j = 1; j < metadataParts.length - 1; j++) {
  75768. value += renderStringify(lView[bindingIndex + j - 1]) + metadataParts[j + 1];
  75769. }
  75770. properties[propertyName] = value;
  75771. }
  75772. else {
  75773. properties[propertyName] = lView[bindingIndex];
  75774. }
  75775. }
  75776. }
  75777. }
  75778. // Need to keep the nodes in a global Map so that multiple angular apps are supported.
  75779. const _nativeNodeToDebugNode = new Map();
  75780. function getDebugNode__PRE_R3__(nativeNode) {
  75781. return _nativeNodeToDebugNode.get(nativeNode) || null;
  75782. }
  75783. const NG_DEBUG_PROPERTY = '__ng_debug__';
  75784. function getDebugNode__POST_R3__(nativeNode) {
  75785. if (nativeNode instanceof Node) {
  75786. if (!(nativeNode.hasOwnProperty(NG_DEBUG_PROPERTY))) {
  75787. nativeNode[NG_DEBUG_PROPERTY] = nativeNode.nodeType == Node.ELEMENT_NODE ?
  75788. new DebugElement__POST_R3__(nativeNode) :
  75789. new DebugNode__POST_R3__(nativeNode);
  75790. }
  75791. return nativeNode[NG_DEBUG_PROPERTY];
  75792. }
  75793. return null;
  75794. }
  75795. /**
  75796. * @publicApi
  75797. */
  75798. const getDebugNode$1 = getDebugNode__POST_R3__;
  75799. function getDebugNodeR2__PRE_R3__(nativeNode) {
  75800. return getDebugNode__PRE_R3__(nativeNode);
  75801. }
  75802. function getDebugNodeR2__POST_R3__(_nativeNode) {
  75803. return null;
  75804. }
  75805. const getDebugNodeR2 = getDebugNodeR2__POST_R3__;
  75806. function getAllDebugNodes() {
  75807. return Array.from(_nativeNodeToDebugNode.values());
  75808. }
  75809. function indexDebugNode(node) {
  75810. _nativeNodeToDebugNode.set(node.nativeNode, node);
  75811. }
  75812. function removeDebugNodeFromIndex(node) {
  75813. _nativeNodeToDebugNode.delete(node.nativeNode);
  75814. }
  75815. /**
  75816. * @publicApi
  75817. */
  75818. const DebugNode = DebugNode__POST_R3__;
  75819. /**
  75820. * @publicApi
  75821. */
  75822. const DebugElement = DebugElement__POST_R3__;
  75823. /**
  75824. * @license
  75825. * Copyright Google LLC All Rights Reserved.
  75826. *
  75827. * Use of this source code is governed by an MIT-style license that can be
  75828. * found in the LICENSE file at https://angular.io/license
  75829. */
  75830. /**
  75831. * @license
  75832. * Copyright Google LLC All Rights Reserved.
  75833. *
  75834. * Use of this source code is governed by an MIT-style license that can be
  75835. * found in the LICENSE file at https://angular.io/license
  75836. */
  75837. const _CORE_PLATFORM_PROVIDERS = [
  75838. // Set a default platform name for platforms that don't set it explicitly.
  75839. { provide: PLATFORM_ID, useValue: 'unknown' },
  75840. { provide: PlatformRef, deps: [Injector] },
  75841. { provide: TestabilityRegistry, deps: [] },
  75842. { provide: Console, deps: [] },
  75843. ];
  75844. /**
  75845. * This platform has to be included in any other platform
  75846. *
  75847. * @publicApi
  75848. */
  75849. const platformCore = createPlatformFactory(null, 'core', _CORE_PLATFORM_PROVIDERS);
  75850. /**
  75851. * @license
  75852. * Copyright Google LLC All Rights Reserved.
  75853. *
  75854. * Use of this source code is governed by an MIT-style license that can be
  75855. * found in the LICENSE file at https://angular.io/license
  75856. */
  75857. function _iterableDiffersFactory() {
  75858. return defaultIterableDiffers;
  75859. }
  75860. function _keyValueDiffersFactory() {
  75861. return defaultKeyValueDiffers;
  75862. }
  75863. function _localeFactory(locale) {
  75864. locale = locale || getGlobalLocale();
  75865. if (ivyEnabled) {
  75866. setLocaleId(locale);
  75867. }
  75868. return locale;
  75869. }
  75870. /**
  75871. * Work out the locale from the potential global properties.
  75872. *
  75873. * * Closure Compiler: use `goog.LOCALE`.
  75874. * * Ivy enabled: use `$localize.locale`
  75875. */
  75876. function getGlobalLocale() {
  75877. if (typeof ngI18nClosureMode !== 'undefined' && ngI18nClosureMode &&
  75878. typeof goog !== 'undefined' && goog.LOCALE !== 'en') {
  75879. // * The default `goog.LOCALE` value is `en`, while Angular used `en-US`.
  75880. // * In order to preserve backwards compatibility, we use Angular default value over
  75881. // Closure Compiler's one.
  75882. return goog.LOCALE;
  75883. }
  75884. else {
  75885. // KEEP `typeof $localize !== 'undefined' && $localize.locale` IN SYNC WITH THE LOCALIZE
  75886. // COMPILE-TIME INLINER.
  75887. //
  75888. // * During compile time inlining of translations the expression will be replaced
  75889. // with a string literal that is the current locale. Other forms of this expression are not
  75890. // guaranteed to be replaced.
  75891. //
  75892. // * During runtime translation evaluation, the developer is required to set `$localize.locale`
  75893. // if required, or just to provide their own `LOCALE_ID` provider.
  75894. return (ivyEnabled && typeof $localize !== 'undefined' && $localize.locale) ||
  75895. DEFAULT_LOCALE_ID;
  75896. }
  75897. }
  75898. const ɵ0$f = USD_CURRENCY_CODE;
  75899. /**
  75900. * A built-in [dependency injection token](guide/glossary#di-token)
  75901. * that is used to configure the root injector for bootstrapping.
  75902. */
  75903. const APPLICATION_MODULE_PROVIDERS = [
  75904. {
  75905. provide: ApplicationRef,
  75906. useClass: ApplicationRef,
  75907. deps: [NgZone, Console, Injector, ErrorHandler, ComponentFactoryResolver, ApplicationInitStatus]
  75908. },
  75909. { provide: SCHEDULER, deps: [NgZone], useFactory: zoneSchedulerFactory },
  75910. {
  75911. provide: ApplicationInitStatus,
  75912. useClass: ApplicationInitStatus,
  75913. deps: [[new Optional(), APP_INITIALIZER]]
  75914. },
  75915. { provide: Compiler, useClass: Compiler, deps: [] },
  75916. APP_ID_RANDOM_PROVIDER,
  75917. { provide: IterableDiffers, useFactory: _iterableDiffersFactory, deps: [] },
  75918. { provide: KeyValueDiffers, useFactory: _keyValueDiffersFactory, deps: [] },
  75919. {
  75920. provide: LOCALE_ID$1,
  75921. useFactory: _localeFactory,
  75922. deps: [[new Inject(LOCALE_ID$1), new Optional(), new SkipSelf()]]
  75923. },
  75924. { provide: DEFAULT_CURRENCY_CODE, useValue: ɵ0$f },
  75925. ];
  75926. /**
  75927. * Schedule work at next available slot.
  75928. *
  75929. * In Ivy this is just `requestAnimationFrame`. For compatibility reasons when bootstrapped
  75930. * using `platformRef.bootstrap` we need to use `NgZone.onStable` as the scheduling mechanism.
  75931. * This overrides the scheduling mechanism in Ivy to `NgZone.onStable`.
  75932. *
  75933. * @param ngZone NgZone to use for scheduling.
  75934. */
  75935. function zoneSchedulerFactory(ngZone) {
  75936. let queue = [];
  75937. ngZone.onStable.subscribe(() => {
  75938. while (queue.length) {
  75939. queue.pop()();
  75940. }
  75941. });
  75942. return function (fn) {
  75943. queue.push(fn);
  75944. };
  75945. }
  75946. /**
  75947. * Configures the root injector for an app with
  75948. * providers of `@angular/core` dependencies that `ApplicationRef` needs
  75949. * to bootstrap components.
  75950. *
  75951. * Re-exported by `BrowserModule`, which is included automatically in the root
  75952. * `AppModule` when you create a new app with the CLI `new` command.
  75953. *
  75954. * @publicApi
  75955. */
  75956. class ApplicationModule {
  75957. // Inject ApplicationRef to make it eager...
  75958. constructor(appRef) { }
  75959. }
  75960. ApplicationModule.ɵmod = ɵɵdefineNgModule({ type: ApplicationModule });
  75961. ApplicationModule.ɵinj = ɵɵdefineInjector({ factory: function ApplicationModule_Factory(t) { return new (t || ApplicationModule)(ɵɵinject(ApplicationRef)); }, providers: APPLICATION_MODULE_PROVIDERS });
  75962. ApplicationModule.ctorParameters = () => [
  75963. { type: ApplicationRef }
  75964. ];
  75965. /*@__PURE__*/ (function () { setClassMetadata(ApplicationModule, [{
  75966. type: NgModule,
  75967. args: [{ providers: APPLICATION_MODULE_PROVIDERS }]
  75968. }], function () { return [{ type: ApplicationRef }]; }, null); })();
  75969. /**
  75970. * @license
  75971. * Copyright Google LLC All Rights Reserved.
  75972. *
  75973. * Use of this source code is governed by an MIT-style license that can be
  75974. * found in the LICENSE file at https://angular.io/license
  75975. */
  75976. function anchorDef(flags, matchedQueriesDsl, ngContentIndex, childCount, handleEvent, templateFactory) {
  75977. flags |= 1 /* TypeElement */;
  75978. const { matchedQueries, references, matchedQueryIds } = splitMatchedQueriesDsl(matchedQueriesDsl);
  75979. const template = templateFactory ? resolveDefinition(templateFactory) : null;
  75980. return {
  75981. // will bet set by the view definition
  75982. nodeIndex: -1,
  75983. parent: null,
  75984. renderParent: null,
  75985. bindingIndex: -1,
  75986. outputIndex: -1,
  75987. // regular values
  75988. flags,
  75989. checkIndex: -1,
  75990. childFlags: 0,
  75991. directChildFlags: 0,
  75992. childMatchedQueries: 0,
  75993. matchedQueries,
  75994. matchedQueryIds,
  75995. references,
  75996. ngContentIndex,
  75997. childCount,
  75998. bindings: [],
  75999. bindingFlags: 0,
  76000. outputs: [],
  76001. element: {
  76002. ns: null,
  76003. name: null,
  76004. attrs: null,
  76005. template,
  76006. componentProvider: null,
  76007. componentView: null,
  76008. componentRendererType: null,
  76009. publicProviders: null,
  76010. allProviders: null,
  76011. handleEvent: handleEvent || NOOP
  76012. },
  76013. provider: null,
  76014. text: null,
  76015. query: null,
  76016. ngContent: null
  76017. };
  76018. }
  76019. function elementDef(checkIndex, flags, matchedQueriesDsl, ngContentIndex, childCount, namespaceAndName, fixedAttrs = [], bindings, outputs, handleEvent, componentView, componentRendererType) {
  76020. if (!handleEvent) {
  76021. handleEvent = NOOP;
  76022. }
  76023. const { matchedQueries, references, matchedQueryIds } = splitMatchedQueriesDsl(matchedQueriesDsl);
  76024. let ns = null;
  76025. let name = null;
  76026. if (namespaceAndName) {
  76027. [ns, name] = splitNamespace(namespaceAndName);
  76028. }
  76029. bindings = bindings || [];
  76030. const bindingDefs = [];
  76031. for (let i = 0; i < bindings.length; i++) {
  76032. const [bindingFlags, namespaceAndName, suffixOrSecurityContext] = bindings[i];
  76033. const [ns, name] = splitNamespace(namespaceAndName);
  76034. let securityContext = undefined;
  76035. let suffix = undefined;
  76036. switch (bindingFlags & 15 /* Types */) {
  76037. case 4 /* TypeElementStyle */:
  76038. suffix = suffixOrSecurityContext;
  76039. break;
  76040. case 1 /* TypeElementAttribute */:
  76041. case 8 /* TypeProperty */:
  76042. securityContext = suffixOrSecurityContext;
  76043. break;
  76044. }
  76045. bindingDefs[i] =
  76046. { flags: bindingFlags, ns, name, nonMinifiedName: name, securityContext, suffix };
  76047. }
  76048. outputs = outputs || [];
  76049. const outputDefs = [];
  76050. for (let i = 0; i < outputs.length; i++) {
  76051. const [target, eventName] = outputs[i];
  76052. outputDefs[i] =
  76053. { type: 0 /* ElementOutput */, target: target, eventName, propName: null };
  76054. }
  76055. fixedAttrs = fixedAttrs || [];
  76056. const attrs = fixedAttrs.map(([namespaceAndName, value]) => {
  76057. const [ns, name] = splitNamespace(namespaceAndName);
  76058. return [ns, name, value];
  76059. });
  76060. componentRendererType = resolveRendererType2(componentRendererType);
  76061. if (componentView) {
  76062. flags |= 33554432 /* ComponentView */;
  76063. }
  76064. flags |= 1 /* TypeElement */;
  76065. return {
  76066. // will bet set by the view definition
  76067. nodeIndex: -1,
  76068. parent: null,
  76069. renderParent: null,
  76070. bindingIndex: -1,
  76071. outputIndex: -1,
  76072. // regular values
  76073. checkIndex,
  76074. flags,
  76075. childFlags: 0,
  76076. directChildFlags: 0,
  76077. childMatchedQueries: 0,
  76078. matchedQueries,
  76079. matchedQueryIds,
  76080. references,
  76081. ngContentIndex,
  76082. childCount,
  76083. bindings: bindingDefs,
  76084. bindingFlags: calcBindingFlags(bindingDefs),
  76085. outputs: outputDefs,
  76086. element: {
  76087. ns,
  76088. name,
  76089. attrs,
  76090. template: null,
  76091. // will bet set by the view definition
  76092. componentProvider: null,
  76093. componentView: componentView || null,
  76094. componentRendererType: componentRendererType,
  76095. publicProviders: null,
  76096. allProviders: null,
  76097. handleEvent: handleEvent || NOOP,
  76098. },
  76099. provider: null,
  76100. text: null,
  76101. query: null,
  76102. ngContent: null
  76103. };
  76104. }
  76105. function createElement(view, renderHost, def) {
  76106. const elDef = def.element;
  76107. const rootSelectorOrNode = view.root.selectorOrNode;
  76108. const renderer = view.renderer;
  76109. let el;
  76110. if (view.parent || !rootSelectorOrNode) {
  76111. if (elDef.name) {
  76112. el = renderer.createElement(elDef.name, elDef.ns);
  76113. }
  76114. else {
  76115. el = renderer.createComment('');
  76116. }
  76117. const parentEl = getParentRenderElement(view, renderHost, def);
  76118. if (parentEl) {
  76119. renderer.appendChild(parentEl, el);
  76120. }
  76121. }
  76122. else {
  76123. // when using native Shadow DOM, do not clear the root element contents to allow slot projection
  76124. const preserveContent = (!!elDef.componentRendererType &&
  76125. elDef.componentRendererType.encapsulation === ViewEncapsulation.ShadowDom);
  76126. el = renderer.selectRootElement(rootSelectorOrNode, preserveContent);
  76127. }
  76128. if (elDef.attrs) {
  76129. for (let i = 0; i < elDef.attrs.length; i++) {
  76130. const [ns, name, value] = elDef.attrs[i];
  76131. renderer.setAttribute(el, name, value, ns);
  76132. }
  76133. }
  76134. return el;
  76135. }
  76136. function listenToElementOutputs(view, compView, def, el) {
  76137. for (let i = 0; i < def.outputs.length; i++) {
  76138. const output = def.outputs[i];
  76139. const handleEventClosure = renderEventHandlerClosure(view, def.nodeIndex, elementEventFullName(output.target, output.eventName));
  76140. let listenTarget = output.target;
  76141. let listenerView = view;
  76142. if (output.target === 'component') {
  76143. listenTarget = null;
  76144. listenerView = compView;
  76145. }
  76146. const disposable = listenerView.renderer.listen(listenTarget || el, output.eventName, handleEventClosure);
  76147. view.disposables[def.outputIndex + i] = disposable;
  76148. }
  76149. }
  76150. function renderEventHandlerClosure(view, index, eventName) {
  76151. return (event) => dispatchEvent(view, index, eventName, event);
  76152. }
  76153. function checkAndUpdateElementInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  76154. const bindLen = def.bindings.length;
  76155. let changed = false;
  76156. if (bindLen > 0 && checkAndUpdateElementValue(view, def, 0, v0))
  76157. changed = true;
  76158. if (bindLen > 1 && checkAndUpdateElementValue(view, def, 1, v1))
  76159. changed = true;
  76160. if (bindLen > 2 && checkAndUpdateElementValue(view, def, 2, v2))
  76161. changed = true;
  76162. if (bindLen > 3 && checkAndUpdateElementValue(view, def, 3, v3))
  76163. changed = true;
  76164. if (bindLen > 4 && checkAndUpdateElementValue(view, def, 4, v4))
  76165. changed = true;
  76166. if (bindLen > 5 && checkAndUpdateElementValue(view, def, 5, v5))
  76167. changed = true;
  76168. if (bindLen > 6 && checkAndUpdateElementValue(view, def, 6, v6))
  76169. changed = true;
  76170. if (bindLen > 7 && checkAndUpdateElementValue(view, def, 7, v7))
  76171. changed = true;
  76172. if (bindLen > 8 && checkAndUpdateElementValue(view, def, 8, v8))
  76173. changed = true;
  76174. if (bindLen > 9 && checkAndUpdateElementValue(view, def, 9, v9))
  76175. changed = true;
  76176. return changed;
  76177. }
  76178. function checkAndUpdateElementDynamic(view, def, values) {
  76179. let changed = false;
  76180. for (let i = 0; i < values.length; i++) {
  76181. if (checkAndUpdateElementValue(view, def, i, values[i]))
  76182. changed = true;
  76183. }
  76184. return changed;
  76185. }
  76186. function checkAndUpdateElementValue(view, def, bindingIdx, value) {
  76187. if (!checkAndUpdateBinding(view, def, bindingIdx, value)) {
  76188. return false;
  76189. }
  76190. const binding = def.bindings[bindingIdx];
  76191. const elData = asElementData(view, def.nodeIndex);
  76192. const renderNode = elData.renderElement;
  76193. const name = binding.name;
  76194. switch (binding.flags & 15 /* Types */) {
  76195. case 1 /* TypeElementAttribute */:
  76196. setElementAttribute$1(view, binding, renderNode, binding.ns, name, value);
  76197. break;
  76198. case 2 /* TypeElementClass */:
  76199. setElementClass(view, renderNode, name, value);
  76200. break;
  76201. case 4 /* TypeElementStyle */:
  76202. setElementStyle(view, binding, renderNode, name, value);
  76203. break;
  76204. case 8 /* TypeProperty */:
  76205. const bindView = (def.flags & 33554432 /* ComponentView */ &&
  76206. binding.flags & 32 /* SyntheticHostProperty */) ?
  76207. elData.componentView :
  76208. view;
  76209. setElementProperty(bindView, binding, renderNode, name, value);
  76210. break;
  76211. }
  76212. return true;
  76213. }
  76214. function setElementAttribute$1(view, binding, renderNode, ns, name, value) {
  76215. const securityContext = binding.securityContext;
  76216. let renderValue = securityContext ? view.root.sanitizer.sanitize(securityContext, value) : value;
  76217. renderValue = renderValue != null ? renderValue.toString() : null;
  76218. const renderer = view.renderer;
  76219. if (value != null) {
  76220. renderer.setAttribute(renderNode, name, renderValue, ns);
  76221. }
  76222. else {
  76223. renderer.removeAttribute(renderNode, name, ns);
  76224. }
  76225. }
  76226. function setElementClass(view, renderNode, name, value) {
  76227. const renderer = view.renderer;
  76228. if (value) {
  76229. renderer.addClass(renderNode, name);
  76230. }
  76231. else {
  76232. renderer.removeClass(renderNode, name);
  76233. }
  76234. }
  76235. function setElementStyle(view, binding, renderNode, name, value) {
  76236. let renderValue = view.root.sanitizer.sanitize(SecurityContext.STYLE, value);
  76237. if (renderValue != null) {
  76238. renderValue = renderValue.toString();
  76239. const unit = binding.suffix;
  76240. if (unit != null) {
  76241. renderValue = renderValue + unit;
  76242. }
  76243. }
  76244. else {
  76245. renderValue = null;
  76246. }
  76247. const renderer = view.renderer;
  76248. if (renderValue != null) {
  76249. renderer.setStyle(renderNode, name, renderValue);
  76250. }
  76251. else {
  76252. renderer.removeStyle(renderNode, name);
  76253. }
  76254. }
  76255. function setElementProperty(view, binding, renderNode, name, value) {
  76256. const securityContext = binding.securityContext;
  76257. let renderValue = securityContext ? view.root.sanitizer.sanitize(securityContext, value) : value;
  76258. view.renderer.setProperty(renderNode, name, renderValue);
  76259. }
  76260. /**
  76261. * @license
  76262. * Copyright Google LLC All Rights Reserved.
  76263. *
  76264. * Use of this source code is governed by an MIT-style license that can be
  76265. * found in the LICENSE file at https://angular.io/license
  76266. */
  76267. function queryDef(flags, id, bindings) {
  76268. let bindingDefs = [];
  76269. for (let propName in bindings) {
  76270. const bindingType = bindings[propName];
  76271. bindingDefs.push({ propName, bindingType });
  76272. }
  76273. return {
  76274. // will bet set by the view definition
  76275. nodeIndex: -1,
  76276. parent: null,
  76277. renderParent: null,
  76278. bindingIndex: -1,
  76279. outputIndex: -1,
  76280. // regular values
  76281. // TODO(vicb): check
  76282. checkIndex: -1,
  76283. flags,
  76284. childFlags: 0,
  76285. directChildFlags: 0,
  76286. childMatchedQueries: 0,
  76287. ngContentIndex: -1,
  76288. matchedQueries: {},
  76289. matchedQueryIds: 0,
  76290. references: {},
  76291. childCount: 0,
  76292. bindings: [],
  76293. bindingFlags: 0,
  76294. outputs: [],
  76295. element: null,
  76296. provider: null,
  76297. text: null,
  76298. query: { id, filterId: filterQueryId(id), bindings: bindingDefs },
  76299. ngContent: null
  76300. };
  76301. }
  76302. function createQuery() {
  76303. return new QueryList();
  76304. }
  76305. function dirtyParentQueries(view) {
  76306. const queryIds = view.def.nodeMatchedQueries;
  76307. while (view.parent && isEmbeddedView(view)) {
  76308. let tplDef = view.parentNodeDef;
  76309. view = view.parent;
  76310. // content queries
  76311. const end = tplDef.nodeIndex + tplDef.childCount;
  76312. for (let i = 0; i <= end; i++) {
  76313. const nodeDef = view.def.nodes[i];
  76314. if ((nodeDef.flags & 67108864 /* TypeContentQuery */) &&
  76315. (nodeDef.flags & 536870912 /* DynamicQuery */) &&
  76316. (nodeDef.query.filterId & queryIds) === nodeDef.query.filterId) {
  76317. asQueryList(view, i).setDirty();
  76318. }
  76319. if ((nodeDef.flags & 1 /* TypeElement */ && i + nodeDef.childCount < tplDef.nodeIndex) ||
  76320. !(nodeDef.childFlags & 67108864 /* TypeContentQuery */) ||
  76321. !(nodeDef.childFlags & 536870912 /* DynamicQuery */)) {
  76322. // skip elements that don't contain the template element or no query.
  76323. i += nodeDef.childCount;
  76324. }
  76325. }
  76326. }
  76327. // view queries
  76328. if (view.def.nodeFlags & 134217728 /* TypeViewQuery */) {
  76329. for (let i = 0; i < view.def.nodes.length; i++) {
  76330. const nodeDef = view.def.nodes[i];
  76331. if ((nodeDef.flags & 134217728 /* TypeViewQuery */) && (nodeDef.flags & 536870912 /* DynamicQuery */)) {
  76332. asQueryList(view, i).setDirty();
  76333. }
  76334. // only visit the root nodes
  76335. i += nodeDef.childCount;
  76336. }
  76337. }
  76338. }
  76339. function checkAndUpdateQuery(view, nodeDef) {
  76340. const queryList = asQueryList(view, nodeDef.nodeIndex);
  76341. if (!queryList.dirty) {
  76342. return;
  76343. }
  76344. let directiveInstance;
  76345. let newValues = undefined;
  76346. if (nodeDef.flags & 67108864 /* TypeContentQuery */) {
  76347. const elementDef = nodeDef.parent.parent;
  76348. newValues = calcQueryValues(view, elementDef.nodeIndex, elementDef.nodeIndex + elementDef.childCount, nodeDef.query, []);
  76349. directiveInstance = asProviderData(view, nodeDef.parent.nodeIndex).instance;
  76350. }
  76351. else if (nodeDef.flags & 134217728 /* TypeViewQuery */) {
  76352. newValues = calcQueryValues(view, 0, view.def.nodes.length - 1, nodeDef.query, []);
  76353. directiveInstance = view.component;
  76354. }
  76355. queryList.reset(newValues);
  76356. const bindings = nodeDef.query.bindings;
  76357. let notify = false;
  76358. for (let i = 0; i < bindings.length; i++) {
  76359. const binding = bindings[i];
  76360. let boundValue;
  76361. switch (binding.bindingType) {
  76362. case 0 /* First */:
  76363. boundValue = queryList.first;
  76364. break;
  76365. case 1 /* All */:
  76366. boundValue = queryList;
  76367. notify = true;
  76368. break;
  76369. }
  76370. directiveInstance[binding.propName] = boundValue;
  76371. }
  76372. if (notify) {
  76373. queryList.notifyOnChanges();
  76374. }
  76375. }
  76376. function calcQueryValues(view, startIndex, endIndex, queryDef, values) {
  76377. for (let i = startIndex; i <= endIndex; i++) {
  76378. const nodeDef = view.def.nodes[i];
  76379. const valueType = nodeDef.matchedQueries[queryDef.id];
  76380. if (valueType != null) {
  76381. values.push(getQueryValue(view, nodeDef, valueType));
  76382. }
  76383. if (nodeDef.flags & 1 /* TypeElement */ && nodeDef.element.template &&
  76384. (nodeDef.element.template.nodeMatchedQueries & queryDef.filterId) ===
  76385. queryDef.filterId) {
  76386. const elementData = asElementData(view, i);
  76387. // check embedded views that were attached at the place of their template,
  76388. // but process child nodes first if some match the query (see issue #16568)
  76389. if ((nodeDef.childMatchedQueries & queryDef.filterId) === queryDef.filterId) {
  76390. calcQueryValues(view, i + 1, i + nodeDef.childCount, queryDef, values);
  76391. i += nodeDef.childCount;
  76392. }
  76393. if (nodeDef.flags & 16777216 /* EmbeddedViews */) {
  76394. const embeddedViews = elementData.viewContainer._embeddedViews;
  76395. for (let k = 0; k < embeddedViews.length; k++) {
  76396. const embeddedView = embeddedViews[k];
  76397. const dvc = declaredViewContainer(embeddedView);
  76398. if (dvc && dvc === elementData) {
  76399. calcQueryValues(embeddedView, 0, embeddedView.def.nodes.length - 1, queryDef, values);
  76400. }
  76401. }
  76402. }
  76403. const projectedViews = elementData.template._projectedViews;
  76404. if (projectedViews) {
  76405. for (let k = 0; k < projectedViews.length; k++) {
  76406. const projectedView = projectedViews[k];
  76407. calcQueryValues(projectedView, 0, projectedView.def.nodes.length - 1, queryDef, values);
  76408. }
  76409. }
  76410. }
  76411. if ((nodeDef.childMatchedQueries & queryDef.filterId) !== queryDef.filterId) {
  76412. // if no child matches the query, skip the children.
  76413. i += nodeDef.childCount;
  76414. }
  76415. }
  76416. return values;
  76417. }
  76418. function getQueryValue(view, nodeDef, queryValueType) {
  76419. if (queryValueType != null) {
  76420. // a match
  76421. switch (queryValueType) {
  76422. case 1 /* RenderElement */:
  76423. return asElementData(view, nodeDef.nodeIndex).renderElement;
  76424. case 0 /* ElementRef */:
  76425. return new ElementRef(asElementData(view, nodeDef.nodeIndex).renderElement);
  76426. case 2 /* TemplateRef */:
  76427. return asElementData(view, nodeDef.nodeIndex).template;
  76428. case 3 /* ViewContainerRef */:
  76429. return asElementData(view, nodeDef.nodeIndex).viewContainer;
  76430. case 4 /* Provider */:
  76431. return asProviderData(view, nodeDef.nodeIndex).instance;
  76432. }
  76433. }
  76434. }
  76435. /**
  76436. * @license
  76437. * Copyright Google LLC All Rights Reserved.
  76438. *
  76439. * Use of this source code is governed by an MIT-style license that can be
  76440. * found in the LICENSE file at https://angular.io/license
  76441. */
  76442. function ngContentDef(ngContentIndex, index) {
  76443. return {
  76444. // will bet set by the view definition
  76445. nodeIndex: -1,
  76446. parent: null,
  76447. renderParent: null,
  76448. bindingIndex: -1,
  76449. outputIndex: -1,
  76450. // regular values
  76451. checkIndex: -1,
  76452. flags: 8 /* TypeNgContent */,
  76453. childFlags: 0,
  76454. directChildFlags: 0,
  76455. childMatchedQueries: 0,
  76456. matchedQueries: {},
  76457. matchedQueryIds: 0,
  76458. references: {},
  76459. ngContentIndex,
  76460. childCount: 0,
  76461. bindings: [],
  76462. bindingFlags: 0,
  76463. outputs: [],
  76464. element: null,
  76465. provider: null,
  76466. text: null,
  76467. query: null,
  76468. ngContent: { index }
  76469. };
  76470. }
  76471. function appendNgContent(view, renderHost, def) {
  76472. const parentEl = getParentRenderElement(view, renderHost, def);
  76473. if (!parentEl) {
  76474. // Nothing to do if there is no parent element.
  76475. return;
  76476. }
  76477. const ngContentIndex = def.ngContent.index;
  76478. visitProjectedRenderNodes(view, ngContentIndex, 1 /* AppendChild */, parentEl, null, undefined);
  76479. }
  76480. /**
  76481. * @license
  76482. * Copyright Google LLC All Rights Reserved.
  76483. *
  76484. * Use of this source code is governed by an MIT-style license that can be
  76485. * found in the LICENSE file at https://angular.io/license
  76486. */
  76487. function purePipeDef(checkIndex, argCount) {
  76488. // argCount + 1 to include the pipe as first arg
  76489. return _pureExpressionDef(128 /* TypePurePipe */, checkIndex, newArray(argCount + 1));
  76490. }
  76491. function pureArrayDef(checkIndex, argCount) {
  76492. return _pureExpressionDef(32 /* TypePureArray */, checkIndex, newArray(argCount));
  76493. }
  76494. function pureObjectDef(checkIndex, propToIndex) {
  76495. const keys = Object.keys(propToIndex);
  76496. const nbKeys = keys.length;
  76497. const propertyNames = [];
  76498. for (let i = 0; i < nbKeys; i++) {
  76499. const key = keys[i];
  76500. const index = propToIndex[key];
  76501. propertyNames.push(key);
  76502. }
  76503. return _pureExpressionDef(64 /* TypePureObject */, checkIndex, propertyNames);
  76504. }
  76505. function _pureExpressionDef(flags, checkIndex, propertyNames) {
  76506. const bindings = [];
  76507. for (let i = 0; i < propertyNames.length; i++) {
  76508. const prop = propertyNames[i];
  76509. bindings.push({
  76510. flags: 8 /* TypeProperty */,
  76511. name: prop,
  76512. ns: null,
  76513. nonMinifiedName: prop,
  76514. securityContext: null,
  76515. suffix: null
  76516. });
  76517. }
  76518. return {
  76519. // will bet set by the view definition
  76520. nodeIndex: -1,
  76521. parent: null,
  76522. renderParent: null,
  76523. bindingIndex: -1,
  76524. outputIndex: -1,
  76525. // regular values
  76526. checkIndex,
  76527. flags,
  76528. childFlags: 0,
  76529. directChildFlags: 0,
  76530. childMatchedQueries: 0,
  76531. matchedQueries: {},
  76532. matchedQueryIds: 0,
  76533. references: {},
  76534. ngContentIndex: -1,
  76535. childCount: 0,
  76536. bindings,
  76537. bindingFlags: calcBindingFlags(bindings),
  76538. outputs: [],
  76539. element: null,
  76540. provider: null,
  76541. text: null,
  76542. query: null,
  76543. ngContent: null
  76544. };
  76545. }
  76546. function createPureExpression(view, def) {
  76547. return { value: undefined };
  76548. }
  76549. function checkAndUpdatePureExpressionInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  76550. const bindings = def.bindings;
  76551. let changed = false;
  76552. const bindLen = bindings.length;
  76553. if (bindLen > 0 && checkAndUpdateBinding(view, def, 0, v0))
  76554. changed = true;
  76555. if (bindLen > 1 && checkAndUpdateBinding(view, def, 1, v1))
  76556. changed = true;
  76557. if (bindLen > 2 && checkAndUpdateBinding(view, def, 2, v2))
  76558. changed = true;
  76559. if (bindLen > 3 && checkAndUpdateBinding(view, def, 3, v3))
  76560. changed = true;
  76561. if (bindLen > 4 && checkAndUpdateBinding(view, def, 4, v4))
  76562. changed = true;
  76563. if (bindLen > 5 && checkAndUpdateBinding(view, def, 5, v5))
  76564. changed = true;
  76565. if (bindLen > 6 && checkAndUpdateBinding(view, def, 6, v6))
  76566. changed = true;
  76567. if (bindLen > 7 && checkAndUpdateBinding(view, def, 7, v7))
  76568. changed = true;
  76569. if (bindLen > 8 && checkAndUpdateBinding(view, def, 8, v8))
  76570. changed = true;
  76571. if (bindLen > 9 && checkAndUpdateBinding(view, def, 9, v9))
  76572. changed = true;
  76573. if (changed) {
  76574. const data = asPureExpressionData(view, def.nodeIndex);
  76575. let value;
  76576. switch (def.flags & 201347067 /* Types */) {
  76577. case 32 /* TypePureArray */:
  76578. value = [];
  76579. if (bindLen > 0)
  76580. value.push(v0);
  76581. if (bindLen > 1)
  76582. value.push(v1);
  76583. if (bindLen > 2)
  76584. value.push(v2);
  76585. if (bindLen > 3)
  76586. value.push(v3);
  76587. if (bindLen > 4)
  76588. value.push(v4);
  76589. if (bindLen > 5)
  76590. value.push(v5);
  76591. if (bindLen > 6)
  76592. value.push(v6);
  76593. if (bindLen > 7)
  76594. value.push(v7);
  76595. if (bindLen > 8)
  76596. value.push(v8);
  76597. if (bindLen > 9)
  76598. value.push(v9);
  76599. break;
  76600. case 64 /* TypePureObject */:
  76601. value = {};
  76602. if (bindLen > 0)
  76603. value[bindings[0].name] = v0;
  76604. if (bindLen > 1)
  76605. value[bindings[1].name] = v1;
  76606. if (bindLen > 2)
  76607. value[bindings[2].name] = v2;
  76608. if (bindLen > 3)
  76609. value[bindings[3].name] = v3;
  76610. if (bindLen > 4)
  76611. value[bindings[4].name] = v4;
  76612. if (bindLen > 5)
  76613. value[bindings[5].name] = v5;
  76614. if (bindLen > 6)
  76615. value[bindings[6].name] = v6;
  76616. if (bindLen > 7)
  76617. value[bindings[7].name] = v7;
  76618. if (bindLen > 8)
  76619. value[bindings[8].name] = v8;
  76620. if (bindLen > 9)
  76621. value[bindings[9].name] = v9;
  76622. break;
  76623. case 128 /* TypePurePipe */:
  76624. const pipe = v0;
  76625. switch (bindLen) {
  76626. case 1:
  76627. value = pipe.transform(v0);
  76628. break;
  76629. case 2:
  76630. value = pipe.transform(v1);
  76631. break;
  76632. case 3:
  76633. value = pipe.transform(v1, v2);
  76634. break;
  76635. case 4:
  76636. value = pipe.transform(v1, v2, v3);
  76637. break;
  76638. case 5:
  76639. value = pipe.transform(v1, v2, v3, v4);
  76640. break;
  76641. case 6:
  76642. value = pipe.transform(v1, v2, v3, v4, v5);
  76643. break;
  76644. case 7:
  76645. value = pipe.transform(v1, v2, v3, v4, v5, v6);
  76646. break;
  76647. case 8:
  76648. value = pipe.transform(v1, v2, v3, v4, v5, v6, v7);
  76649. break;
  76650. case 9:
  76651. value = pipe.transform(v1, v2, v3, v4, v5, v6, v7, v8);
  76652. break;
  76653. case 10:
  76654. value = pipe.transform(v1, v2, v3, v4, v5, v6, v7, v8, v9);
  76655. break;
  76656. }
  76657. break;
  76658. }
  76659. data.value = value;
  76660. }
  76661. return changed;
  76662. }
  76663. function checkAndUpdatePureExpressionDynamic(view, def, values) {
  76664. const bindings = def.bindings;
  76665. let changed = false;
  76666. for (let i = 0; i < values.length; i++) {
  76667. // Note: We need to loop over all values, so that
  76668. // the old values are updates as well!
  76669. if (checkAndUpdateBinding(view, def, i, values[i])) {
  76670. changed = true;
  76671. }
  76672. }
  76673. if (changed) {
  76674. const data = asPureExpressionData(view, def.nodeIndex);
  76675. let value;
  76676. switch (def.flags & 201347067 /* Types */) {
  76677. case 32 /* TypePureArray */:
  76678. value = values;
  76679. break;
  76680. case 64 /* TypePureObject */:
  76681. value = {};
  76682. for (let i = 0; i < values.length; i++) {
  76683. value[bindings[i].name] = values[i];
  76684. }
  76685. break;
  76686. case 128 /* TypePurePipe */:
  76687. const pipe = values[0];
  76688. const params = values.slice(1);
  76689. value = pipe.transform(...params);
  76690. break;
  76691. }
  76692. data.value = value;
  76693. }
  76694. return changed;
  76695. }
  76696. /**
  76697. * @license
  76698. * Copyright Google LLC All Rights Reserved.
  76699. *
  76700. * Use of this source code is governed by an MIT-style license that can be
  76701. * found in the LICENSE file at https://angular.io/license
  76702. */
  76703. function textDef(checkIndex, ngContentIndex, staticText) {
  76704. const bindings = [];
  76705. for (let i = 1; i < staticText.length; i++) {
  76706. bindings[i - 1] = {
  76707. flags: 8 /* TypeProperty */,
  76708. name: null,
  76709. ns: null,
  76710. nonMinifiedName: null,
  76711. securityContext: null,
  76712. suffix: staticText[i],
  76713. };
  76714. }
  76715. return {
  76716. // will bet set by the view definition
  76717. nodeIndex: -1,
  76718. parent: null,
  76719. renderParent: null,
  76720. bindingIndex: -1,
  76721. outputIndex: -1,
  76722. // regular values
  76723. checkIndex,
  76724. flags: 2 /* TypeText */,
  76725. childFlags: 0,
  76726. directChildFlags: 0,
  76727. childMatchedQueries: 0,
  76728. matchedQueries: {},
  76729. matchedQueryIds: 0,
  76730. references: {},
  76731. ngContentIndex,
  76732. childCount: 0,
  76733. bindings,
  76734. bindingFlags: 8 /* TypeProperty */,
  76735. outputs: [],
  76736. element: null,
  76737. provider: null,
  76738. text: { prefix: staticText[0] },
  76739. query: null,
  76740. ngContent: null,
  76741. };
  76742. }
  76743. function createText(view, renderHost, def) {
  76744. let renderNode;
  76745. const renderer = view.renderer;
  76746. renderNode = renderer.createText(def.text.prefix);
  76747. const parentEl = getParentRenderElement(view, renderHost, def);
  76748. if (parentEl) {
  76749. renderer.appendChild(parentEl, renderNode);
  76750. }
  76751. return { renderText: renderNode };
  76752. }
  76753. function checkAndUpdateTextInline(view, def, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  76754. let changed = false;
  76755. const bindings = def.bindings;
  76756. const bindLen = bindings.length;
  76757. if (bindLen > 0 && checkAndUpdateBinding(view, def, 0, v0))
  76758. changed = true;
  76759. if (bindLen > 1 && checkAndUpdateBinding(view, def, 1, v1))
  76760. changed = true;
  76761. if (bindLen > 2 && checkAndUpdateBinding(view, def, 2, v2))
  76762. changed = true;
  76763. if (bindLen > 3 && checkAndUpdateBinding(view, def, 3, v3))
  76764. changed = true;
  76765. if (bindLen > 4 && checkAndUpdateBinding(view, def, 4, v4))
  76766. changed = true;
  76767. if (bindLen > 5 && checkAndUpdateBinding(view, def, 5, v5))
  76768. changed = true;
  76769. if (bindLen > 6 && checkAndUpdateBinding(view, def, 6, v6))
  76770. changed = true;
  76771. if (bindLen > 7 && checkAndUpdateBinding(view, def, 7, v7))
  76772. changed = true;
  76773. if (bindLen > 8 && checkAndUpdateBinding(view, def, 8, v8))
  76774. changed = true;
  76775. if (bindLen > 9 && checkAndUpdateBinding(view, def, 9, v9))
  76776. changed = true;
  76777. if (changed) {
  76778. let value = def.text.prefix;
  76779. if (bindLen > 0)
  76780. value += _addInterpolationPart(v0, bindings[0]);
  76781. if (bindLen > 1)
  76782. value += _addInterpolationPart(v1, bindings[1]);
  76783. if (bindLen > 2)
  76784. value += _addInterpolationPart(v2, bindings[2]);
  76785. if (bindLen > 3)
  76786. value += _addInterpolationPart(v3, bindings[3]);
  76787. if (bindLen > 4)
  76788. value += _addInterpolationPart(v4, bindings[4]);
  76789. if (bindLen > 5)
  76790. value += _addInterpolationPart(v5, bindings[5]);
  76791. if (bindLen > 6)
  76792. value += _addInterpolationPart(v6, bindings[6]);
  76793. if (bindLen > 7)
  76794. value += _addInterpolationPart(v7, bindings[7]);
  76795. if (bindLen > 8)
  76796. value += _addInterpolationPart(v8, bindings[8]);
  76797. if (bindLen > 9)
  76798. value += _addInterpolationPart(v9, bindings[9]);
  76799. const renderNode = asTextData(view, def.nodeIndex).renderText;
  76800. view.renderer.setValue(renderNode, value);
  76801. }
  76802. return changed;
  76803. }
  76804. function checkAndUpdateTextDynamic(view, def, values) {
  76805. const bindings = def.bindings;
  76806. let changed = false;
  76807. for (let i = 0; i < values.length; i++) {
  76808. // Note: We need to loop over all values, so that
  76809. // the old values are updates as well!
  76810. if (checkAndUpdateBinding(view, def, i, values[i])) {
  76811. changed = true;
  76812. }
  76813. }
  76814. if (changed) {
  76815. let value = '';
  76816. for (let i = 0; i < values.length; i++) {
  76817. value = value + _addInterpolationPart(values[i], bindings[i]);
  76818. }
  76819. value = def.text.prefix + value;
  76820. const renderNode = asTextData(view, def.nodeIndex).renderText;
  76821. view.renderer.setValue(renderNode, value);
  76822. }
  76823. return changed;
  76824. }
  76825. function _addInterpolationPart(value, binding) {
  76826. const valueStr = value != null ? value.toString() : '';
  76827. return valueStr + binding.suffix;
  76828. }
  76829. /**
  76830. * @license
  76831. * Copyright Google LLC All Rights Reserved.
  76832. *
  76833. * Use of this source code is governed by an MIT-style license that can be
  76834. * found in the LICENSE file at https://angular.io/license
  76835. */
  76836. function viewDef(flags, nodes, updateDirectives, updateRenderer) {
  76837. // clone nodes and set auto calculated values
  76838. let viewBindingCount = 0;
  76839. let viewDisposableCount = 0;
  76840. let viewNodeFlags = 0;
  76841. let viewRootNodeFlags = 0;
  76842. let viewMatchedQueries = 0;
  76843. let currentParent = null;
  76844. let currentRenderParent = null;
  76845. let currentElementHasPublicProviders = false;
  76846. let currentElementHasPrivateProviders = false;
  76847. let lastRenderRootNode = null;
  76848. for (let i = 0; i < nodes.length; i++) {
  76849. const node = nodes[i];
  76850. node.nodeIndex = i;
  76851. node.parent = currentParent;
  76852. node.bindingIndex = viewBindingCount;
  76853. node.outputIndex = viewDisposableCount;
  76854. node.renderParent = currentRenderParent;
  76855. viewNodeFlags |= node.flags;
  76856. viewMatchedQueries |= node.matchedQueryIds;
  76857. if (node.element) {
  76858. const elDef = node.element;
  76859. elDef.publicProviders =
  76860. currentParent ? currentParent.element.publicProviders : Object.create(null);
  76861. elDef.allProviders = elDef.publicProviders;
  76862. // Note: We assume that all providers of an element are before any child element!
  76863. currentElementHasPublicProviders = false;
  76864. currentElementHasPrivateProviders = false;
  76865. if (node.element.template) {
  76866. viewMatchedQueries |= node.element.template.nodeMatchedQueries;
  76867. }
  76868. }
  76869. validateNode(currentParent, node, nodes.length);
  76870. viewBindingCount += node.bindings.length;
  76871. viewDisposableCount += node.outputs.length;
  76872. if (!currentRenderParent && (node.flags & 3 /* CatRenderNode */)) {
  76873. lastRenderRootNode = node;
  76874. }
  76875. if (node.flags & 20224 /* CatProvider */) {
  76876. if (!currentElementHasPublicProviders) {
  76877. currentElementHasPublicProviders = true;
  76878. // Use prototypical inheritance to not get O(n^2) complexity...
  76879. currentParent.element.publicProviders =
  76880. Object.create(currentParent.element.publicProviders);
  76881. currentParent.element.allProviders = currentParent.element.publicProviders;
  76882. }
  76883. const isPrivateService = (node.flags & 8192 /* PrivateProvider */) !== 0;
  76884. const isComponent = (node.flags & 32768 /* Component */) !== 0;
  76885. if (!isPrivateService || isComponent) {
  76886. currentParent.element.publicProviders[tokenKey(node.provider.token)] = node;
  76887. }
  76888. else {
  76889. if (!currentElementHasPrivateProviders) {
  76890. currentElementHasPrivateProviders = true;
  76891. // Use prototypical inheritance to not get O(n^2) complexity...
  76892. currentParent.element.allProviders =
  76893. Object.create(currentParent.element.publicProviders);
  76894. }
  76895. currentParent.element.allProviders[tokenKey(node.provider.token)] = node;
  76896. }
  76897. if (isComponent) {
  76898. currentParent.element.componentProvider = node;
  76899. }
  76900. }
  76901. if (currentParent) {
  76902. currentParent.childFlags |= node.flags;
  76903. currentParent.directChildFlags |= node.flags;
  76904. currentParent.childMatchedQueries |= node.matchedQueryIds;
  76905. if (node.element && node.element.template) {
  76906. currentParent.childMatchedQueries |= node.element.template.nodeMatchedQueries;
  76907. }
  76908. }
  76909. else {
  76910. viewRootNodeFlags |= node.flags;
  76911. }
  76912. if (node.childCount > 0) {
  76913. currentParent = node;
  76914. if (!isNgContainer(node)) {
  76915. currentRenderParent = node;
  76916. }
  76917. }
  76918. else {
  76919. // When the current node has no children, check if it is the last children of its parent.
  76920. // When it is, propagate the flags up.
  76921. // The loop is required because an element could be the last transitive children of several
  76922. // elements. We loop to either the root or the highest opened element (= with remaining
  76923. // children)
  76924. while (currentParent && i === currentParent.nodeIndex + currentParent.childCount) {
  76925. const newParent = currentParent.parent;
  76926. if (newParent) {
  76927. newParent.childFlags |= currentParent.childFlags;
  76928. newParent.childMatchedQueries |= currentParent.childMatchedQueries;
  76929. }
  76930. currentParent = newParent;
  76931. // We also need to update the render parent & account for ng-container
  76932. if (currentParent && isNgContainer(currentParent)) {
  76933. currentRenderParent = currentParent.renderParent;
  76934. }
  76935. else {
  76936. currentRenderParent = currentParent;
  76937. }
  76938. }
  76939. }
  76940. }
  76941. const handleEvent = (view, nodeIndex, eventName, event) => nodes[nodeIndex].element.handleEvent(view, eventName, event);
  76942. return {
  76943. // Will be filled later...
  76944. factory: null,
  76945. nodeFlags: viewNodeFlags,
  76946. rootNodeFlags: viewRootNodeFlags,
  76947. nodeMatchedQueries: viewMatchedQueries,
  76948. flags,
  76949. nodes: nodes,
  76950. updateDirectives: updateDirectives || NOOP,
  76951. updateRenderer: updateRenderer || NOOP,
  76952. handleEvent,
  76953. bindingCount: viewBindingCount,
  76954. outputCount: viewDisposableCount,
  76955. lastRenderRootNode
  76956. };
  76957. }
  76958. function isNgContainer(node) {
  76959. return (node.flags & 1 /* TypeElement */) !== 0 && node.element.name === null;
  76960. }
  76961. function validateNode(parent, node, nodeCount) {
  76962. const template = node.element && node.element.template;
  76963. if (template) {
  76964. if (!template.lastRenderRootNode) {
  76965. throw new Error(`Illegal State: Embedded templates without nodes are not allowed!`);
  76966. }
  76967. if (template.lastRenderRootNode &&
  76968. template.lastRenderRootNode.flags & 16777216 /* EmbeddedViews */) {
  76969. throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${node.nodeIndex}!`);
  76970. }
  76971. }
  76972. if (node.flags & 20224 /* CatProvider */) {
  76973. const parentFlags = parent ? parent.flags : 0;
  76974. if ((parentFlags & 1 /* TypeElement */) === 0) {
  76975. throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${node.nodeIndex}!`);
  76976. }
  76977. }
  76978. if (node.query) {
  76979. if (node.flags & 67108864 /* TypeContentQuery */ &&
  76980. (!parent || (parent.flags & 16384 /* TypeDirective */) === 0)) {
  76981. throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${node.nodeIndex}!`);
  76982. }
  76983. if (node.flags & 134217728 /* TypeViewQuery */ && parent) {
  76984. throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${node.nodeIndex}!`);
  76985. }
  76986. }
  76987. if (node.childCount) {
  76988. const parentEnd = parent ? parent.nodeIndex + parent.childCount : nodeCount - 1;
  76989. if (node.nodeIndex <= parentEnd && node.nodeIndex + node.childCount > parentEnd) {
  76990. throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${node.nodeIndex}!`);
  76991. }
  76992. }
  76993. }
  76994. function createEmbeddedView(parent, anchorDef, viewDef, context) {
  76995. // embedded views are seen as siblings to the anchor, so we need
  76996. // to get the parent of the anchor and use it as parentIndex.
  76997. const view = createView(parent.root, parent.renderer, parent, anchorDef, viewDef);
  76998. initView(view, parent.component, context);
  76999. createViewNodes(view);
  77000. return view;
  77001. }
  77002. function createRootView(root, def, context) {
  77003. const view = createView(root, root.renderer, null, null, def);
  77004. initView(view, context, context);
  77005. createViewNodes(view);
  77006. return view;
  77007. }
  77008. function createComponentView(parentView, nodeDef, viewDef, hostElement) {
  77009. const rendererType = nodeDef.element.componentRendererType;
  77010. let compRenderer;
  77011. if (!rendererType) {
  77012. compRenderer = parentView.root.renderer;
  77013. }
  77014. else {
  77015. compRenderer = parentView.root.rendererFactory.createRenderer(hostElement, rendererType);
  77016. }
  77017. return createView(parentView.root, compRenderer, parentView, nodeDef.element.componentProvider, viewDef);
  77018. }
  77019. function createView(root, renderer, parent, parentNodeDef, def) {
  77020. const nodes = new Array(def.nodes.length);
  77021. const disposables = def.outputCount ? new Array(def.outputCount) : null;
  77022. const view = {
  77023. def,
  77024. parent,
  77025. viewContainerParent: null,
  77026. parentNodeDef,
  77027. context: null,
  77028. component: null,
  77029. nodes,
  77030. state: 13 /* CatInit */,
  77031. root,
  77032. renderer,
  77033. oldValues: new Array(def.bindingCount),
  77034. disposables,
  77035. initIndex: -1
  77036. };
  77037. return view;
  77038. }
  77039. function initView(view, component, context) {
  77040. view.component = component;
  77041. view.context = context;
  77042. }
  77043. function createViewNodes(view) {
  77044. let renderHost;
  77045. if (isComponentView(view)) {
  77046. const hostDef = view.parentNodeDef;
  77047. renderHost = asElementData(view.parent, hostDef.parent.nodeIndex).renderElement;
  77048. }
  77049. const def = view.def;
  77050. const nodes = view.nodes;
  77051. for (let i = 0; i < def.nodes.length; i++) {
  77052. const nodeDef = def.nodes[i];
  77053. Services.setCurrentNode(view, i);
  77054. let nodeData;
  77055. switch (nodeDef.flags & 201347067 /* Types */) {
  77056. case 1 /* TypeElement */:
  77057. const el = createElement(view, renderHost, nodeDef);
  77058. let componentView = undefined;
  77059. if (nodeDef.flags & 33554432 /* ComponentView */) {
  77060. const compViewDef = resolveDefinition(nodeDef.element.componentView);
  77061. componentView = Services.createComponentView(view, nodeDef, compViewDef, el);
  77062. }
  77063. listenToElementOutputs(view, componentView, nodeDef, el);
  77064. nodeData = {
  77065. renderElement: el,
  77066. componentView,
  77067. viewContainer: null,
  77068. template: nodeDef.element.template ? createTemplateData(view, nodeDef) : undefined
  77069. };
  77070. if (nodeDef.flags & 16777216 /* EmbeddedViews */) {
  77071. nodeData.viewContainer = createViewContainerData(view, nodeDef, nodeData);
  77072. }
  77073. break;
  77074. case 2 /* TypeText */:
  77075. nodeData = createText(view, renderHost, nodeDef);
  77076. break;
  77077. case 512 /* TypeClassProvider */:
  77078. case 1024 /* TypeFactoryProvider */:
  77079. case 2048 /* TypeUseExistingProvider */:
  77080. case 256 /* TypeValueProvider */: {
  77081. nodeData = nodes[i];
  77082. if (!nodeData && !(nodeDef.flags & 4096 /* LazyProvider */)) {
  77083. const instance = createProviderInstance(view, nodeDef);
  77084. nodeData = { instance };
  77085. }
  77086. break;
  77087. }
  77088. case 16 /* TypePipe */: {
  77089. const instance = createPipeInstance(view, nodeDef);
  77090. nodeData = { instance };
  77091. break;
  77092. }
  77093. case 16384 /* TypeDirective */: {
  77094. nodeData = nodes[i];
  77095. if (!nodeData) {
  77096. const instance = createDirectiveInstance(view, nodeDef);
  77097. nodeData = { instance };
  77098. }
  77099. if (nodeDef.flags & 32768 /* Component */) {
  77100. const compView = asElementData(view, nodeDef.parent.nodeIndex).componentView;
  77101. initView(compView, nodeData.instance, nodeData.instance);
  77102. }
  77103. break;
  77104. }
  77105. case 32 /* TypePureArray */:
  77106. case 64 /* TypePureObject */:
  77107. case 128 /* TypePurePipe */:
  77108. nodeData = createPureExpression(view, nodeDef);
  77109. break;
  77110. case 67108864 /* TypeContentQuery */:
  77111. case 134217728 /* TypeViewQuery */:
  77112. nodeData = createQuery();
  77113. break;
  77114. case 8 /* TypeNgContent */:
  77115. appendNgContent(view, renderHost, nodeDef);
  77116. // no runtime data needed for NgContent...
  77117. nodeData = undefined;
  77118. break;
  77119. }
  77120. nodes[i] = nodeData;
  77121. }
  77122. // Create the ViewData.nodes of component views after we created everything else,
  77123. // so that e.g. ng-content works
  77124. execComponentViewsAction(view, ViewAction.CreateViewNodes);
  77125. // fill static content and view queries
  77126. execQueriesAction(view, 67108864 /* TypeContentQuery */ | 134217728 /* TypeViewQuery */, 268435456 /* StaticQuery */, 0 /* CheckAndUpdate */);
  77127. }
  77128. function checkNoChangesView(view) {
  77129. markProjectedViewsForCheck(view);
  77130. Services.updateDirectives(view, 1 /* CheckNoChanges */);
  77131. execEmbeddedViewsAction(view, ViewAction.CheckNoChanges);
  77132. Services.updateRenderer(view, 1 /* CheckNoChanges */);
  77133. execComponentViewsAction(view, ViewAction.CheckNoChanges);
  77134. // Note: We don't check queries for changes as we didn't do this in v2.x.
  77135. // TODO(tbosch): investigate if we can enable the check again in v5.x with a nicer error message.
  77136. view.state &= ~(64 /* CheckProjectedViews */ | 32 /* CheckProjectedView */);
  77137. }
  77138. function checkAndUpdateView(view) {
  77139. if (view.state & 1 /* BeforeFirstCheck */) {
  77140. view.state &= ~1 /* BeforeFirstCheck */;
  77141. view.state |= 2 /* FirstCheck */;
  77142. }
  77143. else {
  77144. view.state &= ~2 /* FirstCheck */;
  77145. }
  77146. shiftInitState(view, 0 /* InitState_BeforeInit */, 256 /* InitState_CallingOnInit */);
  77147. markProjectedViewsForCheck(view);
  77148. Services.updateDirectives(view, 0 /* CheckAndUpdate */);
  77149. execEmbeddedViewsAction(view, ViewAction.CheckAndUpdate);
  77150. execQueriesAction(view, 67108864 /* TypeContentQuery */, 536870912 /* DynamicQuery */, 0 /* CheckAndUpdate */);
  77151. let callInit = shiftInitState(view, 256 /* InitState_CallingOnInit */, 512 /* InitState_CallingAfterContentInit */);
  77152. callLifecycleHooksChildrenFirst(view, 2097152 /* AfterContentChecked */ | (callInit ? 1048576 /* AfterContentInit */ : 0));
  77153. Services.updateRenderer(view, 0 /* CheckAndUpdate */);
  77154. execComponentViewsAction(view, ViewAction.CheckAndUpdate);
  77155. execQueriesAction(view, 134217728 /* TypeViewQuery */, 536870912 /* DynamicQuery */, 0 /* CheckAndUpdate */);
  77156. callInit = shiftInitState(view, 512 /* InitState_CallingAfterContentInit */, 768 /* InitState_CallingAfterViewInit */);
  77157. callLifecycleHooksChildrenFirst(view, 8388608 /* AfterViewChecked */ | (callInit ? 4194304 /* AfterViewInit */ : 0));
  77158. if (view.def.flags & 2 /* OnPush */) {
  77159. view.state &= ~8 /* ChecksEnabled */;
  77160. }
  77161. view.state &= ~(64 /* CheckProjectedViews */ | 32 /* CheckProjectedView */);
  77162. shiftInitState(view, 768 /* InitState_CallingAfterViewInit */, 1024 /* InitState_AfterInit */);
  77163. }
  77164. function checkAndUpdateNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  77165. if (argStyle === 0 /* Inline */) {
  77166. return checkAndUpdateNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
  77167. }
  77168. else {
  77169. return checkAndUpdateNodeDynamic(view, nodeDef, v0);
  77170. }
  77171. }
  77172. function markProjectedViewsForCheck(view) {
  77173. const def = view.def;
  77174. if (!(def.nodeFlags & 4 /* ProjectedTemplate */)) {
  77175. return;
  77176. }
  77177. for (let i = 0; i < def.nodes.length; i++) {
  77178. const nodeDef = def.nodes[i];
  77179. if (nodeDef.flags & 4 /* ProjectedTemplate */) {
  77180. const projectedViews = asElementData(view, i).template._projectedViews;
  77181. if (projectedViews) {
  77182. for (let i = 0; i < projectedViews.length; i++) {
  77183. const projectedView = projectedViews[i];
  77184. projectedView.state |= 32 /* CheckProjectedView */;
  77185. markParentViewsForCheckProjectedViews(projectedView, view);
  77186. }
  77187. }
  77188. }
  77189. else if ((nodeDef.childFlags & 4 /* ProjectedTemplate */) === 0) {
  77190. // a parent with leafs
  77191. // no child is a component,
  77192. // then skip the children
  77193. i += nodeDef.childCount;
  77194. }
  77195. }
  77196. }
  77197. function checkAndUpdateNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  77198. switch (nodeDef.flags & 201347067 /* Types */) {
  77199. case 1 /* TypeElement */:
  77200. return checkAndUpdateElementInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
  77201. case 2 /* TypeText */:
  77202. return checkAndUpdateTextInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
  77203. case 16384 /* TypeDirective */:
  77204. return checkAndUpdateDirectiveInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
  77205. case 32 /* TypePureArray */:
  77206. case 64 /* TypePureObject */:
  77207. case 128 /* TypePurePipe */:
  77208. return checkAndUpdatePureExpressionInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
  77209. default:
  77210. throw 'unreachable';
  77211. }
  77212. }
  77213. function checkAndUpdateNodeDynamic(view, nodeDef, values) {
  77214. switch (nodeDef.flags & 201347067 /* Types */) {
  77215. case 1 /* TypeElement */:
  77216. return checkAndUpdateElementDynamic(view, nodeDef, values);
  77217. case 2 /* TypeText */:
  77218. return checkAndUpdateTextDynamic(view, nodeDef, values);
  77219. case 16384 /* TypeDirective */:
  77220. return checkAndUpdateDirectiveDynamic(view, nodeDef, values);
  77221. case 32 /* TypePureArray */:
  77222. case 64 /* TypePureObject */:
  77223. case 128 /* TypePurePipe */:
  77224. return checkAndUpdatePureExpressionDynamic(view, nodeDef, values);
  77225. default:
  77226. throw 'unreachable';
  77227. }
  77228. }
  77229. function checkNoChangesNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  77230. if (argStyle === 0 /* Inline */) {
  77231. checkNoChangesNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
  77232. }
  77233. else {
  77234. checkNoChangesNodeDynamic(view, nodeDef, v0);
  77235. }
  77236. // Returning false is ok here as we would have thrown in case of a change.
  77237. return false;
  77238. }
  77239. function checkNoChangesNodeInline(view, nodeDef, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  77240. const bindLen = nodeDef.bindings.length;
  77241. if (bindLen > 0)
  77242. checkBindingNoChanges(view, nodeDef, 0, v0);
  77243. if (bindLen > 1)
  77244. checkBindingNoChanges(view, nodeDef, 1, v1);
  77245. if (bindLen > 2)
  77246. checkBindingNoChanges(view, nodeDef, 2, v2);
  77247. if (bindLen > 3)
  77248. checkBindingNoChanges(view, nodeDef, 3, v3);
  77249. if (bindLen > 4)
  77250. checkBindingNoChanges(view, nodeDef, 4, v4);
  77251. if (bindLen > 5)
  77252. checkBindingNoChanges(view, nodeDef, 5, v5);
  77253. if (bindLen > 6)
  77254. checkBindingNoChanges(view, nodeDef, 6, v6);
  77255. if (bindLen > 7)
  77256. checkBindingNoChanges(view, nodeDef, 7, v7);
  77257. if (bindLen > 8)
  77258. checkBindingNoChanges(view, nodeDef, 8, v8);
  77259. if (bindLen > 9)
  77260. checkBindingNoChanges(view, nodeDef, 9, v9);
  77261. }
  77262. function checkNoChangesNodeDynamic(view, nodeDef, values) {
  77263. for (let i = 0; i < values.length; i++) {
  77264. checkBindingNoChanges(view, nodeDef, i, values[i]);
  77265. }
  77266. }
  77267. /**
  77268. * Workaround https://github.com/angular/tsickle/issues/497
  77269. * @suppress {misplacedTypeAnnotation}
  77270. */
  77271. function checkNoChangesQuery(view, nodeDef) {
  77272. const queryList = asQueryList(view, nodeDef.nodeIndex);
  77273. if (queryList.dirty) {
  77274. throw expressionChangedAfterItHasBeenCheckedError(Services.createDebugContext(view, nodeDef.nodeIndex), `Query ${nodeDef.query.id} not dirty`, `Query ${nodeDef.query.id} dirty`, (view.state & 1 /* BeforeFirstCheck */) !== 0);
  77275. }
  77276. }
  77277. function destroyView(view) {
  77278. if (view.state & 128 /* Destroyed */) {
  77279. return;
  77280. }
  77281. execEmbeddedViewsAction(view, ViewAction.Destroy);
  77282. execComponentViewsAction(view, ViewAction.Destroy);
  77283. callLifecycleHooksChildrenFirst(view, 131072 /* OnDestroy */);
  77284. if (view.disposables) {
  77285. for (let i = 0; i < view.disposables.length; i++) {
  77286. view.disposables[i]();
  77287. }
  77288. }
  77289. detachProjectedView(view);
  77290. if (view.renderer.destroyNode) {
  77291. destroyViewNodes(view);
  77292. }
  77293. if (isComponentView(view)) {
  77294. view.renderer.destroy();
  77295. }
  77296. view.state |= 128 /* Destroyed */;
  77297. }
  77298. function destroyViewNodes(view) {
  77299. const len = view.def.nodes.length;
  77300. for (let i = 0; i < len; i++) {
  77301. const def = view.def.nodes[i];
  77302. if (def.flags & 1 /* TypeElement */) {
  77303. view.renderer.destroyNode(asElementData(view, i).renderElement);
  77304. }
  77305. else if (def.flags & 2 /* TypeText */) {
  77306. view.renderer.destroyNode(asTextData(view, i).renderText);
  77307. }
  77308. else if (def.flags & 67108864 /* TypeContentQuery */ || def.flags & 134217728 /* TypeViewQuery */) {
  77309. asQueryList(view, i).destroy();
  77310. }
  77311. }
  77312. }
  77313. var ViewAction;
  77314. (function (ViewAction) {
  77315. ViewAction[ViewAction["CreateViewNodes"] = 0] = "CreateViewNodes";
  77316. ViewAction[ViewAction["CheckNoChanges"] = 1] = "CheckNoChanges";
  77317. ViewAction[ViewAction["CheckNoChangesProjectedViews"] = 2] = "CheckNoChangesProjectedViews";
  77318. ViewAction[ViewAction["CheckAndUpdate"] = 3] = "CheckAndUpdate";
  77319. ViewAction[ViewAction["CheckAndUpdateProjectedViews"] = 4] = "CheckAndUpdateProjectedViews";
  77320. ViewAction[ViewAction["Destroy"] = 5] = "Destroy";
  77321. })(ViewAction || (ViewAction = {}));
  77322. function execComponentViewsAction(view, action) {
  77323. const def = view.def;
  77324. if (!(def.nodeFlags & 33554432 /* ComponentView */)) {
  77325. return;
  77326. }
  77327. for (let i = 0; i < def.nodes.length; i++) {
  77328. const nodeDef = def.nodes[i];
  77329. if (nodeDef.flags & 33554432 /* ComponentView */) {
  77330. // a leaf
  77331. callViewAction(asElementData(view, i).componentView, action);
  77332. }
  77333. else if ((nodeDef.childFlags & 33554432 /* ComponentView */) === 0) {
  77334. // a parent with leafs
  77335. // no child is a component,
  77336. // then skip the children
  77337. i += nodeDef.childCount;
  77338. }
  77339. }
  77340. }
  77341. function execEmbeddedViewsAction(view, action) {
  77342. const def = view.def;
  77343. if (!(def.nodeFlags & 16777216 /* EmbeddedViews */)) {
  77344. return;
  77345. }
  77346. for (let i = 0; i < def.nodes.length; i++) {
  77347. const nodeDef = def.nodes[i];
  77348. if (nodeDef.flags & 16777216 /* EmbeddedViews */) {
  77349. // a leaf
  77350. const embeddedViews = asElementData(view, i).viewContainer._embeddedViews;
  77351. for (let k = 0; k < embeddedViews.length; k++) {
  77352. callViewAction(embeddedViews[k], action);
  77353. }
  77354. }
  77355. else if ((nodeDef.childFlags & 16777216 /* EmbeddedViews */) === 0) {
  77356. // a parent with leafs
  77357. // no child is a component,
  77358. // then skip the children
  77359. i += nodeDef.childCount;
  77360. }
  77361. }
  77362. }
  77363. function callViewAction(view, action) {
  77364. const viewState = view.state;
  77365. switch (action) {
  77366. case ViewAction.CheckNoChanges:
  77367. if ((viewState & 128 /* Destroyed */) === 0) {
  77368. if ((viewState & 12 /* CatDetectChanges */) === 12 /* CatDetectChanges */) {
  77369. checkNoChangesView(view);
  77370. }
  77371. else if (viewState & 64 /* CheckProjectedViews */) {
  77372. execProjectedViewsAction(view, ViewAction.CheckNoChangesProjectedViews);
  77373. }
  77374. }
  77375. break;
  77376. case ViewAction.CheckNoChangesProjectedViews:
  77377. if ((viewState & 128 /* Destroyed */) === 0) {
  77378. if (viewState & 32 /* CheckProjectedView */) {
  77379. checkNoChangesView(view);
  77380. }
  77381. else if (viewState & 64 /* CheckProjectedViews */) {
  77382. execProjectedViewsAction(view, action);
  77383. }
  77384. }
  77385. break;
  77386. case ViewAction.CheckAndUpdate:
  77387. if ((viewState & 128 /* Destroyed */) === 0) {
  77388. if ((viewState & 12 /* CatDetectChanges */) === 12 /* CatDetectChanges */) {
  77389. checkAndUpdateView(view);
  77390. }
  77391. else if (viewState & 64 /* CheckProjectedViews */) {
  77392. execProjectedViewsAction(view, ViewAction.CheckAndUpdateProjectedViews);
  77393. }
  77394. }
  77395. break;
  77396. case ViewAction.CheckAndUpdateProjectedViews:
  77397. if ((viewState & 128 /* Destroyed */) === 0) {
  77398. if (viewState & 32 /* CheckProjectedView */) {
  77399. checkAndUpdateView(view);
  77400. }
  77401. else if (viewState & 64 /* CheckProjectedViews */) {
  77402. execProjectedViewsAction(view, action);
  77403. }
  77404. }
  77405. break;
  77406. case ViewAction.Destroy:
  77407. // Note: destroyView recurses over all views,
  77408. // so we don't need to special case projected views here.
  77409. destroyView(view);
  77410. break;
  77411. case ViewAction.CreateViewNodes:
  77412. createViewNodes(view);
  77413. break;
  77414. }
  77415. }
  77416. function execProjectedViewsAction(view, action) {
  77417. execEmbeddedViewsAction(view, action);
  77418. execComponentViewsAction(view, action);
  77419. }
  77420. function execQueriesAction(view, queryFlags, staticDynamicQueryFlag, checkType) {
  77421. if (!(view.def.nodeFlags & queryFlags) || !(view.def.nodeFlags & staticDynamicQueryFlag)) {
  77422. return;
  77423. }
  77424. const nodeCount = view.def.nodes.length;
  77425. for (let i = 0; i < nodeCount; i++) {
  77426. const nodeDef = view.def.nodes[i];
  77427. if ((nodeDef.flags & queryFlags) && (nodeDef.flags & staticDynamicQueryFlag)) {
  77428. Services.setCurrentNode(view, nodeDef.nodeIndex);
  77429. switch (checkType) {
  77430. case 0 /* CheckAndUpdate */:
  77431. checkAndUpdateQuery(view, nodeDef);
  77432. break;
  77433. case 1 /* CheckNoChanges */:
  77434. checkNoChangesQuery(view, nodeDef);
  77435. break;
  77436. }
  77437. }
  77438. if (!(nodeDef.childFlags & queryFlags) || !(nodeDef.childFlags & staticDynamicQueryFlag)) {
  77439. // no child has a matching query
  77440. // then skip the children
  77441. i += nodeDef.childCount;
  77442. }
  77443. }
  77444. }
  77445. /**
  77446. * @license
  77447. * Copyright Google LLC All Rights Reserved.
  77448. *
  77449. * Use of this source code is governed by an MIT-style license that can be
  77450. * found in the LICENSE file at https://angular.io/license
  77451. */
  77452. let initialized = false;
  77453. function initServicesIfNeeded() {
  77454. if (initialized) {
  77455. return;
  77456. }
  77457. initialized = true;
  77458. const services = isDevMode() ? createDebugServices() : createProdServices();
  77459. Services.setCurrentNode = services.setCurrentNode;
  77460. Services.createRootView = services.createRootView;
  77461. Services.createEmbeddedView = services.createEmbeddedView;
  77462. Services.createComponentView = services.createComponentView;
  77463. Services.createNgModuleRef = services.createNgModuleRef;
  77464. Services.overrideProvider = services.overrideProvider;
  77465. Services.overrideComponentView = services.overrideComponentView;
  77466. Services.clearOverrides = services.clearOverrides;
  77467. Services.checkAndUpdateView = services.checkAndUpdateView;
  77468. Services.checkNoChangesView = services.checkNoChangesView;
  77469. Services.destroyView = services.destroyView;
  77470. Services.resolveDep = resolveDep;
  77471. Services.createDebugContext = services.createDebugContext;
  77472. Services.handleEvent = services.handleEvent;
  77473. Services.updateDirectives = services.updateDirectives;
  77474. Services.updateRenderer = services.updateRenderer;
  77475. Services.dirtyParentQueries = dirtyParentQueries;
  77476. }
  77477. function createProdServices() {
  77478. return {
  77479. setCurrentNode: () => { },
  77480. createRootView: createProdRootView,
  77481. createEmbeddedView: createEmbeddedView,
  77482. createComponentView: createComponentView,
  77483. createNgModuleRef: createNgModuleRef,
  77484. overrideProvider: NOOP,
  77485. overrideComponentView: NOOP,
  77486. clearOverrides: NOOP,
  77487. checkAndUpdateView: checkAndUpdateView,
  77488. checkNoChangesView: checkNoChangesView,
  77489. destroyView: destroyView,
  77490. createDebugContext: (view, nodeIndex) => new DebugContext_(view, nodeIndex),
  77491. handleEvent: (view, nodeIndex, eventName, event) => view.def.handleEvent(view, nodeIndex, eventName, event),
  77492. updateDirectives: (view, checkType) => view.def.updateDirectives(checkType === 0 /* CheckAndUpdate */ ? prodCheckAndUpdateNode : prodCheckNoChangesNode, view),
  77493. updateRenderer: (view, checkType) => view.def.updateRenderer(checkType === 0 /* CheckAndUpdate */ ? prodCheckAndUpdateNode : prodCheckNoChangesNode, view),
  77494. };
  77495. }
  77496. function createDebugServices() {
  77497. return {
  77498. setCurrentNode: debugSetCurrentNode,
  77499. createRootView: debugCreateRootView,
  77500. createEmbeddedView: debugCreateEmbeddedView,
  77501. createComponentView: debugCreateComponentView,
  77502. createNgModuleRef: debugCreateNgModuleRef,
  77503. overrideProvider: debugOverrideProvider,
  77504. overrideComponentView: debugOverrideComponentView,
  77505. clearOverrides: debugClearOverrides,
  77506. checkAndUpdateView: debugCheckAndUpdateView,
  77507. checkNoChangesView: debugCheckNoChangesView,
  77508. destroyView: debugDestroyView,
  77509. createDebugContext: (view, nodeIndex) => new DebugContext_(view, nodeIndex),
  77510. handleEvent: debugHandleEvent,
  77511. updateDirectives: debugUpdateDirectives,
  77512. updateRenderer: debugUpdateRenderer,
  77513. };
  77514. }
  77515. function createProdRootView(elInjector, projectableNodes, rootSelectorOrNode, def, ngModule, context) {
  77516. const rendererFactory = ngModule.injector.get(RendererFactory2);
  77517. return createRootView(createRootData(elInjector, ngModule, rendererFactory, projectableNodes, rootSelectorOrNode), def, context);
  77518. }
  77519. function debugCreateRootView(elInjector, projectableNodes, rootSelectorOrNode, def, ngModule, context) {
  77520. const rendererFactory = ngModule.injector.get(RendererFactory2);
  77521. const root = createRootData(elInjector, ngModule, new DebugRendererFactory2(rendererFactory), projectableNodes, rootSelectorOrNode);
  77522. const defWithOverride = applyProviderOverridesToView(def);
  77523. return callWithDebugContext(DebugAction.create, createRootView, null, [root, defWithOverride, context]);
  77524. }
  77525. function createRootData(elInjector, ngModule, rendererFactory, projectableNodes, rootSelectorOrNode) {
  77526. const sanitizer = ngModule.injector.get(Sanitizer);
  77527. const errorHandler = ngModule.injector.get(ErrorHandler);
  77528. const renderer = rendererFactory.createRenderer(null, null);
  77529. return {
  77530. ngModule,
  77531. injector: elInjector,
  77532. projectableNodes,
  77533. selectorOrNode: rootSelectorOrNode,
  77534. sanitizer,
  77535. rendererFactory,
  77536. renderer,
  77537. errorHandler
  77538. };
  77539. }
  77540. function debugCreateEmbeddedView(parentView, anchorDef, viewDef, context) {
  77541. const defWithOverride = applyProviderOverridesToView(viewDef);
  77542. return callWithDebugContext(DebugAction.create, createEmbeddedView, null, [parentView, anchorDef, defWithOverride, context]);
  77543. }
  77544. function debugCreateComponentView(parentView, nodeDef, viewDef, hostElement) {
  77545. const overrideComponentView = viewDefOverrides.get(nodeDef.element.componentProvider.provider.token);
  77546. if (overrideComponentView) {
  77547. viewDef = overrideComponentView;
  77548. }
  77549. else {
  77550. viewDef = applyProviderOverridesToView(viewDef);
  77551. }
  77552. return callWithDebugContext(DebugAction.create, createComponentView, null, [parentView, nodeDef, viewDef, hostElement]);
  77553. }
  77554. function debugCreateNgModuleRef(moduleType, parentInjector, bootstrapComponents, def) {
  77555. const defWithOverride = applyProviderOverridesToNgModule(def);
  77556. return createNgModuleRef(moduleType, parentInjector, bootstrapComponents, defWithOverride);
  77557. }
  77558. const providerOverrides = new Map();
  77559. const providerOverridesWithScope = new Map();
  77560. const viewDefOverrides = new Map();
  77561. function debugOverrideProvider(override) {
  77562. providerOverrides.set(override.token, override);
  77563. let injectableDef;
  77564. if (typeof override.token === 'function' && (injectableDef = getInjectableDef(override.token)) &&
  77565. typeof injectableDef.providedIn === 'function') {
  77566. providerOverridesWithScope.set(override.token, override);
  77567. }
  77568. }
  77569. function debugOverrideComponentView(comp, compFactory) {
  77570. const hostViewDef = resolveDefinition(getComponentViewDefinitionFactory(compFactory));
  77571. const compViewDef = resolveDefinition(hostViewDef.nodes[0].element.componentView);
  77572. viewDefOverrides.set(comp, compViewDef);
  77573. }
  77574. function debugClearOverrides() {
  77575. providerOverrides.clear();
  77576. providerOverridesWithScope.clear();
  77577. viewDefOverrides.clear();
  77578. }
  77579. // Notes about the algorithm:
  77580. // 1) Locate the providers of an element and check if one of them was overwritten
  77581. // 2) Change the providers of that element
  77582. //
  77583. // We only create new datastructures if we need to, to keep perf impact
  77584. // reasonable.
  77585. function applyProviderOverridesToView(def) {
  77586. if (providerOverrides.size === 0) {
  77587. return def;
  77588. }
  77589. const elementIndicesWithOverwrittenProviders = findElementIndicesWithOverwrittenProviders(def);
  77590. if (elementIndicesWithOverwrittenProviders.length === 0) {
  77591. return def;
  77592. }
  77593. // clone the whole view definition,
  77594. // as it maintains references between the nodes that are hard to update.
  77595. def = def.factory(() => NOOP);
  77596. for (let i = 0; i < elementIndicesWithOverwrittenProviders.length; i++) {
  77597. applyProviderOverridesToElement(def, elementIndicesWithOverwrittenProviders[i]);
  77598. }
  77599. return def;
  77600. function findElementIndicesWithOverwrittenProviders(def) {
  77601. const elIndicesWithOverwrittenProviders = [];
  77602. let lastElementDef = null;
  77603. for (let i = 0; i < def.nodes.length; i++) {
  77604. const nodeDef = def.nodes[i];
  77605. if (nodeDef.flags & 1 /* TypeElement */) {
  77606. lastElementDef = nodeDef;
  77607. }
  77608. if (lastElementDef && nodeDef.flags & 3840 /* CatProviderNoDirective */ &&
  77609. providerOverrides.has(nodeDef.provider.token)) {
  77610. elIndicesWithOverwrittenProviders.push(lastElementDef.nodeIndex);
  77611. lastElementDef = null;
  77612. }
  77613. }
  77614. return elIndicesWithOverwrittenProviders;
  77615. }
  77616. function applyProviderOverridesToElement(viewDef, elIndex) {
  77617. for (let i = elIndex + 1; i < viewDef.nodes.length; i++) {
  77618. const nodeDef = viewDef.nodes[i];
  77619. if (nodeDef.flags & 1 /* TypeElement */) {
  77620. // stop at the next element
  77621. return;
  77622. }
  77623. if (nodeDef.flags & 3840 /* CatProviderNoDirective */) {
  77624. const provider = nodeDef.provider;
  77625. const override = providerOverrides.get(provider.token);
  77626. if (override) {
  77627. nodeDef.flags = (nodeDef.flags & ~3840 /* CatProviderNoDirective */) | override.flags;
  77628. provider.deps = splitDepsDsl(override.deps);
  77629. provider.value = override.value;
  77630. }
  77631. }
  77632. }
  77633. }
  77634. }
  77635. // Notes about the algorithm:
  77636. // We only create new datastructures if we need to, to keep perf impact
  77637. // reasonable.
  77638. function applyProviderOverridesToNgModule(def) {
  77639. const { hasOverrides, hasDeprecatedOverrides } = calcHasOverrides(def);
  77640. if (!hasOverrides) {
  77641. return def;
  77642. }
  77643. // clone the whole view definition,
  77644. // as it maintains references between the nodes that are hard to update.
  77645. def = def.factory(() => NOOP);
  77646. applyProviderOverrides(def);
  77647. return def;
  77648. function calcHasOverrides(def) {
  77649. let hasOverrides = false;
  77650. let hasDeprecatedOverrides = false;
  77651. if (providerOverrides.size === 0) {
  77652. return { hasOverrides, hasDeprecatedOverrides };
  77653. }
  77654. def.providers.forEach(node => {
  77655. const override = providerOverrides.get(node.token);
  77656. if ((node.flags & 3840 /* CatProviderNoDirective */) && override) {
  77657. hasOverrides = true;
  77658. hasDeprecatedOverrides = hasDeprecatedOverrides || override.deprecatedBehavior;
  77659. }
  77660. });
  77661. def.modules.forEach(module => {
  77662. providerOverridesWithScope.forEach((override, token) => {
  77663. if (getInjectableDef(token).providedIn === module) {
  77664. hasOverrides = true;
  77665. hasDeprecatedOverrides = hasDeprecatedOverrides || override.deprecatedBehavior;
  77666. }
  77667. });
  77668. });
  77669. return { hasOverrides, hasDeprecatedOverrides };
  77670. }
  77671. function applyProviderOverrides(def) {
  77672. for (let i = 0; i < def.providers.length; i++) {
  77673. const provider = def.providers[i];
  77674. if (hasDeprecatedOverrides) {
  77675. // We had a bug where me made
  77676. // all providers lazy. Keep this logic behind a flag
  77677. // for migrating existing users.
  77678. provider.flags |= 4096 /* LazyProvider */;
  77679. }
  77680. const override = providerOverrides.get(provider.token);
  77681. if (override) {
  77682. provider.flags = (provider.flags & ~3840 /* CatProviderNoDirective */) | override.flags;
  77683. provider.deps = splitDepsDsl(override.deps);
  77684. provider.value = override.value;
  77685. }
  77686. }
  77687. if (providerOverridesWithScope.size > 0) {
  77688. let moduleSet = new Set(def.modules);
  77689. providerOverridesWithScope.forEach((override, token) => {
  77690. if (moduleSet.has(getInjectableDef(token).providedIn)) {
  77691. let provider = {
  77692. token: token,
  77693. flags: override.flags | (hasDeprecatedOverrides ? 4096 /* LazyProvider */ : 0 /* None */),
  77694. deps: splitDepsDsl(override.deps),
  77695. value: override.value,
  77696. index: def.providers.length,
  77697. };
  77698. def.providers.push(provider);
  77699. def.providersByKey[tokenKey(token)] = provider;
  77700. }
  77701. });
  77702. }
  77703. }
  77704. }
  77705. function prodCheckAndUpdateNode(view, checkIndex, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  77706. const nodeDef = view.def.nodes[checkIndex];
  77707. checkAndUpdateNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
  77708. return (nodeDef.flags & 224 /* CatPureExpression */) ?
  77709. asPureExpressionData(view, checkIndex).value :
  77710. undefined;
  77711. }
  77712. function prodCheckNoChangesNode(view, checkIndex, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9) {
  77713. const nodeDef = view.def.nodes[checkIndex];
  77714. checkNoChangesNode(view, nodeDef, argStyle, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9);
  77715. return (nodeDef.flags & 224 /* CatPureExpression */) ?
  77716. asPureExpressionData(view, checkIndex).value :
  77717. undefined;
  77718. }
  77719. function debugCheckAndUpdateView(view) {
  77720. return callWithDebugContext(DebugAction.detectChanges, checkAndUpdateView, null, [view]);
  77721. }
  77722. function debugCheckNoChangesView(view) {
  77723. return callWithDebugContext(DebugAction.checkNoChanges, checkNoChangesView, null, [view]);
  77724. }
  77725. function debugDestroyView(view) {
  77726. return callWithDebugContext(DebugAction.destroy, destroyView, null, [view]);
  77727. }
  77728. var DebugAction;
  77729. (function (DebugAction) {
  77730. DebugAction[DebugAction["create"] = 0] = "create";
  77731. DebugAction[DebugAction["detectChanges"] = 1] = "detectChanges";
  77732. DebugAction[DebugAction["checkNoChanges"] = 2] = "checkNoChanges";
  77733. DebugAction[DebugAction["destroy"] = 3] = "destroy";
  77734. DebugAction[DebugAction["handleEvent"] = 4] = "handleEvent";
  77735. })(DebugAction || (DebugAction = {}));
  77736. let _currentAction;
  77737. let _currentView;
  77738. let _currentNodeIndex;
  77739. function debugSetCurrentNode(view, nodeIndex) {
  77740. _currentView = view;
  77741. _currentNodeIndex = nodeIndex;
  77742. }
  77743. function debugHandleEvent(view, nodeIndex, eventName, event) {
  77744. debugSetCurrentNode(view, nodeIndex);
  77745. return callWithDebugContext(DebugAction.handleEvent, view.def.handleEvent, null, [view, nodeIndex, eventName, event]);
  77746. }
  77747. function debugUpdateDirectives(view, checkType) {
  77748. if (view.state & 128 /* Destroyed */) {
  77749. throw viewDestroyedError(DebugAction[_currentAction]);
  77750. }
  77751. debugSetCurrentNode(view, nextDirectiveWithBinding(view, 0));
  77752. return view.def.updateDirectives(debugCheckDirectivesFn, view);
  77753. function debugCheckDirectivesFn(view, nodeIndex, argStyle, ...values) {
  77754. const nodeDef = view.def.nodes[nodeIndex];
  77755. if (checkType === 0 /* CheckAndUpdate */) {
  77756. debugCheckAndUpdateNode(view, nodeDef, argStyle, values);
  77757. }
  77758. else {
  77759. debugCheckNoChangesNode(view, nodeDef, argStyle, values);
  77760. }
  77761. if (nodeDef.flags & 16384 /* TypeDirective */) {
  77762. debugSetCurrentNode(view, nextDirectiveWithBinding(view, nodeIndex));
  77763. }
  77764. return (nodeDef.flags & 224 /* CatPureExpression */) ?
  77765. asPureExpressionData(view, nodeDef.nodeIndex).value :
  77766. undefined;
  77767. }
  77768. }
  77769. function debugUpdateRenderer(view, checkType) {
  77770. if (view.state & 128 /* Destroyed */) {
  77771. throw viewDestroyedError(DebugAction[_currentAction]);
  77772. }
  77773. debugSetCurrentNode(view, nextRenderNodeWithBinding(view, 0));
  77774. return view.def.updateRenderer(debugCheckRenderNodeFn, view);
  77775. function debugCheckRenderNodeFn(view, nodeIndex, argStyle, ...values) {
  77776. const nodeDef = view.def.nodes[nodeIndex];
  77777. if (checkType === 0 /* CheckAndUpdate */) {
  77778. debugCheckAndUpdateNode(view, nodeDef, argStyle, values);
  77779. }
  77780. else {
  77781. debugCheckNoChangesNode(view, nodeDef, argStyle, values);
  77782. }
  77783. if (nodeDef.flags & 3 /* CatRenderNode */) {
  77784. debugSetCurrentNode(view, nextRenderNodeWithBinding(view, nodeIndex));
  77785. }
  77786. return (nodeDef.flags & 224 /* CatPureExpression */) ?
  77787. asPureExpressionData(view, nodeDef.nodeIndex).value :
  77788. undefined;
  77789. }
  77790. }
  77791. function debugCheckAndUpdateNode(view, nodeDef, argStyle, givenValues) {
  77792. const changed = checkAndUpdateNode(view, nodeDef, argStyle, ...givenValues);
  77793. if (changed) {
  77794. const values = argStyle === 1 /* Dynamic */ ? givenValues[0] : givenValues;
  77795. if (nodeDef.flags & 16384 /* TypeDirective */) {
  77796. const bindingValues = {};
  77797. for (let i = 0; i < nodeDef.bindings.length; i++) {
  77798. const binding = nodeDef.bindings[i];
  77799. const value = values[i];
  77800. if (binding.flags & 8 /* TypeProperty */) {
  77801. bindingValues[normalizeDebugBindingName(binding.nonMinifiedName)] =
  77802. normalizeDebugBindingValue(value);
  77803. }
  77804. }
  77805. const elDef = nodeDef.parent;
  77806. const el = asElementData(view, elDef.nodeIndex).renderElement;
  77807. if (!elDef.element.name) {
  77808. // a comment.
  77809. view.renderer.setValue(el, `bindings=${JSON.stringify(bindingValues, null, 2)}`);
  77810. }
  77811. else {
  77812. // a regular element.
  77813. for (let attr in bindingValues) {
  77814. const value = bindingValues[attr];
  77815. if (value != null) {
  77816. view.renderer.setAttribute(el, attr, value);
  77817. }
  77818. else {
  77819. view.renderer.removeAttribute(el, attr);
  77820. }
  77821. }
  77822. }
  77823. }
  77824. }
  77825. }
  77826. function debugCheckNoChangesNode(view, nodeDef, argStyle, values) {
  77827. checkNoChangesNode(view, nodeDef, argStyle, ...values);
  77828. }
  77829. function nextDirectiveWithBinding(view, nodeIndex) {
  77830. for (let i = nodeIndex; i < view.def.nodes.length; i++) {
  77831. const nodeDef = view.def.nodes[i];
  77832. if (nodeDef.flags & 16384 /* TypeDirective */ && nodeDef.bindings && nodeDef.bindings.length) {
  77833. return i;
  77834. }
  77835. }
  77836. return null;
  77837. }
  77838. function nextRenderNodeWithBinding(view, nodeIndex) {
  77839. for (let i = nodeIndex; i < view.def.nodes.length; i++) {
  77840. const nodeDef = view.def.nodes[i];
  77841. if ((nodeDef.flags & 3 /* CatRenderNode */) && nodeDef.bindings && nodeDef.bindings.length) {
  77842. return i;
  77843. }
  77844. }
  77845. return null;
  77846. }
  77847. class DebugContext_ {
  77848. constructor(view, nodeIndex) {
  77849. this.view = view;
  77850. this.nodeIndex = nodeIndex;
  77851. if (nodeIndex == null) {
  77852. this.nodeIndex = nodeIndex = 0;
  77853. }
  77854. this.nodeDef = view.def.nodes[nodeIndex];
  77855. let elDef = this.nodeDef;
  77856. let elView = view;
  77857. while (elDef && (elDef.flags & 1 /* TypeElement */) === 0) {
  77858. elDef = elDef.parent;
  77859. }
  77860. if (!elDef) {
  77861. while (!elDef && elView) {
  77862. elDef = viewParentEl(elView);
  77863. elView = elView.parent;
  77864. }
  77865. }
  77866. this.elDef = elDef;
  77867. this.elView = elView;
  77868. }
  77869. get elOrCompView() {
  77870. // Has to be done lazily as we use the DebugContext also during creation of elements...
  77871. return asElementData(this.elView, this.elDef.nodeIndex).componentView || this.view;
  77872. }
  77873. get injector() {
  77874. return createInjector$1(this.elView, this.elDef);
  77875. }
  77876. get component() {
  77877. return this.elOrCompView.component;
  77878. }
  77879. get context() {
  77880. return this.elOrCompView.context;
  77881. }
  77882. get providerTokens() {
  77883. const tokens = [];
  77884. if (this.elDef) {
  77885. for (let i = this.elDef.nodeIndex + 1; i <= this.elDef.nodeIndex + this.elDef.childCount; i++) {
  77886. const childDef = this.elView.def.nodes[i];
  77887. if (childDef.flags & 20224 /* CatProvider */) {
  77888. tokens.push(childDef.provider.token);
  77889. }
  77890. i += childDef.childCount;
  77891. }
  77892. }
  77893. return tokens;
  77894. }
  77895. get references() {
  77896. const references = {};
  77897. if (this.elDef) {
  77898. collectReferences(this.elView, this.elDef, references);
  77899. for (let i = this.elDef.nodeIndex + 1; i <= this.elDef.nodeIndex + this.elDef.childCount; i++) {
  77900. const childDef = this.elView.def.nodes[i];
  77901. if (childDef.flags & 20224 /* CatProvider */) {
  77902. collectReferences(this.elView, childDef, references);
  77903. }
  77904. i += childDef.childCount;
  77905. }
  77906. }
  77907. return references;
  77908. }
  77909. get componentRenderElement() {
  77910. const elData = findHostElement(this.elOrCompView);
  77911. return elData ? elData.renderElement : undefined;
  77912. }
  77913. get renderNode() {
  77914. return this.nodeDef.flags & 2 /* TypeText */ ? renderNode(this.view, this.nodeDef) :
  77915. renderNode(this.elView, this.elDef);
  77916. }
  77917. logError(console, ...values) {
  77918. let logViewDef;
  77919. let logNodeIndex;
  77920. if (this.nodeDef.flags & 2 /* TypeText */) {
  77921. logViewDef = this.view.def;
  77922. logNodeIndex = this.nodeDef.nodeIndex;
  77923. }
  77924. else {
  77925. logViewDef = this.elView.def;
  77926. logNodeIndex = this.elDef.nodeIndex;
  77927. }
  77928. // Note: we only generate a log function for text and element nodes
  77929. // to make the generated code as small as possible.
  77930. const renderNodeIndex = getRenderNodeIndex(logViewDef, logNodeIndex);
  77931. let currRenderNodeIndex = -1;
  77932. let nodeLogger = () => {
  77933. currRenderNodeIndex++;
  77934. if (currRenderNodeIndex === renderNodeIndex) {
  77935. return console.error.bind(console, ...values);
  77936. }
  77937. else {
  77938. return NOOP;
  77939. }
  77940. };
  77941. logViewDef.factory(nodeLogger);
  77942. if (currRenderNodeIndex < renderNodeIndex) {
  77943. console.error('Illegal state: the ViewDefinitionFactory did not call the logger!');
  77944. console.error(...values);
  77945. }
  77946. }
  77947. }
  77948. function getRenderNodeIndex(viewDef, nodeIndex) {
  77949. let renderNodeIndex = -1;
  77950. for (let i = 0; i <= nodeIndex; i++) {
  77951. const nodeDef = viewDef.nodes[i];
  77952. if (nodeDef.flags & 3 /* CatRenderNode */) {
  77953. renderNodeIndex++;
  77954. }
  77955. }
  77956. return renderNodeIndex;
  77957. }
  77958. function findHostElement(view) {
  77959. while (view && !isComponentView(view)) {
  77960. view = view.parent;
  77961. }
  77962. if (view.parent) {
  77963. return asElementData(view.parent, viewParentEl(view).nodeIndex);
  77964. }
  77965. return null;
  77966. }
  77967. function collectReferences(view, nodeDef, references) {
  77968. for (let refName in nodeDef.references) {
  77969. references[refName] = getQueryValue(view, nodeDef, nodeDef.references[refName]);
  77970. }
  77971. }
  77972. function callWithDebugContext(action, fn, self, args) {
  77973. const oldAction = _currentAction;
  77974. const oldView = _currentView;
  77975. const oldNodeIndex = _currentNodeIndex;
  77976. try {
  77977. _currentAction = action;
  77978. const result = fn.apply(self, args);
  77979. _currentView = oldView;
  77980. _currentNodeIndex = oldNodeIndex;
  77981. _currentAction = oldAction;
  77982. return result;
  77983. }
  77984. catch (e) {
  77985. if (isViewDebugError(e) || !_currentView) {
  77986. throw e;
  77987. }
  77988. throw viewWrappedDebugError(e, getCurrentDebugContext());
  77989. }
  77990. }
  77991. function getCurrentDebugContext() {
  77992. return _currentView ? new DebugContext_(_currentView, _currentNodeIndex) : null;
  77993. }
  77994. class DebugRendererFactory2 {
  77995. constructor(delegate) {
  77996. this.delegate = delegate;
  77997. }
  77998. createRenderer(element, renderData) {
  77999. return new DebugRenderer2(this.delegate.createRenderer(element, renderData));
  78000. }
  78001. begin() {
  78002. if (this.delegate.begin) {
  78003. this.delegate.begin();
  78004. }
  78005. }
  78006. end() {
  78007. if (this.delegate.end) {
  78008. this.delegate.end();
  78009. }
  78010. }
  78011. whenRenderingDone() {
  78012. if (this.delegate.whenRenderingDone) {
  78013. return this.delegate.whenRenderingDone();
  78014. }
  78015. return Promise.resolve(null);
  78016. }
  78017. }
  78018. class DebugRenderer2 {
  78019. constructor(delegate) {
  78020. this.delegate = delegate;
  78021. /**
  78022. * Factory function used to create a `DebugContext` when a node is created.
  78023. *
  78024. * The `DebugContext` allows to retrieve information about the nodes that are useful in tests.
  78025. *
  78026. * The factory is configurable so that the `DebugRenderer2` could instantiate either a View Engine
  78027. * or a Render context.
  78028. */
  78029. this.debugContextFactory = getCurrentDebugContext;
  78030. this.data = this.delegate.data;
  78031. }
  78032. createDebugContext(nativeElement) {
  78033. return this.debugContextFactory(nativeElement);
  78034. }
  78035. destroyNode(node) {
  78036. const debugNode = getDebugNode$1(node);
  78037. removeDebugNodeFromIndex(debugNode);
  78038. if (debugNode instanceof DebugNode__PRE_R3__) {
  78039. debugNode.listeners.length = 0;
  78040. }
  78041. if (this.delegate.destroyNode) {
  78042. this.delegate.destroyNode(node);
  78043. }
  78044. }
  78045. destroy() {
  78046. this.delegate.destroy();
  78047. }
  78048. createElement(name, namespace) {
  78049. const el = this.delegate.createElement(name, namespace);
  78050. const debugCtx = this.createDebugContext(el);
  78051. if (debugCtx) {
  78052. const debugEl = new DebugElement__PRE_R3__(el, null, debugCtx);
  78053. debugEl.name = name;
  78054. indexDebugNode(debugEl);
  78055. }
  78056. return el;
  78057. }
  78058. createComment(value) {
  78059. const comment = this.delegate.createComment(value);
  78060. const debugCtx = this.createDebugContext(comment);
  78061. if (debugCtx) {
  78062. indexDebugNode(new DebugNode__PRE_R3__(comment, null, debugCtx));
  78063. }
  78064. return comment;
  78065. }
  78066. createText(value) {
  78067. const text = this.delegate.createText(value);
  78068. const debugCtx = this.createDebugContext(text);
  78069. if (debugCtx) {
  78070. indexDebugNode(new DebugNode__PRE_R3__(text, null, debugCtx));
  78071. }
  78072. return text;
  78073. }
  78074. appendChild(parent, newChild) {
  78075. const debugEl = getDebugNode$1(parent);
  78076. const debugChildEl = getDebugNode$1(newChild);
  78077. if (debugEl && debugChildEl && debugEl instanceof DebugElement__PRE_R3__) {
  78078. debugEl.addChild(debugChildEl);
  78079. }
  78080. this.delegate.appendChild(parent, newChild);
  78081. }
  78082. insertBefore(parent, newChild, refChild, isMove) {
  78083. const debugEl = getDebugNode$1(parent);
  78084. const debugChildEl = getDebugNode$1(newChild);
  78085. const debugRefEl = getDebugNode$1(refChild);
  78086. if (debugEl && debugChildEl && debugEl instanceof DebugElement__PRE_R3__) {
  78087. debugEl.insertBefore(debugRefEl, debugChildEl);
  78088. }
  78089. this.delegate.insertBefore(parent, newChild, refChild, isMove);
  78090. }
  78091. removeChild(parent, oldChild) {
  78092. const debugEl = getDebugNode$1(parent);
  78093. const debugChildEl = getDebugNode$1(oldChild);
  78094. if (debugEl && debugChildEl && debugEl instanceof DebugElement__PRE_R3__) {
  78095. debugEl.removeChild(debugChildEl);
  78096. }
  78097. this.delegate.removeChild(parent, oldChild);
  78098. }
  78099. selectRootElement(selectorOrNode, preserveContent) {
  78100. const el = this.delegate.selectRootElement(selectorOrNode, preserveContent);
  78101. const debugCtx = getCurrentDebugContext();
  78102. if (debugCtx) {
  78103. indexDebugNode(new DebugElement__PRE_R3__(el, null, debugCtx));
  78104. }
  78105. return el;
  78106. }
  78107. setAttribute(el, name, value, namespace) {
  78108. const debugEl = getDebugNode$1(el);
  78109. if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
  78110. const fullName = namespace ? namespace + ':' + name : name;
  78111. debugEl.attributes[fullName] = value;
  78112. }
  78113. this.delegate.setAttribute(el, name, value, namespace);
  78114. }
  78115. removeAttribute(el, name, namespace) {
  78116. const debugEl = getDebugNode$1(el);
  78117. if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
  78118. const fullName = namespace ? namespace + ':' + name : name;
  78119. debugEl.attributes[fullName] = null;
  78120. }
  78121. this.delegate.removeAttribute(el, name, namespace);
  78122. }
  78123. addClass(el, name) {
  78124. const debugEl = getDebugNode$1(el);
  78125. if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
  78126. debugEl.classes[name] = true;
  78127. }
  78128. this.delegate.addClass(el, name);
  78129. }
  78130. removeClass(el, name) {
  78131. const debugEl = getDebugNode$1(el);
  78132. if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
  78133. debugEl.classes[name] = false;
  78134. }
  78135. this.delegate.removeClass(el, name);
  78136. }
  78137. setStyle(el, style, value, flags) {
  78138. const debugEl = getDebugNode$1(el);
  78139. if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
  78140. debugEl.styles[style] = value;
  78141. }
  78142. this.delegate.setStyle(el, style, value, flags);
  78143. }
  78144. removeStyle(el, style, flags) {
  78145. const debugEl = getDebugNode$1(el);
  78146. if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
  78147. debugEl.styles[style] = null;
  78148. }
  78149. this.delegate.removeStyle(el, style, flags);
  78150. }
  78151. setProperty(el, name, value) {
  78152. const debugEl = getDebugNode$1(el);
  78153. if (debugEl && debugEl instanceof DebugElement__PRE_R3__) {
  78154. debugEl.properties[name] = value;
  78155. }
  78156. this.delegate.setProperty(el, name, value);
  78157. }
  78158. listen(target, eventName, callback) {
  78159. if (typeof target !== 'string') {
  78160. const debugEl = getDebugNode$1(target);
  78161. if (debugEl) {
  78162. debugEl.listeners.push(new DebugEventListener(eventName, callback));
  78163. }
  78164. }
  78165. return this.delegate.listen(target, eventName, callback);
  78166. }
  78167. parentNode(node) {
  78168. return this.delegate.parentNode(node);
  78169. }
  78170. nextSibling(node) {
  78171. return this.delegate.nextSibling(node);
  78172. }
  78173. setValue(node, value) {
  78174. return this.delegate.setValue(node, value);
  78175. }
  78176. }
  78177. /**
  78178. * @license
  78179. * Copyright Google LLC All Rights Reserved.
  78180. *
  78181. * Use of this source code is governed by an MIT-style license that can be
  78182. * found in the LICENSE file at https://angular.io/license
  78183. */
  78184. function overrideProvider(override) {
  78185. initServicesIfNeeded();
  78186. return Services.overrideProvider(override);
  78187. }
  78188. function overrideComponentView(comp, componentFactory) {
  78189. initServicesIfNeeded();
  78190. return Services.overrideComponentView(comp, componentFactory);
  78191. }
  78192. function clearOverrides() {
  78193. initServicesIfNeeded();
  78194. return Services.clearOverrides();
  78195. }
  78196. // Attention: this function is called as top level function.
  78197. // Putting any logic in here will destroy closure tree shaking!
  78198. function createNgModuleFactory(ngModuleType, bootstrapComponents, defFactory) {
  78199. return new NgModuleFactory_(ngModuleType, bootstrapComponents, defFactory);
  78200. }
  78201. function cloneNgModuleDefinition(def) {
  78202. const providers = Array.from(def.providers);
  78203. const modules = Array.from(def.modules);
  78204. const providersByKey = {};
  78205. for (const key in def.providersByKey) {
  78206. providersByKey[key] = def.providersByKey[key];
  78207. }
  78208. return {
  78209. factory: def.factory,
  78210. scope: def.scope,
  78211. providers,
  78212. modules,
  78213. providersByKey,
  78214. };
  78215. }
  78216. class NgModuleFactory_ extends NgModuleFactory {
  78217. constructor(moduleType, _bootstrapComponents, _ngModuleDefFactory) {
  78218. // Attention: this ctor is called as top level function.
  78219. // Putting any logic in here will destroy closure tree shaking!
  78220. super();
  78221. this.moduleType = moduleType;
  78222. this._bootstrapComponents = _bootstrapComponents;
  78223. this._ngModuleDefFactory = _ngModuleDefFactory;
  78224. }
  78225. create(parentInjector) {
  78226. initServicesIfNeeded();
  78227. // Clone the NgModuleDefinition so that any tree shakeable provider definition
  78228. // added to this instance of the NgModuleRef doesn't affect the cached copy.
  78229. // See https://github.com/angular/angular/issues/25018.
  78230. const def = cloneNgModuleDefinition(resolveDefinition(this._ngModuleDefFactory));
  78231. return Services.createNgModuleRef(this.moduleType, parentInjector || Injector.NULL, this._bootstrapComponents, def);
  78232. }
  78233. }
  78234. /**
  78235. * @license
  78236. * Copyright Google LLC All Rights Reserved.
  78237. *
  78238. * Use of this source code is governed by an MIT-style license that can be
  78239. * found in the LICENSE file at https://angular.io/license
  78240. */
  78241. /**
  78242. * @license
  78243. * Copyright Google LLC All Rights Reserved.
  78244. *
  78245. * Use of this source code is governed by an MIT-style license that can be
  78246. * found in the LICENSE file at https://angular.io/license
  78247. */
  78248. /**
  78249. * @license
  78250. * Copyright Google LLC All Rights Reserved.
  78251. *
  78252. * Use of this source code is governed by an MIT-style license that can be
  78253. * found in the LICENSE file at https://angular.io/license
  78254. */
  78255. // clang-format on
  78256. /**
  78257. * @license
  78258. * Copyright Google LLC All Rights Reserved.
  78259. *
  78260. * Use of this source code is governed by an MIT-style license that can be
  78261. * found in the LICENSE file at https://angular.io/license
  78262. */
  78263. /**
  78264. * @license
  78265. * Copyright Google LLC All Rights Reserved.
  78266. *
  78267. * Use of this source code is governed by an MIT-style license that can be
  78268. * found in the LICENSE file at https://angular.io/license
  78269. */
  78270. if (typeof ngDevMode !== 'undefined' && ngDevMode) {
  78271. // This helper is to give a reasonable error message to people upgrading to v9 that have not yet
  78272. // installed `@angular/localize` in their app.
  78273. // tslint:disable-next-line: no-toplevel-property-access
  78274. _global.$localize = _global.$localize || function () {
  78275. throw new Error('It looks like your application or one of its dependencies is using i18n.\n' +
  78276. 'Angular 9 introduced a global `$localize()` function that needs to be loaded.\n' +
  78277. 'Please run `ng add @angular/localize` from the Angular CLI.\n' +
  78278. '(For non-CLI projects, add `import \'@angular/localize/init\';` to your `polyfills.ts` file.\n' +
  78279. 'For server-side rendering applications add the import to your `main.server.ts` file.)');
  78280. };
  78281. }
  78282. /**
  78283. * @license
  78284. * Copyright Google LLC All Rights Reserved.
  78285. *
  78286. * Use of this source code is governed by an MIT-style license that can be
  78287. * found in the LICENSE file at https://angular.io/license
  78288. */
  78289. // This file only reexports content of the `src` folder. Keep it that way.
  78290. /**
  78291. * @license
  78292. * Copyright Google LLC All Rights Reserved.
  78293. *
  78294. * Use of this source code is governed by an MIT-style license that can be
  78295. * found in the LICENSE file at https://angular.io/license
  78296. */
  78297. /**
  78298. * Generated bundle index. Do not edit.
  78299. */
  78300. //# sourceMappingURL=core.js.map
  78301. /***/ }),
  78302. /***/ "gRHU":
  78303. /*!*********************************************************!*\
  78304. !*** ./node_modules/rxjs/_esm2015/internal/Observer.js ***!
  78305. \*********************************************************/
  78306. /*! exports provided: empty */
  78307. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  78308. "use strict";
  78309. __webpack_require__.r(__webpack_exports__);
  78310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return empty; });
  78311. /* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./config */ "2fFW");
  78312. /* harmony import */ var _util_hostReportError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/hostReportError */ "NJ4a");
  78313. const empty = {
  78314. closed: true,
  78315. next(value) { },
  78316. error(err) {
  78317. if (_config__WEBPACK_IMPORTED_MODULE_0__["config"].useDeprecatedSynchronousErrorHandling) {
  78318. throw err;
  78319. }
  78320. else {
  78321. Object(_util_hostReportError__WEBPACK_IMPORTED_MODULE_1__["hostReportError"])(err);
  78322. }
  78323. },
  78324. complete() { }
  78325. };
  78326. //# sourceMappingURL=Observer.js.map
  78327. /***/ }),
  78328. /***/ "gcYM":
  78329. /*!***********************************************************************!*\
  78330. !*** ./node_modules/rxjs/_esm2015/internal/operators/throttleTime.js ***!
  78331. \***********************************************************************/
  78332. /*! exports provided: throttleTime */
  78333. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  78334. "use strict";
  78335. __webpack_require__.r(__webpack_exports__);
  78336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttleTime", function() { return throttleTime; });
  78337. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  78338. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  78339. /* harmony import */ var _throttle__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./throttle */ "yuhW");
  78340. function throttleTime(duration, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"], config = _throttle__WEBPACK_IMPORTED_MODULE_2__["defaultThrottleConfig"]) {
  78341. return (source) => source.lift(new ThrottleTimeOperator(duration, scheduler, config.leading, config.trailing));
  78342. }
  78343. class ThrottleTimeOperator {
  78344. constructor(duration, scheduler, leading, trailing) {
  78345. this.duration = duration;
  78346. this.scheduler = scheduler;
  78347. this.leading = leading;
  78348. this.trailing = trailing;
  78349. }
  78350. call(subscriber, source) {
  78351. return source.subscribe(new ThrottleTimeSubscriber(subscriber, this.duration, this.scheduler, this.leading, this.trailing));
  78352. }
  78353. }
  78354. class ThrottleTimeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  78355. constructor(destination, duration, scheduler, leading, trailing) {
  78356. super(destination);
  78357. this.duration = duration;
  78358. this.scheduler = scheduler;
  78359. this.leading = leading;
  78360. this.trailing = trailing;
  78361. this._hasTrailingValue = false;
  78362. this._trailingValue = null;
  78363. }
  78364. _next(value) {
  78365. if (this.throttled) {
  78366. if (this.trailing) {
  78367. this._trailingValue = value;
  78368. this._hasTrailingValue = true;
  78369. }
  78370. }
  78371. else {
  78372. this.add(this.throttled = this.scheduler.schedule(dispatchNext, this.duration, { subscriber: this }));
  78373. if (this.leading) {
  78374. this.destination.next(value);
  78375. }
  78376. else if (this.trailing) {
  78377. this._trailingValue = value;
  78378. this._hasTrailingValue = true;
  78379. }
  78380. }
  78381. }
  78382. _complete() {
  78383. if (this._hasTrailingValue) {
  78384. this.destination.next(this._trailingValue);
  78385. this.destination.complete();
  78386. }
  78387. else {
  78388. this.destination.complete();
  78389. }
  78390. }
  78391. clearThrottle() {
  78392. const throttled = this.throttled;
  78393. if (throttled) {
  78394. if (this.trailing && this._hasTrailingValue) {
  78395. this.destination.next(this._trailingValue);
  78396. this._trailingValue = null;
  78397. this._hasTrailingValue = false;
  78398. }
  78399. throttled.unsubscribe();
  78400. this.remove(throttled);
  78401. this.throttled = null;
  78402. }
  78403. }
  78404. }
  78405. function dispatchNext(arg) {
  78406. const { subscriber } = arg;
  78407. subscriber.clearThrottle();
  78408. }
  78409. //# sourceMappingURL=throttleTime.js.map
  78410. /***/ }),
  78411. /***/ "hKy8":
  78412. /*!*****************************************************************!*\
  78413. !*** ./node_modules/rxjs/_esm2015/internal/observable/pairs.js ***!
  78414. \*****************************************************************/
  78415. /*! exports provided: pairs, dispatch */
  78416. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  78417. "use strict";
  78418. __webpack_require__.r(__webpack_exports__);
  78419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return pairs; });
  78420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dispatch", function() { return dispatch; });
  78421. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  78422. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY");
  78423. function pairs(obj, scheduler) {
  78424. if (!scheduler) {
  78425. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  78426. const keys = Object.keys(obj);
  78427. for (let i = 0; i < keys.length && !subscriber.closed; i++) {
  78428. const key = keys[i];
  78429. if (obj.hasOwnProperty(key)) {
  78430. subscriber.next([key, obj[key]]);
  78431. }
  78432. }
  78433. subscriber.complete();
  78434. });
  78435. }
  78436. else {
  78437. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  78438. const keys = Object.keys(obj);
  78439. const subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
  78440. subscription.add(scheduler.schedule(dispatch, 0, { keys, index: 0, subscriber, subscription, obj }));
  78441. return subscription;
  78442. });
  78443. }
  78444. }
  78445. function dispatch(state) {
  78446. const { keys, index, subscriber, subscription, obj } = state;
  78447. if (!subscriber.closed) {
  78448. if (index < keys.length) {
  78449. const key = keys[index];
  78450. subscriber.next([key, obj[key]]);
  78451. subscription.add(this.schedule({ keys, index: index + 1, subscriber, subscription, obj }));
  78452. }
  78453. else {
  78454. subscriber.complete();
  78455. }
  78456. }
  78457. }
  78458. //# sourceMappingURL=pairs.js.map
  78459. /***/ }),
  78460. /***/ "iKkX":
  78461. /*!*******************************************************************************!*\
  78462. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/VirtualTimeScheduler.js ***!
  78463. \*******************************************************************************/
  78464. /*! exports provided: VirtualTimeScheduler, VirtualAction */
  78465. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  78466. "use strict";
  78467. __webpack_require__.r(__webpack_exports__);
  78468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VirtualTimeScheduler", function() { return VirtualTimeScheduler; });
  78469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VirtualAction", function() { return VirtualAction; });
  78470. /* harmony import */ var _AsyncAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncAction */ "3N8a");
  78471. /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AsyncScheduler */ "IjjT");
  78472. class VirtualTimeScheduler extends _AsyncScheduler__WEBPACK_IMPORTED_MODULE_1__["AsyncScheduler"] {
  78473. constructor(SchedulerAction = VirtualAction, maxFrames = Number.POSITIVE_INFINITY) {
  78474. super(SchedulerAction, () => this.frame);
  78475. this.maxFrames = maxFrames;
  78476. this.frame = 0;
  78477. this.index = -1;
  78478. }
  78479. flush() {
  78480. const { actions, maxFrames } = this;
  78481. let error, action;
  78482. while ((action = actions[0]) && action.delay <= maxFrames) {
  78483. actions.shift();
  78484. this.frame = action.delay;
  78485. if (error = action.execute(action.state, action.delay)) {
  78486. break;
  78487. }
  78488. }
  78489. if (error) {
  78490. while (action = actions.shift()) {
  78491. action.unsubscribe();
  78492. }
  78493. throw error;
  78494. }
  78495. }
  78496. }
  78497. VirtualTimeScheduler.frameTimeFactor = 10;
  78498. class VirtualAction extends _AsyncAction__WEBPACK_IMPORTED_MODULE_0__["AsyncAction"] {
  78499. constructor(scheduler, work, index = scheduler.index += 1) {
  78500. super(scheduler, work);
  78501. this.scheduler = scheduler;
  78502. this.work = work;
  78503. this.index = index;
  78504. this.active = true;
  78505. this.index = scheduler.index = index;
  78506. }
  78507. schedule(state, delay = 0) {
  78508. if (!this.id) {
  78509. return super.schedule(state, delay);
  78510. }
  78511. this.active = false;
  78512. const action = new VirtualAction(this.scheduler, this.work);
  78513. this.add(action);
  78514. return action.schedule(state, delay);
  78515. }
  78516. requestAsyncId(scheduler, id, delay = 0) {
  78517. this.delay = scheduler.frame + delay;
  78518. const { actions } = scheduler;
  78519. actions.push(this);
  78520. actions.sort(VirtualAction.sortActions);
  78521. return true;
  78522. }
  78523. recycleAsyncId(scheduler, id, delay = 0) {
  78524. return undefined;
  78525. }
  78526. _execute(state, delay) {
  78527. if (this.active === true) {
  78528. return super._execute(state, delay);
  78529. }
  78530. }
  78531. static sortActions(a, b) {
  78532. if (a.delay === b.delay) {
  78533. if (a.index === b.index) {
  78534. return 0;
  78535. }
  78536. else if (a.index > b.index) {
  78537. return 1;
  78538. }
  78539. else {
  78540. return -1;
  78541. }
  78542. }
  78543. else if (a.delay > b.delay) {
  78544. return 1;
  78545. }
  78546. else {
  78547. return -1;
  78548. }
  78549. }
  78550. }
  78551. //# sourceMappingURL=VirtualTimeScheduler.js.map
  78552. /***/ }),
  78553. /***/ "itXk":
  78554. /*!*************************************************************************!*\
  78555. !*** ./node_modules/rxjs/_esm2015/internal/observable/combineLatest.js ***!
  78556. \*************************************************************************/
  78557. /*! exports provided: combineLatest, CombineLatestOperator, CombineLatestSubscriber */
  78558. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  78559. "use strict";
  78560. __webpack_require__.r(__webpack_exports__);
  78561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return combineLatest; });
  78562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CombineLatestOperator", function() { return CombineLatestOperator; });
  78563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CombineLatestSubscriber", function() { return CombineLatestSubscriber; });
  78564. /* harmony import */ var _util_isScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../util/isScheduler */ "z+Ro");
  78565. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  78566. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  78567. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  78568. /* harmony import */ var _fromArray__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./fromArray */ "yCtX");
  78569. const NONE = {};
  78570. function combineLatest(...observables) {
  78571. let resultSelector = null;
  78572. let scheduler = null;
  78573. if (Object(_util_isScheduler__WEBPACK_IMPORTED_MODULE_0__["isScheduler"])(observables[observables.length - 1])) {
  78574. scheduler = observables.pop();
  78575. }
  78576. if (typeof observables[observables.length - 1] === 'function') {
  78577. resultSelector = observables.pop();
  78578. }
  78579. if (observables.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(observables[0])) {
  78580. observables = observables[0];
  78581. }
  78582. return Object(_fromArray__WEBPACK_IMPORTED_MODULE_4__["fromArray"])(observables, scheduler).lift(new CombineLatestOperator(resultSelector));
  78583. }
  78584. class CombineLatestOperator {
  78585. constructor(resultSelector) {
  78586. this.resultSelector = resultSelector;
  78587. }
  78588. call(subscriber, source) {
  78589. return source.subscribe(new CombineLatestSubscriber(subscriber, this.resultSelector));
  78590. }
  78591. }
  78592. class CombineLatestSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] {
  78593. constructor(destination, resultSelector) {
  78594. super(destination);
  78595. this.resultSelector = resultSelector;
  78596. this.active = 0;
  78597. this.values = [];
  78598. this.observables = [];
  78599. }
  78600. _next(observable) {
  78601. this.values.push(NONE);
  78602. this.observables.push(observable);
  78603. }
  78604. _complete() {
  78605. const observables = this.observables;
  78606. const len = observables.length;
  78607. if (len === 0) {
  78608. this.destination.complete();
  78609. }
  78610. else {
  78611. this.active = len;
  78612. this.toRespond = len;
  78613. for (let i = 0; i < len; i++) {
  78614. const observable = observables[i];
  78615. this.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, observable, observable, i));
  78616. }
  78617. }
  78618. }
  78619. notifyComplete(unused) {
  78620. if ((this.active -= 1) === 0) {
  78621. this.destination.complete();
  78622. }
  78623. }
  78624. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  78625. const values = this.values;
  78626. const oldVal = values[outerIndex];
  78627. const toRespond = !this.toRespond
  78628. ? 0
  78629. : oldVal === NONE ? --this.toRespond : this.toRespond;
  78630. values[outerIndex] = innerValue;
  78631. if (toRespond === 0) {
  78632. if (this.resultSelector) {
  78633. this._tryResultSelector(values);
  78634. }
  78635. else {
  78636. this.destination.next(values.slice());
  78637. }
  78638. }
  78639. }
  78640. _tryResultSelector(values) {
  78641. let result;
  78642. try {
  78643. result = this.resultSelector.apply(this, values);
  78644. }
  78645. catch (err) {
  78646. this.destination.error(err);
  78647. return;
  78648. }
  78649. this.destination.next(result);
  78650. }
  78651. }
  78652. //# sourceMappingURL=combineLatest.js.map
  78653. /***/ }),
  78654. /***/ "jZKg":
  78655. /*!************************************************************************!*\
  78656. !*** ./node_modules/rxjs/_esm2015/internal/scheduled/scheduleArray.js ***!
  78657. \************************************************************************/
  78658. /*! exports provided: scheduleArray */
  78659. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  78660. "use strict";
  78661. __webpack_require__.r(__webpack_exports__);
  78662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleArray", function() { return scheduleArray; });
  78663. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  78664. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY");
  78665. function scheduleArray(input, scheduler) {
  78666. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  78667. const sub = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
  78668. let i = 0;
  78669. sub.add(scheduler.schedule(function () {
  78670. if (i === input.length) {
  78671. subscriber.complete();
  78672. return;
  78673. }
  78674. subscriber.next(input[i++]);
  78675. if (!subscriber.closed) {
  78676. sub.add(this.schedule());
  78677. }
  78678. }));
  78679. return sub;
  78680. });
  78681. }
  78682. //# sourceMappingURL=scheduleArray.js.map
  78683. /***/ }),
  78684. /***/ "jhN1":
  78685. /*!******************************************************************************************!*\
  78686. !*** ./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js ***!
  78687. \******************************************************************************************/
  78688. /*! exports provided: ɵgetDOM, BrowserModule, BrowserTransferStateModule, By, DomSanitizer, EVENT_MANAGER_PLUGINS, EventManager, HAMMER_GESTURE_CONFIG, HAMMER_LOADER, HammerGestureConfig, HammerModule, Meta, Title, TransferState, VERSION, disableDebugTools, enableDebugTools, makeStateKey, platformBrowser, ɵBROWSER_SANITIZATION_PROVIDERS, ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__, ɵBrowserDomAdapter, ɵBrowserGetTestability, ɵDomEventsPlugin, ɵDomRendererFactory2, ɵDomSanitizerImpl, ɵDomSharedStylesHost, ɵELEMENT_PROBE_PROVIDERS, ɵELEMENT_PROBE_PROVIDERS__POST_R3__, ɵHAMMER_PROVIDERS__POST_R3__, ɵHammerGesturesPlugin, ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS, ɵKeyEventsPlugin, ɵNAMESPACE_URIS, ɵSharedStylesHost, ɵTRANSITION_ID, ɵangular_packages_platform_browser_platform_browser_a, ɵangular_packages_platform_browser_platform_browser_b, ɵangular_packages_platform_browser_platform_browser_c, ɵangular_packages_platform_browser_platform_browser_d, ɵangular_packages_platform_browser_platform_browser_e, ɵangular_packages_platform_browser_platform_browser_f, ɵangular_packages_platform_browser_platform_browser_g, ɵangular_packages_platform_browser_platform_browser_h, ɵangular_packages_platform_browser_platform_browser_i, ɵangular_packages_platform_browser_platform_browser_j, ɵangular_packages_platform_browser_platform_browser_k, ɵangular_packages_platform_browser_platform_browser_l, ɵangular_packages_platform_browser_platform_browser_m, ɵangular_packages_platform_browser_platform_browser_n, ɵangular_packages_platform_browser_platform_browser_o, ɵescapeHtml, ɵflattenStyles, ɵinitDomAdapter, ɵshimContentAttribute, ɵshimHostAttribute */
  78689. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  78690. "use strict";
  78691. __webpack_require__.r(__webpack_exports__);
  78692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserModule", function() { return BrowserModule; });
  78693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BrowserTransferStateModule", function() { return BrowserTransferStateModule; });
  78694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "By", function() { return By; });
  78695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DomSanitizer", function() { return DomSanitizer; });
  78696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EVENT_MANAGER_PLUGINS", function() { return EVENT_MANAGER_PLUGINS; });
  78697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventManager", function() { return EventManager; });
  78698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HAMMER_GESTURE_CONFIG", function() { return HAMMER_GESTURE_CONFIG; });
  78699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HAMMER_LOADER", function() { return HAMMER_LOADER; });
  78700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HammerGestureConfig", function() { return HammerGestureConfig; });
  78701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HammerModule", function() { return HammerModule; });
  78702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Meta", function() { return Meta; });
  78703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Title", function() { return Title; });
  78704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransferState", function() { return TransferState; });
  78705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
  78706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "disableDebugTools", function() { return disableDebugTools; });
  78707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "enableDebugTools", function() { return enableDebugTools; });
  78708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "makeStateKey", function() { return makeStateKey; });
  78709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "platformBrowser", function() { return platformBrowser; });
  78710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBROWSER_SANITIZATION_PROVIDERS", function() { return BROWSER_SANITIZATION_PROVIDERS; });
  78711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBROWSER_SANITIZATION_PROVIDERS__POST_R3__", function() { return BROWSER_SANITIZATION_PROVIDERS__POST_R3__; });
  78712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBrowserDomAdapter", function() { return BrowserDomAdapter; });
  78713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBrowserGetTestability", function() { return BrowserGetTestability; });
  78714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵDomEventsPlugin", function() { return DomEventsPlugin; });
  78715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵDomRendererFactory2", function() { return DomRendererFactory2; });
  78716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵDomSanitizerImpl", function() { return DomSanitizerImpl; });
  78717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵDomSharedStylesHost", function() { return DomSharedStylesHost; });
  78718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵELEMENT_PROBE_PROVIDERS", function() { return ELEMENT_PROBE_PROVIDERS; });
  78719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵELEMENT_PROBE_PROVIDERS__POST_R3__", function() { return ELEMENT_PROBE_PROVIDERS__POST_R3__; });
  78720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵHAMMER_PROVIDERS__POST_R3__", function() { return HAMMER_PROVIDERS__POST_R3__; });
  78721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵHammerGesturesPlugin", function() { return HammerGesturesPlugin; });
  78722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS", function() { return INTERNAL_BROWSER_PLATFORM_PROVIDERS; });
  78723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵKeyEventsPlugin", function() { return KeyEventsPlugin; });
  78724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNAMESPACE_URIS", function() { return NAMESPACE_URIS; });
  78725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵSharedStylesHost", function() { return SharedStylesHost; });
  78726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵTRANSITION_ID", function() { return TRANSITION_ID; });
  78727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_a", function() { return errorHandler; });
  78728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_b", function() { return _document; });
  78729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_c", function() { return BROWSER_MODULE_PROVIDERS; });
  78730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_d", function() { return createMeta; });
  78731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_e", function() { return createTitle; });
  78732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_f", function() { return initTransferState; });
  78733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_g", function() { return EventManagerPlugin; });
  78734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_h", function() { return HAMMER_PROVIDERS__PRE_R3__; });
  78735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_i", function() { return HAMMER_PROVIDERS; });
  78736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_j", function() { return domSanitizerImplFactory; });
  78737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_k", function() { return appInitializerFactory; });
  78738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_l", function() { return SERVER_TRANSITION_PROVIDERS; });
  78739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_m", function() { return _createNgProbeR2; });
  78740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_n", function() { return ELEMENT_PROBE_PROVIDERS__PRE_R3__; });
  78741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_platform_browser_platform_browser_o", function() { return GenericBrowserDomAdapter; });
  78742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵescapeHtml", function() { return escapeHtml; });
  78743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵflattenStyles", function() { return flattenStyles; });
  78744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵinitDomAdapter", function() { return initDomAdapter; });
  78745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵshimContentAttribute", function() { return shimContentAttribute; });
  78746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵshimHostAttribute", function() { return shimHostAttribute; });
  78747. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "ofXK");
  78748. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
  78749. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ɵgetDOM", function() { return _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"]; });
  78750. /**
  78751. * @license Angular v11.0.4
  78752. * (c) 2010-2020 Google LLC. https://angular.io/
  78753. * License: MIT
  78754. */
  78755. /**
  78756. * @license
  78757. * Copyright Google LLC All Rights Reserved.
  78758. *
  78759. * Use of this source code is governed by an MIT-style license that can be
  78760. * found in the LICENSE file at https://angular.io/license
  78761. */
  78762. /**
  78763. * Provides DOM operations in any browser environment.
  78764. *
  78765. * @security Tread carefully! Interacting with the DOM directly is dangerous and
  78766. * can introduce XSS risks.
  78767. */
  78768. class GenericBrowserDomAdapter extends _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵDomAdapter"] {
  78769. constructor() {
  78770. super();
  78771. }
  78772. supportsDOMEvents() {
  78773. return true;
  78774. }
  78775. }
  78776. /**
  78777. * @license
  78778. * Copyright Google LLC All Rights Reserved.
  78779. *
  78780. * Use of this source code is governed by an MIT-style license that can be
  78781. * found in the LICENSE file at https://angular.io/license
  78782. */
  78783. const ɵ0 = () => {
  78784. if (_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['Node']) {
  78785. return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['Node'].prototype.contains || function (node) {
  78786. return !!(this.compareDocumentPosition(node) & 16);
  78787. };
  78788. }
  78789. return undefined;
  78790. };
  78791. const nodeContains = (ɵ0)();
  78792. /**
  78793. * A `DomAdapter` powered by full browser DOM APIs.
  78794. *
  78795. * @security Tread carefully! Interacting with the DOM directly is dangerous and
  78796. * can introduce XSS risks.
  78797. */
  78798. /* tslint:disable:requireParameterType no-console */
  78799. class BrowserDomAdapter extends GenericBrowserDomAdapter {
  78800. static makeCurrent() {
  78801. Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵsetRootDomAdapter"])(new BrowserDomAdapter());
  78802. }
  78803. getProperty(el, name) {
  78804. return el[name];
  78805. }
  78806. log(error) {
  78807. if (window.console) {
  78808. window.console.log && window.console.log(error);
  78809. }
  78810. }
  78811. logGroup(error) {
  78812. if (window.console) {
  78813. window.console.group && window.console.group(error);
  78814. }
  78815. }
  78816. logGroupEnd() {
  78817. if (window.console) {
  78818. window.console.groupEnd && window.console.groupEnd();
  78819. }
  78820. }
  78821. onAndCancel(el, evt, listener) {
  78822. el.addEventListener(evt, listener, false);
  78823. // Needed to follow Dart's subscription semantic, until fix of
  78824. // https://code.google.com/p/dart/issues/detail?id=17406
  78825. return () => {
  78826. el.removeEventListener(evt, listener, false);
  78827. };
  78828. }
  78829. dispatchEvent(el, evt) {
  78830. el.dispatchEvent(evt);
  78831. }
  78832. remove(node) {
  78833. if (node.parentNode) {
  78834. node.parentNode.removeChild(node);
  78835. }
  78836. return node;
  78837. }
  78838. getValue(el) {
  78839. return el.value;
  78840. }
  78841. createElement(tagName, doc) {
  78842. doc = doc || this.getDefaultDocument();
  78843. return doc.createElement(tagName);
  78844. }
  78845. createHtmlDocument() {
  78846. return document.implementation.createHTMLDocument('fakeTitle');
  78847. }
  78848. getDefaultDocument() {
  78849. return document;
  78850. }
  78851. isElementNode(node) {
  78852. return node.nodeType === Node.ELEMENT_NODE;
  78853. }
  78854. isShadowRoot(node) {
  78855. return node instanceof DocumentFragment;
  78856. }
  78857. getGlobalEventTarget(doc, target) {
  78858. if (target === 'window') {
  78859. return window;
  78860. }
  78861. if (target === 'document') {
  78862. return doc;
  78863. }
  78864. if (target === 'body') {
  78865. return doc.body;
  78866. }
  78867. return null;
  78868. }
  78869. getHistory() {
  78870. return window.history;
  78871. }
  78872. getLocation() {
  78873. return window.location;
  78874. }
  78875. getBaseHref(doc) {
  78876. const href = getBaseElementHref();
  78877. return href == null ? null : relativePath(href);
  78878. }
  78879. resetBaseElement() {
  78880. baseElement = null;
  78881. }
  78882. getUserAgent() {
  78883. return window.navigator.userAgent;
  78884. }
  78885. performanceNow() {
  78886. // performance.now() is not available in all browsers, see
  78887. // https://caniuse.com/high-resolution-time
  78888. return window.performance && window.performance.now ? window.performance.now() :
  78889. new Date().getTime();
  78890. }
  78891. supportsCookies() {
  78892. return true;
  78893. }
  78894. getCookie(name) {
  78895. return Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵparseCookieValue"])(document.cookie, name);
  78896. }
  78897. }
  78898. let baseElement = null;
  78899. function getBaseElementHref() {
  78900. if (!baseElement) {
  78901. baseElement = document.querySelector('base');
  78902. if (!baseElement) {
  78903. return null;
  78904. }
  78905. }
  78906. return baseElement.getAttribute('href');
  78907. }
  78908. // based on urlUtils.js in AngularJS 1
  78909. let urlParsingNode;
  78910. function relativePath(url) {
  78911. if (!urlParsingNode) {
  78912. urlParsingNode = document.createElement('a');
  78913. }
  78914. urlParsingNode.setAttribute('href', url);
  78915. return (urlParsingNode.pathname.charAt(0) === '/') ? urlParsingNode.pathname :
  78916. '/' + urlParsingNode.pathname;
  78917. }
  78918. /**
  78919. * @license
  78920. * Copyright Google LLC All Rights Reserved.
  78921. *
  78922. * Use of this source code is governed by an MIT-style license that can be
  78923. * found in the LICENSE file at https://angular.io/license
  78924. */
  78925. /**
  78926. * An id that identifies a particular application being bootstrapped, that should
  78927. * match across the client/server boundary.
  78928. */
  78929. const TRANSITION_ID = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('TRANSITION_ID');
  78930. function appInitializerFactory(transitionId, document, injector) {
  78931. return () => {
  78932. // Wait for all application initializers to be completed before removing the styles set by
  78933. // the server.
  78934. injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationInitStatus"]).donePromise.then(() => {
  78935. const dom = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])();
  78936. const styles = Array.prototype.slice.apply(document.querySelectorAll(`style[ng-transition]`));
  78937. styles.filter(el => el.getAttribute('ng-transition') === transitionId)
  78938. .forEach(el => dom.remove(el));
  78939. });
  78940. };
  78941. }
  78942. const SERVER_TRANSITION_PROVIDERS = [
  78943. {
  78944. provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_INITIALIZER"],
  78945. useFactory: appInitializerFactory,
  78946. deps: [TRANSITION_ID, _angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]],
  78947. multi: true
  78948. },
  78949. ];
  78950. /**
  78951. * @license
  78952. * Copyright Google LLC All Rights Reserved.
  78953. *
  78954. * Use of this source code is governed by an MIT-style license that can be
  78955. * found in the LICENSE file at https://angular.io/license
  78956. */
  78957. class BrowserGetTestability {
  78958. static init() {
  78959. Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["setTestabilityGetter"])(new BrowserGetTestability());
  78960. }
  78961. addToWindow(registry) {
  78962. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAngularTestability'] = (elem, findInAncestors = true) => {
  78963. const testability = registry.findTestabilityInTree(elem, findInAncestors);
  78964. if (testability == null) {
  78965. throw new Error('Could not find testability for element.');
  78966. }
  78967. return testability;
  78968. };
  78969. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularTestabilities'] = () => registry.getAllTestabilities();
  78970. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularRootElements'] = () => registry.getAllRootElements();
  78971. const whenAllStable = (callback /** TODO #9100 */) => {
  78972. const testabilities = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['getAllAngularTestabilities']();
  78973. let count = testabilities.length;
  78974. let didWork = false;
  78975. const decrement = function (didWork_ /** TODO #9100 */) {
  78976. didWork = didWork || didWork_;
  78977. count--;
  78978. if (count == 0) {
  78979. callback(didWork);
  78980. }
  78981. };
  78982. testabilities.forEach(function (testability /** TODO #9100 */) {
  78983. testability.whenStable(decrement);
  78984. });
  78985. };
  78986. if (!_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers']) {
  78987. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers'] = [];
  78988. }
  78989. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['frameworkStabilizers'].push(whenAllStable);
  78990. }
  78991. findTestabilityInTree(registry, elem, findInAncestors) {
  78992. if (elem == null) {
  78993. return null;
  78994. }
  78995. const t = registry.getTestability(elem);
  78996. if (t != null) {
  78997. return t;
  78998. }
  78999. else if (!findInAncestors) {
  79000. return null;
  79001. }
  79002. if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().isShadowRoot(elem)) {
  79003. return this.findTestabilityInTree(registry, elem.host, true);
  79004. }
  79005. return this.findTestabilityInTree(registry, elem.parentElement, true);
  79006. }
  79007. }
  79008. /**
  79009. * @license
  79010. * Copyright Google LLC All Rights Reserved.
  79011. *
  79012. * Use of this source code is governed by an MIT-style license that can be
  79013. * found in the LICENSE file at https://angular.io/license
  79014. */
  79015. const CAMEL_CASE_REGEXP = /([A-Z])/g;
  79016. const DASH_CASE_REGEXP = /-([a-z])/g;
  79017. function camelCaseToDashCase(input) {
  79018. return input.replace(CAMEL_CASE_REGEXP, (...m) => '-' + m[1].toLowerCase());
  79019. }
  79020. function dashCaseToCamelCase(input) {
  79021. return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
  79022. }
  79023. /**
  79024. * Exports the value under a given `name` in the global property `ng`. For example `ng.probe` if
  79025. * `name` is `'probe'`.
  79026. * @param name Name under which it will be exported. Keep in mind this will be a property of the
  79027. * global `ng` object.
  79028. * @param value The value to export.
  79029. */
  79030. function exportNgVar(name, value) {
  79031. if (typeof COMPILED === 'undefined' || !COMPILED) {
  79032. // Note: we can't export `ng` when using closure enhanced optimization as:
  79033. // - closure declares globals itself for minified names, which sometimes clobber our `ng` global
  79034. // - we can't declare a closure extern as the namespace `ng` is already used within Google
  79035. // for typings for angularJS (via `goog.provide('ng....')`).
  79036. const ng = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['ng'] = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵglobal"]['ng'] || {};
  79037. ng[name] = value;
  79038. }
  79039. }
  79040. /**
  79041. * @license
  79042. * Copyright Google LLC All Rights Reserved.
  79043. *
  79044. * Use of this source code is governed by an MIT-style license that can be
  79045. * found in the LICENSE file at https://angular.io/license
  79046. */
  79047. const ɵ0$1 = () => ({
  79048. 'ApplicationRef': _angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationRef"],
  79049. 'NgZone': _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"],
  79050. });
  79051. const CORE_TOKENS = (ɵ0$1)();
  79052. const INSPECT_GLOBAL_NAME = 'probe';
  79053. const CORE_TOKENS_GLOBAL_NAME = 'coreTokens';
  79054. /**
  79055. * Returns a {@link DebugElement} for the given native DOM element, or
  79056. * null if the given native element does not have an Angular view associated
  79057. * with it.
  79058. */
  79059. function inspectNativeElementR2(element) {
  79060. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵgetDebugNodeR2"])(element);
  79061. }
  79062. function _createNgProbeR2(coreTokens) {
  79063. exportNgVar(INSPECT_GLOBAL_NAME, inspectNativeElementR2);
  79064. exportNgVar(CORE_TOKENS_GLOBAL_NAME, Object.assign(Object.assign({}, CORE_TOKENS), _ngProbeTokensToMap(coreTokens || [])));
  79065. return () => inspectNativeElementR2;
  79066. }
  79067. function _ngProbeTokensToMap(tokens) {
  79068. return tokens.reduce((prev, t) => (prev[t.name] = t.token, prev), {});
  79069. }
  79070. /**
  79071. * In Ivy, we don't support NgProbe because we have our own set of testing utilities
  79072. * with more robust functionality.
  79073. *
  79074. * We shouldn't bring in NgProbe because it prevents DebugNode and friends from
  79075. * tree-shaking properly.
  79076. */
  79077. const ELEMENT_PROBE_PROVIDERS__POST_R3__ = [];
  79078. /**
  79079. * Providers which support debugging Angular applications (e.g. via `ng.probe`).
  79080. */
  79081. const ELEMENT_PROBE_PROVIDERS__PRE_R3__ = [
  79082. {
  79083. provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_INITIALIZER"],
  79084. useFactory: _createNgProbeR2,
  79085. deps: [
  79086. [_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgProbeToken"], new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]()],
  79087. ],
  79088. multi: true,
  79089. },
  79090. ];
  79091. const ELEMENT_PROBE_PROVIDERS = ELEMENT_PROBE_PROVIDERS__POST_R3__;
  79092. /**
  79093. * @license
  79094. * Copyright Google LLC All Rights Reserved.
  79095. *
  79096. * Use of this source code is governed by an MIT-style license that can be
  79097. * found in the LICENSE file at https://angular.io/license
  79098. */
  79099. /**
  79100. * The injection token for the event-manager plug-in service.
  79101. *
  79102. * @publicApi
  79103. */
  79104. const EVENT_MANAGER_PLUGINS = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('EventManagerPlugins');
  79105. /**
  79106. * An injectable service that provides event management for Angular
  79107. * through a browser plug-in.
  79108. *
  79109. * @publicApi
  79110. */
  79111. class EventManager {
  79112. /**
  79113. * Initializes an instance of the event-manager service.
  79114. */
  79115. constructor(plugins, _zone) {
  79116. this._zone = _zone;
  79117. this._eventNameToPlugin = new Map();
  79118. plugins.forEach(p => p.manager = this);
  79119. this._plugins = plugins.slice().reverse();
  79120. }
  79121. /**
  79122. * Registers a handler for a specific element and event.
  79123. *
  79124. * @param element The HTML element to receive event notifications.
  79125. * @param eventName The name of the event to listen for.
  79126. * @param handler A function to call when the notification occurs. Receives the
  79127. * event object as an argument.
  79128. * @returns A callback function that can be used to remove the handler.
  79129. */
  79130. addEventListener(element, eventName, handler) {
  79131. const plugin = this._findPluginFor(eventName);
  79132. return plugin.addEventListener(element, eventName, handler);
  79133. }
  79134. /**
  79135. * Registers a global handler for an event in a target view.
  79136. *
  79137. * @param target A target for global event notifications. One of "window", "document", or "body".
  79138. * @param eventName The name of the event to listen for.
  79139. * @param handler A function to call when the notification occurs. Receives the
  79140. * event object as an argument.
  79141. * @returns A callback function that can be used to remove the handler.
  79142. */
  79143. addGlobalEventListener(target, eventName, handler) {
  79144. const plugin = this._findPluginFor(eventName);
  79145. return plugin.addGlobalEventListener(target, eventName, handler);
  79146. }
  79147. /**
  79148. * Retrieves the compilation zone in which event listeners are registered.
  79149. */
  79150. getZone() {
  79151. return this._zone;
  79152. }
  79153. /** @internal */
  79154. _findPluginFor(eventName) {
  79155. const plugin = this._eventNameToPlugin.get(eventName);
  79156. if (plugin) {
  79157. return plugin;
  79158. }
  79159. const plugins = this._plugins;
  79160. for (let i = 0; i < plugins.length; i++) {
  79161. const plugin = plugins[i];
  79162. if (plugin.supports(eventName)) {
  79163. this._eventNameToPlugin.set(eventName, plugin);
  79164. return plugin;
  79165. }
  79166. }
  79167. throw new Error(`No event manager plugin found for event ${eventName}`);
  79168. }
  79169. }
  79170. EventManager.ɵfac = function EventManager_Factory(t) { return new (t || EventManager)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](EVENT_MANAGER_PLUGINS), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); };
  79171. EventManager.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: EventManager, factory: EventManager.ɵfac });
  79172. EventManager.ctorParameters = () => [
  79173. { type: Array, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [EVENT_MANAGER_PLUGINS,] }] },
  79174. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }
  79175. ];
  79176. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](EventManager, [{
  79177. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  79178. }], function () { return [{ type: Array, decorators: [{
  79179. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  79180. args: [EVENT_MANAGER_PLUGINS]
  79181. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })();
  79182. class EventManagerPlugin {
  79183. constructor(_doc) {
  79184. this._doc = _doc;
  79185. }
  79186. addGlobalEventListener(element, eventName, handler) {
  79187. const target = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().getGlobalEventTarget(this._doc, element);
  79188. if (!target) {
  79189. throw new Error(`Unsupported event target ${target} for event ${eventName}`);
  79190. }
  79191. return this.addEventListener(target, eventName, handler);
  79192. }
  79193. }
  79194. /**
  79195. * @license
  79196. * Copyright Google LLC All Rights Reserved.
  79197. *
  79198. * Use of this source code is governed by an MIT-style license that can be
  79199. * found in the LICENSE file at https://angular.io/license
  79200. */
  79201. class SharedStylesHost {
  79202. constructor() {
  79203. /** @internal */
  79204. this._stylesSet = new Set();
  79205. }
  79206. addStyles(styles) {
  79207. const additions = new Set();
  79208. styles.forEach(style => {
  79209. if (!this._stylesSet.has(style)) {
  79210. this._stylesSet.add(style);
  79211. additions.add(style);
  79212. }
  79213. });
  79214. this.onStylesAdded(additions);
  79215. }
  79216. onStylesAdded(additions) { }
  79217. getAllStyles() {
  79218. return Array.from(this._stylesSet);
  79219. }
  79220. }
  79221. SharedStylesHost.ɵfac = function SharedStylesHost_Factory(t) { return new (t || SharedStylesHost)(); };
  79222. SharedStylesHost.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: SharedStylesHost, factory: SharedStylesHost.ɵfac });
  79223. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](SharedStylesHost, [{
  79224. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  79225. }], function () { return []; }, null); })();
  79226. class DomSharedStylesHost extends SharedStylesHost {
  79227. constructor(_doc) {
  79228. super();
  79229. this._doc = _doc;
  79230. this._hostNodes = new Set();
  79231. this._styleNodes = new Set();
  79232. this._hostNodes.add(_doc.head);
  79233. }
  79234. _addStylesToHost(styles, host) {
  79235. styles.forEach((style) => {
  79236. const styleEl = this._doc.createElement('style');
  79237. styleEl.textContent = style;
  79238. this._styleNodes.add(host.appendChild(styleEl));
  79239. });
  79240. }
  79241. addHost(hostNode) {
  79242. this._addStylesToHost(this._stylesSet, hostNode);
  79243. this._hostNodes.add(hostNode);
  79244. }
  79245. removeHost(hostNode) {
  79246. this._hostNodes.delete(hostNode);
  79247. }
  79248. onStylesAdded(additions) {
  79249. this._hostNodes.forEach(hostNode => this._addStylesToHost(additions, hostNode));
  79250. }
  79251. ngOnDestroy() {
  79252. this._styleNodes.forEach(styleNode => Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().remove(styleNode));
  79253. }
  79254. }
  79255. DomSharedStylesHost.ɵfac = function DomSharedStylesHost_Factory(t) { return new (t || DomSharedStylesHost)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"])); };
  79256. DomSharedStylesHost.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: DomSharedStylesHost, factory: DomSharedStylesHost.ɵfac });
  79257. DomSharedStylesHost.ctorParameters = () => [
  79258. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"],] }] }
  79259. ];
  79260. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomSharedStylesHost, [{
  79261. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  79262. }], function () { return [{ type: undefined, decorators: [{
  79263. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  79264. args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
  79265. }] }]; }, null); })();
  79266. /**
  79267. * @license
  79268. * Copyright Google LLC All Rights Reserved.
  79269. *
  79270. * Use of this source code is governed by an MIT-style license that can be
  79271. * found in the LICENSE file at https://angular.io/license
  79272. */
  79273. const NAMESPACE_URIS = {
  79274. 'svg': 'http://www.w3.org/2000/svg',
  79275. 'xhtml': 'http://www.w3.org/1999/xhtml',
  79276. 'xlink': 'http://www.w3.org/1999/xlink',
  79277. 'xml': 'http://www.w3.org/XML/1998/namespace',
  79278. 'xmlns': 'http://www.w3.org/2000/xmlns/',
  79279. };
  79280. const COMPONENT_REGEX = /%COMP%/g;
  79281. const NG_DEV_MODE = typeof ngDevMode === 'undefined' || !!ngDevMode;
  79282. const COMPONENT_VARIABLE = '%COMP%';
  79283. const HOST_ATTR = `_nghost-${COMPONENT_VARIABLE}`;
  79284. const CONTENT_ATTR = `_ngcontent-${COMPONENT_VARIABLE}`;
  79285. function shimContentAttribute(componentShortId) {
  79286. return CONTENT_ATTR.replace(COMPONENT_REGEX, componentShortId);
  79287. }
  79288. function shimHostAttribute(componentShortId) {
  79289. return HOST_ATTR.replace(COMPONENT_REGEX, componentShortId);
  79290. }
  79291. function flattenStyles(compId, styles, target) {
  79292. for (let i = 0; i < styles.length; i++) {
  79293. let style = styles[i];
  79294. if (Array.isArray(style)) {
  79295. flattenStyles(compId, style, target);
  79296. }
  79297. else {
  79298. style = style.replace(COMPONENT_REGEX, compId);
  79299. target.push(style);
  79300. }
  79301. }
  79302. return target;
  79303. }
  79304. function decoratePreventDefault(eventHandler) {
  79305. // `DebugNode.triggerEventHandler` needs to know if the listener was created with
  79306. // decoratePreventDefault or is a listener added outside the Angular context so it can handle the
  79307. // two differently. In the first case, the special '__ngUnwrap__' token is passed to the unwrap
  79308. // the listener (see below).
  79309. return (event) => {
  79310. // Ivy uses '__ngUnwrap__' as a special token that allows us to unwrap the function
  79311. // so that it can be invoked programmatically by `DebugNode.triggerEventHandler`. The debug_node
  79312. // can inspect the listener toString contents for the existence of this special token. Because
  79313. // the token is a string literal, it is ensured to not be modified by compiled code.
  79314. if (event === '__ngUnwrap__') {
  79315. return eventHandler;
  79316. }
  79317. const allowDefaultBehavior = eventHandler(event);
  79318. if (allowDefaultBehavior === false) {
  79319. // TODO(tbosch): move preventDefault into event plugins...
  79320. event.preventDefault();
  79321. event.returnValue = false;
  79322. }
  79323. return undefined;
  79324. };
  79325. }
  79326. let hasLoggedNativeEncapsulationWarning = false;
  79327. class DomRendererFactory2 {
  79328. constructor(eventManager, sharedStylesHost, appId) {
  79329. this.eventManager = eventManager;
  79330. this.sharedStylesHost = sharedStylesHost;
  79331. this.appId = appId;
  79332. this.rendererByCompId = new Map();
  79333. this.defaultRenderer = new DefaultDomRenderer2(eventManager);
  79334. }
  79335. createRenderer(element, type) {
  79336. if (!element || !type) {
  79337. return this.defaultRenderer;
  79338. }
  79339. switch (type.encapsulation) {
  79340. case _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].Emulated: {
  79341. let renderer = this.rendererByCompId.get(type.id);
  79342. if (!renderer) {
  79343. renderer = new EmulatedEncapsulationDomRenderer2(this.eventManager, this.sharedStylesHost, type, this.appId);
  79344. this.rendererByCompId.set(type.id, renderer);
  79345. }
  79346. renderer.applyToHost(element);
  79347. return renderer;
  79348. }
  79349. case 1:
  79350. case _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].ShadowDom:
  79351. // TODO(FW-2290): remove the `case 1:` fallback logic and the warning in v12.
  79352. if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
  79353. !hasLoggedNativeEncapsulationWarning && type.encapsulation === 1) {
  79354. hasLoggedNativeEncapsulationWarning = true;
  79355. console.warn('ViewEncapsulation.Native is no longer supported. Falling back to ViewEncapsulation.ShadowDom. The fallback will be removed in v12.');
  79356. }
  79357. return new ShadowDomRenderer(this.eventManager, this.sharedStylesHost, element, type);
  79358. default: {
  79359. if (!this.rendererByCompId.has(type.id)) {
  79360. const styles = flattenStyles(type.id, type.styles, []);
  79361. this.sharedStylesHost.addStyles(styles);
  79362. this.rendererByCompId.set(type.id, this.defaultRenderer);
  79363. }
  79364. return this.defaultRenderer;
  79365. }
  79366. }
  79367. }
  79368. begin() { }
  79369. end() { }
  79370. }
  79371. DomRendererFactory2.ɵfac = function DomRendererFactory2_Factory(t) { return new (t || DomRendererFactory2)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](EventManager), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](DomSharedStylesHost), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"])); };
  79372. DomRendererFactory2.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: DomRendererFactory2, factory: DomRendererFactory2.ɵfac });
  79373. DomRendererFactory2.ctorParameters = () => [
  79374. { type: EventManager },
  79375. { type: DomSharedStylesHost },
  79376. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"],] }] }
  79377. ];
  79378. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomRendererFactory2, [{
  79379. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  79380. }], function () { return [{ type: EventManager }, { type: DomSharedStylesHost }, { type: String, decorators: [{
  79381. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  79382. args: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]]
  79383. }] }]; }, null); })();
  79384. class DefaultDomRenderer2 {
  79385. constructor(eventManager) {
  79386. this.eventManager = eventManager;
  79387. this.data = Object.create(null);
  79388. }
  79389. destroy() { }
  79390. createElement(name, namespace) {
  79391. if (namespace) {
  79392. // In cases where Ivy (not ViewEngine) is giving us the actual namespace, the look up by key
  79393. // will result in undefined, so we just return the namespace here.
  79394. return document.createElementNS(NAMESPACE_URIS[namespace] || namespace, name);
  79395. }
  79396. return document.createElement(name);
  79397. }
  79398. createComment(value) {
  79399. return document.createComment(value);
  79400. }
  79401. createText(value) {
  79402. return document.createTextNode(value);
  79403. }
  79404. appendChild(parent, newChild) {
  79405. parent.appendChild(newChild);
  79406. }
  79407. insertBefore(parent, newChild, refChild) {
  79408. if (parent) {
  79409. parent.insertBefore(newChild, refChild);
  79410. }
  79411. }
  79412. removeChild(parent, oldChild) {
  79413. if (parent) {
  79414. parent.removeChild(oldChild);
  79415. }
  79416. }
  79417. selectRootElement(selectorOrNode, preserveContent) {
  79418. let el = typeof selectorOrNode === 'string' ? document.querySelector(selectorOrNode) :
  79419. selectorOrNode;
  79420. if (!el) {
  79421. throw new Error(`The selector "${selectorOrNode}" did not match any elements`);
  79422. }
  79423. if (!preserveContent) {
  79424. el.textContent = '';
  79425. }
  79426. return el;
  79427. }
  79428. parentNode(node) {
  79429. return node.parentNode;
  79430. }
  79431. nextSibling(node) {
  79432. return node.nextSibling;
  79433. }
  79434. setAttribute(el, name, value, namespace) {
  79435. if (namespace) {
  79436. name = namespace + ':' + name;
  79437. // TODO(FW-811): Ivy may cause issues here because it's passing around
  79438. // full URIs for namespaces, therefore this lookup will fail.
  79439. const namespaceUri = NAMESPACE_URIS[namespace];
  79440. if (namespaceUri) {
  79441. el.setAttributeNS(namespaceUri, name, value);
  79442. }
  79443. else {
  79444. el.setAttribute(name, value);
  79445. }
  79446. }
  79447. else {
  79448. el.setAttribute(name, value);
  79449. }
  79450. }
  79451. removeAttribute(el, name, namespace) {
  79452. if (namespace) {
  79453. // TODO(FW-811): Ivy may cause issues here because it's passing around
  79454. // full URIs for namespaces, therefore this lookup will fail.
  79455. const namespaceUri = NAMESPACE_URIS[namespace];
  79456. if (namespaceUri) {
  79457. el.removeAttributeNS(namespaceUri, name);
  79458. }
  79459. else {
  79460. // TODO(FW-811): Since ivy is passing around full URIs for namespaces
  79461. // this could result in properties like `http://www.w3.org/2000/svg:cx="123"`,
  79462. // which is wrong.
  79463. el.removeAttribute(`${namespace}:${name}`);
  79464. }
  79465. }
  79466. else {
  79467. el.removeAttribute(name);
  79468. }
  79469. }
  79470. addClass(el, name) {
  79471. el.classList.add(name);
  79472. }
  79473. removeClass(el, name) {
  79474. el.classList.remove(name);
  79475. }
  79476. setStyle(el, style, value, flags) {
  79477. if (flags & (_angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererStyleFlags2"].DashCase | _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererStyleFlags2"].Important)) {
  79478. el.style.setProperty(style, value, flags & _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererStyleFlags2"].Important ? 'important' : '');
  79479. }
  79480. else {
  79481. el.style[style] = value;
  79482. }
  79483. }
  79484. removeStyle(el, style, flags) {
  79485. if (flags & _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererStyleFlags2"].DashCase) {
  79486. el.style.removeProperty(style);
  79487. }
  79488. else {
  79489. // IE requires '' instead of null
  79490. // see https://github.com/angular/angular/issues/7916
  79491. el.style[style] = '';
  79492. }
  79493. }
  79494. setProperty(el, name, value) {
  79495. NG_DEV_MODE && checkNoSyntheticProp(name, 'property');
  79496. el[name] = value;
  79497. }
  79498. setValue(node, value) {
  79499. node.nodeValue = value;
  79500. }
  79501. listen(target, event, callback) {
  79502. NG_DEV_MODE && checkNoSyntheticProp(event, 'listener');
  79503. if (typeof target === 'string') {
  79504. return this.eventManager.addGlobalEventListener(target, event, decoratePreventDefault(callback));
  79505. }
  79506. return this.eventManager.addEventListener(target, event, decoratePreventDefault(callback));
  79507. }
  79508. }
  79509. const ɵ0$2 = () => '@'.charCodeAt(0);
  79510. const AT_CHARCODE = (ɵ0$2)();
  79511. function checkNoSyntheticProp(name, nameKind) {
  79512. if (name.charCodeAt(0) === AT_CHARCODE) {
  79513. throw new Error(`Found the synthetic ${nameKind} ${name}. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.`);
  79514. }
  79515. }
  79516. class EmulatedEncapsulationDomRenderer2 extends DefaultDomRenderer2 {
  79517. constructor(eventManager, sharedStylesHost, component, appId) {
  79518. super(eventManager);
  79519. this.component = component;
  79520. const styles = flattenStyles(appId + '-' + component.id, component.styles, []);
  79521. sharedStylesHost.addStyles(styles);
  79522. this.contentAttr = shimContentAttribute(appId + '-' + component.id);
  79523. this.hostAttr = shimHostAttribute(appId + '-' + component.id);
  79524. }
  79525. applyToHost(element) {
  79526. super.setAttribute(element, this.hostAttr, '');
  79527. }
  79528. createElement(parent, name) {
  79529. const el = super.createElement(parent, name);
  79530. super.setAttribute(el, this.contentAttr, '');
  79531. return el;
  79532. }
  79533. }
  79534. class ShadowDomRenderer extends DefaultDomRenderer2 {
  79535. constructor(eventManager, sharedStylesHost, hostEl, component) {
  79536. super(eventManager);
  79537. this.sharedStylesHost = sharedStylesHost;
  79538. this.hostEl = hostEl;
  79539. this.shadowRoot = hostEl.attachShadow({ mode: 'open' });
  79540. this.sharedStylesHost.addHost(this.shadowRoot);
  79541. const styles = flattenStyles(component.id, component.styles, []);
  79542. for (let i = 0; i < styles.length; i++) {
  79543. const styleEl = document.createElement('style');
  79544. styleEl.textContent = styles[i];
  79545. this.shadowRoot.appendChild(styleEl);
  79546. }
  79547. }
  79548. nodeOrShadowRoot(node) {
  79549. return node === this.hostEl ? this.shadowRoot : node;
  79550. }
  79551. destroy() {
  79552. this.sharedStylesHost.removeHost(this.shadowRoot);
  79553. }
  79554. appendChild(parent, newChild) {
  79555. return super.appendChild(this.nodeOrShadowRoot(parent), newChild);
  79556. }
  79557. insertBefore(parent, newChild, refChild) {
  79558. return super.insertBefore(this.nodeOrShadowRoot(parent), newChild, refChild);
  79559. }
  79560. removeChild(parent, oldChild) {
  79561. return super.removeChild(this.nodeOrShadowRoot(parent), oldChild);
  79562. }
  79563. parentNode(node) {
  79564. return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(node)));
  79565. }
  79566. }
  79567. /**
  79568. * @license
  79569. * Copyright Google LLC All Rights Reserved.
  79570. *
  79571. * Use of this source code is governed by an MIT-style license that can be
  79572. * found in the LICENSE file at https://angular.io/license
  79573. */
  79574. class DomEventsPlugin extends EventManagerPlugin {
  79575. constructor(doc) {
  79576. super(doc);
  79577. }
  79578. // This plugin should come last in the list of plugins, because it accepts all
  79579. // events.
  79580. supports(eventName) {
  79581. return true;
  79582. }
  79583. addEventListener(element, eventName, handler) {
  79584. element.addEventListener(eventName, handler, false);
  79585. return () => this.removeEventListener(element, eventName, handler);
  79586. }
  79587. removeEventListener(target, eventName, callback) {
  79588. return target.removeEventListener(eventName, callback);
  79589. }
  79590. }
  79591. DomEventsPlugin.ɵfac = function DomEventsPlugin_Factory(t) { return new (t || DomEventsPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"])); };
  79592. DomEventsPlugin.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: DomEventsPlugin, factory: DomEventsPlugin.ɵfac });
  79593. DomEventsPlugin.ctorParameters = () => [
  79594. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"],] }] }
  79595. ];
  79596. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomEventsPlugin, [{
  79597. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  79598. }], function () { return [{ type: undefined, decorators: [{
  79599. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  79600. args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
  79601. }] }]; }, null); })();
  79602. /**
  79603. * @license
  79604. * Copyright Google LLC All Rights Reserved.
  79605. *
  79606. * Use of this source code is governed by an MIT-style license that can be
  79607. * found in the LICENSE file at https://angular.io/license
  79608. */
  79609. /**
  79610. * Supported HammerJS recognizer event names.
  79611. */
  79612. const EVENT_NAMES = {
  79613. // pan
  79614. 'pan': true,
  79615. 'panstart': true,
  79616. 'panmove': true,
  79617. 'panend': true,
  79618. 'pancancel': true,
  79619. 'panleft': true,
  79620. 'panright': true,
  79621. 'panup': true,
  79622. 'pandown': true,
  79623. // pinch
  79624. 'pinch': true,
  79625. 'pinchstart': true,
  79626. 'pinchmove': true,
  79627. 'pinchend': true,
  79628. 'pinchcancel': true,
  79629. 'pinchin': true,
  79630. 'pinchout': true,
  79631. // press
  79632. 'press': true,
  79633. 'pressup': true,
  79634. // rotate
  79635. 'rotate': true,
  79636. 'rotatestart': true,
  79637. 'rotatemove': true,
  79638. 'rotateend': true,
  79639. 'rotatecancel': true,
  79640. // swipe
  79641. 'swipe': true,
  79642. 'swipeleft': true,
  79643. 'swiperight': true,
  79644. 'swipeup': true,
  79645. 'swipedown': true,
  79646. // tap
  79647. 'tap': true,
  79648. };
  79649. /**
  79650. * DI token for providing [HammerJS](https://hammerjs.github.io/) support to Angular.
  79651. * @see `HammerGestureConfig`
  79652. *
  79653. * @ngModule HammerModule
  79654. * @publicApi
  79655. */
  79656. const HAMMER_GESTURE_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('HammerGestureConfig');
  79657. /**
  79658. * Injection token used to provide a {@link HammerLoader} to Angular.
  79659. *
  79660. * @publicApi
  79661. */
  79662. const HAMMER_LOADER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('HammerLoader');
  79663. /**
  79664. * An injectable [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
  79665. * for gesture recognition. Configures specific event recognition.
  79666. * @publicApi
  79667. */
  79668. class HammerGestureConfig {
  79669. constructor() {
  79670. /**
  79671. * A set of supported event names for gestures to be used in Angular.
  79672. * Angular supports all built-in recognizers, as listed in
  79673. * [HammerJS documentation](https://hammerjs.github.io/).
  79674. */
  79675. this.events = [];
  79676. /**
  79677. * Maps gesture event names to a set of configuration options
  79678. * that specify overrides to the default values for specific properties.
  79679. *
  79680. * The key is a supported event name to be configured,
  79681. * and the options object contains a set of properties, with override values
  79682. * to be applied to the named recognizer event.
  79683. * For example, to disable recognition of the rotate event, specify
  79684. * `{"rotate": {"enable": false}}`.
  79685. *
  79686. * Properties that are not present take the HammerJS default values.
  79687. * For information about which properties are supported for which events,
  79688. * and their allowed and default values, see
  79689. * [HammerJS documentation](https://hammerjs.github.io/).
  79690. *
  79691. */
  79692. this.overrides = {};
  79693. }
  79694. /**
  79695. * Creates a [HammerJS Manager](https://hammerjs.github.io/api/#hammermanager)
  79696. * and attaches it to a given HTML element.
  79697. * @param element The element that will recognize gestures.
  79698. * @returns A HammerJS event-manager object.
  79699. */
  79700. buildHammer(element) {
  79701. const mc = new Hammer(element, this.options);
  79702. mc.get('pinch').set({ enable: true });
  79703. mc.get('rotate').set({ enable: true });
  79704. for (const eventName in this.overrides) {
  79705. mc.get(eventName).set(this.overrides[eventName]);
  79706. }
  79707. return mc;
  79708. }
  79709. }
  79710. HammerGestureConfig.ɵfac = function HammerGestureConfig_Factory(t) { return new (t || HammerGestureConfig)(); };
  79711. HammerGestureConfig.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: HammerGestureConfig, factory: HammerGestureConfig.ɵfac });
  79712. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerGestureConfig, [{
  79713. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  79714. }], function () { return []; }, null); })();
  79715. /**
  79716. * Event plugin that adds Hammer support to an application.
  79717. *
  79718. * @ngModule HammerModule
  79719. */
  79720. class HammerGesturesPlugin extends EventManagerPlugin {
  79721. constructor(doc, _config, console, loader) {
  79722. super(doc);
  79723. this._config = _config;
  79724. this.console = console;
  79725. this.loader = loader;
  79726. }
  79727. supports(eventName) {
  79728. if (!EVENT_NAMES.hasOwnProperty(eventName.toLowerCase()) && !this.isCustomEvent(eventName)) {
  79729. return false;
  79730. }
  79731. if (!window.Hammer && !this.loader) {
  79732. this.console.warn(`The "${eventName}" event cannot be bound because Hammer.JS is not ` +
  79733. `loaded and no custom loader has been specified.`);
  79734. return false;
  79735. }
  79736. return true;
  79737. }
  79738. addEventListener(element, eventName, handler) {
  79739. const zone = this.manager.getZone();
  79740. eventName = eventName.toLowerCase();
  79741. // If Hammer is not present but a loader is specified, we defer adding the event listener
  79742. // until Hammer is loaded.
  79743. if (!window.Hammer && this.loader) {
  79744. // This `addEventListener` method returns a function to remove the added listener.
  79745. // Until Hammer is loaded, the returned function needs to *cancel* the registration rather
  79746. // than remove anything.
  79747. let cancelRegistration = false;
  79748. let deregister = () => {
  79749. cancelRegistration = true;
  79750. };
  79751. this.loader()
  79752. .then(() => {
  79753. // If Hammer isn't actually loaded when the custom loader resolves, give up.
  79754. if (!window.Hammer) {
  79755. this.console.warn(`The custom HAMMER_LOADER completed, but Hammer.JS is not present.`);
  79756. deregister = () => { };
  79757. return;
  79758. }
  79759. if (!cancelRegistration) {
  79760. // Now that Hammer is loaded and the listener is being loaded for real,
  79761. // the deregistration function changes from canceling registration to removal.
  79762. deregister = this.addEventListener(element, eventName, handler);
  79763. }
  79764. })
  79765. .catch(() => {
  79766. this.console.warn(`The "${eventName}" event cannot be bound because the custom ` +
  79767. `Hammer.JS loader failed.`);
  79768. deregister = () => { };
  79769. });
  79770. // Return a function that *executes* `deregister` (and not `deregister` itself) so that we
  79771. // can change the behavior of `deregister` once the listener is added. Using a closure in
  79772. // this way allows us to avoid any additional data structures to track listener removal.
  79773. return () => {
  79774. deregister();
  79775. };
  79776. }
  79777. return zone.runOutsideAngular(() => {
  79778. // Creating the manager bind events, must be done outside of angular
  79779. const mc = this._config.buildHammer(element);
  79780. const callback = function (eventObj) {
  79781. zone.runGuarded(function () {
  79782. handler(eventObj);
  79783. });
  79784. };
  79785. mc.on(eventName, callback);
  79786. return () => {
  79787. mc.off(eventName, callback);
  79788. // destroy mc to prevent memory leak
  79789. if (typeof mc.destroy === 'function') {
  79790. mc.destroy();
  79791. }
  79792. };
  79793. });
  79794. }
  79795. isCustomEvent(eventName) {
  79796. return this._config.events.indexOf(eventName) > -1;
  79797. }
  79798. }
  79799. HammerGesturesPlugin.ɵfac = function HammerGesturesPlugin_Factory(t) { return new (t || HammerGesturesPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](HAMMER_GESTURE_CONFIG), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](HAMMER_LOADER, 8)); };
  79800. HammerGesturesPlugin.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: HammerGesturesPlugin, factory: HammerGesturesPlugin.ɵfac });
  79801. HammerGesturesPlugin.ctorParameters = () => [
  79802. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"],] }] },
  79803. { type: HammerGestureConfig, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [HAMMER_GESTURE_CONFIG,] }] },
  79804. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"] },
  79805. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [HAMMER_LOADER,] }] }
  79806. ];
  79807. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerGesturesPlugin, [{
  79808. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  79809. }], function () { return [{ type: undefined, decorators: [{
  79810. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  79811. args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
  79812. }] }, { type: HammerGestureConfig, decorators: [{
  79813. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  79814. args: [HAMMER_GESTURE_CONFIG]
  79815. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"] }, { type: undefined, decorators: [{
  79816. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  79817. }, {
  79818. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  79819. args: [HAMMER_LOADER]
  79820. }] }]; }, null); })();
  79821. /**
  79822. * In Ivy, support for Hammer gestures is optional, so applications must
  79823. * import the `HammerModule` at root to turn on support. This means that
  79824. * Hammer-specific code can be tree-shaken away if not needed.
  79825. */
  79826. const HAMMER_PROVIDERS__POST_R3__ = [];
  79827. /**
  79828. * In View Engine, support for Hammer gestures is built-in by default.
  79829. */
  79830. const HAMMER_PROVIDERS__PRE_R3__ = [
  79831. {
  79832. provide: EVENT_MANAGER_PLUGINS,
  79833. useClass: HammerGesturesPlugin,
  79834. multi: true,
  79835. deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], HAMMER_GESTURE_CONFIG, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"], [new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"](), HAMMER_LOADER]]
  79836. },
  79837. { provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
  79838. ];
  79839. const HAMMER_PROVIDERS = HAMMER_PROVIDERS__POST_R3__;
  79840. /**
  79841. * Adds support for HammerJS.
  79842. *
  79843. * Import this module at the root of your application so that Angular can work with
  79844. * HammerJS to detect gesture events.
  79845. *
  79846. * Note that applications still need to include the HammerJS script itself. This module
  79847. * simply sets up the coordination layer between HammerJS and Angular's EventManager.
  79848. *
  79849. * @publicApi
  79850. */
  79851. class HammerModule {
  79852. }
  79853. HammerModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: HammerModule });
  79854. HammerModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function HammerModule_Factory(t) { return new (t || HammerModule)(); }, providers: HAMMER_PROVIDERS__PRE_R3__ });
  79855. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](HammerModule, [{
  79856. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
  79857. args: [{ providers: HAMMER_PROVIDERS__PRE_R3__ }]
  79858. }], null, null); })();
  79859. /**
  79860. * @license
  79861. * Copyright Google LLC All Rights Reserved.
  79862. *
  79863. * Use of this source code is governed by an MIT-style license that can be
  79864. * found in the LICENSE file at https://angular.io/license
  79865. */
  79866. /**
  79867. * Defines supported modifiers for key events.
  79868. */
  79869. const MODIFIER_KEYS = ['alt', 'control', 'meta', 'shift'];
  79870. const DOM_KEY_LOCATION_NUMPAD = 3;
  79871. // Map to convert some key or keyIdentifier values to what will be returned by getEventKey
  79872. const _keyMap = {
  79873. // The following values are here for cross-browser compatibility and to match the W3C standard
  79874. // cf https://www.w3.org/TR/DOM-Level-3-Events-key/
  79875. '\b': 'Backspace',
  79876. '\t': 'Tab',
  79877. '\x7F': 'Delete',
  79878. '\x1B': 'Escape',
  79879. 'Del': 'Delete',
  79880. 'Esc': 'Escape',
  79881. 'Left': 'ArrowLeft',
  79882. 'Right': 'ArrowRight',
  79883. 'Up': 'ArrowUp',
  79884. 'Down': 'ArrowDown',
  79885. 'Menu': 'ContextMenu',
  79886. 'Scroll': 'ScrollLock',
  79887. 'Win': 'OS'
  79888. };
  79889. // There is a bug in Chrome for numeric keypad keys:
  79890. // https://code.google.com/p/chromium/issues/detail?id=155654
  79891. // 1, 2, 3 ... are reported as A, B, C ...
  79892. const _chromeNumKeyPadMap = {
  79893. 'A': '1',
  79894. 'B': '2',
  79895. 'C': '3',
  79896. 'D': '4',
  79897. 'E': '5',
  79898. 'F': '6',
  79899. 'G': '7',
  79900. 'H': '8',
  79901. 'I': '9',
  79902. 'J': '*',
  79903. 'K': '+',
  79904. 'M': '-',
  79905. 'N': '.',
  79906. 'O': '/',
  79907. '\x60': '0',
  79908. '\x90': 'NumLock'
  79909. };
  79910. const ɵ0$3 = (event) => event.altKey, ɵ1 = (event) => event.ctrlKey, ɵ2 = (event) => event.metaKey, ɵ3 = (event) => event.shiftKey;
  79911. /**
  79912. * Retrieves modifiers from key-event objects.
  79913. */
  79914. const MODIFIER_KEY_GETTERS = {
  79915. 'alt': ɵ0$3,
  79916. 'control': ɵ1,
  79917. 'meta': ɵ2,
  79918. 'shift': ɵ3
  79919. };
  79920. /**
  79921. * @publicApi
  79922. * A browser plug-in that provides support for handling of key events in Angular.
  79923. */
  79924. class KeyEventsPlugin extends EventManagerPlugin {
  79925. /**
  79926. * Initializes an instance of the browser plug-in.
  79927. * @param doc The document in which key events will be detected.
  79928. */
  79929. constructor(doc) {
  79930. super(doc);
  79931. }
  79932. /**
  79933. * Reports whether a named key event is supported.
  79934. * @param eventName The event name to query.
  79935. * @return True if the named key event is supported.
  79936. */
  79937. supports(eventName) {
  79938. return KeyEventsPlugin.parseEventName(eventName) != null;
  79939. }
  79940. /**
  79941. * Registers a handler for a specific element and key event.
  79942. * @param element The HTML element to receive event notifications.
  79943. * @param eventName The name of the key event to listen for.
  79944. * @param handler A function to call when the notification occurs. Receives the
  79945. * event object as an argument.
  79946. * @returns The key event that was registered.
  79947. */
  79948. addEventListener(element, eventName, handler) {
  79949. const parsedEvent = KeyEventsPlugin.parseEventName(eventName);
  79950. const outsideHandler = KeyEventsPlugin.eventCallback(parsedEvent['fullKey'], handler, this.manager.getZone());
  79951. return this.manager.getZone().runOutsideAngular(() => {
  79952. return Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().onAndCancel(element, parsedEvent['domEventName'], outsideHandler);
  79953. });
  79954. }
  79955. static parseEventName(eventName) {
  79956. const parts = eventName.toLowerCase().split('.');
  79957. const domEventName = parts.shift();
  79958. if ((parts.length === 0) || !(domEventName === 'keydown' || domEventName === 'keyup')) {
  79959. return null;
  79960. }
  79961. const key = KeyEventsPlugin._normalizeKey(parts.pop());
  79962. let fullKey = '';
  79963. MODIFIER_KEYS.forEach(modifierName => {
  79964. const index = parts.indexOf(modifierName);
  79965. if (index > -1) {
  79966. parts.splice(index, 1);
  79967. fullKey += modifierName + '.';
  79968. }
  79969. });
  79970. fullKey += key;
  79971. if (parts.length != 0 || key.length === 0) {
  79972. // returning null instead of throwing to let another plugin process the event
  79973. return null;
  79974. }
  79975. // NOTE: Please don't rewrite this as so, as it will break JSCompiler property renaming.
  79976. // The code must remain in the `result['domEventName']` form.
  79977. // return {domEventName, fullKey};
  79978. const result = {};
  79979. result['domEventName'] = domEventName;
  79980. result['fullKey'] = fullKey;
  79981. return result;
  79982. }
  79983. static getEventFullKey(event) {
  79984. let fullKey = '';
  79985. let key = getEventKey(event);
  79986. key = key.toLowerCase();
  79987. if (key === ' ') {
  79988. key = 'space'; // for readability
  79989. }
  79990. else if (key === '.') {
  79991. key = 'dot'; // because '.' is used as a separator in event names
  79992. }
  79993. MODIFIER_KEYS.forEach(modifierName => {
  79994. if (modifierName != key) {
  79995. const modifierGetter = MODIFIER_KEY_GETTERS[modifierName];
  79996. if (modifierGetter(event)) {
  79997. fullKey += modifierName + '.';
  79998. }
  79999. }
  80000. });
  80001. fullKey += key;
  80002. return fullKey;
  80003. }
  80004. /**
  80005. * Configures a handler callback for a key event.
  80006. * @param fullKey The event name that combines all simultaneous keystrokes.
  80007. * @param handler The function that responds to the key event.
  80008. * @param zone The zone in which the event occurred.
  80009. * @returns A callback function.
  80010. */
  80011. static eventCallback(fullKey, handler, zone) {
  80012. return (event /** TODO #9100 */) => {
  80013. if (KeyEventsPlugin.getEventFullKey(event) === fullKey) {
  80014. zone.runGuarded(() => handler(event));
  80015. }
  80016. };
  80017. }
  80018. /** @internal */
  80019. static _normalizeKey(keyName) {
  80020. // TODO: switch to a Map if the mapping grows too much
  80021. switch (keyName) {
  80022. case 'esc':
  80023. return 'escape';
  80024. default:
  80025. return keyName;
  80026. }
  80027. }
  80028. }
  80029. KeyEventsPlugin.ɵfac = function KeyEventsPlugin_Factory(t) { return new (t || KeyEventsPlugin)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"])); };
  80030. KeyEventsPlugin.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: KeyEventsPlugin, factory: KeyEventsPlugin.ɵfac });
  80031. KeyEventsPlugin.ctorParameters = () => [
  80032. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"],] }] }
  80033. ];
  80034. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](KeyEventsPlugin, [{
  80035. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  80036. }], function () { return [{ type: undefined, decorators: [{
  80037. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  80038. args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
  80039. }] }]; }, null); })();
  80040. function getEventKey(event) {
  80041. let key = event.key;
  80042. if (key == null) {
  80043. key = event.keyIdentifier;
  80044. // keyIdentifier is defined in the old draft of DOM Level 3 Events implemented by Chrome and
  80045. // Safari cf
  80046. // https://www.w3.org/TR/2007/WD-DOM-Level-3-Events-20071221/events.html#Events-KeyboardEvents-Interfaces
  80047. if (key == null) {
  80048. return 'Unidentified';
  80049. }
  80050. if (key.startsWith('U+')) {
  80051. key = String.fromCharCode(parseInt(key.substring(2), 16));
  80052. if (event.location === DOM_KEY_LOCATION_NUMPAD && _chromeNumKeyPadMap.hasOwnProperty(key)) {
  80053. // There is a bug in Chrome for numeric keypad keys:
  80054. // https://code.google.com/p/chromium/issues/detail?id=155654
  80055. // 1, 2, 3 ... are reported as A, B, C ...
  80056. key = _chromeNumKeyPadMap[key];
  80057. }
  80058. }
  80059. }
  80060. return _keyMap[key] || key;
  80061. }
  80062. /**
  80063. * @license
  80064. * Copyright Google LLC All Rights Reserved.
  80065. *
  80066. * Use of this source code is governed by an MIT-style license that can be
  80067. * found in the LICENSE file at https://angular.io/license
  80068. */
  80069. /**
  80070. * DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing
  80071. * values to be safe to use in the different DOM contexts.
  80072. *
  80073. * For example, when binding a URL in an `<a [href]="someValue">` hyperlink, `someValue` will be
  80074. * sanitized so that an attacker cannot inject e.g. a `javascript:` URL that would execute code on
  80075. * the website.
  80076. *
  80077. * In specific situations, it might be necessary to disable sanitization, for example if the
  80078. * application genuinely needs to produce a `javascript:` style link with a dynamic value in it.
  80079. * Users can bypass security by constructing a value with one of the `bypassSecurityTrust...`
  80080. * methods, and then binding to that value from the template.
  80081. *
  80082. * These situations should be very rare, and extraordinary care must be taken to avoid creating a
  80083. * Cross Site Scripting (XSS) security bug!
  80084. *
  80085. * When using `bypassSecurityTrust...`, make sure to call the method as early as possible and as
  80086. * close as possible to the source of the value, to make it easy to verify no security bug is
  80087. * created by its use.
  80088. *
  80089. * It is not required (and not recommended) to bypass security if the value is safe, e.g. a URL that
  80090. * does not start with a suspicious protocol, or an HTML snippet that does not contain dangerous
  80091. * code. The sanitizer leaves safe values intact.
  80092. *
  80093. * @security Calling any of the `bypassSecurityTrust...` APIs disables Angular's built-in
  80094. * sanitization for the value passed in. Carefully check and audit all values and code paths going
  80095. * into this call. Make sure any user data is appropriately escaped for this security context.
  80096. * For more detail, see the [Security Guide](https://g.co/ng/security).
  80097. *
  80098. * @publicApi
  80099. */
  80100. class DomSanitizer {
  80101. }
  80102. DomSanitizer.ɵfac = function DomSanitizer_Factory(t) { return new (t || DomSanitizer)(); };
  80103. DomSanitizer.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: function DomSanitizer_Factory() { return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(DomSanitizerImpl); }, token: DomSanitizer, providedIn: "root" });
  80104. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomSanitizer, [{
  80105. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  80106. args: [{ providedIn: 'root', useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(() => DomSanitizerImpl) }]
  80107. }], null, null); })();
  80108. function domSanitizerImplFactory(injector) {
  80109. return new DomSanitizerImpl(injector.get(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
  80110. }
  80111. class DomSanitizerImpl extends DomSanitizer {
  80112. constructor(_doc) {
  80113. super();
  80114. this._doc = _doc;
  80115. }
  80116. sanitize(ctx, value) {
  80117. if (value == null)
  80118. return null;
  80119. switch (ctx) {
  80120. case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].NONE:
  80121. return value;
  80122. case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].HTML:
  80123. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "HTML" /* Html */)) {
  80124. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
  80125. }
  80126. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵ_sanitizeHtml"])(this._doc, String(value));
  80127. case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].STYLE:
  80128. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "Style" /* Style */)) {
  80129. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
  80130. }
  80131. return value;
  80132. case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].SCRIPT:
  80133. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "Script" /* Script */)) {
  80134. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
  80135. }
  80136. throw new Error('unsafe value used in a script context');
  80137. case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].URL:
  80138. const type = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵgetSanitizationBypassType"])(value);
  80139. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "URL" /* Url */)) {
  80140. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
  80141. }
  80142. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵ_sanitizeUrl"])(String(value));
  80143. case _angular_core__WEBPACK_IMPORTED_MODULE_1__["SecurityContext"].RESOURCE_URL:
  80144. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵallowSanitizationBypassAndThrow"])(value, "ResourceURL" /* ResourceUrl */)) {
  80145. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵunwrapSafeValue"])(value);
  80146. }
  80147. throw new Error('unsafe value used in a resource URL context (see https://g.co/ng/security#xss)');
  80148. default:
  80149. throw new Error(`Unexpected SecurityContext ${ctx} (see https://g.co/ng/security#xss)`);
  80150. }
  80151. }
  80152. bypassSecurityTrustHtml(value) {
  80153. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustHtml"])(value);
  80154. }
  80155. bypassSecurityTrustStyle(value) {
  80156. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustStyle"])(value);
  80157. }
  80158. bypassSecurityTrustScript(value) {
  80159. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustScript"])(value);
  80160. }
  80161. bypassSecurityTrustUrl(value) {
  80162. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustUrl"])(value);
  80163. }
  80164. bypassSecurityTrustResourceUrl(value) {
  80165. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵbypassSanitizationTrustResourceUrl"])(value);
  80166. }
  80167. }
  80168. DomSanitizerImpl.ɵfac = function DomSanitizerImpl_Factory(t) { return new (t || DomSanitizerImpl)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"])); };
  80169. DomSanitizerImpl.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: function DomSanitizerImpl_Factory() { return domSanitizerImplFactory(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["INJECTOR"])); }, token: DomSanitizerImpl, providedIn: "root" });
  80170. DomSanitizerImpl.ctorParameters = () => [
  80171. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"],] }] }
  80172. ];
  80173. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](DomSanitizerImpl, [{
  80174. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  80175. args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]] }]
  80176. }], function () { return [{ type: undefined, decorators: [{
  80177. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  80178. args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
  80179. }] }]; }, null); })();
  80180. /**
  80181. * @license
  80182. * Copyright Google LLC All Rights Reserved.
  80183. *
  80184. * Use of this source code is governed by an MIT-style license that can be
  80185. * found in the LICENSE file at https://angular.io/license
  80186. */
  80187. function initDomAdapter() {
  80188. BrowserDomAdapter.makeCurrent();
  80189. BrowserGetTestability.init();
  80190. }
  80191. function errorHandler() {
  80192. return new _angular_core__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"]();
  80193. }
  80194. function _document() {
  80195. // Tell ivy about the global document
  80196. Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetDocument"])(document);
  80197. return document;
  80198. }
  80199. const ɵ0$4 = _angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵPLATFORM_BROWSER_ID"];
  80200. const INTERNAL_BROWSER_PLATFORM_PROVIDERS = [
  80201. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["PLATFORM_ID"], useValue: ɵ0$4 },
  80202. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["PLATFORM_INITIALIZER"], useValue: initDomAdapter, multi: true },
  80203. { provide: _angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], useFactory: _document, deps: [] },
  80204. ];
  80205. const BROWSER_SANITIZATION_PROVIDERS__PRE_R3__ = [
  80206. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Sanitizer"], useExisting: DomSanitizer },
  80207. { provide: DomSanitizer, useClass: DomSanitizerImpl, deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]] },
  80208. ];
  80209. const BROWSER_SANITIZATION_PROVIDERS__POST_R3__ = [];
  80210. /**
  80211. * @security Replacing built-in sanitization providers exposes the application to XSS risks.
  80212. * Attacker-controlled data introduced by an unsanitized provider could expose your
  80213. * application to XSS risks. For more detail, see the [Security Guide](https://g.co/ng/security).
  80214. * @publicApi
  80215. */
  80216. const BROWSER_SANITIZATION_PROVIDERS = BROWSER_SANITIZATION_PROVIDERS__POST_R3__;
  80217. /**
  80218. * A factory function that returns a `PlatformRef` instance associated with browser service
  80219. * providers.
  80220. *
  80221. * @publicApi
  80222. */
  80223. const platformBrowser = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["createPlatformFactory"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["platformCore"], 'browser', INTERNAL_BROWSER_PLATFORM_PROVIDERS);
  80224. const BROWSER_MODULE_PROVIDERS = [
  80225. BROWSER_SANITIZATION_PROVIDERS,
  80226. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵINJECTOR_SCOPE"], useValue: 'root' },
  80227. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ErrorHandler"], useFactory: errorHandler, deps: [] },
  80228. {
  80229. provide: EVENT_MANAGER_PLUGINS,
  80230. useClass: DomEventsPlugin,
  80231. multi: true,
  80232. deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["PLATFORM_ID"]]
  80233. },
  80234. { provide: EVENT_MANAGER_PLUGINS, useClass: KeyEventsPlugin, multi: true, deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]] },
  80235. HAMMER_PROVIDERS,
  80236. {
  80237. provide: DomRendererFactory2,
  80238. useClass: DomRendererFactory2,
  80239. deps: [EventManager, DomSharedStylesHost, _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]]
  80240. },
  80241. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["RendererFactory2"], useExisting: DomRendererFactory2 },
  80242. { provide: SharedStylesHost, useExisting: DomSharedStylesHost },
  80243. { provide: DomSharedStylesHost, useClass: DomSharedStylesHost, deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]] },
  80244. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Testability"], useClass: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Testability"], deps: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]] },
  80245. { provide: EventManager, useClass: EventManager, deps: [EVENT_MANAGER_PLUGINS, _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]] },
  80246. ELEMENT_PROBE_PROVIDERS,
  80247. ];
  80248. /**
  80249. * Exports required infrastructure for all Angular apps.
  80250. * Included by default in all Angular apps created with the CLI
  80251. * `new` command.
  80252. * Re-exports `CommonModule` and `ApplicationModule`, making their
  80253. * exports and providers available to all apps.
  80254. *
  80255. * @publicApi
  80256. */
  80257. class BrowserModule {
  80258. constructor(parentModule) {
  80259. if (parentModule) {
  80260. throw new Error(`BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.`);
  80261. }
  80262. }
  80263. /**
  80264. * Configures a browser-based app to transition from a server-rendered app, if
  80265. * one is present on the page.
  80266. *
  80267. * @param params An object containing an identifier for the app to transition.
  80268. * The ID must match between the client and server versions of the app.
  80269. * @returns The reconfigured `BrowserModule` to import into the app's root `AppModule`.
  80270. */
  80271. static withServerTransition(params) {
  80272. return {
  80273. ngModule: BrowserModule,
  80274. providers: [
  80275. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"], useValue: params.appId },
  80276. { provide: TRANSITION_ID, useExisting: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"] },
  80277. SERVER_TRANSITION_PROVIDERS,
  80278. ],
  80279. };
  80280. }
  80281. }
  80282. BrowserModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: BrowserModule });
  80283. BrowserModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function BrowserModule_Factory(t) { return new (t || BrowserModule)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](BrowserModule, 12)); }, providers: BROWSER_MODULE_PROVIDERS, imports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationModule"]] });
  80284. BrowserModule.ctorParameters = () => [
  80285. { type: BrowserModule, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [BrowserModule,] }] }
  80286. ];
  80287. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](BrowserModule, { exports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationModule"]]; } }); })();
  80288. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BrowserModule, [{
  80289. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
  80290. args: [{ providers: BROWSER_MODULE_PROVIDERS, exports: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["CommonModule"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationModule"]] }]
  80291. }], function () { return [{ type: BrowserModule, decorators: [{
  80292. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  80293. }, {
  80294. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"]
  80295. }, {
  80296. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  80297. args: [BrowserModule]
  80298. }] }]; }, null); })();
  80299. /**
  80300. * @license
  80301. * Copyright Google LLC All Rights Reserved.
  80302. *
  80303. * Use of this source code is governed by an MIT-style license that can be
  80304. * found in the LICENSE file at https://angular.io/license
  80305. */
  80306. /**
  80307. * Factory to create a `Meta` service instance for the current DOM document.
  80308. */
  80309. function createMeta() {
  80310. return new Meta(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
  80311. }
  80312. /**
  80313. * A service for managing HTML `<meta>` tags.
  80314. *
  80315. * Properties of the `MetaDefinition` object match the attributes of the
  80316. * HTML `<meta>` tag. These tags define document metadata that is important for
  80317. * things like configuring a Content Security Policy, defining browser compatibility
  80318. * and security settings, setting HTTP Headers, defining rich content for social sharing,
  80319. * and Search Engine Optimization (SEO).
  80320. *
  80321. * To identify specific `<meta>` tags in a document, use an attribute selection
  80322. * string in the format `"tag_attribute='value string'"`.
  80323. * For example, an `attrSelector` value of `"name='description'"` matches a tag
  80324. * whose `name` attribute has the value `"description"`.
  80325. * Selectors are used with the `querySelector()` Document method,
  80326. * in the format `meta[{attrSelector}]`.
  80327. *
  80328. * @see [HTML meta tag](https://developer.mozilla.org/docs/Web/HTML/Element/meta)
  80329. * @see [Document.querySelector()](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
  80330. *
  80331. *
  80332. * @publicApi
  80333. */
  80334. class Meta {
  80335. constructor(_doc) {
  80336. this._doc = _doc;
  80337. this._dom = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])();
  80338. }
  80339. /**
  80340. * Retrieves or creates a specific `<meta>` tag element in the current HTML document.
  80341. * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
  80342. * values in the provided tag definition, and verifies that all other attribute values are equal.
  80343. * If an existing element is found, it is returned and is not modified in any way.
  80344. * @param tag The definition of a `<meta>` element to match or create.
  80345. * @param forceCreation True to create a new element without checking whether one already exists.
  80346. * @returns The existing element with the same attributes and values if found,
  80347. * the new element if no match is found, or `null` if the tag parameter is not defined.
  80348. */
  80349. addTag(tag, forceCreation = false) {
  80350. if (!tag)
  80351. return null;
  80352. return this._getOrCreateElement(tag, forceCreation);
  80353. }
  80354. /**
  80355. * Retrieves or creates a set of `<meta>` tag elements in the current HTML document.
  80356. * In searching for an existing tag, Angular attempts to match the `name` or `property` attribute
  80357. * values in the provided tag definition, and verifies that all other attribute values are equal.
  80358. * @param tags An array of tag definitions to match or create.
  80359. * @param forceCreation True to create new elements without checking whether they already exist.
  80360. * @returns The matching elements if found, or the new elements.
  80361. */
  80362. addTags(tags, forceCreation = false) {
  80363. if (!tags)
  80364. return [];
  80365. return tags.reduce((result, tag) => {
  80366. if (tag) {
  80367. result.push(this._getOrCreateElement(tag, forceCreation));
  80368. }
  80369. return result;
  80370. }, []);
  80371. }
  80372. /**
  80373. * Retrieves a `<meta>` tag element in the current HTML document.
  80374. * @param attrSelector The tag attribute and value to match against, in the format
  80375. * `"tag_attribute='value string'"`.
  80376. * @returns The matching element, if any.
  80377. */
  80378. getTag(attrSelector) {
  80379. if (!attrSelector)
  80380. return null;
  80381. return this._doc.querySelector(`meta[${attrSelector}]`) || null;
  80382. }
  80383. /**
  80384. * Retrieves a set of `<meta>` tag elements in the current HTML document.
  80385. * @param attrSelector The tag attribute and value to match against, in the format
  80386. * `"tag_attribute='value string'"`.
  80387. * @returns The matching elements, if any.
  80388. */
  80389. getTags(attrSelector) {
  80390. if (!attrSelector)
  80391. return [];
  80392. const list /*NodeList*/ = this._doc.querySelectorAll(`meta[${attrSelector}]`);
  80393. return list ? [].slice.call(list) : [];
  80394. }
  80395. /**
  80396. * Modifies an existing `<meta>` tag element in the current HTML document.
  80397. * @param tag The tag description with which to replace the existing tag content.
  80398. * @param selector A tag attribute and value to match against, to identify
  80399. * an existing tag. A string in the format `"tag_attribute=`value string`"`.
  80400. * If not supplied, matches a tag with the same `name` or `property` attribute value as the
  80401. * replacement tag.
  80402. * @return The modified element.
  80403. */
  80404. updateTag(tag, selector) {
  80405. if (!tag)
  80406. return null;
  80407. selector = selector || this._parseSelector(tag);
  80408. const meta = this.getTag(selector);
  80409. if (meta) {
  80410. return this._setMetaElementAttributes(tag, meta);
  80411. }
  80412. return this._getOrCreateElement(tag, true);
  80413. }
  80414. /**
  80415. * Removes an existing `<meta>` tag element from the current HTML document.
  80416. * @param attrSelector A tag attribute and value to match against, to identify
  80417. * an existing tag. A string in the format `"tag_attribute=`value string`"`.
  80418. */
  80419. removeTag(attrSelector) {
  80420. this.removeTagElement(this.getTag(attrSelector));
  80421. }
  80422. /**
  80423. * Removes an existing `<meta>` tag element from the current HTML document.
  80424. * @param meta The tag definition to match against to identify an existing tag.
  80425. */
  80426. removeTagElement(meta) {
  80427. if (meta) {
  80428. this._dom.remove(meta);
  80429. }
  80430. }
  80431. _getOrCreateElement(meta, forceCreation = false) {
  80432. if (!forceCreation) {
  80433. const selector = this._parseSelector(meta);
  80434. const elem = this.getTag(selector);
  80435. // It's allowed to have multiple elements with the same name so it's not enough to
  80436. // just check that element with the same name already present on the page. We also need to
  80437. // check if element has tag attributes
  80438. if (elem && this._containsAttributes(meta, elem))
  80439. return elem;
  80440. }
  80441. const element = this._dom.createElement('meta');
  80442. this._setMetaElementAttributes(meta, element);
  80443. const head = this._doc.getElementsByTagName('head')[0];
  80444. head.appendChild(element);
  80445. return element;
  80446. }
  80447. _setMetaElementAttributes(tag, el) {
  80448. Object.keys(tag).forEach((prop) => el.setAttribute(this._getMetaKeyMap(prop), tag[prop]));
  80449. return el;
  80450. }
  80451. _parseSelector(tag) {
  80452. const attr = tag.name ? 'name' : 'property';
  80453. return `${attr}="${tag[attr]}"`;
  80454. }
  80455. _containsAttributes(tag, elem) {
  80456. return Object.keys(tag).every((key) => elem.getAttribute(this._getMetaKeyMap(key)) === tag[key]);
  80457. }
  80458. _getMetaKeyMap(prop) {
  80459. return META_KEYS_MAP[prop] || prop;
  80460. }
  80461. }
  80462. Meta.ɵfac = function Meta_Factory(t) { return new (t || Meta)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"])); };
  80463. Meta.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: createMeta, token: Meta, providedIn: "root" });
  80464. Meta.ctorParameters = () => [
  80465. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"],] }] }
  80466. ];
  80467. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Meta, [{
  80468. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  80469. args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
  80470. }], function () { return [{ type: undefined, decorators: [{
  80471. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  80472. args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
  80473. }] }]; }, null); })();
  80474. /**
  80475. * Mapping for MetaDefinition properties with their correct meta attribute names
  80476. */
  80477. const META_KEYS_MAP = {
  80478. httpEquiv: 'http-equiv'
  80479. };
  80480. /**
  80481. * @license
  80482. * Copyright Google LLC All Rights Reserved.
  80483. *
  80484. * Use of this source code is governed by an MIT-style license that can be
  80485. * found in the LICENSE file at https://angular.io/license
  80486. */
  80487. /**
  80488. * Factory to create Title service.
  80489. */
  80490. function createTitle() {
  80491. return new Title(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]));
  80492. }
  80493. /**
  80494. * A service that can be used to get and set the title of a current HTML document.
  80495. *
  80496. * Since an Angular application can't be bootstrapped on the entire HTML document (`<html>` tag)
  80497. * it is not possible to bind to the `text` property of the `HTMLTitleElement` elements
  80498. * (representing the `<title>` tag). Instead, this service can be used to set and get the current
  80499. * title value.
  80500. *
  80501. * @publicApi
  80502. */
  80503. class Title {
  80504. constructor(_doc) {
  80505. this._doc = _doc;
  80506. }
  80507. /**
  80508. * Get the title of the current HTML document.
  80509. */
  80510. getTitle() {
  80511. return this._doc.title;
  80512. }
  80513. /**
  80514. * Set the title of the current HTML document.
  80515. * @param newTitle
  80516. */
  80517. setTitle(newTitle) {
  80518. this._doc.title = newTitle || '';
  80519. }
  80520. }
  80521. Title.ɵfac = function Title_Factory(t) { return new (t || Title)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"])); };
  80522. Title.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: createTitle, token: Title, providedIn: "root" });
  80523. Title.ctorParameters = () => [
  80524. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"],] }] }
  80525. ];
  80526. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Title, [{
  80527. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  80528. args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
  80529. }], function () { return [{ type: undefined, decorators: [{
  80530. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  80531. args: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"]]
  80532. }] }]; }, null); })();
  80533. /**
  80534. * @license
  80535. * Copyright Google LLC All Rights Reserved.
  80536. *
  80537. * Use of this source code is governed by an MIT-style license that can be
  80538. * found in the LICENSE file at https://angular.io/license
  80539. */
  80540. const win = typeof window !== 'undefined' && window || {};
  80541. /**
  80542. * @license
  80543. * Copyright Google LLC All Rights Reserved.
  80544. *
  80545. * Use of this source code is governed by an MIT-style license that can be
  80546. * found in the LICENSE file at https://angular.io/license
  80547. */
  80548. class ChangeDetectionPerfRecord {
  80549. constructor(msPerTick, numTicks) {
  80550. this.msPerTick = msPerTick;
  80551. this.numTicks = numTicks;
  80552. }
  80553. }
  80554. /**
  80555. * Entry point for all Angular profiling-related debug tools. This object
  80556. * corresponds to the `ng.profiler` in the dev console.
  80557. */
  80558. class AngularProfiler {
  80559. constructor(ref) {
  80560. this.appRef = ref.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationRef"]);
  80561. }
  80562. // tslint:disable:no-console
  80563. /**
  80564. * Exercises change detection in a loop and then prints the average amount of
  80565. * time in milliseconds how long a single round of change detection takes for
  80566. * the current state of the UI. It runs a minimum of 5 rounds for a minimum
  80567. * of 500 milliseconds.
  80568. *
  80569. * Optionally, a user may pass a `config` parameter containing a map of
  80570. * options. Supported options are:
  80571. *
  80572. * `record` (boolean) - causes the profiler to record a CPU profile while
  80573. * it exercises the change detector. Example:
  80574. *
  80575. * ```
  80576. * ng.profiler.timeChangeDetection({record: true})
  80577. * ```
  80578. */
  80579. timeChangeDetection(config) {
  80580. const record = config && config['record'];
  80581. const profileName = 'Change Detection';
  80582. // Profiler is not available in Android browsers without dev tools opened
  80583. const isProfilerAvailable = win.console.profile != null;
  80584. if (record && isProfilerAvailable) {
  80585. win.console.profile(profileName);
  80586. }
  80587. const start = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().performanceNow();
  80588. let numTicks = 0;
  80589. while (numTicks < 5 || (Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().performanceNow() - start) < 500) {
  80590. this.appRef.tick();
  80591. numTicks++;
  80592. }
  80593. const end = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().performanceNow();
  80594. if (record && isProfilerAvailable) {
  80595. win.console.profileEnd(profileName);
  80596. }
  80597. const msPerTick = (end - start) / numTicks;
  80598. win.console.log(`ran ${numTicks} change detection cycles`);
  80599. win.console.log(`${msPerTick.toFixed(2)} ms per check`);
  80600. return new ChangeDetectionPerfRecord(msPerTick, numTicks);
  80601. }
  80602. }
  80603. /**
  80604. * @license
  80605. * Copyright Google LLC All Rights Reserved.
  80606. *
  80607. * Use of this source code is governed by an MIT-style license that can be
  80608. * found in the LICENSE file at https://angular.io/license
  80609. */
  80610. const PROFILER_GLOBAL_NAME = 'profiler';
  80611. /**
  80612. * Enabled Angular debug tools that are accessible via your browser's
  80613. * developer console.
  80614. *
  80615. * Usage:
  80616. *
  80617. * 1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
  80618. * 1. Type `ng.` (usually the console will show auto-complete suggestion)
  80619. * 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
  80620. * then hit Enter.
  80621. *
  80622. * @publicApi
  80623. */
  80624. function enableDebugTools(ref) {
  80625. exportNgVar(PROFILER_GLOBAL_NAME, new AngularProfiler(ref));
  80626. return ref;
  80627. }
  80628. /**
  80629. * Disables Angular tools.
  80630. *
  80631. * @publicApi
  80632. */
  80633. function disableDebugTools() {
  80634. exportNgVar(PROFILER_GLOBAL_NAME, null);
  80635. }
  80636. /**
  80637. * @license
  80638. * Copyright Google LLC All Rights Reserved.
  80639. *
  80640. * Use of this source code is governed by an MIT-style license that can be
  80641. * found in the LICENSE file at https://angular.io/license
  80642. */
  80643. function escapeHtml(text) {
  80644. const escapedText = {
  80645. '&': '&a;',
  80646. '"': '&q;',
  80647. '\'': '&s;',
  80648. '<': '&l;',
  80649. '>': '&g;',
  80650. };
  80651. return text.replace(/[&"'<>]/g, s => escapedText[s]);
  80652. }
  80653. function unescapeHtml(text) {
  80654. const unescapedText = {
  80655. '&a;': '&',
  80656. '&q;': '"',
  80657. '&s;': '\'',
  80658. '&l;': '<',
  80659. '&g;': '>',
  80660. };
  80661. return text.replace(/&[^;]+;/g, s => unescapedText[s]);
  80662. }
  80663. /**
  80664. * Create a `StateKey<T>` that can be used to store value of type T with `TransferState`.
  80665. *
  80666. * Example:
  80667. *
  80668. * ```
  80669. * const COUNTER_KEY = makeStateKey<number>('counter');
  80670. * let value = 10;
  80671. *
  80672. * transferState.set(COUNTER_KEY, value);
  80673. * ```
  80674. *
  80675. * @publicApi
  80676. */
  80677. function makeStateKey(key) {
  80678. return key;
  80679. }
  80680. /**
  80681. * A key value store that is transferred from the application on the server side to the application
  80682. * on the client side.
  80683. *
  80684. * `TransferState` will be available as an injectable token. To use it import
  80685. * `ServerTransferStateModule` on the server and `BrowserTransferStateModule` on the client.
  80686. *
  80687. * The values in the store are serialized/deserialized using JSON.stringify/JSON.parse. So only
  80688. * boolean, number, string, null and non-class objects will be serialized and deserialized in a
  80689. * non-lossy manner.
  80690. *
  80691. * @publicApi
  80692. */
  80693. class TransferState {
  80694. constructor() {
  80695. this.store = {};
  80696. this.onSerializeCallbacks = {};
  80697. }
  80698. /** @internal */
  80699. static init(initState) {
  80700. const transferState = new TransferState();
  80701. transferState.store = initState;
  80702. return transferState;
  80703. }
  80704. /**
  80705. * Get the value corresponding to a key. Return `defaultValue` if key is not found.
  80706. */
  80707. get(key, defaultValue) {
  80708. return this.store[key] !== undefined ? this.store[key] : defaultValue;
  80709. }
  80710. /**
  80711. * Set the value corresponding to a key.
  80712. */
  80713. set(key, value) {
  80714. this.store[key] = value;
  80715. }
  80716. /**
  80717. * Remove a key from the store.
  80718. */
  80719. remove(key) {
  80720. delete this.store[key];
  80721. }
  80722. /**
  80723. * Test whether a key exists in the store.
  80724. */
  80725. hasKey(key) {
  80726. return this.store.hasOwnProperty(key);
  80727. }
  80728. /**
  80729. * Register a callback to provide the value for a key when `toJson` is called.
  80730. */
  80731. onSerialize(key, callback) {
  80732. this.onSerializeCallbacks[key] = callback;
  80733. }
  80734. /**
  80735. * Serialize the current state of the store to JSON.
  80736. */
  80737. toJson() {
  80738. // Call the onSerialize callbacks and put those values into the store.
  80739. for (const key in this.onSerializeCallbacks) {
  80740. if (this.onSerializeCallbacks.hasOwnProperty(key)) {
  80741. try {
  80742. this.store[key] = this.onSerializeCallbacks[key]();
  80743. }
  80744. catch (e) {
  80745. console.warn('Exception in onSerialize callback: ', e);
  80746. }
  80747. }
  80748. }
  80749. return JSON.stringify(this.store);
  80750. }
  80751. }
  80752. TransferState.ɵfac = function TransferState_Factory(t) { return new (t || TransferState)(); };
  80753. TransferState.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: TransferState, factory: TransferState.ɵfac });
  80754. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](TransferState, [{
  80755. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  80756. }], function () { return []; }, null); })();
  80757. function initTransferState(doc, appId) {
  80758. // Locate the script tag with the JSON data transferred from the server.
  80759. // The id of the script tag is set to the Angular appId + 'state'.
  80760. const script = doc.getElementById(appId + '-state');
  80761. let initialState = {};
  80762. if (script && script.textContent) {
  80763. try {
  80764. initialState = JSON.parse(unescapeHtml(script.textContent));
  80765. }
  80766. catch (e) {
  80767. console.warn('Exception while restoring TransferState for app ' + appId, e);
  80768. }
  80769. }
  80770. return TransferState.init(initialState);
  80771. }
  80772. /**
  80773. * NgModule to install on the client side while using the `TransferState` to transfer state from
  80774. * server to client.
  80775. *
  80776. * @publicApi
  80777. */
  80778. class BrowserTransferStateModule {
  80779. }
  80780. BrowserTransferStateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: BrowserTransferStateModule });
  80781. BrowserTransferStateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function BrowserTransferStateModule_Factory(t) { return new (t || BrowserTransferStateModule)(); }, providers: [{ provide: TransferState, useFactory: initTransferState, deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]] }] });
  80782. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](BrowserTransferStateModule, [{
  80783. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
  80784. args: [{
  80785. providers: [{ provide: TransferState, useFactory: initTransferState, deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["DOCUMENT"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_ID"]] }]
  80786. }]
  80787. }], null, null); })();
  80788. /**
  80789. * @license
  80790. * Copyright Google LLC All Rights Reserved.
  80791. *
  80792. * Use of this source code is governed by an MIT-style license that can be
  80793. * found in the LICENSE file at https://angular.io/license
  80794. */
  80795. /**
  80796. * Predicates for use with {@link DebugElement}'s query functions.
  80797. *
  80798. * @publicApi
  80799. */
  80800. class By {
  80801. /**
  80802. * Match all nodes.
  80803. *
  80804. * @usageNotes
  80805. * ### Example
  80806. *
  80807. * {@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}
  80808. */
  80809. static all() {
  80810. return () => true;
  80811. }
  80812. /**
  80813. * Match elements by the given CSS selector.
  80814. *
  80815. * @usageNotes
  80816. * ### Example
  80817. *
  80818. * {@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}
  80819. */
  80820. static css(selector) {
  80821. return (debugElement) => {
  80822. return debugElement.nativeElement != null ?
  80823. elementMatches(debugElement.nativeElement, selector) :
  80824. false;
  80825. };
  80826. }
  80827. /**
  80828. * Match nodes that have the given directive present.
  80829. *
  80830. * @usageNotes
  80831. * ### Example
  80832. *
  80833. * {@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}
  80834. */
  80835. static directive(type) {
  80836. return (debugNode) => debugNode.providerTokens.indexOf(type) !== -1;
  80837. }
  80838. }
  80839. function elementMatches(n, selector) {
  80840. if (Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])().isElementNode(n)) {
  80841. return n.matches && n.matches(selector) ||
  80842. n.msMatchesSelector && n.msMatchesSelector(selector) ||
  80843. n.webkitMatchesSelector && n.webkitMatchesSelector(selector);
  80844. }
  80845. return false;
  80846. }
  80847. /**
  80848. * @license
  80849. * Copyright Google LLC All Rights Reserved.
  80850. *
  80851. * Use of this source code is governed by an MIT-style license that can be
  80852. * found in the LICENSE file at https://angular.io/license
  80853. */
  80854. /**
  80855. * @license
  80856. * Copyright Google LLC All Rights Reserved.
  80857. *
  80858. * Use of this source code is governed by an MIT-style license that can be
  80859. * found in the LICENSE file at https://angular.io/license
  80860. */
  80861. /**
  80862. * @publicApi
  80863. */
  80864. const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Version"]('11.0.4');
  80865. /**
  80866. * @license
  80867. * Copyright Google LLC All Rights Reserved.
  80868. *
  80869. * Use of this source code is governed by an MIT-style license that can be
  80870. * found in the LICENSE file at https://angular.io/license
  80871. */
  80872. /**
  80873. * @license
  80874. * Copyright Google LLC All Rights Reserved.
  80875. *
  80876. * Use of this source code is governed by an MIT-style license that can be
  80877. * found in the LICENSE file at https://angular.io/license
  80878. */
  80879. // This file only reexports content of the `src` folder. Keep it that way.
  80880. /**
  80881. * @license
  80882. * Copyright Google LLC All Rights Reserved.
  80883. *
  80884. * Use of this source code is governed by an MIT-style license that can be
  80885. * found in the LICENSE file at https://angular.io/license
  80886. */
  80887. /**
  80888. * Generated bundle index. Do not edit.
  80889. */
  80890. //# sourceMappingURL=platform-browser.js.map
  80891. /***/ }),
  80892. /***/ "jtHE":
  80893. /*!**************************************************************!*\
  80894. !*** ./node_modules/rxjs/_esm2015/internal/ReplaySubject.js ***!
  80895. \**************************************************************/
  80896. /*! exports provided: ReplaySubject */
  80897. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  80898. "use strict";
  80899. __webpack_require__.r(__webpack_exports__);
  80900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReplaySubject", function() { return ReplaySubject; });
  80901. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subject */ "XNiG");
  80902. /* harmony import */ var _scheduler_queue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./scheduler/queue */ "qgXg");
  80903. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./Subscription */ "quSY");
  80904. /* harmony import */ var _operators_observeOn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./operators/observeOn */ "pxpQ");
  80905. /* harmony import */ var _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./util/ObjectUnsubscribedError */ "9ppp");
  80906. /* harmony import */ var _SubjectSubscription__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./SubjectSubscription */ "Ylt2");
  80907. class ReplaySubject extends _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"] {
  80908. constructor(bufferSize = Number.POSITIVE_INFINITY, windowTime = Number.POSITIVE_INFINITY, scheduler) {
  80909. super();
  80910. this.scheduler = scheduler;
  80911. this._events = [];
  80912. this._infiniteTimeWindow = false;
  80913. this._bufferSize = bufferSize < 1 ? 1 : bufferSize;
  80914. this._windowTime = windowTime < 1 ? 1 : windowTime;
  80915. if (windowTime === Number.POSITIVE_INFINITY) {
  80916. this._infiniteTimeWindow = true;
  80917. this.next = this.nextInfiniteTimeWindow;
  80918. }
  80919. else {
  80920. this.next = this.nextTimeWindow;
  80921. }
  80922. }
  80923. nextInfiniteTimeWindow(value) {
  80924. const _events = this._events;
  80925. _events.push(value);
  80926. if (_events.length > this._bufferSize) {
  80927. _events.shift();
  80928. }
  80929. super.next(value);
  80930. }
  80931. nextTimeWindow(value) {
  80932. this._events.push(new ReplayEvent(this._getNow(), value));
  80933. this._trimBufferThenGetEvents();
  80934. super.next(value);
  80935. }
  80936. _subscribe(subscriber) {
  80937. const _infiniteTimeWindow = this._infiniteTimeWindow;
  80938. const _events = _infiniteTimeWindow ? this._events : this._trimBufferThenGetEvents();
  80939. const scheduler = this.scheduler;
  80940. const len = _events.length;
  80941. let subscription;
  80942. if (this.closed) {
  80943. throw new _util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_4__["ObjectUnsubscribedError"]();
  80944. }
  80945. else if (this.isStopped || this.hasError) {
  80946. subscription = _Subscription__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
  80947. }
  80948. else {
  80949. this.observers.push(subscriber);
  80950. subscription = new _SubjectSubscription__WEBPACK_IMPORTED_MODULE_5__["SubjectSubscription"](this, subscriber);
  80951. }
  80952. if (scheduler) {
  80953. subscriber.add(subscriber = new _operators_observeOn__WEBPACK_IMPORTED_MODULE_3__["ObserveOnSubscriber"](subscriber, scheduler));
  80954. }
  80955. if (_infiniteTimeWindow) {
  80956. for (let i = 0; i < len && !subscriber.closed; i++) {
  80957. subscriber.next(_events[i]);
  80958. }
  80959. }
  80960. else {
  80961. for (let i = 0; i < len && !subscriber.closed; i++) {
  80962. subscriber.next(_events[i].value);
  80963. }
  80964. }
  80965. if (this.hasError) {
  80966. subscriber.error(this.thrownError);
  80967. }
  80968. else if (this.isStopped) {
  80969. subscriber.complete();
  80970. }
  80971. return subscription;
  80972. }
  80973. _getNow() {
  80974. return (this.scheduler || _scheduler_queue__WEBPACK_IMPORTED_MODULE_1__["queue"]).now();
  80975. }
  80976. _trimBufferThenGetEvents() {
  80977. const now = this._getNow();
  80978. const _bufferSize = this._bufferSize;
  80979. const _windowTime = this._windowTime;
  80980. const _events = this._events;
  80981. const eventsCount = _events.length;
  80982. let spliceCount = 0;
  80983. while (spliceCount < eventsCount) {
  80984. if ((now - _events[spliceCount].time) < _windowTime) {
  80985. break;
  80986. }
  80987. spliceCount++;
  80988. }
  80989. if (eventsCount > _bufferSize) {
  80990. spliceCount = Math.max(spliceCount, eventsCount - _bufferSize);
  80991. }
  80992. if (spliceCount > 0) {
  80993. _events.splice(0, spliceCount);
  80994. }
  80995. return _events;
  80996. }
  80997. }
  80998. class ReplayEvent {
  80999. constructor(time, value) {
  81000. this.time = time;
  81001. this.value = value;
  81002. }
  81003. }
  81004. //# sourceMappingURL=ReplaySubject.js.map
  81005. /***/ }),
  81006. /***/ "kJWO":
  81007. /*!******************************************************************!*\
  81008. !*** ./node_modules/rxjs/_esm2015/internal/symbol/observable.js ***!
  81009. \******************************************************************/
  81010. /*! exports provided: observable */
  81011. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81012. "use strict";
  81013. __webpack_require__.r(__webpack_exports__);
  81014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "observable", function() { return observable; });
  81015. const observable = (() => typeof Symbol === 'function' && Symbol.observable || '@@observable')();
  81016. //# sourceMappingURL=observable.js.map
  81017. /***/ }),
  81018. /***/ "kU1M":
  81019. /*!*******************************************************!*\
  81020. !*** ./node_modules/rxjs/_esm2015/operators/index.js ***!
  81021. \*******************************************************/
  81022. /*! exports provided: audit, auditTime, buffer, bufferCount, bufferTime, bufferToggle, bufferWhen, catchError, combineAll, combineLatest, concat, concatAll, concatMap, concatMapTo, count, debounce, debounceTime, defaultIfEmpty, delay, delayWhen, dematerialize, distinct, distinctUntilChanged, distinctUntilKeyChanged, elementAt, endWith, every, exhaust, exhaustMap, expand, filter, finalize, find, findIndex, first, groupBy, ignoreElements, isEmpty, last, map, mapTo, materialize, max, merge, mergeAll, mergeMap, flatMap, mergeMapTo, mergeScan, min, multicast, observeOn, onErrorResumeNext, pairwise, partition, pluck, publish, publishBehavior, publishLast, publishReplay, race, reduce, repeat, repeatWhen, retry, retryWhen, refCount, sample, sampleTime, scan, sequenceEqual, share, shareReplay, single, skip, skipLast, skipUntil, skipWhile, startWith, subscribeOn, switchAll, switchMap, switchMapTo, take, takeLast, takeUntil, takeWhile, tap, throttle, throttleTime, throwIfEmpty, timeInterval, timeout, timeoutWith, timestamp, toArray, window, windowCount, windowTime, windowToggle, windowWhen, withLatestFrom, zip, zipAll */
  81023. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81024. "use strict";
  81025. __webpack_require__.r(__webpack_exports__);
  81026. /* harmony import */ var _internal_operators_audit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../internal/operators/audit */ "tnsW");
  81027. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "audit", function() { return _internal_operators_audit__WEBPACK_IMPORTED_MODULE_0__["audit"]; });
  81028. /* harmony import */ var _internal_operators_auditTime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../internal/operators/auditTime */ "3UWI");
  81029. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "auditTime", function() { return _internal_operators_auditTime__WEBPACK_IMPORTED_MODULE_1__["auditTime"]; });
  81030. /* harmony import */ var _internal_operators_buffer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../internal/operators/buffer */ "p9/F");
  81031. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return _internal_operators_buffer__WEBPACK_IMPORTED_MODULE_2__["buffer"]; });
  81032. /* harmony import */ var _internal_operators_bufferCount__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../internal/operators/bufferCount */ "9M8c");
  81033. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferCount", function() { return _internal_operators_bufferCount__WEBPACK_IMPORTED_MODULE_3__["bufferCount"]; });
  81034. /* harmony import */ var _internal_operators_bufferTime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../internal/operators/bufferTime */ "OsX3");
  81035. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferTime", function() { return _internal_operators_bufferTime__WEBPACK_IMPORTED_MODULE_4__["bufferTime"]; });
  81036. /* harmony import */ var _internal_operators_bufferToggle__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../internal/operators/bufferToggle */ "FD9M");
  81037. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferToggle", function() { return _internal_operators_bufferToggle__WEBPACK_IMPORTED_MODULE_5__["bufferToggle"]; });
  81038. /* harmony import */ var _internal_operators_bufferWhen__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../internal/operators/bufferWhen */ "PfrF");
  81039. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bufferWhen", function() { return _internal_operators_bufferWhen__WEBPACK_IMPORTED_MODULE_6__["bufferWhen"]; });
  81040. /* harmony import */ var _internal_operators_catchError__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../internal/operators/catchError */ "JIr8");
  81041. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "catchError", function() { return _internal_operators_catchError__WEBPACK_IMPORTED_MODULE_7__["catchError"]; });
  81042. /* harmony import */ var _internal_operators_combineAll__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../internal/operators/combineAll */ "7wxJ");
  81043. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineAll", function() { return _internal_operators_combineAll__WEBPACK_IMPORTED_MODULE_8__["combineAll"]; });
  81044. /* harmony import */ var _internal_operators_combineLatest__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../internal/operators/combineLatest */ "fFD9");
  81045. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return _internal_operators_combineLatest__WEBPACK_IMPORTED_MODULE_9__["combineLatest"]; });
  81046. /* harmony import */ var _internal_operators_concat__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../internal/operators/concat */ "f29J");
  81047. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return _internal_operators_concat__WEBPACK_IMPORTED_MODULE_10__["concat"]; });
  81048. /* harmony import */ var _internal_operators_concatAll__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../internal/operators/concatAll */ "0EUg");
  81049. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatAll", function() { return _internal_operators_concatAll__WEBPACK_IMPORTED_MODULE_11__["concatAll"]; });
  81050. /* harmony import */ var _internal_operators_concatMap__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../internal/operators/concatMap */ "bOdf");
  81051. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatMap", function() { return _internal_operators_concatMap__WEBPACK_IMPORTED_MODULE_12__["concatMap"]; });
  81052. /* harmony import */ var _internal_operators_concatMapTo__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../internal/operators/concatMapTo */ "q7zd");
  81053. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concatMapTo", function() { return _internal_operators_concatMapTo__WEBPACK_IMPORTED_MODULE_13__["concatMapTo"]; });
  81054. /* harmony import */ var _internal_operators_count__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../internal/operators/count */ "HrJb");
  81055. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "count", function() { return _internal_operators_count__WEBPACK_IMPORTED_MODULE_14__["count"]; });
  81056. /* harmony import */ var _internal_operators_debounce__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../internal/operators/debounce */ "6eBy");
  81057. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "debounce", function() { return _internal_operators_debounce__WEBPACK_IMPORTED_MODULE_15__["debounce"]; });
  81058. /* harmony import */ var _internal_operators_debounceTime__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../internal/operators/debounceTime */ "Kj3r");
  81059. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "debounceTime", function() { return _internal_operators_debounceTime__WEBPACK_IMPORTED_MODULE_16__["debounceTime"]; });
  81060. /* harmony import */ var _internal_operators_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../internal/operators/defaultIfEmpty */ "xbPD");
  81061. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defaultIfEmpty", function() { return _internal_operators_defaultIfEmpty__WEBPACK_IMPORTED_MODULE_17__["defaultIfEmpty"]; });
  81062. /* harmony import */ var _internal_operators_delay__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../internal/operators/delay */ "3E0/");
  81063. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "delay", function() { return _internal_operators_delay__WEBPACK_IMPORTED_MODULE_18__["delay"]; });
  81064. /* harmony import */ var _internal_operators_delayWhen__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../internal/operators/delayWhen */ "coGc");
  81065. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "delayWhen", function() { return _internal_operators_delayWhen__WEBPACK_IMPORTED_MODULE_19__["delayWhen"]; });
  81066. /* harmony import */ var _internal_operators_dematerialize__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../internal/operators/dematerialize */ "kgNN");
  81067. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "dematerialize", function() { return _internal_operators_dematerialize__WEBPACK_IMPORTED_MODULE_20__["dematerialize"]; });
  81068. /* harmony import */ var _internal_operators_distinct__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../internal/operators/distinct */ "02Lk");
  81069. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "distinct", function() { return _internal_operators_distinct__WEBPACK_IMPORTED_MODULE_21__["distinct"]; });
  81070. /* harmony import */ var _internal_operators_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../internal/operators/distinctUntilChanged */ "/uUt");
  81071. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "distinctUntilChanged", function() { return _internal_operators_distinctUntilChanged__WEBPACK_IMPORTED_MODULE_22__["distinctUntilChanged"]; });
  81072. /* harmony import */ var _internal_operators_distinctUntilKeyChanged__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../internal/operators/distinctUntilKeyChanged */ "PZkE");
  81073. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "distinctUntilKeyChanged", function() { return _internal_operators_distinctUntilKeyChanged__WEBPACK_IMPORTED_MODULE_23__["distinctUntilKeyChanged"]; });
  81074. /* harmony import */ var _internal_operators_elementAt__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../internal/operators/elementAt */ "9ihq");
  81075. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "elementAt", function() { return _internal_operators_elementAt__WEBPACK_IMPORTED_MODULE_24__["elementAt"]; });
  81076. /* harmony import */ var _internal_operators_endWith__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../internal/operators/endWith */ "0Pi8");
  81077. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "endWith", function() { return _internal_operators_endWith__WEBPACK_IMPORTED_MODULE_25__["endWith"]; });
  81078. /* harmony import */ var _internal_operators_every__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../internal/operators/every */ "Gi4w");
  81079. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "every", function() { return _internal_operators_every__WEBPACK_IMPORTED_MODULE_26__["every"]; });
  81080. /* harmony import */ var _internal_operators_exhaust__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../internal/operators/exhaust */ "zt7V");
  81081. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "exhaust", function() { return _internal_operators_exhaust__WEBPACK_IMPORTED_MODULE_27__["exhaust"]; });
  81082. /* harmony import */ var _internal_operators_exhaustMap__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../internal/operators/exhaustMap */ "XqQ8");
  81083. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "exhaustMap", function() { return _internal_operators_exhaustMap__WEBPACK_IMPORTED_MODULE_28__["exhaustMap"]; });
  81084. /* harmony import */ var _internal_operators_expand__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../internal/operators/expand */ "FQpF");
  81085. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "expand", function() { return _internal_operators_expand__WEBPACK_IMPORTED_MODULE_29__["expand"]; });
  81086. /* harmony import */ var _internal_operators_filter__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../internal/operators/filter */ "pLZG");
  81087. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "filter", function() { return _internal_operators_filter__WEBPACK_IMPORTED_MODULE_30__["filter"]; });
  81088. /* harmony import */ var _internal_operators_finalize__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../internal/operators/finalize */ "nYR2");
  81089. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "finalize", function() { return _internal_operators_finalize__WEBPACK_IMPORTED_MODULE_31__["finalize"]; });
  81090. /* harmony import */ var _internal_operators_find__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../internal/operators/find */ "cBqT");
  81091. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "find", function() { return _internal_operators_find__WEBPACK_IMPORTED_MODULE_32__["find"]; });
  81092. /* harmony import */ var _internal_operators_findIndex__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../internal/operators/findIndex */ "K7De");
  81093. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findIndex", function() { return _internal_operators_findIndex__WEBPACK_IMPORTED_MODULE_33__["findIndex"]; });
  81094. /* harmony import */ var _internal_operators_first__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../internal/operators/first */ "SxV6");
  81095. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "first", function() { return _internal_operators_first__WEBPACK_IMPORTED_MODULE_34__["first"]; });
  81096. /* harmony import */ var _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../internal/operators/groupBy */ "OQgR");
  81097. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "groupBy", function() { return _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_35__["groupBy"]; });
  81098. /* harmony import */ var _internal_operators_ignoreElements__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../internal/operators/ignoreElements */ "4A3s");
  81099. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreElements", function() { return _internal_operators_ignoreElements__WEBPACK_IMPORTED_MODULE_36__["ignoreElements"]; });
  81100. /* harmony import */ var _internal_operators_isEmpty__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../internal/operators/isEmpty */ "m2j4");
  81101. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return _internal_operators_isEmpty__WEBPACK_IMPORTED_MODULE_37__["isEmpty"]; });
  81102. /* harmony import */ var _internal_operators_last__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../internal/operators/last */ "NJ9Y");
  81103. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "last", function() { return _internal_operators_last__WEBPACK_IMPORTED_MODULE_38__["last"]; });
  81104. /* harmony import */ var _internal_operators_map__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../internal/operators/map */ "lJxs");
  81105. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "map", function() { return _internal_operators_map__WEBPACK_IMPORTED_MODULE_39__["map"]; });
  81106. /* harmony import */ var _internal_operators_mapTo__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../internal/operators/mapTo */ "CqXF");
  81107. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mapTo", function() { return _internal_operators_mapTo__WEBPACK_IMPORTED_MODULE_40__["mapTo"]; });
  81108. /* harmony import */ var _internal_operators_materialize__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../internal/operators/materialize */ "dkDA");
  81109. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "materialize", function() { return _internal_operators_materialize__WEBPACK_IMPORTED_MODULE_41__["materialize"]; });
  81110. /* harmony import */ var _internal_operators_max__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../internal/operators/max */ "yI9Y");
  81111. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "max", function() { return _internal_operators_max__WEBPACK_IMPORTED_MODULE_42__["max"]; });
  81112. /* harmony import */ var _internal_operators_merge__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../internal/operators/merge */ "q92s");
  81113. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _internal_operators_merge__WEBPACK_IMPORTED_MODULE_43__["merge"]; });
  81114. /* harmony import */ var _internal_operators_mergeAll__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../internal/operators/mergeAll */ "bHdf");
  81115. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeAll", function() { return _internal_operators_mergeAll__WEBPACK_IMPORTED_MODULE_44__["mergeAll"]; });
  81116. /* harmony import */ var _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../internal/operators/mergeMap */ "5+tZ");
  81117. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeMap", function() { return _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__["mergeMap"]; });
  81118. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "flatMap", function() { return _internal_operators_mergeMap__WEBPACK_IMPORTED_MODULE_45__["mergeMap"]; });
  81119. /* harmony import */ var _internal_operators_mergeMapTo__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../internal/operators/mergeMapTo */ "UXbc");
  81120. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeMapTo", function() { return _internal_operators_mergeMapTo__WEBPACK_IMPORTED_MODULE_46__["mergeMapTo"]; });
  81121. /* harmony import */ var _internal_operators_mergeScan__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../internal/operators/mergeScan */ "51Bx");
  81122. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mergeScan", function() { return _internal_operators_mergeScan__WEBPACK_IMPORTED_MODULE_47__["mergeScan"]; });
  81123. /* harmony import */ var _internal_operators_min__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../internal/operators/min */ "FZB8");
  81124. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "min", function() { return _internal_operators_min__WEBPACK_IMPORTED_MODULE_48__["min"]; });
  81125. /* harmony import */ var _internal_operators_multicast__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../internal/operators/multicast */ "oB13");
  81126. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "multicast", function() { return _internal_operators_multicast__WEBPACK_IMPORTED_MODULE_49__["multicast"]; });
  81127. /* harmony import */ var _internal_operators_observeOn__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../internal/operators/observeOn */ "pxpQ");
  81128. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "observeOn", function() { return _internal_operators_observeOn__WEBPACK_IMPORTED_MODULE_50__["observeOn"]; });
  81129. /* harmony import */ var _internal_operators_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../internal/operators/onErrorResumeNext */ "uTdr");
  81130. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return _internal_operators_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_51__["onErrorResumeNext"]; });
  81131. /* harmony import */ var _internal_operators_pairwise__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../internal/operators/pairwise */ "Zy1z");
  81132. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairwise", function() { return _internal_operators_pairwise__WEBPACK_IMPORTED_MODULE_52__["pairwise"]; });
  81133. /* harmony import */ var _internal_operators_partition__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../internal/operators/partition */ "A3iJ");
  81134. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return _internal_operators_partition__WEBPACK_IMPORTED_MODULE_53__["partition"]; });
  81135. /* harmony import */ var _internal_operators_pluck__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../internal/operators/pluck */ "wO+i");
  81136. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pluck", function() { return _internal_operators_pluck__WEBPACK_IMPORTED_MODULE_54__["pluck"]; });
  81137. /* harmony import */ var _internal_operators_publish__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../internal/operators/publish */ "NfdI");
  81138. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "publish", function() { return _internal_operators_publish__WEBPACK_IMPORTED_MODULE_55__["publish"]; });
  81139. /* harmony import */ var _internal_operators_publishBehavior__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../internal/operators/publishBehavior */ "UGaM");
  81140. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "publishBehavior", function() { return _internal_operators_publishBehavior__WEBPACK_IMPORTED_MODULE_56__["publishBehavior"]; });
  81141. /* harmony import */ var _internal_operators_publishLast__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../internal/operators/publishLast */ "qZ0a");
  81142. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "publishLast", function() { return _internal_operators_publishLast__WEBPACK_IMPORTED_MODULE_57__["publishLast"]; });
  81143. /* harmony import */ var _internal_operators_publishReplay__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../internal/operators/publishReplay */ "05l1");
  81144. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "publishReplay", function() { return _internal_operators_publishReplay__WEBPACK_IMPORTED_MODULE_58__["publishReplay"]; });
  81145. /* harmony import */ var _internal_operators_race__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../internal/operators/race */ "4f8F");
  81146. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "race", function() { return _internal_operators_race__WEBPACK_IMPORTED_MODULE_59__["race"]; });
  81147. /* harmony import */ var _internal_operators_reduce__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../internal/operators/reduce */ "128B");
  81148. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "reduce", function() { return _internal_operators_reduce__WEBPACK_IMPORTED_MODULE_60__["reduce"]; });
  81149. /* harmony import */ var _internal_operators_repeat__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../internal/operators/repeat */ "/d8p");
  81150. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "repeat", function() { return _internal_operators_repeat__WEBPACK_IMPORTED_MODULE_61__["repeat"]; });
  81151. /* harmony import */ var _internal_operators_repeatWhen__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../internal/operators/repeatWhen */ "Gqsl");
  81152. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "repeatWhen", function() { return _internal_operators_repeatWhen__WEBPACK_IMPORTED_MODULE_62__["repeatWhen"]; });
  81153. /* harmony import */ var _internal_operators_retry__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../internal/operators/retry */ "un/a");
  81154. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retry", function() { return _internal_operators_retry__WEBPACK_IMPORTED_MODULE_63__["retry"]; });
  81155. /* harmony import */ var _internal_operators_retryWhen__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../internal/operators/retryWhen */ "MtjB");
  81156. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "retryWhen", function() { return _internal_operators_retryWhen__WEBPACK_IMPORTED_MODULE_64__["retryWhen"]; });
  81157. /* harmony import */ var _internal_operators_refCount__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../internal/operators/refCount */ "x+ZX");
  81158. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "refCount", function() { return _internal_operators_refCount__WEBPACK_IMPORTED_MODULE_65__["refCount"]; });
  81159. /* harmony import */ var _internal_operators_sample__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../internal/operators/sample */ "c6ID");
  81160. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sample", function() { return _internal_operators_sample__WEBPACK_IMPORTED_MODULE_66__["sample"]; });
  81161. /* harmony import */ var _internal_operators_sampleTime__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../internal/operators/sampleTime */ "1Ykd");
  81162. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sampleTime", function() { return _internal_operators_sampleTime__WEBPACK_IMPORTED_MODULE_67__["sampleTime"]; });
  81163. /* harmony import */ var _internal_operators_scan__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../internal/operators/scan */ "Kqap");
  81164. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scan", function() { return _internal_operators_scan__WEBPACK_IMPORTED_MODULE_68__["scan"]; });
  81165. /* harmony import */ var _internal_operators_sequenceEqual__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../internal/operators/sequenceEqual */ "Zyez");
  81166. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "sequenceEqual", function() { return _internal_operators_sequenceEqual__WEBPACK_IMPORTED_MODULE_69__["sequenceEqual"]; });
  81167. /* harmony import */ var _internal_operators_share__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ../internal/operators/share */ "w1tV");
  81168. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "share", function() { return _internal_operators_share__WEBPACK_IMPORTED_MODULE_70__["share"]; });
  81169. /* harmony import */ var _internal_operators_shareReplay__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../internal/operators/shareReplay */ "UXun");
  81170. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "shareReplay", function() { return _internal_operators_shareReplay__WEBPACK_IMPORTED_MODULE_71__["shareReplay"]; });
  81171. /* harmony import */ var _internal_operators_single__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../internal/operators/single */ "cx9U");
  81172. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "single", function() { return _internal_operators_single__WEBPACK_IMPORTED_MODULE_72__["single"]; });
  81173. /* harmony import */ var _internal_operators_skip__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../internal/operators/skip */ "zP0r");
  81174. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "skip", function() { return _internal_operators_skip__WEBPACK_IMPORTED_MODULE_73__["skip"]; });
  81175. /* harmony import */ var _internal_operators_skipLast__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../internal/operators/skipLast */ "kagm");
  81176. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "skipLast", function() { return _internal_operators_skipLast__WEBPACK_IMPORTED_MODULE_74__["skipLast"]; });
  81177. /* harmony import */ var _internal_operators_skipUntil__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../internal/operators/skipUntil */ "vqkR");
  81178. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "skipUntil", function() { return _internal_operators_skipUntil__WEBPACK_IMPORTED_MODULE_75__["skipUntil"]; });
  81179. /* harmony import */ var _internal_operators_skipWhile__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../internal/operators/skipWhile */ "32Ea");
  81180. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "skipWhile", function() { return _internal_operators_skipWhile__WEBPACK_IMPORTED_MODULE_76__["skipWhile"]; });
  81181. /* harmony import */ var _internal_operators_startWith__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../internal/operators/startWith */ "JX91");
  81182. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "startWith", function() { return _internal_operators_startWith__WEBPACK_IMPORTED_MODULE_77__["startWith"]; });
  81183. /* harmony import */ var _internal_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../internal/operators/subscribeOn */ "tf+s");
  81184. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "subscribeOn", function() { return _internal_operators_subscribeOn__WEBPACK_IMPORTED_MODULE_78__["subscribeOn"]; });
  81185. /* harmony import */ var _internal_operators_switchAll__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../internal/operators/switchAll */ "Y6wi");
  81186. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "switchAll", function() { return _internal_operators_switchAll__WEBPACK_IMPORTED_MODULE_79__["switchAll"]; });
  81187. /* harmony import */ var _internal_operators_switchMap__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../internal/operators/switchMap */ "eIep");
  81188. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "switchMap", function() { return _internal_operators_switchMap__WEBPACK_IMPORTED_MODULE_80__["switchMap"]; });
  81189. /* harmony import */ var _internal_operators_switchMapTo__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../internal/operators/switchMapTo */ "aGrj");
  81190. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "switchMapTo", function() { return _internal_operators_switchMapTo__WEBPACK_IMPORTED_MODULE_81__["switchMapTo"]; });
  81191. /* harmony import */ var _internal_operators_take__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../internal/operators/take */ "IzEk");
  81192. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "take", function() { return _internal_operators_take__WEBPACK_IMPORTED_MODULE_82__["take"]; });
  81193. /* harmony import */ var _internal_operators_takeLast__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../internal/operators/takeLast */ "BFxc");
  81194. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "takeLast", function() { return _internal_operators_takeLast__WEBPACK_IMPORTED_MODULE_83__["takeLast"]; });
  81195. /* harmony import */ var _internal_operators_takeUntil__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../internal/operators/takeUntil */ "1G5W");
  81196. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "takeUntil", function() { return _internal_operators_takeUntil__WEBPACK_IMPORTED_MODULE_84__["takeUntil"]; });
  81197. /* harmony import */ var _internal_operators_takeWhile__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../internal/operators/takeWhile */ "GJmQ");
  81198. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "takeWhile", function() { return _internal_operators_takeWhile__WEBPACK_IMPORTED_MODULE_85__["takeWhile"]; });
  81199. /* harmony import */ var _internal_operators_tap__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ../internal/operators/tap */ "vkgz");
  81200. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tap", function() { return _internal_operators_tap__WEBPACK_IMPORTED_MODULE_86__["tap"]; });
  81201. /* harmony import */ var _internal_operators_throttle__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ../internal/operators/throttle */ "yuhW");
  81202. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return _internal_operators_throttle__WEBPACK_IMPORTED_MODULE_87__["throttle"]; });
  81203. /* harmony import */ var _internal_operators_throttleTime__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ../internal/operators/throttleTime */ "gcYM");
  81204. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throttleTime", function() { return _internal_operators_throttleTime__WEBPACK_IMPORTED_MODULE_88__["throttleTime"]; });
  81205. /* harmony import */ var _internal_operators_throwIfEmpty__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ../internal/operators/throwIfEmpty */ "XDbj");
  81206. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throwIfEmpty", function() { return _internal_operators_throwIfEmpty__WEBPACK_IMPORTED_MODULE_89__["throwIfEmpty"]; });
  81207. /* harmony import */ var _internal_operators_timeInterval__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ../internal/operators/timeInterval */ "4hIw");
  81208. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return _internal_operators_timeInterval__WEBPACK_IMPORTED_MODULE_90__["timeInterval"]; });
  81209. /* harmony import */ var _internal_operators_timeout__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ../internal/operators/timeout */ "tS1D");
  81210. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return _internal_operators_timeout__WEBPACK_IMPORTED_MODULE_91__["timeout"]; });
  81211. /* harmony import */ var _internal_operators_timeoutWith__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ../internal/operators/timeoutWith */ "syX2");
  81212. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeoutWith", function() { return _internal_operators_timeoutWith__WEBPACK_IMPORTED_MODULE_92__["timeoutWith"]; });
  81213. /* harmony import */ var _internal_operators_timestamp__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ../internal/operators/timestamp */ "r0WS");
  81214. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timestamp", function() { return _internal_operators_timestamp__WEBPACK_IMPORTED_MODULE_93__["timestamp"]; });
  81215. /* harmony import */ var _internal_operators_toArray__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ../internal/operators/toArray */ "IAdc");
  81216. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toArray", function() { return _internal_operators_toArray__WEBPACK_IMPORTED_MODULE_94__["toArray"]; });
  81217. /* harmony import */ var _internal_operators_window__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ../internal/operators/window */ "mk5/");
  81218. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "window", function() { return _internal_operators_window__WEBPACK_IMPORTED_MODULE_95__["window"]; });
  81219. /* harmony import */ var _internal_operators_windowCount__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ../internal/operators/windowCount */ "lpKW");
  81220. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "windowCount", function() { return _internal_operators_windowCount__WEBPACK_IMPORTED_MODULE_96__["windowCount"]; });
  81221. /* harmony import */ var _internal_operators_windowTime__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ../internal/operators/windowTime */ "UHp3");
  81222. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "windowTime", function() { return _internal_operators_windowTime__WEBPACK_IMPORTED_MODULE_97__["windowTime"]; });
  81223. /* harmony import */ var _internal_operators_windowToggle__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! ../internal/operators/windowToggle */ "sTY7");
  81224. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "windowToggle", function() { return _internal_operators_windowToggle__WEBPACK_IMPORTED_MODULE_98__["windowToggle"]; });
  81225. /* harmony import */ var _internal_operators_windowWhen__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(/*! ../internal/operators/windowWhen */ "pXlZ");
  81226. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "windowWhen", function() { return _internal_operators_windowWhen__WEBPACK_IMPORTED_MODULE_99__["windowWhen"]; });
  81227. /* harmony import */ var _internal_operators_withLatestFrom__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(/*! ../internal/operators/withLatestFrom */ "zp1y");
  81228. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "withLatestFrom", function() { return _internal_operators_withLatestFrom__WEBPACK_IMPORTED_MODULE_100__["withLatestFrom"]; });
  81229. /* harmony import */ var _internal_operators_zip__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(/*! ../internal/operators/zip */ "GjHo");
  81230. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _internal_operators_zip__WEBPACK_IMPORTED_MODULE_101__["zip"]; });
  81231. /* harmony import */ var _internal_operators_zipAll__WEBPACK_IMPORTED_MODULE_102__ = __webpack_require__(/*! ../internal/operators/zipAll */ "JmF6");
  81232. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zipAll", function() { return _internal_operators_zipAll__WEBPACK_IMPORTED_MODULE_102__["zipAll"]; });
  81233. //# sourceMappingURL=index.js.map
  81234. /***/ }),
  81235. /***/ "kagm":
  81236. /*!*******************************************************************!*\
  81237. !*** ./node_modules/rxjs/_esm2015/internal/operators/skipLast.js ***!
  81238. \*******************************************************************/
  81239. /*! exports provided: skipLast */
  81240. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81241. "use strict";
  81242. __webpack_require__.r(__webpack_exports__);
  81243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skipLast", function() { return skipLast; });
  81244. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  81245. /* harmony import */ var _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/ArgumentOutOfRangeError */ "4I5i");
  81246. function skipLast(count) {
  81247. return (source) => source.lift(new SkipLastOperator(count));
  81248. }
  81249. class SkipLastOperator {
  81250. constructor(_skipCount) {
  81251. this._skipCount = _skipCount;
  81252. if (this._skipCount < 0) {
  81253. throw new _util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_1__["ArgumentOutOfRangeError"];
  81254. }
  81255. }
  81256. call(subscriber, source) {
  81257. if (this._skipCount === 0) {
  81258. return source.subscribe(new _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"](subscriber));
  81259. }
  81260. else {
  81261. return source.subscribe(new SkipLastSubscriber(subscriber, this._skipCount));
  81262. }
  81263. }
  81264. }
  81265. class SkipLastSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  81266. constructor(destination, _skipCount) {
  81267. super(destination);
  81268. this._skipCount = _skipCount;
  81269. this._count = 0;
  81270. this._ring = new Array(_skipCount);
  81271. }
  81272. _next(value) {
  81273. const skipCount = this._skipCount;
  81274. const count = this._count++;
  81275. if (count < skipCount) {
  81276. this._ring[count] = value;
  81277. }
  81278. else {
  81279. const currentIndex = count % skipCount;
  81280. const ring = this._ring;
  81281. const oldValue = ring[currentIndex];
  81282. ring[currentIndex] = value;
  81283. this.destination.next(oldValue);
  81284. }
  81285. }
  81286. }
  81287. //# sourceMappingURL=skipLast.js.map
  81288. /***/ }),
  81289. /***/ "kgNN":
  81290. /*!************************************************************************!*\
  81291. !*** ./node_modules/rxjs/_esm2015/internal/operators/dematerialize.js ***!
  81292. \************************************************************************/
  81293. /*! exports provided: dematerialize */
  81294. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81295. "use strict";
  81296. __webpack_require__.r(__webpack_exports__);
  81297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dematerialize", function() { return dematerialize; });
  81298. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  81299. function dematerialize() {
  81300. return function dematerializeOperatorFunction(source) {
  81301. return source.lift(new DeMaterializeOperator());
  81302. };
  81303. }
  81304. class DeMaterializeOperator {
  81305. call(subscriber, source) {
  81306. return source.subscribe(new DeMaterializeSubscriber(subscriber));
  81307. }
  81308. }
  81309. class DeMaterializeSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  81310. constructor(destination) {
  81311. super(destination);
  81312. }
  81313. _next(value) {
  81314. value.observe(this.destination);
  81315. }
  81316. }
  81317. //# sourceMappingURL=dematerialize.js.map
  81318. /***/ }),
  81319. /***/ "l5mm":
  81320. /*!********************************************************************!*\
  81321. !*** ./node_modules/rxjs/_esm2015/internal/observable/interval.js ***!
  81322. \********************************************************************/
  81323. /*! exports provided: interval */
  81324. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81325. "use strict";
  81326. __webpack_require__.r(__webpack_exports__);
  81327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return interval; });
  81328. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  81329. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  81330. /* harmony import */ var _util_isNumeric__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isNumeric */ "Y7HM");
  81331. function interval(period = 0, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"]) {
  81332. if (!Object(_util_isNumeric__WEBPACK_IMPORTED_MODULE_2__["isNumeric"])(period) || period < 0) {
  81333. period = 0;
  81334. }
  81335. if (!scheduler || typeof scheduler.schedule !== 'function') {
  81336. scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_1__["async"];
  81337. }
  81338. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  81339. subscriber.add(scheduler.schedule(dispatch, period, { subscriber, counter: 0, period }));
  81340. return subscriber;
  81341. });
  81342. }
  81343. function dispatch(state) {
  81344. const { subscriber, counter, period } = state;
  81345. subscriber.next(counter);
  81346. this.schedule({ subscriber, counter: counter + 1, period }, period);
  81347. }
  81348. //# sourceMappingURL=interval.js.map
  81349. /***/ }),
  81350. /***/ "l7GE":
  81351. /*!****************************************************************!*\
  81352. !*** ./node_modules/rxjs/_esm2015/internal/OuterSubscriber.js ***!
  81353. \****************************************************************/
  81354. /*! exports provided: OuterSubscriber */
  81355. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81356. "use strict";
  81357. __webpack_require__.r(__webpack_exports__);
  81358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OuterSubscriber", function() { return OuterSubscriber; });
  81359. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Subscriber */ "7o/Q");
  81360. class OuterSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  81361. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  81362. this.destination.next(innerValue);
  81363. }
  81364. notifyError(error, innerSub) {
  81365. this.destination.error(error);
  81366. }
  81367. notifyComplete(innerSub) {
  81368. this.destination.complete();
  81369. }
  81370. }
  81371. //# sourceMappingURL=OuterSubscriber.js.map
  81372. /***/ }),
  81373. /***/ "lJxs":
  81374. /*!**************************************************************!*\
  81375. !*** ./node_modules/rxjs/_esm2015/internal/operators/map.js ***!
  81376. \**************************************************************/
  81377. /*! exports provided: map, MapOperator */
  81378. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81379. "use strict";
  81380. __webpack_require__.r(__webpack_exports__);
  81381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "map", function() { return map; });
  81382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MapOperator", function() { return MapOperator; });
  81383. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  81384. function map(project, thisArg) {
  81385. return function mapOperation(source) {
  81386. if (typeof project !== 'function') {
  81387. throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');
  81388. }
  81389. return source.lift(new MapOperator(project, thisArg));
  81390. };
  81391. }
  81392. class MapOperator {
  81393. constructor(project, thisArg) {
  81394. this.project = project;
  81395. this.thisArg = thisArg;
  81396. }
  81397. call(subscriber, source) {
  81398. return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));
  81399. }
  81400. }
  81401. class MapSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  81402. constructor(destination, project, thisArg) {
  81403. super(destination);
  81404. this.project = project;
  81405. this.count = 0;
  81406. this.thisArg = thisArg || this;
  81407. }
  81408. _next(value) {
  81409. let result;
  81410. try {
  81411. result = this.project.call(this.thisArg, value, this.count++);
  81412. }
  81413. catch (err) {
  81414. this.destination.error(err);
  81415. return;
  81416. }
  81417. this.destination.next(result);
  81418. }
  81419. }
  81420. //# sourceMappingURL=map.js.map
  81421. /***/ }),
  81422. /***/ "lpKW":
  81423. /*!**********************************************************************!*\
  81424. !*** ./node_modules/rxjs/_esm2015/internal/operators/windowCount.js ***!
  81425. \**********************************************************************/
  81426. /*! exports provided: windowCount */
  81427. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81428. "use strict";
  81429. __webpack_require__.r(__webpack_exports__);
  81430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowCount", function() { return windowCount; });
  81431. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  81432. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subject */ "XNiG");
  81433. function windowCount(windowSize, startWindowEvery = 0) {
  81434. return function windowCountOperatorFunction(source) {
  81435. return source.lift(new WindowCountOperator(windowSize, startWindowEvery));
  81436. };
  81437. }
  81438. class WindowCountOperator {
  81439. constructor(windowSize, startWindowEvery) {
  81440. this.windowSize = windowSize;
  81441. this.startWindowEvery = startWindowEvery;
  81442. }
  81443. call(subscriber, source) {
  81444. return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery));
  81445. }
  81446. }
  81447. class WindowCountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  81448. constructor(destination, windowSize, startWindowEvery) {
  81449. super(destination);
  81450. this.destination = destination;
  81451. this.windowSize = windowSize;
  81452. this.startWindowEvery = startWindowEvery;
  81453. this.windows = [new _Subject__WEBPACK_IMPORTED_MODULE_1__["Subject"]()];
  81454. this.count = 0;
  81455. destination.next(this.windows[0]);
  81456. }
  81457. _next(value) {
  81458. const startWindowEvery = (this.startWindowEvery > 0) ? this.startWindowEvery : this.windowSize;
  81459. const destination = this.destination;
  81460. const windowSize = this.windowSize;
  81461. const windows = this.windows;
  81462. const len = windows.length;
  81463. for (let i = 0; i < len && !this.closed; i++) {
  81464. windows[i].next(value);
  81465. }
  81466. const c = this.count - windowSize + 1;
  81467. if (c >= 0 && c % startWindowEvery === 0 && !this.closed) {
  81468. windows.shift().complete();
  81469. }
  81470. if (++this.count % startWindowEvery === 0 && !this.closed) {
  81471. const window = new _Subject__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
  81472. windows.push(window);
  81473. destination.next(window);
  81474. }
  81475. }
  81476. _error(err) {
  81477. const windows = this.windows;
  81478. if (windows) {
  81479. while (windows.length > 0 && !this.closed) {
  81480. windows.shift().error(err);
  81481. }
  81482. }
  81483. this.destination.error(err);
  81484. }
  81485. _complete() {
  81486. const windows = this.windows;
  81487. if (windows) {
  81488. while (windows.length > 0 && !this.closed) {
  81489. windows.shift().complete();
  81490. }
  81491. }
  81492. this.destination.complete();
  81493. }
  81494. _unsubscribe() {
  81495. this.count = 0;
  81496. this.windows = null;
  81497. }
  81498. }
  81499. //# sourceMappingURL=windowCount.js.map
  81500. /***/ }),
  81501. /***/ "m2j4":
  81502. /*!******************************************************************!*\
  81503. !*** ./node_modules/rxjs/_esm2015/internal/operators/isEmpty.js ***!
  81504. \******************************************************************/
  81505. /*! exports provided: isEmpty */
  81506. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81507. "use strict";
  81508. __webpack_require__.r(__webpack_exports__);
  81509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isEmpty", function() { return isEmpty; });
  81510. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  81511. function isEmpty() {
  81512. return (source) => source.lift(new IsEmptyOperator());
  81513. }
  81514. class IsEmptyOperator {
  81515. call(observer, source) {
  81516. return source.subscribe(new IsEmptySubscriber(observer));
  81517. }
  81518. }
  81519. class IsEmptySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  81520. constructor(destination) {
  81521. super(destination);
  81522. }
  81523. notifyComplete(isEmpty) {
  81524. const destination = this.destination;
  81525. destination.next(isEmpty);
  81526. destination.complete();
  81527. }
  81528. _next(value) {
  81529. this.notifyComplete(false);
  81530. }
  81531. _complete() {
  81532. this.notifyComplete(true);
  81533. }
  81534. }
  81535. //# sourceMappingURL=isEmpty.js.map
  81536. /***/ }),
  81537. /***/ "mCNh":
  81538. /*!**********************************************************!*\
  81539. !*** ./node_modules/rxjs/_esm2015/internal/util/pipe.js ***!
  81540. \**********************************************************/
  81541. /*! exports provided: pipe, pipeFromArray */
  81542. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81543. "use strict";
  81544. __webpack_require__.r(__webpack_exports__);
  81545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pipe", function() { return pipe; });
  81546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pipeFromArray", function() { return pipeFromArray; });
  81547. /* harmony import */ var _noop__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./noop */ "KqfI");
  81548. function pipe(...fns) {
  81549. return pipeFromArray(fns);
  81550. }
  81551. function pipeFromArray(fns) {
  81552. if (!fns) {
  81553. return _noop__WEBPACK_IMPORTED_MODULE_0__["noop"];
  81554. }
  81555. if (fns.length === 1) {
  81556. return fns[0];
  81557. }
  81558. return function piped(input) {
  81559. return fns.reduce((prev, fn) => fn(prev), input);
  81560. };
  81561. }
  81562. //# sourceMappingURL=pipe.js.map
  81563. /***/ }),
  81564. /***/ "mgaL":
  81565. /*!****************************************************************************************************!*\
  81566. !*** ./node_modules/@angular-slider/ngx-slider/__ivy_ngcc__/fesm2015/angular-slider-ngx-slider.js ***!
  81567. \****************************************************************************************************/
  81568. /*! exports provided: NgxSliderModule, ChangeContext, PointerType, LabelType, Options, ɵb, ɵc, ɵd, ɵa, ɵe */
  81569. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  81570. "use strict";
  81571. __webpack_require__.r(__webpack_exports__);
  81572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgxSliderModule", function() { return NgxSliderModule; });
  81573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChangeContext", function() { return ChangeContext; });
  81574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PointerType", function() { return PointerType; });
  81575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LabelType", function() { return LabelType; });
  81576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Options", function() { return Options; });
  81577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵb", function() { return SliderElementDirective; });
  81578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵc", function() { return SliderHandleDirective; });
  81579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵd", function() { return SliderLabelDirective; });
  81580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵa", function() { return SliderComponent; });
  81581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵe", function() { return TooltipWrapperComponent; });
  81582. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "qCKp");
  81583. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  81584. /* harmony import */ var detect_passive_events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! detect-passive-events */ "A/ap");
  81585. /* harmony import */ var detect_passive_events__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(detect_passive_events__WEBPACK_IMPORTED_MODULE_2__);
  81586. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "fXoL");
  81587. /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/forms */ "3Pt+");
  81588. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ "ofXK");
  81589. /**
  81590. * @fileoverview added by tsickle
  81591. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  81592. */
  81593. /** @enum {number} */
  81594. const _c0 = ["tooltipTemplate"];
  81595. const _c1 = ["leftOuterSelectionBar"];
  81596. const _c2 = ["rightOuterSelectionBar"];
  81597. const _c3 = ["fullBar"];
  81598. const _c4 = ["selectionBar"];
  81599. const _c5 = ["minHandle"];
  81600. const _c6 = ["maxHandle"];
  81601. const _c7 = ["floorLabel"];
  81602. const _c8 = ["ceilLabel"];
  81603. const _c9 = ["minHandleLabel"];
  81604. const _c10 = ["maxHandleLabel"];
  81605. const _c11 = ["combinedLabel"];
  81606. const _c12 = ["ticksElement"];
  81607. function SliderComponent_span_28_ngx_slider_tooltip_wrapper_2_Template(rf, ctx) { if (rf & 1) {
  81608. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "ngx-slider-tooltip-wrapper", 31);
  81609. } if (rf & 2) {
  81610. const t_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
  81611. const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
  81612. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("template", ctx_r14.tooltipTemplate)("tooltip", t_r13.valueTooltip)("placement", t_r13.valueTooltipPlacement)("content", t_r13.value);
  81613. } }
  81614. function SliderComponent_span_28_span_3_Template(rf, ctx) { if (rf & 1) {
  81615. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "span", 32);
  81616. } if (rf & 2) {
  81617. const t_r13 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]().$implicit;
  81618. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("innerHTML", t_r13.legend, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeHtml"]);
  81619. } }
  81620. const _c13 = function (a0) { return { "ngx-slider-selected": a0 }; };
  81621. function SliderComponent_span_28_Template(rf, ctx) { if (rf & 1) {
  81622. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span", 27);
  81623. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](1, "ngx-slider-tooltip-wrapper", 28);
  81624. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, SliderComponent_span_28_ngx_slider_tooltip_wrapper_2_Template, 1, 4, "ngx-slider-tooltip-wrapper", 29);
  81625. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](3, SliderComponent_span_28_span_3_Template, 1, 1, "span", 30);
  81626. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  81627. } if (rf & 2) {
  81628. const t_r13 = ctx.$implicit;
  81629. const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
  81630. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](7, _c13, t_r13.selected))("ngStyle", t_r13.style);
  81631. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  81632. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("template", ctx_r12.tooltipTemplate)("tooltip", t_r13.tooltip)("placement", t_r13.tooltipPlacement);
  81633. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  81634. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", t_r13.value != null);
  81635. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  81636. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", t_r13.legend != null);
  81637. } }
  81638. function TooltipWrapperComponent_ng_container_0_1_ng_template_0_Template(rf, ctx) { }
  81639. function TooltipWrapperComponent_ng_container_0_1_Template(rf, ctx) { if (rf & 1) {
  81640. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, TooltipWrapperComponent_ng_container_0_1_ng_template_0_Template, 0, 0, "ng-template");
  81641. } }
  81642. const _c14 = function (a0, a1, a2) { return { tooltip: a0, placement: a1, content: a2 }; };
  81643. function TooltipWrapperComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
  81644. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
  81645. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, TooltipWrapperComponent_ng_container_0_1_Template, 1, 0, undefined, 1);
  81646. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  81647. } if (rf & 2) {
  81648. const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
  81649. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  81650. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngTemplateOutlet", ctx_r0.template)("ngTemplateOutletContext", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction3"](2, _c14, ctx_r0.tooltip, ctx_r0.placement, ctx_r0.content));
  81651. } }
  81652. function TooltipWrapperComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) {
  81653. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerStart"](0);
  81654. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "div", 2);
  81655. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
  81656. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  81657. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementContainerEnd"]();
  81658. } if (rf & 2) {
  81659. const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
  81660. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  81661. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("title", ctx_r1.tooltip)("data-tooltip-placement", ctx_r1.placement);
  81662. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  81663. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r1.content, " ");
  81664. } }
  81665. const LabelType = {
  81666. /** Label above low pointer */
  81667. Low: 0,
  81668. /** Label above high pointer */
  81669. High: 1,
  81670. /** Label for minimum slider value */
  81671. Floor: 2,
  81672. /** Label for maximum slider value */
  81673. Ceil: 3,
  81674. /** Label below legend tick */
  81675. TickValue: 4,
  81676. };
  81677. LabelType[LabelType.Low] = 'Low';
  81678. LabelType[LabelType.High] = 'High';
  81679. LabelType[LabelType.Floor] = 'Floor';
  81680. LabelType[LabelType.Ceil] = 'Ceil';
  81681. LabelType[LabelType.TickValue] = 'TickValue';
  81682. /**
  81683. * Slider options
  81684. */
  81685. class Options {
  81686. constructor() {
  81687. /**
  81688. * Minimum value for a slider.
  81689. * Not applicable when using stepsArray.
  81690. */
  81691. this.floor = 0;
  81692. /**
  81693. * Maximum value for a slider.
  81694. * Not applicable when using stepsArray.
  81695. */
  81696. this.ceil = null;
  81697. /**
  81698. * Step between each value.
  81699. * Not applicable when using stepsArray.
  81700. */
  81701. this.step = 1;
  81702. /**
  81703. * The minimum range authorized on the slider.
  81704. * Applies to range slider only.
  81705. * When using stepsArray, expressed as index into stepsArray.
  81706. */
  81707. this.minRange = null;
  81708. /**
  81709. * The maximum range authorized on the slider.
  81710. * Applies to range slider only.
  81711. * When using stepsArray, expressed as index into stepsArray.
  81712. */
  81713. this.maxRange = null;
  81714. /**
  81715. * Set to true to have a push behavior. When the min handle goes above the max,
  81716. * the max is moved as well (and vice-versa). The range between min and max is
  81717. * defined by the step option (defaults to 1) and can also be overriden by
  81718. * the minRange option. Applies to range slider only.
  81719. */
  81720. this.pushRange = false;
  81721. /**
  81722. * The minimum value authorized on the slider.
  81723. * When using stepsArray, expressed as index into stepsArray.
  81724. */
  81725. this.minLimit = null;
  81726. /**
  81727. * The maximum value authorized on the slider.
  81728. * When using stepsArray, expressed as index into stepsArray.
  81729. */
  81730. this.maxLimit = null;
  81731. /**
  81732. * Custom translate function. Use this if you want to translate values displayed
  81733. * on the slider.
  81734. */
  81735. this.translate = null;
  81736. /**
  81737. * Custom function for combining overlapping labels in range slider.
  81738. * It takes the min and max values (already translated with translate fuction)
  81739. * and should return how these two values should be combined.
  81740. * If not provided, the default function will join the two values with
  81741. * ' - ' as separator.
  81742. */
  81743. this.combineLabels = null;
  81744. /**
  81745. * Use to display legend under ticks (thus, it needs to be used along with
  81746. * showTicks or showTicksValues). The function will be called with each tick
  81747. * value and returned content will be displayed under the tick as a legend.
  81748. * If the returned value is null, then no legend is displayed under
  81749. * the corresponding tick.You can also directly provide the legend values
  81750. * in the stepsArray option.
  81751. */
  81752. this.getLegend = null;
  81753. /**
  81754. * If you want to display a slider with non linear/number steps.
  81755. * Just pass an array with each slider value and that's it; the floor, ceil and step settings
  81756. * of the slider will be computed automatically.
  81757. * By default, the value model and valueHigh model values will be the value of the selected item
  81758. * in the stepsArray.
  81759. * They can also be bound to the index of the selected item by setting the bindIndexForStepsArray
  81760. * option to true.
  81761. */
  81762. this.stepsArray = null;
  81763. /**
  81764. * Set to true to bind the index of the selected item to value model and valueHigh model.
  81765. */
  81766. this.bindIndexForStepsArray = false;
  81767. /**
  81768. * When set to true and using a range slider, the range can be dragged by the selection bar.
  81769. * Applies to range slider only.
  81770. */
  81771. this.draggableRange = false;
  81772. /**
  81773. * Same as draggableRange but the slider range can't be changed.
  81774. * Applies to range slider only.
  81775. */
  81776. this.draggableRangeOnly = false;
  81777. /**
  81778. * Set to true to always show the selection bar before the slider handle.
  81779. */
  81780. this.showSelectionBar = false;
  81781. /**
  81782. * Set to true to always show the selection bar after the slider handle.
  81783. */
  81784. this.showSelectionBarEnd = false;
  81785. /**
  81786. * Set a number to draw the selection bar between this value and the slider handle.
  81787. * When using stepsArray, expressed as index into stepsArray.
  81788. */
  81789. this.showSelectionBarFromValue = null;
  81790. /**
  81791. * Only for range slider. Set to true to visualize in different colour the areas
  81792. * on the left/right (top/bottom for vertical range slider) of selection bar between the handles.
  81793. */
  81794. this.showOuterSelectionBars = false;
  81795. /**
  81796. * Set to true to hide pointer labels
  81797. */
  81798. this.hidePointerLabels = false;
  81799. /**
  81800. * Set to true to hide min / max labels
  81801. */
  81802. this.hideLimitLabels = false;
  81803. /**
  81804. * Set to false to disable the auto-hiding behavior of the limit labels.
  81805. */
  81806. this.autoHideLimitLabels = true;
  81807. /**
  81808. * Set to true to make the slider read-only.
  81809. */
  81810. this.readOnly = false;
  81811. /**
  81812. * Set to true to disable the slider.
  81813. */
  81814. this.disabled = false;
  81815. /**
  81816. * Throttle interval for mouse events in milliseconds.
  81817. * This is provided to avoid a flood of events when moving the slider with mouse.
  81818. */
  81819. this.mouseEventsInterval = 50;
  81820. /**
  81821. * Throttle interval for touch events in milliseconds.
  81822. * This is provided to avoid a flood of events when moving the slider with touch gesture.
  81823. */
  81824. this.touchEventsInterval = 50;
  81825. /**
  81826. * Throttle interval for input changes (changes to bindings or reactive form inputs)
  81827. * This is provided to avoid a flood of events on frequent input binding changes affecting performance.
  81828. */
  81829. this.inputEventsInterval = 100;
  81830. /**
  81831. * Throttle interval for output changes (signalling changes to output bindings and user callbacks)
  81832. * This is provided to avoid a flood of outgoing events affecting Angular app performance.
  81833. */
  81834. this.outputEventsInterval = 100;
  81835. /**
  81836. * Set to true to display a tick for each step of the slider.
  81837. */
  81838. this.showTicks = false;
  81839. /**
  81840. * Set to true to display a tick and the step value for each step of the slider..
  81841. */
  81842. this.showTicksValues = false;
  81843. /* The step between each tick to display. If not set, the step value is used.
  81844. Not used when ticksArray is specified. */
  81845. this.tickStep = null;
  81846. /* The step between displaying each tick step value.
  81847. If not set, then tickStep or step is used, depending on which one is set. */
  81848. this.tickValueStep = null;
  81849. /**
  81850. * Use to display ticks at specific positions.
  81851. * The array contains the index of the ticks that should be displayed.
  81852. * For example, [0, 1, 5] will display a tick for the first, second and sixth values.
  81853. */
  81854. this.ticksArray = null;
  81855. /**
  81856. * Used to display a tooltip when a tick is hovered.
  81857. * Set to a function that returns the tooltip content for a given value.
  81858. */
  81859. this.ticksTooltip = null;
  81860. /**
  81861. * Same as ticksTooltip but for ticks values.
  81862. */
  81863. this.ticksValuesTooltip = null;
  81864. /**
  81865. * Set to true to display the slider vertically.
  81866. * The slider will take the full height of its parent.
  81867. * Changing this value at runtime is not currently supported.
  81868. */
  81869. this.vertical = false;
  81870. /**
  81871. * Function that returns the current color of the selection bar.
  81872. * If your color won't change, don't use this option but set it through CSS.
  81873. * If the returned color depends on a model value (either value or valueHigh),
  81874. * you should use the argument passed to the function.
  81875. * Indeed, when the function is called, there is no certainty that the model
  81876. * has already been updated.
  81877. */
  81878. this.getSelectionBarColor = null;
  81879. /**
  81880. * Function that returns the color of a tick. showTicks must be enabled.
  81881. */
  81882. this.getTickColor = null;
  81883. /**
  81884. * Function that returns the current color of a pointer.
  81885. * If your color won't change, don't use this option but set it through CSS.
  81886. * If the returned color depends on a model value (either value or valueHigh),
  81887. * you should use the argument passed to the function.
  81888. * Indeed, when the function is called, there is no certainty that the model has already been updated.
  81889. * To handle range slider pointers independently, you should evaluate pointerType within the given
  81890. * function where "min" stands for value model and "max" for valueHigh model values.
  81891. */
  81892. this.getPointerColor = null;
  81893. /**
  81894. * Handles are focusable (on click or with tab) and can be modified using the following keyboard controls:
  81895. * Left/bottom arrows: -1
  81896. * Right/top arrows: +1
  81897. * Page-down: -10%
  81898. * Page-up: +10%
  81899. * Home: minimum value
  81900. * End: maximum value
  81901. */
  81902. this.keyboardSupport = true;
  81903. /**
  81904. * If you display the slider in an element that uses transform: scale(0.5), set the scale value to 2
  81905. * so that the slider is rendered properly and the events are handled correctly.
  81906. */
  81907. this.scale = 1;
  81908. /**
  81909. * Set to true to force the value(s) to be rounded to the step, even when modified from the outside.
  81910. * When set to false, if the model values are modified from outside the slider, they are not rounded
  81911. * and can be between two steps.
  81912. */
  81913. this.enforceStep = true;
  81914. /**
  81915. * Set to true to force the value(s) to be normalised to allowed range (floor to ceil), even when modified from the outside.
  81916. * When set to false, if the model values are modified from outside the slider, and they are outside allowed range,
  81917. * the slider may be rendered incorrectly. However, setting this to false may be useful if you want to perform custom normalisation.
  81918. */
  81919. this.enforceRange = true;
  81920. /**
  81921. * Set to true to force the value(s) to be rounded to the nearest step value, even when modified from the outside.
  81922. * When set to false, if the model values are modified from outside the slider, and they are outside allowed range,
  81923. * the slider may be rendered incorrectly. However, setting this to false may be useful if you want to perform custom normalisation.
  81924. */
  81925. this.enforceStepsArray = true;
  81926. /**
  81927. * Set to true to prevent to user from switching the min and max handles. Applies to range slider only.
  81928. */
  81929. this.noSwitching = false;
  81930. /**
  81931. * Set to true to only bind events on slider handles.
  81932. */
  81933. this.onlyBindHandles = false;
  81934. /**
  81935. * Set to true to show graphs right to left.
  81936. * If vertical is true it will be from top to bottom and left / right arrow functions reversed.
  81937. */
  81938. this.rightToLeft = false;
  81939. /**
  81940. * Set to true to reverse keyboard navigation:
  81941. * Right/top arrows: -1
  81942. * Left/bottom arrows: +1
  81943. * Page-up: -10%
  81944. * Page-down: +10%
  81945. * End: minimum value
  81946. * Home: maximum value
  81947. */
  81948. this.reversedControls = false;
  81949. /**
  81950. * Set to true to keep the slider labels inside the slider bounds.
  81951. */
  81952. this.boundPointerLabels = true;
  81953. /**
  81954. * Set to true to use a logarithmic scale to display the slider.
  81955. */
  81956. this.logScale = false;
  81957. /**
  81958. * Function that returns the position on the slider for a given value.
  81959. * The position must be a percentage between 0 and 1.
  81960. * The function should be monotonically increasing or decreasing; otherwise the slider may behave incorrectly.
  81961. */
  81962. this.customValueToPosition = null;
  81963. /**
  81964. * Function that returns the value for a given position on the slider.
  81965. * The position is a percentage between 0 and 1.
  81966. * The function should be monotonically increasing or decreasing; otherwise the slider may behave incorrectly.
  81967. */
  81968. this.customPositionToValue = null;
  81969. /**
  81970. * Precision limit for calculated values.
  81971. * Values used in calculations will be rounded to this number of significant digits
  81972. * to prevent accumulating small floating-point errors.
  81973. */
  81974. this.precisionLimit = 12;
  81975. /**
  81976. * Use to display the selection bar as a gradient.
  81977. * The given object must contain from and to properties which are colors.
  81978. */
  81979. this.selectionBarGradient = null;
  81980. /**
  81981. * Use to add a label directly to the slider for accessibility. Adds the aria-label attribute.
  81982. */
  81983. this.ariaLabel = null;
  81984. /**
  81985. * Use instead of ariaLabel to reference the id of an element which will be used to label the slider.
  81986. * Adds the aria-labelledby attribute.
  81987. */
  81988. this.ariaLabelledBy = null;
  81989. /**
  81990. * Use to add a label directly to the slider range for accessibility. Adds the aria-label attribute.
  81991. */
  81992. this.ariaLabelHigh = null;
  81993. /**
  81994. * Use instead of ariaLabelHigh to reference the id of an element which will be used to label the slider range.
  81995. * Adds the aria-labelledby attribute.
  81996. */
  81997. this.ariaLabelledByHigh = null;
  81998. /**
  81999. * Use to increase rendering performance. If the value is not provided, the slider calculates the with/height of the handle
  82000. */
  82001. this.handleDimension = null;
  82002. /**
  82003. * Use to increase rendering performance. If the value is not provided, the slider calculates the with/height of the bar
  82004. */
  82005. this.barDimension = null;
  82006. /**
  82007. * Enable/disable CSS animations
  82008. */
  82009. this.animate = true;
  82010. /**
  82011. * Enable/disable CSS animations while moving the slider
  82012. */
  82013. this.animateOnMove = false;
  82014. }
  82015. }
  82016. /**
  82017. * @fileoverview added by tsickle
  82018. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82019. */
  82020. /** @enum {number} */
  82021. const PointerType = {
  82022. /** Low pointer */
  82023. Min: 0,
  82024. /** High pointer */
  82025. Max: 1,
  82026. };
  82027. PointerType[PointerType.Min] = 'Min';
  82028. PointerType[PointerType.Max] = 'Max';
  82029. /**
  82030. * @fileoverview added by tsickle
  82031. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82032. */
  82033. class ChangeContext {
  82034. }
  82035. /**
  82036. * @fileoverview added by tsickle
  82037. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82038. */
  82039. /**
  82040. * Collection of functions to handle conversions/lookups of values
  82041. */
  82042. class ValueHelper {
  82043. /**
  82044. * @param {?} value
  82045. * @return {?}
  82046. */
  82047. static isNullOrUndefined(value) {
  82048. return value === undefined || value === null;
  82049. }
  82050. /**
  82051. * @param {?} array1
  82052. * @param {?} array2
  82053. * @return {?}
  82054. */
  82055. static areArraysEqual(array1, array2) {
  82056. if (array1.length !== array2.length) {
  82057. return false;
  82058. }
  82059. for (let i = 0; i < array1.length; ++i) {
  82060. if (array1[i] !== array2[i]) {
  82061. return false;
  82062. }
  82063. }
  82064. return true;
  82065. }
  82066. /**
  82067. * @param {?} val
  82068. * @param {?} minVal
  82069. * @param {?} maxVal
  82070. * @return {?}
  82071. */
  82072. static linearValueToPosition(val, minVal, maxVal) {
  82073. /** @type {?} */
  82074. const range = maxVal - minVal;
  82075. return (val - minVal) / range;
  82076. }
  82077. /**
  82078. * @param {?} val
  82079. * @param {?} minVal
  82080. * @param {?} maxVal
  82081. * @return {?}
  82082. */
  82083. static logValueToPosition(val, minVal, maxVal) {
  82084. val = Math.log(val);
  82085. minVal = Math.log(minVal);
  82086. maxVal = Math.log(maxVal);
  82087. /** @type {?} */
  82088. const range = maxVal - minVal;
  82089. return (val - minVal) / range;
  82090. }
  82091. /**
  82092. * @param {?} percent
  82093. * @param {?} minVal
  82094. * @param {?} maxVal
  82095. * @return {?}
  82096. */
  82097. static linearPositionToValue(percent, minVal, maxVal) {
  82098. return percent * (maxVal - minVal) + minVal;
  82099. }
  82100. /**
  82101. * @param {?} percent
  82102. * @param {?} minVal
  82103. * @param {?} maxVal
  82104. * @return {?}
  82105. */
  82106. static logPositionToValue(percent, minVal, maxVal) {
  82107. minVal = Math.log(minVal);
  82108. maxVal = Math.log(maxVal);
  82109. /** @type {?} */
  82110. const value = percent * (maxVal - minVal) + minVal;
  82111. return Math.exp(value);
  82112. }
  82113. /**
  82114. * @param {?} modelValue
  82115. * @param {?} stepsArray
  82116. * @return {?}
  82117. */
  82118. static findStepIndex(modelValue, stepsArray) {
  82119. /** @type {?} */
  82120. const differences = stepsArray.map((step) => Math.abs(modelValue - step.value));
  82121. /** @type {?} */
  82122. let minDifferenceIndex = 0;
  82123. for (let index = 0; index < stepsArray.length; index++) {
  82124. if (differences[index] !== differences[minDifferenceIndex] && differences[index] < differences[minDifferenceIndex]) {
  82125. minDifferenceIndex = index;
  82126. }
  82127. }
  82128. return minDifferenceIndex;
  82129. }
  82130. }
  82131. /**
  82132. * @fileoverview added by tsickle
  82133. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82134. */
  82135. /**
  82136. * Helper with compatibility functions to support different browsers
  82137. */
  82138. class CompatibilityHelper {
  82139. /**
  82140. * Workaround for TouchEvent constructor sadly not being available on all browsers (e.g. Firefox, Safari)
  82141. * @param {?} event
  82142. * @return {?}
  82143. */
  82144. static isTouchEvent(event) {
  82145. if ((/** @type {?} */ (window)).TouchEvent !== undefined) {
  82146. return event instanceof TouchEvent;
  82147. }
  82148. return event.touches !== undefined;
  82149. }
  82150. /**
  82151. * Detect presence of ResizeObserver API
  82152. * @return {?}
  82153. */
  82154. static isResizeObserverAvailable() {
  82155. return (/** @type {?} */ (window)).ResizeObserver !== undefined;
  82156. }
  82157. }
  82158. /**
  82159. * @fileoverview added by tsickle
  82160. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82161. */
  82162. /**
  82163. * Helper with mathematical functions
  82164. */
  82165. class MathHelper {
  82166. /**
  82167. * @param {?} value
  82168. * @param {?} precisionLimit
  82169. * @return {?}
  82170. */
  82171. static roundToPrecisionLimit(value, precisionLimit) {
  82172. return +(value.toPrecision(precisionLimit));
  82173. }
  82174. /**
  82175. * @param {?} value
  82176. * @param {?} modulo
  82177. * @param {?} precisionLimit
  82178. * @return {?}
  82179. */
  82180. static isModuloWithinPrecisionLimit(value, modulo, precisionLimit) {
  82181. /** @type {?} */
  82182. const limit = Math.pow(10, -precisionLimit);
  82183. return Math.abs(value % modulo) <= limit || Math.abs(Math.abs(value % modulo) - modulo) <= limit;
  82184. }
  82185. /**
  82186. * @param {?} value
  82187. * @param {?} floor
  82188. * @param {?} ceil
  82189. * @return {?}
  82190. */
  82191. static clampToRange(value, floor, ceil) {
  82192. return Math.min(Math.max(value, floor), ceil);
  82193. }
  82194. }
  82195. /**
  82196. * @fileoverview added by tsickle
  82197. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82198. */
  82199. class EventListener {
  82200. constructor() {
  82201. this.eventName = null;
  82202. this.events = null;
  82203. this.eventsSubscription = null;
  82204. this.teardownCallback = null;
  82205. }
  82206. }
  82207. /**
  82208. * @fileoverview added by tsickle
  82209. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82210. */
  82211. /**
  82212. * Helper class to attach event listeners to DOM elements with debounce support using rxjs
  82213. */
  82214. class EventListenerHelper {
  82215. /**
  82216. * @param {?} renderer
  82217. */
  82218. constructor(renderer) {
  82219. this.renderer = renderer;
  82220. }
  82221. /**
  82222. * @param {?} nativeElement
  82223. * @param {?} eventName
  82224. * @param {?} callback
  82225. * @param {?=} throttleInterval
  82226. * @return {?}
  82227. */
  82228. attachPassiveEventListener(nativeElement, eventName, callback, throttleInterval) {
  82229. // Only use passive event listeners if the browser supports it
  82230. if (detect_passive_events__WEBPACK_IMPORTED_MODULE_2___default.a.hasSupport !== true) {
  82231. return this.attachEventListener(nativeElement, eventName, callback, throttleInterval);
  82232. }
  82233. /** @type {?} */
  82234. const listener = new EventListener();
  82235. listener.eventName = eventName;
  82236. listener.events = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  82237. /** @type {?} */
  82238. const observerCallback = (event) => {
  82239. listener.events.next(event);
  82240. };
  82241. nativeElement.addEventListener(eventName, observerCallback, { passive: true, capture: false });
  82242. listener.teardownCallback = () => {
  82243. nativeElement.removeEventListener(eventName, observerCallback, { passive: true, capture: false });
  82244. };
  82245. listener.eventsSubscription = listener.events
  82246. .pipe((!ValueHelper.isNullOrUndefined(throttleInterval))
  82247. ? Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["throttleTime"])(throttleInterval, undefined, { leading: true, trailing: true })
  82248. : Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => { }) // no-op
  82249. )
  82250. .subscribe((event) => {
  82251. callback(event);
  82252. });
  82253. return listener;
  82254. }
  82255. /**
  82256. * @param {?} eventListener
  82257. * @return {?}
  82258. */
  82259. detachEventListener(eventListener) {
  82260. if (!ValueHelper.isNullOrUndefined(eventListener.eventsSubscription)) {
  82261. eventListener.eventsSubscription.unsubscribe();
  82262. eventListener.eventsSubscription = null;
  82263. }
  82264. if (!ValueHelper.isNullOrUndefined(eventListener.events)) {
  82265. eventListener.events.complete();
  82266. eventListener.events = null;
  82267. }
  82268. if (!ValueHelper.isNullOrUndefined(eventListener.teardownCallback)) {
  82269. eventListener.teardownCallback();
  82270. eventListener.teardownCallback = null;
  82271. }
  82272. }
  82273. /**
  82274. * @param {?} nativeElement
  82275. * @param {?} eventName
  82276. * @param {?} callback
  82277. * @param {?=} throttleInterval
  82278. * @return {?}
  82279. */
  82280. attachEventListener(nativeElement, eventName, callback, throttleInterval) {
  82281. /** @type {?} */
  82282. const listener = new EventListener();
  82283. listener.eventName = eventName;
  82284. listener.events = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  82285. /** @type {?} */
  82286. const observerCallback = (event) => {
  82287. listener.events.next(event);
  82288. };
  82289. listener.teardownCallback = this.renderer.listen(nativeElement, eventName, observerCallback);
  82290. listener.eventsSubscription = listener.events
  82291. .pipe((!ValueHelper.isNullOrUndefined(throttleInterval))
  82292. ? Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["throttleTime"])(throttleInterval, undefined, { leading: true, trailing: true })
  82293. : Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => { }) // no-op
  82294. )
  82295. .subscribe((event) => { callback(event); });
  82296. return listener;
  82297. }
  82298. }
  82299. /**
  82300. * @fileoverview added by tsickle
  82301. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82302. */
  82303. class SliderElementDirective {
  82304. /**
  82305. * @param {?} elemRef
  82306. * @param {?} renderer
  82307. * @param {?} changeDetectionRef
  82308. */
  82309. constructor(elemRef, renderer, changeDetectionRef) {
  82310. this.elemRef = elemRef;
  82311. this.renderer = renderer;
  82312. this.changeDetectionRef = changeDetectionRef;
  82313. this._position = 0;
  82314. this._dimension = 0;
  82315. this._alwaysHide = false;
  82316. this._vertical = false;
  82317. this._scale = 1;
  82318. this.opacity = 1;
  82319. this.visibility = 'visible';
  82320. this.left = '';
  82321. this.bottom = '';
  82322. this.height = '';
  82323. this.width = '';
  82324. this.eventListeners = [];
  82325. this.eventListenerHelper = new EventListenerHelper(this.renderer);
  82326. }
  82327. /**
  82328. * @return {?}
  82329. */
  82330. get position() {
  82331. return this._position;
  82332. }
  82333. /**
  82334. * @return {?}
  82335. */
  82336. get dimension() {
  82337. return this._dimension;
  82338. }
  82339. /**
  82340. * @return {?}
  82341. */
  82342. get alwaysHide() {
  82343. return this._alwaysHide;
  82344. }
  82345. /**
  82346. * @return {?}
  82347. */
  82348. get vertical() {
  82349. return this._vertical;
  82350. }
  82351. /**
  82352. * @return {?}
  82353. */
  82354. get scale() {
  82355. return this._scale;
  82356. }
  82357. /**
  82358. * @param {?} hide
  82359. * @return {?}
  82360. */
  82361. setAlwaysHide(hide) {
  82362. this._alwaysHide = hide;
  82363. if (hide) {
  82364. this.visibility = 'hidden';
  82365. }
  82366. else {
  82367. this.visibility = 'visible';
  82368. }
  82369. }
  82370. /**
  82371. * @return {?}
  82372. */
  82373. hide() {
  82374. this.opacity = 0;
  82375. }
  82376. /**
  82377. * @return {?}
  82378. */
  82379. show() {
  82380. if (this.alwaysHide) {
  82381. return;
  82382. }
  82383. this.opacity = 1;
  82384. }
  82385. /**
  82386. * @return {?}
  82387. */
  82388. isVisible() {
  82389. if (this.alwaysHide) {
  82390. return false;
  82391. }
  82392. return this.opacity !== 0;
  82393. }
  82394. /**
  82395. * @param {?} vertical
  82396. * @return {?}
  82397. */
  82398. setVertical(vertical) {
  82399. this._vertical = vertical;
  82400. if (this._vertical) {
  82401. this.left = '';
  82402. this.width = '';
  82403. }
  82404. else {
  82405. this.bottom = '';
  82406. this.height = '';
  82407. }
  82408. }
  82409. /**
  82410. * @param {?} scale
  82411. * @return {?}
  82412. */
  82413. setScale(scale) {
  82414. this._scale = scale;
  82415. }
  82416. /**
  82417. * @param {?} pos
  82418. * @return {?}
  82419. */
  82420. setPosition(pos) {
  82421. if (this._position !== pos && !this.isRefDestroyed()) {
  82422. this.changeDetectionRef.markForCheck();
  82423. }
  82424. this._position = pos;
  82425. if (this._vertical) {
  82426. this.bottom = Math.round(pos) + 'px';
  82427. }
  82428. else {
  82429. this.left = Math.round(pos) + 'px';
  82430. }
  82431. }
  82432. /**
  82433. * @return {?}
  82434. */
  82435. calculateDimension() {
  82436. /** @type {?} */
  82437. const val = this.getBoundingClientRect();
  82438. if (this.vertical) {
  82439. this._dimension = (val.bottom - val.top) * this.scale;
  82440. }
  82441. else {
  82442. this._dimension = (val.right - val.left) * this.scale;
  82443. }
  82444. }
  82445. /**
  82446. * @param {?} dim
  82447. * @return {?}
  82448. */
  82449. setDimension(dim) {
  82450. if (this._dimension !== dim && !this.isRefDestroyed()) {
  82451. this.changeDetectionRef.markForCheck();
  82452. }
  82453. this._dimension = dim;
  82454. if (this._vertical) {
  82455. this.height = Math.round(dim) + 'px';
  82456. }
  82457. else {
  82458. this.width = Math.round(dim) + 'px';
  82459. }
  82460. }
  82461. /**
  82462. * @return {?}
  82463. */
  82464. getBoundingClientRect() {
  82465. return this.elemRef.nativeElement.getBoundingClientRect();
  82466. }
  82467. /**
  82468. * @param {?} eventName
  82469. * @param {?} callback
  82470. * @param {?=} debounceInterval
  82471. * @return {?}
  82472. */
  82473. on(eventName, callback, debounceInterval) {
  82474. /** @type {?} */
  82475. const listener = this.eventListenerHelper.attachEventListener(this.elemRef.nativeElement, eventName, callback, debounceInterval);
  82476. this.eventListeners.push(listener);
  82477. }
  82478. /**
  82479. * @param {?} eventName
  82480. * @param {?} callback
  82481. * @param {?=} debounceInterval
  82482. * @return {?}
  82483. */
  82484. onPassive(eventName, callback, debounceInterval) {
  82485. /** @type {?} */
  82486. const listener = this.eventListenerHelper.attachPassiveEventListener(this.elemRef.nativeElement, eventName, callback, debounceInterval);
  82487. this.eventListeners.push(listener);
  82488. }
  82489. /**
  82490. * @param {?=} eventName
  82491. * @return {?}
  82492. */
  82493. off(eventName) {
  82494. /** @type {?} */
  82495. let listenersToKeep;
  82496. /** @type {?} */
  82497. let listenersToRemove;
  82498. if (!ValueHelper.isNullOrUndefined(eventName)) {
  82499. listenersToKeep = this.eventListeners.filter((event) => event.eventName !== eventName);
  82500. listenersToRemove = this.eventListeners.filter((event) => event.eventName === eventName);
  82501. }
  82502. else {
  82503. listenersToKeep = [];
  82504. listenersToRemove = this.eventListeners;
  82505. }
  82506. for (const listener of listenersToRemove) {
  82507. this.eventListenerHelper.detachEventListener(listener);
  82508. }
  82509. this.eventListeners = listenersToKeep;
  82510. }
  82511. /**
  82512. * @return {?}
  82513. */
  82514. isRefDestroyed() {
  82515. return ValueHelper.isNullOrUndefined(this.changeDetectionRef) || this.changeDetectionRef['destroyed'];
  82516. }
  82517. }
  82518. SliderElementDirective.ɵfac = function SliderElementDirective_Factory(t) { return new (t || SliderElementDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"])); };
  82519. SliderElementDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({ type: SliderElementDirective, selectors: [["", "ngxSliderElement", ""]], hostVars: 12, hostBindings: function SliderElementDirective_HostBindings(rf, ctx) { if (rf & 2) {
  82520. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("opacity", ctx.opacity)("visibility", ctx.visibility)("left", ctx.left)("bottom", ctx.bottom)("height", ctx.height)("width", ctx.width);
  82521. } } });
  82522. /** @nocollapse */
  82523. SliderElementDirective.ctorParameters = () => [
  82524. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] },
  82525. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"] },
  82526. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] }
  82527. ];
  82528. SliderElementDirective.propDecorators = {
  82529. opacity: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['style.opacity',] }],
  82530. visibility: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['style.visibility',] }],
  82531. left: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['style.left',] }],
  82532. bottom: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['style.bottom',] }],
  82533. height: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['style.height',] }],
  82534. width: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['style.width',] }]
  82535. };
  82536. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](SliderElementDirective, [{
  82537. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
  82538. args: [{
  82539. selector: '[ngxSliderElement]'
  82540. }]
  82541. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] }]; }, { opacity: [{
  82542. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82543. args: ['style.opacity']
  82544. }], visibility: [{
  82545. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82546. args: ['style.visibility']
  82547. }], left: [{
  82548. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82549. args: ['style.left']
  82550. }], bottom: [{
  82551. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82552. args: ['style.bottom']
  82553. }], height: [{
  82554. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82555. args: ['style.height']
  82556. }], width: [{
  82557. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82558. args: ['style.width']
  82559. }] }); })();
  82560. /**
  82561. * @fileoverview added by tsickle
  82562. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82563. */
  82564. class SliderHandleDirective extends SliderElementDirective {
  82565. /**
  82566. * @param {?} elemRef
  82567. * @param {?} renderer
  82568. * @param {?} changeDetectionRef
  82569. */
  82570. constructor(elemRef, renderer, changeDetectionRef) {
  82571. super(elemRef, renderer, changeDetectionRef);
  82572. this.active = false;
  82573. this.role = '';
  82574. this.tabindex = '';
  82575. this.ariaOrientation = '';
  82576. this.ariaLabel = '';
  82577. this.ariaLabelledBy = '';
  82578. this.ariaValueNow = '';
  82579. this.ariaValueText = '';
  82580. this.ariaValueMin = '';
  82581. this.ariaValueMax = '';
  82582. }
  82583. /**
  82584. * @return {?}
  82585. */
  82586. focus() {
  82587. this.elemRef.nativeElement.focus();
  82588. }
  82589. }
  82590. SliderHandleDirective.ɵfac = function SliderHandleDirective_Factory(t) { return new (t || SliderHandleDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"])); };
  82591. SliderHandleDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({ type: SliderHandleDirective, selectors: [["", "ngxSliderHandle", ""]], hostVars: 11, hostBindings: function SliderHandleDirective_HostBindings(rf, ctx) { if (rf & 2) {
  82592. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("role", ctx.role)("tabindex", ctx.tabindex)("aria-orientation", ctx.ariaOrientation)("aria-label", ctx.ariaLabel)("aria-labelledby", ctx.ariaLabelledBy)("aria-valuenow", ctx.ariaValueNow)("aria-valuetext", ctx.ariaValueText)("aria-valuemin", ctx.ariaValueMin)("aria-valuemax", ctx.ariaValueMax);
  82593. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("ngx-slider-active", ctx.active);
  82594. } }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]] });
  82595. /** @nocollapse */
  82596. SliderHandleDirective.ctorParameters = () => [
  82597. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] },
  82598. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"] },
  82599. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] }
  82600. ];
  82601. SliderHandleDirective.propDecorators = {
  82602. active: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['class.ngx-slider-active',] }],
  82603. role: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.role',] }],
  82604. tabindex: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.tabindex',] }],
  82605. ariaOrientation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.aria-orientation',] }],
  82606. ariaLabel: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.aria-label',] }],
  82607. ariaLabelledBy: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.aria-labelledby',] }],
  82608. ariaValueNow: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.aria-valuenow',] }],
  82609. ariaValueText: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.aria-valuetext',] }],
  82610. ariaValueMin: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.aria-valuemin',] }],
  82611. ariaValueMax: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.aria-valuemax',] }]
  82612. };
  82613. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](SliderHandleDirective, [{
  82614. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
  82615. args: [{
  82616. selector: '[ngxSliderHandle]'
  82617. }]
  82618. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] }]; }, { active: [{
  82619. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82620. args: ['class.ngx-slider-active']
  82621. }], role: [{
  82622. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82623. args: ['attr.role']
  82624. }], tabindex: [{
  82625. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82626. args: ['attr.tabindex']
  82627. }], ariaOrientation: [{
  82628. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82629. args: ['attr.aria-orientation']
  82630. }], ariaLabel: [{
  82631. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82632. args: ['attr.aria-label']
  82633. }], ariaLabelledBy: [{
  82634. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82635. args: ['attr.aria-labelledby']
  82636. }], ariaValueNow: [{
  82637. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82638. args: ['attr.aria-valuenow']
  82639. }], ariaValueText: [{
  82640. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82641. args: ['attr.aria-valuetext']
  82642. }], ariaValueMin: [{
  82643. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82644. args: ['attr.aria-valuemin']
  82645. }], ariaValueMax: [{
  82646. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  82647. args: ['attr.aria-valuemax']
  82648. }] }); })();
  82649. /**
  82650. * @fileoverview added by tsickle
  82651. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82652. */
  82653. class SliderLabelDirective extends SliderElementDirective {
  82654. /**
  82655. * @param {?} elemRef
  82656. * @param {?} renderer
  82657. * @param {?} changeDetectionRef
  82658. */
  82659. constructor(elemRef, renderer, changeDetectionRef) {
  82660. super(elemRef, renderer, changeDetectionRef);
  82661. this._value = null;
  82662. }
  82663. /**
  82664. * @return {?}
  82665. */
  82666. get value() {
  82667. return this._value;
  82668. }
  82669. /**
  82670. * @param {?} value
  82671. * @return {?}
  82672. */
  82673. setValue(value) {
  82674. /** @type {?} */
  82675. let recalculateDimension = false;
  82676. if (!this.alwaysHide &&
  82677. (ValueHelper.isNullOrUndefined(this.value) ||
  82678. this.value.length !== value.length ||
  82679. (this.value.length > 0 && this.dimension === 0))) {
  82680. recalculateDimension = true;
  82681. }
  82682. this._value = value;
  82683. this.elemRef.nativeElement.innerHTML = value;
  82684. // Update dimension only when length of the label have changed
  82685. if (recalculateDimension) {
  82686. this.calculateDimension();
  82687. }
  82688. }
  82689. }
  82690. SliderLabelDirective.ɵfac = function SliderLabelDirective_Factory(t) { return new (t || SliderLabelDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"])); };
  82691. SliderLabelDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineDirective"]({ type: SliderLabelDirective, selectors: [["", "ngxSliderLabel", ""]], features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵInheritDefinitionFeature"]] });
  82692. /** @nocollapse */
  82693. SliderLabelDirective.ctorParameters = () => [
  82694. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] },
  82695. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"] },
  82696. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] }
  82697. ];
  82698. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](SliderLabelDirective, [{
  82699. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Directive"],
  82700. args: [{
  82701. selector: '[ngxSliderLabel]'
  82702. }]
  82703. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] }]; }, null); })();
  82704. /**
  82705. * @fileoverview added by tsickle
  82706. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  82707. */
  82708. class Tick {
  82709. constructor() {
  82710. this.selected = false;
  82711. this.style = {};
  82712. this.tooltip = null;
  82713. this.tooltipPlacement = null;
  82714. this.value = null;
  82715. this.valueTooltip = null;
  82716. this.valueTooltipPlacement = null;
  82717. this.legend = null;
  82718. }
  82719. }
  82720. class Dragging {
  82721. constructor() {
  82722. this.active = false;
  82723. this.value = 0;
  82724. this.difference = 0;
  82725. this.position = 0;
  82726. this.lowLimit = 0;
  82727. this.highLimit = 0;
  82728. }
  82729. }
  82730. class ModelValues {
  82731. /**
  82732. * @param {?=} x
  82733. * @param {?=} y
  82734. * @return {?}
  82735. */
  82736. static compare(x, y) {
  82737. if (ValueHelper.isNullOrUndefined(x) && ValueHelper.isNullOrUndefined(y)) {
  82738. return false;
  82739. }
  82740. if (ValueHelper.isNullOrUndefined(x) !== ValueHelper.isNullOrUndefined(y)) {
  82741. return false;
  82742. }
  82743. return x.value === y.value && x.highValue === y.highValue;
  82744. }
  82745. }
  82746. class ModelChange extends ModelValues {
  82747. /**
  82748. * @param {?=} x
  82749. * @param {?=} y
  82750. * @return {?}
  82751. */
  82752. static compare(x, y) {
  82753. if (ValueHelper.isNullOrUndefined(x) && ValueHelper.isNullOrUndefined(y)) {
  82754. return false;
  82755. }
  82756. if (ValueHelper.isNullOrUndefined(x) !== ValueHelper.isNullOrUndefined(y)) {
  82757. return false;
  82758. }
  82759. return x.value === y.value &&
  82760. x.highValue === y.highValue &&
  82761. x.forceChange === y.forceChange;
  82762. }
  82763. }
  82764. /** @type {?} */
  82765. const NGX_SLIDER_CONTROL_VALUE_ACCESSOR = {
  82766. provide: _angular_forms__WEBPACK_IMPORTED_MODULE_4__["NG_VALUE_ACCESSOR"],
  82767. /* tslint:disable-next-line: no-use-before-declare */
  82768. useExisting: Object(_angular_core__WEBPACK_IMPORTED_MODULE_3__["forwardRef"])(() => SliderComponent),
  82769. multi: true,
  82770. };
  82771. class SliderComponent {
  82772. /**
  82773. * @param {?} renderer
  82774. * @param {?} elementRef
  82775. * @param {?} changeDetectionRef
  82776. * @param {?} zone
  82777. */
  82778. constructor(renderer, elementRef, changeDetectionRef, zone) {
  82779. this.renderer = renderer;
  82780. this.elementRef = elementRef;
  82781. this.changeDetectionRef = changeDetectionRef;
  82782. this.zone = zone;
  82783. // Model for low value of slider. For simple slider, this is the only input. For range slider, this is the low value.
  82784. this.value = null;
  82785. // Output for low value slider to support two-way bindings
  82786. this.valueChange = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
  82787. // Model for high value of slider. Not used in simple slider. For range slider, this is the high value.
  82788. this.highValue = null;
  82789. // Output for high value slider to support two-way bindings
  82790. this.highValueChange = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
  82791. // An object with all the other options of the slider.
  82792. // Each option can be updated at runtime and the slider will automatically be re-rendered.
  82793. this.options = new Options();
  82794. // Event emitted when user starts interaction with the slider
  82795. this.userChangeStart = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
  82796. // Event emitted on each change coming from user interaction
  82797. this.userChange = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
  82798. // Event emitted when user finishes interaction with the slider
  82799. this.userChangeEnd = new _angular_core__WEBPACK_IMPORTED_MODULE_3__["EventEmitter"]();
  82800. this.initHasRun = false;
  82801. this.inputModelChangeSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  82802. this.inputModelChangeSubscription = null;
  82803. this.outputModelChangeSubject = new rxjs__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  82804. this.outputModelChangeSubscription = null;
  82805. this.viewLowValue = null;
  82806. this.viewHighValue = null;
  82807. this.viewOptions = new Options();
  82808. this.handleHalfDimension = 0;
  82809. this.maxHandlePosition = 0;
  82810. this.currentTrackingPointer = null;
  82811. this.currentFocusPointer = null;
  82812. this.firstKeyDown = false;
  82813. this.touchId = null;
  82814. this.dragging = new Dragging();
  82815. // Host element class bindings
  82816. this.sliderElementVerticalClass = false;
  82817. this.sliderElementAnimateClass = false;
  82818. this.sliderElementWithLegendClass = false;
  82819. this.sliderElementDisabledAttr = null;
  82820. this.barStyle = {};
  82821. this.minPointerStyle = {};
  82822. this.maxPointerStyle = {};
  82823. this.fullBarTransparentClass = false;
  82824. this.selectionBarDraggableClass = false;
  82825. this.ticksUnderValuesClass = false;
  82826. this.intermediateTicks = false;
  82827. this.ticks = [];
  82828. this.eventListenerHelper = null;
  82829. this.onMoveEventListener = null;
  82830. this.onEndEventListener = null;
  82831. this.moving = false;
  82832. this.resizeObserver = null;
  82833. this.onTouchedCallback = null;
  82834. this.onChangeCallback = null;
  82835. this.eventListenerHelper = new EventListenerHelper(this.renderer);
  82836. }
  82837. /**
  82838. * @param {?} manualRefresh
  82839. * @return {?}
  82840. */
  82841. set manualRefresh(manualRefresh) {
  82842. this.unsubscribeManualRefresh();
  82843. this.manualRefreshSubscription = manualRefresh.subscribe(() => {
  82844. setTimeout(() => this.calculateViewDimensionsAndDetectChanges());
  82845. });
  82846. }
  82847. /**
  82848. * @param {?} triggerFocus
  82849. * @return {?}
  82850. */
  82851. set triggerFocus(triggerFocus) {
  82852. this.unsubscribeTriggerFocus();
  82853. this.triggerFocusSubscription = triggerFocus.subscribe((pointerType) => {
  82854. this.focusPointer(pointerType);
  82855. });
  82856. }
  82857. /**
  82858. * @return {?}
  82859. */
  82860. get range() {
  82861. return !ValueHelper.isNullOrUndefined(this.value) && !ValueHelper.isNullOrUndefined(this.highValue);
  82862. }
  82863. /**
  82864. * @return {?}
  82865. */
  82866. get showTicks() {
  82867. return this.viewOptions.showTicks;
  82868. }
  82869. /**
  82870. * @return {?}
  82871. */
  82872. ngOnInit() {
  82873. this.viewOptions = new Options();
  82874. Object.assign(this.viewOptions, this.options);
  82875. // We need to run these two things first, before the rest of the init in ngAfterViewInit(),
  82876. // because these two settings are set through @HostBinding and Angular change detection
  82877. // mechanism doesn't like them changing in ngAfterViewInit()
  82878. this.updateDisabledState();
  82879. this.updateVerticalState();
  82880. }
  82881. /**
  82882. * @return {?}
  82883. */
  82884. ngAfterViewInit() {
  82885. this.applyOptions();
  82886. this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval);
  82887. this.subscribeOutputModelChangeSubject(this.viewOptions.outputEventsInterval);
  82888. // Once we apply options, we need to normalise model values for the first time
  82889. this.renormaliseModelValues();
  82890. this.viewLowValue = this.modelValueToViewValue(this.value);
  82891. if (this.range) {
  82892. this.viewHighValue = this.modelValueToViewValue(this.highValue);
  82893. }
  82894. else {
  82895. this.viewHighValue = null;
  82896. }
  82897. this.updateVerticalState(); // need to run this again to cover changes to slider elements
  82898. this.manageElementsStyle();
  82899. this.updateDisabledState();
  82900. this.calculateViewDimensions();
  82901. this.addAccessibility();
  82902. this.updateCeilLabel();
  82903. this.updateFloorLabel();
  82904. this.initHandles();
  82905. this.manageEventsBindings();
  82906. this.subscribeResizeObserver();
  82907. this.initHasRun = true;
  82908. // Run change detection manually to resolve some issues when init procedure changes values used in the view
  82909. if (!this.isRefDestroyed()) {
  82910. this.changeDetectionRef.detectChanges();
  82911. }
  82912. }
  82913. /**
  82914. * @param {?} changes
  82915. * @return {?}
  82916. */
  82917. ngOnChanges(changes) {
  82918. // Always apply options first
  82919. if (!ValueHelper.isNullOrUndefined(changes["options"])) {
  82920. this.onChangeOptions();
  82921. }
  82922. // Then value changes
  82923. if (!ValueHelper.isNullOrUndefined(changes["value"]) ||
  82924. !ValueHelper.isNullOrUndefined(changes["highValue"])) {
  82925. this.inputModelChangeSubject.next({
  82926. value: this.value,
  82927. highValue: this.highValue,
  82928. forceChange: false,
  82929. internalChange: false
  82930. });
  82931. }
  82932. }
  82933. /**
  82934. * @return {?}
  82935. */
  82936. ngOnDestroy() {
  82937. this.unbindEvents();
  82938. this.unsubscribeResizeObserver();
  82939. this.unsubscribeInputModelChangeSubject();
  82940. this.unsubscribeOutputModelChangeSubject();
  82941. this.unsubscribeManualRefresh();
  82942. this.unsubscribeTriggerFocus();
  82943. }
  82944. /**
  82945. * @param {?} obj
  82946. * @return {?}
  82947. */
  82948. writeValue(obj) {
  82949. if (obj instanceof Array) {
  82950. this.value = obj[0];
  82951. this.highValue = obj[1];
  82952. }
  82953. else {
  82954. this.value = obj;
  82955. }
  82956. // ngOnChanges() is not called in this instance, so we need to communicate the change manually
  82957. this.inputModelChangeSubject.next({
  82958. value: this.value,
  82959. highValue: this.highValue,
  82960. forceChange: false,
  82961. internalChange: false
  82962. });
  82963. }
  82964. /**
  82965. * @param {?} onChangeCallback
  82966. * @return {?}
  82967. */
  82968. registerOnChange(onChangeCallback) {
  82969. this.onChangeCallback = onChangeCallback;
  82970. }
  82971. /**
  82972. * @param {?} onTouchedCallback
  82973. * @return {?}
  82974. */
  82975. registerOnTouched(onTouchedCallback) {
  82976. this.onTouchedCallback = onTouchedCallback;
  82977. }
  82978. /**
  82979. * @param {?} isDisabled
  82980. * @return {?}
  82981. */
  82982. setDisabledState(isDisabled) {
  82983. this.viewOptions.disabled = isDisabled;
  82984. this.updateDisabledState();
  82985. }
  82986. /**
  82987. * @param {?} event
  82988. * @return {?}
  82989. */
  82990. onResize(event) {
  82991. this.calculateViewDimensionsAndDetectChanges();
  82992. }
  82993. /**
  82994. * @param {?=} interval
  82995. * @return {?}
  82996. */
  82997. subscribeInputModelChangeSubject(interval) {
  82998. this.inputModelChangeSubscription = this.inputModelChangeSubject
  82999. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["distinctUntilChanged"])(ModelChange.compare),
  83000. // Hack to reset the status of the distinctUntilChanged() - if a "fake" event comes through with forceChange=true,
  83001. // we forcefully by-pass distinctUntilChanged(), but otherwise drop the event
  83002. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["filter"])((modelChange) => !modelChange.forceChange && !modelChange.internalChange), (!ValueHelper.isNullOrUndefined(interval))
  83003. ? Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["throttleTime"])(interval, undefined, { leading: true, trailing: true })
  83004. : Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => { }) // no-op
  83005. )
  83006. .subscribe((modelChange) => this.applyInputModelChange(modelChange));
  83007. }
  83008. /**
  83009. * @param {?=} interval
  83010. * @return {?}
  83011. */
  83012. subscribeOutputModelChangeSubject(interval) {
  83013. this.outputModelChangeSubscription = this.outputModelChangeSubject
  83014. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["distinctUntilChanged"])(ModelChange.compare), (!ValueHelper.isNullOrUndefined(interval))
  83015. ? Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["throttleTime"])(interval, undefined, { leading: true, trailing: true })
  83016. : Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_1__["tap"])(() => { }) // no-op
  83017. )
  83018. .subscribe((modelChange) => this.publishOutputModelChange(modelChange));
  83019. }
  83020. /**
  83021. * @return {?}
  83022. */
  83023. subscribeResizeObserver() {
  83024. if (CompatibilityHelper.isResizeObserverAvailable()) {
  83025. this.resizeObserver = new ResizeObserver(() => this.calculateViewDimensionsAndDetectChanges());
  83026. this.resizeObserver.observe(this.elementRef.nativeElement);
  83027. }
  83028. }
  83029. /**
  83030. * @return {?}
  83031. */
  83032. unsubscribeResizeObserver() {
  83033. if (CompatibilityHelper.isResizeObserverAvailable() && this.resizeObserver !== null) {
  83034. this.resizeObserver.disconnect();
  83035. this.resizeObserver = null;
  83036. }
  83037. }
  83038. /**
  83039. * @return {?}
  83040. */
  83041. unsubscribeOnMove() {
  83042. if (!ValueHelper.isNullOrUndefined(this.onMoveEventListener)) {
  83043. this.eventListenerHelper.detachEventListener(this.onMoveEventListener);
  83044. this.onMoveEventListener = null;
  83045. }
  83046. }
  83047. /**
  83048. * @return {?}
  83049. */
  83050. unsubscribeOnEnd() {
  83051. if (!ValueHelper.isNullOrUndefined(this.onEndEventListener)) {
  83052. this.eventListenerHelper.detachEventListener(this.onEndEventListener);
  83053. this.onEndEventListener = null;
  83054. }
  83055. }
  83056. /**
  83057. * @return {?}
  83058. */
  83059. unsubscribeInputModelChangeSubject() {
  83060. if (!ValueHelper.isNullOrUndefined(this.inputModelChangeSubscription)) {
  83061. this.inputModelChangeSubscription.unsubscribe();
  83062. this.inputModelChangeSubscription = null;
  83063. }
  83064. }
  83065. /**
  83066. * @return {?}
  83067. */
  83068. unsubscribeOutputModelChangeSubject() {
  83069. if (!ValueHelper.isNullOrUndefined(this.outputModelChangeSubscription)) {
  83070. this.outputModelChangeSubscription.unsubscribe();
  83071. this.outputModelChangeSubscription = null;
  83072. }
  83073. }
  83074. /**
  83075. * @return {?}
  83076. */
  83077. unsubscribeManualRefresh() {
  83078. if (!ValueHelper.isNullOrUndefined(this.manualRefreshSubscription)) {
  83079. this.manualRefreshSubscription.unsubscribe();
  83080. this.manualRefreshSubscription = null;
  83081. }
  83082. }
  83083. /**
  83084. * @return {?}
  83085. */
  83086. unsubscribeTriggerFocus() {
  83087. if (!ValueHelper.isNullOrUndefined(this.triggerFocusSubscription)) {
  83088. this.triggerFocusSubscription.unsubscribe();
  83089. this.triggerFocusSubscription = null;
  83090. }
  83091. }
  83092. /**
  83093. * @param {?} pointerType
  83094. * @return {?}
  83095. */
  83096. getPointerElement(pointerType) {
  83097. if (pointerType === PointerType.Min) {
  83098. return this.minHandleElement;
  83099. }
  83100. else if (pointerType === PointerType.Max) {
  83101. return this.maxHandleElement;
  83102. }
  83103. return null;
  83104. }
  83105. /**
  83106. * @return {?}
  83107. */
  83108. getCurrentTrackingValue() {
  83109. if (this.currentTrackingPointer === PointerType.Min) {
  83110. return this.viewLowValue;
  83111. }
  83112. else if (this.currentTrackingPointer === PointerType.Max) {
  83113. return this.viewHighValue;
  83114. }
  83115. return null;
  83116. }
  83117. /**
  83118. * @param {?} modelValue
  83119. * @return {?}
  83120. */
  83121. modelValueToViewValue(modelValue) {
  83122. if (ValueHelper.isNullOrUndefined(modelValue)) {
  83123. return NaN;
  83124. }
  83125. if (!ValueHelper.isNullOrUndefined(this.viewOptions.stepsArray) && !this.viewOptions.bindIndexForStepsArray) {
  83126. return ValueHelper.findStepIndex(+modelValue, this.viewOptions.stepsArray);
  83127. }
  83128. return +modelValue;
  83129. }
  83130. /**
  83131. * @param {?} viewValue
  83132. * @return {?}
  83133. */
  83134. viewValueToModelValue(viewValue) {
  83135. if (!ValueHelper.isNullOrUndefined(this.viewOptions.stepsArray) && !this.viewOptions.bindIndexForStepsArray) {
  83136. return this.getStepValue(viewValue);
  83137. }
  83138. return viewValue;
  83139. }
  83140. /**
  83141. * @param {?} sliderValue
  83142. * @return {?}
  83143. */
  83144. getStepValue(sliderValue) {
  83145. /** @type {?} */
  83146. const step = this.viewOptions.stepsArray[sliderValue];
  83147. return (!ValueHelper.isNullOrUndefined(step)) ? step.value : NaN;
  83148. }
  83149. /**
  83150. * @return {?}
  83151. */
  83152. applyViewChange() {
  83153. this.value = this.viewValueToModelValue(this.viewLowValue);
  83154. if (this.range) {
  83155. this.highValue = this.viewValueToModelValue(this.viewHighValue);
  83156. }
  83157. this.outputModelChangeSubject.next({
  83158. value: this.value,
  83159. highValue: this.highValue,
  83160. userEventInitiated: true,
  83161. forceChange: false
  83162. });
  83163. // At this point all changes are applied and outputs are emitted, so we should be done.
  83164. // However, input changes are communicated in different stream and we need to be ready to
  83165. // act on the next input change even if it is exactly the same as last input change.
  83166. // Therefore, we send a special event to reset the stream.
  83167. this.inputModelChangeSubject.next({
  83168. value: this.value,
  83169. highValue: this.highValue,
  83170. forceChange: false,
  83171. internalChange: true
  83172. });
  83173. }
  83174. /**
  83175. * @param {?} modelChange
  83176. * @return {?}
  83177. */
  83178. applyInputModelChange(modelChange) {
  83179. /** @type {?} */
  83180. const normalisedModelChange = this.normaliseModelValues(modelChange);
  83181. /** @type {?} */
  83182. const normalisationChange = !ModelValues.compare(modelChange, normalisedModelChange);
  83183. if (normalisationChange) {
  83184. this.value = normalisedModelChange.value;
  83185. this.highValue = normalisedModelChange.highValue;
  83186. }
  83187. this.viewLowValue = this.modelValueToViewValue(normalisedModelChange.value);
  83188. if (this.range) {
  83189. this.viewHighValue = this.modelValueToViewValue(normalisedModelChange.highValue);
  83190. }
  83191. else {
  83192. this.viewHighValue = null;
  83193. }
  83194. this.updateLowHandle(this.valueToPosition(this.viewLowValue));
  83195. if (this.range) {
  83196. this.updateHighHandle(this.valueToPosition(this.viewHighValue));
  83197. }
  83198. this.updateSelectionBar();
  83199. this.updateTicksScale();
  83200. this.updateAriaAttributes();
  83201. if (this.range) {
  83202. this.updateCombinedLabel();
  83203. }
  83204. // At the end, we need to communicate the model change to the outputs as well
  83205. // Normalisation changes are also always forced out to ensure that subscribers always end up in correct state
  83206. this.outputModelChangeSubject.next({
  83207. value: normalisedModelChange.value,
  83208. highValue: normalisedModelChange.highValue,
  83209. forceChange: normalisationChange,
  83210. userEventInitiated: false
  83211. });
  83212. }
  83213. /**
  83214. * @param {?} modelChange
  83215. * @return {?}
  83216. */
  83217. publishOutputModelChange(modelChange) {
  83218. /** @type {?} */
  83219. const emitOutputs = () => {
  83220. this.valueChange.emit(modelChange.value);
  83221. if (this.range) {
  83222. this.highValueChange.emit(modelChange.highValue);
  83223. }
  83224. if (!ValueHelper.isNullOrUndefined(this.onChangeCallback)) {
  83225. if (this.range) {
  83226. this.onChangeCallback([modelChange.value, modelChange.highValue]);
  83227. }
  83228. else {
  83229. this.onChangeCallback(modelChange.value);
  83230. }
  83231. }
  83232. if (!ValueHelper.isNullOrUndefined(this.onTouchedCallback)) {
  83233. if (this.range) {
  83234. this.onTouchedCallback([modelChange.value, modelChange.highValue]);
  83235. }
  83236. else {
  83237. this.onTouchedCallback(modelChange.value);
  83238. }
  83239. }
  83240. };
  83241. if (modelChange.userEventInitiated) {
  83242. // If this change was initiated by a user event, we can emit outputs in the same tick
  83243. emitOutputs();
  83244. this.userChange.emit(this.getChangeContext());
  83245. }
  83246. else {
  83247. // But, if the change was initated by something else like a change in input bindings,
  83248. // we need to wait until next tick to emit the outputs to keep Angular change detection happy
  83249. setTimeout(() => { emitOutputs(); });
  83250. }
  83251. }
  83252. /**
  83253. * @param {?} input
  83254. * @return {?}
  83255. */
  83256. normaliseModelValues(input) {
  83257. /** @type {?} */
  83258. const normalisedInput = new ModelValues();
  83259. normalisedInput.value = input.value;
  83260. normalisedInput.highValue = input.highValue;
  83261. if (!ValueHelper.isNullOrUndefined(this.viewOptions.stepsArray)) {
  83262. // When using steps array, only round to nearest step in the array
  83263. // No other enforcement can be done, as the step array may be out of order, and that is perfectly fine
  83264. if (this.viewOptions.enforceStepsArray) {
  83265. /** @type {?} */
  83266. const valueIndex = ValueHelper.findStepIndex(normalisedInput.value, this.viewOptions.stepsArray);
  83267. normalisedInput.value = this.viewOptions.stepsArray[valueIndex].value;
  83268. if (this.range) {
  83269. /** @type {?} */
  83270. const highValueIndex = ValueHelper.findStepIndex(normalisedInput.highValue, this.viewOptions.stepsArray);
  83271. normalisedInput.highValue = this.viewOptions.stepsArray[highValueIndex].value;
  83272. }
  83273. }
  83274. return normalisedInput;
  83275. }
  83276. if (this.viewOptions.enforceStep) {
  83277. normalisedInput.value = this.roundStep(normalisedInput.value);
  83278. if (this.range) {
  83279. normalisedInput.highValue = this.roundStep(normalisedInput.highValue);
  83280. }
  83281. }
  83282. if (this.viewOptions.enforceRange) {
  83283. normalisedInput.value = MathHelper.clampToRange(normalisedInput.value, this.viewOptions.floor, this.viewOptions.ceil);
  83284. if (this.range) {
  83285. normalisedInput.highValue = MathHelper.clampToRange(normalisedInput.highValue, this.viewOptions.floor, this.viewOptions.ceil);
  83286. }
  83287. // Make sure that range slider invariant (value <= highValue) is always satisfied
  83288. if (this.range && input.value > input.highValue) {
  83289. // We know that both values are now clamped correctly, they may just be in the wrong order
  83290. // So the easy solution is to swap them... except swapping is sometimes disabled in options, so we make the two values the same
  83291. if (this.viewOptions.noSwitching) {
  83292. normalisedInput.value = normalisedInput.highValue;
  83293. }
  83294. else {
  83295. /** @type {?} */
  83296. const tempValue = input.value;
  83297. normalisedInput.value = input.highValue;
  83298. normalisedInput.highValue = tempValue;
  83299. }
  83300. }
  83301. }
  83302. return normalisedInput;
  83303. }
  83304. /**
  83305. * @return {?}
  83306. */
  83307. renormaliseModelValues() {
  83308. /** @type {?} */
  83309. const previousModelValues = {
  83310. value: this.value,
  83311. highValue: this.highValue
  83312. };
  83313. /** @type {?} */
  83314. const normalisedModelValues = this.normaliseModelValues(previousModelValues);
  83315. if (!ModelValues.compare(normalisedModelValues, previousModelValues)) {
  83316. this.value = normalisedModelValues.value;
  83317. this.highValue = normalisedModelValues.highValue;
  83318. this.outputModelChangeSubject.next({
  83319. value: this.value,
  83320. highValue: this.highValue,
  83321. forceChange: true,
  83322. userEventInitiated: false
  83323. });
  83324. }
  83325. }
  83326. /**
  83327. * @return {?}
  83328. */
  83329. onChangeOptions() {
  83330. if (!this.initHasRun) {
  83331. return;
  83332. }
  83333. /** @type {?} */
  83334. const previousInputEventsInterval = this.viewOptions.inputEventsInterval;
  83335. /** @type {?} */
  83336. const previousOutputEventsInterval = this.viewOptions.outputEventsInterval;
  83337. /** @type {?} */
  83338. const previousOptionsInfluencingEventBindings = this.getOptionsInfluencingEventBindings(this.viewOptions);
  83339. this.applyOptions();
  83340. /** @type {?} */
  83341. const newOptionsInfluencingEventBindings = this.getOptionsInfluencingEventBindings(this.viewOptions);
  83342. /** @type {?} */
  83343. const rebindEvents = !ValueHelper.areArraysEqual(previousOptionsInfluencingEventBindings, newOptionsInfluencingEventBindings);
  83344. if (previousInputEventsInterval !== this.viewOptions.inputEventsInterval) {
  83345. this.unsubscribeInputModelChangeSubject();
  83346. this.subscribeInputModelChangeSubject(this.viewOptions.inputEventsInterval);
  83347. }
  83348. if (previousOutputEventsInterval !== this.viewOptions.outputEventsInterval) {
  83349. this.unsubscribeInputModelChangeSubject();
  83350. this.subscribeInputModelChangeSubject(this.viewOptions.outputEventsInterval);
  83351. }
  83352. // With new options, we need to re-normalise model values if necessary
  83353. this.renormaliseModelValues();
  83354. this.viewLowValue = this.modelValueToViewValue(this.value);
  83355. if (this.range) {
  83356. this.viewHighValue = this.modelValueToViewValue(this.highValue);
  83357. }
  83358. else {
  83359. this.viewHighValue = null;
  83360. }
  83361. this.resetSlider(rebindEvents);
  83362. }
  83363. /**
  83364. * @return {?}
  83365. */
  83366. applyOptions() {
  83367. this.viewOptions = new Options();
  83368. Object.assign(this.viewOptions, this.options);
  83369. this.viewOptions.draggableRange = this.range && this.viewOptions.draggableRange;
  83370. this.viewOptions.draggableRangeOnly = this.range && this.viewOptions.draggableRangeOnly;
  83371. if (this.viewOptions.draggableRangeOnly) {
  83372. this.viewOptions.draggableRange = true;
  83373. }
  83374. this.viewOptions.showTicks = this.viewOptions.showTicks ||
  83375. this.viewOptions.showTicksValues ||
  83376. !ValueHelper.isNullOrUndefined(this.viewOptions.ticksArray);
  83377. if (this.viewOptions.showTicks &&
  83378. (!ValueHelper.isNullOrUndefined(this.viewOptions.tickStep) || !ValueHelper.isNullOrUndefined(this.viewOptions.ticksArray))) {
  83379. this.intermediateTicks = true;
  83380. }
  83381. this.viewOptions.showSelectionBar = this.viewOptions.showSelectionBar ||
  83382. this.viewOptions.showSelectionBarEnd ||
  83383. !ValueHelper.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue);
  83384. if (!ValueHelper.isNullOrUndefined(this.viewOptions.stepsArray)) {
  83385. this.applyStepsArrayOptions();
  83386. }
  83387. else {
  83388. this.applyFloorCeilOptions();
  83389. }
  83390. if (ValueHelper.isNullOrUndefined(this.viewOptions.combineLabels)) {
  83391. this.viewOptions.combineLabels = (minValue, maxValue) => {
  83392. return minValue + ' - ' + maxValue;
  83393. };
  83394. }
  83395. if (this.viewOptions.logScale && this.viewOptions.floor === 0) {
  83396. throw Error('Can\'t use floor=0 with logarithmic scale');
  83397. }
  83398. }
  83399. /**
  83400. * @return {?}
  83401. */
  83402. applyStepsArrayOptions() {
  83403. this.viewOptions.floor = 0;
  83404. this.viewOptions.ceil = this.viewOptions.stepsArray.length - 1;
  83405. this.viewOptions.step = 1;
  83406. if (ValueHelper.isNullOrUndefined(this.viewOptions.translate)) {
  83407. this.viewOptions.translate = (modelValue) => {
  83408. if (this.viewOptions.bindIndexForStepsArray) {
  83409. return String(this.getStepValue(modelValue));
  83410. }
  83411. return String(modelValue);
  83412. };
  83413. }
  83414. }
  83415. /**
  83416. * @return {?}
  83417. */
  83418. applyFloorCeilOptions() {
  83419. if (ValueHelper.isNullOrUndefined(this.viewOptions.step)) {
  83420. this.viewOptions.step = 1;
  83421. }
  83422. else {
  83423. this.viewOptions.step = +this.viewOptions.step;
  83424. if (this.viewOptions.step <= 0) {
  83425. this.viewOptions.step = 1;
  83426. }
  83427. }
  83428. if (ValueHelper.isNullOrUndefined(this.viewOptions.ceil) ||
  83429. ValueHelper.isNullOrUndefined(this.viewOptions.floor)) {
  83430. throw Error('floor and ceil options must be supplied');
  83431. }
  83432. this.viewOptions.ceil = +this.viewOptions.ceil;
  83433. this.viewOptions.floor = +this.viewOptions.floor;
  83434. if (ValueHelper.isNullOrUndefined(this.viewOptions.translate)) {
  83435. this.viewOptions.translate = (value) => String(value);
  83436. }
  83437. }
  83438. /**
  83439. * @param {?=} rebindEvents
  83440. * @return {?}
  83441. */
  83442. resetSlider(rebindEvents = true) {
  83443. this.manageElementsStyle();
  83444. this.addAccessibility();
  83445. this.updateCeilLabel();
  83446. this.updateFloorLabel();
  83447. if (rebindEvents) {
  83448. this.unbindEvents();
  83449. this.manageEventsBindings();
  83450. }
  83451. this.updateDisabledState();
  83452. this.calculateViewDimensions();
  83453. this.refocusPointerIfNeeded();
  83454. }
  83455. /**
  83456. * @param {?} pointerType
  83457. * @return {?}
  83458. */
  83459. focusPointer(pointerType) {
  83460. // If not supplied, use min pointer as default
  83461. if (pointerType !== PointerType.Min && pointerType !== PointerType.Max) {
  83462. pointerType = PointerType.Min;
  83463. }
  83464. if (pointerType === PointerType.Min) {
  83465. this.minHandleElement.focus();
  83466. }
  83467. else if (this.range && pointerType === PointerType.Max) {
  83468. this.maxHandleElement.focus();
  83469. }
  83470. }
  83471. /**
  83472. * @return {?}
  83473. */
  83474. refocusPointerIfNeeded() {
  83475. if (!ValueHelper.isNullOrUndefined(this.currentFocusPointer)) {
  83476. this.onPointerFocus(this.currentFocusPointer);
  83477. /** @type {?} */
  83478. const element = this.getPointerElement(this.currentFocusPointer);
  83479. element.focus();
  83480. }
  83481. }
  83482. /**
  83483. * @return {?}
  83484. */
  83485. manageElementsStyle() {
  83486. this.updateScale();
  83487. this.floorLabelElement.setAlwaysHide(this.viewOptions.showTicksValues || this.viewOptions.hideLimitLabels);
  83488. this.ceilLabelElement.setAlwaysHide(this.viewOptions.showTicksValues || this.viewOptions.hideLimitLabels);
  83489. /** @type {?} */
  83490. const hideLabelsForTicks = this.viewOptions.showTicksValues && !this.intermediateTicks;
  83491. this.minHandleLabelElement.setAlwaysHide(hideLabelsForTicks || this.viewOptions.hidePointerLabels);
  83492. this.maxHandleLabelElement.setAlwaysHide(hideLabelsForTicks || !this.range || this.viewOptions.hidePointerLabels);
  83493. this.combinedLabelElement.setAlwaysHide(hideLabelsForTicks || !this.range || this.viewOptions.hidePointerLabels);
  83494. this.selectionBarElement.setAlwaysHide(!this.range && !this.viewOptions.showSelectionBar);
  83495. this.leftOuterSelectionBarElement.setAlwaysHide(!this.range || !this.viewOptions.showOuterSelectionBars);
  83496. this.rightOuterSelectionBarElement.setAlwaysHide(!this.range || !this.viewOptions.showOuterSelectionBars);
  83497. this.fullBarTransparentClass = this.range && this.viewOptions.showOuterSelectionBars;
  83498. this.selectionBarDraggableClass = this.viewOptions.draggableRange && !this.viewOptions.onlyBindHandles;
  83499. this.ticksUnderValuesClass = this.intermediateTicks && this.options.showTicksValues;
  83500. if (this.sliderElementVerticalClass !== this.viewOptions.vertical) {
  83501. this.updateVerticalState();
  83502. // The above change in host component class will not be applied until the end of this cycle
  83503. // However, functions calculating the slider position expect the slider to be already styled as vertical
  83504. // So as a workaround, we need to reset the slider once again to compute the correct values
  83505. setTimeout(() => { this.resetSlider(); });
  83506. }
  83507. // Changing animate class may interfere with slider reset/initialisation, so we should set it separately,
  83508. // after all is properly set up
  83509. if (this.sliderElementAnimateClass !== this.viewOptions.animate) {
  83510. setTimeout(() => { this.sliderElementAnimateClass = this.viewOptions.animate; });
  83511. }
  83512. }
  83513. /**
  83514. * @return {?}
  83515. */
  83516. manageEventsBindings() {
  83517. if (this.viewOptions.disabled || this.viewOptions.readOnly) {
  83518. this.unbindEvents();
  83519. }
  83520. else {
  83521. this.bindEvents();
  83522. }
  83523. }
  83524. /**
  83525. * @return {?}
  83526. */
  83527. updateDisabledState() {
  83528. this.sliderElementDisabledAttr = this.viewOptions.disabled ? 'disabled' : null;
  83529. }
  83530. /**
  83531. * @return {?}
  83532. */
  83533. updateVerticalState() {
  83534. this.sliderElementVerticalClass = this.viewOptions.vertical;
  83535. for (const element of this.getAllSliderElements()) {
  83536. // This is also called before ngAfterInit, so need to check that view child bindings work
  83537. if (!ValueHelper.isNullOrUndefined(element)) {
  83538. element.setVertical(this.viewOptions.vertical);
  83539. }
  83540. }
  83541. }
  83542. /**
  83543. * @return {?}
  83544. */
  83545. updateScale() {
  83546. for (const element of this.getAllSliderElements()) {
  83547. element.setScale(this.viewOptions.scale);
  83548. }
  83549. }
  83550. /**
  83551. * @return {?}
  83552. */
  83553. getAllSliderElements() {
  83554. return [this.leftOuterSelectionBarElement,
  83555. this.rightOuterSelectionBarElement,
  83556. this.fullBarElement,
  83557. this.selectionBarElement,
  83558. this.minHandleElement,
  83559. this.maxHandleElement,
  83560. this.floorLabelElement,
  83561. this.ceilLabelElement,
  83562. this.minHandleLabelElement,
  83563. this.maxHandleLabelElement,
  83564. this.combinedLabelElement,
  83565. this.ticksElement
  83566. ];
  83567. }
  83568. /**
  83569. * @return {?}
  83570. */
  83571. initHandles() {
  83572. this.updateLowHandle(this.valueToPosition(this.viewLowValue));
  83573. /*
  83574. the order here is important since the selection bar should be
  83575. updated after the high handle but before the combined label
  83576. */
  83577. if (this.range) {
  83578. this.updateHighHandle(this.valueToPosition(this.viewHighValue));
  83579. }
  83580. this.updateSelectionBar();
  83581. if (this.range) {
  83582. this.updateCombinedLabel();
  83583. }
  83584. this.updateTicksScale();
  83585. }
  83586. /**
  83587. * @return {?}
  83588. */
  83589. addAccessibility() {
  83590. this.updateAriaAttributes();
  83591. this.minHandleElement.role = 'slider';
  83592. if (this.viewOptions.keyboardSupport &&
  83593. !(this.viewOptions.readOnly || this.viewOptions.disabled)) {
  83594. this.minHandleElement.tabindex = '0';
  83595. }
  83596. else {
  83597. this.minHandleElement.tabindex = '';
  83598. }
  83599. this.minHandleElement.ariaOrientation = this.viewOptions.vertical ? 'vertical' : 'horizontal';
  83600. if (!ValueHelper.isNullOrUndefined(this.viewOptions.ariaLabel)) {
  83601. this.minHandleElement.ariaLabel = this.viewOptions.ariaLabel;
  83602. }
  83603. else if (!ValueHelper.isNullOrUndefined(this.viewOptions.ariaLabelledBy)) {
  83604. this.minHandleElement.ariaLabelledBy = this.viewOptions.ariaLabelledBy;
  83605. }
  83606. if (this.range) {
  83607. this.maxHandleElement.role = 'slider';
  83608. if (this.viewOptions.keyboardSupport &&
  83609. !(this.viewOptions.readOnly || this.viewOptions.disabled)) {
  83610. this.maxHandleElement.tabindex = '0';
  83611. }
  83612. else {
  83613. this.maxHandleElement.tabindex = '';
  83614. }
  83615. this.maxHandleElement.ariaOrientation = this.viewOptions.vertical ? 'vertical' : 'horizontal';
  83616. if (!ValueHelper.isNullOrUndefined(this.viewOptions.ariaLabelHigh)) {
  83617. this.maxHandleElement.ariaLabel = this.viewOptions.ariaLabelHigh;
  83618. }
  83619. else if (!ValueHelper.isNullOrUndefined(this.viewOptions.ariaLabelledByHigh)) {
  83620. this.maxHandleElement.ariaLabelledBy = this.viewOptions.ariaLabelledByHigh;
  83621. }
  83622. }
  83623. }
  83624. /**
  83625. * @return {?}
  83626. */
  83627. updateAriaAttributes() {
  83628. this.minHandleElement.ariaValueNow = (+this.value).toString();
  83629. this.minHandleElement.ariaValueText = this.viewOptions.translate(+this.value, LabelType.Low);
  83630. this.minHandleElement.ariaValueMin = this.viewOptions.floor.toString();
  83631. this.minHandleElement.ariaValueMax = this.viewOptions.ceil.toString();
  83632. if (this.range) {
  83633. this.maxHandleElement.ariaValueNow = (+this.highValue).toString();
  83634. this.maxHandleElement.ariaValueText = this.viewOptions.translate(+this.highValue, LabelType.High);
  83635. this.maxHandleElement.ariaValueMin = this.viewOptions.floor.toString();
  83636. this.maxHandleElement.ariaValueMax = this.viewOptions.ceil.toString();
  83637. }
  83638. }
  83639. /**
  83640. * @return {?}
  83641. */
  83642. calculateViewDimensions() {
  83643. if (!ValueHelper.isNullOrUndefined(this.viewOptions.handleDimension)) {
  83644. this.minHandleElement.setDimension(this.viewOptions.handleDimension);
  83645. }
  83646. else {
  83647. this.minHandleElement.calculateDimension();
  83648. }
  83649. /** @type {?} */
  83650. const handleWidth = this.minHandleElement.dimension;
  83651. this.handleHalfDimension = handleWidth / 2;
  83652. if (!ValueHelper.isNullOrUndefined(this.viewOptions.barDimension)) {
  83653. this.fullBarElement.setDimension(this.viewOptions.barDimension);
  83654. }
  83655. else {
  83656. this.fullBarElement.calculateDimension();
  83657. }
  83658. this.maxHandlePosition = this.fullBarElement.dimension - handleWidth;
  83659. if (this.initHasRun) {
  83660. this.updateFloorLabel();
  83661. this.updateCeilLabel();
  83662. this.initHandles();
  83663. }
  83664. }
  83665. /**
  83666. * @return {?}
  83667. */
  83668. calculateViewDimensionsAndDetectChanges() {
  83669. this.calculateViewDimensions();
  83670. if (!this.isRefDestroyed()) {
  83671. this.changeDetectionRef.detectChanges();
  83672. }
  83673. }
  83674. /**
  83675. * If the slider reference is already destroyed
  83676. * @return {?} boolean - true if ref is destroyed
  83677. */
  83678. isRefDestroyed() {
  83679. return this.changeDetectionRef['destroyed'];
  83680. }
  83681. /**
  83682. * @return {?}
  83683. */
  83684. updateTicksScale() {
  83685. if (!this.viewOptions.showTicks) {
  83686. setTimeout(() => { this.sliderElementWithLegendClass = false; });
  83687. return;
  83688. }
  83689. /** @type {?} */
  83690. const ticksArray = !ValueHelper.isNullOrUndefined(this.viewOptions.ticksArray)
  83691. ? this.viewOptions.ticksArray
  83692. : this.getTicksArray();
  83693. /** @type {?} */
  83694. const translate = this.viewOptions.vertical ? 'translateY' : 'translateX';
  83695. if (this.viewOptions.rightToLeft) {
  83696. ticksArray.reverse();
  83697. }
  83698. /** @type {?} */
  83699. const tickValueStep = !ValueHelper.isNullOrUndefined(this.viewOptions.tickValueStep) ? this.viewOptions.tickValueStep :
  83700. (!ValueHelper.isNullOrUndefined(this.viewOptions.tickStep) ? this.viewOptions.tickStep : this.viewOptions.step);
  83701. /** @type {?} */
  83702. let hasAtLeastOneLegend = false;
  83703. /** @type {?} */
  83704. const newTicks = ticksArray.map((value) => {
  83705. /** @type {?} */
  83706. let position = this.valueToPosition(value);
  83707. if (this.viewOptions.vertical) {
  83708. position = this.maxHandlePosition - position;
  83709. }
  83710. /** @type {?} */
  83711. const translation = translate + '(' + Math.round(position) + 'px)';
  83712. /** @type {?} */
  83713. const tick = new Tick();
  83714. tick.selected = this.isTickSelected(value);
  83715. tick.style = {
  83716. '-webkit-transform': translation,
  83717. '-moz-transform': translation,
  83718. '-o-transform': translation,
  83719. '-ms-transform': translation,
  83720. transform: translation,
  83721. };
  83722. if (tick.selected && !ValueHelper.isNullOrUndefined(this.viewOptions.getSelectionBarColor)) {
  83723. tick.style['background-color'] = this.getSelectionBarColor();
  83724. }
  83725. if (!tick.selected && !ValueHelper.isNullOrUndefined(this.viewOptions.getTickColor)) {
  83726. tick.style['background-color'] = this.getTickColor(value);
  83727. }
  83728. if (!ValueHelper.isNullOrUndefined(this.viewOptions.ticksTooltip)) {
  83729. tick.tooltip = this.viewOptions.ticksTooltip(value);
  83730. tick.tooltipPlacement = this.viewOptions.vertical ? 'right' : 'top';
  83731. }
  83732. if (this.viewOptions.showTicksValues && !ValueHelper.isNullOrUndefined(tickValueStep) &&
  83733. MathHelper.isModuloWithinPrecisionLimit(value, tickValueStep, this.viewOptions.precisionLimit)) {
  83734. tick.value = this.getDisplayValue(value, LabelType.TickValue);
  83735. if (!ValueHelper.isNullOrUndefined(this.viewOptions.ticksValuesTooltip)) {
  83736. tick.valueTooltip = this.viewOptions.ticksValuesTooltip(value);
  83737. tick.valueTooltipPlacement = this.viewOptions.vertical
  83738. ? 'right'
  83739. : 'top';
  83740. }
  83741. }
  83742. /** @type {?} */
  83743. let legend = null;
  83744. if (!ValueHelper.isNullOrUndefined(this.viewOptions.stepsArray)) {
  83745. /** @type {?} */
  83746. const step = this.viewOptions.stepsArray[value];
  83747. if (!ValueHelper.isNullOrUndefined(step)) {
  83748. legend = step.legend;
  83749. }
  83750. }
  83751. else if (!ValueHelper.isNullOrUndefined(this.viewOptions.getLegend)) {
  83752. legend = this.viewOptions.getLegend(value);
  83753. }
  83754. if (!ValueHelper.isNullOrUndefined(legend)) {
  83755. tick.legend = legend;
  83756. hasAtLeastOneLegend = true;
  83757. }
  83758. return tick;
  83759. });
  83760. setTimeout(() => { this.sliderElementWithLegendClass = hasAtLeastOneLegend; });
  83761. // We should avoid re-creating the ticks array if possible
  83762. // This both improves performance and makes CSS animations work correctly
  83763. if (!ValueHelper.isNullOrUndefined(this.ticks) && this.ticks.length === newTicks.length) {
  83764. for (let i = 0; i < newTicks.length; ++i) {
  83765. Object.assign(this.ticks[i], newTicks[i]);
  83766. }
  83767. }
  83768. else {
  83769. this.ticks = newTicks;
  83770. }
  83771. if (!this.isRefDestroyed()) {
  83772. this.changeDetectionRef.detectChanges();
  83773. }
  83774. }
  83775. /**
  83776. * @return {?}
  83777. */
  83778. getTicksArray() {
  83779. /** @type {?} */
  83780. const step = (!ValueHelper.isNullOrUndefined(this.viewOptions.tickStep)) ? this.viewOptions.tickStep : this.viewOptions.step;
  83781. /** @type {?} */
  83782. const ticksArray = [];
  83783. /** @type {?} */
  83784. const numberOfValues = 1 + Math.floor(MathHelper.roundToPrecisionLimit(Math.abs(this.viewOptions.ceil - this.viewOptions.floor) / step, this.viewOptions.precisionLimit));
  83785. for (let index = 0; index < numberOfValues; ++index) {
  83786. ticksArray.push(MathHelper.roundToPrecisionLimit(this.viewOptions.floor + step * index, this.viewOptions.precisionLimit));
  83787. }
  83788. return ticksArray;
  83789. }
  83790. /**
  83791. * @param {?} value
  83792. * @return {?}
  83793. */
  83794. isTickSelected(value) {
  83795. if (!this.range) {
  83796. if (!ValueHelper.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)) {
  83797. /** @type {?} */
  83798. const center = this.viewOptions.showSelectionBarFromValue;
  83799. if (this.viewLowValue > center &&
  83800. value >= center &&
  83801. value <= this.viewLowValue) {
  83802. return true;
  83803. }
  83804. else if (this.viewLowValue < center &&
  83805. value <= center &&
  83806. value >= this.viewLowValue) {
  83807. return true;
  83808. }
  83809. }
  83810. else if (this.viewOptions.showSelectionBarEnd) {
  83811. if (value >= this.viewLowValue) {
  83812. return true;
  83813. }
  83814. }
  83815. else if (this.viewOptions.showSelectionBar && value <= this.viewLowValue) {
  83816. return true;
  83817. }
  83818. }
  83819. if (this.range && value >= this.viewLowValue && value <= this.viewHighValue) {
  83820. return true;
  83821. }
  83822. return false;
  83823. }
  83824. /**
  83825. * @return {?}
  83826. */
  83827. updateFloorLabel() {
  83828. if (!this.floorLabelElement.alwaysHide) {
  83829. this.floorLabelElement.setValue(this.getDisplayValue(this.viewOptions.floor, LabelType.Floor));
  83830. this.floorLabelElement.calculateDimension();
  83831. /** @type {?} */
  83832. const position = this.viewOptions.rightToLeft
  83833. ? this.fullBarElement.dimension - this.floorLabelElement.dimension
  83834. : 0;
  83835. this.floorLabelElement.setPosition(position);
  83836. }
  83837. }
  83838. /**
  83839. * @return {?}
  83840. */
  83841. updateCeilLabel() {
  83842. if (!this.ceilLabelElement.alwaysHide) {
  83843. this.ceilLabelElement.setValue(this.getDisplayValue(this.viewOptions.ceil, LabelType.Ceil));
  83844. this.ceilLabelElement.calculateDimension();
  83845. /** @type {?} */
  83846. const position = this.viewOptions.rightToLeft
  83847. ? 0
  83848. : this.fullBarElement.dimension - this.ceilLabelElement.dimension;
  83849. this.ceilLabelElement.setPosition(position);
  83850. }
  83851. }
  83852. /**
  83853. * @param {?} which
  83854. * @param {?} newPos
  83855. * @return {?}
  83856. */
  83857. updateHandles(which, newPos) {
  83858. if (which === PointerType.Min) {
  83859. this.updateLowHandle(newPos);
  83860. }
  83861. else if (which === PointerType.Max) {
  83862. this.updateHighHandle(newPos);
  83863. }
  83864. this.updateSelectionBar();
  83865. this.updateTicksScale();
  83866. if (this.range) {
  83867. this.updateCombinedLabel();
  83868. }
  83869. }
  83870. /**
  83871. * @param {?} labelType
  83872. * @param {?} newPos
  83873. * @return {?}
  83874. */
  83875. getHandleLabelPos(labelType, newPos) {
  83876. /** @type {?} */
  83877. const labelDimension = (labelType === PointerType.Min)
  83878. ? this.minHandleLabelElement.dimension
  83879. : this.maxHandleLabelElement.dimension;
  83880. /** @type {?} */
  83881. const nearHandlePos = newPos - labelDimension / 2 + this.handleHalfDimension;
  83882. /** @type {?} */
  83883. const endOfBarPos = this.fullBarElement.dimension - labelDimension;
  83884. if (!this.viewOptions.boundPointerLabels) {
  83885. return nearHandlePos;
  83886. }
  83887. if ((this.viewOptions.rightToLeft && labelType === PointerType.Min) ||
  83888. (!this.viewOptions.rightToLeft && labelType === PointerType.Max)) {
  83889. return Math.min(nearHandlePos, endOfBarPos);
  83890. }
  83891. else {
  83892. return Math.min(Math.max(nearHandlePos, 0), endOfBarPos);
  83893. }
  83894. }
  83895. /**
  83896. * @param {?} newPos
  83897. * @return {?}
  83898. */
  83899. updateLowHandle(newPos) {
  83900. this.minHandleElement.setPosition(newPos);
  83901. this.minHandleLabelElement.setValue(this.getDisplayValue(this.viewLowValue, LabelType.Low));
  83902. this.minHandleLabelElement.setPosition(this.getHandleLabelPos(PointerType.Min, newPos));
  83903. if (!ValueHelper.isNullOrUndefined(this.viewOptions.getPointerColor)) {
  83904. this.minPointerStyle = {
  83905. backgroundColor: this.getPointerColor(PointerType.Min),
  83906. };
  83907. }
  83908. if (this.viewOptions.autoHideLimitLabels) {
  83909. this.updateFloorAndCeilLabelsVisibility();
  83910. }
  83911. }
  83912. /**
  83913. * @param {?} newPos
  83914. * @return {?}
  83915. */
  83916. updateHighHandle(newPos) {
  83917. this.maxHandleElement.setPosition(newPos);
  83918. this.maxHandleLabelElement.setValue(this.getDisplayValue(this.viewHighValue, LabelType.High));
  83919. this.maxHandleLabelElement.setPosition(this.getHandleLabelPos(PointerType.Max, newPos));
  83920. if (!ValueHelper.isNullOrUndefined(this.viewOptions.getPointerColor)) {
  83921. this.maxPointerStyle = {
  83922. backgroundColor: this.getPointerColor(PointerType.Max),
  83923. };
  83924. }
  83925. if (this.viewOptions.autoHideLimitLabels) {
  83926. this.updateFloorAndCeilLabelsVisibility();
  83927. }
  83928. }
  83929. /**
  83930. * @return {?}
  83931. */
  83932. updateFloorAndCeilLabelsVisibility() {
  83933. // Show based only on hideLimitLabels if pointer labels are hidden
  83934. if (this.viewOptions.hidePointerLabels) {
  83935. return;
  83936. }
  83937. /** @type {?} */
  83938. let floorLabelHidden = false;
  83939. /** @type {?} */
  83940. let ceilLabelHidden = false;
  83941. /** @type {?} */
  83942. const isMinLabelAtFloor = this.isLabelBelowFloorLabel(this.minHandleLabelElement);
  83943. /** @type {?} */
  83944. const isMinLabelAtCeil = this.isLabelAboveCeilLabel(this.minHandleLabelElement);
  83945. /** @type {?} */
  83946. const isMaxLabelAtCeil = this.isLabelAboveCeilLabel(this.maxHandleLabelElement);
  83947. /** @type {?} */
  83948. const isCombinedLabelAtFloor = this.isLabelBelowFloorLabel(this.combinedLabelElement);
  83949. /** @type {?} */
  83950. const isCombinedLabelAtCeil = this.isLabelAboveCeilLabel(this.combinedLabelElement);
  83951. if (isMinLabelAtFloor) {
  83952. floorLabelHidden = true;
  83953. this.floorLabelElement.hide();
  83954. }
  83955. else {
  83956. floorLabelHidden = false;
  83957. this.floorLabelElement.show();
  83958. }
  83959. if (isMinLabelAtCeil) {
  83960. ceilLabelHidden = true;
  83961. this.ceilLabelElement.hide();
  83962. }
  83963. else {
  83964. ceilLabelHidden = false;
  83965. this.ceilLabelElement.show();
  83966. }
  83967. if (this.range) {
  83968. /** @type {?} */
  83969. const hideCeil = this.combinedLabelElement.isVisible() ? isCombinedLabelAtCeil : isMaxLabelAtCeil;
  83970. /** @type {?} */
  83971. const hideFloor = this.combinedLabelElement.isVisible() ? isCombinedLabelAtFloor : isMinLabelAtFloor;
  83972. if (hideCeil) {
  83973. this.ceilLabelElement.hide();
  83974. }
  83975. else if (!ceilLabelHidden) {
  83976. this.ceilLabelElement.show();
  83977. }
  83978. // Hide or show floor label
  83979. if (hideFloor) {
  83980. this.floorLabelElement.hide();
  83981. }
  83982. else if (!floorLabelHidden) {
  83983. this.floorLabelElement.show();
  83984. }
  83985. }
  83986. }
  83987. /**
  83988. * @param {?} label
  83989. * @return {?}
  83990. */
  83991. isLabelBelowFloorLabel(label) {
  83992. /** @type {?} */
  83993. const pos = label.position;
  83994. /** @type {?} */
  83995. const dim = label.dimension;
  83996. /** @type {?} */
  83997. const floorPos = this.floorLabelElement.position;
  83998. /** @type {?} */
  83999. const floorDim = this.floorLabelElement.dimension;
  84000. return this.viewOptions.rightToLeft
  84001. ? pos + dim >= floorPos - 2
  84002. : pos <= floorPos + floorDim + 2;
  84003. }
  84004. /**
  84005. * @param {?} label
  84006. * @return {?}
  84007. */
  84008. isLabelAboveCeilLabel(label) {
  84009. /** @type {?} */
  84010. const pos = label.position;
  84011. /** @type {?} */
  84012. const dim = label.dimension;
  84013. /** @type {?} */
  84014. const ceilPos = this.ceilLabelElement.position;
  84015. /** @type {?} */
  84016. const ceilDim = this.ceilLabelElement.dimension;
  84017. return this.viewOptions.rightToLeft
  84018. ? pos <= ceilPos + ceilDim + 2
  84019. : pos + dim >= ceilPos - 2;
  84020. }
  84021. /**
  84022. * @return {?}
  84023. */
  84024. updateSelectionBar() {
  84025. /** @type {?} */
  84026. let position = 0;
  84027. /** @type {?} */
  84028. let dimension = 0;
  84029. /** @type {?} */
  84030. const isSelectionBarFromRight = this.viewOptions.rightToLeft
  84031. ? !this.viewOptions.showSelectionBarEnd
  84032. : this.viewOptions.showSelectionBarEnd;
  84033. /** @type {?} */
  84034. const positionForRange = this.viewOptions.rightToLeft
  84035. ? this.maxHandleElement.position + this.handleHalfDimension
  84036. : this.minHandleElement.position + this.handleHalfDimension;
  84037. if (this.range) {
  84038. dimension = Math.abs(this.maxHandleElement.position - this.minHandleElement.position);
  84039. position = positionForRange;
  84040. }
  84041. else {
  84042. if (!ValueHelper.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue)) {
  84043. /** @type {?} */
  84044. const center = this.viewOptions.showSelectionBarFromValue;
  84045. /** @type {?} */
  84046. const centerPosition = this.valueToPosition(center);
  84047. /** @type {?} */
  84048. const isModelGreaterThanCenter = this.viewOptions.rightToLeft
  84049. ? this.viewLowValue <= center
  84050. : this.viewLowValue > center;
  84051. if (isModelGreaterThanCenter) {
  84052. dimension = this.minHandleElement.position - centerPosition;
  84053. position = centerPosition + this.handleHalfDimension;
  84054. }
  84055. else {
  84056. dimension = centerPosition - this.minHandleElement.position;
  84057. position = this.minHandleElement.position + this.handleHalfDimension;
  84058. }
  84059. }
  84060. else if (isSelectionBarFromRight) {
  84061. dimension = Math.ceil(Math.abs(this.maxHandlePosition - this.minHandleElement.position) + this.handleHalfDimension);
  84062. position = Math.floor(this.minHandleElement.position + this.handleHalfDimension);
  84063. }
  84064. else {
  84065. dimension = this.minHandleElement.position + this.handleHalfDimension;
  84066. position = 0;
  84067. }
  84068. }
  84069. this.selectionBarElement.setDimension(dimension);
  84070. this.selectionBarElement.setPosition(position);
  84071. if (this.range && this.viewOptions.showOuterSelectionBars) {
  84072. if (this.viewOptions.rightToLeft) {
  84073. this.rightOuterSelectionBarElement.setDimension(position);
  84074. this.rightOuterSelectionBarElement.setPosition(0);
  84075. this.fullBarElement.calculateDimension();
  84076. this.leftOuterSelectionBarElement.setDimension(this.fullBarElement.dimension - (position + dimension));
  84077. this.leftOuterSelectionBarElement.setPosition(position + dimension);
  84078. }
  84079. else {
  84080. this.leftOuterSelectionBarElement.setDimension(position);
  84081. this.leftOuterSelectionBarElement.setPosition(0);
  84082. this.fullBarElement.calculateDimension();
  84083. this.rightOuterSelectionBarElement.setDimension(this.fullBarElement.dimension - (position + dimension));
  84084. this.rightOuterSelectionBarElement.setPosition(position + dimension);
  84085. }
  84086. }
  84087. if (!ValueHelper.isNullOrUndefined(this.viewOptions.getSelectionBarColor)) {
  84088. /** @type {?} */
  84089. const color = this.getSelectionBarColor();
  84090. this.barStyle = {
  84091. backgroundColor: color,
  84092. };
  84093. }
  84094. else if (!ValueHelper.isNullOrUndefined(this.viewOptions.selectionBarGradient)) {
  84095. /** @type {?} */
  84096. const offset = (!ValueHelper.isNullOrUndefined(this.viewOptions.showSelectionBarFromValue))
  84097. ? this.valueToPosition(this.viewOptions.showSelectionBarFromValue)
  84098. : 0;
  84099. /** @type {?} */
  84100. const reversed = (offset - position > 0 && !isSelectionBarFromRight) || (offset - position <= 0 && isSelectionBarFromRight);
  84101. /** @type {?} */
  84102. const direction = this.viewOptions.vertical
  84103. ? reversed ? 'bottom' : 'top'
  84104. : reversed ? 'left' : 'right';
  84105. this.barStyle = {
  84106. backgroundImage: 'linear-gradient(to ' +
  84107. direction +
  84108. ', ' +
  84109. this.viewOptions.selectionBarGradient.from +
  84110. ' 0%,' +
  84111. this.viewOptions.selectionBarGradient.to +
  84112. ' 100%)',
  84113. };
  84114. if (this.viewOptions.vertical) {
  84115. this.barStyle.backgroundPosition =
  84116. 'center ' +
  84117. (offset +
  84118. dimension +
  84119. position +
  84120. (reversed ? -this.handleHalfDimension : 0)) +
  84121. 'px';
  84122. this.barStyle.backgroundSize =
  84123. '100% ' + (this.fullBarElement.dimension - this.handleHalfDimension) + 'px';
  84124. }
  84125. else {
  84126. this.barStyle.backgroundPosition =
  84127. offset -
  84128. position +
  84129. (reversed ? this.handleHalfDimension : 0) +
  84130. 'px center';
  84131. this.barStyle.backgroundSize =
  84132. this.fullBarElement.dimension - this.handleHalfDimension + 'px 100%';
  84133. }
  84134. }
  84135. }
  84136. /**
  84137. * @return {?}
  84138. */
  84139. getSelectionBarColor() {
  84140. if (this.range) {
  84141. return this.viewOptions.getSelectionBarColor(this.value, this.highValue);
  84142. }
  84143. return this.viewOptions.getSelectionBarColor(this.value);
  84144. }
  84145. /**
  84146. * @param {?} pointerType
  84147. * @return {?}
  84148. */
  84149. getPointerColor(pointerType) {
  84150. if (pointerType === PointerType.Max) {
  84151. return this.viewOptions.getPointerColor(this.highValue, pointerType);
  84152. }
  84153. return this.viewOptions.getPointerColor(this.value, pointerType);
  84154. }
  84155. /**
  84156. * @param {?} value
  84157. * @return {?}
  84158. */
  84159. getTickColor(value) {
  84160. return this.viewOptions.getTickColor(value);
  84161. }
  84162. /**
  84163. * @return {?}
  84164. */
  84165. updateCombinedLabel() {
  84166. /** @type {?} */
  84167. let isLabelOverlap = null;
  84168. if (this.viewOptions.rightToLeft) {
  84169. isLabelOverlap =
  84170. this.minHandleLabelElement.position - this.minHandleLabelElement.dimension - 10 <= this.maxHandleLabelElement.position;
  84171. }
  84172. else {
  84173. isLabelOverlap =
  84174. this.minHandleLabelElement.position + this.minHandleLabelElement.dimension + 10 >= this.maxHandleLabelElement.position;
  84175. }
  84176. if (isLabelOverlap) {
  84177. /** @type {?} */
  84178. const lowDisplayValue = this.getDisplayValue(this.viewLowValue, LabelType.Low);
  84179. /** @type {?} */
  84180. const highDisplayValue = this.getDisplayValue(this.viewHighValue, LabelType.High);
  84181. /** @type {?} */
  84182. const combinedLabelValue = this.viewOptions.rightToLeft
  84183. ? this.viewOptions.combineLabels(highDisplayValue, lowDisplayValue)
  84184. : this.viewOptions.combineLabels(lowDisplayValue, highDisplayValue);
  84185. this.combinedLabelElement.setValue(combinedLabelValue);
  84186. /** @type {?} */
  84187. const pos = this.viewOptions.boundPointerLabels
  84188. ? Math.min(Math.max(this.selectionBarElement.position +
  84189. this.selectionBarElement.dimension / 2 -
  84190. this.combinedLabelElement.dimension / 2, 0), this.fullBarElement.dimension - this.combinedLabelElement.dimension)
  84191. : this.selectionBarElement.position + this.selectionBarElement.dimension / 2 - this.combinedLabelElement.dimension / 2;
  84192. this.combinedLabelElement.setPosition(pos);
  84193. this.minHandleLabelElement.hide();
  84194. this.maxHandleLabelElement.hide();
  84195. this.combinedLabelElement.show();
  84196. }
  84197. else {
  84198. this.updateHighHandle(this.valueToPosition(this.viewHighValue));
  84199. this.updateLowHandle(this.valueToPosition(this.viewLowValue));
  84200. this.maxHandleLabelElement.show();
  84201. this.minHandleLabelElement.show();
  84202. this.combinedLabelElement.hide();
  84203. }
  84204. if (this.viewOptions.autoHideLimitLabels) {
  84205. this.updateFloorAndCeilLabelsVisibility();
  84206. }
  84207. }
  84208. /**
  84209. * @param {?} value
  84210. * @param {?} which
  84211. * @return {?}
  84212. */
  84213. getDisplayValue(value, which) {
  84214. if (!ValueHelper.isNullOrUndefined(this.viewOptions.stepsArray) && !this.viewOptions.bindIndexForStepsArray) {
  84215. value = this.getStepValue(value);
  84216. }
  84217. return this.viewOptions.translate(value, which);
  84218. }
  84219. /**
  84220. * @param {?} value
  84221. * @param {?=} customStep
  84222. * @return {?}
  84223. */
  84224. roundStep(value, customStep) {
  84225. /** @type {?} */
  84226. const step = !ValueHelper.isNullOrUndefined(customStep) ? customStep : this.viewOptions.step;
  84227. /** @type {?} */
  84228. let steppedDifference = MathHelper.roundToPrecisionLimit((value - this.viewOptions.floor) / step, this.viewOptions.precisionLimit);
  84229. steppedDifference = Math.round(steppedDifference) * step;
  84230. return MathHelper.roundToPrecisionLimit(this.viewOptions.floor + steppedDifference, this.viewOptions.precisionLimit);
  84231. }
  84232. /**
  84233. * @param {?} val
  84234. * @return {?}
  84235. */
  84236. valueToPosition(val) {
  84237. /** @type {?} */
  84238. let fn = ValueHelper.linearValueToPosition;
  84239. if (!ValueHelper.isNullOrUndefined(this.viewOptions.customValueToPosition)) {
  84240. fn = this.viewOptions.customValueToPosition;
  84241. }
  84242. else if (this.viewOptions.logScale) {
  84243. fn = ValueHelper.logValueToPosition;
  84244. }
  84245. val = MathHelper.clampToRange(val, this.viewOptions.floor, this.viewOptions.ceil);
  84246. /** @type {?} */
  84247. let percent = fn(val, this.viewOptions.floor, this.viewOptions.ceil);
  84248. if (ValueHelper.isNullOrUndefined(percent)) {
  84249. percent = 0;
  84250. }
  84251. if (this.viewOptions.rightToLeft) {
  84252. percent = 1 - percent;
  84253. }
  84254. return percent * this.maxHandlePosition;
  84255. }
  84256. /**
  84257. * @param {?} position
  84258. * @return {?}
  84259. */
  84260. positionToValue(position) {
  84261. /** @type {?} */
  84262. let percent = position / this.maxHandlePosition;
  84263. if (this.viewOptions.rightToLeft) {
  84264. percent = 1 - percent;
  84265. }
  84266. /** @type {?} */
  84267. let fn = ValueHelper.linearPositionToValue;
  84268. if (!ValueHelper.isNullOrUndefined(this.viewOptions.customPositionToValue)) {
  84269. fn = this.viewOptions.customPositionToValue;
  84270. }
  84271. else if (this.viewOptions.logScale) {
  84272. fn = ValueHelper.logPositionToValue;
  84273. }
  84274. /** @type {?} */
  84275. const value = fn(percent, this.viewOptions.floor, this.viewOptions.ceil);
  84276. return !ValueHelper.isNullOrUndefined(value) ? value : 0;
  84277. }
  84278. /**
  84279. * @param {?} event
  84280. * @param {?=} targetTouchId
  84281. * @return {?}
  84282. */
  84283. getEventXY(event, targetTouchId) {
  84284. if (event instanceof MouseEvent) {
  84285. return this.viewOptions.vertical ? event.clientY : event.clientX;
  84286. }
  84287. /** @type {?} */
  84288. let touchIndex = 0;
  84289. /** @type {?} */
  84290. const touches = event.touches;
  84291. if (!ValueHelper.isNullOrUndefined(targetTouchId)) {
  84292. for (let i = 0; i < touches.length; i++) {
  84293. if (touches[i].identifier === targetTouchId) {
  84294. touchIndex = i;
  84295. break;
  84296. }
  84297. }
  84298. }
  84299. // Return the target touch or if the target touch was not found in the event
  84300. // returns the coordinates of the first touch
  84301. return this.viewOptions.vertical ? touches[touchIndex].clientY : touches[touchIndex].clientX;
  84302. }
  84303. /**
  84304. * @param {?} event
  84305. * @param {?=} targetTouchId
  84306. * @return {?}
  84307. */
  84308. getEventPosition(event, targetTouchId) {
  84309. /** @type {?} */
  84310. const sliderElementBoundingRect = this.elementRef.nativeElement.getBoundingClientRect();
  84311. /** @type {?} */
  84312. const sliderPos = this.viewOptions.vertical ?
  84313. sliderElementBoundingRect.bottom : sliderElementBoundingRect.left;
  84314. /** @type {?} */
  84315. let eventPos = 0;
  84316. if (this.viewOptions.vertical) {
  84317. eventPos = -this.getEventXY(event, targetTouchId) + sliderPos;
  84318. }
  84319. else {
  84320. eventPos = this.getEventXY(event, targetTouchId) - sliderPos;
  84321. }
  84322. return eventPos * this.viewOptions.scale - this.handleHalfDimension;
  84323. }
  84324. /**
  84325. * @param {?} event
  84326. * @return {?}
  84327. */
  84328. getNearestHandle(event) {
  84329. if (!this.range) {
  84330. return PointerType.Min;
  84331. }
  84332. /** @type {?} */
  84333. const position = this.getEventPosition(event);
  84334. /** @type {?} */
  84335. const distanceMin = Math.abs(position - this.minHandleElement.position);
  84336. /** @type {?} */
  84337. const distanceMax = Math.abs(position - this.maxHandleElement.position);
  84338. if (distanceMin < distanceMax) {
  84339. return PointerType.Min;
  84340. }
  84341. else if (distanceMin > distanceMax) {
  84342. return PointerType.Max;
  84343. }
  84344. else if (!this.viewOptions.rightToLeft) {
  84345. // if event is at the same distance from min/max then if it's at left of minH, we return minH else maxH
  84346. return position < this.minHandleElement.position ? PointerType.Min : PointerType.Max;
  84347. }
  84348. // reverse in rtl
  84349. return position > this.minHandleElement.position ? PointerType.Min : PointerType.Max;
  84350. }
  84351. /**
  84352. * @return {?}
  84353. */
  84354. bindEvents() {
  84355. /** @type {?} */
  84356. const draggableRange = this.viewOptions.draggableRange;
  84357. if (!this.viewOptions.onlyBindHandles) {
  84358. this.selectionBarElement.on('mousedown', (event) => this.onBarStart(null, draggableRange, event, true, true, true));
  84359. }
  84360. if (this.viewOptions.draggableRangeOnly) {
  84361. this.minHandleElement.on('mousedown', (event) => this.onBarStart(PointerType.Min, draggableRange, event, true, true));
  84362. this.maxHandleElement.on('mousedown', (event) => this.onBarStart(PointerType.Max, draggableRange, event, true, true));
  84363. }
  84364. else {
  84365. this.minHandleElement.on('mousedown', (event) => this.onStart(PointerType.Min, event, true, true));
  84366. if (this.range) {
  84367. this.maxHandleElement.on('mousedown', (event) => this.onStart(PointerType.Max, event, true, true));
  84368. }
  84369. if (!this.viewOptions.onlyBindHandles) {
  84370. this.fullBarElement.on('mousedown', (event) => this.onStart(null, event, true, true, true));
  84371. this.ticksElement.on('mousedown', (event) => this.onStart(null, event, true, true, true, true));
  84372. }
  84373. }
  84374. if (!this.viewOptions.onlyBindHandles) {
  84375. this.selectionBarElement.onPassive('touchstart', (event) => this.onBarStart(null, draggableRange, event, true, true, true));
  84376. }
  84377. if (this.viewOptions.draggableRangeOnly) {
  84378. this.minHandleElement.onPassive('touchstart', (event) => this.onBarStart(PointerType.Min, draggableRange, event, true, true));
  84379. this.maxHandleElement.onPassive('touchstart', (event) => this.onBarStart(PointerType.Max, draggableRange, event, true, true));
  84380. }
  84381. else {
  84382. this.minHandleElement.onPassive('touchstart', (event) => this.onStart(PointerType.Min, event, true, true));
  84383. if (this.range) {
  84384. this.maxHandleElement.onPassive('touchstart', (event) => this.onStart(PointerType.Max, event, true, true));
  84385. }
  84386. if (!this.viewOptions.onlyBindHandles) {
  84387. this.fullBarElement.onPassive('touchstart', (event) => this.onStart(null, event, true, true, true));
  84388. this.ticksElement.onPassive('touchstart', (event) => this.onStart(null, event, false, false, true, true));
  84389. }
  84390. }
  84391. if (this.viewOptions.keyboardSupport) {
  84392. this.minHandleElement.on('focus', () => this.onPointerFocus(PointerType.Min));
  84393. if (this.range) {
  84394. this.maxHandleElement.on('focus', () => this.onPointerFocus(PointerType.Max));
  84395. }
  84396. }
  84397. }
  84398. /**
  84399. * @param {?} options
  84400. * @return {?}
  84401. */
  84402. getOptionsInfluencingEventBindings(options) {
  84403. return [
  84404. options.disabled,
  84405. options.readOnly,
  84406. options.draggableRange,
  84407. options.draggableRangeOnly,
  84408. options.onlyBindHandles,
  84409. options.keyboardSupport
  84410. ];
  84411. }
  84412. /**
  84413. * @return {?}
  84414. */
  84415. unbindEvents() {
  84416. this.unsubscribeOnMove();
  84417. this.unsubscribeOnEnd();
  84418. for (const element of this.getAllSliderElements()) {
  84419. if (!ValueHelper.isNullOrUndefined(element)) {
  84420. element.off();
  84421. }
  84422. }
  84423. }
  84424. /**
  84425. * @param {?} pointerType
  84426. * @param {?} draggableRange
  84427. * @param {?} event
  84428. * @param {?} bindMove
  84429. * @param {?} bindEnd
  84430. * @param {?=} simulateImmediateMove
  84431. * @param {?=} simulateImmediateEnd
  84432. * @return {?}
  84433. */
  84434. onBarStart(pointerType, draggableRange, event, bindMove, bindEnd, simulateImmediateMove, simulateImmediateEnd) {
  84435. if (draggableRange) {
  84436. this.onDragStart(pointerType, event, bindMove, bindEnd);
  84437. }
  84438. else {
  84439. this.onStart(pointerType, event, bindMove, bindEnd, simulateImmediateMove, simulateImmediateEnd);
  84440. }
  84441. }
  84442. /**
  84443. * @param {?} pointerType
  84444. * @param {?} event
  84445. * @param {?} bindMove
  84446. * @param {?} bindEnd
  84447. * @param {?=} simulateImmediateMove
  84448. * @param {?=} simulateImmediateEnd
  84449. * @return {?}
  84450. */
  84451. onStart(pointerType, event, bindMove, bindEnd, simulateImmediateMove, simulateImmediateEnd) {
  84452. event.stopPropagation();
  84453. // Only call preventDefault() when handling non-passive events (passive events don't need it)
  84454. if (!CompatibilityHelper.isTouchEvent(event) || !detect_passive_events__WEBPACK_IMPORTED_MODULE_2___default.a.hasSupport) {
  84455. event.preventDefault();
  84456. }
  84457. this.moving = false;
  84458. // We have to do this in case the HTML where the sliders are on
  84459. // have been animated into view.
  84460. this.calculateViewDimensions();
  84461. if (ValueHelper.isNullOrUndefined(pointerType)) {
  84462. pointerType = this.getNearestHandle(event);
  84463. }
  84464. this.currentTrackingPointer = pointerType;
  84465. /** @type {?} */
  84466. const pointerElement = this.getPointerElement(pointerType);
  84467. pointerElement.active = true;
  84468. if (this.viewOptions.keyboardSupport) {
  84469. pointerElement.focus();
  84470. }
  84471. if (bindMove) {
  84472. this.unsubscribeOnMove();
  84473. /** @type {?} */
  84474. const onMoveCallback = (e) => this.dragging.active ? this.onDragMove(e) : this.onMove(e);
  84475. if (CompatibilityHelper.isTouchEvent(event)) {
  84476. this.onMoveEventListener = this.eventListenerHelper.attachPassiveEventListener(document, 'touchmove', onMoveCallback, this.viewOptions.touchEventsInterval);
  84477. }
  84478. else {
  84479. this.onMoveEventListener = this.eventListenerHelper.attachEventListener(document, 'mousemove', onMoveCallback, this.viewOptions.mouseEventsInterval);
  84480. }
  84481. }
  84482. if (bindEnd) {
  84483. this.unsubscribeOnEnd();
  84484. /** @type {?} */
  84485. const onEndCallback = (e) => this.onEnd(e);
  84486. if (CompatibilityHelper.isTouchEvent(event)) {
  84487. this.onEndEventListener = this.eventListenerHelper.attachPassiveEventListener(document, 'touchend', onEndCallback);
  84488. }
  84489. else {
  84490. this.onEndEventListener = this.eventListenerHelper.attachEventListener(document, 'mouseup', onEndCallback);
  84491. }
  84492. }
  84493. this.userChangeStart.emit(this.getChangeContext());
  84494. if (CompatibilityHelper.isTouchEvent(event) && !ValueHelper.isNullOrUndefined((/** @type {?} */ (event)).changedTouches)) {
  84495. // Store the touch identifier
  84496. if (ValueHelper.isNullOrUndefined(this.touchId)) {
  84497. this.touchId = (/** @type {?} */ (event)).changedTouches[0].identifier;
  84498. }
  84499. }
  84500. // Click events, either with mouse or touch gesture are weird. Sometimes they result in full
  84501. // start, move, end sequence, and sometimes, they don't - they only invoke mousedown
  84502. // As a workaround, we simulate the first move event and the end event if it's necessary
  84503. if (simulateImmediateMove) {
  84504. this.onMove(event, true);
  84505. }
  84506. if (simulateImmediateEnd) {
  84507. this.onEnd(event);
  84508. }
  84509. }
  84510. /**
  84511. * @param {?} event
  84512. * @param {?=} fromTick
  84513. * @return {?}
  84514. */
  84515. onMove(event, fromTick) {
  84516. /** @type {?} */
  84517. let touchForThisSlider = null;
  84518. if (CompatibilityHelper.isTouchEvent(event)) {
  84519. /** @type {?} */
  84520. const changedTouches = (/** @type {?} */ (event)).changedTouches;
  84521. for (let i = 0; i < changedTouches.length; i++) {
  84522. if (changedTouches[i].identifier === this.touchId) {
  84523. touchForThisSlider = changedTouches[i];
  84524. break;
  84525. }
  84526. }
  84527. if (ValueHelper.isNullOrUndefined(touchForThisSlider)) {
  84528. return;
  84529. }
  84530. }
  84531. if (this.viewOptions.animate && !this.viewOptions.animateOnMove) {
  84532. if (this.moving) {
  84533. this.sliderElementAnimateClass = false;
  84534. }
  84535. }
  84536. this.moving = true;
  84537. /** @type {?} */
  84538. const newPos = !ValueHelper.isNullOrUndefined(touchForThisSlider)
  84539. ? this.getEventPosition(event, touchForThisSlider.identifier)
  84540. : this.getEventPosition(event);
  84541. /** @type {?} */
  84542. let newValue;
  84543. /** @type {?} */
  84544. const ceilValue = this.viewOptions.rightToLeft
  84545. ? this.viewOptions.floor
  84546. : this.viewOptions.ceil;
  84547. /** @type {?} */
  84548. const floorValue = this.viewOptions.rightToLeft ? this.viewOptions.ceil : this.viewOptions.floor;
  84549. if (newPos <= 0) {
  84550. newValue = floorValue;
  84551. }
  84552. else if (newPos >= this.maxHandlePosition) {
  84553. newValue = ceilValue;
  84554. }
  84555. else {
  84556. newValue = this.positionToValue(newPos);
  84557. if (fromTick && !ValueHelper.isNullOrUndefined(this.viewOptions.tickStep)) {
  84558. newValue = this.roundStep(newValue, this.viewOptions.tickStep);
  84559. }
  84560. else {
  84561. newValue = this.roundStep(newValue);
  84562. }
  84563. }
  84564. this.positionTrackingHandle(newValue);
  84565. }
  84566. /**
  84567. * @param {?} event
  84568. * @return {?}
  84569. */
  84570. onEnd(event) {
  84571. if (CompatibilityHelper.isTouchEvent(event)) {
  84572. /** @type {?} */
  84573. const changedTouches = (/** @type {?} */ (event)).changedTouches;
  84574. if (changedTouches[0].identifier !== this.touchId) {
  84575. return;
  84576. }
  84577. }
  84578. this.moving = false;
  84579. if (this.viewOptions.animate) {
  84580. this.sliderElementAnimateClass = true;
  84581. }
  84582. this.touchId = null;
  84583. if (!this.viewOptions.keyboardSupport) {
  84584. this.minHandleElement.active = false;
  84585. this.maxHandleElement.active = false;
  84586. this.currentTrackingPointer = null;
  84587. }
  84588. this.dragging.active = false;
  84589. this.unsubscribeOnMove();
  84590. this.unsubscribeOnEnd();
  84591. this.userChangeEnd.emit(this.getChangeContext());
  84592. }
  84593. /**
  84594. * @param {?} pointerType
  84595. * @return {?}
  84596. */
  84597. onPointerFocus(pointerType) {
  84598. /** @type {?} */
  84599. const pointerElement = this.getPointerElement(pointerType);
  84600. pointerElement.on('blur', () => this.onPointerBlur(pointerElement));
  84601. pointerElement.on('keydown', (event) => this.onKeyboardEvent(event));
  84602. pointerElement.on('keyup', () => this.onKeyUp());
  84603. pointerElement.active = true;
  84604. this.currentTrackingPointer = pointerType;
  84605. this.currentFocusPointer = pointerType;
  84606. this.firstKeyDown = true;
  84607. }
  84608. /**
  84609. * @return {?}
  84610. */
  84611. onKeyUp() {
  84612. this.firstKeyDown = true;
  84613. this.userChangeEnd.emit(this.getChangeContext());
  84614. }
  84615. /**
  84616. * @param {?} pointer
  84617. * @return {?}
  84618. */
  84619. onPointerBlur(pointer) {
  84620. pointer.off('blur');
  84621. pointer.off('keydown');
  84622. pointer.off('keyup');
  84623. pointer.active = false;
  84624. if (ValueHelper.isNullOrUndefined(this.touchId)) {
  84625. this.currentTrackingPointer = null;
  84626. this.currentFocusPointer = null;
  84627. }
  84628. }
  84629. /**
  84630. * @param {?} currentValue
  84631. * @return {?}
  84632. */
  84633. getKeyActions(currentValue) {
  84634. /** @type {?} */
  84635. const valueRange = this.viewOptions.ceil - this.viewOptions.floor;
  84636. /** @type {?} */
  84637. let increaseStep = currentValue + this.viewOptions.step;
  84638. /** @type {?} */
  84639. let decreaseStep = currentValue - this.viewOptions.step;
  84640. /** @type {?} */
  84641. let increasePage = currentValue + valueRange / 10;
  84642. /** @type {?} */
  84643. let decreasePage = currentValue - valueRange / 10;
  84644. if (this.viewOptions.reversedControls) {
  84645. increaseStep = currentValue - this.viewOptions.step;
  84646. decreaseStep = currentValue + this.viewOptions.step;
  84647. increasePage = currentValue - valueRange / 10;
  84648. decreasePage = currentValue + valueRange / 10;
  84649. }
  84650. /** @type {?} */
  84651. const actions = {
  84652. UP: increaseStep,
  84653. DOWN: decreaseStep,
  84654. LEFT: decreaseStep,
  84655. RIGHT: increaseStep,
  84656. PAGEUP: increasePage,
  84657. PAGEDOWN: decreasePage,
  84658. HOME: this.viewOptions.reversedControls ? this.viewOptions.ceil : this.viewOptions.floor,
  84659. END: this.viewOptions.reversedControls ? this.viewOptions.floor : this.viewOptions.ceil,
  84660. };
  84661. // right to left means swapping right and left arrows
  84662. if (this.viewOptions.rightToLeft) {
  84663. actions["LEFT"] = increaseStep;
  84664. actions["RIGHT"] = decreaseStep;
  84665. // right to left and vertical means we also swap up and down
  84666. if (this.viewOptions.vertical) {
  84667. actions["UP"] = decreaseStep;
  84668. actions["DOWN"] = increaseStep;
  84669. }
  84670. }
  84671. return actions;
  84672. }
  84673. /**
  84674. * @param {?} event
  84675. * @return {?}
  84676. */
  84677. onKeyboardEvent(event) {
  84678. /** @type {?} */
  84679. const currentValue = this.getCurrentTrackingValue();
  84680. /** @type {?} */
  84681. const keyCode = !ValueHelper.isNullOrUndefined(event.keyCode)
  84682. ? event.keyCode
  84683. : event.which;
  84684. /** @type {?} */
  84685. const keys = {
  84686. 38: 'UP',
  84687. 40: 'DOWN',
  84688. 37: 'LEFT',
  84689. 39: 'RIGHT',
  84690. 33: 'PAGEUP',
  84691. 34: 'PAGEDOWN',
  84692. 36: 'HOME',
  84693. 35: 'END',
  84694. };
  84695. /** @type {?} */
  84696. const actions = this.getKeyActions(currentValue);
  84697. /** @type {?} */
  84698. const key = keys[keyCode];
  84699. /** @type {?} */
  84700. const action = actions[key];
  84701. if (ValueHelper.isNullOrUndefined(action) || ValueHelper.isNullOrUndefined(this.currentTrackingPointer)) {
  84702. return;
  84703. }
  84704. event.preventDefault();
  84705. if (this.firstKeyDown) {
  84706. this.firstKeyDown = false;
  84707. this.userChangeStart.emit(this.getChangeContext());
  84708. }
  84709. /** @type {?} */
  84710. const actionValue = MathHelper.clampToRange(action, this.viewOptions.floor, this.viewOptions.ceil);
  84711. /** @type {?} */
  84712. const newValue = this.roundStep(actionValue);
  84713. if (!this.viewOptions.draggableRangeOnly) {
  84714. this.positionTrackingHandle(newValue);
  84715. }
  84716. else {
  84717. /** @type {?} */
  84718. const difference = this.viewHighValue - this.viewLowValue;
  84719. /** @type {?} */
  84720. let newMinValue;
  84721. /** @type {?} */
  84722. let newMaxValue;
  84723. if (this.currentTrackingPointer === PointerType.Min) {
  84724. newMinValue = newValue;
  84725. newMaxValue = newValue + difference;
  84726. if (newMaxValue > this.viewOptions.ceil) {
  84727. newMaxValue = this.viewOptions.ceil;
  84728. newMinValue = newMaxValue - difference;
  84729. }
  84730. }
  84731. else if (this.currentTrackingPointer === PointerType.Max) {
  84732. newMaxValue = newValue;
  84733. newMinValue = newValue - difference;
  84734. if (newMinValue < this.viewOptions.floor) {
  84735. newMinValue = this.viewOptions.floor;
  84736. newMaxValue = newMinValue + difference;
  84737. }
  84738. }
  84739. this.positionTrackingBar(newMinValue, newMaxValue);
  84740. }
  84741. }
  84742. /**
  84743. * @param {?} pointerType
  84744. * @param {?} event
  84745. * @param {?} bindMove
  84746. * @param {?} bindEnd
  84747. * @return {?}
  84748. */
  84749. onDragStart(pointerType, event, bindMove, bindEnd) {
  84750. /** @type {?} */
  84751. const position = this.getEventPosition(event);
  84752. this.dragging = new Dragging();
  84753. this.dragging.active = true;
  84754. this.dragging.value = this.positionToValue(position);
  84755. this.dragging.difference = this.viewHighValue - this.viewLowValue;
  84756. this.dragging.lowLimit = this.viewOptions.rightToLeft
  84757. ? this.minHandleElement.position - position
  84758. : position - this.minHandleElement.position;
  84759. this.dragging.highLimit = this.viewOptions.rightToLeft
  84760. ? position - this.maxHandleElement.position
  84761. : this.maxHandleElement.position - position;
  84762. this.onStart(pointerType, event, bindMove, bindEnd);
  84763. }
  84764. /**
  84765. * Get min value depending on whether the newPos is outOfBounds above or below the bar and rightToLeft
  84766. * @param {?} newPos
  84767. * @param {?} outOfBounds
  84768. * @param {?} isAbove
  84769. * @return {?}
  84770. */
  84771. getMinValue(newPos, outOfBounds, isAbove) {
  84772. /** @type {?} */
  84773. const isRTL = this.viewOptions.rightToLeft;
  84774. /** @type {?} */
  84775. let value = null;
  84776. if (outOfBounds) {
  84777. if (isAbove) {
  84778. value = isRTL
  84779. ? this.viewOptions.floor
  84780. : this.viewOptions.ceil - this.dragging.difference;
  84781. }
  84782. else {
  84783. value = isRTL
  84784. ? this.viewOptions.ceil - this.dragging.difference
  84785. : this.viewOptions.floor;
  84786. }
  84787. }
  84788. else {
  84789. value = isRTL
  84790. ? this.positionToValue(newPos + this.dragging.lowLimit)
  84791. : this.positionToValue(newPos - this.dragging.lowLimit);
  84792. }
  84793. return this.roundStep(value);
  84794. }
  84795. /**
  84796. * Get max value depending on whether the newPos is outOfBounds above or below the bar and rightToLeft
  84797. * @param {?} newPos
  84798. * @param {?} outOfBounds
  84799. * @param {?} isAbove
  84800. * @return {?}
  84801. */
  84802. getMaxValue(newPos, outOfBounds, isAbove) {
  84803. /** @type {?} */
  84804. const isRTL = this.viewOptions.rightToLeft;
  84805. /** @type {?} */
  84806. let value = null;
  84807. if (outOfBounds) {
  84808. if (isAbove) {
  84809. value = isRTL
  84810. ? this.viewOptions.floor + this.dragging.difference
  84811. : this.viewOptions.ceil;
  84812. }
  84813. else {
  84814. value = isRTL
  84815. ? this.viewOptions.ceil
  84816. : this.viewOptions.floor + this.dragging.difference;
  84817. }
  84818. }
  84819. else {
  84820. if (isRTL) {
  84821. value =
  84822. this.positionToValue(newPos + this.dragging.lowLimit) +
  84823. this.dragging.difference;
  84824. }
  84825. else {
  84826. value =
  84827. this.positionToValue(newPos - this.dragging.lowLimit) +
  84828. this.dragging.difference;
  84829. }
  84830. }
  84831. return this.roundStep(value);
  84832. }
  84833. /**
  84834. * @param {?=} event
  84835. * @return {?}
  84836. */
  84837. onDragMove(event) {
  84838. /** @type {?} */
  84839. const newPos = this.getEventPosition(event);
  84840. if (this.viewOptions.animate && !this.viewOptions.animateOnMove) {
  84841. if (this.moving) {
  84842. this.sliderElementAnimateClass = false;
  84843. }
  84844. }
  84845. this.moving = true;
  84846. /** @type {?} */
  84847. let ceilLimit;
  84848. /** @type {?} */
  84849. let floorLimit;
  84850. /** @type {?} */
  84851. let floorHandleElement;
  84852. /** @type {?} */
  84853. let ceilHandleElement;
  84854. if (this.viewOptions.rightToLeft) {
  84855. ceilLimit = this.dragging.lowLimit;
  84856. floorLimit = this.dragging.highLimit;
  84857. floorHandleElement = this.maxHandleElement;
  84858. ceilHandleElement = this.minHandleElement;
  84859. }
  84860. else {
  84861. ceilLimit = this.dragging.highLimit;
  84862. floorLimit = this.dragging.lowLimit;
  84863. floorHandleElement = this.minHandleElement;
  84864. ceilHandleElement = this.maxHandleElement;
  84865. }
  84866. /** @type {?} */
  84867. const isUnderFloorLimit = (newPos <= floorLimit);
  84868. /** @type {?} */
  84869. const isOverCeilLimit = (newPos >= this.maxHandlePosition - ceilLimit);
  84870. /** @type {?} */
  84871. let newMinValue;
  84872. /** @type {?} */
  84873. let newMaxValue;
  84874. if (isUnderFloorLimit) {
  84875. if (floorHandleElement.position === 0) {
  84876. return;
  84877. }
  84878. newMinValue = this.getMinValue(newPos, true, false);
  84879. newMaxValue = this.getMaxValue(newPos, true, false);
  84880. }
  84881. else if (isOverCeilLimit) {
  84882. if (ceilHandleElement.position === this.maxHandlePosition) {
  84883. return;
  84884. }
  84885. newMaxValue = this.getMaxValue(newPos, true, true);
  84886. newMinValue = this.getMinValue(newPos, true, true);
  84887. }
  84888. else {
  84889. newMinValue = this.getMinValue(newPos, false, false);
  84890. newMaxValue = this.getMaxValue(newPos, false, false);
  84891. }
  84892. this.positionTrackingBar(newMinValue, newMaxValue);
  84893. }
  84894. /**
  84895. * @param {?} newMinValue
  84896. * @param {?} newMaxValue
  84897. * @return {?}
  84898. */
  84899. positionTrackingBar(newMinValue, newMaxValue) {
  84900. if (!ValueHelper.isNullOrUndefined(this.viewOptions.minLimit) &&
  84901. newMinValue < this.viewOptions.minLimit) {
  84902. newMinValue = this.viewOptions.minLimit;
  84903. newMaxValue = MathHelper.roundToPrecisionLimit(newMinValue + this.dragging.difference, this.viewOptions.precisionLimit);
  84904. }
  84905. if (!ValueHelper.isNullOrUndefined(this.viewOptions.maxLimit) &&
  84906. newMaxValue > this.viewOptions.maxLimit) {
  84907. newMaxValue = this.viewOptions.maxLimit;
  84908. newMinValue = MathHelper.roundToPrecisionLimit(newMaxValue - this.dragging.difference, this.viewOptions.precisionLimit);
  84909. }
  84910. this.viewLowValue = newMinValue;
  84911. this.viewHighValue = newMaxValue;
  84912. this.applyViewChange();
  84913. this.updateHandles(PointerType.Min, this.valueToPosition(newMinValue));
  84914. this.updateHandles(PointerType.Max, this.valueToPosition(newMaxValue));
  84915. }
  84916. /**
  84917. * @param {?} newValue
  84918. * @return {?}
  84919. */
  84920. positionTrackingHandle(newValue) {
  84921. newValue = this.applyMinMaxLimit(newValue);
  84922. if (this.range) {
  84923. if (this.viewOptions.pushRange) {
  84924. newValue = this.applyPushRange(newValue);
  84925. }
  84926. else {
  84927. if (this.viewOptions.noSwitching) {
  84928. if (this.currentTrackingPointer === PointerType.Min &&
  84929. newValue > this.viewHighValue) {
  84930. newValue = this.applyMinMaxRange(this.viewHighValue);
  84931. }
  84932. else if (this.currentTrackingPointer === PointerType.Max &&
  84933. newValue < this.viewLowValue) {
  84934. newValue = this.applyMinMaxRange(this.viewLowValue);
  84935. }
  84936. }
  84937. newValue = this.applyMinMaxRange(newValue);
  84938. /* This is to check if we need to switch the min and max handles */
  84939. if (this.currentTrackingPointer === PointerType.Min && newValue > this.viewHighValue) {
  84940. this.viewLowValue = this.viewHighValue;
  84941. this.applyViewChange();
  84942. this.updateHandles(PointerType.Min, this.maxHandleElement.position);
  84943. this.updateAriaAttributes();
  84944. this.currentTrackingPointer = PointerType.Max;
  84945. this.minHandleElement.active = false;
  84946. this.maxHandleElement.active = true;
  84947. if (this.viewOptions.keyboardSupport) {
  84948. this.maxHandleElement.focus();
  84949. }
  84950. }
  84951. else if (this.currentTrackingPointer === PointerType.Max &&
  84952. newValue < this.viewLowValue) {
  84953. this.viewHighValue = this.viewLowValue;
  84954. this.applyViewChange();
  84955. this.updateHandles(PointerType.Max, this.minHandleElement.position);
  84956. this.updateAriaAttributes();
  84957. this.currentTrackingPointer = PointerType.Min;
  84958. this.maxHandleElement.active = false;
  84959. this.minHandleElement.active = true;
  84960. if (this.viewOptions.keyboardSupport) {
  84961. this.minHandleElement.focus();
  84962. }
  84963. }
  84964. }
  84965. }
  84966. if (this.getCurrentTrackingValue() !== newValue) {
  84967. if (this.currentTrackingPointer === PointerType.Min) {
  84968. this.viewLowValue = newValue;
  84969. this.applyViewChange();
  84970. }
  84971. else if (this.currentTrackingPointer === PointerType.Max) {
  84972. this.viewHighValue = newValue;
  84973. this.applyViewChange();
  84974. }
  84975. this.updateHandles(this.currentTrackingPointer, this.valueToPosition(newValue));
  84976. this.updateAriaAttributes();
  84977. }
  84978. }
  84979. /**
  84980. * @param {?} newValue
  84981. * @return {?}
  84982. */
  84983. applyMinMaxLimit(newValue) {
  84984. if (!ValueHelper.isNullOrUndefined(this.viewOptions.minLimit) && newValue < this.viewOptions.minLimit) {
  84985. return this.viewOptions.minLimit;
  84986. }
  84987. if (!ValueHelper.isNullOrUndefined(this.viewOptions.maxLimit) && newValue > this.viewOptions.maxLimit) {
  84988. return this.viewOptions.maxLimit;
  84989. }
  84990. return newValue;
  84991. }
  84992. /**
  84993. * @param {?} newValue
  84994. * @return {?}
  84995. */
  84996. applyMinMaxRange(newValue) {
  84997. /** @type {?} */
  84998. const oppositeValue = (this.currentTrackingPointer === PointerType.Min)
  84999. ? this.viewHighValue
  85000. : this.viewLowValue;
  85001. /** @type {?} */
  85002. const difference = Math.abs(newValue - oppositeValue);
  85003. if (!ValueHelper.isNullOrUndefined(this.viewOptions.minRange)) {
  85004. if (difference < this.viewOptions.minRange) {
  85005. if (this.currentTrackingPointer === PointerType.Min) {
  85006. return MathHelper.roundToPrecisionLimit(this.viewHighValue - this.viewOptions.minRange, this.viewOptions.precisionLimit);
  85007. }
  85008. else if (this.currentTrackingPointer === PointerType.Max) {
  85009. return MathHelper.roundToPrecisionLimit(this.viewLowValue + this.viewOptions.minRange, this.viewOptions.precisionLimit);
  85010. }
  85011. }
  85012. }
  85013. if (!ValueHelper.isNullOrUndefined(this.viewOptions.maxRange)) {
  85014. if (difference > this.viewOptions.maxRange) {
  85015. if (this.currentTrackingPointer === PointerType.Min) {
  85016. return MathHelper.roundToPrecisionLimit(this.viewHighValue - this.viewOptions.maxRange, this.viewOptions.precisionLimit);
  85017. }
  85018. else if (this.currentTrackingPointer === PointerType.Max) {
  85019. return MathHelper.roundToPrecisionLimit(this.viewLowValue + this.viewOptions.maxRange, this.viewOptions.precisionLimit);
  85020. }
  85021. }
  85022. }
  85023. return newValue;
  85024. }
  85025. /**
  85026. * @param {?} newValue
  85027. * @return {?}
  85028. */
  85029. applyPushRange(newValue) {
  85030. /** @type {?} */
  85031. const difference = (this.currentTrackingPointer === PointerType.Min)
  85032. ? this.viewHighValue - newValue
  85033. : newValue - this.viewLowValue;
  85034. /** @type {?} */
  85035. const minRange = (!ValueHelper.isNullOrUndefined(this.viewOptions.minRange))
  85036. ? this.viewOptions.minRange
  85037. : this.viewOptions.step;
  85038. /** @type {?} */
  85039. const maxRange = this.viewOptions.maxRange;
  85040. // if smaller than minRange
  85041. if (difference < minRange) {
  85042. if (this.currentTrackingPointer === PointerType.Min) {
  85043. this.viewHighValue = MathHelper.roundToPrecisionLimit(Math.min(newValue + minRange, this.viewOptions.ceil), this.viewOptions.precisionLimit);
  85044. newValue = MathHelper.roundToPrecisionLimit(this.viewHighValue - minRange, this.viewOptions.precisionLimit);
  85045. this.applyViewChange();
  85046. this.updateHandles(PointerType.Max, this.valueToPosition(this.viewHighValue));
  85047. }
  85048. else if (this.currentTrackingPointer === PointerType.Max) {
  85049. this.viewLowValue = MathHelper.roundToPrecisionLimit(Math.max(newValue - minRange, this.viewOptions.floor), this.viewOptions.precisionLimit);
  85050. newValue = MathHelper.roundToPrecisionLimit(this.viewLowValue + minRange, this.viewOptions.precisionLimit);
  85051. this.applyViewChange();
  85052. this.updateHandles(PointerType.Min, this.valueToPosition(this.viewLowValue));
  85053. }
  85054. this.updateAriaAttributes();
  85055. }
  85056. else if (!ValueHelper.isNullOrUndefined(maxRange) && difference > maxRange) {
  85057. // if greater than maxRange
  85058. if (this.currentTrackingPointer === PointerType.Min) {
  85059. this.viewHighValue = MathHelper.roundToPrecisionLimit(newValue + maxRange, this.viewOptions.precisionLimit);
  85060. this.applyViewChange();
  85061. this.updateHandles(PointerType.Max, this.valueToPosition(this.viewHighValue));
  85062. }
  85063. else if (this.currentTrackingPointer === PointerType.Max) {
  85064. this.viewLowValue = MathHelper.roundToPrecisionLimit(newValue - maxRange, this.viewOptions.precisionLimit);
  85065. this.applyViewChange();
  85066. this.updateHandles(PointerType.Min, this.valueToPosition(this.viewLowValue));
  85067. }
  85068. this.updateAriaAttributes();
  85069. }
  85070. return newValue;
  85071. }
  85072. /**
  85073. * @return {?}
  85074. */
  85075. getChangeContext() {
  85076. /** @type {?} */
  85077. const changeContext = new ChangeContext();
  85078. changeContext.pointerType = this.currentTrackingPointer;
  85079. changeContext.value = +this.value;
  85080. if (this.range) {
  85081. changeContext.highValue = +this.highValue;
  85082. }
  85083. return changeContext;
  85084. }
  85085. }
  85086. SliderComponent.ɵfac = function SliderComponent_Factory(t) { return new (t || SliderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"])); };
  85087. SliderComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: SliderComponent, selectors: [["ngx-slider"]], contentQueries: function SliderComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  85088. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵcontentQuery"](dirIndex, _c0, true);
  85089. } if (rf & 2) {
  85090. let _t;
  85091. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.tooltipTemplate = _t.first);
  85092. } }, viewQuery: function SliderComponent_Query(rf, ctx) { if (rf & 1) {
  85093. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c1, true, SliderElementDirective);
  85094. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c2, true, SliderElementDirective);
  85095. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c3, true, SliderElementDirective);
  85096. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c4, true, SliderElementDirective);
  85097. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c5, true, SliderHandleDirective);
  85098. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c6, true, SliderHandleDirective);
  85099. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c7, true, SliderLabelDirective);
  85100. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c8, true, SliderLabelDirective);
  85101. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c9, true, SliderLabelDirective);
  85102. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c10, true, SliderLabelDirective);
  85103. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c11, true, SliderLabelDirective);
  85104. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵviewQuery"](_c12, true, SliderElementDirective);
  85105. } if (rf & 2) {
  85106. let _t;
  85107. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.leftOuterSelectionBarElement = _t.first);
  85108. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.rightOuterSelectionBarElement = _t.first);
  85109. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.fullBarElement = _t.first);
  85110. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.selectionBarElement = _t.first);
  85111. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.minHandleElement = _t.first);
  85112. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.maxHandleElement = _t.first);
  85113. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.floorLabelElement = _t.first);
  85114. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.ceilLabelElement = _t.first);
  85115. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.minHandleLabelElement = _t.first);
  85116. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.maxHandleLabelElement = _t.first);
  85117. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.combinedLabelElement = _t.first);
  85118. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵloadQuery"]()) && (ctx.ticksElement = _t.first);
  85119. } }, hostAttrs: [1, "ngx-slider"], hostVars: 7, hostBindings: function SliderComponent_HostBindings(rf, ctx) { if (rf & 1) {
  85120. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("resize", function SliderComponent_resize_HostBindingHandler($event) { return ctx.onResize($event); }, false, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresolveWindow"]);
  85121. } if (rf & 2) {
  85122. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵattribute"]("disabled", ctx.sliderElementDisabledAttr);
  85123. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("vertical", ctx.sliderElementVerticalClass)("animate", ctx.sliderElementAnimateClass)("with-legend", ctx.sliderElementWithLegendClass);
  85124. } }, inputs: { value: "value", highValue: "highValue", options: "options", manualRefresh: "manualRefresh", triggerFocus: "triggerFocus" }, outputs: { valueChange: "valueChange", highValueChange: "highValueChange", userChangeStart: "userChangeStart", userChange: "userChange", userChangeEnd: "userChangeEnd" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵProvidersFeature"]([NGX_SLIDER_CONTROL_VALUE_ACCESSOR]), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵNgOnChangesFeature"]], decls: 29, vars: 13, consts: [["ngxSliderElement", "", 1, "ngx-slider-span", "ngx-slider-bar-wrapper", "ngx-slider-left-out-selection"], ["leftOuterSelectionBar", ""], [1, "ngx-slider-span", "ngx-slider-bar"], ["ngxSliderElement", "", 1, "ngx-slider-span", "ngx-slider-bar-wrapper", "ngx-slider-right-out-selection"], ["rightOuterSelectionBar", ""], ["ngxSliderElement", "", 1, "ngx-slider-span", "ngx-slider-bar-wrapper", "ngx-slider-full-bar"], ["fullBar", ""], ["ngxSliderElement", "", 1, "ngx-slider-span", "ngx-slider-bar-wrapper", "ngx-slider-selection-bar"], ["selectionBar", ""], [1, "ngx-slider-span", "ngx-slider-bar", "ngx-slider-selection", 3, "ngStyle"], ["ngxSliderHandle", "", 1, "ngx-slider-span", "ngx-slider-pointer", "ngx-slider-pointer-min", 3, "ngStyle"], ["minHandle", ""], ["ngxSliderHandle", "", 1, "ngx-slider-span", "ngx-slider-pointer", "ngx-slider-pointer-max", 3, "ngStyle"], ["maxHandle", ""], ["ngxSliderLabel", "", 1, "ngx-slider-span", "ngx-slider-bubble", "ngx-slider-limit", "ngx-slider-floor"], ["floorLabel", ""], ["ngxSliderLabel", "", 1, "ngx-slider-span", "ngx-slider-bubble", "ngx-slider-limit", "ngx-slider-ceil"], ["ceilLabel", ""], ["ngxSliderLabel", "", 1, "ngx-slider-span", "ngx-slider-bubble", "ngx-slider-model-value"], ["minHandleLabel", ""], ["ngxSliderLabel", "", 1, "ngx-slider-span", "ngx-slider-bubble", "ngx-slider-model-high"], ["maxHandleLabel", ""], ["ngxSliderLabel", "", 1, "ngx-slider-span", "ngx-slider-bubble", "ngx-slider-combined"], ["combinedLabel", ""], ["ngxSliderElement", "", 1, "ngx-slider-ticks", 3, "hidden"], ["ticksElement", ""], ["class", "ngx-slider-tick", 3, "ngClass", "ngStyle", 4, "ngFor", "ngForOf"], [1, "ngx-slider-tick", 3, "ngClass", "ngStyle"], [3, "template", "tooltip", "placement"], ["class", "ngx-slider-span ngx-slider-tick-value", 3, "template", "tooltip", "placement", "content", 4, "ngIf"], ["class", "ngx-slider-span ngx-slider-tick-legend", 3, "innerHTML", 4, "ngIf"], [1, "ngx-slider-span", "ngx-slider-tick-value", 3, "template", "tooltip", "placement", "content"], [1, "ngx-slider-span", "ngx-slider-tick-legend", 3, "innerHTML"]], template: function SliderComponent_Template(rf, ctx) { if (rf & 1) {
  85125. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "span", 0, 1);
  85126. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](2, "span", 2);
  85127. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  85128. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "span", 3, 4);
  85129. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](5, "span", 2);
  85130. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  85131. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "span", 5, 6);
  85132. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](8, "span", 2);
  85133. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  85134. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "span", 7, 8);
  85135. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](11, "span", 9);
  85136. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  85137. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](12, "span", 10, 11);
  85138. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](14, "span", 12, 13);
  85139. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](16, "span", 14, 15);
  85140. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](18, "span", 16, 17);
  85141. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](20, "span", 18, 19);
  85142. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](22, "span", 20, 21);
  85143. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](24, "span", 22, 23);
  85144. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "span", 24, 25);
  85145. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](28, SliderComponent_span_28_Template, 4, 9, "span", 26);
  85146. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
  85147. } if (rf & 2) {
  85148. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
  85149. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("ngx-slider-transparent", ctx.fullBarTransparentClass);
  85150. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
  85151. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("ngx-slider-draggable", ctx.selectionBarDraggableClass);
  85152. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
  85153. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngStyle", ctx.barStyle);
  85154. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  85155. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngStyle", ctx.minPointerStyle);
  85156. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
  85157. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵstyleProp"]("display", ctx.range ? "inherit" : "none");
  85158. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngStyle", ctx.maxPointerStyle);
  85159. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](12);
  85160. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵclassProp"]("ngx-slider-ticks-values-under", ctx.ticksUnderValuesClass);
  85161. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("hidden", !ctx.showTicks);
  85162. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
  85163. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.ticks);
  85164. } }, directives: function () { return [SliderElementDirective, _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgStyle"], SliderHandleDirective, SliderLabelDirective, _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgForOf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgClass"], TooltipWrapperComponent, _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"]]; }, styles: [".ngx-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:pan-y} .ngx-slider.with-legend{margin-bottom:40px} .ngx-slider[disabled]{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-pointer{cursor:not-allowed;background-color:#d8e0f3} .ngx-slider[disabled] .ngx-slider-draggable{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-selection{background:#8b91a2} .ngx-slider[disabled] .ngx-slider-tick{cursor:not-allowed} .ngx-slider[disabled] .ngx-slider-tick.ngx-slider-selected{background:#8b91a2} .ngx-slider .ngx-slider-span{white-space:nowrap;position:absolute;display:inline-block} .ngx-slider .ngx-slider-base{width:100%;height:100%;padding:0} .ngx-slider .ngx-slider-bar-wrapper{left:0;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1} .ngx-slider .ngx-slider-draggable{cursor:move} .ngx-slider .ngx-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-transparent .ngx-slider-bar{background:0 0} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-left-out-selection .ngx-slider-bar{background:#df002d} .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-right-out-selection .ngx-slider-bar{background:#03a688} .ngx-slider .ngx-slider-selection{z-index:2;background:#0db9f0;border-radius:2px} .ngx-slider .ngx-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px} .ngx-slider .ngx-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff} .ngx-slider .ngx-slider-pointer:hover:after{background-color:#fff} .ngx-slider .ngx-slider-pointer.ngx-slider-active{z-index:4} .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{background-color:#451aff} .ngx-slider .ngx-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px} .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:#55637d} .ngx-slider .ngx-slider-ticks{box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none} .ngx-slider .ngx-slider-ticks-values-under .ngx-slider-tick-value{top:auto;bottom:-36px} .ngx-slider .ngx-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px} .ngx-slider .ngx-slider-tick.ngx-slider-selected{background:#0db9f0} .ngx-slider .ngx-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)} .ngx-slider .ngx-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal} .ngx-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;touch-action:pan-x} .ngx-slider.vertical .ngx-slider-base{width:100%;height:100%;padding:0} .ngx-slider.vertical .ngx-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px} .ngx-slider.vertical .ngx-slider-bar{bottom:0;left:auto;width:4px;height:100%} .ngx-slider.vertical .ngx-slider-pointer{left:-14px!important;top:auto;bottom:0} .ngx-slider.vertical .ngx-slider-bubble{left:16px!important;bottom:0} .ngx-slider.vertical .ngx-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1} .ngx-slider.vertical .ngx-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px} .ngx-slider.vertical .ngx-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)} .ngx-slider.vertical .ngx-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap} .ngx-slider.vertical .ngx-slider-ticks-values-under .ngx-slider-tick-value{bottom:auto;left:auto;right:24px} .ngx-slider *{transition:none} .ngx-slider.animate .ngx-slider-bar-wrapper{transition:.3s linear} .ngx-slider.animate .ngx-slider-selection{transition:background-color .3s linear} .ngx-slider.animate .ngx-slider-pointer{transition:.3s linear} .ngx-slider.animate .ngx-slider-bubble{transition:.3s linear} .ngx-slider.animate .ngx-slider-bubble.ngx-slider-limit{transition:opacity .3s linear} .ngx-slider.animate .ngx-slider-bubble.ngx-slider-combined{transition:opacity .3s linear} .ngx-slider.animate .ngx-slider-tick{transition:background-color .3s linear}"] });
  85165. /** @nocollapse */
  85166. SliderComponent.ctorParameters = () => [
  85167. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"] },
  85168. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] },
  85169. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] },
  85170. { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"] }
  85171. ];
  85172. SliderComponent.propDecorators = {
  85173. value: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }],
  85174. valueChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }],
  85175. highValue: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }],
  85176. highValueChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }],
  85177. options: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }],
  85178. userChangeStart: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }],
  85179. userChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }],
  85180. userChangeEnd: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"] }],
  85181. manualRefresh: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }],
  85182. triggerFocus: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }],
  85183. leftOuterSelectionBarElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['leftOuterSelectionBar', { read: SliderElementDirective },] }],
  85184. rightOuterSelectionBarElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['rightOuterSelectionBar', { read: SliderElementDirective },] }],
  85185. fullBarElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['fullBar', { read: SliderElementDirective },] }],
  85186. selectionBarElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['selectionBar', { read: SliderElementDirective },] }],
  85187. minHandleElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['minHandle', { read: SliderHandleDirective },] }],
  85188. maxHandleElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['maxHandle', { read: SliderHandleDirective },] }],
  85189. floorLabelElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['floorLabel', { read: SliderLabelDirective },] }],
  85190. ceilLabelElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['ceilLabel', { read: SliderLabelDirective },] }],
  85191. minHandleLabelElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['minHandleLabel', { read: SliderLabelDirective },] }],
  85192. maxHandleLabelElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['maxHandleLabel', { read: SliderLabelDirective },] }],
  85193. combinedLabelElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['combinedLabel', { read: SliderLabelDirective },] }],
  85194. ticksElement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"], args: ['ticksElement', { read: SliderElementDirective },] }],
  85195. tooltipTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"], args: ['tooltipTemplate',] }],
  85196. sliderElementVerticalClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['class.vertical',] }],
  85197. sliderElementAnimateClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['class.animate',] }],
  85198. sliderElementWithLegendClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['class.with-legend',] }],
  85199. sliderElementDisabledAttr: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"], args: ['attr.disabled',] }],
  85200. onResize: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"], args: ['window:resize', ['$event'],] }]
  85201. };
  85202. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](SliderComponent, [{
  85203. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
  85204. args: [{
  85205. selector: 'ngx-slider',
  85206. template: `<!-- // 0 Left selection bar outside two handles -->
  85207. <span ngxSliderElement #leftOuterSelectionBar class="ngx-slider-span ngx-slider-bar-wrapper ngx-slider-left-out-selection">
  85208. <span class="ngx-slider-span ngx-slider-bar"></span>
  85209. </span>
  85210. <!-- // 1 Right selection bar outside two handles -->
  85211. <span ngxSliderElement #rightOuterSelectionBar class="ngx-slider-span ngx-slider-bar-wrapper ngx-slider-right-out-selection">
  85212. <span class="ngx-slider-span ngx-slider-bar"></span>
  85213. </span>
  85214. <!-- // 2 The whole slider bar -->
  85215. <span ngxSliderElement #fullBar [class.ngx-slider-transparent]="fullBarTransparentClass" class="ngx-slider-span ngx-slider-bar-wrapper ngx-slider-full-bar">
  85216. <span class="ngx-slider-span ngx-slider-bar"></span>
  85217. </span>
  85218. <!-- // 3 Selection bar between two handles -->
  85219. <span ngxSliderElement #selectionBar [class.ngx-slider-draggable]="selectionBarDraggableClass" class="ngx-slider-span ngx-slider-bar-wrapper ngx-slider-selection-bar">
  85220. <span class="ngx-slider-span ngx-slider-bar ngx-slider-selection" [ngStyle]="barStyle"></span>
  85221. </span>
  85222. <!-- // 4 Low slider handle -->
  85223. <span ngxSliderHandle #minHandle class="ngx-slider-span ngx-slider-pointer ngx-slider-pointer-min" [ngStyle]=minPointerStyle></span>
  85224. <!-- // 5 High slider handle -->
  85225. <span ngxSliderHandle #maxHandle [style.display]="range ? 'inherit' : 'none'" class="ngx-slider-span ngx-slider-pointer ngx-slider-pointer-max" [ngStyle]=maxPointerStyle></span>
  85226. <!-- // 6 Floor label -->
  85227. <span ngxSliderLabel #floorLabel class="ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-floor"></span>
  85228. <!-- // 7 Ceiling label -->
  85229. <span ngxSliderLabel #ceilLabel class="ngx-slider-span ngx-slider-bubble ngx-slider-limit ngx-slider-ceil"></span>
  85230. <!-- // 8 Label above the low slider handle -->
  85231. <span ngxSliderLabel #minHandleLabel class="ngx-slider-span ngx-slider-bubble ngx-slider-model-value"></span>
  85232. <!-- // 9 Label above the high slider handle -->
  85233. <span ngxSliderLabel #maxHandleLabel class="ngx-slider-span ngx-slider-bubble ngx-slider-model-high"></span>
  85234. <!-- // 10 Combined range label when the slider handles are close ex. 15 - 17 -->
  85235. <span ngxSliderLabel #combinedLabel class="ngx-slider-span ngx-slider-bubble ngx-slider-combined"></span>
  85236. <!-- // 11 The ticks -->
  85237. <span ngxSliderElement #ticksElement [hidden]="!showTicks" [class.ngx-slider-ticks-values-under]="ticksUnderValuesClass" class="ngx-slider-ticks">
  85238. <span *ngFor="let t of ticks" class="ngx-slider-tick" [ngClass]="{'ngx-slider-selected': t.selected}" [ngStyle]="t.style">
  85239. <ngx-slider-tooltip-wrapper [template]="tooltipTemplate" [tooltip]="t.tooltip" [placement]="t.tooltipPlacement"></ngx-slider-tooltip-wrapper>
  85240. <ngx-slider-tooltip-wrapper *ngIf="t.value != null" class="ngx-slider-span ngx-slider-tick-value"
  85241. [template]="tooltipTemplate" [tooltip]="t.valueTooltip" [placement]="t.valueTooltipPlacement" [content]="t.value"></ngx-slider-tooltip-wrapper>
  85242. <span *ngIf="t.legend != null" class="ngx-slider-span ngx-slider-tick-legend" [innerHTML]="t.legend"></span>
  85243. </span>
  85244. </span>`,
  85245. styles: [`::ng-deep .ngx-slider{display:inline-block;position:relative;height:4px;width:100%;margin:35px 0 15px;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;touch-action:pan-y}::ng-deep .ngx-slider.with-legend{margin-bottom:40px}::ng-deep .ngx-slider[disabled]{cursor:not-allowed}::ng-deep .ngx-slider[disabled] .ngx-slider-pointer{cursor:not-allowed;background-color:#d8e0f3}::ng-deep .ngx-slider[disabled] .ngx-slider-draggable{cursor:not-allowed}::ng-deep .ngx-slider[disabled] .ngx-slider-selection{background:#8b91a2}::ng-deep .ngx-slider[disabled] .ngx-slider-tick{cursor:not-allowed}::ng-deep .ngx-slider[disabled] .ngx-slider-tick.ngx-slider-selected{background:#8b91a2}::ng-deep .ngx-slider .ngx-slider-span{white-space:nowrap;position:absolute;display:inline-block}::ng-deep .ngx-slider .ngx-slider-base{width:100%;height:100%;padding:0}::ng-deep .ngx-slider .ngx-slider-bar-wrapper{left:0;box-sizing:border-box;margin-top:-16px;padding-top:16px;width:100%;height:32px;z-index:1}::ng-deep .ngx-slider .ngx-slider-draggable{cursor:move}::ng-deep .ngx-slider .ngx-slider-bar{left:0;width:100%;height:4px;z-index:1;background:#d8e0f3;border-radius:2px}::ng-deep .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-transparent .ngx-slider-bar{background:0 0}::ng-deep .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-left-out-selection .ngx-slider-bar{background:#df002d}::ng-deep .ngx-slider .ngx-slider-bar-wrapper.ngx-slider-right-out-selection .ngx-slider-bar{background:#03a688}::ng-deep .ngx-slider .ngx-slider-selection{z-index:2;background:#0db9f0;border-radius:2px}::ng-deep .ngx-slider .ngx-slider-pointer{cursor:pointer;width:32px;height:32px;top:-14px;background-color:#0db9f0;z-index:3;border-radius:16px}::ng-deep .ngx-slider .ngx-slider-pointer:after{content:'';width:8px;height:8px;position:absolute;top:12px;left:12px;border-radius:4px;background:#fff}::ng-deep .ngx-slider .ngx-slider-pointer:hover:after{background-color:#fff}::ng-deep .ngx-slider .ngx-slider-pointer.ngx-slider-active{z-index:4}::ng-deep .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{background-color:#451aff}::ng-deep .ngx-slider .ngx-slider-bubble{cursor:default;bottom:16px;padding:1px 3px;color:#55637d;font-size:16px}::ng-deep .ngx-slider .ngx-slider-bubble.ngx-slider-limit{color:#55637d}::ng-deep .ngx-slider .ngx-slider-ticks{box-sizing:border-box;width:100%;height:0;position:absolute;left:0;top:-3px;margin:0;z-index:1;list-style:none}::ng-deep .ngx-slider .ngx-slider-ticks-values-under .ngx-slider-tick-value{top:auto;bottom:-36px}::ng-deep .ngx-slider .ngx-slider-tick{text-align:center;cursor:pointer;width:10px;height:10px;background:#d8e0f3;border-radius:50%;position:absolute;top:0;left:0;margin-left:11px}::ng-deep .ngx-slider .ngx-slider-tick.ngx-slider-selected{background:#0db9f0}::ng-deep .ngx-slider .ngx-slider-tick-value{position:absolute;top:-34px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0)}::ng-deep .ngx-slider .ngx-slider-tick-legend{position:absolute;top:24px;-webkit-transform:translate(-50%,0);transform:translate(-50%,0);max-width:50px;white-space:normal}::ng-deep .ngx-slider.vertical{position:relative;width:4px;height:100%;margin:0 20px;padding:0;vertical-align:baseline;touch-action:pan-x}::ng-deep .ngx-slider.vertical .ngx-slider-base{width:100%;height:100%;padding:0}::ng-deep .ngx-slider.vertical .ngx-slider-bar-wrapper{top:auto;left:0;margin:0 0 0 -16px;padding:0 0 0 16px;height:100%;width:32px}::ng-deep .ngx-slider.vertical .ngx-slider-bar{bottom:0;left:auto;width:4px;height:100%}::ng-deep .ngx-slider.vertical .ngx-slider-pointer{left:-14px!important;top:auto;bottom:0}::ng-deep .ngx-slider.vertical .ngx-slider-bubble{left:16px!important;bottom:0}::ng-deep .ngx-slider.vertical .ngx-slider-ticks{height:100%;width:0;left:-3px;top:0;z-index:1}::ng-deep .ngx-slider.vertical .ngx-slider-tick{vertical-align:middle;margin-left:auto;margin-top:11px}::ng-deep .ngx-slider.vertical .ngx-slider-tick-value{left:24px;top:auto;-webkit-transform:translate(0,-28%);transform:translate(0,-28%)}::ng-deep .ngx-slider.vertical .ngx-slider-tick-legend{top:auto;right:24px;-webkit-transform:translate(0,-28%);transform:translate(0,-28%);max-width:none;white-space:nowrap}::ng-deep .ngx-slider.vertical .ngx-slider-ticks-values-under .ngx-slider-tick-value{bottom:auto;left:auto;right:24px}::ng-deep .ngx-slider *{transition:none}::ng-deep .ngx-slider.animate .ngx-slider-bar-wrapper{transition:.3s linear}::ng-deep .ngx-slider.animate .ngx-slider-selection{transition:background-color .3s linear}::ng-deep .ngx-slider.animate .ngx-slider-pointer{transition:.3s linear}::ng-deep .ngx-slider.animate .ngx-slider-bubble{transition:.3s linear}::ng-deep .ngx-slider.animate .ngx-slider-bubble.ngx-slider-limit{transition:opacity .3s linear}::ng-deep .ngx-slider.animate .ngx-slider-bubble.ngx-slider-combined{transition:opacity .3s linear}::ng-deep .ngx-slider.animate .ngx-slider-tick{transition:background-color .3s linear}`],
  85246. host: { class: 'ngx-slider' },
  85247. providers: [NGX_SLIDER_CONTROL_VALUE_ACCESSOR]
  85248. }]
  85249. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgZone"] }]; }, { value: [{
  85250. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85251. }], valueChange: [{
  85252. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
  85253. }], highValue: [{
  85254. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85255. }], highValueChange: [{
  85256. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
  85257. }], options: [{
  85258. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85259. }], userChangeStart: [{
  85260. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
  85261. }], userChange: [{
  85262. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
  85263. }], userChangeEnd: [{
  85264. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Output"]
  85265. }], sliderElementVerticalClass: [{
  85266. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  85267. args: ['class.vertical']
  85268. }], sliderElementAnimateClass: [{
  85269. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  85270. args: ['class.animate']
  85271. }], sliderElementWithLegendClass: [{
  85272. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  85273. args: ['class.with-legend']
  85274. }], sliderElementDisabledAttr: [{
  85275. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostBinding"],
  85276. args: ['attr.disabled']
  85277. }], manualRefresh: [{
  85278. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85279. }], triggerFocus: [{
  85280. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85281. }],
  85282. /**
  85283. * @param {?} event
  85284. * @return {?}
  85285. */
  85286. onResize: [{
  85287. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["HostListener"],
  85288. args: ['window:resize', ['$event']]
  85289. }], leftOuterSelectionBarElement: [{
  85290. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85291. args: ['leftOuterSelectionBar', { read: SliderElementDirective }]
  85292. }], rightOuterSelectionBarElement: [{
  85293. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85294. args: ['rightOuterSelectionBar', { read: SliderElementDirective }]
  85295. }], fullBarElement: [{
  85296. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85297. args: ['fullBar', { read: SliderElementDirective }]
  85298. }], selectionBarElement: [{
  85299. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85300. args: ['selectionBar', { read: SliderElementDirective }]
  85301. }], minHandleElement: [{
  85302. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85303. args: ['minHandle', { read: SliderHandleDirective }]
  85304. }], maxHandleElement: [{
  85305. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85306. args: ['maxHandle', { read: SliderHandleDirective }]
  85307. }], floorLabelElement: [{
  85308. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85309. args: ['floorLabel', { read: SliderLabelDirective }]
  85310. }], ceilLabelElement: [{
  85311. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85312. args: ['ceilLabel', { read: SliderLabelDirective }]
  85313. }], minHandleLabelElement: [{
  85314. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85315. args: ['minHandleLabel', { read: SliderLabelDirective }]
  85316. }], maxHandleLabelElement: [{
  85317. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85318. args: ['maxHandleLabel', { read: SliderLabelDirective }]
  85319. }], combinedLabelElement: [{
  85320. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85321. args: ['combinedLabel', { read: SliderLabelDirective }]
  85322. }], ticksElement: [{
  85323. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ViewChild"],
  85324. args: ['ticksElement', { read: SliderElementDirective }]
  85325. }], tooltipTemplate: [{
  85326. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["ContentChild"],
  85327. args: ['tooltipTemplate']
  85328. }] }); })();
  85329. /**
  85330. * @fileoverview added by tsickle
  85331. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  85332. */
  85333. class TooltipWrapperComponent {
  85334. }
  85335. TooltipWrapperComponent.ɵfac = function TooltipWrapperComponent_Factory(t) { return new (t || TooltipWrapperComponent)(); };
  85336. TooltipWrapperComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: TooltipWrapperComponent, selectors: [["ngx-slider-tooltip-wrapper"]], inputs: { template: "template", tooltip: "tooltip", placement: "placement", content: "content" }, decls: 2, vars: 2, consts: [[4, "ngIf"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "ngx-slider-inner-tooltip"]], template: function TooltipWrapperComponent_Template(rf, ctx) { if (rf & 1) {
  85337. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](0, TooltipWrapperComponent_ng_container_0_Template, 2, 6, "ng-container", 0);
  85338. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](1, TooltipWrapperComponent_ng_container_1_Template, 3, 3, "ng-container", 0);
  85339. } if (rf & 2) {
  85340. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.template);
  85341. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
  85342. _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", !ctx.template);
  85343. } }, directives: [_angular_common__WEBPACK_IMPORTED_MODULE_5__["NgIf"], _angular_common__WEBPACK_IMPORTED_MODULE_5__["NgTemplateOutlet"]], styles: [".ngx-slider-inner-tooltip[_ngcontent-%COMP%]{height:100%}"] });
  85344. TooltipWrapperComponent.propDecorators = {
  85345. template: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }],
  85346. tooltip: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }],
  85347. placement: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }],
  85348. content: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"] }]
  85349. };
  85350. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](TooltipWrapperComponent, [{
  85351. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Component"],
  85352. args: [{
  85353. selector: 'ngx-slider-tooltip-wrapper',
  85354. template: `<ng-container *ngIf="template">
  85355. <ng-template *ngTemplateOutlet="template; context: {tooltip: tooltip, placement: placement, content: content}"></ng-template>
  85356. </ng-container>
  85357. <ng-container *ngIf="!template">
  85358. <div class="ngx-slider-inner-tooltip" [attr.title]="tooltip" [attr.data-tooltip-placement]="placement">
  85359. {{content}}
  85360. </div>
  85361. </ng-container>`,
  85362. styles: [`.ngx-slider-inner-tooltip{height:100%}`]
  85363. }]
  85364. }], null, { template: [{
  85365. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85366. }], tooltip: [{
  85367. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85368. }], placement: [{
  85369. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85370. }], content: [{
  85371. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["Input"]
  85372. }] }); })();
  85373. /**
  85374. * @fileoverview added by tsickle
  85375. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  85376. */
  85377. /**
  85378. * NgxSlider module
  85379. *
  85380. * The module exports the slider component
  85381. */
  85382. class NgxSliderModule {
  85383. }
  85384. NgxSliderModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineNgModule"]({ type: NgxSliderModule });
  85385. NgxSliderModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineInjector"]({ factory: function NgxSliderModule_Factory(t) { return new (t || NgxSliderModule)(); }, imports: [[
  85386. _angular_common__WEBPACK_IMPORTED_MODULE_5__["CommonModule"]
  85387. ]] });
  85388. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsetNgModuleScope"](NgxSliderModule, { declarations: function () { return [SliderComponent, SliderElementDirective, SliderHandleDirective, SliderLabelDirective, TooltipWrapperComponent]; }, imports: function () { return [_angular_common__WEBPACK_IMPORTED_MODULE_5__["CommonModule"]]; }, exports: function () { return [SliderComponent]; } }); })();
  85389. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵsetClassMetadata"](NgxSliderModule, [{
  85390. type: _angular_core__WEBPACK_IMPORTED_MODULE_3__["NgModule"],
  85391. args: [{
  85392. imports: [
  85393. _angular_common__WEBPACK_IMPORTED_MODULE_5__["CommonModule"]
  85394. ],
  85395. declarations: [
  85396. SliderComponent,
  85397. SliderElementDirective,
  85398. SliderHandleDirective,
  85399. SliderLabelDirective,
  85400. TooltipWrapperComponent
  85401. ],
  85402. exports: [
  85403. SliderComponent
  85404. ]
  85405. }]
  85406. }], null, null); })();
  85407. /**
  85408. * @fileoverview added by tsickle
  85409. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  85410. */
  85411. /**
  85412. * @fileoverview added by tsickle
  85413. * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
  85414. */
  85415. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYW5ndWxhci1zbGlkZXItbmd4LXNsaWRlci5qcyIsInNvdXJjZXMiOlsiQGFuZ3VsYXItc2xpZGVyL25neC1zbGlkZXIvb3B0aW9ucy50cyIsIkBhbmd1bGFyLXNsaWRlci9uZ3gtc2xpZGVyL3BvaW50ZXItdHlwZS50cyIsIkBhbmd1bGFyLXNsaWRlci9uZ3gtc2xpZGVyL2NoYW5nZS1jb250ZXh0LnRzIiwiQGFuZ3VsYXItc2xpZGVyL25neC1zbGlkZXIvdmFsdWUtaGVscGVyLnRzIiwiQGFuZ3VsYXItc2xpZGVyL25neC1zbGlkZXIvY29tcGF0aWJpbGl0eS1oZWxwZXIudHMiLCJAYW5ndWxhci1zbGlkZXIvbmd4LXNsaWRlci9tYXRoLWhlbHBlci50cyIsIkBhbmd1bGFyLXNsaWRlci9uZ3gtc2xpZGVyL2V2ZW50LWxpc3RlbmVyLnRzIiwiQGFuZ3VsYXItc2xpZGVyL25neC1zb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Rpb24odGhpcy52aWV3T3B0aW9ucy5zaG93U2VsZWN0aW9uQmFyRnJvbVZhbHVlKVxuICAgICAgICAgICAgOiAwO1xuICAgICAgY29uc3QgcmV2ZXJzZWQ6IGJvb2xlYW4gPSAob2Zmc2V0IC0gcG9zaXRpb24gPiAwICYmICFpc1NlbGVjdGlvbkJhckZyb21SaWdodCkgfHwgKG9mZnNldCAtIHBvc2l0aW9uIDw9IDAgJiYgaXNTZWxlY3Rpb25CYXJGcm9tUmlnaHQpO1xuICAgICAgY29uc3QgZGlyZWN0aW9uOiBzdHJpbmcgPSB0aGlzLnZpZXdPcHRpb25zLnZlcnRpY2FsXG4gICAgICAgICAgPyByZXZlcnNlZCA/ICdib3R0b20nIDogJ3RvcCdcbiAgICAgICAgICA6IHJldmVyc2VkID8gJ2xlZnQnIDogJ3JpZ2h0JztcbiAgICAgIHRoaXMuYmFyU3R5bGUgPSB7XG4gICAgICAgIGJhY2tncm91bmRJbWFnZTpcbiAgICAgICAgICAnbGluZWFyLWdyYWRpZW50KHRvICcgK1xuICAgICAgICAgIGRpcmVjdGlvbiArXG4gICAgICAgICAgJywgJyArXG4gICAgICAgICAgdGhpcy52aWV3T3B0aW9ucy5zZWxlY3Rpb25CYXJHcmFkaWVudC5mcm9tICtcbiAgICAgICAgICAnIDAlLCcgK1xuICAgICAgICAgIHRoaXMudmlld09wdGlvbnMuc2VsZWN0aW9uQmFyR3JhZGllbnQudG8gK1xuICAgICAgICAgICcgMTAwJSknLFxuICAgICAgfTtcbiAgICAgIGlmICh0aGlzLnZpZXdPcHRpb25zLnZlcnRpY2FsKSB7XG4gICAgICAgIHRoaXMuYmFyU3R5bGUuYmFja2dyb3VuZFBvc2l0aW9uID1cbiAgICAgICAgICAnY2VudGVyICcgK1xuICAgICAgICAgIChvZmZzZXQgK1xuICAgICAgICAgICAgZGltZW5zaW9uICtcbiAgICAgICAgICAgIHBvc2l0aW9uICtcbiAgICAgICAgICAgIChyZXZlcnNlZCA/IC10aGlzLmh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kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IFNsaWRlckNvbXBvbmVudCB9IGZyb20gJy4vc2xpZGVyLmNvbXBvbmVudCc7XG5pbXBvcnQgeyBTbGlkZXJFbGVtZW50RGlyZWN0aXZlIH0gZnJvbSAnLi9zbGlkZXItZWxlbWVudC5kaXJlY3RpdmUnO1xuaW1wb3J0IHsgU2xpZGVySGFuZGxlRGlyZWN0aXZlIH0gZnJvbSAnLi9zbGlkZXItaGFuZGxlLmRpcmVjdGl2ZSc7XG5pbXBvcnQgeyBTbGlkZXJMYWJlbERpcmVjdGl2ZSB9IGZyb20gJy4vc2xpZGVyLWxhYmVsLmRpcmVjdGl2ZSc7XG5pbXBvcnQgeyBUb29sdGlwV3JhcHBlckNvbXBvbmVudCB9IGZyb20gJy4vdG9vbHRpcC13cmFwcGVyLmNvbXBvbmVudCc7XG5cbi8qKlxuICogTmd4U2xpZGVyIG1vZHVsZVxuICpcbiAqIFRoZSBtb2R1bGUgZXhwb3J0cyB0aGUgc2xpZGVyIGNvbXBvbmVudFxuICovXG5ATmdNb2R1bGUoe1xuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlXG4gIF0sXG4gIGRlY2xhcmF0aW9uczogW1xuICAgIFNsaWRlckNvbXBvbmVudCxcbiAgICBTbGlkZXJFbGVtZW50RGlyZWN0aXZlLFxuICAgIFNsaWRlckhhbmRsZURpcmVjdGl2ZSxcbiAgICBTbGlkZXJMYWJlbERpcmVjdGl2ZSxcbiAgICBUb29sdGlwV3JhcHBlckNvbXBvbmVudFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgU2xpZGVyQ29tcG9uZW50XG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgTmd4U2xpZGVyTW9kdWxlIHsgfVxuIl19
  85416. /***/ }),
  85417. /***/ "mk5/":
  85418. /*!*****************************************************************!*\
  85419. !*** ./node_modules/rxjs/_esm2015/internal/operators/window.js ***!
  85420. \*****************************************************************/
  85421. /*! exports provided: window */
  85422. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  85423. "use strict";
  85424. __webpack_require__.r(__webpack_exports__);
  85425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "window", function() { return window; });
  85426. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG");
  85427. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  85428. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  85429. function window(windowBoundaries) {
  85430. return function windowOperatorFunction(source) {
  85431. return source.lift(new WindowOperator(windowBoundaries));
  85432. };
  85433. }
  85434. class WindowOperator {
  85435. constructor(windowBoundaries) {
  85436. this.windowBoundaries = windowBoundaries;
  85437. }
  85438. call(subscriber, source) {
  85439. const windowSubscriber = new WindowSubscriber(subscriber);
  85440. const sourceSubscription = source.subscribe(windowSubscriber);
  85441. if (!sourceSubscription.closed) {
  85442. windowSubscriber.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(windowSubscriber, this.windowBoundaries));
  85443. }
  85444. return sourceSubscription;
  85445. }
  85446. }
  85447. class WindowSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__["OuterSubscriber"] {
  85448. constructor(destination) {
  85449. super(destination);
  85450. this.window = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  85451. destination.next(this.window);
  85452. }
  85453. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  85454. this.openWindow();
  85455. }
  85456. notifyError(error, innerSub) {
  85457. this._error(error);
  85458. }
  85459. notifyComplete(innerSub) {
  85460. this._complete();
  85461. }
  85462. _next(value) {
  85463. this.window.next(value);
  85464. }
  85465. _error(err) {
  85466. this.window.error(err);
  85467. this.destination.error(err);
  85468. }
  85469. _complete() {
  85470. this.window.complete();
  85471. this.destination.complete();
  85472. }
  85473. _unsubscribe() {
  85474. this.window = null;
  85475. }
  85476. openWindow() {
  85477. const prevWindow = this.window;
  85478. if (prevWindow) {
  85479. prevWindow.complete();
  85480. }
  85481. const destination = this.destination;
  85482. const newWindow = this.window = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  85483. destination.next(newWindow);
  85484. }
  85485. }
  85486. //# sourceMappingURL=window.js.map
  85487. /***/ }),
  85488. /***/ "mlxB":
  85489. /*!************************************************************!*\
  85490. !*** ./node_modules/rxjs/_esm2015/internal/util/isDate.js ***!
  85491. \************************************************************/
  85492. /*! exports provided: isDate */
  85493. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  85494. "use strict";
  85495. __webpack_require__.r(__webpack_exports__);
  85496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDate", function() { return isDate; });
  85497. function isDate(value) {
  85498. return value instanceof Date && !isNaN(+value);
  85499. }
  85500. //# sourceMappingURL=isDate.js.map
  85501. /***/ }),
  85502. /***/ "mqiu":
  85503. /*!****************************************************************************************************!*\
  85504. !*** ./node_modules/@ngx-translate/http-loader/__ivy_ngcc__/fesm2015/ngx-translate-http-loader.js ***!
  85505. \****************************************************************************************************/
  85506. /*! exports provided: TranslateHttpLoader */
  85507. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  85508. "use strict";
  85509. __webpack_require__.r(__webpack_exports__);
  85510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateHttpLoader", function() { return TranslateHttpLoader; });
  85511. /**
  85512. * @fileoverview added by tsickle
  85513. * @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc
  85514. */
  85515. class TranslateHttpLoader {
  85516. /**
  85517. * @param {?} http
  85518. * @param {?=} prefix
  85519. * @param {?=} suffix
  85520. */
  85521. constructor(http, prefix = "/assets/i18n/", suffix = ".json") {
  85522. this.http = http;
  85523. this.prefix = prefix;
  85524. this.suffix = suffix;
  85525. }
  85526. /**
  85527. * Gets the translations from the server
  85528. * @param {?} lang
  85529. * @return {?}
  85530. */
  85531. getTranslation(lang) {
  85532. return this.http.get(`${this.prefix}${lang}${this.suffix}`);
  85533. }
  85534. }
  85535. /**
  85536. * @fileoverview added by tsickle
  85537. * @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc
  85538. */
  85539. /**
  85540. * @fileoverview added by tsickle
  85541. * @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc
  85542. */
  85543. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXRyYW5zbGF0ZS1odHRwLWxvYWRlci5qcyIsInNvdXJjZXMiOlsiQG5neC10cmFuc2xhdGUvaHR0cC1sb2FkZXIvbGliL2h0dHAtbG9hZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFJQSxNQUFhLG1CQUFtQix6QkFBaEMsTUFBYSxtQkFBbUI7QUFBRztBQUFRO0FBQ3ZDO0FBQTBCO0FBQTBCO0lBQXRELFlBQW9CLElBQWdCLEVBQVMsU0FBaUIsZUFBZSxFQUFTLFNBQWlCLE9BQU8saEVBQWhELElBQTlELFlBQW9CLElBQWdCLEVBQVMsU0FBaUIsZUFBZSxFQUFTLFNBQWlCLE9BQU87UUFBMUYsU0FBSSxHQUFKLElBQUksQ0FBWSx6QkFBOEUsUUFBOUYsU0FBSSxHQUFKLElBQUksQ0FBWTtRQUFTLFdBQU0sR0FBTixNQUFNLENBQTBCLDdCQUF4QyxRQUFRLFdBQU0sR0FBTixNQUFNLENBQTBCO1FBQVMsV0FBTSxHQUFOLE1BQU0sQ0FBa0IsN0JBQWhDLFFBQVEsV0FBTSxHQUFOLE1BQU0sQ0FBa0I7S0FBSSxMQUFILEtBQUc7QUFDcEg7QUFFQztBQUNFOztBQUNvQztJQUE5QixjQUFjLENBQUMsSUFBWSx2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nNlcnZhYmxlPE9iamVjdD4ge1xuICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0KGAke3RoaXMucHJlZml4fSR7bGFuZ30ke3RoaXMuc3VmZml4fWApO1xuICB9XG59XG4iXX0=
  85544. /***/ }),
  85545. /***/ "mrSG":
  85546. /*!*****************************************!*\
  85547. !*** ./node_modules/tslib/tslib.es6.js ***!
  85548. \*****************************************/
  85549. /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
  85550. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  85551. "use strict";
  85552. __webpack_require__.r(__webpack_exports__);
  85553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
  85554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
  85555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
  85556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
  85557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
  85558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
  85559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
  85560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
  85561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__createBinding", function() { return __createBinding; });
  85562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
  85563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
  85564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
  85565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
  85566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__spreadArrays", function() { return __spreadArrays; });
  85567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
  85568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
  85569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
  85570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
  85571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
  85572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
  85573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
  85574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
  85575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
  85576. /*! *****************************************************************************
  85577. Copyright (c) Microsoft Corporation.
  85578. Permission to use, copy, modify, and/or distribute this software for any
  85579. purpose with or without fee is hereby granted.
  85580. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  85581. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  85582. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  85583. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  85584. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  85585. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  85586. PERFORMANCE OF THIS SOFTWARE.
  85587. ***************************************************************************** */
  85588. /* global Reflect, Promise */
  85589. var extendStatics = function(d, b) {
  85590. extendStatics = Object.setPrototypeOf ||
  85591. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  85592. function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
  85593. return extendStatics(d, b);
  85594. };
  85595. function __extends(d, b) {
  85596. extendStatics(d, b);
  85597. function __() { this.constructor = d; }
  85598. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  85599. }
  85600. var __assign = function() {
  85601. __assign = Object.assign || function __assign(t) {
  85602. for (var s, i = 1, n = arguments.length; i < n; i++) {
  85603. s = arguments[i];
  85604. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
  85605. }
  85606. return t;
  85607. }
  85608. return __assign.apply(this, arguments);
  85609. }
  85610. function __rest(s, e) {
  85611. var t = {};
  85612. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
  85613. t[p] = s[p];
  85614. if (s != null && typeof Object.getOwnPropertySymbols === "function")
  85615. for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
  85616. if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
  85617. t[p[i]] = s[p[i]];
  85618. }
  85619. return t;
  85620. }
  85621. function __decorate(decorators, target, key, desc) {
  85622. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  85623. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  85624. else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  85625. return c > 3 && r && Object.defineProperty(target, key, r), r;
  85626. }
  85627. function __param(paramIndex, decorator) {
  85628. return function (target, key) { decorator(target, key, paramIndex); }
  85629. }
  85630. function __metadata(metadataKey, metadataValue) {
  85631. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
  85632. }
  85633. function __awaiter(thisArg, _arguments, P, generator) {
  85634. function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
  85635. return new (P || (P = Promise))(function (resolve, reject) {
  85636. function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
  85637. function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
  85638. function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
  85639. step((generator = generator.apply(thisArg, _arguments || [])).next());
  85640. });
  85641. }
  85642. function __generator(thisArg, body) {
  85643. var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
  85644. return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
  85645. function verb(n) { return function (v) { return step([n, v]); }; }
  85646. function step(op) {
  85647. if (f) throw new TypeError("Generator is already executing.");
  85648. while (_) try {
  85649. if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
  85650. if (y = 0, t) op = [op[0] & 2, t.value];
  85651. switch (op[0]) {
  85652. case 0: case 1: t = op; break;
  85653. case 4: _.label++; return { value: op[1], done: false };
  85654. case 5: _.label++; y = op[1]; op = [0]; continue;
  85655. case 7: op = _.ops.pop(); _.trys.pop(); continue;
  85656. default:
  85657. if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
  85658. if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
  85659. if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
  85660. if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
  85661. if (t[2]) _.ops.pop();
  85662. _.trys.pop(); continue;
  85663. }
  85664. op = body.call(thisArg, _);
  85665. } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
  85666. if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
  85667. }
  85668. }
  85669. var __createBinding = Object.create ? (function(o, m, k, k2) {
  85670. if (k2 === undefined) k2 = k;
  85671. Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
  85672. }) : (function(o, m, k, k2) {
  85673. if (k2 === undefined) k2 = k;
  85674. o[k2] = m[k];
  85675. });
  85676. function __exportStar(m, o) {
  85677. for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
  85678. }
  85679. function __values(o) {
  85680. var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
  85681. if (m) return m.call(o);
  85682. if (o && typeof o.length === "number") return {
  85683. next: function () {
  85684. if (o && i >= o.length) o = void 0;
  85685. return { value: o && o[i++], done: !o };
  85686. }
  85687. };
  85688. throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
  85689. }
  85690. function __read(o, n) {
  85691. var m = typeof Symbol === "function" && o[Symbol.iterator];
  85692. if (!m) return o;
  85693. var i = m.call(o), r, ar = [], e;
  85694. try {
  85695. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  85696. }
  85697. catch (error) { e = { error: error }; }
  85698. finally {
  85699. try {
  85700. if (r && !r.done && (m = i["return"])) m.call(i);
  85701. }
  85702. finally { if (e) throw e.error; }
  85703. }
  85704. return ar;
  85705. }
  85706. function __spread() {
  85707. for (var ar = [], i = 0; i < arguments.length; i++)
  85708. ar = ar.concat(__read(arguments[i]));
  85709. return ar;
  85710. }
  85711. function __spreadArrays() {
  85712. for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
  85713. for (var r = Array(s), k = 0, i = 0; i < il; i++)
  85714. for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
  85715. r[k] = a[j];
  85716. return r;
  85717. };
  85718. function __await(v) {
  85719. return this instanceof __await ? (this.v = v, this) : new __await(v);
  85720. }
  85721. function __asyncGenerator(thisArg, _arguments, generator) {
  85722. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  85723. var g = generator.apply(thisArg, _arguments || []), i, q = [];
  85724. return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
  85725. function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
  85726. function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
  85727. function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
  85728. function fulfill(value) { resume("next", value); }
  85729. function reject(value) { resume("throw", value); }
  85730. function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
  85731. }
  85732. function __asyncDelegator(o) {
  85733. var i, p;
  85734. return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
  85735. function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
  85736. }
  85737. function __asyncValues(o) {
  85738. if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  85739. var m = o[Symbol.asyncIterator], i;
  85740. return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
  85741. function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
  85742. function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
  85743. }
  85744. function __makeTemplateObject(cooked, raw) {
  85745. if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
  85746. return cooked;
  85747. };
  85748. var __setModuleDefault = Object.create ? (function(o, v) {
  85749. Object.defineProperty(o, "default", { enumerable: true, value: v });
  85750. }) : function(o, v) {
  85751. o["default"] = v;
  85752. };
  85753. function __importStar(mod) {
  85754. if (mod && mod.__esModule) return mod;
  85755. var result = {};
  85756. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  85757. __setModuleDefault(result, mod);
  85758. return result;
  85759. }
  85760. function __importDefault(mod) {
  85761. return (mod && mod.__esModule) ? mod : { default: mod };
  85762. }
  85763. function __classPrivateFieldGet(receiver, privateMap) {
  85764. if (!privateMap.has(receiver)) {
  85765. throw new TypeError("attempted to get private field on non-instance");
  85766. }
  85767. return privateMap.get(receiver);
  85768. }
  85769. function __classPrivateFieldSet(receiver, privateMap, value) {
  85770. if (!privateMap.has(receiver)) {
  85771. throw new TypeError("attempted to set private field on non-instance");
  85772. }
  85773. privateMap.set(receiver, value);
  85774. return value;
  85775. }
  85776. /***/ }),
  85777. /***/ "n6bG":
  85778. /*!****************************************************************!*\
  85779. !*** ./node_modules/rxjs/_esm2015/internal/util/isFunction.js ***!
  85780. \****************************************************************/
  85781. /*! exports provided: isFunction */
  85782. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  85783. "use strict";
  85784. __webpack_require__.r(__webpack_exports__);
  85785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isFunction", function() { return isFunction; });
  85786. function isFunction(x) {
  85787. return typeof x === 'function';
  85788. }
  85789. //# sourceMappingURL=isFunction.js.map
  85790. /***/ }),
  85791. /***/ "nLfN":
  85792. /*!*********************************************************************!*\
  85793. !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/platform.js ***!
  85794. \*********************************************************************/
  85795. /*! exports provided: Platform, PlatformModule, _supportsShadowDom, getRtlScrollAxisType, getSupportedInputTypes, normalizePassiveListenerOptions, supportsPassiveEventListeners, supportsScrollBehavior */
  85796. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  85797. "use strict";
  85798. __webpack_require__.r(__webpack_exports__);
  85799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Platform", function() { return Platform; });
  85800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlatformModule", function() { return PlatformModule; });
  85801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_supportsShadowDom", function() { return _supportsShadowDom; });
  85802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getRtlScrollAxisType", function() { return getRtlScrollAxisType; });
  85803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSupportedInputTypes", function() { return getSupportedInputTypes; });
  85804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "normalizePassiveListenerOptions", function() { return normalizePassiveListenerOptions; });
  85805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportsPassiveEventListeners", function() { return supportsPassiveEventListeners; });
  85806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "supportsScrollBehavior", function() { return supportsScrollBehavior; });
  85807. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  85808. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "ofXK");
  85809. /**
  85810. * @fileoverview added by tsickle
  85811. * Generated from: src/cdk/platform/platform.ts
  85812. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  85813. */
  85814. // Whether the current platform supports the V8 Break Iterator. The V8 check
  85815. // is necessary to detect all Blink based browsers.
  85816. /** @type {?} */
  85817. let hasV8BreakIterator;
  85818. // We need a try/catch around the reference to `Intl`, because accessing it in some cases can
  85819. // cause IE to throw. These cases are tied to particular versions of Windows and can happen if
  85820. // the consumer is providing a polyfilled `Map`. See:
  85821. // https://github.com/Microsoft/ChakraCore/issues/3189
  85822. // https://github.com/angular/components/issues/15687
  85823. try {
  85824. hasV8BreakIterator = (typeof Intl !== 'undefined' && ((/** @type {?} */ (Intl))).v8BreakIterator);
  85825. }
  85826. catch (_a) {
  85827. hasV8BreakIterator = false;
  85828. }
  85829. /**
  85830. * Service to detect the current platform by comparing the userAgent strings and
  85831. * checking browser-specific global properties.
  85832. */
  85833. class Platform {
  85834. /**
  85835. * \@breaking-change 8.0.0 remove optional decorator
  85836. * @param {?=} _platformId
  85837. */
  85838. constructor(_platformId) {
  85839. this._platformId = _platformId;
  85840. // We want to use the Angular platform check because if the Document is shimmed
  85841. // without the navigator, the following checks will fail. This is preferred because
  85842. // sometimes the Document may be shimmed without the user's knowledge or intention
  85843. /**
  85844. * Whether the Angular application is being rendered in the browser.
  85845. */
  85846. this.isBrowser = this._platformId ?
  85847. Object(_angular_common__WEBPACK_IMPORTED_MODULE_1__["isPlatformBrowser"])(this._platformId) : typeof document === 'object' && !!document;
  85848. /**
  85849. * Whether the current browser is Microsoft Edge.
  85850. */
  85851. this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent);
  85852. /**
  85853. * Whether the current rendering engine is Microsoft Trident.
  85854. */
  85855. this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent);
  85856. // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.
  85857. /**
  85858. * Whether the current rendering engine is Blink.
  85859. */
  85860. this.BLINK = this.isBrowser && (!!(((/** @type {?} */ (window))).chrome || hasV8BreakIterator) &&
  85861. typeof CSS !== 'undefined' && !this.EDGE && !this.TRIDENT);
  85862. // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to
  85863. // ensure that Webkit runs standalone and is not used as another engine's base.
  85864. /**
  85865. * Whether the current rendering engine is WebKit.
  85866. */
  85867. this.WEBKIT = this.isBrowser &&
  85868. /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT;
  85869. /**
  85870. * Whether the current platform is Apple iOS.
  85871. */
  85872. this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) &&
  85873. !('MSStream' in window);
  85874. // It's difficult to detect the plain Gecko engine, because most of the browsers identify
  85875. // them self as Gecko-like browsers and modify the userAgent's according to that.
  85876. // Since we only cover one explicit Firefox case, we can simply check for Firefox
  85877. // instead of having an unstable check for Gecko.
  85878. /**
  85879. * Whether the current browser is Firefox.
  85880. */
  85881. this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);
  85882. /**
  85883. * Whether the current platform is Android.
  85884. */
  85885. // Trident on mobile adds the android platform to the userAgent to trick detections.
  85886. this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT;
  85887. // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake
  85888. // this and just place the Safari keyword in the userAgent. To be more safe about Safari every
  85889. // Safari browser should also use Webkit as its layout engine.
  85890. /**
  85891. * Whether the current browser is Safari.
  85892. */
  85893. this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT;
  85894. }
  85895. }
  85896. Platform.ɵfac = function Platform_Factory(t) { return new (t || Platform)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"], 8)); };
  85897. /** @nocollapse */
  85898. Platform.ctorParameters = () => [
  85899. { type: Object, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"],] }] }
  85900. ];
  85901. /** @nocollapse */ Platform.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: function Platform_Factory() { return new Platform(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"], 8)); }, token: Platform, providedIn: "root" });
  85902. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Platform, [{
  85903. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  85904. args: [{ providedIn: 'root' }]
  85905. }], function () { return [{ type: Object, decorators: [{
  85906. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  85907. }, {
  85908. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  85909. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
  85910. }] }]; }, null); })();
  85911. if (false) {}
  85912. /**
  85913. * @fileoverview added by tsickle
  85914. * Generated from: src/cdk/platform/platform-module.ts
  85915. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  85916. */
  85917. class PlatformModule {
  85918. }
  85919. PlatformModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: PlatformModule });
  85920. PlatformModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function PlatformModule_Factory(t) { return new (t || PlatformModule)(); } });
  85921. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlatformModule, [{
  85922. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  85923. args: [{}]
  85924. }], null, null); })();
  85925. /**
  85926. * @fileoverview added by tsickle
  85927. * Generated from: src/cdk/platform/features/input-types.ts
  85928. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  85929. */
  85930. /**
  85931. * @license
  85932. * Copyright Google LLC All Rights Reserved.
  85933. *
  85934. * Use of this source code is governed by an MIT-style license that can be
  85935. * found in the LICENSE file at https://angular.io/license
  85936. */
  85937. /**
  85938. * Cached result Set of input types support by the current browser.
  85939. * @type {?}
  85940. */
  85941. let supportedInputTypes;
  85942. /**
  85943. * Types of `<input>` that *might* be supported.
  85944. * @type {?}
  85945. */
  85946. const candidateInputTypes = [
  85947. // `color` must come first. Chrome 56 shows a warning if we change the type to `color` after
  85948. // first changing it to something else:
  85949. // The specified value "" does not conform to the required format.
  85950. // The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
  85951. 'color',
  85952. 'button',
  85953. 'checkbox',
  85954. 'date',
  85955. 'datetime-local',
  85956. 'email',
  85957. 'file',
  85958. 'hidden',
  85959. 'image',
  85960. 'month',
  85961. 'number',
  85962. 'password',
  85963. 'radio',
  85964. 'range',
  85965. 'reset',
  85966. 'search',
  85967. 'submit',
  85968. 'tel',
  85969. 'text',
  85970. 'time',
  85971. 'url',
  85972. 'week',
  85973. ];
  85974. /**
  85975. * @return {?} The input types supported by this browser.
  85976. */
  85977. function getSupportedInputTypes() {
  85978. // Result is cached.
  85979. if (supportedInputTypes) {
  85980. return supportedInputTypes;
  85981. }
  85982. // We can't check if an input type is not supported until we're on the browser, so say that
  85983. // everything is supported when not on the browser. We don't use `Platform` here since it's
  85984. // just a helper function and can't inject it.
  85985. if (typeof document !== 'object' || !document) {
  85986. supportedInputTypes = new Set(candidateInputTypes);
  85987. return supportedInputTypes;
  85988. }
  85989. /** @type {?} */
  85990. let featureTestInput = document.createElement('input');
  85991. supportedInputTypes = new Set(candidateInputTypes.filter((/**
  85992. * @param {?} value
  85993. * @return {?}
  85994. */
  85995. value => {
  85996. featureTestInput.setAttribute('type', value);
  85997. return featureTestInput.type === value;
  85998. })));
  85999. return supportedInputTypes;
  86000. }
  86001. /**
  86002. * @fileoverview added by tsickle
  86003. * Generated from: src/cdk/platform/features/passive-listeners.ts
  86004. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  86005. */
  86006. /**
  86007. * @license
  86008. * Copyright Google LLC All Rights Reserved.
  86009. *
  86010. * Use of this source code is governed by an MIT-style license that can be
  86011. * found in the LICENSE file at https://angular.io/license
  86012. */
  86013. /**
  86014. * Cached result of whether the user's browser supports passive event listeners.
  86015. * @type {?}
  86016. */
  86017. let supportsPassiveEvents;
  86018. /**
  86019. * Checks whether the user's browser supports passive event listeners.
  86020. * See: https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md
  86021. * @return {?}
  86022. */
  86023. function supportsPassiveEventListeners() {
  86024. if (supportsPassiveEvents == null && typeof window !== 'undefined') {
  86025. try {
  86026. window.addEventListener('test', (/** @type {?} */ (null)), Object.defineProperty({}, 'passive', {
  86027. get: (/**
  86028. * @return {?}
  86029. */
  86030. () => supportsPassiveEvents = true)
  86031. }));
  86032. }
  86033. finally {
  86034. supportsPassiveEvents = supportsPassiveEvents || false;
  86035. }
  86036. }
  86037. return supportsPassiveEvents;
  86038. }
  86039. /**
  86040. * Normalizes an `AddEventListener` object to something that can be passed
  86041. * to `addEventListener` on any browser, no matter whether it supports the
  86042. * `options` parameter.
  86043. * @param {?} options Object to be normalized.
  86044. * @return {?}
  86045. */
  86046. function normalizePassiveListenerOptions(options) {
  86047. return supportsPassiveEventListeners() ? options : !!options.capture;
  86048. }
  86049. /**
  86050. * @fileoverview added by tsickle
  86051. * Generated from: src/cdk/platform/features/scrolling.ts
  86052. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  86053. */
  86054. /**
  86055. * @license
  86056. * Copyright Google LLC All Rights Reserved.
  86057. *
  86058. * Use of this source code is governed by an MIT-style license that can be
  86059. * found in the LICENSE file at https://angular.io/license
  86060. */
  86061. /** @enum {number} */
  86062. const RtlScrollAxisType = {
  86063. /**
  86064. * scrollLeft is 0 when scrolled all the way left and (scrollWidth - clientWidth) when scrolled
  86065. * all the way right.
  86066. */
  86067. NORMAL: 0,
  86068. /**
  86069. * scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
  86070. * all the way right.
  86071. */
  86072. NEGATED: 1,
  86073. /**
  86074. * scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and 0 when scrolled
  86075. * all the way right.
  86076. */
  86077. INVERTED: 2,
  86078. };
  86079. /**
  86080. * Cached result of the way the browser handles the horizontal scroll axis in RTL mode.
  86081. * @type {?}
  86082. */
  86083. let rtlScrollAxisType;
  86084. /**
  86085. * Check whether the browser supports scroll behaviors.
  86086. * @return {?}
  86087. */
  86088. function supportsScrollBehavior() {
  86089. return !!(typeof document == 'object' && 'scrollBehavior' in (/** @type {?} */ (document.documentElement)).style);
  86090. }
  86091. /**
  86092. * Checks the type of RTL scroll axis used by this browser. As of time of writing, Chrome is NORMAL,
  86093. * Firefox & Safari are NEGATED, and IE & Edge are INVERTED.
  86094. * @return {?}
  86095. */
  86096. function getRtlScrollAxisType() {
  86097. // We can't check unless we're on the browser. Just assume 'normal' if we're not.
  86098. if (typeof document !== 'object' || !document) {
  86099. return 0 /* NORMAL */;
  86100. }
  86101. if (rtlScrollAxisType == null) {
  86102. // Create a 1px wide scrolling container and a 2px wide content element.
  86103. /** @type {?} */
  86104. const scrollContainer = document.createElement('div');
  86105. /** @type {?} */
  86106. const containerStyle = scrollContainer.style;
  86107. scrollContainer.dir = 'rtl';
  86108. containerStyle.height = '1px';
  86109. containerStyle.width = '1px';
  86110. containerStyle.overflow = 'auto';
  86111. containerStyle.visibility = 'hidden';
  86112. containerStyle.pointerEvents = 'none';
  86113. containerStyle.position = 'absolute';
  86114. /** @type {?} */
  86115. const content = document.createElement('div');
  86116. /** @type {?} */
  86117. const contentStyle = content.style;
  86118. contentStyle.width = '2px';
  86119. contentStyle.height = '1px';
  86120. scrollContainer.appendChild(content);
  86121. document.body.appendChild(scrollContainer);
  86122. rtlScrollAxisType = 0 /* NORMAL */;
  86123. // The viewport starts scrolled all the way to the right in RTL mode. If we are in a NORMAL
  86124. // browser this would mean that the scrollLeft should be 1. If it's zero instead we know we're
  86125. // dealing with one of the other two types of browsers.
  86126. if (scrollContainer.scrollLeft === 0) {
  86127. // In a NEGATED browser the scrollLeft is always somewhere in [-maxScrollAmount, 0]. For an
  86128. // INVERTED browser it is always somewhere in [0, maxScrollAmount]. We can determine which by
  86129. // setting to the scrollLeft to 1. This is past the max for a NEGATED browser, so it will
  86130. // return 0 when we read it again.
  86131. scrollContainer.scrollLeft = 1;
  86132. rtlScrollAxisType =
  86133. scrollContainer.scrollLeft === 0 ? 1 /* NEGATED */ : 2 /* INVERTED */;
  86134. }
  86135. (/** @type {?} */ (scrollContainer.parentNode)).removeChild(scrollContainer);
  86136. }
  86137. return rtlScrollAxisType;
  86138. }
  86139. /**
  86140. * @fileoverview added by tsickle
  86141. * Generated from: src/cdk/platform/features/shadow-dom.ts
  86142. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  86143. */
  86144. /**
  86145. * @license
  86146. * Copyright Google LLC All Rights Reserved.
  86147. *
  86148. * Use of this source code is governed by an MIT-style license that can be
  86149. * found in the LICENSE file at https://angular.io/license
  86150. */
  86151. /** @type {?} */
  86152. let shadowDomIsSupported;
  86153. /**
  86154. * Checks whether the user's browser support Shadow DOM.
  86155. * @return {?}
  86156. */
  86157. function _supportsShadowDom() {
  86158. if (shadowDomIsSupported == null) {
  86159. /** @type {?} */
  86160. const head = typeof document !== 'undefined' ? document.head : null;
  86161. shadowDomIsSupported = !!(head && (((/** @type {?} */ (head))).createShadowRoot || head.attachShadow));
  86162. }
  86163. return shadowDomIsSupported;
  86164. }
  86165. /**
  86166. * @fileoverview added by tsickle
  86167. * Generated from: src/cdk/platform/public-api.ts
  86168. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  86169. */
  86170. /**
  86171. * Generated bundle index. Do not edit.
  86172. */
  86173. //# sourceMappingURL=platform.js.map
  86174. /***/ }),
  86175. /***/ "nYR2":
  86176. /*!*******************************************************************!*\
  86177. !*** ./node_modules/rxjs/_esm2015/internal/operators/finalize.js ***!
  86178. \*******************************************************************/
  86179. /*! exports provided: finalize */
  86180. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  86181. "use strict";
  86182. __webpack_require__.r(__webpack_exports__);
  86183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "finalize", function() { return finalize; });
  86184. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  86185. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY");
  86186. function finalize(callback) {
  86187. return (source) => source.lift(new FinallyOperator(callback));
  86188. }
  86189. class FinallyOperator {
  86190. constructor(callback) {
  86191. this.callback = callback;
  86192. }
  86193. call(subscriber, source) {
  86194. return source.subscribe(new FinallySubscriber(subscriber, this.callback));
  86195. }
  86196. }
  86197. class FinallySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  86198. constructor(destination, callback) {
  86199. super(destination);
  86200. this.add(new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"](callback));
  86201. }
  86202. }
  86203. //# sourceMappingURL=finalize.js.map
  86204. /***/ }),
  86205. /***/ "ngJS":
  86206. /*!**********************************************************************!*\
  86207. !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToArray.js ***!
  86208. \**********************************************************************/
  86209. /*! exports provided: subscribeToArray */
  86210. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  86211. "use strict";
  86212. __webpack_require__.r(__webpack_exports__);
  86213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToArray", function() { return subscribeToArray; });
  86214. const subscribeToArray = (array) => (subscriber) => {
  86215. for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) {
  86216. subscriber.next(array[i]);
  86217. }
  86218. subscriber.complete();
  86219. };
  86220. //# sourceMappingURL=subscribeToArray.js.map
  86221. /***/ }),
  86222. /***/ "oB13":
  86223. /*!********************************************************************!*\
  86224. !*** ./node_modules/rxjs/_esm2015/internal/operators/multicast.js ***!
  86225. \********************************************************************/
  86226. /*! exports provided: multicast, MulticastOperator */
  86227. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  86228. "use strict";
  86229. __webpack_require__.r(__webpack_exports__);
  86230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "multicast", function() { return multicast; });
  86231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MulticastOperator", function() { return MulticastOperator; });
  86232. /* harmony import */ var _observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/ConnectableObservable */ "EQ5u");
  86233. function multicast(subjectOrSubjectFactory, selector) {
  86234. return function multicastOperatorFunction(source) {
  86235. let subjectFactory;
  86236. if (typeof subjectOrSubjectFactory === 'function') {
  86237. subjectFactory = subjectOrSubjectFactory;
  86238. }
  86239. else {
  86240. subjectFactory = function subjectFactory() {
  86241. return subjectOrSubjectFactory;
  86242. };
  86243. }
  86244. if (typeof selector === 'function') {
  86245. return source.lift(new MulticastOperator(subjectFactory, selector));
  86246. }
  86247. const connectable = Object.create(source, _observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_0__["connectableObservableDescriptor"]);
  86248. connectable.source = source;
  86249. connectable.subjectFactory = subjectFactory;
  86250. return connectable;
  86251. };
  86252. }
  86253. class MulticastOperator {
  86254. constructor(subjectFactory, selector) {
  86255. this.subjectFactory = subjectFactory;
  86256. this.selector = selector;
  86257. }
  86258. call(subscriber, source) {
  86259. const { selector } = this;
  86260. const subject = this.subjectFactory();
  86261. const subscription = selector(subject).subscribe(subscriber);
  86262. subscription.add(source.subscribe(subject));
  86263. return subscription;
  86264. }
  86265. }
  86266. //# sourceMappingURL=multicast.js.map
  86267. /***/ }),
  86268. /***/ "ofXK":
  86269. /*!**********************************************************************!*\
  86270. !*** ./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js ***!
  86271. \**********************************************************************/
  86272. /*! exports provided: APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DOCUMENT, DatePipe, DecimalPipe, FormStyle, FormatWidth, HashLocationStrategy, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, LOCATION_INITIALIZED, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NumberFormatStyle, NumberSymbol, PathLocationStrategy, PercentPipe, PlatformLocation, Plural, SlicePipe, TitleCasePipe, TranslationWidth, UpperCasePipe, VERSION, ViewportScroller, WeekDay, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, isPlatformWorkerApp, isPlatformWorkerUi, registerLocaleData, ɵBrowserPlatformLocation, ɵDomAdapter, ɵNullViewportScroller, ɵPLATFORM_BROWSER_ID, ɵPLATFORM_SERVER_ID, ɵPLATFORM_WORKER_APP_ID, ɵPLATFORM_WORKER_UI_ID, ɵangular_packages_common_common_a, ɵangular_packages_common_common_b, ɵangular_packages_common_common_c, ɵangular_packages_common_common_d, ɵangular_packages_common_common_e, ɵangular_packages_common_common_f, ɵgetDOM, ɵparseCookieValue, ɵsetRootDomAdapter */
  86273. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  86274. "use strict";
  86275. __webpack_require__.r(__webpack_exports__);
  86276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "APP_BASE_HREF", function() { return APP_BASE_HREF; });
  86277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncPipe", function() { return AsyncPipe; });
  86278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CommonModule", function() { return CommonModule; });
  86279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CurrencyPipe", function() { return CurrencyPipe; });
  86280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DOCUMENT", function() { return DOCUMENT; });
  86281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DatePipe", function() { return DatePipe; });
  86282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DecimalPipe", function() { return DecimalPipe; });
  86283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormStyle", function() { return FormStyle; });
  86284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FormatWidth", function() { return FormatWidth; });
  86285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HashLocationStrategy", function() { return HashLocationStrategy; });
  86286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I18nPluralPipe", function() { return I18nPluralPipe; });
  86287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "I18nSelectPipe", function() { return I18nSelectPipe; });
  86288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonPipe", function() { return JsonPipe; });
  86289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KeyValuePipe", function() { return KeyValuePipe; });
  86290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LOCATION_INITIALIZED", function() { return LOCATION_INITIALIZED; });
  86291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Location", function() { return Location; });
  86292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LocationStrategy", function() { return LocationStrategy; });
  86293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LowerCasePipe", function() { return LowerCasePipe; });
  86294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgClass", function() { return NgClass; });
  86295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgComponentOutlet", function() { return NgComponentOutlet; });
  86296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgForOf", function() { return NgForOf; });
  86297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgForOfContext", function() { return NgForOfContext; });
  86298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgIf", function() { return NgIf; });
  86299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgIfContext", function() { return NgIfContext; });
  86300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgLocaleLocalization", function() { return NgLocaleLocalization; });
  86301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgLocalization", function() { return NgLocalization; });
  86302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgPlural", function() { return NgPlural; });
  86303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgPluralCase", function() { return NgPluralCase; });
  86304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgStyle", function() { return NgStyle; });
  86305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgSwitch", function() { return NgSwitch; });
  86306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgSwitchCase", function() { return NgSwitchCase; });
  86307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgSwitchDefault", function() { return NgSwitchDefault; });
  86308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NgTemplateOutlet", function() { return NgTemplateOutlet; });
  86309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberFormatStyle", function() { return NumberFormatStyle; });
  86310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NumberSymbol", function() { return NumberSymbol; });
  86311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PathLocationStrategy", function() { return PathLocationStrategy; });
  86312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PercentPipe", function() { return PercentPipe; });
  86313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PlatformLocation", function() { return PlatformLocation; });
  86314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Plural", function() { return Plural; });
  86315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SlicePipe", function() { return SlicePipe; });
  86316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TitleCasePipe", function() { return TitleCasePipe; });
  86317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslationWidth", function() { return TranslationWidth; });
  86318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UpperCasePipe", function() { return UpperCasePipe; });
  86319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
  86320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewportScroller", function() { return ViewportScroller; });
  86321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WeekDay", function() { return WeekDay; });
  86322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatCurrency", function() { return formatCurrency; });
  86323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatDate", function() { return formatDate; });
  86324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatNumber", function() { return formatNumber; });
  86325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "formatPercent", function() { return formatPercent; });
  86326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getCurrencySymbol", function() { return getCurrencySymbol; });
  86327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleCurrencyCode", function() { return getLocaleCurrencyCode; });
  86328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleCurrencyName", function() { return getLocaleCurrencyName; });
  86329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleCurrencySymbol", function() { return getLocaleCurrencySymbol; });
  86330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleDateFormat", function() { return getLocaleDateFormat; });
  86331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleDateTimeFormat", function() { return getLocaleDateTimeFormat; });
  86332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleDayNames", function() { return getLocaleDayNames; });
  86333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleDayPeriods", function() { return getLocaleDayPeriods; });
  86334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleDirection", function() { return getLocaleDirection; });
  86335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleEraNames", function() { return getLocaleEraNames; });
  86336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleExtraDayPeriodRules", function() { return getLocaleExtraDayPeriodRules; });
  86337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleExtraDayPeriods", function() { return getLocaleExtraDayPeriods; });
  86338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleFirstDayOfWeek", function() { return getLocaleFirstDayOfWeek; });
  86339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleId", function() { return getLocaleId; });
  86340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleMonthNames", function() { return getLocaleMonthNames; });
  86341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleNumberFormat", function() { return getLocaleNumberFormat; });
  86342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleNumberSymbol", function() { return getLocaleNumberSymbol; });
  86343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocalePluralCase", function() { return getLocalePluralCase; });
  86344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleTimeFormat", function() { return getLocaleTimeFormat; });
  86345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getLocaleWeekEndRange", function() { return getLocaleWeekEndRange; });
  86346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getNumberOfCurrencyDigits", function() { return getNumberOfCurrencyDigits; });
  86347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPlatformBrowser", function() { return isPlatformBrowser; });
  86348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPlatformServer", function() { return isPlatformServer; });
  86349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPlatformWorkerApp", function() { return isPlatformWorkerApp; });
  86350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isPlatformWorkerUi", function() { return isPlatformWorkerUi; });
  86351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerLocaleData", function() { return registerLocaleData; });
  86352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵBrowserPlatformLocation", function() { return BrowserPlatformLocation; });
  86353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵDomAdapter", function() { return DomAdapter; });
  86354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNullViewportScroller", function() { return NullViewportScroller; });
  86355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵPLATFORM_BROWSER_ID", function() { return PLATFORM_BROWSER_ID; });
  86356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵPLATFORM_SERVER_ID", function() { return PLATFORM_SERVER_ID; });
  86357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵPLATFORM_WORKER_APP_ID", function() { return PLATFORM_WORKER_APP_ID; });
  86358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵPLATFORM_WORKER_UI_ID", function() { return PLATFORM_WORKER_UI_ID; });
  86359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_a", function() { return useBrowserPlatformLocation; });
  86360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_b", function() { return createBrowserPlatformLocation; });
  86361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_c", function() { return createLocation; });
  86362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_d", function() { return provideLocationStrategy; });
  86363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_e", function() { return COMMON_DIRECTIVES; });
  86364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_common_f", function() { return COMMON_PIPES; });
  86365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵgetDOM", function() { return getDOM; });
  86366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵparseCookieValue", function() { return parseCookieValue; });
  86367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsetRootDomAdapter", function() { return setRootDomAdapter; });
  86368. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  86369. /**
  86370. * @license Angular v11.0.4
  86371. * (c) 2010-2020 Google LLC. https://angular.io/
  86372. * License: MIT
  86373. */
  86374. /**
  86375. * @license
  86376. * Copyright Google LLC All Rights Reserved.
  86377. *
  86378. * Use of this source code is governed by an MIT-style license that can be
  86379. * found in the LICENSE file at https://angular.io/license
  86380. */
  86381. let _DOM = null;
  86382. function getDOM() {
  86383. return _DOM;
  86384. }
  86385. function setDOM(adapter) {
  86386. _DOM = adapter;
  86387. }
  86388. function setRootDomAdapter(adapter) {
  86389. if (!_DOM) {
  86390. _DOM = adapter;
  86391. }
  86392. }
  86393. /* tslint:disable:requireParameterType */
  86394. /**
  86395. * Provides DOM operations in an environment-agnostic way.
  86396. *
  86397. * @security Tread carefully! Interacting with the DOM directly is dangerous and
  86398. * can introduce XSS risks.
  86399. */
  86400. class DomAdapter {
  86401. }
  86402. /**
  86403. * @license
  86404. * Copyright Google LLC All Rights Reserved.
  86405. *
  86406. * Use of this source code is governed by an MIT-style license that can be
  86407. * found in the LICENSE file at https://angular.io/license
  86408. */
  86409. /**
  86410. * A DI Token representing the main rendering context. In a browser this is the DOM Document.
  86411. *
  86412. * Note: Document might not be available in the Application Context when Application and Rendering
  86413. * Contexts are not the same (e.g. when running the application in a Web Worker).
  86414. *
  86415. * @publicApi
  86416. */
  86417. const DOCUMENT = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('DocumentToken');
  86418. /**
  86419. * @license
  86420. * Copyright Google LLC All Rights Reserved.
  86421. *
  86422. * Use of this source code is governed by an MIT-style license that can be
  86423. * found in the LICENSE file at https://angular.io/license
  86424. */
  86425. /**
  86426. * This class should not be used directly by an application developer. Instead, use
  86427. * {@link Location}.
  86428. *
  86429. * `PlatformLocation` encapsulates all calls to DOM APIs, which allows the Router to be
  86430. * platform-agnostic.
  86431. * This means that we can have different implementation of `PlatformLocation` for the different
  86432. * platforms that Angular supports. For example, `@angular/platform-browser` provides an
  86433. * implementation specific to the browser environment, while `@angular/platform-server` provides
  86434. * one suitable for use with server-side rendering.
  86435. *
  86436. * The `PlatformLocation` class is used directly by all implementations of {@link LocationStrategy}
  86437. * when they need to interact with the DOM APIs like pushState, popState, etc.
  86438. *
  86439. * {@link LocationStrategy} in turn is used by the {@link Location} service which is used directly
  86440. * by the {@link Router} in order to navigate between routes. Since all interactions between {@link
  86441. * Router} /
  86442. * {@link Location} / {@link LocationStrategy} and DOM APIs flow through the `PlatformLocation`
  86443. * class, they are all platform-agnostic.
  86444. *
  86445. * @publicApi
  86446. */
  86447. class PlatformLocation {
  86448. }
  86449. PlatformLocation.ɵfac = function PlatformLocation_Factory(t) { return new (t || PlatformLocation)(); };
  86450. PlatformLocation.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: useBrowserPlatformLocation, token: PlatformLocation, providedIn: "platform" });
  86451. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PlatformLocation, [{
  86452. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  86453. args: [{
  86454. providedIn: 'platform',
  86455. // See #23917
  86456. useFactory: useBrowserPlatformLocation
  86457. }]
  86458. }], null, null); })();
  86459. function useBrowserPlatformLocation() {
  86460. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(BrowserPlatformLocation);
  86461. }
  86462. /**
  86463. * @description
  86464. * Indicates when a location is initialized.
  86465. *
  86466. * @publicApi
  86467. */
  86468. const LOCATION_INITIALIZED = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('Location Initialized');
  86469. /**
  86470. * `PlatformLocation` encapsulates all of the direct calls to platform APIs.
  86471. * This class should not be used directly by an application developer. Instead, use
  86472. * {@link Location}.
  86473. */
  86474. class BrowserPlatformLocation extends PlatformLocation {
  86475. constructor(_doc) {
  86476. super();
  86477. this._doc = _doc;
  86478. this._init();
  86479. }
  86480. // This is moved to its own method so that `MockPlatformLocationStrategy` can overwrite it
  86481. /** @internal */
  86482. _init() {
  86483. this.location = getDOM().getLocation();
  86484. this._history = getDOM().getHistory();
  86485. }
  86486. getBaseHrefFromDOM() {
  86487. return getDOM().getBaseHref(this._doc);
  86488. }
  86489. onPopState(fn) {
  86490. getDOM().getGlobalEventTarget(this._doc, 'window').addEventListener('popstate', fn, false);
  86491. }
  86492. onHashChange(fn) {
  86493. getDOM().getGlobalEventTarget(this._doc, 'window').addEventListener('hashchange', fn, false);
  86494. }
  86495. get href() {
  86496. return this.location.href;
  86497. }
  86498. get protocol() {
  86499. return this.location.protocol;
  86500. }
  86501. get hostname() {
  86502. return this.location.hostname;
  86503. }
  86504. get port() {
  86505. return this.location.port;
  86506. }
  86507. get pathname() {
  86508. return this.location.pathname;
  86509. }
  86510. get search() {
  86511. return this.location.search;
  86512. }
  86513. get hash() {
  86514. return this.location.hash;
  86515. }
  86516. set pathname(newPath) {
  86517. this.location.pathname = newPath;
  86518. }
  86519. pushState(state, title, url) {
  86520. if (supportsState()) {
  86521. this._history.pushState(state, title, url);
  86522. }
  86523. else {
  86524. this.location.hash = url;
  86525. }
  86526. }
  86527. replaceState(state, title, url) {
  86528. if (supportsState()) {
  86529. this._history.replaceState(state, title, url);
  86530. }
  86531. else {
  86532. this.location.hash = url;
  86533. }
  86534. }
  86535. forward() {
  86536. this._history.forward();
  86537. }
  86538. back() {
  86539. this._history.back();
  86540. }
  86541. getState() {
  86542. return this._history.state;
  86543. }
  86544. }
  86545. BrowserPlatformLocation.ɵfac = function BrowserPlatformLocation_Factory(t) { return new (t || BrowserPlatformLocation)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DOCUMENT)); };
  86546. BrowserPlatformLocation.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: createBrowserPlatformLocation, token: BrowserPlatformLocation, providedIn: "platform" });
  86547. BrowserPlatformLocation.ctorParameters = () => [
  86548. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [DOCUMENT,] }] }
  86549. ];
  86550. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserPlatformLocation, [{
  86551. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  86552. args: [{
  86553. providedIn: 'platform',
  86554. // See #23917
  86555. useFactory: createBrowserPlatformLocation
  86556. }]
  86557. }], function () { return [{ type: undefined, decorators: [{
  86558. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  86559. args: [DOCUMENT]
  86560. }] }]; }, null); })();
  86561. function supportsState() {
  86562. return !!window.history.pushState;
  86563. }
  86564. function createBrowserPlatformLocation() {
  86565. return new BrowserPlatformLocation(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DOCUMENT));
  86566. }
  86567. /**
  86568. * @license
  86569. * Copyright Google LLC All Rights Reserved.
  86570. *
  86571. * Use of this source code is governed by an MIT-style license that can be
  86572. * found in the LICENSE file at https://angular.io/license
  86573. */
  86574. /**
  86575. * @license
  86576. * Copyright Google LLC All Rights Reserved.
  86577. *
  86578. * Use of this source code is governed by an MIT-style license that can be
  86579. * found in the LICENSE file at https://angular.io/license
  86580. */
  86581. /**
  86582. * Joins two parts of a URL with a slash if needed.
  86583. *
  86584. * @param start URL string
  86585. * @param end URL string
  86586. *
  86587. *
  86588. * @returns The joined URL string.
  86589. */
  86590. function joinWithSlash(start, end) {
  86591. if (start.length == 0) {
  86592. return end;
  86593. }
  86594. if (end.length == 0) {
  86595. return start;
  86596. }
  86597. let slashes = 0;
  86598. if (start.endsWith('/')) {
  86599. slashes++;
  86600. }
  86601. if (end.startsWith('/')) {
  86602. slashes++;
  86603. }
  86604. if (slashes == 2) {
  86605. return start + end.substring(1);
  86606. }
  86607. if (slashes == 1) {
  86608. return start + end;
  86609. }
  86610. return start + '/' + end;
  86611. }
  86612. /**
  86613. * Removes a trailing slash from a URL string if needed.
  86614. * Looks for the first occurrence of either `#`, `?`, or the end of the
  86615. * line as `/` characters and removes the trailing slash if one exists.
  86616. *
  86617. * @param url URL string.
  86618. *
  86619. * @returns The URL string, modified if needed.
  86620. */
  86621. function stripTrailingSlash(url) {
  86622. const match = url.match(/#|\?|$/);
  86623. const pathEndIdx = match && match.index || url.length;
  86624. const droppedSlashIdx = pathEndIdx - (url[pathEndIdx - 1] === '/' ? 1 : 0);
  86625. return url.slice(0, droppedSlashIdx) + url.slice(pathEndIdx);
  86626. }
  86627. /**
  86628. * Normalizes URL parameters by prepending with `?` if needed.
  86629. *
  86630. * @param params String of URL parameters.
  86631. *
  86632. * @returns The normalized URL parameters string.
  86633. */
  86634. function normalizeQueryParams(params) {
  86635. return params && params[0] !== '?' ? '?' + params : params;
  86636. }
  86637. /**
  86638. * @license
  86639. * Copyright Google LLC All Rights Reserved.
  86640. *
  86641. * Use of this source code is governed by an MIT-style license that can be
  86642. * found in the LICENSE file at https://angular.io/license
  86643. */
  86644. /**
  86645. * Enables the `Location` service to read route state from the browser's URL.
  86646. * Angular provides two strategies:
  86647. * `HashLocationStrategy` and `PathLocationStrategy`.
  86648. *
  86649. * Applications should use the `Router` or `Location` services to
  86650. * interact with application route state.
  86651. *
  86652. * For instance, `HashLocationStrategy` produces URLs like
  86653. * <code class="no-auto-link">http://example.com#/foo</code>,
  86654. * and `PathLocationStrategy` produces
  86655. * <code class="no-auto-link">http://example.com/foo</code> as an equivalent URL.
  86656. *
  86657. * See these two classes for more.
  86658. *
  86659. * @publicApi
  86660. */
  86661. class LocationStrategy {
  86662. }
  86663. LocationStrategy.ɵfac = function LocationStrategy_Factory(t) { return new (t || LocationStrategy)(); };
  86664. LocationStrategy.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: provideLocationStrategy, token: LocationStrategy, providedIn: "root" });
  86665. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LocationStrategy, [{
  86666. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  86667. args: [{ providedIn: 'root', useFactory: provideLocationStrategy }]
  86668. }], null, null); })();
  86669. function provideLocationStrategy(platformLocation) {
  86670. // See #23917
  86671. const location = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DOCUMENT).location;
  86672. return new PathLocationStrategy(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(PlatformLocation), location && location.origin || '');
  86673. }
  86674. /**
  86675. * A predefined [DI token](guide/glossary#di-token) for the base href
  86676. * to be used with the `PathLocationStrategy`.
  86677. * The base href is the URL prefix that should be preserved when generating
  86678. * and recognizing URLs.
  86679. *
  86680. * @usageNotes
  86681. *
  86682. * The following example shows how to use this token to configure the root app injector
  86683. * with a base href value, so that the DI framework can supply the dependency anywhere in the app.
  86684. *
  86685. * ```typescript
  86686. * import {Component, NgModule} from '@angular/core';
  86687. * import {APP_BASE_HREF} from '@angular/common';
  86688. *
  86689. * @NgModule({
  86690. * providers: [{provide: APP_BASE_HREF, useValue: '/my/app'}]
  86691. * })
  86692. * class AppModule {}
  86693. * ```
  86694. *
  86695. * @publicApi
  86696. */
  86697. const APP_BASE_HREF = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('appBaseHref');
  86698. /**
  86699. * @description
  86700. * A {@link LocationStrategy} used to configure the {@link Location} service to
  86701. * represent its state in the
  86702. * [path](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax) of the
  86703. * browser's URL.
  86704. *
  86705. * If you're using `PathLocationStrategy`, you must provide a {@link APP_BASE_HREF}
  86706. * or add a `<base href>` element to the document.
  86707. *
  86708. * For instance, if you provide an `APP_BASE_HREF` of `'/my/app/'` and call
  86709. * `location.go('/foo')`, the browser's URL will become
  86710. * `example.com/my/app/foo`. To ensure all relative URIs resolve correctly,
  86711. * the `<base href>` and/or `APP_BASE_HREF` should end with a `/`.
  86712. *
  86713. * Similarly, if you add `<base href='/my/app/'/>` to the document and call
  86714. * `location.go('/foo')`, the browser's URL will become
  86715. * `example.com/my/app/foo`.
  86716. *
  86717. * Note that when using `PathLocationStrategy`, neither the query nor
  86718. * the fragment in the `<base href>` will be preserved, as outlined
  86719. * by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).
  86720. *
  86721. * @usageNotes
  86722. *
  86723. * ### Example
  86724. *
  86725. * {@example common/location/ts/path_location_component.ts region='LocationComponent'}
  86726. *
  86727. * @publicApi
  86728. */
  86729. class PathLocationStrategy extends LocationStrategy {
  86730. constructor(_platformLocation, href) {
  86731. super();
  86732. this._platformLocation = _platformLocation;
  86733. if (href == null) {
  86734. href = this._platformLocation.getBaseHrefFromDOM();
  86735. }
  86736. if (href == null) {
  86737. throw new Error(`No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.`);
  86738. }
  86739. this._baseHref = href;
  86740. }
  86741. onPopState(fn) {
  86742. this._platformLocation.onPopState(fn);
  86743. this._platformLocation.onHashChange(fn);
  86744. }
  86745. getBaseHref() {
  86746. return this._baseHref;
  86747. }
  86748. prepareExternalUrl(internal) {
  86749. return joinWithSlash(this._baseHref, internal);
  86750. }
  86751. path(includeHash = false) {
  86752. const pathname = this._platformLocation.pathname + normalizeQueryParams(this._platformLocation.search);
  86753. const hash = this._platformLocation.hash;
  86754. return hash && includeHash ? `${pathname}${hash}` : pathname;
  86755. }
  86756. pushState(state, title, url, queryParams) {
  86757. const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));
  86758. this._platformLocation.pushState(state, title, externalUrl);
  86759. }
  86760. replaceState(state, title, url, queryParams) {
  86761. const externalUrl = this.prepareExternalUrl(url + normalizeQueryParams(queryParams));
  86762. this._platformLocation.replaceState(state, title, externalUrl);
  86763. }
  86764. forward() {
  86765. this._platformLocation.forward();
  86766. }
  86767. back() {
  86768. this._platformLocation.back();
  86769. }
  86770. }
  86771. PathLocationStrategy.ɵfac = function PathLocationStrategy_Factory(t) { return new (t || PathLocationStrategy)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PlatformLocation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](APP_BASE_HREF, 8)); };
  86772. PathLocationStrategy.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: PathLocationStrategy, factory: PathLocationStrategy.ɵfac });
  86773. PathLocationStrategy.ctorParameters = () => [
  86774. { type: PlatformLocation },
  86775. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [APP_BASE_HREF,] }] }
  86776. ];
  86777. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PathLocationStrategy, [{
  86778. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  86779. }], function () { return [{ type: PlatformLocation }, { type: String, decorators: [{
  86780. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  86781. }, {
  86782. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  86783. args: [APP_BASE_HREF]
  86784. }] }]; }, null); })();
  86785. /**
  86786. * @license
  86787. * Copyright Google LLC All Rights Reserved.
  86788. *
  86789. * Use of this source code is governed by an MIT-style license that can be
  86790. * found in the LICENSE file at https://angular.io/license
  86791. */
  86792. /**
  86793. * @description
  86794. * A {@link LocationStrategy} used to configure the {@link Location} service to
  86795. * represent its state in the
  86796. * [hash fragment](https://en.wikipedia.org/wiki/Uniform_Resource_Locator#Syntax)
  86797. * of the browser's URL.
  86798. *
  86799. * For instance, if you call `location.go('/foo')`, the browser's URL will become
  86800. * `example.com#/foo`.
  86801. *
  86802. * @usageNotes
  86803. *
  86804. * ### Example
  86805. *
  86806. * {@example common/location/ts/hash_location_component.ts region='LocationComponent'}
  86807. *
  86808. * @publicApi
  86809. */
  86810. class HashLocationStrategy extends LocationStrategy {
  86811. constructor(_platformLocation, _baseHref) {
  86812. super();
  86813. this._platformLocation = _platformLocation;
  86814. this._baseHref = '';
  86815. if (_baseHref != null) {
  86816. this._baseHref = _baseHref;
  86817. }
  86818. }
  86819. onPopState(fn) {
  86820. this._platformLocation.onPopState(fn);
  86821. this._platformLocation.onHashChange(fn);
  86822. }
  86823. getBaseHref() {
  86824. return this._baseHref;
  86825. }
  86826. path(includeHash = false) {
  86827. // the hash value is always prefixed with a `#`
  86828. // and if it is empty then it will stay empty
  86829. let path = this._platformLocation.hash;
  86830. if (path == null)
  86831. path = '#';
  86832. return path.length > 0 ? path.substring(1) : path;
  86833. }
  86834. prepareExternalUrl(internal) {
  86835. const url = joinWithSlash(this._baseHref, internal);
  86836. return url.length > 0 ? ('#' + url) : url;
  86837. }
  86838. pushState(state, title, path, queryParams) {
  86839. let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));
  86840. if (url.length == 0) {
  86841. url = this._platformLocation.pathname;
  86842. }
  86843. this._platformLocation.pushState(state, title, url);
  86844. }
  86845. replaceState(state, title, path, queryParams) {
  86846. let url = this.prepareExternalUrl(path + normalizeQueryParams(queryParams));
  86847. if (url.length == 0) {
  86848. url = this._platformLocation.pathname;
  86849. }
  86850. this._platformLocation.replaceState(state, title, url);
  86851. }
  86852. forward() {
  86853. this._platformLocation.forward();
  86854. }
  86855. back() {
  86856. this._platformLocation.back();
  86857. }
  86858. }
  86859. HashLocationStrategy.ɵfac = function HashLocationStrategy_Factory(t) { return new (t || HashLocationStrategy)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PlatformLocation), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](APP_BASE_HREF, 8)); };
  86860. HashLocationStrategy.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: HashLocationStrategy, factory: HashLocationStrategy.ɵfac });
  86861. HashLocationStrategy.ctorParameters = () => [
  86862. { type: PlatformLocation },
  86863. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [APP_BASE_HREF,] }] }
  86864. ];
  86865. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HashLocationStrategy, [{
  86866. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  86867. }], function () { return [{ type: PlatformLocation }, { type: String, decorators: [{
  86868. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"]
  86869. }, {
  86870. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  86871. args: [APP_BASE_HREF]
  86872. }] }]; }, null); })();
  86873. /**
  86874. * @license
  86875. * Copyright Google LLC All Rights Reserved.
  86876. *
  86877. * Use of this source code is governed by an MIT-style license that can be
  86878. * found in the LICENSE file at https://angular.io/license
  86879. */
  86880. /**
  86881. * @description
  86882. *
  86883. * A service that applications can use to interact with a browser's URL.
  86884. *
  86885. * Depending on the `LocationStrategy` used, `Location` persists
  86886. * to the URL's path or the URL's hash segment.
  86887. *
  86888. * @usageNotes
  86889. *
  86890. * It's better to use the `Router#navigate` service to trigger route changes. Use
  86891. * `Location` only if you need to interact with or create normalized URLs outside of
  86892. * routing.
  86893. *
  86894. * `Location` is responsible for normalizing the URL against the application's base href.
  86895. * A normalized URL is absolute from the URL host, includes the application's base href, and has no
  86896. * trailing slash:
  86897. * - `/my/app/user/123` is normalized
  86898. * - `my/app/user/123` **is not** normalized
  86899. * - `/my/app/user/123/` **is not** normalized
  86900. *
  86901. * ### Example
  86902. *
  86903. * <code-example path='common/location/ts/path_location_component.ts'
  86904. * region='LocationComponent'></code-example>
  86905. *
  86906. * @publicApi
  86907. */
  86908. class Location {
  86909. constructor(platformStrategy, platformLocation) {
  86910. /** @internal */
  86911. this._subject = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  86912. /** @internal */
  86913. this._urlChangeListeners = [];
  86914. this._platformStrategy = platformStrategy;
  86915. const browserBaseHref = this._platformStrategy.getBaseHref();
  86916. this._platformLocation = platformLocation;
  86917. this._baseHref = stripTrailingSlash(_stripIndexHtml(browserBaseHref));
  86918. this._platformStrategy.onPopState((ev) => {
  86919. this._subject.emit({
  86920. 'url': this.path(true),
  86921. 'pop': true,
  86922. 'state': ev.state,
  86923. 'type': ev.type,
  86924. });
  86925. });
  86926. }
  86927. /**
  86928. * Normalizes the URL path for this location.
  86929. *
  86930. * @param includeHash True to include an anchor fragment in the path.
  86931. *
  86932. * @returns The normalized URL path.
  86933. */
  86934. // TODO: vsavkin. Remove the boolean flag and always include hash once the deprecated router is
  86935. // removed.
  86936. path(includeHash = false) {
  86937. return this.normalize(this._platformStrategy.path(includeHash));
  86938. }
  86939. /**
  86940. * Reports the current state of the location history.
  86941. * @returns The current value of the `history.state` object.
  86942. */
  86943. getState() {
  86944. return this._platformLocation.getState();
  86945. }
  86946. /**
  86947. * Normalizes the given path and compares to the current normalized path.
  86948. *
  86949. * @param path The given URL path.
  86950. * @param query Query parameters.
  86951. *
  86952. * @returns True if the given URL path is equal to the current normalized path, false
  86953. * otherwise.
  86954. */
  86955. isCurrentPathEqualTo(path, query = '') {
  86956. return this.path() == this.normalize(path + normalizeQueryParams(query));
  86957. }
  86958. /**
  86959. * Normalizes a URL path by stripping any trailing slashes.
  86960. *
  86961. * @param url String representing a URL.
  86962. *
  86963. * @returns The normalized URL string.
  86964. */
  86965. normalize(url) {
  86966. return Location.stripTrailingSlash(_stripBaseHref(this._baseHref, _stripIndexHtml(url)));
  86967. }
  86968. /**
  86969. * Normalizes an external URL path.
  86970. * If the given URL doesn't begin with a leading slash (`'/'`), adds one
  86971. * before normalizing. Adds a hash if `HashLocationStrategy` is
  86972. * in use, or the `APP_BASE_HREF` if the `PathLocationStrategy` is in use.
  86973. *
  86974. * @param url String representing a URL.
  86975. *
  86976. * @returns A normalized platform-specific URL.
  86977. */
  86978. prepareExternalUrl(url) {
  86979. if (url && url[0] !== '/') {
  86980. url = '/' + url;
  86981. }
  86982. return this._platformStrategy.prepareExternalUrl(url);
  86983. }
  86984. // TODO: rename this method to pushState
  86985. /**
  86986. * Changes the browser's URL to a normalized version of a given URL, and pushes a
  86987. * new item onto the platform's history.
  86988. *
  86989. * @param path URL path to normalize.
  86990. * @param query Query parameters.
  86991. * @param state Location history state.
  86992. *
  86993. */
  86994. go(path, query = '', state = null) {
  86995. this._platformStrategy.pushState(state, '', path, query);
  86996. this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
  86997. }
  86998. /**
  86999. * Changes the browser's URL to a normalized version of the given URL, and replaces
  87000. * the top item on the platform's history stack.
  87001. *
  87002. * @param path URL path to normalize.
  87003. * @param query Query parameters.
  87004. * @param state Location history state.
  87005. */
  87006. replaceState(path, query = '', state = null) {
  87007. this._platformStrategy.replaceState(state, '', path, query);
  87008. this._notifyUrlChangeListeners(this.prepareExternalUrl(path + normalizeQueryParams(query)), state);
  87009. }
  87010. /**
  87011. * Navigates forward in the platform's history.
  87012. */
  87013. forward() {
  87014. this._platformStrategy.forward();
  87015. }
  87016. /**
  87017. * Navigates back in the platform's history.
  87018. */
  87019. back() {
  87020. this._platformStrategy.back();
  87021. }
  87022. /**
  87023. * Registers a URL change listener. Use to catch updates performed by the Angular
  87024. * framework that are not detectible through "popstate" or "hashchange" events.
  87025. *
  87026. * @param fn The change handler function, which take a URL and a location history state.
  87027. */
  87028. onUrlChange(fn) {
  87029. this._urlChangeListeners.push(fn);
  87030. if (!this._urlChangeSubscription) {
  87031. this._urlChangeSubscription = this.subscribe(v => {
  87032. this._notifyUrlChangeListeners(v.url, v.state);
  87033. });
  87034. }
  87035. }
  87036. /** @internal */
  87037. _notifyUrlChangeListeners(url = '', state) {
  87038. this._urlChangeListeners.forEach(fn => fn(url, state));
  87039. }
  87040. /**
  87041. * Subscribes to the platform's `popState` events.
  87042. *
  87043. * @param value Event that is triggered when the state history changes.
  87044. * @param exception The exception to throw.
  87045. *
  87046. * @returns Subscribed events.
  87047. */
  87048. subscribe(onNext, onThrow, onReturn) {
  87049. return this._subject.subscribe({ next: onNext, error: onThrow, complete: onReturn });
  87050. }
  87051. }
  87052. Location.ɵfac = function Location_Factory(t) { return new (t || Location)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](LocationStrategy), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](PlatformLocation)); };
  87053. /**
  87054. * Normalizes URL parameters by prepending with `?` if needed.
  87055. *
  87056. * @param params String of URL parameters.
  87057. *
  87058. * @returns The normalized URL parameters string.
  87059. */
  87060. Location.normalizeQueryParams = normalizeQueryParams;
  87061. /**
  87062. * Joins two parts of a URL with a slash if needed.
  87063. *
  87064. * @param start URL string
  87065. * @param end URL string
  87066. *
  87067. *
  87068. * @returns The joined URL string.
  87069. */
  87070. Location.joinWithSlash = joinWithSlash;
  87071. /**
  87072. * Removes a trailing slash from a URL string if needed.
  87073. * Looks for the first occurrence of either `#`, `?`, or the end of the
  87074. * line as `/` characters and removes the trailing slash if one exists.
  87075. *
  87076. * @param url URL string.
  87077. *
  87078. * @returns The URL string, modified if needed.
  87079. */
  87080. Location.stripTrailingSlash = stripTrailingSlash;
  87081. Location.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({ factory: createLocation, token: Location, providedIn: "root" });
  87082. Location.ctorParameters = () => [
  87083. { type: LocationStrategy },
  87084. { type: PlatformLocation }
  87085. ];
  87086. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Location, [{
  87087. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"],
  87088. args: [{
  87089. providedIn: 'root',
  87090. // See #23917
  87091. useFactory: createLocation
  87092. }]
  87093. }], function () { return [{ type: LocationStrategy }, { type: PlatformLocation }]; }, null); })();
  87094. function createLocation() {
  87095. return new Location(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(LocationStrategy), Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(PlatformLocation));
  87096. }
  87097. function _stripBaseHref(baseHref, url) {
  87098. return baseHref && url.startsWith(baseHref) ? url.substring(baseHref.length) : url;
  87099. }
  87100. function _stripIndexHtml(url) {
  87101. return url.replace(/\/index.html$/, '');
  87102. }
  87103. /**
  87104. * @license
  87105. * Copyright Google LLC All Rights Reserved.
  87106. *
  87107. * Use of this source code is governed by an MIT-style license that can be
  87108. * found in the LICENSE file at https://angular.io/license
  87109. */
  87110. /**
  87111. * @license
  87112. * Copyright Google LLC All Rights Reserved.
  87113. *
  87114. * Use of this source code is governed by an MIT-style license that can be
  87115. * found in the LICENSE file at https://angular.io/license
  87116. */
  87117. /** @internal */
  87118. const CURRENCIES_EN = {
  87119. 'ADP': [undefined, undefined, 0],
  87120. 'AFN': [undefined, undefined, 0],
  87121. 'ALL': [undefined, undefined, 0],
  87122. 'AMD': [undefined, undefined, 2],
  87123. 'AOA': [undefined, 'Kz'],
  87124. 'ARS': [undefined, '$'],
  87125. 'AUD': ['A$', '$'],
  87126. 'BAM': [undefined, 'KM'],
  87127. 'BBD': [undefined, '$'],
  87128. 'BDT': [undefined, '৳'],
  87129. 'BHD': [undefined, undefined, 3],
  87130. 'BIF': [undefined, undefined, 0],
  87131. 'BMD': [undefined, '$'],
  87132. 'BND': [undefined, '$'],
  87133. 'BOB': [undefined, 'Bs'],
  87134. 'BRL': ['R$'],
  87135. 'BSD': [undefined, '$'],
  87136. 'BWP': [undefined, 'P'],
  87137. 'BYN': [undefined, 'р.', 2],
  87138. 'BYR': [undefined, undefined, 0],
  87139. 'BZD': [undefined, '$'],
  87140. 'CAD': ['CA$', '$', 2],
  87141. 'CHF': [undefined, undefined, 2],
  87142. 'CLF': [undefined, undefined, 4],
  87143. 'CLP': [undefined, '$', 0],
  87144. 'CNY': ['CN¥', '¥'],
  87145. 'COP': [undefined, '$', 2],
  87146. 'CRC': [undefined, '₡', 2],
  87147. 'CUC': [undefined, '$'],
  87148. 'CUP': [undefined, '$'],
  87149. 'CZK': [undefined, 'Kč', 2],
  87150. 'DJF': [undefined, undefined, 0],
  87151. 'DKK': [undefined, 'kr', 2],
  87152. 'DOP': [undefined, '$'],
  87153. 'EGP': [undefined, 'E£'],
  87154. 'ESP': [undefined, '₧', 0],
  87155. 'EUR': ['€'],
  87156. 'FJD': [undefined, '$'],
  87157. 'FKP': [undefined, '£'],
  87158. 'GBP': ['£'],
  87159. 'GEL': [undefined, '₾'],
  87160. 'GIP': [undefined, '£'],
  87161. 'GNF': [undefined, 'FG', 0],
  87162. 'GTQ': [undefined, 'Q'],
  87163. 'GYD': [undefined, '$', 2],
  87164. 'HKD': ['HK$', '$'],
  87165. 'HNL': [undefined, 'L'],
  87166. 'HRK': [undefined, 'kn'],
  87167. 'HUF': [undefined, 'Ft', 2],
  87168. 'IDR': [undefined, 'Rp', 2],
  87169. 'ILS': ['₪'],
  87170. 'INR': ['₹'],
  87171. 'IQD': [undefined, undefined, 0],
  87172. 'IRR': [undefined, undefined, 0],
  87173. 'ISK': [undefined, 'kr', 0],
  87174. 'ITL': [undefined, undefined, 0],
  87175. 'JMD': [undefined, '$'],
  87176. 'JOD': [undefined, undefined, 3],
  87177. 'JPY': ['¥', undefined, 0],
  87178. 'KHR': [undefined, '៛'],
  87179. 'KMF': [undefined, 'CF', 0],
  87180. 'KPW': [undefined, '₩', 0],
  87181. 'KRW': ['₩', undefined, 0],
  87182. 'KWD': [undefined, undefined, 3],
  87183. 'KYD': [undefined, '$'],
  87184. 'KZT': [undefined, '₸'],
  87185. 'LAK': [undefined, '₭', 0],
  87186. 'LBP': [undefined, 'L£', 0],
  87187. 'LKR': [undefined, 'Rs'],
  87188. 'LRD': [undefined, '$'],
  87189. 'LTL': [undefined, 'Lt'],
  87190. 'LUF': [undefined, undefined, 0],
  87191. 'LVL': [undefined, 'Ls'],
  87192. 'LYD': [undefined, undefined, 3],
  87193. 'MGA': [undefined, 'Ar', 0],
  87194. 'MGF': [undefined, undefined, 0],
  87195. 'MMK': [undefined, 'K', 0],
  87196. 'MNT': [undefined, '₮', 2],
  87197. 'MRO': [undefined, undefined, 0],
  87198. 'MUR': [undefined, 'Rs', 2],
  87199. 'MXN': ['MX$', '$'],
  87200. 'MYR': [undefined, 'RM'],
  87201. 'NAD': [undefined, '$'],
  87202. 'NGN': [undefined, '₦'],
  87203. 'NIO': [undefined, 'C$'],
  87204. 'NOK': [undefined, 'kr', 2],
  87205. 'NPR': [undefined, 'Rs'],
  87206. 'NZD': ['NZ$', '$'],
  87207. 'OMR': [undefined, undefined, 3],
  87208. 'PHP': [undefined, '₱'],
  87209. 'PKR': [undefined, 'Rs', 2],
  87210. 'PLN': [undefined, 'zł'],
  87211. 'PYG': [undefined, '₲', 0],
  87212. 'RON': [undefined, 'lei'],
  87213. 'RSD': [undefined, undefined, 0],
  87214. 'RUB': [undefined, '₽'],
  87215. 'RUR': [undefined, 'р.'],
  87216. 'RWF': [undefined, 'RF', 0],
  87217. 'SBD': [undefined, '$'],
  87218. 'SEK': [undefined, 'kr', 2],
  87219. 'SGD': [undefined, '$'],
  87220. 'SHP': [undefined, '£'],
  87221. 'SLL': [undefined, undefined, 0],
  87222. 'SOS': [undefined, undefined, 0],
  87223. 'SRD': [undefined, '$'],
  87224. 'SSP': [undefined, '£'],
  87225. 'STD': [undefined, undefined, 0],
  87226. 'STN': [undefined, 'Db'],
  87227. 'SYP': [undefined, '£', 0],
  87228. 'THB': [undefined, '฿'],
  87229. 'TMM': [undefined, undefined, 0],
  87230. 'TND': [undefined, undefined, 3],
  87231. 'TOP': [undefined, 'T$'],
  87232. 'TRL': [undefined, undefined, 0],
  87233. 'TRY': [undefined, '₺'],
  87234. 'TTD': [undefined, '$'],
  87235. 'TWD': ['NT$', '$', 2],
  87236. 'TZS': [undefined, undefined, 2],
  87237. 'UAH': [undefined, '₴'],
  87238. 'UGX': [undefined, undefined, 0],
  87239. 'USD': ['$'],
  87240. 'UYI': [undefined, undefined, 0],
  87241. 'UYU': [undefined, '$'],
  87242. 'UYW': [undefined, undefined, 4],
  87243. 'UZS': [undefined, undefined, 2],
  87244. 'VEF': [undefined, 'Bs', 2],
  87245. 'VND': ['₫', undefined, 0],
  87246. 'VUV': [undefined, undefined, 0],
  87247. 'XAF': ['FCFA', undefined, 0],
  87248. 'XCD': ['EC$', '$'],
  87249. 'XOF': ['CFA', undefined, 0],
  87250. 'XPF': ['CFPF', undefined, 0],
  87251. 'XXX': ['¤'],
  87252. 'YER': [undefined, undefined, 0],
  87253. 'ZAR': [undefined, 'R'],
  87254. 'ZMK': [undefined, undefined, 0],
  87255. 'ZMW': [undefined, 'ZK'],
  87256. 'ZWD': [undefined, undefined, 0]
  87257. };
  87258. /**
  87259. * @license
  87260. * Copyright Google LLC All Rights Reserved.
  87261. *
  87262. * Use of this source code is governed by an MIT-style license that can be
  87263. * found in the LICENSE file at https://angular.io/license
  87264. */
  87265. /**
  87266. * Format styles that can be used to represent numbers.
  87267. * @see `getLocaleNumberFormat()`.
  87268. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87269. *
  87270. * @publicApi
  87271. */
  87272. var NumberFormatStyle;
  87273. (function (NumberFormatStyle) {
  87274. NumberFormatStyle[NumberFormatStyle["Decimal"] = 0] = "Decimal";
  87275. NumberFormatStyle[NumberFormatStyle["Percent"] = 1] = "Percent";
  87276. NumberFormatStyle[NumberFormatStyle["Currency"] = 2] = "Currency";
  87277. NumberFormatStyle[NumberFormatStyle["Scientific"] = 3] = "Scientific";
  87278. })(NumberFormatStyle || (NumberFormatStyle = {}));
  87279. /**
  87280. * Plurality cases used for translating plurals to different languages.
  87281. *
  87282. * @see `NgPlural`
  87283. * @see `NgPluralCase`
  87284. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87285. *
  87286. * @publicApi
  87287. */
  87288. var Plural;
  87289. (function (Plural) {
  87290. Plural[Plural["Zero"] = 0] = "Zero";
  87291. Plural[Plural["One"] = 1] = "One";
  87292. Plural[Plural["Two"] = 2] = "Two";
  87293. Plural[Plural["Few"] = 3] = "Few";
  87294. Plural[Plural["Many"] = 4] = "Many";
  87295. Plural[Plural["Other"] = 5] = "Other";
  87296. })(Plural || (Plural = {}));
  87297. /**
  87298. * Context-dependant translation forms for strings.
  87299. * Typically the standalone version is for the nominative form of the word,
  87300. * and the format version is used for the genitive case.
  87301. * @see [CLDR website](http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles)
  87302. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87303. *
  87304. * @publicApi
  87305. */
  87306. var FormStyle;
  87307. (function (FormStyle) {
  87308. FormStyle[FormStyle["Format"] = 0] = "Format";
  87309. FormStyle[FormStyle["Standalone"] = 1] = "Standalone";
  87310. })(FormStyle || (FormStyle = {}));
  87311. /**
  87312. * String widths available for translations.
  87313. * The specific character widths are locale-specific.
  87314. * Examples are given for the word "Sunday" in English.
  87315. *
  87316. * @publicApi
  87317. */
  87318. var TranslationWidth;
  87319. (function (TranslationWidth) {
  87320. /** 1 character for `en-US`. For example: 'S' */
  87321. TranslationWidth[TranslationWidth["Narrow"] = 0] = "Narrow";
  87322. /** 3 characters for `en-US`. For example: 'Sun' */
  87323. TranslationWidth[TranslationWidth["Abbreviated"] = 1] = "Abbreviated";
  87324. /** Full length for `en-US`. For example: "Sunday" */
  87325. TranslationWidth[TranslationWidth["Wide"] = 2] = "Wide";
  87326. /** 2 characters for `en-US`, For example: "Su" */
  87327. TranslationWidth[TranslationWidth["Short"] = 3] = "Short";
  87328. })(TranslationWidth || (TranslationWidth = {}));
  87329. /**
  87330. * String widths available for date-time formats.
  87331. * The specific character widths are locale-specific.
  87332. * Examples are given for `en-US`.
  87333. *
  87334. * @see `getLocaleDateFormat()`
  87335. * @see `getLocaleTimeFormat()``
  87336. * @see `getLocaleDateTimeFormat()`
  87337. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87338. * @publicApi
  87339. */
  87340. var FormatWidth;
  87341. (function (FormatWidth) {
  87342. /**
  87343. * For `en-US`, 'M/d/yy, h:mm a'`
  87344. * (Example: `6/15/15, 9:03 AM`)
  87345. */
  87346. FormatWidth[FormatWidth["Short"] = 0] = "Short";
  87347. /**
  87348. * For `en-US`, `'MMM d, y, h:mm:ss a'`
  87349. * (Example: `Jun 15, 2015, 9:03:01 AM`)
  87350. */
  87351. FormatWidth[FormatWidth["Medium"] = 1] = "Medium";
  87352. /**
  87353. * For `en-US`, `'MMMM d, y, h:mm:ss a z'`
  87354. * (Example: `June 15, 2015 at 9:03:01 AM GMT+1`)
  87355. */
  87356. FormatWidth[FormatWidth["Long"] = 2] = "Long";
  87357. /**
  87358. * For `en-US`, `'EEEE, MMMM d, y, h:mm:ss a zzzz'`
  87359. * (Example: `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00`)
  87360. */
  87361. FormatWidth[FormatWidth["Full"] = 3] = "Full";
  87362. })(FormatWidth || (FormatWidth = {}));
  87363. /**
  87364. * Symbols that can be used to replace placeholders in number patterns.
  87365. * Examples are based on `en-US` values.
  87366. *
  87367. * @see `getLocaleNumberSymbol()`
  87368. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87369. *
  87370. * @publicApi
  87371. */
  87372. var NumberSymbol;
  87373. (function (NumberSymbol) {
  87374. /**
  87375. * Decimal separator.
  87376. * For `en-US`, the dot character.
  87377. * Example : 2,345`.`67
  87378. */
  87379. NumberSymbol[NumberSymbol["Decimal"] = 0] = "Decimal";
  87380. /**
  87381. * Grouping separator, typically for thousands.
  87382. * For `en-US`, the comma character.
  87383. * Example: 2`,`345.67
  87384. */
  87385. NumberSymbol[NumberSymbol["Group"] = 1] = "Group";
  87386. /**
  87387. * List-item separator.
  87388. * Example: "one, two, and three"
  87389. */
  87390. NumberSymbol[NumberSymbol["List"] = 2] = "List";
  87391. /**
  87392. * Sign for percentage (out of 100).
  87393. * Example: 23.4%
  87394. */
  87395. NumberSymbol[NumberSymbol["PercentSign"] = 3] = "PercentSign";
  87396. /**
  87397. * Sign for positive numbers.
  87398. * Example: +23
  87399. */
  87400. NumberSymbol[NumberSymbol["PlusSign"] = 4] = "PlusSign";
  87401. /**
  87402. * Sign for negative numbers.
  87403. * Example: -23
  87404. */
  87405. NumberSymbol[NumberSymbol["MinusSign"] = 5] = "MinusSign";
  87406. /**
  87407. * Computer notation for exponential value (n times a power of 10).
  87408. * Example: 1.2E3
  87409. */
  87410. NumberSymbol[NumberSymbol["Exponential"] = 6] = "Exponential";
  87411. /**
  87412. * Human-readable format of exponential.
  87413. * Example: 1.2x103
  87414. */
  87415. NumberSymbol[NumberSymbol["SuperscriptingExponent"] = 7] = "SuperscriptingExponent";
  87416. /**
  87417. * Sign for permille (out of 1000).
  87418. * Example: 23.4‰
  87419. */
  87420. NumberSymbol[NumberSymbol["PerMille"] = 8] = "PerMille";
  87421. /**
  87422. * Infinity, can be used with plus and minus.
  87423. * Example: ∞, +∞, -∞
  87424. */
  87425. NumberSymbol[NumberSymbol["Infinity"] = 9] = "Infinity";
  87426. /**
  87427. * Not a number.
  87428. * Example: NaN
  87429. */
  87430. NumberSymbol[NumberSymbol["NaN"] = 10] = "NaN";
  87431. /**
  87432. * Symbol used between time units.
  87433. * Example: 10:52
  87434. */
  87435. NumberSymbol[NumberSymbol["TimeSeparator"] = 11] = "TimeSeparator";
  87436. /**
  87437. * Decimal separator for currency values (fallback to `Decimal`).
  87438. * Example: $2,345.67
  87439. */
  87440. NumberSymbol[NumberSymbol["CurrencyDecimal"] = 12] = "CurrencyDecimal";
  87441. /**
  87442. * Group separator for currency values (fallback to `Group`).
  87443. * Example: $2,345.67
  87444. */
  87445. NumberSymbol[NumberSymbol["CurrencyGroup"] = 13] = "CurrencyGroup";
  87446. })(NumberSymbol || (NumberSymbol = {}));
  87447. /**
  87448. * The value for each day of the week, based on the `en-US` locale
  87449. *
  87450. * @publicApi
  87451. */
  87452. var WeekDay;
  87453. (function (WeekDay) {
  87454. WeekDay[WeekDay["Sunday"] = 0] = "Sunday";
  87455. WeekDay[WeekDay["Monday"] = 1] = "Monday";
  87456. WeekDay[WeekDay["Tuesday"] = 2] = "Tuesday";
  87457. WeekDay[WeekDay["Wednesday"] = 3] = "Wednesday";
  87458. WeekDay[WeekDay["Thursday"] = 4] = "Thursday";
  87459. WeekDay[WeekDay["Friday"] = 5] = "Friday";
  87460. WeekDay[WeekDay["Saturday"] = 6] = "Saturday";
  87461. })(WeekDay || (WeekDay = {}));
  87462. /**
  87463. * Retrieves the locale ID from the currently loaded locale.
  87464. * The loaded locale could be, for example, a global one rather than a regional one.
  87465. * @param locale A locale code, such as `fr-FR`.
  87466. * @returns The locale code. For example, `fr`.
  87467. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87468. *
  87469. * @publicApi
  87470. */
  87471. function getLocaleId(locale) {
  87472. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale)[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].LocaleId];
  87473. }
  87474. /**
  87475. * Retrieves day period strings for the given locale.
  87476. *
  87477. * @param locale A locale code for the locale format rules to use.
  87478. * @param formStyle The required grammatical form.
  87479. * @param width The required character width.
  87480. * @returns An array of localized period strings. For example, `[AM, PM]` for `en-US`.
  87481. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87482. *
  87483. * @publicApi
  87484. */
  87485. function getLocaleDayPeriods(locale, formStyle, width) {
  87486. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87487. const amPmData = [
  87488. data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DayPeriodsFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DayPeriodsStandalone]
  87489. ];
  87490. const amPm = getLastDefinedValue(amPmData, formStyle);
  87491. return getLastDefinedValue(amPm, width);
  87492. }
  87493. /**
  87494. * Retrieves days of the week for the given locale, using the Gregorian calendar.
  87495. *
  87496. * @param locale A locale code for the locale format rules to use.
  87497. * @param formStyle The required grammatical form.
  87498. * @param width The required character width.
  87499. * @returns An array of localized name strings.
  87500. * For example,`[Sunday, Monday, ... Saturday]` for `en-US`.
  87501. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87502. *
  87503. * @publicApi
  87504. */
  87505. function getLocaleDayNames(locale, formStyle, width) {
  87506. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87507. const daysData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DaysFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DaysStandalone]];
  87508. const days = getLastDefinedValue(daysData, formStyle);
  87509. return getLastDefinedValue(days, width);
  87510. }
  87511. /**
  87512. * Retrieves months of the year for the given locale, using the Gregorian calendar.
  87513. *
  87514. * @param locale A locale code for the locale format rules to use.
  87515. * @param formStyle The required grammatical form.
  87516. * @param width The required character width.
  87517. * @returns An array of localized name strings.
  87518. * For example, `[January, February, ...]` for `en-US`.
  87519. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87520. *
  87521. * @publicApi
  87522. */
  87523. function getLocaleMonthNames(locale, formStyle, width) {
  87524. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87525. const monthsData = [data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].MonthsFormat], data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].MonthsStandalone]];
  87526. const months = getLastDefinedValue(monthsData, formStyle);
  87527. return getLastDefinedValue(months, width);
  87528. }
  87529. /**
  87530. * Retrieves Gregorian-calendar eras for the given locale.
  87531. * @param locale A locale code for the locale format rules to use.
  87532. * @param width The required character width.
  87533. * @returns An array of localized era strings.
  87534. * For example, `[AD, BC]` for `en-US`.
  87535. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87536. *
  87537. * @publicApi
  87538. */
  87539. function getLocaleEraNames(locale, width) {
  87540. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87541. const erasData = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Eras];
  87542. return getLastDefinedValue(erasData, width);
  87543. }
  87544. /**
  87545. * Retrieves the first day of the week for the given locale.
  87546. *
  87547. * @param locale A locale code for the locale format rules to use.
  87548. * @returns A day index number, using the 0-based week-day index for `en-US`
  87549. * (Sunday = 0, Monday = 1, ...).
  87550. * For example, for `fr-FR`, returns 1 to indicate that the first day is Monday.
  87551. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87552. *
  87553. * @publicApi
  87554. */
  87555. function getLocaleFirstDayOfWeek(locale) {
  87556. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87557. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].FirstDayOfWeek];
  87558. }
  87559. /**
  87560. * Range of week days that are considered the week-end for the given locale.
  87561. *
  87562. * @param locale A locale code for the locale format rules to use.
  87563. * @returns The range of day values, `[startDay, endDay]`.
  87564. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87565. *
  87566. * @publicApi
  87567. */
  87568. function getLocaleWeekEndRange(locale) {
  87569. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87570. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].WeekendRange];
  87571. }
  87572. /**
  87573. * Retrieves a localized date-value formating string.
  87574. *
  87575. * @param locale A locale code for the locale format rules to use.
  87576. * @param width The format type.
  87577. * @returns The localized formating string.
  87578. * @see `FormatWidth`
  87579. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87580. *
  87581. * @publicApi
  87582. */
  87583. function getLocaleDateFormat(locale, width) {
  87584. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87585. return getLastDefinedValue(data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DateFormat], width);
  87586. }
  87587. /**
  87588. * Retrieves a localized time-value formatting string.
  87589. *
  87590. * @param locale A locale code for the locale format rules to use.
  87591. * @param width The format type.
  87592. * @returns The localized formatting string.
  87593. * @see `FormatWidth`
  87594. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87595. * @publicApi
  87596. */
  87597. function getLocaleTimeFormat(locale, width) {
  87598. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87599. return getLastDefinedValue(data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].TimeFormat], width);
  87600. }
  87601. /**
  87602. * Retrieves a localized date-time formatting string.
  87603. *
  87604. * @param locale A locale code for the locale format rules to use.
  87605. * @param width The format type.
  87606. * @returns The localized formatting string.
  87607. * @see `FormatWidth`
  87608. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87609. *
  87610. * @publicApi
  87611. */
  87612. function getLocaleDateTimeFormat(locale, width) {
  87613. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87614. const dateTimeFormatData = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].DateTimeFormat];
  87615. return getLastDefinedValue(dateTimeFormatData, width);
  87616. }
  87617. /**
  87618. * Retrieves a localized number symbol that can be used to replace placeholders in number formats.
  87619. * @param locale The locale code.
  87620. * @param symbol The symbol to localize.
  87621. * @returns The character for the localized symbol.
  87622. * @see `NumberSymbol`
  87623. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87624. *
  87625. * @publicApi
  87626. */
  87627. function getLocaleNumberSymbol(locale, symbol) {
  87628. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87629. const res = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][symbol];
  87630. if (typeof res === 'undefined') {
  87631. if (symbol === NumberSymbol.CurrencyDecimal) {
  87632. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][NumberSymbol.Decimal];
  87633. }
  87634. else if (symbol === NumberSymbol.CurrencyGroup) {
  87635. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberSymbols][NumberSymbol.Group];
  87636. }
  87637. }
  87638. return res;
  87639. }
  87640. /**
  87641. * Retrieves a number format for a given locale.
  87642. *
  87643. * Numbers are formatted using patterns, like `#,###.00`. For example, the pattern `#,###.00`
  87644. * when used to format the number 12345.678 could result in "12'345,678". That would happen if the
  87645. * grouping separator for your language is an apostrophe, and the decimal separator is a comma.
  87646. *
  87647. * <b>Important:</b> The characters `.` `,` `0` `#` (and others below) are special placeholders
  87648. * that stand for the decimal separator, and so on, and are NOT real characters.
  87649. * You must NOT "translate" the placeholders. For example, don't change `.` to `,` even though in
  87650. * your language the decimal point is written with a comma. The symbols should be replaced by the
  87651. * local equivalents, using the appropriate `NumberSymbol` for your language.
  87652. *
  87653. * Here are the special characters used in number patterns:
  87654. *
  87655. * | Symbol | Meaning |
  87656. * |--------|---------|
  87657. * | . | Replaced automatically by the character used for the decimal point. |
  87658. * | , | Replaced by the "grouping" (thousands) separator. |
  87659. * | 0 | Replaced by a digit (or zero if there aren't enough digits). |
  87660. * | # | Replaced by a digit (or nothing if there aren't enough). |
  87661. * | ¤ | Replaced by a currency symbol, such as $ or USD. |
  87662. * | % | Marks a percent format. The % symbol may change position, but must be retained. |
  87663. * | E | Marks a scientific format. The E symbol may change position, but must be retained. |
  87664. * | ' | Special characters used as literal characters are quoted with ASCII single quotes. |
  87665. *
  87666. * @param locale A locale code for the locale format rules to use.
  87667. * @param type The type of numeric value to be formatted (such as `Decimal` or `Currency`.)
  87668. * @returns The localized format string.
  87669. * @see `NumberFormatStyle`
  87670. * @see [CLDR website](http://cldr.unicode.org/translation/number-patterns)
  87671. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87672. *
  87673. * @publicApi
  87674. */
  87675. function getLocaleNumberFormat(locale, type) {
  87676. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87677. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].NumberFormats][type];
  87678. }
  87679. /**
  87680. * Retrieves the symbol used to represent the currency for the main country
  87681. * corresponding to a given locale. For example, '$' for `en-US`.
  87682. *
  87683. * @param locale A locale code for the locale format rules to use.
  87684. * @returns The localized symbol character,
  87685. * or `null` if the main country cannot be determined.
  87686. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87687. *
  87688. * @publicApi
  87689. */
  87690. function getLocaleCurrencySymbol(locale) {
  87691. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87692. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].CurrencySymbol] || null;
  87693. }
  87694. /**
  87695. * Retrieves the name of the currency for the main country corresponding
  87696. * to a given locale. For example, 'US Dollar' for `en-US`.
  87697. * @param locale A locale code for the locale format rules to use.
  87698. * @returns The currency name,
  87699. * or `null` if the main country cannot be determined.
  87700. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87701. *
  87702. * @publicApi
  87703. */
  87704. function getLocaleCurrencyName(locale) {
  87705. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87706. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].CurrencyName] || null;
  87707. }
  87708. /**
  87709. * Retrieves the default currency code for the given locale.
  87710. *
  87711. * The default is defined as the first currency which is still in use.
  87712. *
  87713. * @param locale The code of the locale whose currency code we want.
  87714. * @returns The code of the default currency for the given locale.
  87715. *
  87716. * @publicApi
  87717. */
  87718. function getLocaleCurrencyCode(locale) {
  87719. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵgetLocaleCurrencyCode"])(locale);
  87720. }
  87721. /**
  87722. * Retrieves the currency values for a given locale.
  87723. * @param locale A locale code for the locale format rules to use.
  87724. * @returns The currency values.
  87725. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87726. */
  87727. function getLocaleCurrencies(locale) {
  87728. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87729. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Currencies];
  87730. }
  87731. /**
  87732. * @alias core/ɵgetLocalePluralCase
  87733. * @publicApi
  87734. */
  87735. const getLocalePluralCase = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵgetLocalePluralCase"];
  87736. function checkFullData(data) {
  87737. if (!data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData]) {
  87738. throw new Error(`Missing extra locale data for the locale "${data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"]
  87739. .LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`);
  87740. }
  87741. }
  87742. /**
  87743. * Retrieves locale-specific rules used to determine which day period to use
  87744. * when more than one period is defined for a locale.
  87745. *
  87746. * There is a rule for each defined day period. The
  87747. * first rule is applied to the first day period and so on.
  87748. * Fall back to AM/PM when no rules are available.
  87749. *
  87750. * A rule can specify a period as time range, or as a single time value.
  87751. *
  87752. * This functionality is only available when you have loaded the full locale data.
  87753. * See the ["I18n guide"](guide/i18n#i18n-pipes).
  87754. *
  87755. * @param locale A locale code for the locale format rules to use.
  87756. * @returns The rules for the locale, a single time value or array of *from-time, to-time*,
  87757. * or null if no periods are available.
  87758. *
  87759. * @see `getLocaleExtraDayPeriods()`
  87760. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87761. *
  87762. * @publicApi
  87763. */
  87764. function getLocaleExtraDayPeriodRules(locale) {
  87765. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87766. checkFullData(data);
  87767. const rules = data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][2 /* ExtraDayPeriodsRules */] || [];
  87768. return rules.map((rule) => {
  87769. if (typeof rule === 'string') {
  87770. return extractTime(rule);
  87771. }
  87772. return [extractTime(rule[0]), extractTime(rule[1])];
  87773. });
  87774. }
  87775. /**
  87776. * Retrieves locale-specific day periods, which indicate roughly how a day is broken up
  87777. * in different languages.
  87778. * For example, for `en-US`, periods are morning, noon, afternoon, evening, and midnight.
  87779. *
  87780. * This functionality is only available when you have loaded the full locale data.
  87781. * See the ["I18n guide"](guide/i18n#i18n-pipes).
  87782. *
  87783. * @param locale A locale code for the locale format rules to use.
  87784. * @param formStyle The required grammatical form.
  87785. * @param width The required character width.
  87786. * @returns The translated day-period strings.
  87787. * @see `getLocaleExtraDayPeriodRules()`
  87788. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87789. *
  87790. * @publicApi
  87791. */
  87792. function getLocaleExtraDayPeriods(locale, formStyle, width) {
  87793. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87794. checkFullData(data);
  87795. const dayPeriodsData = [
  87796. data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][0 /* ExtraDayPeriodFormats */],
  87797. data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].ExtraData][1 /* ExtraDayPeriodStandalone */]
  87798. ];
  87799. const dayPeriods = getLastDefinedValue(dayPeriodsData, formStyle) || [];
  87800. return getLastDefinedValue(dayPeriods, width) || [];
  87801. }
  87802. /**
  87803. * Retrieves the writing direction of a specified locale
  87804. * @param locale A locale code for the locale format rules to use.
  87805. * @publicApi
  87806. * @returns 'rtl' or 'ltr'
  87807. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87808. */
  87809. function getLocaleDirection(locale) {
  87810. const data = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵfindLocaleData"])(locale);
  87811. return data[_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵLocaleDataIndex"].Directionality];
  87812. }
  87813. /**
  87814. * Retrieves the first value that is defined in an array, going backwards from an index position.
  87815. *
  87816. * To avoid repeating the same data (as when the "format" and "standalone" forms are the same)
  87817. * add the first value to the locale data arrays, and add other values only if they are different.
  87818. *
  87819. * @param data The data array to retrieve from.
  87820. * @param index A 0-based index into the array to start from.
  87821. * @returns The value immediately before the given index position.
  87822. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87823. *
  87824. * @publicApi
  87825. */
  87826. function getLastDefinedValue(data, index) {
  87827. for (let i = index; i > -1; i--) {
  87828. if (typeof data[i] !== 'undefined') {
  87829. return data[i];
  87830. }
  87831. }
  87832. throw new Error('Locale data API: locale data undefined');
  87833. }
  87834. /**
  87835. * Extracts the hours and minutes from a string like "15:45"
  87836. */
  87837. function extractTime(time) {
  87838. const [h, m] = time.split(':');
  87839. return { hours: +h, minutes: +m };
  87840. }
  87841. /**
  87842. * Retrieves the currency symbol for a given currency code.
  87843. *
  87844. * For example, for the default `en-US` locale, the code `USD` can
  87845. * be represented by the narrow symbol `$` or the wide symbol `US$`.
  87846. *
  87847. * @param code The currency code.
  87848. * @param format The format, `wide` or `narrow`.
  87849. * @param locale A locale code for the locale format rules to use.
  87850. *
  87851. * @returns The symbol, or the currency code if no symbol is available.
  87852. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87853. *
  87854. * @publicApi
  87855. */
  87856. function getCurrencySymbol(code, format, locale = 'en') {
  87857. const currency = getLocaleCurrencies(locale)[code] || CURRENCIES_EN[code] || [];
  87858. const symbolNarrow = currency[1 /* SymbolNarrow */];
  87859. if (format === 'narrow' && typeof symbolNarrow === 'string') {
  87860. return symbolNarrow;
  87861. }
  87862. return currency[0 /* Symbol */] || code;
  87863. }
  87864. // Most currencies have cents, that's why the default is 2
  87865. const DEFAULT_NB_OF_CURRENCY_DIGITS = 2;
  87866. /**
  87867. * Reports the number of decimal digits for a given currency.
  87868. * The value depends upon the presence of cents in that particular currency.
  87869. *
  87870. * @param code The currency code.
  87871. * @returns The number of decimal digits, typically 0 or 2.
  87872. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87873. *
  87874. * @publicApi
  87875. */
  87876. function getNumberOfCurrencyDigits(code) {
  87877. let digits;
  87878. const currency = CURRENCIES_EN[code];
  87879. if (currency) {
  87880. digits = currency[2 /* NbOfDigits */];
  87881. }
  87882. return typeof digits === 'number' ? digits : DEFAULT_NB_OF_CURRENCY_DIGITS;
  87883. }
  87884. /**
  87885. * @license
  87886. * Copyright Google LLC All Rights Reserved.
  87887. *
  87888. * Use of this source code is governed by an MIT-style license that can be
  87889. * found in the LICENSE file at https://angular.io/license
  87890. */
  87891. const ISO8601_DATE_REGEX = /^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;
  87892. // 1 2 3 4 5 6 7 8 9 10 11
  87893. const NAMED_FORMATS = {};
  87894. const DATE_FORMATS_SPLIT = /((?:[^GyYMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;
  87895. var ZoneWidth;
  87896. (function (ZoneWidth) {
  87897. ZoneWidth[ZoneWidth["Short"] = 0] = "Short";
  87898. ZoneWidth[ZoneWidth["ShortGMT"] = 1] = "ShortGMT";
  87899. ZoneWidth[ZoneWidth["Long"] = 2] = "Long";
  87900. ZoneWidth[ZoneWidth["Extended"] = 3] = "Extended";
  87901. })(ZoneWidth || (ZoneWidth = {}));
  87902. var DateType;
  87903. (function (DateType) {
  87904. DateType[DateType["FullYear"] = 0] = "FullYear";
  87905. DateType[DateType["Month"] = 1] = "Month";
  87906. DateType[DateType["Date"] = 2] = "Date";
  87907. DateType[DateType["Hours"] = 3] = "Hours";
  87908. DateType[DateType["Minutes"] = 4] = "Minutes";
  87909. DateType[DateType["Seconds"] = 5] = "Seconds";
  87910. DateType[DateType["FractionalSeconds"] = 6] = "FractionalSeconds";
  87911. DateType[DateType["Day"] = 7] = "Day";
  87912. })(DateType || (DateType = {}));
  87913. var TranslationType;
  87914. (function (TranslationType) {
  87915. TranslationType[TranslationType["DayPeriods"] = 0] = "DayPeriods";
  87916. TranslationType[TranslationType["Days"] = 1] = "Days";
  87917. TranslationType[TranslationType["Months"] = 2] = "Months";
  87918. TranslationType[TranslationType["Eras"] = 3] = "Eras";
  87919. })(TranslationType || (TranslationType = {}));
  87920. /**
  87921. * @ngModule CommonModule
  87922. * @description
  87923. *
  87924. * Formats a date according to locale rules.
  87925. *
  87926. * @param value The date to format, as a Date, or a number (milliseconds since UTC epoch)
  87927. * or an [ISO date-time string](https://www.w3.org/TR/NOTE-datetime).
  87928. * @param format The date-time components to include. See `DatePipe` for details.
  87929. * @param locale A locale code for the locale format rules to use.
  87930. * @param timezone The time zone. A time zone offset from GMT (such as `'+0430'`),
  87931. * or a standard UTC/GMT or continental US time zone abbreviation.
  87932. * If not specified, uses host system settings.
  87933. *
  87934. * @returns The formatted date string.
  87935. *
  87936. * @see `DatePipe`
  87937. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  87938. *
  87939. * @publicApi
  87940. */
  87941. function formatDate(value, format, locale, timezone) {
  87942. let date = toDate(value);
  87943. const namedFormat = getNamedFormat(locale, format);
  87944. format = namedFormat || format;
  87945. let parts = [];
  87946. let match;
  87947. while (format) {
  87948. match = DATE_FORMATS_SPLIT.exec(format);
  87949. if (match) {
  87950. parts = parts.concat(match.slice(1));
  87951. const part = parts.pop();
  87952. if (!part) {
  87953. break;
  87954. }
  87955. format = part;
  87956. }
  87957. else {
  87958. parts.push(format);
  87959. break;
  87960. }
  87961. }
  87962. let dateTimezoneOffset = date.getTimezoneOffset();
  87963. if (timezone) {
  87964. dateTimezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
  87965. date = convertTimezoneToLocal(date, timezone, true);
  87966. }
  87967. let text = '';
  87968. parts.forEach(value => {
  87969. const dateFormatter = getDateFormatter(value);
  87970. text += dateFormatter ?
  87971. dateFormatter(date, locale, dateTimezoneOffset) :
  87972. value === '\'\'' ? '\'' : value.replace(/(^'|'$)/g, '').replace(/''/g, '\'');
  87973. });
  87974. return text;
  87975. }
  87976. function getNamedFormat(locale, format) {
  87977. const localeId = getLocaleId(locale);
  87978. NAMED_FORMATS[localeId] = NAMED_FORMATS[localeId] || {};
  87979. if (NAMED_FORMATS[localeId][format]) {
  87980. return NAMED_FORMATS[localeId][format];
  87981. }
  87982. let formatValue = '';
  87983. switch (format) {
  87984. case 'shortDate':
  87985. formatValue = getLocaleDateFormat(locale, FormatWidth.Short);
  87986. break;
  87987. case 'mediumDate':
  87988. formatValue = getLocaleDateFormat(locale, FormatWidth.Medium);
  87989. break;
  87990. case 'longDate':
  87991. formatValue = getLocaleDateFormat(locale, FormatWidth.Long);
  87992. break;
  87993. case 'fullDate':
  87994. formatValue = getLocaleDateFormat(locale, FormatWidth.Full);
  87995. break;
  87996. case 'shortTime':
  87997. formatValue = getLocaleTimeFormat(locale, FormatWidth.Short);
  87998. break;
  87999. case 'mediumTime':
  88000. formatValue = getLocaleTimeFormat(locale, FormatWidth.Medium);
  88001. break;
  88002. case 'longTime':
  88003. formatValue = getLocaleTimeFormat(locale, FormatWidth.Long);
  88004. break;
  88005. case 'fullTime':
  88006. formatValue = getLocaleTimeFormat(locale, FormatWidth.Full);
  88007. break;
  88008. case 'short':
  88009. const shortTime = getNamedFormat(locale, 'shortTime');
  88010. const shortDate = getNamedFormat(locale, 'shortDate');
  88011. formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Short), [shortTime, shortDate]);
  88012. break;
  88013. case 'medium':
  88014. const mediumTime = getNamedFormat(locale, 'mediumTime');
  88015. const mediumDate = getNamedFormat(locale, 'mediumDate');
  88016. formatValue = formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Medium), [mediumTime, mediumDate]);
  88017. break;
  88018. case 'long':
  88019. const longTime = getNamedFormat(locale, 'longTime');
  88020. const longDate = getNamedFormat(locale, 'longDate');
  88021. formatValue =
  88022. formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Long), [longTime, longDate]);
  88023. break;
  88024. case 'full':
  88025. const fullTime = getNamedFormat(locale, 'fullTime');
  88026. const fullDate = getNamedFormat(locale, 'fullDate');
  88027. formatValue =
  88028. formatDateTime(getLocaleDateTimeFormat(locale, FormatWidth.Full), [fullTime, fullDate]);
  88029. break;
  88030. }
  88031. if (formatValue) {
  88032. NAMED_FORMATS[localeId][format] = formatValue;
  88033. }
  88034. return formatValue;
  88035. }
  88036. function formatDateTime(str, opt_values) {
  88037. if (opt_values) {
  88038. str = str.replace(/\{([^}]+)}/g, function (match, key) {
  88039. return (opt_values != null && key in opt_values) ? opt_values[key] : match;
  88040. });
  88041. }
  88042. return str;
  88043. }
  88044. function padNumber(num, digits, minusSign = '-', trim, negWrap) {
  88045. let neg = '';
  88046. if (num < 0 || (negWrap && num <= 0)) {
  88047. if (negWrap) {
  88048. num = -num + 1;
  88049. }
  88050. else {
  88051. num = -num;
  88052. neg = minusSign;
  88053. }
  88054. }
  88055. let strNum = String(num);
  88056. while (strNum.length < digits) {
  88057. strNum = '0' + strNum;
  88058. }
  88059. if (trim) {
  88060. strNum = strNum.substr(strNum.length - digits);
  88061. }
  88062. return neg + strNum;
  88063. }
  88064. function formatFractionalSeconds(milliseconds, digits) {
  88065. const strMs = padNumber(milliseconds, 3);
  88066. return strMs.substr(0, digits);
  88067. }
  88068. /**
  88069. * Returns a date formatter that transforms a date into its locale digit representation
  88070. */
  88071. function dateGetter(name, size, offset = 0, trim = false, negWrap = false) {
  88072. return function (date, locale) {
  88073. let part = getDatePart(name, date);
  88074. if (offset > 0 || part > -offset) {
  88075. part += offset;
  88076. }
  88077. if (name === DateType.Hours) {
  88078. if (part === 0 && offset === -12) {
  88079. part = 12;
  88080. }
  88081. }
  88082. else if (name === DateType.FractionalSeconds) {
  88083. return formatFractionalSeconds(part, size);
  88084. }
  88085. const localeMinus = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
  88086. return padNumber(part, size, localeMinus, trim, negWrap);
  88087. };
  88088. }
  88089. function getDatePart(part, date) {
  88090. switch (part) {
  88091. case DateType.FullYear:
  88092. return date.getFullYear();
  88093. case DateType.Month:
  88094. return date.getMonth();
  88095. case DateType.Date:
  88096. return date.getDate();
  88097. case DateType.Hours:
  88098. return date.getHours();
  88099. case DateType.Minutes:
  88100. return date.getMinutes();
  88101. case DateType.Seconds:
  88102. return date.getSeconds();
  88103. case DateType.FractionalSeconds:
  88104. return date.getMilliseconds();
  88105. case DateType.Day:
  88106. return date.getDay();
  88107. default:
  88108. throw new Error(`Unknown DateType value "${part}".`);
  88109. }
  88110. }
  88111. /**
  88112. * Returns a date formatter that transforms a date into its locale string representation
  88113. */
  88114. function dateStrGetter(name, width, form = FormStyle.Format, extended = false) {
  88115. return function (date, locale) {
  88116. return getDateTranslation(date, locale, name, width, form, extended);
  88117. };
  88118. }
  88119. /**
  88120. * Returns the locale translation of a date for a given form, type and width
  88121. */
  88122. function getDateTranslation(date, locale, name, width, form, extended) {
  88123. switch (name) {
  88124. case TranslationType.Months:
  88125. return getLocaleMonthNames(locale, form, width)[date.getMonth()];
  88126. case TranslationType.Days:
  88127. return getLocaleDayNames(locale, form, width)[date.getDay()];
  88128. case TranslationType.DayPeriods:
  88129. const currentHours = date.getHours();
  88130. const currentMinutes = date.getMinutes();
  88131. if (extended) {
  88132. const rules = getLocaleExtraDayPeriodRules(locale);
  88133. const dayPeriods = getLocaleExtraDayPeriods(locale, form, width);
  88134. const index = rules.findIndex(rule => {
  88135. if (Array.isArray(rule)) {
  88136. // morning, afternoon, evening, night
  88137. const [from, to] = rule;
  88138. const afterFrom = currentHours >= from.hours && currentMinutes >= from.minutes;
  88139. const beforeTo = (currentHours < to.hours ||
  88140. (currentHours === to.hours && currentMinutes < to.minutes));
  88141. // We must account for normal rules that span a period during the day (e.g. 6am-9am)
  88142. // where `from` is less (earlier) than `to`. But also rules that span midnight (e.g.
  88143. // 10pm - 5am) where `from` is greater (later!) than `to`.
  88144. //
  88145. // In the first case the current time must be BOTH after `from` AND before `to`
  88146. // (e.g. 8am is after 6am AND before 10am).
  88147. //
  88148. // In the second case the current time must be EITHER after `from` OR before `to`
  88149. // (e.g. 4am is before 5am but not after 10pm; and 11pm is not before 5am but it is
  88150. // after 10pm).
  88151. if (from.hours < to.hours) {
  88152. if (afterFrom && beforeTo) {
  88153. return true;
  88154. }
  88155. }
  88156. else if (afterFrom || beforeTo) {
  88157. return true;
  88158. }
  88159. }
  88160. else { // noon or midnight
  88161. if (rule.hours === currentHours && rule.minutes === currentMinutes) {
  88162. return true;
  88163. }
  88164. }
  88165. return false;
  88166. });
  88167. if (index !== -1) {
  88168. return dayPeriods[index];
  88169. }
  88170. }
  88171. // if no rules for the day periods, we use am/pm by default
  88172. return getLocaleDayPeriods(locale, form, width)[currentHours < 12 ? 0 : 1];
  88173. case TranslationType.Eras:
  88174. return getLocaleEraNames(locale, width)[date.getFullYear() <= 0 ? 0 : 1];
  88175. default:
  88176. // This default case is not needed by TypeScript compiler, as the switch is exhaustive.
  88177. // However Closure Compiler does not understand that and reports an error in typed mode.
  88178. // The `throw new Error` below works around the problem, and the unexpected: never variable
  88179. // makes sure tsc still checks this code is unreachable.
  88180. const unexpected = name;
  88181. throw new Error(`unexpected translation type ${unexpected}`);
  88182. }
  88183. }
  88184. /**
  88185. * Returns a date formatter that transforms a date and an offset into a timezone with ISO8601 or
  88186. * GMT format depending on the width (eg: short = +0430, short:GMT = GMT+4, long = GMT+04:30,
  88187. * extended = +04:30)
  88188. */
  88189. function timeZoneGetter(width) {
  88190. return function (date, locale, offset) {
  88191. const zone = -1 * offset;
  88192. const minusSign = getLocaleNumberSymbol(locale, NumberSymbol.MinusSign);
  88193. const hours = zone > 0 ? Math.floor(zone / 60) : Math.ceil(zone / 60);
  88194. switch (width) {
  88195. case ZoneWidth.Short:
  88196. return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) +
  88197. padNumber(Math.abs(zone % 60), 2, minusSign);
  88198. case ZoneWidth.ShortGMT:
  88199. return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 1, minusSign);
  88200. case ZoneWidth.Long:
  88201. return 'GMT' + ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +
  88202. padNumber(Math.abs(zone % 60), 2, minusSign);
  88203. case ZoneWidth.Extended:
  88204. if (offset === 0) {
  88205. return 'Z';
  88206. }
  88207. else {
  88208. return ((zone >= 0) ? '+' : '') + padNumber(hours, 2, minusSign) + ':' +
  88209. padNumber(Math.abs(zone % 60), 2, minusSign);
  88210. }
  88211. default:
  88212. throw new Error(`Unknown zone width "${width}"`);
  88213. }
  88214. };
  88215. }
  88216. const JANUARY = 0;
  88217. const THURSDAY = 4;
  88218. function getFirstThursdayOfYear(year) {
  88219. const firstDayOfYear = (new Date(year, JANUARY, 1)).getDay();
  88220. return new Date(year, 0, 1 + ((firstDayOfYear <= THURSDAY) ? THURSDAY : THURSDAY + 7) - firstDayOfYear);
  88221. }
  88222. function getThursdayThisWeek(datetime) {
  88223. return new Date(datetime.getFullYear(), datetime.getMonth(), datetime.getDate() + (THURSDAY - datetime.getDay()));
  88224. }
  88225. function weekGetter(size, monthBased = false) {
  88226. return function (date, locale) {
  88227. let result;
  88228. if (monthBased) {
  88229. const nbDaysBefore1stDayOfMonth = new Date(date.getFullYear(), date.getMonth(), 1).getDay() - 1;
  88230. const today = date.getDate();
  88231. result = 1 + Math.floor((today + nbDaysBefore1stDayOfMonth) / 7);
  88232. }
  88233. else {
  88234. const thisThurs = getThursdayThisWeek(date);
  88235. // Some days of a year are part of next year according to ISO 8601.
  88236. // Compute the firstThurs from the year of this week's Thursday
  88237. const firstThurs = getFirstThursdayOfYear(thisThurs.getFullYear());
  88238. const diff = thisThurs.getTime() - firstThurs.getTime();
  88239. result = 1 + Math.round(diff / 6.048e8); // 6.048e8 ms per week
  88240. }
  88241. return padNumber(result, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
  88242. };
  88243. }
  88244. /**
  88245. * Returns a date formatter that provides the week-numbering year for the input date.
  88246. */
  88247. function weekNumberingYearGetter(size, trim = false) {
  88248. return function (date, locale) {
  88249. const thisThurs = getThursdayThisWeek(date);
  88250. const weekNumberingYear = thisThurs.getFullYear();
  88251. return padNumber(weekNumberingYear, size, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign), trim);
  88252. };
  88253. }
  88254. const DATE_FORMATS = {};
  88255. // Based on CLDR formats:
  88256. // See complete list: http://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table
  88257. // See also explanations: http://cldr.unicode.org/translation/date-time
  88258. // TODO(ocombe): support all missing cldr formats: Y, U, Q, D, F, e, c, j, J, C, A, v, V, X, x
  88259. function getDateFormatter(format) {
  88260. if (DATE_FORMATS[format]) {
  88261. return DATE_FORMATS[format];
  88262. }
  88263. let formatter;
  88264. switch (format) {
  88265. // Era name (AD/BC)
  88266. case 'G':
  88267. case 'GG':
  88268. case 'GGG':
  88269. formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Abbreviated);
  88270. break;
  88271. case 'GGGG':
  88272. formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Wide);
  88273. break;
  88274. case 'GGGGG':
  88275. formatter = dateStrGetter(TranslationType.Eras, TranslationWidth.Narrow);
  88276. break;
  88277. // 1 digit representation of the year, e.g. (AD 1 => 1, AD 199 => 199)
  88278. case 'y':
  88279. formatter = dateGetter(DateType.FullYear, 1, 0, false, true);
  88280. break;
  88281. // 2 digit representation of the year, padded (00-99). (e.g. AD 2001 => 01, AD 2010 => 10)
  88282. case 'yy':
  88283. formatter = dateGetter(DateType.FullYear, 2, 0, true, true);
  88284. break;
  88285. // 3 digit representation of the year, padded (000-999). (e.g. AD 2001 => 01, AD 2010 => 10)
  88286. case 'yyy':
  88287. formatter = dateGetter(DateType.FullYear, 3, 0, false, true);
  88288. break;
  88289. // 4 digit representation of the year (e.g. AD 1 => 0001, AD 2010 => 2010)
  88290. case 'yyyy':
  88291. formatter = dateGetter(DateType.FullYear, 4, 0, false, true);
  88292. break;
  88293. // 1 digit representation of the week-numbering year, e.g. (AD 1 => 1, AD 199 => 199)
  88294. case 'Y':
  88295. formatter = weekNumberingYearGetter(1);
  88296. break;
  88297. // 2 digit representation of the week-numbering year, padded (00-99). (e.g. AD 2001 => 01, AD
  88298. // 2010 => 10)
  88299. case 'YY':
  88300. formatter = weekNumberingYearGetter(2, true);
  88301. break;
  88302. // 3 digit representation of the week-numbering year, padded (000-999). (e.g. AD 1 => 001, AD
  88303. // 2010 => 2010)
  88304. case 'YYY':
  88305. formatter = weekNumberingYearGetter(3);
  88306. break;
  88307. // 4 digit representation of the week-numbering year (e.g. AD 1 => 0001, AD 2010 => 2010)
  88308. case 'YYYY':
  88309. formatter = weekNumberingYearGetter(4);
  88310. break;
  88311. // Month of the year (1-12), numeric
  88312. case 'M':
  88313. case 'L':
  88314. formatter = dateGetter(DateType.Month, 1, 1);
  88315. break;
  88316. case 'MM':
  88317. case 'LL':
  88318. formatter = dateGetter(DateType.Month, 2, 1);
  88319. break;
  88320. // Month of the year (January, ...), string, format
  88321. case 'MMM':
  88322. formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated);
  88323. break;
  88324. case 'MMMM':
  88325. formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Wide);
  88326. break;
  88327. case 'MMMMM':
  88328. formatter = dateStrGetter(TranslationType.Months, TranslationWidth.Narrow);
  88329. break;
  88330. // Month of the year (January, ...), string, standalone
  88331. case 'LLL':
  88332. formatter =
  88333. dateStrGetter(TranslationType.Months, TranslationWidth.Abbreviated, FormStyle.Standalone);
  88334. break;
  88335. case 'LLLL':
  88336. formatter =
  88337. dateStrGetter(TranslationType.Months, TranslationWidth.Wide, FormStyle.Standalone);
  88338. break;
  88339. case 'LLLLL':
  88340. formatter =
  88341. dateStrGetter(TranslationType.Months, TranslationWidth.Narrow, FormStyle.Standalone);
  88342. break;
  88343. // Week of the year (1, ... 52)
  88344. case 'w':
  88345. formatter = weekGetter(1);
  88346. break;
  88347. case 'ww':
  88348. formatter = weekGetter(2);
  88349. break;
  88350. // Week of the month (1, ...)
  88351. case 'W':
  88352. formatter = weekGetter(1, true);
  88353. break;
  88354. // Day of the month (1-31)
  88355. case 'd':
  88356. formatter = dateGetter(DateType.Date, 1);
  88357. break;
  88358. case 'dd':
  88359. formatter = dateGetter(DateType.Date, 2);
  88360. break;
  88361. // Day of the Week
  88362. case 'E':
  88363. case 'EE':
  88364. case 'EEE':
  88365. formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Abbreviated);
  88366. break;
  88367. case 'EEEE':
  88368. formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Wide);
  88369. break;
  88370. case 'EEEEE':
  88371. formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Narrow);
  88372. break;
  88373. case 'EEEEEE':
  88374. formatter = dateStrGetter(TranslationType.Days, TranslationWidth.Short);
  88375. break;
  88376. // Generic period of the day (am-pm)
  88377. case 'a':
  88378. case 'aa':
  88379. case 'aaa':
  88380. formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated);
  88381. break;
  88382. case 'aaaa':
  88383. formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide);
  88384. break;
  88385. case 'aaaaa':
  88386. formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow);
  88387. break;
  88388. // Extended period of the day (midnight, at night, ...), standalone
  88389. case 'b':
  88390. case 'bb':
  88391. case 'bbb':
  88392. formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Standalone, true);
  88393. break;
  88394. case 'bbbb':
  88395. formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Standalone, true);
  88396. break;
  88397. case 'bbbbb':
  88398. formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Standalone, true);
  88399. break;
  88400. // Extended period of the day (midnight, night, ...), standalone
  88401. case 'B':
  88402. case 'BB':
  88403. case 'BBB':
  88404. formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Abbreviated, FormStyle.Format, true);
  88405. break;
  88406. case 'BBBB':
  88407. formatter =
  88408. dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Wide, FormStyle.Format, true);
  88409. break;
  88410. case 'BBBBB':
  88411. formatter = dateStrGetter(TranslationType.DayPeriods, TranslationWidth.Narrow, FormStyle.Format, true);
  88412. break;
  88413. // Hour in AM/PM, (1-12)
  88414. case 'h':
  88415. formatter = dateGetter(DateType.Hours, 1, -12);
  88416. break;
  88417. case 'hh':
  88418. formatter = dateGetter(DateType.Hours, 2, -12);
  88419. break;
  88420. // Hour of the day (0-23)
  88421. case 'H':
  88422. formatter = dateGetter(DateType.Hours, 1);
  88423. break;
  88424. // Hour in day, padded (00-23)
  88425. case 'HH':
  88426. formatter = dateGetter(DateType.Hours, 2);
  88427. break;
  88428. // Minute of the hour (0-59)
  88429. case 'm':
  88430. formatter = dateGetter(DateType.Minutes, 1);
  88431. break;
  88432. case 'mm':
  88433. formatter = dateGetter(DateType.Minutes, 2);
  88434. break;
  88435. // Second of the minute (0-59)
  88436. case 's':
  88437. formatter = dateGetter(DateType.Seconds, 1);
  88438. break;
  88439. case 'ss':
  88440. formatter = dateGetter(DateType.Seconds, 2);
  88441. break;
  88442. // Fractional second
  88443. case 'S':
  88444. formatter = dateGetter(DateType.FractionalSeconds, 1);
  88445. break;
  88446. case 'SS':
  88447. formatter = dateGetter(DateType.FractionalSeconds, 2);
  88448. break;
  88449. case 'SSS':
  88450. formatter = dateGetter(DateType.FractionalSeconds, 3);
  88451. break;
  88452. // Timezone ISO8601 short format (-0430)
  88453. case 'Z':
  88454. case 'ZZ':
  88455. case 'ZZZ':
  88456. formatter = timeZoneGetter(ZoneWidth.Short);
  88457. break;
  88458. // Timezone ISO8601 extended format (-04:30)
  88459. case 'ZZZZZ':
  88460. formatter = timeZoneGetter(ZoneWidth.Extended);
  88461. break;
  88462. // Timezone GMT short format (GMT+4)
  88463. case 'O':
  88464. case 'OO':
  88465. case 'OOO':
  88466. // Should be location, but fallback to format O instead because we don't have the data yet
  88467. case 'z':
  88468. case 'zz':
  88469. case 'zzz':
  88470. formatter = timeZoneGetter(ZoneWidth.ShortGMT);
  88471. break;
  88472. // Timezone GMT long format (GMT+0430)
  88473. case 'OOOO':
  88474. case 'ZZZZ':
  88475. // Should be location, but fallback to format O instead because we don't have the data yet
  88476. case 'zzzz':
  88477. formatter = timeZoneGetter(ZoneWidth.Long);
  88478. break;
  88479. default:
  88480. return null;
  88481. }
  88482. DATE_FORMATS[format] = formatter;
  88483. return formatter;
  88484. }
  88485. function timezoneToOffset(timezone, fallback) {
  88486. // Support: IE 11 only, Edge 13-15+
  88487. // IE/Edge do not "understand" colon (`:`) in timezone
  88488. timezone = timezone.replace(/:/g, '');
  88489. const requestedTimezoneOffset = Date.parse('Jan 01, 1970 00:00:00 ' + timezone) / 60000;
  88490. return isNaN(requestedTimezoneOffset) ? fallback : requestedTimezoneOffset;
  88491. }
  88492. function addDateMinutes(date, minutes) {
  88493. date = new Date(date.getTime());
  88494. date.setMinutes(date.getMinutes() + minutes);
  88495. return date;
  88496. }
  88497. function convertTimezoneToLocal(date, timezone, reverse) {
  88498. const reverseValue = reverse ? -1 : 1;
  88499. const dateTimezoneOffset = date.getTimezoneOffset();
  88500. const timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
  88501. return addDateMinutes(date, reverseValue * (timezoneOffset - dateTimezoneOffset));
  88502. }
  88503. /**
  88504. * Converts a value to date.
  88505. *
  88506. * Supported input formats:
  88507. * - `Date`
  88508. * - number: timestamp
  88509. * - string: numeric (e.g. "1234"), ISO and date strings in a format supported by
  88510. * [Date.parse()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse).
  88511. * Note: ISO strings without time return a date without timeoffset.
  88512. *
  88513. * Throws if unable to convert to a date.
  88514. */
  88515. function toDate(value) {
  88516. if (isDate(value)) {
  88517. return value;
  88518. }
  88519. if (typeof value === 'number' && !isNaN(value)) {
  88520. return new Date(value);
  88521. }
  88522. if (typeof value === 'string') {
  88523. value = value.trim();
  88524. const parsedNb = parseFloat(value);
  88525. // any string that only contains numbers, like "1234" but not like "1234hello"
  88526. if (!isNaN(value - parsedNb)) {
  88527. return new Date(parsedNb);
  88528. }
  88529. if (/^(\d{4}-\d{1,2}-\d{1,2})$/.test(value)) {
  88530. /* For ISO Strings without time the day, month and year must be extracted from the ISO String
  88531. before Date creation to avoid time offset and errors in the new Date.
  88532. If we only replace '-' with ',' in the ISO String ("2015,01,01"), and try to create a new
  88533. date, some browsers (e.g. IE 9) will throw an invalid Date error.
  88534. If we leave the '-' ("2015-01-01") and try to create a new Date("2015-01-01") the timeoffset
  88535. is applied.
  88536. Note: ISO months are 0 for January, 1 for February, ... */
  88537. const [y, m, d] = value.split('-').map((val) => +val);
  88538. return new Date(y, m - 1, d);
  88539. }
  88540. let match;
  88541. if (match = value.match(ISO8601_DATE_REGEX)) {
  88542. return isoStringToDate(match);
  88543. }
  88544. }
  88545. const date = new Date(value);
  88546. if (!isDate(date)) {
  88547. throw new Error(`Unable to convert "${value}" into a date`);
  88548. }
  88549. return date;
  88550. }
  88551. /**
  88552. * Converts a date in ISO8601 to a Date.
  88553. * Used instead of `Date.parse` because of browser discrepancies.
  88554. */
  88555. function isoStringToDate(match) {
  88556. const date = new Date(0);
  88557. let tzHour = 0;
  88558. let tzMin = 0;
  88559. // match[8] means that the string contains "Z" (UTC) or a timezone like "+01:00" or "+0100"
  88560. const dateSetter = match[8] ? date.setUTCFullYear : date.setFullYear;
  88561. const timeSetter = match[8] ? date.setUTCHours : date.setHours;
  88562. // if there is a timezone defined like "+01:00" or "+0100"
  88563. if (match[9]) {
  88564. tzHour = Number(match[9] + match[10]);
  88565. tzMin = Number(match[9] + match[11]);
  88566. }
  88567. dateSetter.call(date, Number(match[1]), Number(match[2]) - 1, Number(match[3]));
  88568. const h = Number(match[4] || 0) - tzHour;
  88569. const m = Number(match[5] || 0) - tzMin;
  88570. const s = Number(match[6] || 0);
  88571. // The ECMAScript specification (https://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.11)
  88572. // defines that `DateTime` milliseconds should always be rounded down, so that `999.9ms`
  88573. // becomes `999ms`.
  88574. const ms = Math.floor(parseFloat('0.' + (match[7] || 0)) * 1000);
  88575. timeSetter.call(date, h, m, s, ms);
  88576. return date;
  88577. }
  88578. function isDate(value) {
  88579. return value instanceof Date && !isNaN(value.valueOf());
  88580. }
  88581. /**
  88582. * @license
  88583. * Copyright Google LLC All Rights Reserved.
  88584. *
  88585. * Use of this source code is governed by an MIT-style license that can be
  88586. * found in the LICENSE file at https://angular.io/license
  88587. */
  88588. const NUMBER_FORMAT_REGEXP = /^(\d+)?\.((\d+)(-(\d+))?)?$/;
  88589. const MAX_DIGITS = 22;
  88590. const DECIMAL_SEP = '.';
  88591. const ZERO_CHAR = '0';
  88592. const PATTERN_SEP = ';';
  88593. const GROUP_SEP = ',';
  88594. const DIGIT_CHAR = '#';
  88595. const CURRENCY_CHAR = '¤';
  88596. const PERCENT_CHAR = '%';
  88597. /**
  88598. * Transforms a number to a locale string based on a style and a format.
  88599. */
  88600. function formatNumberToLocaleString(value, pattern, locale, groupSymbol, decimalSymbol, digitsInfo, isPercent = false) {
  88601. let formattedText = '';
  88602. let isZero = false;
  88603. if (!isFinite(value)) {
  88604. formattedText = getLocaleNumberSymbol(locale, NumberSymbol.Infinity);
  88605. }
  88606. else {
  88607. let parsedNumber = parseNumber(value);
  88608. if (isPercent) {
  88609. parsedNumber = toPercent(parsedNumber);
  88610. }
  88611. let minInt = pattern.minInt;
  88612. let minFraction = pattern.minFrac;
  88613. let maxFraction = pattern.maxFrac;
  88614. if (digitsInfo) {
  88615. const parts = digitsInfo.match(NUMBER_FORMAT_REGEXP);
  88616. if (parts === null) {
  88617. throw new Error(`${digitsInfo} is not a valid digit info`);
  88618. }
  88619. const minIntPart = parts[1];
  88620. const minFractionPart = parts[3];
  88621. const maxFractionPart = parts[5];
  88622. if (minIntPart != null) {
  88623. minInt = parseIntAutoRadix(minIntPart);
  88624. }
  88625. if (minFractionPart != null) {
  88626. minFraction = parseIntAutoRadix(minFractionPart);
  88627. }
  88628. if (maxFractionPart != null) {
  88629. maxFraction = parseIntAutoRadix(maxFractionPart);
  88630. }
  88631. else if (minFractionPart != null && minFraction > maxFraction) {
  88632. maxFraction = minFraction;
  88633. }
  88634. }
  88635. roundNumber(parsedNumber, minFraction, maxFraction);
  88636. let digits = parsedNumber.digits;
  88637. let integerLen = parsedNumber.integerLen;
  88638. const exponent = parsedNumber.exponent;
  88639. let decimals = [];
  88640. isZero = digits.every(d => !d);
  88641. // pad zeros for small numbers
  88642. for (; integerLen < minInt; integerLen++) {
  88643. digits.unshift(0);
  88644. }
  88645. // pad zeros for small numbers
  88646. for (; integerLen < 0; integerLen++) {
  88647. digits.unshift(0);
  88648. }
  88649. // extract decimals digits
  88650. if (integerLen > 0) {
  88651. decimals = digits.splice(integerLen, digits.length);
  88652. }
  88653. else {
  88654. decimals = digits;
  88655. digits = [0];
  88656. }
  88657. // format the integer digits with grouping separators
  88658. const groups = [];
  88659. if (digits.length >= pattern.lgSize) {
  88660. groups.unshift(digits.splice(-pattern.lgSize, digits.length).join(''));
  88661. }
  88662. while (digits.length > pattern.gSize) {
  88663. groups.unshift(digits.splice(-pattern.gSize, digits.length).join(''));
  88664. }
  88665. if (digits.length) {
  88666. groups.unshift(digits.join(''));
  88667. }
  88668. formattedText = groups.join(getLocaleNumberSymbol(locale, groupSymbol));
  88669. // append the decimal digits
  88670. if (decimals.length) {
  88671. formattedText += getLocaleNumberSymbol(locale, decimalSymbol) + decimals.join('');
  88672. }
  88673. if (exponent) {
  88674. formattedText += getLocaleNumberSymbol(locale, NumberSymbol.Exponential) + '+' + exponent;
  88675. }
  88676. }
  88677. if (value < 0 && !isZero) {
  88678. formattedText = pattern.negPre + formattedText + pattern.negSuf;
  88679. }
  88680. else {
  88681. formattedText = pattern.posPre + formattedText + pattern.posSuf;
  88682. }
  88683. return formattedText;
  88684. }
  88685. /**
  88686. * @ngModule CommonModule
  88687. * @description
  88688. *
  88689. * Formats a number as currency using locale rules.
  88690. *
  88691. * @param value The number to format.
  88692. * @param locale A locale code for the locale format rules to use.
  88693. * @param currency A string containing the currency symbol or its name,
  88694. * such as "$" or "Canadian Dollar". Used in output string, but does not affect the operation
  88695. * of the function.
  88696. * @param currencyCode The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)
  88697. * currency code, such as `USD` for the US dollar and `EUR` for the euro.
  88698. * Used to determine the number of digits in the decimal part.
  88699. * @param digitInfo Decimal representation options, specified by a string in the following format:
  88700. * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
  88701. *
  88702. * @returns The formatted currency value.
  88703. *
  88704. * @see `formatNumber()`
  88705. * @see `DecimalPipe`
  88706. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  88707. *
  88708. * @publicApi
  88709. */
  88710. function formatCurrency(value, locale, currency, currencyCode, digitsInfo) {
  88711. const format = getLocaleNumberFormat(locale, NumberFormatStyle.Currency);
  88712. const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
  88713. pattern.minFrac = getNumberOfCurrencyDigits(currencyCode);
  88714. pattern.maxFrac = pattern.minFrac;
  88715. const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.CurrencyGroup, NumberSymbol.CurrencyDecimal, digitsInfo);
  88716. return res
  88717. .replace(CURRENCY_CHAR, currency)
  88718. // if we have 2 time the currency character, the second one is ignored
  88719. .replace(CURRENCY_CHAR, '')
  88720. // If there is a spacing between currency character and the value and
  88721. // the currency character is supressed by passing an empty string, the
  88722. // spacing character would remain as part of the string. Then we
  88723. // should remove it.
  88724. .trim();
  88725. }
  88726. /**
  88727. * @ngModule CommonModule
  88728. * @description
  88729. *
  88730. * Formats a number as a percentage according to locale rules.
  88731. *
  88732. * @param value The number to format.
  88733. * @param locale A locale code for the locale format rules to use.
  88734. * @param digitInfo Decimal representation options, specified by a string in the following format:
  88735. * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
  88736. *
  88737. * @returns The formatted percentage value.
  88738. *
  88739. * @see `formatNumber()`
  88740. * @see `DecimalPipe`
  88741. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  88742. * @publicApi
  88743. *
  88744. */
  88745. function formatPercent(value, locale, digitsInfo) {
  88746. const format = getLocaleNumberFormat(locale, NumberFormatStyle.Percent);
  88747. const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
  88748. const res = formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo, true);
  88749. return res.replace(new RegExp(PERCENT_CHAR, 'g'), getLocaleNumberSymbol(locale, NumberSymbol.PercentSign));
  88750. }
  88751. /**
  88752. * @ngModule CommonModule
  88753. * @description
  88754. *
  88755. * Formats a number as text, with group sizing, separator, and other
  88756. * parameters based on the locale.
  88757. *
  88758. * @param value The number to format.
  88759. * @param locale A locale code for the locale format rules to use.
  88760. * @param digitInfo Decimal representation options, specified by a string in the following format:
  88761. * `{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}`. See `DecimalPipe` for more details.
  88762. *
  88763. * @returns The formatted text string.
  88764. * @see [Internationalization (i18n) Guide](https://angular.io/guide/i18n)
  88765. *
  88766. * @publicApi
  88767. */
  88768. function formatNumber(value, locale, digitsInfo) {
  88769. const format = getLocaleNumberFormat(locale, NumberFormatStyle.Decimal);
  88770. const pattern = parseNumberFormat(format, getLocaleNumberSymbol(locale, NumberSymbol.MinusSign));
  88771. return formatNumberToLocaleString(value, pattern, locale, NumberSymbol.Group, NumberSymbol.Decimal, digitsInfo);
  88772. }
  88773. function parseNumberFormat(format, minusSign = '-') {
  88774. const p = {
  88775. minInt: 1,
  88776. minFrac: 0,
  88777. maxFrac: 0,
  88778. posPre: '',
  88779. posSuf: '',
  88780. negPre: '',
  88781. negSuf: '',
  88782. gSize: 0,
  88783. lgSize: 0
  88784. };
  88785. const patternParts = format.split(PATTERN_SEP);
  88786. const positive = patternParts[0];
  88787. const negative = patternParts[1];
  88788. const positiveParts = positive.indexOf(DECIMAL_SEP) !== -1 ?
  88789. positive.split(DECIMAL_SEP) :
  88790. [
  88791. positive.substring(0, positive.lastIndexOf(ZERO_CHAR) + 1),
  88792. positive.substring(positive.lastIndexOf(ZERO_CHAR) + 1)
  88793. ], integer = positiveParts[0], fraction = positiveParts[1] || '';
  88794. p.posPre = integer.substr(0, integer.indexOf(DIGIT_CHAR));
  88795. for (let i = 0; i < fraction.length; i++) {
  88796. const ch = fraction.charAt(i);
  88797. if (ch === ZERO_CHAR) {
  88798. p.minFrac = p.maxFrac = i + 1;
  88799. }
  88800. else if (ch === DIGIT_CHAR) {
  88801. p.maxFrac = i + 1;
  88802. }
  88803. else {
  88804. p.posSuf += ch;
  88805. }
  88806. }
  88807. const groups = integer.split(GROUP_SEP);
  88808. p.gSize = groups[1] ? groups[1].length : 0;
  88809. p.lgSize = (groups[2] || groups[1]) ? (groups[2] || groups[1]).length : 0;
  88810. if (negative) {
  88811. const trunkLen = positive.length - p.posPre.length - p.posSuf.length, pos = negative.indexOf(DIGIT_CHAR);
  88812. p.negPre = negative.substr(0, pos).replace(/'/g, '');
  88813. p.negSuf = negative.substr(pos + trunkLen).replace(/'/g, '');
  88814. }
  88815. else {
  88816. p.negPre = minusSign + p.posPre;
  88817. p.negSuf = p.posSuf;
  88818. }
  88819. return p;
  88820. }
  88821. // Transforms a parsed number into a percentage by multiplying it by 100
  88822. function toPercent(parsedNumber) {
  88823. // if the number is 0, don't do anything
  88824. if (parsedNumber.digits[0] === 0) {
  88825. return parsedNumber;
  88826. }
  88827. // Getting the current number of decimals
  88828. const fractionLen = parsedNumber.digits.length - parsedNumber.integerLen;
  88829. if (parsedNumber.exponent) {
  88830. parsedNumber.exponent += 2;
  88831. }
  88832. else {
  88833. if (fractionLen === 0) {
  88834. parsedNumber.digits.push(0, 0);
  88835. }
  88836. else if (fractionLen === 1) {
  88837. parsedNumber.digits.push(0);
  88838. }
  88839. parsedNumber.integerLen += 2;
  88840. }
  88841. return parsedNumber;
  88842. }
  88843. /**
  88844. * Parses a number.
  88845. * Significant bits of this parse algorithm came from https://github.com/MikeMcl/big.js/
  88846. */
  88847. function parseNumber(num) {
  88848. let numStr = Math.abs(num) + '';
  88849. let exponent = 0, digits, integerLen;
  88850. let i, j, zeros;
  88851. // Decimal point?
  88852. if ((integerLen = numStr.indexOf(DECIMAL_SEP)) > -1) {
  88853. numStr = numStr.replace(DECIMAL_SEP, '');
  88854. }
  88855. // Exponential form?
  88856. if ((i = numStr.search(/e/i)) > 0) {
  88857. // Work out the exponent.
  88858. if (integerLen < 0)
  88859. integerLen = i;
  88860. integerLen += +numStr.slice(i + 1);
  88861. numStr = numStr.substring(0, i);
  88862. }
  88863. else if (integerLen < 0) {
  88864. // There was no decimal point or exponent so it is an integer.
  88865. integerLen = numStr.length;
  88866. }
  88867. // Count the number of leading zeros.
  88868. for (i = 0; numStr.charAt(i) === ZERO_CHAR; i++) { /* empty */
  88869. }
  88870. if (i === (zeros = numStr.length)) {
  88871. // The digits are all zero.
  88872. digits = [0];
  88873. integerLen = 1;
  88874. }
  88875. else {
  88876. // Count the number of trailing zeros
  88877. zeros--;
  88878. while (numStr.charAt(zeros) === ZERO_CHAR)
  88879. zeros--;
  88880. // Trailing zeros are insignificant so ignore them
  88881. integerLen -= i;
  88882. digits = [];
  88883. // Convert string to array of digits without leading/trailing zeros.
  88884. for (j = 0; i <= zeros; i++, j++) {
  88885. digits[j] = Number(numStr.charAt(i));
  88886. }
  88887. }
  88888. // If the number overflows the maximum allowed digits then use an exponent.
  88889. if (integerLen > MAX_DIGITS) {
  88890. digits = digits.splice(0, MAX_DIGITS - 1);
  88891. exponent = integerLen - 1;
  88892. integerLen = 1;
  88893. }
  88894. return { digits, exponent, integerLen };
  88895. }
  88896. /**
  88897. * Round the parsed number to the specified number of decimal places
  88898. * This function changes the parsedNumber in-place
  88899. */
  88900. function roundNumber(parsedNumber, minFrac, maxFrac) {
  88901. if (minFrac > maxFrac) {
  88902. throw new Error(`The minimum number of digits after fraction (${minFrac}) is higher than the maximum (${maxFrac}).`);
  88903. }
  88904. let digits = parsedNumber.digits;
  88905. let fractionLen = digits.length - parsedNumber.integerLen;
  88906. const fractionSize = Math.min(Math.max(minFrac, fractionLen), maxFrac);
  88907. // The index of the digit to where rounding is to occur
  88908. let roundAt = fractionSize + parsedNumber.integerLen;
  88909. let digit = digits[roundAt];
  88910. if (roundAt > 0) {
  88911. // Drop fractional digits beyond `roundAt`
  88912. digits.splice(Math.max(parsedNumber.integerLen, roundAt));
  88913. // Set non-fractional digits beyond `roundAt` to 0
  88914. for (let j = roundAt; j < digits.length; j++) {
  88915. digits[j] = 0;
  88916. }
  88917. }
  88918. else {
  88919. // We rounded to zero so reset the parsedNumber
  88920. fractionLen = Math.max(0, fractionLen);
  88921. parsedNumber.integerLen = 1;
  88922. digits.length = Math.max(1, roundAt = fractionSize + 1);
  88923. digits[0] = 0;
  88924. for (let i = 1; i < roundAt; i++)
  88925. digits[i] = 0;
  88926. }
  88927. if (digit >= 5) {
  88928. if (roundAt - 1 < 0) {
  88929. for (let k = 0; k > roundAt; k--) {
  88930. digits.unshift(0);
  88931. parsedNumber.integerLen++;
  88932. }
  88933. digits.unshift(1);
  88934. parsedNumber.integerLen++;
  88935. }
  88936. else {
  88937. digits[roundAt - 1]++;
  88938. }
  88939. }
  88940. // Pad out with zeros to get the required fraction length
  88941. for (; fractionLen < Math.max(0, fractionSize); fractionLen++)
  88942. digits.push(0);
  88943. let dropTrailingZeros = fractionSize !== 0;
  88944. // Minimal length = nb of decimals required + current nb of integers
  88945. // Any number besides that is optional and can be removed if it's a trailing 0
  88946. const minLen = minFrac + parsedNumber.integerLen;
  88947. // Do any carrying, e.g. a digit was rounded up to 10
  88948. const carry = digits.reduceRight(function (carry, d, i, digits) {
  88949. d = d + carry;
  88950. digits[i] = d < 10 ? d : d - 10; // d % 10
  88951. if (dropTrailingZeros) {
  88952. // Do not keep meaningless fractional trailing zeros (e.g. 15.52000 --> 15.52)
  88953. if (digits[i] === 0 && i >= minLen) {
  88954. digits.pop();
  88955. }
  88956. else {
  88957. dropTrailingZeros = false;
  88958. }
  88959. }
  88960. return d >= 10 ? 1 : 0; // Math.floor(d / 10);
  88961. }, 0);
  88962. if (carry) {
  88963. digits.unshift(carry);
  88964. parsedNumber.integerLen++;
  88965. }
  88966. }
  88967. function parseIntAutoRadix(text) {
  88968. const result = parseInt(text);
  88969. if (isNaN(result)) {
  88970. throw new Error('Invalid integer literal when parsing ' + text);
  88971. }
  88972. return result;
  88973. }
  88974. /**
  88975. * @license
  88976. * Copyright Google LLC All Rights Reserved.
  88977. *
  88978. * Use of this source code is governed by an MIT-style license that can be
  88979. * found in the LICENSE file at https://angular.io/license
  88980. */
  88981. /**
  88982. * @publicApi
  88983. */
  88984. class NgLocalization {
  88985. }
  88986. /**
  88987. * Returns the plural category for a given value.
  88988. * - "=value" when the case exists,
  88989. * - the plural category otherwise
  88990. */
  88991. function getPluralCategory(value, cases, ngLocalization, locale) {
  88992. let key = `=${value}`;
  88993. if (cases.indexOf(key) > -1) {
  88994. return key;
  88995. }
  88996. key = ngLocalization.getPluralCategory(value, locale);
  88997. if (cases.indexOf(key) > -1) {
  88998. return key;
  88999. }
  89000. if (cases.indexOf('other') > -1) {
  89001. return 'other';
  89002. }
  89003. throw new Error(`No plural message found for value "${value}"`);
  89004. }
  89005. /**
  89006. * Returns the plural case based on the locale
  89007. *
  89008. * @publicApi
  89009. */
  89010. class NgLocaleLocalization extends NgLocalization {
  89011. constructor(locale) {
  89012. super();
  89013. this.locale = locale;
  89014. }
  89015. getPluralCategory(value, locale) {
  89016. const plural = getLocalePluralCase(locale || this.locale)(value);
  89017. switch (plural) {
  89018. case Plural.Zero:
  89019. return 'zero';
  89020. case Plural.One:
  89021. return 'one';
  89022. case Plural.Two:
  89023. return 'two';
  89024. case Plural.Few:
  89025. return 'few';
  89026. case Plural.Many:
  89027. return 'many';
  89028. default:
  89029. return 'other';
  89030. }
  89031. }
  89032. }
  89033. NgLocaleLocalization.ɵfac = function NgLocaleLocalization_Factory(t) { return new (t || NgLocaleLocalization)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"])); };
  89034. NgLocaleLocalization.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NgLocaleLocalization, factory: NgLocaleLocalization.ɵfac });
  89035. NgLocaleLocalization.ctorParameters = () => [
  89036. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"],] }] }
  89037. ];
  89038. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgLocaleLocalization, [{
  89039. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  89040. }], function () { return [{ type: String, decorators: [{
  89041. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  89042. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
  89043. }] }]; }, null); })();
  89044. /**
  89045. * @license
  89046. * Copyright Google LLC All Rights Reserved.
  89047. *
  89048. * Use of this source code is governed by an MIT-style license that can be
  89049. * found in the LICENSE file at https://angular.io/license
  89050. */
  89051. /**
  89052. * Register global data to be used internally by Angular. See the
  89053. * ["I18n guide"](guide/i18n#i18n-pipes) to know how to import additional locale data.
  89054. *
  89055. * The signature registerLocaleData(data: any, extraData?: any) is deprecated since v5.1
  89056. *
  89057. * @publicApi
  89058. */
  89059. function registerLocaleData(data, localeId, extraData) {
  89060. return Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵregisterLocaleData"])(data, localeId, extraData);
  89061. }
  89062. /**
  89063. * @license
  89064. * Copyright Google LLC All Rights Reserved.
  89065. *
  89066. * Use of this source code is governed by an MIT-style license that can be
  89067. * found in the LICENSE file at https://angular.io/license
  89068. */
  89069. function parseCookieValue(cookieStr, name) {
  89070. name = encodeURIComponent(name);
  89071. for (const cookie of cookieStr.split(';')) {
  89072. const eqIndex = cookie.indexOf('=');
  89073. const [cookieName, cookieValue] = eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];
  89074. if (cookieName.trim() === name) {
  89075. return decodeURIComponent(cookieValue);
  89076. }
  89077. }
  89078. return null;
  89079. }
  89080. /**
  89081. * @license
  89082. * Copyright Google LLC All Rights Reserved.
  89083. *
  89084. * Use of this source code is governed by an MIT-style license that can be
  89085. * found in the LICENSE file at https://angular.io/license
  89086. */
  89087. /**
  89088. * @ngModule CommonModule
  89089. *
  89090. * @usageNotes
  89091. * ```
  89092. * <some-element [ngClass]="'first second'">...</some-element>
  89093. *
  89094. * <some-element [ngClass]="['first', 'second']">...</some-element>
  89095. *
  89096. * <some-element [ngClass]="{'first': true, 'second': true, 'third': false}">...</some-element>
  89097. *
  89098. * <some-element [ngClass]="stringExp|arrayExp|objExp">...</some-element>
  89099. *
  89100. * <some-element [ngClass]="{'class1 class2 class3' : true}">...</some-element>
  89101. * ```
  89102. *
  89103. * @description
  89104. *
  89105. * Adds and removes CSS classes on an HTML element.
  89106. *
  89107. * The CSS classes are updated as follows, depending on the type of the expression evaluation:
  89108. * - `string` - the CSS classes listed in the string (space delimited) are added,
  89109. * - `Array` - the CSS classes declared as Array elements are added,
  89110. * - `Object` - keys are CSS classes that get added when the expression given in the value
  89111. * evaluates to a truthy value, otherwise they are removed.
  89112. *
  89113. * @publicApi
  89114. */
  89115. class NgClass {
  89116. constructor(_iterableDiffers, _keyValueDiffers, _ngEl, _renderer) {
  89117. this._iterableDiffers = _iterableDiffers;
  89118. this._keyValueDiffers = _keyValueDiffers;
  89119. this._ngEl = _ngEl;
  89120. this._renderer = _renderer;
  89121. this._iterableDiffer = null;
  89122. this._keyValueDiffer = null;
  89123. this._initialClasses = [];
  89124. this._rawClass = null;
  89125. }
  89126. set klass(value) {
  89127. this._removeClasses(this._initialClasses);
  89128. this._initialClasses = typeof value === 'string' ? value.split(/\s+/) : [];
  89129. this._applyClasses(this._initialClasses);
  89130. this._applyClasses(this._rawClass);
  89131. }
  89132. set ngClass(value) {
  89133. this._removeClasses(this._rawClass);
  89134. this._applyClasses(this._initialClasses);
  89135. this._iterableDiffer = null;
  89136. this._keyValueDiffer = null;
  89137. this._rawClass = typeof value === 'string' ? value.split(/\s+/) : value;
  89138. if (this._rawClass) {
  89139. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisListLikeIterable"])(this._rawClass)) {
  89140. this._iterableDiffer = this._iterableDiffers.find(this._rawClass).create();
  89141. }
  89142. else {
  89143. this._keyValueDiffer = this._keyValueDiffers.find(this._rawClass).create();
  89144. }
  89145. }
  89146. }
  89147. ngDoCheck() {
  89148. if (this._iterableDiffer) {
  89149. const iterableChanges = this._iterableDiffer.diff(this._rawClass);
  89150. if (iterableChanges) {
  89151. this._applyIterableChanges(iterableChanges);
  89152. }
  89153. }
  89154. else if (this._keyValueDiffer) {
  89155. const keyValueChanges = this._keyValueDiffer.diff(this._rawClass);
  89156. if (keyValueChanges) {
  89157. this._applyKeyValueChanges(keyValueChanges);
  89158. }
  89159. }
  89160. }
  89161. _applyKeyValueChanges(changes) {
  89162. changes.forEachAddedItem((record) => this._toggleClass(record.key, record.currentValue));
  89163. changes.forEachChangedItem((record) => this._toggleClass(record.key, record.currentValue));
  89164. changes.forEachRemovedItem((record) => {
  89165. if (record.previousValue) {
  89166. this._toggleClass(record.key, false);
  89167. }
  89168. });
  89169. }
  89170. _applyIterableChanges(changes) {
  89171. changes.forEachAddedItem((record) => {
  89172. if (typeof record.item === 'string') {
  89173. this._toggleClass(record.item, true);
  89174. }
  89175. else {
  89176. throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(record.item)}`);
  89177. }
  89178. });
  89179. changes.forEachRemovedItem((record) => this._toggleClass(record.item, false));
  89180. }
  89181. /**
  89182. * Applies a collection of CSS classes to the DOM element.
  89183. *
  89184. * For argument of type Set and Array CSS class names contained in those collections are always
  89185. * added.
  89186. * For argument of type Map CSS class name in the map's key is toggled based on the value (added
  89187. * for truthy and removed for falsy).
  89188. */
  89189. _applyClasses(rawClassVal) {
  89190. if (rawClassVal) {
  89191. if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {
  89192. rawClassVal.forEach((klass) => this._toggleClass(klass, true));
  89193. }
  89194. else {
  89195. Object.keys(rawClassVal).forEach(klass => this._toggleClass(klass, !!rawClassVal[klass]));
  89196. }
  89197. }
  89198. }
  89199. /**
  89200. * Removes a collection of CSS classes from the DOM element. This is mostly useful for cleanup
  89201. * purposes.
  89202. */
  89203. _removeClasses(rawClassVal) {
  89204. if (rawClassVal) {
  89205. if (Array.isArray(rawClassVal) || rawClassVal instanceof Set) {
  89206. rawClassVal.forEach((klass) => this._toggleClass(klass, false));
  89207. }
  89208. else {
  89209. Object.keys(rawClassVal).forEach(klass => this._toggleClass(klass, false));
  89210. }
  89211. }
  89212. }
  89213. _toggleClass(klass, enabled) {
  89214. klass = klass.trim();
  89215. if (klass) {
  89216. klass.split(/\s+/g).forEach(klass => {
  89217. if (enabled) {
  89218. this._renderer.addClass(this._ngEl.nativeElement, klass);
  89219. }
  89220. else {
  89221. this._renderer.removeClass(this._ngEl.nativeElement, klass);
  89222. }
  89223. });
  89224. }
  89225. }
  89226. }
  89227. NgClass.ɵfac = function NgClass_Factory(t) { return new (t || NgClass)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"])); };
  89228. NgClass.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgClass, selectors: [["", "ngClass", ""]], inputs: { klass: ["class", "klass"], ngClass: "ngClass" } });
  89229. NgClass.ctorParameters = () => [
  89230. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"] },
  89231. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] },
  89232. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  89233. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }
  89234. ];
  89235. NgClass.propDecorators = {
  89236. klass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['class',] }],
  89237. ngClass: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngClass',] }]
  89238. };
  89239. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgClass, [{
  89240. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  89241. args: [{ selector: '[ngClass]' }]
  89242. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }]; }, { klass: [{
  89243. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  89244. args: ['class']
  89245. }], ngClass: [{
  89246. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  89247. args: ['ngClass']
  89248. }] }); })();
  89249. /**
  89250. * @license
  89251. * Copyright Google LLC All Rights Reserved.
  89252. *
  89253. * Use of this source code is governed by an MIT-style license that can be
  89254. * found in the LICENSE file at https://angular.io/license
  89255. */
  89256. /**
  89257. * Instantiates a single {@link Component} type and inserts its Host View into current View.
  89258. * `NgComponentOutlet` provides a declarative approach for dynamic component creation.
  89259. *
  89260. * `NgComponentOutlet` requires a component type, if a falsy value is set the view will clear and
  89261. * any existing component will get destroyed.
  89262. *
  89263. * @usageNotes
  89264. *
  89265. * ### Fine tune control
  89266. *
  89267. * You can control the component creation process by using the following optional attributes:
  89268. *
  89269. * * `ngComponentOutletInjector`: Optional custom {@link Injector} that will be used as parent for
  89270. * the Component. Defaults to the injector of the current view container.
  89271. *
  89272. * * `ngComponentOutletContent`: Optional list of projectable nodes to insert into the content
  89273. * section of the component, if exists.
  89274. *
  89275. * * `ngComponentOutletNgModuleFactory`: Optional module factory to allow dynamically loading other
  89276. * module, then load a component from that module.
  89277. *
  89278. * ### Syntax
  89279. *
  89280. * Simple
  89281. * ```
  89282. * <ng-container *ngComponentOutlet="componentTypeExpression"></ng-container>
  89283. * ```
  89284. *
  89285. * Customized injector/content
  89286. * ```
  89287. * <ng-container *ngComponentOutlet="componentTypeExpression;
  89288. * injector: injectorExpression;
  89289. * content: contentNodesExpression;">
  89290. * </ng-container>
  89291. * ```
  89292. *
  89293. * Customized ngModuleFactory
  89294. * ```
  89295. * <ng-container *ngComponentOutlet="componentTypeExpression;
  89296. * ngModuleFactory: moduleFactory;">
  89297. * </ng-container>
  89298. * ```
  89299. *
  89300. * ### A simple example
  89301. *
  89302. * {@example common/ngComponentOutlet/ts/module.ts region='SimpleExample'}
  89303. *
  89304. * A more complete example with additional options:
  89305. *
  89306. * {@example common/ngComponentOutlet/ts/module.ts region='CompleteExample'}
  89307. *
  89308. * @publicApi
  89309. * @ngModule CommonModule
  89310. */
  89311. class NgComponentOutlet {
  89312. constructor(_viewContainerRef) {
  89313. this._viewContainerRef = _viewContainerRef;
  89314. this._componentRef = null;
  89315. this._moduleRef = null;
  89316. }
  89317. ngOnChanges(changes) {
  89318. this._viewContainerRef.clear();
  89319. this._componentRef = null;
  89320. if (this.ngComponentOutlet) {
  89321. const elInjector = this.ngComponentOutletInjector || this._viewContainerRef.parentInjector;
  89322. if (changes['ngComponentOutletNgModuleFactory']) {
  89323. if (this._moduleRef)
  89324. this._moduleRef.destroy();
  89325. if (this.ngComponentOutletNgModuleFactory) {
  89326. const parentModule = elInjector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModuleRef"]);
  89327. this._moduleRef = this.ngComponentOutletNgModuleFactory.create(parentModule.injector);
  89328. }
  89329. else {
  89330. this._moduleRef = null;
  89331. }
  89332. }
  89333. const componentFactoryResolver = this._moduleRef ? this._moduleRef.componentFactoryResolver :
  89334. elInjector.get(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ComponentFactoryResolver"]);
  89335. const componentFactory = componentFactoryResolver.resolveComponentFactory(this.ngComponentOutlet);
  89336. this._componentRef = this._viewContainerRef.createComponent(componentFactory, this._viewContainerRef.length, elInjector, this.ngComponentOutletContent);
  89337. }
  89338. }
  89339. ngOnDestroy() {
  89340. if (this._moduleRef)
  89341. this._moduleRef.destroy();
  89342. }
  89343. }
  89344. NgComponentOutlet.ɵfac = function NgComponentOutlet_Factory(t) { return new (t || NgComponentOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"])); };
  89345. NgComponentOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgComponentOutlet, selectors: [["", "ngComponentOutlet", ""]], inputs: { ngComponentOutlet: "ngComponentOutlet", ngComponentOutletInjector: "ngComponentOutletInjector", ngComponentOutletContent: "ngComponentOutletContent", ngComponentOutletNgModuleFactory: "ngComponentOutletNgModuleFactory" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  89346. NgComponentOutlet.ctorParameters = () => [
  89347. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }
  89348. ];
  89349. NgComponentOutlet.propDecorators = {
  89350. ngComponentOutlet: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  89351. ngComponentOutletInjector: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  89352. ngComponentOutletContent: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  89353. ngComponentOutletNgModuleFactory: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  89354. };
  89355. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgComponentOutlet, [{
  89356. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  89357. args: [{ selector: '[ngComponentOutlet]' }]
  89358. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }]; }, { ngComponentOutlet: [{
  89359. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89360. }], ngComponentOutletInjector: [{
  89361. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89362. }], ngComponentOutletContent: [{
  89363. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89364. }], ngComponentOutletNgModuleFactory: [{
  89365. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89366. }] }); })();
  89367. /**
  89368. * @license
  89369. * Copyright Google LLC All Rights Reserved.
  89370. *
  89371. * Use of this source code is governed by an MIT-style license that can be
  89372. * found in the LICENSE file at https://angular.io/license
  89373. */
  89374. /**
  89375. * @publicApi
  89376. */
  89377. class NgForOfContext {
  89378. constructor($implicit, ngForOf, index, count) {
  89379. this.$implicit = $implicit;
  89380. this.ngForOf = ngForOf;
  89381. this.index = index;
  89382. this.count = count;
  89383. }
  89384. get first() {
  89385. return this.index === 0;
  89386. }
  89387. get last() {
  89388. return this.index === this.count - 1;
  89389. }
  89390. get even() {
  89391. return this.index % 2 === 0;
  89392. }
  89393. get odd() {
  89394. return !this.even;
  89395. }
  89396. }
  89397. /**
  89398. * A [structural directive](guide/structural-directives) that renders
  89399. * a template for each item in a collection.
  89400. * The directive is placed on an element, which becomes the parent
  89401. * of the cloned templates.
  89402. *
  89403. * The `ngForOf` directive is generally used in the
  89404. * [shorthand form](guide/structural-directives#the-asterisk--prefix) `*ngFor`.
  89405. * In this form, the template to be rendered for each iteration is the content
  89406. * of an anchor element containing the directive.
  89407. *
  89408. * The following example shows the shorthand syntax with some options,
  89409. * contained in an `<li>` element.
  89410. *
  89411. * ```
  89412. * <li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
  89413. * ```
  89414. *
  89415. * The shorthand form expands into a long form that uses the `ngForOf` selector
  89416. * on an `<ng-template>` element.
  89417. * The content of the `<ng-template>` element is the `<li>` element that held the
  89418. * short-form directive.
  89419. *
  89420. * Here is the expanded version of the short-form example.
  89421. *
  89422. * ```
  89423. * <ng-template ngFor let-item [ngForOf]="items" let-i="index" [ngForTrackBy]="trackByFn">
  89424. * <li>...</li>
  89425. * </ng-template>
  89426. * ```
  89427. *
  89428. * Angular automatically expands the shorthand syntax as it compiles the template.
  89429. * The context for each embedded view is logically merged to the current component
  89430. * context according to its lexical position.
  89431. *
  89432. * When using the shorthand syntax, Angular allows only [one structural directive
  89433. * on an element](guide/structural-directives#one-structural-directive-per-host-element).
  89434. * If you want to iterate conditionally, for example,
  89435. * put the `*ngIf` on a container element that wraps the `*ngFor` element.
  89436. * For futher discussion, see
  89437. * [Structural Directives](guide/structural-directives#one-per-element).
  89438. *
  89439. * @usageNotes
  89440. *
  89441. * ### Local variables
  89442. *
  89443. * `NgForOf` provides exported values that can be aliased to local variables.
  89444. * For example:
  89445. *
  89446. * ```
  89447. * <li *ngFor="let user of users; index as i; first as isFirst">
  89448. * {{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
  89449. * </li>
  89450. * ```
  89451. *
  89452. * The following exported values can be aliased to local variables:
  89453. *
  89454. * - `$implicit: T`: The value of the individual items in the iterable (`ngForOf`).
  89455. * - `ngForOf: NgIterable<T>`: The value of the iterable expression. Useful when the expression is
  89456. * more complex then a property access, for example when using the async pipe (`userStreams |
  89457. * async`).
  89458. * - `index: number`: The index of the current item in the iterable.
  89459. * - `count: number`: The length of the iterable.
  89460. * - `first: boolean`: True when the item is the first item in the iterable.
  89461. * - `last: boolean`: True when the item is the last item in the iterable.
  89462. * - `even: boolean`: True when the item has an even index in the iterable.
  89463. * - `odd: boolean`: True when the item has an odd index in the iterable.
  89464. *
  89465. * ### Change propagation
  89466. *
  89467. * When the contents of the iterator changes, `NgForOf` makes the corresponding changes to the DOM:
  89468. *
  89469. * * When an item is added, a new instance of the template is added to the DOM.
  89470. * * When an item is removed, its template instance is removed from the DOM.
  89471. * * When items are reordered, their respective templates are reordered in the DOM.
  89472. *
  89473. * Angular uses object identity to track insertions and deletions within the iterator and reproduce
  89474. * those changes in the DOM. This has important implications for animations and any stateful
  89475. * controls that are present, such as `<input>` elements that accept user input. Inserted rows can
  89476. * be animated in, deleted rows can be animated out, and unchanged rows retain any unsaved state
  89477. * such as user input.
  89478. * For more on animations, see [Transitions and Triggers](guide/transition-and-triggers).
  89479. *
  89480. * The identities of elements in the iterator can change while the data does not.
  89481. * This can happen, for example, if the iterator is produced from an RPC to the server, and that
  89482. * RPC is re-run. Even if the data hasn't changed, the second response produces objects with
  89483. * different identities, and Angular must tear down the entire DOM and rebuild it (as if all old
  89484. * elements were deleted and all new elements inserted).
  89485. *
  89486. * To avoid this expensive operation, you can customize the default tracking algorithm.
  89487. * by supplying the `trackBy` option to `NgForOf`.
  89488. * `trackBy` takes a function that has two arguments: `index` and `item`.
  89489. * If `trackBy` is given, Angular tracks changes by the return value of the function.
  89490. *
  89491. * @see [Structural Directives](guide/structural-directives)
  89492. * @ngModule CommonModule
  89493. * @publicApi
  89494. */
  89495. class NgForOf {
  89496. constructor(_viewContainer, _template, _differs) {
  89497. this._viewContainer = _viewContainer;
  89498. this._template = _template;
  89499. this._differs = _differs;
  89500. this._ngForOf = null;
  89501. this._ngForOfDirty = true;
  89502. this._differ = null;
  89503. }
  89504. /**
  89505. * The value of the iterable expression, which can be used as a
  89506. * [template input variable](guide/structural-directives#template-input-variable).
  89507. */
  89508. set ngForOf(ngForOf) {
  89509. this._ngForOf = ngForOf;
  89510. this._ngForOfDirty = true;
  89511. }
  89512. /**
  89513. * A function that defines how to track changes for items in the iterable.
  89514. *
  89515. * When items are added, moved, or removed in the iterable,
  89516. * the directive must re-render the appropriate DOM nodes.
  89517. * To minimize churn in the DOM, only nodes that have changed
  89518. * are re-rendered.
  89519. *
  89520. * By default, the change detector assumes that
  89521. * the object instance identifies the node in the iterable.
  89522. * When this function is supplied, the directive uses
  89523. * the result of calling this function to identify the item node,
  89524. * rather than the identity of the object itself.
  89525. *
  89526. * The function receives two inputs,
  89527. * the iteration index and the associated node data.
  89528. */
  89529. set ngForTrackBy(fn) {
  89530. if ((typeof ngDevMode === 'undefined' || ngDevMode) && fn != null && typeof fn !== 'function') {
  89531. // TODO(vicb): use a log service once there is a public one available
  89532. if (console && console.warn) {
  89533. console.warn(`trackBy must be a function, but received ${JSON.stringify(fn)}. ` +
  89534. `See https://angular.io/api/common/NgForOf#change-propagation for more information.`);
  89535. }
  89536. }
  89537. this._trackByFn = fn;
  89538. }
  89539. get ngForTrackBy() {
  89540. return this._trackByFn;
  89541. }
  89542. /**
  89543. * A reference to the template that is stamped out for each item in the iterable.
  89544. * @see [template reference variable](guide/template-reference-variables)
  89545. */
  89546. set ngForTemplate(value) {
  89547. // TODO(TS2.1): make TemplateRef<Partial<NgForRowOf<T>>> once we move to TS v2.1
  89548. // The current type is too restrictive; a template that just uses index, for example,
  89549. // should be acceptable.
  89550. if (value) {
  89551. this._template = value;
  89552. }
  89553. }
  89554. /**
  89555. * Applies the changes when needed.
  89556. */
  89557. ngDoCheck() {
  89558. if (this._ngForOfDirty) {
  89559. this._ngForOfDirty = false;
  89560. // React on ngForOf changes only once all inputs have been initialized
  89561. const value = this._ngForOf;
  89562. if (!this._differ && value) {
  89563. try {
  89564. this._differ = this._differs.find(value).create(this.ngForTrackBy);
  89565. }
  89566. catch (_a) {
  89567. throw new Error(`Cannot find a differ supporting object '${value}' of type '${getTypeName(value)}'. NgFor only supports binding to Iterables such as Arrays.`);
  89568. }
  89569. }
  89570. }
  89571. if (this._differ) {
  89572. const changes = this._differ.diff(this._ngForOf);
  89573. if (changes)
  89574. this._applyChanges(changes);
  89575. }
  89576. }
  89577. _applyChanges(changes) {
  89578. const insertTuples = [];
  89579. changes.forEachOperation((item, adjustedPreviousIndex, currentIndex) => {
  89580. if (item.previousIndex == null) {
  89581. // NgForOf is never "null" or "undefined" here because the differ detected
  89582. // that a new item needs to be inserted from the iterable. This implies that
  89583. // there is an iterable value for "_ngForOf".
  89584. const view = this._viewContainer.createEmbeddedView(this._template, new NgForOfContext(null, this._ngForOf, -1, -1), currentIndex === null ? undefined : currentIndex);
  89585. const tuple = new RecordViewTuple(item, view);
  89586. insertTuples.push(tuple);
  89587. }
  89588. else if (currentIndex == null) {
  89589. this._viewContainer.remove(adjustedPreviousIndex === null ? undefined : adjustedPreviousIndex);
  89590. }
  89591. else if (adjustedPreviousIndex !== null) {
  89592. const view = this._viewContainer.get(adjustedPreviousIndex);
  89593. this._viewContainer.move(view, currentIndex);
  89594. const tuple = new RecordViewTuple(item, view);
  89595. insertTuples.push(tuple);
  89596. }
  89597. });
  89598. for (let i = 0; i < insertTuples.length; i++) {
  89599. this._perViewChange(insertTuples[i].view, insertTuples[i].record);
  89600. }
  89601. for (let i = 0, ilen = this._viewContainer.length; i < ilen; i++) {
  89602. const viewRef = this._viewContainer.get(i);
  89603. viewRef.context.index = i;
  89604. viewRef.context.count = ilen;
  89605. viewRef.context.ngForOf = this._ngForOf;
  89606. }
  89607. changes.forEachIdentityChange((record) => {
  89608. const viewRef = this._viewContainer.get(record.currentIndex);
  89609. viewRef.context.$implicit = record.item;
  89610. });
  89611. }
  89612. _perViewChange(view, record) {
  89613. view.context.$implicit = record.item;
  89614. }
  89615. /**
  89616. * Asserts the correct type of the context for the template that `NgForOf` will render.
  89617. *
  89618. * The presence of this method is a signal to the Ivy template type-check compiler that the
  89619. * `NgForOf` structural directive renders its template with a specific context type.
  89620. */
  89621. static ngTemplateContextGuard(dir, ctx) {
  89622. return true;
  89623. }
  89624. }
  89625. NgForOf.ɵfac = function NgForOf_Factory(t) { return new (t || NgForOf)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"])); };
  89626. NgForOf.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgForOf, selectors: [["", "ngFor", "", "ngForOf", ""]], inputs: { ngForOf: "ngForOf", ngForTrackBy: "ngForTrackBy", ngForTemplate: "ngForTemplate" } });
  89627. NgForOf.ctorParameters = () => [
  89628. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  89629. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },
  89630. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"] }
  89631. ];
  89632. NgForOf.propDecorators = {
  89633. ngForOf: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  89634. ngForTrackBy: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  89635. ngForTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  89636. };
  89637. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgForOf, [{
  89638. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  89639. args: [{ selector: '[ngFor][ngForOf]' }]
  89640. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["IterableDiffers"] }]; }, { ngForOf: [{
  89641. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89642. }], ngForTrackBy: [{
  89643. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89644. }], ngForTemplate: [{
  89645. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89646. }] }); })();
  89647. class RecordViewTuple {
  89648. constructor(record, view) {
  89649. this.record = record;
  89650. this.view = view;
  89651. }
  89652. }
  89653. function getTypeName(type) {
  89654. return type['name'] || typeof type;
  89655. }
  89656. /**
  89657. * @license
  89658. * Copyright Google LLC All Rights Reserved.
  89659. *
  89660. * Use of this source code is governed by an MIT-style license that can be
  89661. * found in the LICENSE file at https://angular.io/license
  89662. */
  89663. /**
  89664. * A structural directive that conditionally includes a template based on the value of
  89665. * an expression coerced to Boolean.
  89666. * When the expression evaluates to true, Angular renders the template
  89667. * provided in a `then` clause, and when false or null,
  89668. * Angular renders the template provided in an optional `else` clause. The default
  89669. * template for the `else` clause is blank.
  89670. *
  89671. * A [shorthand form](guide/structural-directives#the-asterisk--prefix) of the directive,
  89672. * `*ngIf="condition"`, is generally used, provided
  89673. * as an attribute of the anchor element for the inserted template.
  89674. * Angular expands this into a more explicit version, in which the anchor element
  89675. * is contained in an `<ng-template>` element.
  89676. *
  89677. * Simple form with shorthand syntax:
  89678. *
  89679. * ```
  89680. * <div *ngIf="condition">Content to render when condition is true.</div>
  89681. * ```
  89682. *
  89683. * Simple form with expanded syntax:
  89684. *
  89685. * ```
  89686. * <ng-template [ngIf]="condition"><div>Content to render when condition is
  89687. * true.</div></ng-template>
  89688. * ```
  89689. *
  89690. * Form with an "else" block:
  89691. *
  89692. * ```
  89693. * <div *ngIf="condition; else elseBlock">Content to render when condition is true.</div>
  89694. * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
  89695. * ```
  89696. *
  89697. * Shorthand form with "then" and "else" blocks:
  89698. *
  89699. * ```
  89700. * <div *ngIf="condition; then thenBlock else elseBlock"></div>
  89701. * <ng-template #thenBlock>Content to render when condition is true.</ng-template>
  89702. * <ng-template #elseBlock>Content to render when condition is false.</ng-template>
  89703. * ```
  89704. *
  89705. * Form with storing the value locally:
  89706. *
  89707. * ```
  89708. * <div *ngIf="condition as value; else elseBlock">{{value}}</div>
  89709. * <ng-template #elseBlock>Content to render when value is null.</ng-template>
  89710. * ```
  89711. *
  89712. * @usageNotes
  89713. *
  89714. * The `*ngIf` directive is most commonly used to conditionally show an inline template,
  89715. * as seen in the following example.
  89716. * The default `else` template is blank.
  89717. *
  89718. * {@example common/ngIf/ts/module.ts region='NgIfSimple'}
  89719. *
  89720. * ### Showing an alternative template using `else`
  89721. *
  89722. * To display a template when `expression` evaluates to false, use an `else` template
  89723. * binding as shown in the following example.
  89724. * The `else` binding points to an `<ng-template>` element labeled `#elseBlock`.
  89725. * The template can be defined anywhere in the component view, but is typically placed right after
  89726. * `ngIf` for readability.
  89727. *
  89728. * {@example common/ngIf/ts/module.ts region='NgIfElse'}
  89729. *
  89730. * ### Using an external `then` template
  89731. *
  89732. * In the previous example, the then-clause template is specified inline, as the content of the
  89733. * tag that contains the `ngIf` directive. You can also specify a template that is defined
  89734. * externally, by referencing a labeled `<ng-template>` element. When you do this, you can
  89735. * change which template to use at runtime, as shown in the following example.
  89736. *
  89737. * {@example common/ngIf/ts/module.ts region='NgIfThenElse'}
  89738. *
  89739. * ### Storing a conditional result in a variable
  89740. *
  89741. * You might want to show a set of properties from the same object. If you are waiting
  89742. * for asynchronous data, the object can be undefined.
  89743. * In this case, you can use `ngIf` and store the result of the condition in a local
  89744. * variable as shown in the the following example.
  89745. *
  89746. * {@example common/ngIf/ts/module.ts region='NgIfAs'}
  89747. *
  89748. * This code uses only one `AsyncPipe`, so only one subscription is created.
  89749. * The conditional statement stores the result of `userStream|async` in the local variable `user`.
  89750. * You can then bind the local `user` repeatedly.
  89751. *
  89752. * The conditional displays the data only if `userStream` returns a value,
  89753. * so you don't need to use the
  89754. * safe-navigation-operator (`?.`)
  89755. * to guard against null values when accessing properties.
  89756. * You can display an alternative template while waiting for the data.
  89757. *
  89758. * ### Shorthand syntax
  89759. *
  89760. * The shorthand syntax `*ngIf` expands into two separate template specifications
  89761. * for the "then" and "else" clauses. For example, consider the following shorthand statement,
  89762. * that is meant to show a loading page while waiting for data to be loaded.
  89763. *
  89764. * ```
  89765. * <div class="hero-list" *ngIf="heroes else loading">
  89766. * ...
  89767. * </div>
  89768. *
  89769. * <ng-template #loading>
  89770. * <div>Loading...</div>
  89771. * </ng-template>
  89772. * ```
  89773. *
  89774. * You can see that the "else" clause references the `<ng-template>`
  89775. * with the `#loading` label, and the template for the "then" clause
  89776. * is provided as the content of the anchor element.
  89777. *
  89778. * However, when Angular expands the shorthand syntax, it creates
  89779. * another `<ng-template>` tag, with `ngIf` and `ngIfElse` directives.
  89780. * The anchor element containing the template for the "then" clause becomes
  89781. * the content of this unlabeled `<ng-template>` tag.
  89782. *
  89783. * ```
  89784. * <ng-template [ngIf]="heroes" [ngIfElse]="loading">
  89785. * <div class="hero-list">
  89786. * ...
  89787. * </div>
  89788. * </ng-template>
  89789. *
  89790. * <ng-template #loading>
  89791. * <div>Loading...</div>
  89792. * </ng-template>
  89793. * ```
  89794. *
  89795. * The presence of the implicit template object has implications for the nesting of
  89796. * structural directives. For more on this subject, see
  89797. * [Structural Directives](https://angular.io/guide/structural-directives#one-per-element).
  89798. *
  89799. * @ngModule CommonModule
  89800. * @publicApi
  89801. */
  89802. class NgIf {
  89803. constructor(_viewContainer, templateRef) {
  89804. this._viewContainer = _viewContainer;
  89805. this._context = new NgIfContext();
  89806. this._thenTemplateRef = null;
  89807. this._elseTemplateRef = null;
  89808. this._thenViewRef = null;
  89809. this._elseViewRef = null;
  89810. this._thenTemplateRef = templateRef;
  89811. }
  89812. /**
  89813. * The Boolean expression to evaluate as the condition for showing a template.
  89814. */
  89815. set ngIf(condition) {
  89816. this._context.$implicit = this._context.ngIf = condition;
  89817. this._updateView();
  89818. }
  89819. /**
  89820. * A template to show if the condition expression evaluates to true.
  89821. */
  89822. set ngIfThen(templateRef) {
  89823. assertTemplate('ngIfThen', templateRef);
  89824. this._thenTemplateRef = templateRef;
  89825. this._thenViewRef = null; // clear previous view if any.
  89826. this._updateView();
  89827. }
  89828. /**
  89829. * A template to show if the condition expression evaluates to false.
  89830. */
  89831. set ngIfElse(templateRef) {
  89832. assertTemplate('ngIfElse', templateRef);
  89833. this._elseTemplateRef = templateRef;
  89834. this._elseViewRef = null; // clear previous view if any.
  89835. this._updateView();
  89836. }
  89837. _updateView() {
  89838. if (this._context.$implicit) {
  89839. if (!this._thenViewRef) {
  89840. this._viewContainer.clear();
  89841. this._elseViewRef = null;
  89842. if (this._thenTemplateRef) {
  89843. this._thenViewRef =
  89844. this._viewContainer.createEmbeddedView(this._thenTemplateRef, this._context);
  89845. }
  89846. }
  89847. }
  89848. else {
  89849. if (!this._elseViewRef) {
  89850. this._viewContainer.clear();
  89851. this._thenViewRef = null;
  89852. if (this._elseTemplateRef) {
  89853. this._elseViewRef =
  89854. this._viewContainer.createEmbeddedView(this._elseTemplateRef, this._context);
  89855. }
  89856. }
  89857. }
  89858. }
  89859. /**
  89860. * Asserts the correct type of the context for the template that `NgIf` will render.
  89861. *
  89862. * The presence of this method is a signal to the Ivy template type-check compiler that the
  89863. * `NgIf` structural directive renders its template with a specific context type.
  89864. */
  89865. static ngTemplateContextGuard(dir, ctx) {
  89866. return true;
  89867. }
  89868. }
  89869. NgIf.ɵfac = function NgIf_Factory(t) { return new (t || NgIf)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"])); };
  89870. NgIf.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgIf, selectors: [["", "ngIf", ""]], inputs: { ngIf: "ngIf", ngIfThen: "ngIfThen", ngIfElse: "ngIfElse" } });
  89871. NgIf.ctorParameters = () => [
  89872. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  89873. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }
  89874. ];
  89875. NgIf.propDecorators = {
  89876. ngIf: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  89877. ngIfThen: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  89878. ngIfElse: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  89879. };
  89880. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgIf, [{
  89881. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  89882. args: [{ selector: '[ngIf]' }]
  89883. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }]; }, { ngIf: [{
  89884. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89885. }], ngIfThen: [{
  89886. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89887. }], ngIfElse: [{
  89888. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  89889. }] }); })();
  89890. /**
  89891. * @publicApi
  89892. */
  89893. class NgIfContext {
  89894. constructor() {
  89895. this.$implicit = null;
  89896. this.ngIf = null;
  89897. }
  89898. }
  89899. function assertTemplate(property, templateRef) {
  89900. const isTemplateRefOrNull = !!(!templateRef || templateRef.createEmbeddedView);
  89901. if (!isTemplateRefOrNull) {
  89902. throw new Error(`${property} must be a TemplateRef, but received '${Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(templateRef)}'.`);
  89903. }
  89904. }
  89905. /**
  89906. * @license
  89907. * Copyright Google LLC All Rights Reserved.
  89908. *
  89909. * Use of this source code is governed by an MIT-style license that can be
  89910. * found in the LICENSE file at https://angular.io/license
  89911. */
  89912. class SwitchView {
  89913. constructor(_viewContainerRef, _templateRef) {
  89914. this._viewContainerRef = _viewContainerRef;
  89915. this._templateRef = _templateRef;
  89916. this._created = false;
  89917. }
  89918. create() {
  89919. this._created = true;
  89920. this._viewContainerRef.createEmbeddedView(this._templateRef);
  89921. }
  89922. destroy() {
  89923. this._created = false;
  89924. this._viewContainerRef.clear();
  89925. }
  89926. enforceState(created) {
  89927. if (created && !this._created) {
  89928. this.create();
  89929. }
  89930. else if (!created && this._created) {
  89931. this.destroy();
  89932. }
  89933. }
  89934. }
  89935. /**
  89936. * @ngModule CommonModule
  89937. *
  89938. * @description
  89939. * The `[ngSwitch]` directive on a container specifies an expression to match against.
  89940. * The expressions to match are provided by `ngSwitchCase` directives on views within the container.
  89941. * - Every view that matches is rendered.
  89942. * - If there are no matches, a view with the `ngSwitchDefault` directive is rendered.
  89943. * - Elements within the `[NgSwitch]` statement but outside of any `NgSwitchCase`
  89944. * or `ngSwitchDefault` directive are preserved at the location.
  89945. *
  89946. * @usageNotes
  89947. * Define a container element for the directive, and specify the switch expression
  89948. * to match against as an attribute:
  89949. *
  89950. * ```
  89951. * <container-element [ngSwitch]="switch_expression">
  89952. * ```
  89953. *
  89954. * Within the container, `*ngSwitchCase` statements specify the match expressions
  89955. * as attributes. Include `*ngSwitchDefault` as the final case.
  89956. *
  89957. * ```
  89958. * <container-element [ngSwitch]="switch_expression">
  89959. * <some-element *ngSwitchCase="match_expression_1">...</some-element>
  89960. * ...
  89961. * <some-element *ngSwitchDefault>...</some-element>
  89962. * </container-element>
  89963. * ```
  89964. *
  89965. * ### Usage Examples
  89966. *
  89967. * The following example shows how to use more than one case to display the same view:
  89968. *
  89969. * ```
  89970. * <container-element [ngSwitch]="switch_expression">
  89971. * <!-- the same view can be shown in more than one case -->
  89972. * <some-element *ngSwitchCase="match_expression_1">...</some-element>
  89973. * <some-element *ngSwitchCase="match_expression_2">...</some-element>
  89974. * <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
  89975. * <!--default case when there are no matches -->
  89976. * <some-element *ngSwitchDefault>...</some-element>
  89977. * </container-element>
  89978. * ```
  89979. *
  89980. * The following example shows how cases can be nested:
  89981. * ```
  89982. * <container-element [ngSwitch]="switch_expression">
  89983. * <some-element *ngSwitchCase="match_expression_1">...</some-element>
  89984. * <some-element *ngSwitchCase="match_expression_2">...</some-element>
  89985. * <some-other-element *ngSwitchCase="match_expression_3">...</some-other-element>
  89986. * <ng-container *ngSwitchCase="match_expression_3">
  89987. * <!-- use a ng-container to group multiple root nodes -->
  89988. * <inner-element></inner-element>
  89989. * <inner-other-element></inner-other-element>
  89990. * </ng-container>
  89991. * <some-element *ngSwitchDefault>...</some-element>
  89992. * </container-element>
  89993. * ```
  89994. *
  89995. * @publicApi
  89996. * @see `NgSwitchCase`
  89997. * @see `NgSwitchDefault`
  89998. * @see [Structural Directives](guide/structural-directives)
  89999. *
  90000. */
  90001. class NgSwitch {
  90002. constructor() {
  90003. this._defaultUsed = false;
  90004. this._caseCount = 0;
  90005. this._lastCaseCheckIndex = 0;
  90006. this._lastCasesMatched = false;
  90007. }
  90008. set ngSwitch(newValue) {
  90009. this._ngSwitch = newValue;
  90010. if (this._caseCount === 0) {
  90011. this._updateDefaultCases(true);
  90012. }
  90013. }
  90014. /** @internal */
  90015. _addCase() {
  90016. return this._caseCount++;
  90017. }
  90018. /** @internal */
  90019. _addDefault(view) {
  90020. if (!this._defaultViews) {
  90021. this._defaultViews = [];
  90022. }
  90023. this._defaultViews.push(view);
  90024. }
  90025. /** @internal */
  90026. _matchCase(value) {
  90027. const matched = value == this._ngSwitch;
  90028. this._lastCasesMatched = this._lastCasesMatched || matched;
  90029. this._lastCaseCheckIndex++;
  90030. if (this._lastCaseCheckIndex === this._caseCount) {
  90031. this._updateDefaultCases(!this._lastCasesMatched);
  90032. this._lastCaseCheckIndex = 0;
  90033. this._lastCasesMatched = false;
  90034. }
  90035. return matched;
  90036. }
  90037. _updateDefaultCases(useDefault) {
  90038. if (this._defaultViews && useDefault !== this._defaultUsed) {
  90039. this._defaultUsed = useDefault;
  90040. for (let i = 0; i < this._defaultViews.length; i++) {
  90041. const defaultView = this._defaultViews[i];
  90042. defaultView.enforceState(useDefault);
  90043. }
  90044. }
  90045. }
  90046. }
  90047. NgSwitch.ɵfac = function NgSwitch_Factory(t) { return new (t || NgSwitch)(); };
  90048. NgSwitch.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgSwitch, selectors: [["", "ngSwitch", ""]], inputs: { ngSwitch: "ngSwitch" } });
  90049. NgSwitch.propDecorators = {
  90050. ngSwitch: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  90051. };
  90052. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitch, [{
  90053. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  90054. args: [{ selector: '[ngSwitch]' }]
  90055. }], function () { return []; }, { ngSwitch: [{
  90056. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  90057. }] }); })();
  90058. /**
  90059. * @ngModule CommonModule
  90060. *
  90061. * @description
  90062. * Provides a switch case expression to match against an enclosing `ngSwitch` expression.
  90063. * When the expressions match, the given `NgSwitchCase` template is rendered.
  90064. * If multiple match expressions match the switch expression value, all of them are displayed.
  90065. *
  90066. * @usageNotes
  90067. *
  90068. * Within a switch container, `*ngSwitchCase` statements specify the match expressions
  90069. * as attributes. Include `*ngSwitchDefault` as the final case.
  90070. *
  90071. * ```
  90072. * <container-element [ngSwitch]="switch_expression">
  90073. * <some-element *ngSwitchCase="match_expression_1">...</some-element>
  90074. * ...
  90075. * <some-element *ngSwitchDefault>...</some-element>
  90076. * </container-element>
  90077. * ```
  90078. *
  90079. * Each switch-case statement contains an in-line HTML template or template reference
  90080. * that defines the subtree to be selected if the value of the match expression
  90081. * matches the value of the switch expression.
  90082. *
  90083. * Unlike JavaScript, which uses strict equality, Angular uses loose equality.
  90084. * This means that the empty string, `""` matches 0.
  90085. *
  90086. * @publicApi
  90087. * @see `NgSwitch`
  90088. * @see `NgSwitchDefault`
  90089. *
  90090. */
  90091. class NgSwitchCase {
  90092. constructor(viewContainer, templateRef, ngSwitch) {
  90093. this.ngSwitch = ngSwitch;
  90094. ngSwitch._addCase();
  90095. this._view = new SwitchView(viewContainer, templateRef);
  90096. }
  90097. /**
  90098. * Performs case matching. For internal use only.
  90099. */
  90100. ngDoCheck() {
  90101. this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase));
  90102. }
  90103. }
  90104. NgSwitchCase.ɵfac = function NgSwitchCase_Factory(t) { return new (t || NgSwitchCase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgSwitch, 1)); };
  90105. NgSwitchCase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgSwitchCase, selectors: [["", "ngSwitchCase", ""]], inputs: { ngSwitchCase: "ngSwitchCase" } });
  90106. NgSwitchCase.ctorParameters = () => [
  90107. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  90108. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },
  90109. { type: NgSwitch, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }] }
  90110. ];
  90111. NgSwitchCase.propDecorators = {
  90112. ngSwitchCase: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  90113. };
  90114. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitchCase, [{
  90115. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  90116. args: [{ selector: '[ngSwitchCase]' }]
  90117. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }, { type: NgSwitch, decorators: [{
  90118. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  90119. }] }]; }, { ngSwitchCase: [{
  90120. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  90121. }] }); })();
  90122. /**
  90123. * @ngModule CommonModule
  90124. *
  90125. * @description
  90126. *
  90127. * Creates a view that is rendered when no `NgSwitchCase` expressions
  90128. * match the `NgSwitch` expression.
  90129. * This statement should be the final case in an `NgSwitch`.
  90130. *
  90131. * @publicApi
  90132. * @see `NgSwitch`
  90133. * @see `NgSwitchCase`
  90134. *
  90135. */
  90136. class NgSwitchDefault {
  90137. constructor(viewContainer, templateRef, ngSwitch) {
  90138. ngSwitch._addDefault(new SwitchView(viewContainer, templateRef));
  90139. }
  90140. }
  90141. NgSwitchDefault.ɵfac = function NgSwitchDefault_Factory(t) { return new (t || NgSwitchDefault)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgSwitch, 1)); };
  90142. NgSwitchDefault.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgSwitchDefault, selectors: [["", "ngSwitchDefault", ""]] });
  90143. NgSwitchDefault.ctorParameters = () => [
  90144. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  90145. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },
  90146. { type: NgSwitch, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }] }
  90147. ];
  90148. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgSwitchDefault, [{
  90149. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  90150. args: [{ selector: '[ngSwitchDefault]' }]
  90151. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }, { type: NgSwitch, decorators: [{
  90152. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  90153. }] }]; }, null); })();
  90154. /**
  90155. * @license
  90156. * Copyright Google LLC All Rights Reserved.
  90157. *
  90158. * Use of this source code is governed by an MIT-style license that can be
  90159. * found in the LICENSE file at https://angular.io/license
  90160. */
  90161. /**
  90162. * @ngModule CommonModule
  90163. *
  90164. * @usageNotes
  90165. * ```
  90166. * <some-element [ngPlural]="value">
  90167. * <ng-template ngPluralCase="=0">there is nothing</ng-template>
  90168. * <ng-template ngPluralCase="=1">there is one</ng-template>
  90169. * <ng-template ngPluralCase="few">there are a few</ng-template>
  90170. * </some-element>
  90171. * ```
  90172. *
  90173. * @description
  90174. *
  90175. * Adds / removes DOM sub-trees based on a numeric value. Tailored for pluralization.
  90176. *
  90177. * Displays DOM sub-trees that match the switch expression value, or failing that, DOM sub-trees
  90178. * that match the switch expression's pluralization category.
  90179. *
  90180. * To use this directive you must provide a container element that sets the `[ngPlural]` attribute
  90181. * to a switch expression. Inner elements with a `[ngPluralCase]` will display based on their
  90182. * expression:
  90183. * - if `[ngPluralCase]` is set to a value starting with `=`, it will only display if the value
  90184. * matches the switch expression exactly,
  90185. * - otherwise, the view will be treated as a "category match", and will only display if exact
  90186. * value matches aren't found and the value maps to its category for the defined locale.
  90187. *
  90188. * See http://cldr.unicode.org/index/cldr-spec/plural-rules
  90189. *
  90190. * @publicApi
  90191. */
  90192. class NgPlural {
  90193. constructor(_localization) {
  90194. this._localization = _localization;
  90195. this._caseViews = {};
  90196. }
  90197. set ngPlural(value) {
  90198. this._switchValue = value;
  90199. this._updateView();
  90200. }
  90201. addCase(value, switchView) {
  90202. this._caseViews[value] = switchView;
  90203. }
  90204. _updateView() {
  90205. this._clearViews();
  90206. const cases = Object.keys(this._caseViews);
  90207. const key = getPluralCategory(this._switchValue, cases, this._localization);
  90208. this._activateView(this._caseViews[key]);
  90209. }
  90210. _clearViews() {
  90211. if (this._activeView)
  90212. this._activeView.destroy();
  90213. }
  90214. _activateView(view) {
  90215. if (view) {
  90216. this._activeView = view;
  90217. this._activeView.create();
  90218. }
  90219. }
  90220. }
  90221. NgPlural.ɵfac = function NgPlural_Factory(t) { return new (t || NgPlural)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgLocalization)); };
  90222. NgPlural.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgPlural, selectors: [["", "ngPlural", ""]], inputs: { ngPlural: "ngPlural" } });
  90223. NgPlural.ctorParameters = () => [
  90224. { type: NgLocalization }
  90225. ];
  90226. NgPlural.propDecorators = {
  90227. ngPlural: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  90228. };
  90229. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgPlural, [{
  90230. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  90231. args: [{ selector: '[ngPlural]' }]
  90232. }], function () { return [{ type: NgLocalization }]; }, { ngPlural: [{
  90233. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  90234. }] }); })();
  90235. /**
  90236. * @ngModule CommonModule
  90237. *
  90238. * @description
  90239. *
  90240. * Creates a view that will be added/removed from the parent {@link NgPlural} when the
  90241. * given expression matches the plural expression according to CLDR rules.
  90242. *
  90243. * @usageNotes
  90244. * ```
  90245. * <some-element [ngPlural]="value">
  90246. * <ng-template ngPluralCase="=0">...</ng-template>
  90247. * <ng-template ngPluralCase="other">...</ng-template>
  90248. * </some-element>
  90249. *```
  90250. *
  90251. * See {@link NgPlural} for more details and example.
  90252. *
  90253. * @publicApi
  90254. */
  90255. class NgPluralCase {
  90256. constructor(value, template, viewContainer, ngPlural) {
  90257. this.value = value;
  90258. const isANumber = !isNaN(Number(value));
  90259. ngPlural.addCase(isANumber ? `=${value}` : value, new SwitchView(viewContainer, template));
  90260. }
  90261. }
  90262. NgPluralCase.ɵfac = function NgPluralCase_Factory(t) { return new (t || NgPluralCase)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectAttribute"]('ngPluralCase'), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgPlural, 1)); };
  90263. NgPluralCase.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgPluralCase, selectors: [["", "ngPluralCase", ""]] });
  90264. NgPluralCase.ctorParameters = () => [
  90265. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"], args: ['ngPluralCase',] }] },
  90266. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] },
  90267. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] },
  90268. { type: NgPlural, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"] }] }
  90269. ];
  90270. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgPluralCase, [{
  90271. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  90272. args: [{ selector: '[ngPluralCase]' }]
  90273. }], function () { return [{ type: String, decorators: [{
  90274. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Attribute"],
  90275. args: ['ngPluralCase']
  90276. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["TemplateRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }, { type: NgPlural, decorators: [{
  90277. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Host"]
  90278. }] }]; }, null); })();
  90279. /**
  90280. * @license
  90281. * Copyright Google LLC All Rights Reserved.
  90282. *
  90283. * Use of this source code is governed by an MIT-style license that can be
  90284. * found in the LICENSE file at https://angular.io/license
  90285. */
  90286. /**
  90287. * @ngModule CommonModule
  90288. *
  90289. * @usageNotes
  90290. *
  90291. * Set the font of the containing element to the result of an expression.
  90292. *
  90293. * ```
  90294. * <some-element [ngStyle]="{'font-style': styleExp}">...</some-element>
  90295. * ```
  90296. *
  90297. * Set the width of the containing element to a pixel value returned by an expression.
  90298. *
  90299. * ```
  90300. * <some-element [ngStyle]="{'max-width.px': widthExp}">...</some-element>
  90301. * ```
  90302. *
  90303. * Set a collection of style values using an expression that returns key-value pairs.
  90304. *
  90305. * ```
  90306. * <some-element [ngStyle]="objExp">...</some-element>
  90307. * ```
  90308. *
  90309. * @description
  90310. *
  90311. * An attribute directive that updates styles for the containing HTML element.
  90312. * Sets one or more style properties, specified as colon-separated key-value pairs.
  90313. * The key is a style name, with an optional `.<unit>` suffix
  90314. * (such as 'top.px', 'font-style.em').
  90315. * The value is an expression to be evaluated.
  90316. * The resulting non-null value, expressed in the given unit,
  90317. * is assigned to the given style property.
  90318. * If the result of evaluation is null, the corresponding style is removed.
  90319. *
  90320. * @publicApi
  90321. */
  90322. class NgStyle {
  90323. constructor(_ngEl, _differs, _renderer) {
  90324. this._ngEl = _ngEl;
  90325. this._differs = _differs;
  90326. this._renderer = _renderer;
  90327. this._ngStyle = null;
  90328. this._differ = null;
  90329. }
  90330. set ngStyle(values) {
  90331. this._ngStyle = values;
  90332. if (!this._differ && values) {
  90333. this._differ = this._differs.find(values).create();
  90334. }
  90335. }
  90336. ngDoCheck() {
  90337. if (this._differ) {
  90338. const changes = this._differ.diff(this._ngStyle);
  90339. if (changes) {
  90340. this._applyChanges(changes);
  90341. }
  90342. }
  90343. }
  90344. _setStyle(nameAndUnit, value) {
  90345. const [name, unit] = nameAndUnit.split('.');
  90346. value = value != null && unit ? `${value}${unit}` : value;
  90347. if (value != null) {
  90348. this._renderer.setStyle(this._ngEl.nativeElement, name, value);
  90349. }
  90350. else {
  90351. this._renderer.removeStyle(this._ngEl.nativeElement, name);
  90352. }
  90353. }
  90354. _applyChanges(changes) {
  90355. changes.forEachRemovedItem((record) => this._setStyle(record.key, null));
  90356. changes.forEachAddedItem((record) => this._setStyle(record.key, record.currentValue));
  90357. changes.forEachChangedItem((record) => this._setStyle(record.key, record.currentValue));
  90358. }
  90359. }
  90360. NgStyle.ɵfac = function NgStyle_Factory(t) { return new (t || NgStyle)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"])); };
  90361. NgStyle.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgStyle, selectors: [["", "ngStyle", ""]], inputs: { ngStyle: "ngStyle" } });
  90362. NgStyle.ctorParameters = () => [
  90363. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  90364. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] },
  90365. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }
  90366. ];
  90367. NgStyle.propDecorators = {
  90368. ngStyle: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"], args: ['ngStyle',] }]
  90369. };
  90370. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgStyle, [{
  90371. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  90372. args: [{ selector: '[ngStyle]' }]
  90373. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Renderer2"] }]; }, { ngStyle: [{
  90374. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"],
  90375. args: ['ngStyle']
  90376. }] }); })();
  90377. /**
  90378. * @license
  90379. * Copyright Google LLC All Rights Reserved.
  90380. *
  90381. * Use of this source code is governed by an MIT-style license that can be
  90382. * found in the LICENSE file at https://angular.io/license
  90383. */
  90384. /**
  90385. * @ngModule CommonModule
  90386. *
  90387. * @description
  90388. *
  90389. * Inserts an embedded view from a prepared `TemplateRef`.
  90390. *
  90391. * You can attach a context object to the `EmbeddedViewRef` by setting `[ngTemplateOutletContext]`.
  90392. * `[ngTemplateOutletContext]` should be an object, the object's keys will be available for binding
  90393. * by the local template `let` declarations.
  90394. *
  90395. * @usageNotes
  90396. * ```
  90397. * <ng-container *ngTemplateOutlet="templateRefExp; context: contextExp"></ng-container>
  90398. * ```
  90399. *
  90400. * Using the key `$implicit` in the context object will set its value as default.
  90401. *
  90402. * ### Example
  90403. *
  90404. * {@example common/ngTemplateOutlet/ts/module.ts region='NgTemplateOutlet'}
  90405. *
  90406. * @publicApi
  90407. */
  90408. class NgTemplateOutlet {
  90409. constructor(_viewContainerRef) {
  90410. this._viewContainerRef = _viewContainerRef;
  90411. this._viewRef = null;
  90412. /**
  90413. * A context object to attach to the {@link EmbeddedViewRef}. This should be an
  90414. * object, the object's keys will be available for binding by the local template `let`
  90415. * declarations.
  90416. * Using the key `$implicit` in the context object will set its value as default.
  90417. */
  90418. this.ngTemplateOutletContext = null;
  90419. /**
  90420. * A string defining the template reference and optionally the context object for the template.
  90421. */
  90422. this.ngTemplateOutlet = null;
  90423. }
  90424. ngOnChanges(changes) {
  90425. const recreateView = this._shouldRecreateView(changes);
  90426. if (recreateView) {
  90427. const viewContainerRef = this._viewContainerRef;
  90428. if (this._viewRef) {
  90429. viewContainerRef.remove(viewContainerRef.indexOf(this._viewRef));
  90430. }
  90431. this._viewRef = this.ngTemplateOutlet ?
  90432. viewContainerRef.createEmbeddedView(this.ngTemplateOutlet, this.ngTemplateOutletContext) :
  90433. null;
  90434. }
  90435. else if (this._viewRef && this.ngTemplateOutletContext) {
  90436. this._updateExistingContext(this.ngTemplateOutletContext);
  90437. }
  90438. }
  90439. /**
  90440. * We need to re-create existing embedded view if:
  90441. * - templateRef has changed
  90442. * - context has changes
  90443. *
  90444. * We mark context object as changed when the corresponding object
  90445. * shape changes (new properties are added or existing properties are removed).
  90446. * In other words we consider context with the same properties as "the same" even
  90447. * if object reference changes (see https://github.com/angular/angular/issues/13407).
  90448. */
  90449. _shouldRecreateView(changes) {
  90450. const ctxChange = changes['ngTemplateOutletContext'];
  90451. return !!changes['ngTemplateOutlet'] || (ctxChange && this._hasContextShapeChanged(ctxChange));
  90452. }
  90453. _hasContextShapeChanged(ctxChange) {
  90454. const prevCtxKeys = Object.keys(ctxChange.previousValue || {});
  90455. const currCtxKeys = Object.keys(ctxChange.currentValue || {});
  90456. if (prevCtxKeys.length === currCtxKeys.length) {
  90457. for (let propName of currCtxKeys) {
  90458. if (prevCtxKeys.indexOf(propName) === -1) {
  90459. return true;
  90460. }
  90461. }
  90462. return false;
  90463. }
  90464. return true;
  90465. }
  90466. _updateExistingContext(ctx) {
  90467. for (let propName of Object.keys(ctx)) {
  90468. this._viewRef.context[propName] = this.ngTemplateOutletContext[propName];
  90469. }
  90470. }
  90471. }
  90472. NgTemplateOutlet.ɵfac = function NgTemplateOutlet_Factory(t) { return new (t || NgTemplateOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"])); };
  90473. NgTemplateOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: NgTemplateOutlet, selectors: [["", "ngTemplateOutlet", ""]], inputs: { ngTemplateOutletContext: "ngTemplateOutletContext", ngTemplateOutlet: "ngTemplateOutlet" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵNgOnChangesFeature"]] });
  90474. NgTemplateOutlet.ctorParameters = () => [
  90475. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }
  90476. ];
  90477. NgTemplateOutlet.propDecorators = {
  90478. ngTemplateOutletContext: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  90479. ngTemplateOutlet: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  90480. };
  90481. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NgTemplateOutlet, [{
  90482. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  90483. args: [{ selector: '[ngTemplateOutlet]' }]
  90484. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewContainerRef"] }]; }, { ngTemplateOutletContext: [{
  90485. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  90486. }], ngTemplateOutlet: [{
  90487. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  90488. }] }); })();
  90489. /**
  90490. * @license
  90491. * Copyright Google LLC All Rights Reserved.
  90492. *
  90493. * Use of this source code is governed by an MIT-style license that can be
  90494. * found in the LICENSE file at https://angular.io/license
  90495. */
  90496. /**
  90497. * A collection of Angular directives that are likely to be used in each and every Angular
  90498. * application.
  90499. */
  90500. const COMMON_DIRECTIVES = [
  90501. NgClass,
  90502. NgComponentOutlet,
  90503. NgForOf,
  90504. NgIf,
  90505. NgTemplateOutlet,
  90506. NgStyle,
  90507. NgSwitch,
  90508. NgSwitchCase,
  90509. NgSwitchDefault,
  90510. NgPlural,
  90511. NgPluralCase,
  90512. ];
  90513. /**
  90514. * @license
  90515. * Copyright Google LLC All Rights Reserved.
  90516. *
  90517. * Use of this source code is governed by an MIT-style license that can be
  90518. * found in the LICENSE file at https://angular.io/license
  90519. */
  90520. function invalidPipeArgumentError(type, value) {
  90521. return Error(`InvalidPipeArgument: '${value}' for pipe '${Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵstringify"])(type)}'`);
  90522. }
  90523. /**
  90524. * @license
  90525. * Copyright Google LLC All Rights Reserved.
  90526. *
  90527. * Use of this source code is governed by an MIT-style license that can be
  90528. * found in the LICENSE file at https://angular.io/license
  90529. */
  90530. class ObservableStrategy {
  90531. createSubscription(async, updateLatestValue) {
  90532. return async.subscribe({
  90533. next: updateLatestValue,
  90534. error: (e) => {
  90535. throw e;
  90536. }
  90537. });
  90538. }
  90539. dispose(subscription) {
  90540. subscription.unsubscribe();
  90541. }
  90542. onDestroy(subscription) {
  90543. subscription.unsubscribe();
  90544. }
  90545. }
  90546. class PromiseStrategy {
  90547. createSubscription(async, updateLatestValue) {
  90548. return async.then(updateLatestValue, e => {
  90549. throw e;
  90550. });
  90551. }
  90552. dispose(subscription) { }
  90553. onDestroy(subscription) { }
  90554. }
  90555. const _promiseStrategy = new PromiseStrategy();
  90556. const _observableStrategy = new ObservableStrategy();
  90557. /**
  90558. * @ngModule CommonModule
  90559. * @description
  90560. *
  90561. * Unwraps a value from an asynchronous primitive.
  90562. *
  90563. * The `async` pipe subscribes to an `Observable` or `Promise` and returns the latest value it has
  90564. * emitted. When a new value is emitted, the `async` pipe marks the component to be checked for
  90565. * changes. When the component gets destroyed, the `async` pipe unsubscribes automatically to avoid
  90566. * potential memory leaks.
  90567. *
  90568. * @usageNotes
  90569. *
  90570. * ### Examples
  90571. *
  90572. * This example binds a `Promise` to the view. Clicking the `Resolve` button resolves the
  90573. * promise.
  90574. *
  90575. * {@example common/pipes/ts/async_pipe.ts region='AsyncPipePromise'}
  90576. *
  90577. * It's also possible to use `async` with Observables. The example below binds the `time` Observable
  90578. * to the view. The Observable continuously updates the view with the current time.
  90579. *
  90580. * {@example common/pipes/ts/async_pipe.ts region='AsyncPipeObservable'}
  90581. *
  90582. * @publicApi
  90583. */
  90584. class AsyncPipe {
  90585. constructor(_ref) {
  90586. this._ref = _ref;
  90587. this._latestValue = null;
  90588. this._subscription = null;
  90589. this._obj = null;
  90590. this._strategy = null;
  90591. }
  90592. ngOnDestroy() {
  90593. if (this._subscription) {
  90594. this._dispose();
  90595. }
  90596. }
  90597. transform(obj) {
  90598. if (!this._obj) {
  90599. if (obj) {
  90600. this._subscribe(obj);
  90601. }
  90602. return this._latestValue;
  90603. }
  90604. if (obj !== this._obj) {
  90605. this._dispose();
  90606. return this.transform(obj);
  90607. }
  90608. return this._latestValue;
  90609. }
  90610. _subscribe(obj) {
  90611. this._obj = obj;
  90612. this._strategy = this._selectStrategy(obj);
  90613. this._subscription = this._strategy.createSubscription(obj, (value) => this._updateLatestValue(obj, value));
  90614. }
  90615. _selectStrategy(obj) {
  90616. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisPromise"])(obj)) {
  90617. return _promiseStrategy;
  90618. }
  90619. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵisObservable"])(obj)) {
  90620. return _observableStrategy;
  90621. }
  90622. throw invalidPipeArgumentError(AsyncPipe, obj);
  90623. }
  90624. _dispose() {
  90625. this._strategy.dispose(this._subscription);
  90626. this._latestValue = null;
  90627. this._subscription = null;
  90628. this._obj = null;
  90629. }
  90630. _updateLatestValue(async, value) {
  90631. if (async === this._obj) {
  90632. this._latestValue = value;
  90633. this._ref.markForCheck();
  90634. }
  90635. }
  90636. }
  90637. AsyncPipe.ɵfac = function AsyncPipe_Factory(t) { return new (t || AsyncPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectPipeChangeDetectorRef"]()); };
  90638. AsyncPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "async", type: AsyncPipe, pure: false });
  90639. AsyncPipe.ctorParameters = () => [
  90640. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  90641. ];
  90642. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](AsyncPipe, [{
  90643. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  90644. args: [{ name: 'async', pure: false }]
  90645. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, null); })();
  90646. /**
  90647. * @license
  90648. * Copyright Google LLC All Rights Reserved.
  90649. *
  90650. * Use of this source code is governed by an MIT-style license that can be
  90651. * found in the LICENSE file at https://angular.io/license
  90652. */
  90653. /**
  90654. * Transforms text to all lower case.
  90655. *
  90656. * @see `UpperCasePipe`
  90657. * @see `TitleCasePipe`
  90658. * @usageNotes
  90659. *
  90660. * The following example defines a view that allows the user to enter
  90661. * text, and then uses the pipe to convert the input text to all lower case.
  90662. *
  90663. * <code-example path="common/pipes/ts/lowerupper_pipe.ts" region='LowerUpperPipe'></code-example>
  90664. *
  90665. * @ngModule CommonModule
  90666. * @publicApi
  90667. */
  90668. class LowerCasePipe {
  90669. transform(value) {
  90670. if (value == null)
  90671. return null;
  90672. if (typeof value !== 'string') {
  90673. throw invalidPipeArgumentError(LowerCasePipe, value);
  90674. }
  90675. return value.toLowerCase();
  90676. }
  90677. }
  90678. LowerCasePipe.ɵfac = function LowerCasePipe_Factory(t) { return new (t || LowerCasePipe)(); };
  90679. LowerCasePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "lowercase", type: LowerCasePipe, pure: true });
  90680. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](LowerCasePipe, [{
  90681. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  90682. args: [{ name: 'lowercase' }]
  90683. }], null, null); })();
  90684. //
  90685. // Regex below matches any Unicode word and compatible with ES5. In ES2018 the same result
  90686. // can be achieved by using /\p{L}\S*/gu and also known as Unicode Property Escapes
  90687. // (https://2ality.com/2017/07/regexp-unicode-property-escapes.html). Since there is no
  90688. // transpilation of this functionality down to ES5 without external tool, the only solution is
  90689. // to use already transpiled form. Example can be found here -
  90690. // https://mothereff.in/regexpu#input=var+regex+%3D+/%5Cp%7BL%7D/u%3B&unicodePropertyEscape=1
  90691. //
  90692. const unicodeWordMatch = /(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;
  90693. /**
  90694. * Transforms text to title case.
  90695. * Capitalizes the first letter of each word and transforms the
  90696. * rest of the word to lower case.
  90697. * Words are delimited by any whitespace character, such as a space, tab, or line-feed character.
  90698. *
  90699. * @see `LowerCasePipe`
  90700. * @see `UpperCasePipe`
  90701. *
  90702. * @usageNotes
  90703. * The following example shows the result of transforming various strings into title case.
  90704. *
  90705. * <code-example path="common/pipes/ts/titlecase_pipe.ts" region='TitleCasePipe'></code-example>
  90706. *
  90707. * @ngModule CommonModule
  90708. * @publicApi
  90709. */
  90710. class TitleCasePipe {
  90711. transform(value) {
  90712. if (value == null)
  90713. return null;
  90714. if (typeof value !== 'string') {
  90715. throw invalidPipeArgumentError(TitleCasePipe, value);
  90716. }
  90717. return value.replace(unicodeWordMatch, (txt => txt[0].toUpperCase() + txt.substr(1).toLowerCase()));
  90718. }
  90719. }
  90720. TitleCasePipe.ɵfac = function TitleCasePipe_Factory(t) { return new (t || TitleCasePipe)(); };
  90721. TitleCasePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "titlecase", type: TitleCasePipe, pure: true });
  90722. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TitleCasePipe, [{
  90723. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  90724. args: [{ name: 'titlecase' }]
  90725. }], null, null); })();
  90726. /**
  90727. * Transforms text to all upper case.
  90728. * @see `LowerCasePipe`
  90729. * @see `TitleCasePipe`
  90730. *
  90731. * @ngModule CommonModule
  90732. * @publicApi
  90733. */
  90734. class UpperCasePipe {
  90735. transform(value) {
  90736. if (value == null)
  90737. return null;
  90738. if (typeof value !== 'string') {
  90739. throw invalidPipeArgumentError(UpperCasePipe, value);
  90740. }
  90741. return value.toUpperCase();
  90742. }
  90743. }
  90744. UpperCasePipe.ɵfac = function UpperCasePipe_Factory(t) { return new (t || UpperCasePipe)(); };
  90745. UpperCasePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "uppercase", type: UpperCasePipe, pure: true });
  90746. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](UpperCasePipe, [{
  90747. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  90748. args: [{ name: 'uppercase' }]
  90749. }], null, null); })();
  90750. /**
  90751. * @license
  90752. * Copyright Google LLC All Rights Reserved.
  90753. *
  90754. * Use of this source code is governed by an MIT-style license that can be
  90755. * found in the LICENSE file at https://angular.io/license
  90756. */
  90757. // clang-format off
  90758. /**
  90759. * @ngModule CommonModule
  90760. * @description
  90761. *
  90762. * Formats a date value according to locale rules.
  90763. *
  90764. * Only the `en-US` locale data comes with Angular. To localize dates
  90765. * in another language, you must import the corresponding locale data.
  90766. * See the [I18n guide](guide/i18n#i18n-pipes) for more information.
  90767. *
  90768. * @see `formatDate()`
  90769. *
  90770. *
  90771. * @usageNotes
  90772. *
  90773. * The result of this pipe is not reevaluated when the input is mutated. To avoid the need to
  90774. * reformat the date on every change-detection cycle, treat the date as an immutable object
  90775. * and change the reference when the pipe needs to run again.
  90776. *
  90777. * ### Pre-defined format options
  90778. *
  90779. * | Option | Equivalent to | Examples (given in `en-US` locale) |
  90780. * |---------------|-------------------------------------|-------------------------------------------------|
  90781. * | `'short'` | `'M/d/yy, h:mm a'` | `6/15/15, 9:03 AM` |
  90782. * | `'medium'` | `'MMM d, y, h:mm:ss a'` | `Jun 15, 2015, 9:03:01 AM` |
  90783. * | `'long'` | `'MMMM d, y, h:mm:ss a z'` | `June 15, 2015 at 9:03:01 AM GMT+1` |
  90784. * | `'full'` | `'EEEE, MMMM d, y, h:mm:ss a zzzz'` | `Monday, June 15, 2015 at 9:03:01 AM GMT+01:00` |
  90785. * | `'shortDate'` | `'M/d/yy'` | `6/15/15` |
  90786. * | `'mediumDate'`| `'MMM d, y'` | `Jun 15, 2015` |
  90787. * | `'longDate'` | `'MMMM d, y'` | `June 15, 2015` |
  90788. * | `'fullDate'` | `'EEEE, MMMM d, y'` | `Monday, June 15, 2015` |
  90789. * | `'shortTime'` | `'h:mm a'` | `9:03 AM` |
  90790. * | `'mediumTime'`| `'h:mm:ss a'` | `9:03:01 AM` |
  90791. * | `'longTime'` | `'h:mm:ss a z'` | `9:03:01 AM GMT+1` |
  90792. * | `'fullTime'` | `'h:mm:ss a zzzz'` | `9:03:01 AM GMT+01:00` |
  90793. *
  90794. * ### Custom format options
  90795. *
  90796. * You can construct a format string using symbols to specify the components
  90797. * of a date-time value, as described in the following table.
  90798. * Format details depend on the locale.
  90799. * Fields marked with (*) are only available in the extra data set for the given locale.
  90800. *
  90801. * | Field type | Format | Description | Example Value |
  90802. * |--------------------|-------------|---------------------------------------------------------------|------------------------------------------------------------|
  90803. * | Era | G, GG & GGG | Abbreviated | AD |
  90804. * | | GGGG | Wide | Anno Domini |
  90805. * | | GGGGG | Narrow | A |
  90806. * | Year | y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |
  90807. * | | yy | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |
  90808. * | | yyy | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |
  90809. * | | yyyy | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |
  90810. * | Week-numbering year| Y | Numeric: minimum digits | 2, 20, 201, 2017, 20173 |
  90811. * | | YY | Numeric: 2 digits + zero padded | 02, 20, 01, 17, 73 |
  90812. * | | YYY | Numeric: 3 digits + zero padded | 002, 020, 201, 2017, 20173 |
  90813. * | | YYYY | Numeric: 4 digits or more + zero padded | 0002, 0020, 0201, 2017, 20173 |
  90814. * | Month | M | Numeric: 1 digit | 9, 12 |
  90815. * | | MM | Numeric: 2 digits + zero padded | 09, 12 |
  90816. * | | MMM | Abbreviated | Sep |
  90817. * | | MMMM | Wide | September |
  90818. * | | MMMMM | Narrow | S |
  90819. * | Month standalone | L | Numeric: 1 digit | 9, 12 |
  90820. * | | LL | Numeric: 2 digits + zero padded | 09, 12 |
  90821. * | | LLL | Abbreviated | Sep |
  90822. * | | LLLL | Wide | September |
  90823. * | | LLLLL | Narrow | S |
  90824. * | Week of year | w | Numeric: minimum digits | 1... 53 |
  90825. * | | ww | Numeric: 2 digits + zero padded | 01... 53 |
  90826. * | Week of month | W | Numeric: 1 digit | 1... 5 |
  90827. * | Day of month | d | Numeric: minimum digits | 1 |
  90828. * | | dd | Numeric: 2 digits + zero padded | 01 |
  90829. * | Week day | E, EE & EEE | Abbreviated | Tue |
  90830. * | | EEEE | Wide | Tuesday |
  90831. * | | EEEEE | Narrow | T |
  90832. * | | EEEEEE | Short | Tu |
  90833. * | Period | a, aa & aaa | Abbreviated | am/pm or AM/PM |
  90834. * | | aaaa | Wide (fallback to `a` when missing) | ante meridiem/post meridiem |
  90835. * | | aaaaa | Narrow | a/p |
  90836. * | Period* | B, BB & BBB | Abbreviated | mid. |
  90837. * | | BBBB | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |
  90838. * | | BBBBB | Narrow | md |
  90839. * | Period standalone* | b, bb & bbb | Abbreviated | mid. |
  90840. * | | bbbb | Wide | am, pm, midnight, noon, morning, afternoon, evening, night |
  90841. * | | bbbbb | Narrow | md |
  90842. * | Hour 1-12 | h | Numeric: minimum digits | 1, 12 |
  90843. * | | hh | Numeric: 2 digits + zero padded | 01, 12 |
  90844. * | Hour 0-23 | H | Numeric: minimum digits | 0, 23 |
  90845. * | | HH | Numeric: 2 digits + zero padded | 00, 23 |
  90846. * | Minute | m | Numeric: minimum digits | 8, 59 |
  90847. * | | mm | Numeric: 2 digits + zero padded | 08, 59 |
  90848. * | Second | s | Numeric: minimum digits | 0... 59 |
  90849. * | | ss | Numeric: 2 digits + zero padded | 00... 59 |
  90850. * | Fractional seconds | S | Numeric: 1 digit | 0... 9 |
  90851. * | | SS | Numeric: 2 digits + zero padded | 00... 99 |
  90852. * | | SSS | Numeric: 3 digits + zero padded (= milliseconds) | 000... 999 |
  90853. * | Zone | z, zz & zzz | Short specific non location format (fallback to O) | GMT-8 |
  90854. * | | zzzz | Long specific non location format (fallback to OOOO) | GMT-08:00 |
  90855. * | | Z, ZZ & ZZZ | ISO8601 basic format | -0800 |
  90856. * | | ZZZZ | Long localized GMT format | GMT-8:00 |
  90857. * | | ZZZZZ | ISO8601 extended format + Z indicator for offset 0 (= XXXXX) | -08:00 |
  90858. * | | O, OO & OOO | Short localized GMT format | GMT-8 |
  90859. * | | OOOO | Long localized GMT format | GMT-08:00 |
  90860. *
  90861. * Note that timezone correction is not applied to an ISO string that has no time component, such as "2016-09-19"
  90862. *
  90863. * ### Format examples
  90864. *
  90865. * These examples transform a date into various formats,
  90866. * assuming that `dateObj` is a JavaScript `Date` object for
  90867. * year: 2015, month: 6, day: 15, hour: 21, minute: 43, second: 11,
  90868. * given in the local time for the `en-US` locale.
  90869. *
  90870. * ```
  90871. * {{ dateObj | date }} // output is 'Jun 15, 2015'
  90872. * {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'
  90873. * {{ dateObj | date:'shortTime' }} // output is '9:43 PM'
  90874. * {{ dateObj | date:'mm:ss' }} // output is '43:11'
  90875. * ```
  90876. *
  90877. * ### Usage example
  90878. *
  90879. * The following component uses a date pipe to display the current date in different formats.
  90880. *
  90881. * ```
  90882. * @Component({
  90883. * selector: 'date-pipe',
  90884. * template: `<div>
  90885. * <p>Today is {{today | date}}</p>
  90886. * <p>Or if you prefer, {{today | date:'fullDate'}}</p>
  90887. * <p>The time is {{today | date:'h:mm a z'}}</p>
  90888. * </div>`
  90889. * })
  90890. * // Get the current date and time as a date-time value.
  90891. * export class DatePipeComponent {
  90892. * today: number = Date.now();
  90893. * }
  90894. * ```
  90895. *
  90896. * @publicApi
  90897. */
  90898. // clang-format on
  90899. class DatePipe {
  90900. constructor(locale) {
  90901. this.locale = locale;
  90902. }
  90903. transform(value, format = 'mediumDate', timezone, locale) {
  90904. if (value == null || value === '' || value !== value)
  90905. return null;
  90906. try {
  90907. return formatDate(value, format, locale || this.locale, timezone);
  90908. }
  90909. catch (error) {
  90910. throw invalidPipeArgumentError(DatePipe, error.message);
  90911. }
  90912. }
  90913. }
  90914. DatePipe.ɵfac = function DatePipe_Factory(t) { return new (t || DatePipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"])); };
  90915. DatePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "date", type: DatePipe, pure: true });
  90916. DatePipe.ctorParameters = () => [
  90917. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"],] }] }
  90918. ];
  90919. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DatePipe, [{
  90920. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  90921. args: [{ name: 'date', pure: true }]
  90922. }], function () { return [{ type: String, decorators: [{
  90923. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  90924. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
  90925. }] }]; }, null); })();
  90926. /**
  90927. * @license
  90928. * Copyright Google LLC All Rights Reserved.
  90929. *
  90930. * Use of this source code is governed by an MIT-style license that can be
  90931. * found in the LICENSE file at https://angular.io/license
  90932. */
  90933. const _INTERPOLATION_REGEXP = /#/g;
  90934. /**
  90935. * @ngModule CommonModule
  90936. * @description
  90937. *
  90938. * Maps a value to a string that pluralizes the value according to locale rules.
  90939. *
  90940. * @usageNotes
  90941. *
  90942. * ### Example
  90943. *
  90944. * {@example common/pipes/ts/i18n_pipe.ts region='I18nPluralPipeComponent'}
  90945. *
  90946. * @publicApi
  90947. */
  90948. class I18nPluralPipe {
  90949. constructor(_localization) {
  90950. this._localization = _localization;
  90951. }
  90952. /**
  90953. * @param value the number to be formatted
  90954. * @param pluralMap an object that mimics the ICU format, see
  90955. * http://userguide.icu-project.org/formatparse/messages.
  90956. * @param locale a `string` defining the locale to use (uses the current {@link LOCALE_ID} by
  90957. * default).
  90958. */
  90959. transform(value, pluralMap, locale) {
  90960. if (value == null)
  90961. return '';
  90962. if (typeof pluralMap !== 'object' || pluralMap === null) {
  90963. throw invalidPipeArgumentError(I18nPluralPipe, pluralMap);
  90964. }
  90965. const key = getPluralCategory(value, Object.keys(pluralMap), this._localization, locale);
  90966. return pluralMap[key].replace(_INTERPOLATION_REGEXP, value.toString());
  90967. }
  90968. }
  90969. I18nPluralPipe.ɵfac = function I18nPluralPipe_Factory(t) { return new (t || I18nPluralPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](NgLocalization)); };
  90970. I18nPluralPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "i18nPlural", type: I18nPluralPipe, pure: true });
  90971. I18nPluralPipe.ctorParameters = () => [
  90972. { type: NgLocalization }
  90973. ];
  90974. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](I18nPluralPipe, [{
  90975. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  90976. args: [{ name: 'i18nPlural', pure: true }]
  90977. }], function () { return [{ type: NgLocalization }]; }, null); })();
  90978. /**
  90979. * @license
  90980. * Copyright Google LLC All Rights Reserved.
  90981. *
  90982. * Use of this source code is governed by an MIT-style license that can be
  90983. * found in the LICENSE file at https://angular.io/license
  90984. */
  90985. /**
  90986. * @ngModule CommonModule
  90987. * @description
  90988. *
  90989. * Generic selector that displays the string that matches the current value.
  90990. *
  90991. * If none of the keys of the `mapping` match the `value`, then the content
  90992. * of the `other` key is returned when present, otherwise an empty string is returned.
  90993. *
  90994. * @usageNotes
  90995. *
  90996. * ### Example
  90997. *
  90998. * {@example common/pipes/ts/i18n_pipe.ts region='I18nSelectPipeComponent'}
  90999. *
  91000. * @publicApi
  91001. */
  91002. class I18nSelectPipe {
  91003. /**
  91004. * @param value a string to be internationalized.
  91005. * @param mapping an object that indicates the text that should be displayed
  91006. * for different values of the provided `value`.
  91007. */
  91008. transform(value, mapping) {
  91009. if (value == null)
  91010. return '';
  91011. if (typeof mapping !== 'object' || typeof value !== 'string') {
  91012. throw invalidPipeArgumentError(I18nSelectPipe, mapping);
  91013. }
  91014. if (mapping.hasOwnProperty(value)) {
  91015. return mapping[value];
  91016. }
  91017. if (mapping.hasOwnProperty('other')) {
  91018. return mapping['other'];
  91019. }
  91020. return '';
  91021. }
  91022. }
  91023. I18nSelectPipe.ɵfac = function I18nSelectPipe_Factory(t) { return new (t || I18nSelectPipe)(); };
  91024. I18nSelectPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "i18nSelect", type: I18nSelectPipe, pure: true });
  91025. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](I18nSelectPipe, [{
  91026. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  91027. args: [{ name: 'i18nSelect', pure: true }]
  91028. }], null, null); })();
  91029. /**
  91030. * @license
  91031. * Copyright Google LLC All Rights Reserved.
  91032. *
  91033. * Use of this source code is governed by an MIT-style license that can be
  91034. * found in the LICENSE file at https://angular.io/license
  91035. */
  91036. /**
  91037. * @ngModule CommonModule
  91038. * @description
  91039. *
  91040. * Converts a value into its JSON-format representation. Useful for debugging.
  91041. *
  91042. * @usageNotes
  91043. *
  91044. * The following component uses a JSON pipe to convert an object
  91045. * to JSON format, and displays the string in both formats for comparison.
  91046. *
  91047. * {@example common/pipes/ts/json_pipe.ts region='JsonPipe'}
  91048. *
  91049. * @publicApi
  91050. */
  91051. class JsonPipe {
  91052. /**
  91053. * @param value A value of any type to convert into a JSON-format string.
  91054. */
  91055. transform(value) {
  91056. return JSON.stringify(value, null, 2);
  91057. }
  91058. }
  91059. JsonPipe.ɵfac = function JsonPipe_Factory(t) { return new (t || JsonPipe)(); };
  91060. JsonPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "json", type: JsonPipe, pure: false });
  91061. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](JsonPipe, [{
  91062. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  91063. args: [{ name: 'json', pure: false }]
  91064. }], null, null); })();
  91065. /**
  91066. * @license
  91067. * Copyright Google LLC All Rights Reserved.
  91068. *
  91069. * Use of this source code is governed by an MIT-style license that can be
  91070. * found in the LICENSE file at https://angular.io/license
  91071. */
  91072. function makeKeyValuePair(key, value) {
  91073. return { key: key, value: value };
  91074. }
  91075. /**
  91076. * @ngModule CommonModule
  91077. * @description
  91078. *
  91079. * Transforms Object or Map into an array of key value pairs.
  91080. *
  91081. * The output array will be ordered by keys.
  91082. * By default the comparator will be by Unicode point value.
  91083. * You can optionally pass a compareFn if your keys are complex types.
  91084. *
  91085. * @usageNotes
  91086. * ### Examples
  91087. *
  91088. * This examples show how an Object or a Map can be iterated by ngFor with the use of this
  91089. * keyvalue pipe.
  91090. *
  91091. * {@example common/pipes/ts/keyvalue_pipe.ts region='KeyValuePipe'}
  91092. *
  91093. * @publicApi
  91094. */
  91095. class KeyValuePipe {
  91096. constructor(differs) {
  91097. this.differs = differs;
  91098. this.keyValues = [];
  91099. }
  91100. transform(input, compareFn = defaultComparator) {
  91101. if (!input || (!(input instanceof Map) && typeof input !== 'object')) {
  91102. return null;
  91103. }
  91104. if (!this.differ) {
  91105. // make a differ for whatever type we've been passed in
  91106. this.differ = this.differs.find(input).create();
  91107. }
  91108. const differChanges = this.differ.diff(input);
  91109. if (differChanges) {
  91110. this.keyValues = [];
  91111. differChanges.forEachItem((r) => {
  91112. this.keyValues.push(makeKeyValuePair(r.key, r.currentValue));
  91113. });
  91114. this.keyValues.sort(compareFn);
  91115. }
  91116. return this.keyValues;
  91117. }
  91118. }
  91119. KeyValuePipe.ɵfac = function KeyValuePipe_Factory(t) { return new (t || KeyValuePipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"])); };
  91120. KeyValuePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "keyvalue", type: KeyValuePipe, pure: false });
  91121. KeyValuePipe.ctorParameters = () => [
  91122. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] }
  91123. ];
  91124. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](KeyValuePipe, [{
  91125. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  91126. args: [{ name: 'keyvalue', pure: false }]
  91127. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["KeyValueDiffers"] }]; }, null); })();
  91128. function defaultComparator(keyValueA, keyValueB) {
  91129. const a = keyValueA.key;
  91130. const b = keyValueB.key;
  91131. // if same exit with 0;
  91132. if (a === b)
  91133. return 0;
  91134. // make sure that undefined are at the end of the sort.
  91135. if (a === undefined)
  91136. return 1;
  91137. if (b === undefined)
  91138. return -1;
  91139. // make sure that nulls are at the end of the sort.
  91140. if (a === null)
  91141. return 1;
  91142. if (b === null)
  91143. return -1;
  91144. if (typeof a == 'string' && typeof b == 'string') {
  91145. return a < b ? -1 : 1;
  91146. }
  91147. if (typeof a == 'number' && typeof b == 'number') {
  91148. return a - b;
  91149. }
  91150. if (typeof a == 'boolean' && typeof b == 'boolean') {
  91151. return a < b ? -1 : 1;
  91152. }
  91153. // `a` and `b` are of different types. Compare their string values.
  91154. const aString = String(a);
  91155. const bString = String(b);
  91156. return aString == bString ? 0 : aString < bString ? -1 : 1;
  91157. }
  91158. /**
  91159. * @license
  91160. * Copyright Google LLC All Rights Reserved.
  91161. *
  91162. * Use of this source code is governed by an MIT-style license that can be
  91163. * found in the LICENSE file at https://angular.io/license
  91164. */
  91165. /**
  91166. * @ngModule CommonModule
  91167. * @description
  91168. *
  91169. * Transforms a number into a string,
  91170. * formatted according to locale rules that determine group sizing and
  91171. * separator, decimal-point character, and other locale-specific
  91172. * configurations.
  91173. *
  91174. * If no parameters are specified, the function rounds off to the nearest value using this
  91175. * [rounding method](https://en.wikibooks.org/wiki/Arithmetic/Rounding).
  91176. * The behavior differs from that of the JavaScript ```Math.round()``` function.
  91177. * In the following case for example, the pipe rounds down where
  91178. * ```Math.round()``` rounds up:
  91179. *
  91180. * ```html
  91181. * -2.5 | number:'1.0-0'
  91182. * > -3
  91183. * Math.round(-2.5)
  91184. * > -2
  91185. * ```
  91186. *
  91187. * @see `formatNumber()`
  91188. *
  91189. * @usageNotes
  91190. * The following code shows how the pipe transforms numbers
  91191. * into text strings, according to various format specifications,
  91192. * where the caller's default locale is `en-US`.
  91193. *
  91194. * ### Example
  91195. *
  91196. * <code-example path="common/pipes/ts/number_pipe.ts" region='NumberPipe'></code-example>
  91197. *
  91198. * @publicApi
  91199. */
  91200. class DecimalPipe {
  91201. constructor(_locale) {
  91202. this._locale = _locale;
  91203. }
  91204. transform(value, digitsInfo, locale) {
  91205. if (!isValue(value))
  91206. return null;
  91207. locale = locale || this._locale;
  91208. try {
  91209. const num = strToNumber(value);
  91210. return formatNumber(num, locale, digitsInfo);
  91211. }
  91212. catch (error) {
  91213. throw invalidPipeArgumentError(DecimalPipe, error.message);
  91214. }
  91215. }
  91216. }
  91217. DecimalPipe.ɵfac = function DecimalPipe_Factory(t) { return new (t || DecimalPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"])); };
  91218. DecimalPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "number", type: DecimalPipe, pure: true });
  91219. DecimalPipe.ctorParameters = () => [
  91220. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"],] }] }
  91221. ];
  91222. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](DecimalPipe, [{
  91223. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  91224. args: [{ name: 'number' }]
  91225. }], function () { return [{ type: String, decorators: [{
  91226. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  91227. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
  91228. }] }]; }, null); })();
  91229. /**
  91230. * @ngModule CommonModule
  91231. * @description
  91232. *
  91233. * Transforms a number to a percentage
  91234. * string, formatted according to locale rules that determine group sizing and
  91235. * separator, decimal-point character, and other locale-specific
  91236. * configurations.
  91237. *
  91238. * @see `formatPercent()`
  91239. *
  91240. * @usageNotes
  91241. * The following code shows how the pipe transforms numbers
  91242. * into text strings, according to various format specifications,
  91243. * where the caller's default locale is `en-US`.
  91244. *
  91245. * <code-example path="common/pipes/ts/percent_pipe.ts" region='PercentPipe'></code-example>
  91246. *
  91247. * @publicApi
  91248. */
  91249. class PercentPipe {
  91250. constructor(_locale) {
  91251. this._locale = _locale;
  91252. }
  91253. transform(value, digitsInfo, locale) {
  91254. if (!isValue(value))
  91255. return null;
  91256. locale = locale || this._locale;
  91257. try {
  91258. const num = strToNumber(value);
  91259. return formatPercent(num, locale, digitsInfo);
  91260. }
  91261. catch (error) {
  91262. throw invalidPipeArgumentError(PercentPipe, error.message);
  91263. }
  91264. }
  91265. }
  91266. PercentPipe.ɵfac = function PercentPipe_Factory(t) { return new (t || PercentPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"])); };
  91267. PercentPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "percent", type: PercentPipe, pure: true });
  91268. PercentPipe.ctorParameters = () => [
  91269. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"],] }] }
  91270. ];
  91271. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](PercentPipe, [{
  91272. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  91273. args: [{ name: 'percent' }]
  91274. }], function () { return [{ type: String, decorators: [{
  91275. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  91276. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
  91277. }] }]; }, null); })();
  91278. /**
  91279. * @ngModule CommonModule
  91280. * @description
  91281. *
  91282. * Transforms a number to a currency string, formatted according to locale rules
  91283. * that determine group sizing and separator, decimal-point character,
  91284. * and other locale-specific configurations.
  91285. *
  91286. * {@a currency-code-deprecation}
  91287. * <div class="alert is-helpful">
  91288. *
  91289. * **Deprecation notice:**
  91290. *
  91291. * The default currency code is currently always `USD` but this is deprecated from v9.
  91292. *
  91293. * **In v11 the default currency code will be taken from the current locale identified by
  91294. * the `LOCAL_ID` token. See the [i18n guide](guide/i18n#setting-up-the-locale-of-your-app) for
  91295. * more information.**
  91296. *
  91297. * If you need the previous behavior then set it by creating a `DEFAULT_CURRENCY_CODE` provider in
  91298. * your application `NgModule`:
  91299. *
  91300. * ```ts
  91301. * {provide: DEFAULT_CURRENCY_CODE, useValue: 'USD'}
  91302. * ```
  91303. *
  91304. * </div>
  91305. *
  91306. * @see `getCurrencySymbol()`
  91307. * @see `formatCurrency()`
  91308. *
  91309. * @usageNotes
  91310. * The following code shows how the pipe transforms numbers
  91311. * into text strings, according to various format specifications,
  91312. * where the caller's default locale is `en-US`.
  91313. *
  91314. * <code-example path="common/pipes/ts/currency_pipe.ts" region='CurrencyPipe'></code-example>
  91315. *
  91316. * @publicApi
  91317. */
  91318. class CurrencyPipe {
  91319. constructor(_locale, _defaultCurrencyCode = 'USD') {
  91320. this._locale = _locale;
  91321. this._defaultCurrencyCode = _defaultCurrencyCode;
  91322. }
  91323. transform(value, currencyCode, display = 'symbol', digitsInfo, locale) {
  91324. if (!isValue(value))
  91325. return null;
  91326. locale = locale || this._locale;
  91327. if (typeof display === 'boolean') {
  91328. if ((typeof ngDevMode === 'undefined' || ngDevMode) && console && console.warn) {
  91329. console.warn(`Warning: the currency pipe has been changed in Angular v5. The symbolDisplay option (third parameter) is now a string instead of a boolean. The accepted values are "code", "symbol" or "symbol-narrow".`);
  91330. }
  91331. display = display ? 'symbol' : 'code';
  91332. }
  91333. let currency = currencyCode || this._defaultCurrencyCode;
  91334. if (display !== 'code') {
  91335. if (display === 'symbol' || display === 'symbol-narrow') {
  91336. currency = getCurrencySymbol(currency, display === 'symbol' ? 'wide' : 'narrow', locale);
  91337. }
  91338. else {
  91339. currency = display;
  91340. }
  91341. }
  91342. try {
  91343. const num = strToNumber(value);
  91344. return formatCurrency(num, locale, currency, currencyCode, digitsInfo);
  91345. }
  91346. catch (error) {
  91347. throw invalidPipeArgumentError(CurrencyPipe, error.message);
  91348. }
  91349. }
  91350. }
  91351. CurrencyPipe.ɵfac = function CurrencyPipe_Factory(t) { return new (t || CurrencyPipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CURRENCY_CODE"])); };
  91352. CurrencyPipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "currency", type: CurrencyPipe, pure: true });
  91353. CurrencyPipe.ctorParameters = () => [
  91354. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"],] }] },
  91355. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CURRENCY_CODE"],] }] }
  91356. ];
  91357. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CurrencyPipe, [{
  91358. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  91359. args: [{ name: 'currency' }]
  91360. }], function () { return [{ type: String, decorators: [{
  91361. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  91362. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["LOCALE_ID"]]
  91363. }] }, { type: String, decorators: [{
  91364. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  91365. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["DEFAULT_CURRENCY_CODE"]]
  91366. }] }]; }, null); })();
  91367. function isValue(value) {
  91368. return !(value == null || value === '' || value !== value);
  91369. }
  91370. /**
  91371. * Transforms a string into a number (if needed).
  91372. */
  91373. function strToNumber(value) {
  91374. // Convert strings to numbers
  91375. if (typeof value === 'string' && !isNaN(Number(value) - parseFloat(value))) {
  91376. return Number(value);
  91377. }
  91378. if (typeof value !== 'number') {
  91379. throw new Error(`${value} is not a number`);
  91380. }
  91381. return value;
  91382. }
  91383. /**
  91384. * @license
  91385. * Copyright Google LLC All Rights Reserved.
  91386. *
  91387. * Use of this source code is governed by an MIT-style license that can be
  91388. * found in the LICENSE file at https://angular.io/license
  91389. */
  91390. /**
  91391. * @ngModule CommonModule
  91392. * @description
  91393. *
  91394. * Creates a new `Array` or `String` containing a subset (slice) of the elements.
  91395. *
  91396. * @usageNotes
  91397. *
  91398. * All behavior is based on the expected behavior of the JavaScript API `Array.prototype.slice()`
  91399. * and `String.prototype.slice()`.
  91400. *
  91401. * When operating on an `Array`, the returned `Array` is always a copy even when all
  91402. * the elements are being returned.
  91403. *
  91404. * When operating on a blank value, the pipe returns the blank value.
  91405. *
  91406. * ### List Example
  91407. *
  91408. * This `ngFor` example:
  91409. *
  91410. * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_list'}
  91411. *
  91412. * produces the following:
  91413. *
  91414. * ```html
  91415. * <li>b</li>
  91416. * <li>c</li>
  91417. * ```
  91418. *
  91419. * ### String Examples
  91420. *
  91421. * {@example common/pipes/ts/slice_pipe.ts region='SlicePipe_string'}
  91422. *
  91423. * @publicApi
  91424. */
  91425. class SlicePipe {
  91426. transform(value, start, end) {
  91427. if (value == null)
  91428. return null;
  91429. if (!this.supports(value)) {
  91430. throw invalidPipeArgumentError(SlicePipe, value);
  91431. }
  91432. return value.slice(start, end);
  91433. }
  91434. supports(obj) {
  91435. return typeof obj === 'string' || Array.isArray(obj);
  91436. }
  91437. }
  91438. SlicePipe.ɵfac = function SlicePipe_Factory(t) { return new (t || SlicePipe)(); };
  91439. SlicePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "slice", type: SlicePipe, pure: false });
  91440. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](SlicePipe, [{
  91441. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  91442. args: [{ name: 'slice', pure: false }]
  91443. }], null, null); })();
  91444. /**
  91445. * @license
  91446. * Copyright Google LLC All Rights Reserved.
  91447. *
  91448. * Use of this source code is governed by an MIT-style license that can be
  91449. * found in the LICENSE file at https://angular.io/license
  91450. */
  91451. /**
  91452. * A collection of Angular pipes that are likely to be used in each and every application.
  91453. */
  91454. const COMMON_PIPES = [
  91455. AsyncPipe,
  91456. UpperCasePipe,
  91457. LowerCasePipe,
  91458. JsonPipe,
  91459. SlicePipe,
  91460. DecimalPipe,
  91461. PercentPipe,
  91462. TitleCasePipe,
  91463. CurrencyPipe,
  91464. DatePipe,
  91465. I18nPluralPipe,
  91466. I18nSelectPipe,
  91467. KeyValuePipe,
  91468. ];
  91469. /**
  91470. * @license
  91471. * Copyright Google LLC All Rights Reserved.
  91472. *
  91473. * Use of this source code is governed by an MIT-style license that can be
  91474. * found in the LICENSE file at https://angular.io/license
  91475. */
  91476. // Note: This does not contain the location providers,
  91477. // as they need some platform specific implementations to work.
  91478. /**
  91479. * Exports all the basic Angular directives and pipes,
  91480. * such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
  91481. * Re-exported by `BrowserModule`, which is included automatically in the root
  91482. * `AppModule` when you create a new app with the CLI `new` command.
  91483. *
  91484. * * The `providers` options configure the NgModule's injector to provide
  91485. * localization dependencies to members.
  91486. * * The `exports` options make the declared directives and pipes available for import
  91487. * by other NgModules.
  91488. *
  91489. * @publicApi
  91490. */
  91491. class CommonModule {
  91492. }
  91493. CommonModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: CommonModule });
  91494. CommonModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function CommonModule_Factory(t) { return new (t || CommonModule)(); }, providers: [
  91495. { provide: NgLocalization, useClass: NgLocaleLocalization },
  91496. ] });
  91497. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](CommonModule, { declarations: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe], exports: [NgClass, NgComponentOutlet, NgForOf, NgIf, NgTemplateOutlet, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgPlural, NgPluralCase, AsyncPipe, UpperCasePipe, LowerCasePipe, JsonPipe, SlicePipe, DecimalPipe, PercentPipe, TitleCasePipe, CurrencyPipe, DatePipe, I18nPluralPipe, I18nSelectPipe, KeyValuePipe] }); })();
  91498. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CommonModule, [{
  91499. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  91500. args: [{
  91501. declarations: [COMMON_DIRECTIVES, COMMON_PIPES],
  91502. exports: [COMMON_DIRECTIVES, COMMON_PIPES],
  91503. providers: [
  91504. { provide: NgLocalization, useClass: NgLocaleLocalization },
  91505. ]
  91506. }]
  91507. }], null, null); })();
  91508. /**
  91509. * @license
  91510. * Copyright Google LLC All Rights Reserved.
  91511. *
  91512. * Use of this source code is governed by an MIT-style license that can be
  91513. * found in the LICENSE file at https://angular.io/license
  91514. */
  91515. const PLATFORM_BROWSER_ID = 'browser';
  91516. const PLATFORM_SERVER_ID = 'server';
  91517. const PLATFORM_WORKER_APP_ID = 'browserWorkerApp';
  91518. const PLATFORM_WORKER_UI_ID = 'browserWorkerUi';
  91519. /**
  91520. * Returns whether a platform id represents a browser platform.
  91521. * @publicApi
  91522. */
  91523. function isPlatformBrowser(platformId) {
  91524. return platformId === PLATFORM_BROWSER_ID;
  91525. }
  91526. /**
  91527. * Returns whether a platform id represents a server platform.
  91528. * @publicApi
  91529. */
  91530. function isPlatformServer(platformId) {
  91531. return platformId === PLATFORM_SERVER_ID;
  91532. }
  91533. /**
  91534. * Returns whether a platform id represents a web worker app platform.
  91535. * @publicApi
  91536. */
  91537. function isPlatformWorkerApp(platformId) {
  91538. return platformId === PLATFORM_WORKER_APP_ID;
  91539. }
  91540. /**
  91541. * Returns whether a platform id represents a web worker UI platform.
  91542. * @publicApi
  91543. */
  91544. function isPlatformWorkerUi(platformId) {
  91545. return platformId === PLATFORM_WORKER_UI_ID;
  91546. }
  91547. /**
  91548. * @license
  91549. * Copyright Google LLC All Rights Reserved.
  91550. *
  91551. * Use of this source code is governed by an MIT-style license that can be
  91552. * found in the LICENSE file at https://angular.io/license
  91553. */
  91554. /**
  91555. * @publicApi
  91556. */
  91557. const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["Version"]('11.0.4');
  91558. /**
  91559. * @license
  91560. * Copyright Google LLC All Rights Reserved.
  91561. *
  91562. * Use of this source code is governed by an MIT-style license that can be
  91563. * found in the LICENSE file at https://angular.io/license
  91564. */
  91565. /**
  91566. * Defines a scroll position manager. Implemented by `BrowserViewportScroller`.
  91567. *
  91568. * @publicApi
  91569. */
  91570. class ViewportScroller {
  91571. }
  91572. // De-sugared tree-shakable injection
  91573. // See #23917
  91574. /** @nocollapse */
  91575. ViewportScroller.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"])({
  91576. token: ViewportScroller,
  91577. providedIn: 'root',
  91578. factory: () => new BrowserViewportScroller(Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(DOCUMENT), window, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ErrorHandler"]))
  91579. });
  91580. /**
  91581. * Manages the scroll position for a browser window.
  91582. */
  91583. class BrowserViewportScroller {
  91584. constructor(document, window, errorHandler) {
  91585. this.document = document;
  91586. this.window = window;
  91587. this.errorHandler = errorHandler;
  91588. this.offset = () => [0, 0];
  91589. }
  91590. /**
  91591. * Configures the top offset used when scrolling to an anchor.
  91592. * @param offset A position in screen coordinates (a tuple with x and y values)
  91593. * or a function that returns the top offset position.
  91594. *
  91595. */
  91596. setOffset(offset) {
  91597. if (Array.isArray(offset)) {
  91598. this.offset = () => offset;
  91599. }
  91600. else {
  91601. this.offset = offset;
  91602. }
  91603. }
  91604. /**
  91605. * Retrieves the current scroll position.
  91606. * @returns The position in screen coordinates.
  91607. */
  91608. getScrollPosition() {
  91609. if (this.supportsScrolling()) {
  91610. return [this.window.pageXOffset, this.window.pageYOffset];
  91611. }
  91612. else {
  91613. return [0, 0];
  91614. }
  91615. }
  91616. /**
  91617. * Sets the scroll position.
  91618. * @param position The new position in screen coordinates.
  91619. */
  91620. scrollToPosition(position) {
  91621. if (this.supportsScrolling()) {
  91622. this.window.scrollTo(position[0], position[1]);
  91623. }
  91624. }
  91625. /**
  91626. * Scrolls to an anchor element.
  91627. * @param anchor The ID of the anchor element.
  91628. */
  91629. scrollToAnchor(anchor) {
  91630. if (this.supportsScrolling()) {
  91631. const elSelected = this.document.getElementById(anchor) || this.document.getElementsByName(anchor)[0];
  91632. if (elSelected) {
  91633. this.scrollToElement(elSelected);
  91634. }
  91635. }
  91636. }
  91637. /**
  91638. * Disables automatic scroll restoration provided by the browser.
  91639. */
  91640. setHistoryScrollRestoration(scrollRestoration) {
  91641. if (this.supportScrollRestoration()) {
  91642. const history = this.window.history;
  91643. if (history && history.scrollRestoration) {
  91644. history.scrollRestoration = scrollRestoration;
  91645. }
  91646. }
  91647. }
  91648. scrollToElement(el) {
  91649. const rect = el.getBoundingClientRect();
  91650. const left = rect.left + this.window.pageXOffset;
  91651. const top = rect.top + this.window.pageYOffset;
  91652. const offset = this.offset();
  91653. this.window.scrollTo(left - offset[0], top - offset[1]);
  91654. }
  91655. /**
  91656. * We only support scroll restoration when we can get a hold of window.
  91657. * This means that we do not support this behavior when running in a web worker.
  91658. *
  91659. * Lifting this restriction right now would require more changes in the dom adapter.
  91660. * Since webworkers aren't widely used, we will lift it once RouterScroller is
  91661. * battle-tested.
  91662. */
  91663. supportScrollRestoration() {
  91664. try {
  91665. if (!this.supportsScrolling()) {
  91666. return false;
  91667. }
  91668. // The `scrollRestoration` property could be on the `history` instance or its prototype.
  91669. const scrollRestorationDescriptor = getScrollRestorationProperty(this.window.history) ||
  91670. getScrollRestorationProperty(Object.getPrototypeOf(this.window.history));
  91671. // We can write to the `scrollRestoration` property if it is a writable data field or it has a
  91672. // setter function.
  91673. return !!scrollRestorationDescriptor &&
  91674. !!(scrollRestorationDescriptor.writable || scrollRestorationDescriptor.set);
  91675. }
  91676. catch (_a) {
  91677. return false;
  91678. }
  91679. }
  91680. supportsScrolling() {
  91681. try {
  91682. return !!this.window && !!this.window.scrollTo && 'pageXOffset' in this.window;
  91683. }
  91684. catch (_a) {
  91685. return false;
  91686. }
  91687. }
  91688. }
  91689. function getScrollRestorationProperty(obj) {
  91690. return Object.getOwnPropertyDescriptor(obj, 'scrollRestoration');
  91691. }
  91692. /**
  91693. * Provides an empty implementation of the viewport scroller.
  91694. */
  91695. class NullViewportScroller {
  91696. /**
  91697. * Empty implementation
  91698. */
  91699. setOffset(offset) { }
  91700. /**
  91701. * Empty implementation
  91702. */
  91703. getScrollPosition() {
  91704. return [0, 0];
  91705. }
  91706. /**
  91707. * Empty implementation
  91708. */
  91709. scrollToPosition(position) { }
  91710. /**
  91711. * Empty implementation
  91712. */
  91713. scrollToAnchor(anchor) { }
  91714. /**
  91715. * Empty implementation
  91716. */
  91717. setHistoryScrollRestoration(scrollRestoration) { }
  91718. }
  91719. /**
  91720. * @license
  91721. * Copyright Google LLC All Rights Reserved.
  91722. *
  91723. * Use of this source code is governed by an MIT-style license that can be
  91724. * found in the LICENSE file at https://angular.io/license
  91725. */
  91726. /**
  91727. * @license
  91728. * Copyright Google LLC All Rights Reserved.
  91729. *
  91730. * Use of this source code is governed by an MIT-style license that can be
  91731. * found in the LICENSE file at https://angular.io/license
  91732. */
  91733. // This file only reexports content of the `src` folder. Keep it that way.
  91734. /**
  91735. * @license
  91736. * Copyright Google LLC All Rights Reserved.
  91737. *
  91738. * Use of this source code is governed by an MIT-style license that can be
  91739. * found in the LICENSE file at https://angular.io/license
  91740. */
  91741. /**
  91742. * Generated bundle index. Do not edit.
  91743. */
  91744. //# sourceMappingURL=common.js.map
  91745. /***/ }),
  91746. /***/ "p9/F":
  91747. /*!*****************************************************************!*\
  91748. !*** ./node_modules/rxjs/_esm2015/internal/operators/buffer.js ***!
  91749. \*****************************************************************/
  91750. /*! exports provided: buffer */
  91751. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91752. "use strict";
  91753. __webpack_require__.r(__webpack_exports__);
  91754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "buffer", function() { return buffer; });
  91755. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  91756. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  91757. function buffer(closingNotifier) {
  91758. return function bufferOperatorFunction(source) {
  91759. return source.lift(new BufferOperator(closingNotifier));
  91760. };
  91761. }
  91762. class BufferOperator {
  91763. constructor(closingNotifier) {
  91764. this.closingNotifier = closingNotifier;
  91765. }
  91766. call(subscriber, source) {
  91767. return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));
  91768. }
  91769. }
  91770. class BufferSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  91771. constructor(destination, closingNotifier) {
  91772. super(destination);
  91773. this.buffer = [];
  91774. this.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, closingNotifier));
  91775. }
  91776. _next(value) {
  91777. this.buffer.push(value);
  91778. }
  91779. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  91780. const buffer = this.buffer;
  91781. this.buffer = [];
  91782. this.destination.next(buffer);
  91783. }
  91784. }
  91785. //# sourceMappingURL=buffer.js.map
  91786. /***/ }),
  91787. /***/ "pLZG":
  91788. /*!*****************************************************************!*\
  91789. !*** ./node_modules/rxjs/_esm2015/internal/operators/filter.js ***!
  91790. \*****************************************************************/
  91791. /*! exports provided: filter */
  91792. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91793. "use strict";
  91794. __webpack_require__.r(__webpack_exports__);
  91795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "filter", function() { return filter; });
  91796. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  91797. function filter(predicate, thisArg) {
  91798. return function filterOperatorFunction(source) {
  91799. return source.lift(new FilterOperator(predicate, thisArg));
  91800. };
  91801. }
  91802. class FilterOperator {
  91803. constructor(predicate, thisArg) {
  91804. this.predicate = predicate;
  91805. this.thisArg = thisArg;
  91806. }
  91807. call(subscriber, source) {
  91808. return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));
  91809. }
  91810. }
  91811. class FilterSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  91812. constructor(destination, predicate, thisArg) {
  91813. super(destination);
  91814. this.predicate = predicate;
  91815. this.thisArg = thisArg;
  91816. this.count = 0;
  91817. }
  91818. _next(value) {
  91819. let result;
  91820. try {
  91821. result = this.predicate.call(this.thisArg, value, this.count++);
  91822. }
  91823. catch (err) {
  91824. this.destination.error(err);
  91825. return;
  91826. }
  91827. if (result) {
  91828. this.destination.next(value);
  91829. }
  91830. }
  91831. }
  91832. //# sourceMappingURL=filter.js.map
  91833. /***/ }),
  91834. /***/ "pLzU":
  91835. /*!*************************************************************************!*\
  91836. !*** ./node_modules/rxjs/_esm2015/internal/util/subscribeToIterable.js ***!
  91837. \*************************************************************************/
  91838. /*! exports provided: subscribeToIterable */
  91839. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91840. "use strict";
  91841. __webpack_require__.r(__webpack_exports__);
  91842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeToIterable", function() { return subscribeToIterable; });
  91843. /* harmony import */ var _symbol_iterator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../symbol/iterator */ "Lhse");
  91844. const subscribeToIterable = (iterable) => (subscriber) => {
  91845. const iterator = iterable[_symbol_iterator__WEBPACK_IMPORTED_MODULE_0__["iterator"]]();
  91846. do {
  91847. const item = iterator.next();
  91848. if (item.done) {
  91849. subscriber.complete();
  91850. break;
  91851. }
  91852. subscriber.next(item.value);
  91853. if (subscriber.closed) {
  91854. break;
  91855. }
  91856. } while (true);
  91857. if (typeof iterator.return === 'function') {
  91858. subscriber.add(() => {
  91859. if (iterator.return) {
  91860. iterator.return();
  91861. }
  91862. });
  91863. }
  91864. return subscriber;
  91865. };
  91866. //# sourceMappingURL=subscribeToIterable.js.map
  91867. /***/ }),
  91868. /***/ "pXlZ":
  91869. /*!*********************************************************************!*\
  91870. !*** ./node_modules/rxjs/_esm2015/internal/operators/windowWhen.js ***!
  91871. \*********************************************************************/
  91872. /*! exports provided: windowWhen */
  91873. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91874. "use strict";
  91875. __webpack_require__.r(__webpack_exports__);
  91876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowWhen", function() { return windowWhen; });
  91877. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG");
  91878. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  91879. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  91880. function windowWhen(closingSelector) {
  91881. return function windowWhenOperatorFunction(source) {
  91882. return source.lift(new WindowOperator(closingSelector));
  91883. };
  91884. }
  91885. class WindowOperator {
  91886. constructor(closingSelector) {
  91887. this.closingSelector = closingSelector;
  91888. }
  91889. call(subscriber, source) {
  91890. return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));
  91891. }
  91892. }
  91893. class WindowSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_1__["OuterSubscriber"] {
  91894. constructor(destination, closingSelector) {
  91895. super(destination);
  91896. this.destination = destination;
  91897. this.closingSelector = closingSelector;
  91898. this.openWindow();
  91899. }
  91900. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  91901. this.openWindow(innerSub);
  91902. }
  91903. notifyError(error, innerSub) {
  91904. this._error(error);
  91905. }
  91906. notifyComplete(innerSub) {
  91907. this.openWindow(innerSub);
  91908. }
  91909. _next(value) {
  91910. this.window.next(value);
  91911. }
  91912. _error(err) {
  91913. this.window.error(err);
  91914. this.destination.error(err);
  91915. this.unsubscribeClosingNotification();
  91916. }
  91917. _complete() {
  91918. this.window.complete();
  91919. this.destination.complete();
  91920. this.unsubscribeClosingNotification();
  91921. }
  91922. unsubscribeClosingNotification() {
  91923. if (this.closingNotification) {
  91924. this.closingNotification.unsubscribe();
  91925. }
  91926. }
  91927. openWindow(innerSub = null) {
  91928. if (innerSub) {
  91929. this.remove(innerSub);
  91930. innerSub.unsubscribe();
  91931. }
  91932. const prevWindow = this.window;
  91933. if (prevWindow) {
  91934. prevWindow.complete();
  91935. }
  91936. const window = this.window = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  91937. this.destination.next(window);
  91938. let closingNotifier;
  91939. try {
  91940. const { closingSelector } = this;
  91941. closingNotifier = closingSelector();
  91942. }
  91943. catch (e) {
  91944. this.destination.error(e);
  91945. this.window.error(e);
  91946. return;
  91947. }
  91948. this.add(this.closingNotification = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, closingNotifier));
  91949. }
  91950. }
  91951. //# sourceMappingURL=windowWhen.js.map
  91952. /***/ }),
  91953. /***/ "pjAE":
  91954. /*!*************************************************************************!*\
  91955. !*** ./node_modules/rxjs/_esm2015/internal/util/UnsubscriptionError.js ***!
  91956. \*************************************************************************/
  91957. /*! exports provided: UnsubscriptionError */
  91958. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91959. "use strict";
  91960. __webpack_require__.r(__webpack_exports__);
  91961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnsubscriptionError", function() { return UnsubscriptionError; });
  91962. const UnsubscriptionErrorImpl = (() => {
  91963. function UnsubscriptionErrorImpl(errors) {
  91964. Error.call(this);
  91965. this.message = errors ?
  91966. `${errors.length} errors occurred during unsubscription:
  91967. ${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` : '';
  91968. this.name = 'UnsubscriptionError';
  91969. this.errors = errors;
  91970. return this;
  91971. }
  91972. UnsubscriptionErrorImpl.prototype = Object.create(Error.prototype);
  91973. return UnsubscriptionErrorImpl;
  91974. })();
  91975. const UnsubscriptionError = UnsubscriptionErrorImpl;
  91976. //# sourceMappingURL=UnsubscriptionError.js.map
  91977. /***/ }),
  91978. /***/ "pxpQ":
  91979. /*!********************************************************************!*\
  91980. !*** ./node_modules/rxjs/_esm2015/internal/operators/observeOn.js ***!
  91981. \********************************************************************/
  91982. /*! exports provided: observeOn, ObserveOnOperator, ObserveOnSubscriber, ObserveOnMessage */
  91983. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  91984. "use strict";
  91985. __webpack_require__.r(__webpack_exports__);
  91986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "observeOn", function() { return observeOn; });
  91987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObserveOnOperator", function() { return ObserveOnOperator; });
  91988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObserveOnSubscriber", function() { return ObserveOnSubscriber; });
  91989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ObserveOnMessage", function() { return ObserveOnMessage; });
  91990. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  91991. /* harmony import */ var _Notification__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Notification */ "WMd4");
  91992. function observeOn(scheduler, delay = 0) {
  91993. return function observeOnOperatorFunction(source) {
  91994. return source.lift(new ObserveOnOperator(scheduler, delay));
  91995. };
  91996. }
  91997. class ObserveOnOperator {
  91998. constructor(scheduler, delay = 0) {
  91999. this.scheduler = scheduler;
  92000. this.delay = delay;
  92001. }
  92002. call(subscriber, source) {
  92003. return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));
  92004. }
  92005. }
  92006. class ObserveOnSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  92007. constructor(destination, scheduler, delay = 0) {
  92008. super(destination);
  92009. this.scheduler = scheduler;
  92010. this.delay = delay;
  92011. }
  92012. static dispatch(arg) {
  92013. const { notification, destination } = arg;
  92014. notification.observe(destination);
  92015. this.unsubscribe();
  92016. }
  92017. scheduleMessage(notification) {
  92018. const destination = this.destination;
  92019. destination.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));
  92020. }
  92021. _next(value) {
  92022. this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createNext(value));
  92023. }
  92024. _error(err) {
  92025. this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createError(err));
  92026. this.unsubscribe();
  92027. }
  92028. _complete() {
  92029. this.scheduleMessage(_Notification__WEBPACK_IMPORTED_MODULE_1__["Notification"].createComplete());
  92030. this.unsubscribe();
  92031. }
  92032. }
  92033. class ObserveOnMessage {
  92034. constructor(notification, destination) {
  92035. this.notification = notification;
  92036. this.destination = destination;
  92037. }
  92038. }
  92039. //# sourceMappingURL=observeOn.js.map
  92040. /***/ }),
  92041. /***/ "q7zd":
  92042. /*!**********************************************************************!*\
  92043. !*** ./node_modules/rxjs/_esm2015/internal/operators/concatMapTo.js ***!
  92044. \**********************************************************************/
  92045. /*! exports provided: concatMapTo */
  92046. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92047. "use strict";
  92048. __webpack_require__.r(__webpack_exports__);
  92049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "concatMapTo", function() { return concatMapTo; });
  92050. /* harmony import */ var _concatMap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./concatMap */ "bOdf");
  92051. function concatMapTo(innerObservable, resultSelector) {
  92052. return Object(_concatMap__WEBPACK_IMPORTED_MODULE_0__["concatMap"])(() => innerObservable, resultSelector);
  92053. }
  92054. //# sourceMappingURL=concatMapTo.js.map
  92055. /***/ }),
  92056. /***/ "q92s":
  92057. /*!****************************************************************!*\
  92058. !*** ./node_modules/rxjs/_esm2015/internal/operators/merge.js ***!
  92059. \****************************************************************/
  92060. /*! exports provided: merge */
  92061. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92062. "use strict";
  92063. __webpack_require__.r(__webpack_exports__);
  92064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return merge; });
  92065. /* harmony import */ var _observable_merge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/merge */ "VRyK");
  92066. function merge(...observables) {
  92067. return (source) => source.lift.call(Object(_observable_merge__WEBPACK_IMPORTED_MODULE_0__["merge"])(source, ...observables));
  92068. }
  92069. //# sourceMappingURL=merge.js.map
  92070. /***/ }),
  92071. /***/ "qCKp":
  92072. /*!*********************************************!*\
  92073. !*** ./node_modules/rxjs/_esm2015/index.js ***!
  92074. \*********************************************/
  92075. /*! exports provided: Observable, ConnectableObservable, GroupedObservable, observable, Subject, BehaviorSubject, ReplaySubject, AsyncSubject, asapScheduler, asyncScheduler, queueScheduler, animationFrameScheduler, VirtualTimeScheduler, VirtualAction, Scheduler, Subscription, Subscriber, Notification, NotificationKind, pipe, noop, identity, isObservable, ArgumentOutOfRangeError, EmptyError, ObjectUnsubscribedError, UnsubscriptionError, TimeoutError, bindCallback, bindNodeCallback, combineLatest, concat, defer, empty, forkJoin, from, fromEvent, fromEventPattern, generate, iif, interval, merge, never, of, onErrorResumeNext, pairs, partition, race, range, throwError, timer, using, zip, scheduled, EMPTY, NEVER, config */
  92076. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92077. "use strict";
  92078. __webpack_require__.r(__webpack_exports__);
  92079. /* harmony import */ var _internal_Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./internal/Observable */ "HDdC");
  92080. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Observable", function() { return _internal_Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"]; });
  92081. /* harmony import */ var _internal_observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./internal/observable/ConnectableObservable */ "EQ5u");
  92082. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ConnectableObservable", function() { return _internal_observable_ConnectableObservable__WEBPACK_IMPORTED_MODULE_1__["ConnectableObservable"]; });
  92083. /* harmony import */ var _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./internal/operators/groupBy */ "OQgR");
  92084. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "GroupedObservable", function() { return _internal_operators_groupBy__WEBPACK_IMPORTED_MODULE_2__["GroupedObservable"]; });
  92085. /* harmony import */ var _internal_symbol_observable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./internal/symbol/observable */ "kJWO");
  92086. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "observable", function() { return _internal_symbol_observable__WEBPACK_IMPORTED_MODULE_3__["observable"]; });
  92087. /* harmony import */ var _internal_Subject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./internal/Subject */ "XNiG");
  92088. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Subject", function() { return _internal_Subject__WEBPACK_IMPORTED_MODULE_4__["Subject"]; });
  92089. /* harmony import */ var _internal_BehaviorSubject__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./internal/BehaviorSubject */ "2Vo4");
  92090. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "BehaviorSubject", function() { return _internal_BehaviorSubject__WEBPACK_IMPORTED_MODULE_5__["BehaviorSubject"]; });
  92091. /* harmony import */ var _internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./internal/ReplaySubject */ "jtHE");
  92092. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReplaySubject", function() { return _internal_ReplaySubject__WEBPACK_IMPORTED_MODULE_6__["ReplaySubject"]; });
  92093. /* harmony import */ var _internal_AsyncSubject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./internal/AsyncSubject */ "NHP+");
  92094. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AsyncSubject", function() { return _internal_AsyncSubject__WEBPACK_IMPORTED_MODULE_7__["AsyncSubject"]; });
  92095. /* harmony import */ var _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./internal/scheduler/asap */ "7Hc7");
  92096. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asapScheduler", function() { return _internal_scheduler_asap__WEBPACK_IMPORTED_MODULE_8__["asap"]; });
  92097. /* harmony import */ var _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./internal/scheduler/async */ "D0XW");
  92098. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "asyncScheduler", function() { return _internal_scheduler_async__WEBPACK_IMPORTED_MODULE_9__["async"]; });
  92099. /* harmony import */ var _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./internal/scheduler/queue */ "qgXg");
  92100. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "queueScheduler", function() { return _internal_scheduler_queue__WEBPACK_IMPORTED_MODULE_10__["queue"]; });
  92101. /* harmony import */ var _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./internal/scheduler/animationFrame */ "eNwd");
  92102. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "animationFrameScheduler", function() { return _internal_scheduler_animationFrame__WEBPACK_IMPORTED_MODULE_11__["animationFrame"]; });
  92103. /* harmony import */ var _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./internal/scheduler/VirtualTimeScheduler */ "iKkX");
  92104. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VirtualTimeScheduler", function() { return _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__["VirtualTimeScheduler"]; });
  92105. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "VirtualAction", function() { return _internal_scheduler_VirtualTimeScheduler__WEBPACK_IMPORTED_MODULE_12__["VirtualAction"]; });
  92106. /* harmony import */ var _internal_Scheduler__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./internal/Scheduler */ "Y/cZ");
  92107. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Scheduler", function() { return _internal_Scheduler__WEBPACK_IMPORTED_MODULE_13__["Scheduler"]; });
  92108. /* harmony import */ var _internal_Subscription__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./internal/Subscription */ "quSY");
  92109. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Subscription", function() { return _internal_Subscription__WEBPACK_IMPORTED_MODULE_14__["Subscription"]; });
  92110. /* harmony import */ var _internal_Subscriber__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./internal/Subscriber */ "7o/Q");
  92111. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Subscriber", function() { return _internal_Subscriber__WEBPACK_IMPORTED_MODULE_15__["Subscriber"]; });
  92112. /* harmony import */ var _internal_Notification__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./internal/Notification */ "WMd4");
  92113. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Notification", function() { return _internal_Notification__WEBPACK_IMPORTED_MODULE_16__["Notification"]; });
  92114. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotificationKind", function() { return _internal_Notification__WEBPACK_IMPORTED_MODULE_16__["NotificationKind"]; });
  92115. /* harmony import */ var _internal_util_pipe__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./internal/util/pipe */ "mCNh");
  92116. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pipe", function() { return _internal_util_pipe__WEBPACK_IMPORTED_MODULE_17__["pipe"]; });
  92117. /* harmony import */ var _internal_util_noop__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./internal/util/noop */ "KqfI");
  92118. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "noop", function() { return _internal_util_noop__WEBPACK_IMPORTED_MODULE_18__["noop"]; });
  92119. /* harmony import */ var _internal_util_identity__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./internal/util/identity */ "SpAZ");
  92120. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "identity", function() { return _internal_util_identity__WEBPACK_IMPORTED_MODULE_19__["identity"]; });
  92121. /* harmony import */ var _internal_util_isObservable__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./internal/util/isObservable */ "7+OI");
  92122. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isObservable", function() { return _internal_util_isObservable__WEBPACK_IMPORTED_MODULE_20__["isObservable"]; });
  92123. /* harmony import */ var _internal_util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./internal/util/ArgumentOutOfRangeError */ "4I5i");
  92124. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ArgumentOutOfRangeError", function() { return _internal_util_ArgumentOutOfRangeError__WEBPACK_IMPORTED_MODULE_21__["ArgumentOutOfRangeError"]; });
  92125. /* harmony import */ var _internal_util_EmptyError__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./internal/util/EmptyError */ "sVev");
  92126. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EmptyError", function() { return _internal_util_EmptyError__WEBPACK_IMPORTED_MODULE_22__["EmptyError"]; });
  92127. /* harmony import */ var _internal_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./internal/util/ObjectUnsubscribedError */ "9ppp");
  92128. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectUnsubscribedError", function() { return _internal_util_ObjectUnsubscribedError__WEBPACK_IMPORTED_MODULE_23__["ObjectUnsubscribedError"]; });
  92129. /* harmony import */ var _internal_util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./internal/util/UnsubscriptionError */ "pjAE");
  92130. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UnsubscriptionError", function() { return _internal_util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_24__["UnsubscriptionError"]; });
  92131. /* harmony import */ var _internal_util_TimeoutError__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./internal/util/TimeoutError */ "Y6u4");
  92132. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TimeoutError", function() { return _internal_util_TimeoutError__WEBPACK_IMPORTED_MODULE_25__["TimeoutError"]; });
  92133. /* harmony import */ var _internal_observable_bindCallback__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./internal/observable/bindCallback */ "QqCr");
  92134. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bindCallback", function() { return _internal_observable_bindCallback__WEBPACK_IMPORTED_MODULE_26__["bindCallback"]; });
  92135. /* harmony import */ var _internal_observable_bindNodeCallback__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./internal/observable/bindNodeCallback */ "4O5X");
  92136. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "bindNodeCallback", function() { return _internal_observable_bindNodeCallback__WEBPACK_IMPORTED_MODULE_27__["bindNodeCallback"]; });
  92137. /* harmony import */ var _internal_observable_combineLatest__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./internal/observable/combineLatest */ "itXk");
  92138. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "combineLatest", function() { return _internal_observable_combineLatest__WEBPACK_IMPORTED_MODULE_28__["combineLatest"]; });
  92139. /* harmony import */ var _internal_observable_concat__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./internal/observable/concat */ "GyhO");
  92140. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "concat", function() { return _internal_observable_concat__WEBPACK_IMPORTED_MODULE_29__["concat"]; });
  92141. /* harmony import */ var _internal_observable_defer__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./internal/observable/defer */ "NXyV");
  92142. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "defer", function() { return _internal_observable_defer__WEBPACK_IMPORTED_MODULE_30__["defer"]; });
  92143. /* harmony import */ var _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./internal/observable/empty */ "EY2u");
  92144. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__["empty"]; });
  92145. /* harmony import */ var _internal_observable_forkJoin__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./internal/observable/forkJoin */ "cp0P");
  92146. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "forkJoin", function() { return _internal_observable_forkJoin__WEBPACK_IMPORTED_MODULE_32__["forkJoin"]; });
  92147. /* harmony import */ var _internal_observable_from__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./internal/observable/from */ "Cfvw");
  92148. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "from", function() { return _internal_observable_from__WEBPACK_IMPORTED_MODULE_33__["from"]; });
  92149. /* harmony import */ var _internal_observable_fromEvent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./internal/observable/fromEvent */ "xgIS");
  92150. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromEvent", function() { return _internal_observable_fromEvent__WEBPACK_IMPORTED_MODULE_34__["fromEvent"]; });
  92151. /* harmony import */ var _internal_observable_fromEventPattern__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./internal/observable/fromEventPattern */ "04ZW");
  92152. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "fromEventPattern", function() { return _internal_observable_fromEventPattern__WEBPACK_IMPORTED_MODULE_35__["fromEventPattern"]; });
  92153. /* harmony import */ var _internal_observable_generate__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./internal/observable/generate */ "WPMC");
  92154. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "generate", function() { return _internal_observable_generate__WEBPACK_IMPORTED_MODULE_36__["generate"]; });
  92155. /* harmony import */ var _internal_observable_iif__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./internal/observable/iif */ "r0o6");
  92156. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "iif", function() { return _internal_observable_iif__WEBPACK_IMPORTED_MODULE_37__["iif"]; });
  92157. /* harmony import */ var _internal_observable_interval__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./internal/observable/interval */ "l5mm");
  92158. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "interval", function() { return _internal_observable_interval__WEBPACK_IMPORTED_MODULE_38__["interval"]; });
  92159. /* harmony import */ var _internal_observable_merge__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./internal/observable/merge */ "VRyK");
  92160. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "merge", function() { return _internal_observable_merge__WEBPACK_IMPORTED_MODULE_39__["merge"]; });
  92161. /* harmony import */ var _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./internal/observable/never */ "5yfJ");
  92162. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "never", function() { return _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__["never"]; });
  92163. /* harmony import */ var _internal_observable_of__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./internal/observable/of */ "LRne");
  92164. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "of", function() { return _internal_observable_of__WEBPACK_IMPORTED_MODULE_41__["of"]; });
  92165. /* harmony import */ var _internal_observable_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./internal/observable/onErrorResumeNext */ "Hkhx");
  92166. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return _internal_observable_onErrorResumeNext__WEBPACK_IMPORTED_MODULE_42__["onErrorResumeNext"]; });
  92167. /* harmony import */ var _internal_observable_pairs__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./internal/observable/pairs */ "hKy8");
  92168. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "pairs", function() { return _internal_observable_pairs__WEBPACK_IMPORTED_MODULE_43__["pairs"]; });
  92169. /* harmony import */ var _internal_observable_partition__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./internal/observable/partition */ "2QGa");
  92170. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "partition", function() { return _internal_observable_partition__WEBPACK_IMPORTED_MODULE_44__["partition"]; });
  92171. /* harmony import */ var _internal_observable_race__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./internal/observable/race */ "Nv8m");
  92172. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "race", function() { return _internal_observable_race__WEBPACK_IMPORTED_MODULE_45__["race"]; });
  92173. /* harmony import */ var _internal_observable_range__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./internal/observable/range */ "NNCq");
  92174. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "range", function() { return _internal_observable_range__WEBPACK_IMPORTED_MODULE_46__["range"]; });
  92175. /* harmony import */ var _internal_observable_throwError__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./internal/observable/throwError */ "z6cu");
  92176. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "throwError", function() { return _internal_observable_throwError__WEBPACK_IMPORTED_MODULE_47__["throwError"]; });
  92177. /* harmony import */ var _internal_observable_timer__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./internal/observable/timer */ "PqYM");
  92178. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timer", function() { return _internal_observable_timer__WEBPACK_IMPORTED_MODULE_48__["timer"]; });
  92179. /* harmony import */ var _internal_observable_using__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./internal/observable/using */ "Qn8I");
  92180. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "using", function() { return _internal_observable_using__WEBPACK_IMPORTED_MODULE_49__["using"]; });
  92181. /* harmony import */ var _internal_observable_zip__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./internal/observable/zip */ "1uah");
  92182. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "zip", function() { return _internal_observable_zip__WEBPACK_IMPORTED_MODULE_50__["zip"]; });
  92183. /* harmony import */ var _internal_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./internal/scheduled/scheduled */ "7HRe");
  92184. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "scheduled", function() { return _internal_scheduled_scheduled__WEBPACK_IMPORTED_MODULE_51__["scheduled"]; });
  92185. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EMPTY", function() { return _internal_observable_empty__WEBPACK_IMPORTED_MODULE_31__["EMPTY"]; });
  92186. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NEVER", function() { return _internal_observable_never__WEBPACK_IMPORTED_MODULE_40__["NEVER"]; });
  92187. /* harmony import */ var _internal_config__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./internal/config */ "2fFW");
  92188. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "config", function() { return _internal_config__WEBPACK_IMPORTED_MODULE_52__["config"]; });
  92189. //# sourceMappingURL=index.js.map
  92190. /***/ }),
  92191. /***/ "qZ0a":
  92192. /*!**********************************************************************!*\
  92193. !*** ./node_modules/rxjs/_esm2015/internal/operators/publishLast.js ***!
  92194. \**********************************************************************/
  92195. /*! exports provided: publishLast */
  92196. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92197. "use strict";
  92198. __webpack_require__.r(__webpack_exports__);
  92199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publishLast", function() { return publishLast; });
  92200. /* harmony import */ var _AsyncSubject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../AsyncSubject */ "NHP+");
  92201. /* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./multicast */ "oB13");
  92202. function publishLast() {
  92203. return (source) => Object(_multicast__WEBPACK_IMPORTED_MODULE_1__["multicast"])(new _AsyncSubject__WEBPACK_IMPORTED_MODULE_0__["AsyncSubject"]())(source);
  92204. }
  92205. //# sourceMappingURL=publishLast.js.map
  92206. /***/ }),
  92207. /***/ "qgXg":
  92208. /*!****************************************************************!*\
  92209. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/queue.js ***!
  92210. \****************************************************************/
  92211. /*! exports provided: queue */
  92212. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92213. "use strict";
  92214. __webpack_require__.r(__webpack_exports__);
  92215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "queue", function() { return queue; });
  92216. /* harmony import */ var _QueueAction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./QueueAction */ "YuR2");
  92217. /* harmony import */ var _QueueScheduler__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./QueueScheduler */ "Hh5Z");
  92218. const queue = new _QueueScheduler__WEBPACK_IMPORTED_MODULE_1__["QueueScheduler"](_QueueAction__WEBPACK_IMPORTED_MODULE_0__["QueueAction"]);
  92219. //# sourceMappingURL=queue.js.map
  92220. /***/ }),
  92221. /***/ "quSY":
  92222. /*!*************************************************************!*\
  92223. !*** ./node_modules/rxjs/_esm2015/internal/Subscription.js ***!
  92224. \*************************************************************/
  92225. /*! exports provided: Subscription */
  92226. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92227. "use strict";
  92228. __webpack_require__.r(__webpack_exports__);
  92229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Subscription", function() { return Subscription; });
  92230. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util/isArray */ "DH7j");
  92231. /* harmony import */ var _util_isObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./util/isObject */ "XoHu");
  92232. /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util/isFunction */ "n6bG");
  92233. /* harmony import */ var _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util/UnsubscriptionError */ "pjAE");
  92234. class Subscription {
  92235. constructor(unsubscribe) {
  92236. this.closed = false;
  92237. this._parentOrParents = null;
  92238. this._subscriptions = null;
  92239. if (unsubscribe) {
  92240. this._unsubscribe = unsubscribe;
  92241. }
  92242. }
  92243. unsubscribe() {
  92244. let errors;
  92245. if (this.closed) {
  92246. return;
  92247. }
  92248. let { _parentOrParents, _unsubscribe, _subscriptions } = this;
  92249. this.closed = true;
  92250. this._parentOrParents = null;
  92251. this._subscriptions = null;
  92252. if (_parentOrParents instanceof Subscription) {
  92253. _parentOrParents.remove(this);
  92254. }
  92255. else if (_parentOrParents !== null) {
  92256. for (let index = 0; index < _parentOrParents.length; ++index) {
  92257. const parent = _parentOrParents[index];
  92258. parent.remove(this);
  92259. }
  92260. }
  92261. if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(_unsubscribe)) {
  92262. try {
  92263. _unsubscribe.call(this);
  92264. }
  92265. catch (e) {
  92266. errors = e instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__["UnsubscriptionError"] ? flattenUnsubscriptionErrors(e.errors) : [e];
  92267. }
  92268. }
  92269. if (Object(_util_isArray__WEBPACK_IMPORTED_MODULE_0__["isArray"])(_subscriptions)) {
  92270. let index = -1;
  92271. let len = _subscriptions.length;
  92272. while (++index < len) {
  92273. const sub = _subscriptions[index];
  92274. if (Object(_util_isObject__WEBPACK_IMPORTED_MODULE_1__["isObject"])(sub)) {
  92275. try {
  92276. sub.unsubscribe();
  92277. }
  92278. catch (e) {
  92279. errors = errors || [];
  92280. if (e instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__["UnsubscriptionError"]) {
  92281. errors = errors.concat(flattenUnsubscriptionErrors(e.errors));
  92282. }
  92283. else {
  92284. errors.push(e);
  92285. }
  92286. }
  92287. }
  92288. }
  92289. }
  92290. if (errors) {
  92291. throw new _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__["UnsubscriptionError"](errors);
  92292. }
  92293. }
  92294. add(teardown) {
  92295. let subscription = teardown;
  92296. if (!teardown) {
  92297. return Subscription.EMPTY;
  92298. }
  92299. switch (typeof teardown) {
  92300. case 'function':
  92301. subscription = new Subscription(teardown);
  92302. case 'object':
  92303. if (subscription === this || subscription.closed || typeof subscription.unsubscribe !== 'function') {
  92304. return subscription;
  92305. }
  92306. else if (this.closed) {
  92307. subscription.unsubscribe();
  92308. return subscription;
  92309. }
  92310. else if (!(subscription instanceof Subscription)) {
  92311. const tmp = subscription;
  92312. subscription = new Subscription();
  92313. subscription._subscriptions = [tmp];
  92314. }
  92315. break;
  92316. default: {
  92317. throw new Error('unrecognized teardown ' + teardown + ' added to Subscription.');
  92318. }
  92319. }
  92320. let { _parentOrParents } = subscription;
  92321. if (_parentOrParents === null) {
  92322. subscription._parentOrParents = this;
  92323. }
  92324. else if (_parentOrParents instanceof Subscription) {
  92325. if (_parentOrParents === this) {
  92326. return subscription;
  92327. }
  92328. subscription._parentOrParents = [_parentOrParents, this];
  92329. }
  92330. else if (_parentOrParents.indexOf(this) === -1) {
  92331. _parentOrParents.push(this);
  92332. }
  92333. else {
  92334. return subscription;
  92335. }
  92336. const subscriptions = this._subscriptions;
  92337. if (subscriptions === null) {
  92338. this._subscriptions = [subscription];
  92339. }
  92340. else {
  92341. subscriptions.push(subscription);
  92342. }
  92343. return subscription;
  92344. }
  92345. remove(subscription) {
  92346. const subscriptions = this._subscriptions;
  92347. if (subscriptions) {
  92348. const subscriptionIndex = subscriptions.indexOf(subscription);
  92349. if (subscriptionIndex !== -1) {
  92350. subscriptions.splice(subscriptionIndex, 1);
  92351. }
  92352. }
  92353. }
  92354. }
  92355. Subscription.EMPTY = (function (empty) {
  92356. empty.closed = true;
  92357. return empty;
  92358. }(new Subscription()));
  92359. function flattenUnsubscriptionErrors(errors) {
  92360. return errors.reduce((errs, err) => errs.concat((err instanceof _util_UnsubscriptionError__WEBPACK_IMPORTED_MODULE_3__["UnsubscriptionError"]) ? err.errors : err), []);
  92361. }
  92362. //# sourceMappingURL=Subscription.js.map
  92363. /***/ }),
  92364. /***/ "r0WS":
  92365. /*!********************************************************************!*\
  92366. !*** ./node_modules/rxjs/_esm2015/internal/operators/timestamp.js ***!
  92367. \********************************************************************/
  92368. /*! exports provided: timestamp, Timestamp */
  92369. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92370. "use strict";
  92371. __webpack_require__.r(__webpack_exports__);
  92372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timestamp", function() { return timestamp; });
  92373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Timestamp", function() { return Timestamp; });
  92374. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  92375. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./map */ "lJxs");
  92376. function timestamp(scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) {
  92377. return Object(_map__WEBPACK_IMPORTED_MODULE_1__["map"])((value) => new Timestamp(value, scheduler.now()));
  92378. }
  92379. class Timestamp {
  92380. constructor(value, timestamp) {
  92381. this.value = value;
  92382. this.timestamp = timestamp;
  92383. }
  92384. }
  92385. //# sourceMappingURL=timestamp.js.map
  92386. /***/ }),
  92387. /***/ "r0o6":
  92388. /*!***************************************************************!*\
  92389. !*** ./node_modules/rxjs/_esm2015/internal/observable/iif.js ***!
  92390. \***************************************************************/
  92391. /*! exports provided: iif */
  92392. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92393. "use strict";
  92394. __webpack_require__.r(__webpack_exports__);
  92395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "iif", function() { return iif; });
  92396. /* harmony import */ var _defer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./defer */ "NXyV");
  92397. /* harmony import */ var _empty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./empty */ "EY2u");
  92398. function iif(condition, trueResult = _empty__WEBPACK_IMPORTED_MODULE_1__["EMPTY"], falseResult = _empty__WEBPACK_IMPORTED_MODULE_1__["EMPTY"]) {
  92399. return Object(_defer__WEBPACK_IMPORTED_MODULE_0__["defer"])(() => condition() ? trueResult : falseResult);
  92400. }
  92401. //# sourceMappingURL=iif.js.map
  92402. /***/ }),
  92403. /***/ "sTY7":
  92404. /*!***********************************************************************!*\
  92405. !*** ./node_modules/rxjs/_esm2015/internal/operators/windowToggle.js ***!
  92406. \***********************************************************************/
  92407. /*! exports provided: windowToggle */
  92408. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92409. "use strict";
  92410. __webpack_require__.r(__webpack_exports__);
  92411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "windowToggle", function() { return windowToggle; });
  92412. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subject */ "XNiG");
  92413. /* harmony import */ var _Subscription__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../Subscription */ "quSY");
  92414. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  92415. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  92416. function windowToggle(openings, closingSelector) {
  92417. return (source) => source.lift(new WindowToggleOperator(openings, closingSelector));
  92418. }
  92419. class WindowToggleOperator {
  92420. constructor(openings, closingSelector) {
  92421. this.openings = openings;
  92422. this.closingSelector = closingSelector;
  92423. }
  92424. call(subscriber, source) {
  92425. return source.subscribe(new WindowToggleSubscriber(subscriber, this.openings, this.closingSelector));
  92426. }
  92427. }
  92428. class WindowToggleSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] {
  92429. constructor(destination, openings, closingSelector) {
  92430. super(destination);
  92431. this.openings = openings;
  92432. this.closingSelector = closingSelector;
  92433. this.contexts = [];
  92434. this.add(this.openSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, openings, openings));
  92435. }
  92436. _next(value) {
  92437. const { contexts } = this;
  92438. if (contexts) {
  92439. const len = contexts.length;
  92440. for (let i = 0; i < len; i++) {
  92441. contexts[i].window.next(value);
  92442. }
  92443. }
  92444. }
  92445. _error(err) {
  92446. const { contexts } = this;
  92447. this.contexts = null;
  92448. if (contexts) {
  92449. const len = contexts.length;
  92450. let index = -1;
  92451. while (++index < len) {
  92452. const context = contexts[index];
  92453. context.window.error(err);
  92454. context.subscription.unsubscribe();
  92455. }
  92456. }
  92457. super._error(err);
  92458. }
  92459. _complete() {
  92460. const { contexts } = this;
  92461. this.contexts = null;
  92462. if (contexts) {
  92463. const len = contexts.length;
  92464. let index = -1;
  92465. while (++index < len) {
  92466. const context = contexts[index];
  92467. context.window.complete();
  92468. context.subscription.unsubscribe();
  92469. }
  92470. }
  92471. super._complete();
  92472. }
  92473. _unsubscribe() {
  92474. const { contexts } = this;
  92475. this.contexts = null;
  92476. if (contexts) {
  92477. const len = contexts.length;
  92478. let index = -1;
  92479. while (++index < len) {
  92480. const context = contexts[index];
  92481. context.window.unsubscribe();
  92482. context.subscription.unsubscribe();
  92483. }
  92484. }
  92485. }
  92486. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  92487. if (outerValue === this.openings) {
  92488. let closingNotifier;
  92489. try {
  92490. const { closingSelector } = this;
  92491. closingNotifier = closingSelector(innerValue);
  92492. }
  92493. catch (e) {
  92494. return this.error(e);
  92495. }
  92496. const window = new _Subject__WEBPACK_IMPORTED_MODULE_0__["Subject"]();
  92497. const subscription = new _Subscription__WEBPACK_IMPORTED_MODULE_1__["Subscription"]();
  92498. const context = { window, subscription };
  92499. this.contexts.push(context);
  92500. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(this, closingNotifier, context);
  92501. if (innerSubscription.closed) {
  92502. this.closeWindow(this.contexts.length - 1);
  92503. }
  92504. else {
  92505. innerSubscription.context = context;
  92506. subscription.add(innerSubscription);
  92507. }
  92508. this.destination.next(window);
  92509. }
  92510. else {
  92511. this.closeWindow(this.contexts.indexOf(outerValue));
  92512. }
  92513. }
  92514. notifyError(err) {
  92515. this.error(err);
  92516. }
  92517. notifyComplete(inner) {
  92518. if (inner !== this.openSubscription) {
  92519. this.closeWindow(this.contexts.indexOf(inner.context));
  92520. }
  92521. }
  92522. closeWindow(index) {
  92523. if (index === -1) {
  92524. return;
  92525. }
  92526. const { contexts } = this;
  92527. const context = contexts[index];
  92528. const { window, subscription } = context;
  92529. contexts.splice(index, 1);
  92530. window.complete();
  92531. subscription.unsubscribe();
  92532. }
  92533. }
  92534. //# sourceMappingURL=windowToggle.js.map
  92535. /***/ }),
  92536. /***/ "sVev":
  92537. /*!****************************************************************!*\
  92538. !*** ./node_modules/rxjs/_esm2015/internal/util/EmptyError.js ***!
  92539. \****************************************************************/
  92540. /*! exports provided: EmptyError */
  92541. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92542. "use strict";
  92543. __webpack_require__.r(__webpack_exports__);
  92544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyError", function() { return EmptyError; });
  92545. const EmptyErrorImpl = (() => {
  92546. function EmptyErrorImpl() {
  92547. Error.call(this);
  92548. this.message = 'no elements in sequence';
  92549. this.name = 'EmptyError';
  92550. return this;
  92551. }
  92552. EmptyErrorImpl.prototype = Object.create(Error.prototype);
  92553. return EmptyErrorImpl;
  92554. })();
  92555. const EmptyError = EmptyErrorImpl;
  92556. //# sourceMappingURL=EmptyError.js.map
  92557. /***/ }),
  92558. /***/ "sYmb":
  92559. /*!**************************************************************************************!*\
  92560. !*** ./node_modules/@ngx-translate/core/__ivy_ngcc__/fesm2015/ngx-translate-core.js ***!
  92561. \**************************************************************************************/
  92562. /*! exports provided: DEFAULT_LANGUAGE, FakeMissingTranslationHandler, MissingTranslationHandler, TranslateCompiler, TranslateDefaultParser, TranslateDirective, TranslateFakeCompiler, TranslateFakeLoader, TranslateLoader, TranslateModule, TranslateParser, TranslatePipe, TranslateService, TranslateStore, USE_DEFAULT_LANG, USE_EXTEND, USE_STORE */
  92563. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92564. "use strict";
  92565. __webpack_require__.r(__webpack_exports__);
  92566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_LANGUAGE", function() { return DEFAULT_LANGUAGE; });
  92567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FakeMissingTranslationHandler", function() { return FakeMissingTranslationHandler; });
  92568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MissingTranslationHandler", function() { return MissingTranslationHandler; });
  92569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateCompiler", function() { return TranslateCompiler; });
  92570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateDefaultParser", function() { return TranslateDefaultParser; });
  92571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateDirective", function() { return TranslateDirective; });
  92572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateFakeCompiler", function() { return TranslateFakeCompiler; });
  92573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateFakeLoader", function() { return TranslateFakeLoader; });
  92574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateLoader", function() { return TranslateLoader; });
  92575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateModule", function() { return TranslateModule; });
  92576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateParser", function() { return TranslateParser; });
  92577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslatePipe", function() { return TranslatePipe; });
  92578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateService", function() { return TranslateService; });
  92579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TranslateStore", function() { return TranslateStore; });
  92580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USE_DEFAULT_LANG", function() { return USE_DEFAULT_LANG; });
  92581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USE_EXTEND", function() { return USE_EXTEND; });
  92582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "USE_STORE", function() { return USE_STORE; });
  92583. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  92584. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
  92585. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  92586. /**
  92587. * @fileoverview added by tsickle
  92588. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  92589. */
  92590. /**
  92591. * @abstract
  92592. */
  92593. class TranslateLoader {
  92594. }
  92595. if (false) {}
  92596. /**
  92597. * This loader is just a placeholder that does nothing, in case you don't need a loader at all
  92598. */
  92599. class TranslateFakeLoader extends TranslateLoader {
  92600. /**
  92601. * @param {?} lang
  92602. * @return {?}
  92603. */
  92604. getTranslation(lang) {
  92605. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])({});
  92606. }
  92607. }
  92608. TranslateFakeLoader.ɵfac = function TranslateFakeLoader_Factory(t) { return ɵTranslateFakeLoader_BaseFactory(t || TranslateFakeLoader); };
  92609. TranslateFakeLoader.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: TranslateFakeLoader, factory: TranslateFakeLoader.ɵfac });
  92610. const ɵTranslateFakeLoader_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TranslateFakeLoader);
  92611. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateFakeLoader, [{
  92612. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  92613. }], null, null); })();
  92614. /**
  92615. * @fileoverview added by tsickle
  92616. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  92617. */
  92618. /**
  92619. * @record
  92620. */
  92621. function MissingTranslationHandlerParams() { }
  92622. if (false) {}
  92623. /**
  92624. * @abstract
  92625. */
  92626. class MissingTranslationHandler {
  92627. }
  92628. if (false) {}
  92629. /**
  92630. * This handler is just a placeholder that does nothing, in case you don't need a missing translation handler at all
  92631. */
  92632. class FakeMissingTranslationHandler {
  92633. /**
  92634. * @param {?} params
  92635. * @return {?}
  92636. */
  92637. handle(params) {
  92638. return params.key;
  92639. }
  92640. }
  92641. FakeMissingTranslationHandler.ɵfac = function FakeMissingTranslationHandler_Factory(t) { return new (t || FakeMissingTranslationHandler)(); };
  92642. FakeMissingTranslationHandler.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: FakeMissingTranslationHandler, factory: FakeMissingTranslationHandler.ɵfac });
  92643. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](FakeMissingTranslationHandler, [{
  92644. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  92645. }], null, null); })();
  92646. /**
  92647. * @fileoverview added by tsickle
  92648. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  92649. */
  92650. /* tslint:disable */
  92651. /**
  92652. * Determines if two objects or two values are equivalent.
  92653. *
  92654. * Two objects or values are considered equivalent if at least one of the following is true:
  92655. *
  92656. * * Both objects or values pass `===` comparison.
  92657. * * Both objects or values are of the same type and all of their properties are equal by
  92658. * comparing them with `equals`.
  92659. *
  92660. * @param {?} o1 Object or value to compare.
  92661. * @param {?} o2 Object or value to compare.
  92662. * @return {?} true if arguments are equal.
  92663. */
  92664. function equals(o1, o2) {
  92665. if (o1 === o2)
  92666. return true;
  92667. if (o1 === null || o2 === null)
  92668. return false;
  92669. if (o1 !== o1 && o2 !== o2)
  92670. return true; // NaN === NaN
  92671. // NaN === NaN
  92672. /** @type {?} */
  92673. let t1 = typeof o1;
  92674. /** @type {?} */
  92675. let t2 = typeof o2;
  92676. /** @type {?} */
  92677. let length;
  92678. /** @type {?} */
  92679. let key;
  92680. /** @type {?} */
  92681. let keySet;
  92682. if (t1 == t2 && t1 == 'object') {
  92683. if (Array.isArray(o1)) {
  92684. if (!Array.isArray(o2))
  92685. return false;
  92686. if ((length = o1.length) == o2.length) {
  92687. for (key = 0; key < length; key++) {
  92688. if (!equals(o1[key], o2[key]))
  92689. return false;
  92690. }
  92691. return true;
  92692. }
  92693. }
  92694. else {
  92695. if (Array.isArray(o2)) {
  92696. return false;
  92697. }
  92698. keySet = Object.create(null);
  92699. for (key in o1) {
  92700. if (!equals(o1[key], o2[key])) {
  92701. return false;
  92702. }
  92703. keySet[key] = true;
  92704. }
  92705. for (key in o2) {
  92706. if (!(key in keySet) && typeof o2[key] !== 'undefined') {
  92707. return false;
  92708. }
  92709. }
  92710. return true;
  92711. }
  92712. }
  92713. return false;
  92714. }
  92715. /* tslint:enable */
  92716. /**
  92717. * @param {?} value
  92718. * @return {?}
  92719. */
  92720. function isDefined(value) {
  92721. return typeof value !== 'undefined' && value !== null;
  92722. }
  92723. /**
  92724. * @param {?} item
  92725. * @return {?}
  92726. */
  92727. function isObject(item) {
  92728. return (item && typeof item === 'object' && !Array.isArray(item));
  92729. }
  92730. /**
  92731. * @param {?} target
  92732. * @param {?} source
  92733. * @return {?}
  92734. */
  92735. function mergeDeep(target, source) {
  92736. /** @type {?} */
  92737. let output = Object.assign({}, target);
  92738. if (isObject(target) && isObject(source)) {
  92739. Object.keys(source).forEach((/**
  92740. * @param {?} key
  92741. * @return {?}
  92742. */
  92743. (key) => {
  92744. if (isObject(source[key])) {
  92745. if (!(key in target)) {
  92746. Object.assign(output, { [key]: source[key] });
  92747. }
  92748. else {
  92749. output[key] = mergeDeep(target[key], source[key]);
  92750. }
  92751. }
  92752. else {
  92753. Object.assign(output, { [key]: source[key] });
  92754. }
  92755. }));
  92756. }
  92757. return output;
  92758. }
  92759. /**
  92760. * @fileoverview added by tsickle
  92761. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  92762. */
  92763. /**
  92764. * @abstract
  92765. */
  92766. class TranslateParser {
  92767. }
  92768. if (false) {}
  92769. class TranslateDefaultParser extends TranslateParser {
  92770. constructor() {
  92771. super(...arguments);
  92772. this.templateMatcher = /{{\s?([^{}\s]*)\s?}}/g;
  92773. }
  92774. /**
  92775. * @param {?} expr
  92776. * @param {?=} params
  92777. * @return {?}
  92778. */
  92779. interpolate(expr, params) {
  92780. /** @type {?} */
  92781. let result;
  92782. if (typeof expr === 'string') {
  92783. result = this.interpolateString(expr, params);
  92784. }
  92785. else if (typeof expr === 'function') {
  92786. result = this.interpolateFunction(expr, params);
  92787. }
  92788. else {
  92789. // this should not happen, but an unrelated TranslateService test depends on it
  92790. result = (/** @type {?} */ (expr));
  92791. }
  92792. return result;
  92793. }
  92794. /**
  92795. * @param {?} target
  92796. * @param {?} key
  92797. * @return {?}
  92798. */
  92799. getValue(target, key) {
  92800. /** @type {?} */
  92801. let keys = typeof key === 'string' ? key.split('.') : [key];
  92802. key = '';
  92803. do {
  92804. key += keys.shift();
  92805. if (isDefined(target) && isDefined(target[key]) && (typeof target[key] === 'object' || !keys.length)) {
  92806. target = target[key];
  92807. key = '';
  92808. }
  92809. else if (!keys.length) {
  92810. target = undefined;
  92811. }
  92812. else {
  92813. key += '.';
  92814. }
  92815. } while (keys.length);
  92816. return target;
  92817. }
  92818. /**
  92819. * @private
  92820. * @param {?} fn
  92821. * @param {?=} params
  92822. * @return {?}
  92823. */
  92824. interpolateFunction(fn, params) {
  92825. return fn(params);
  92826. }
  92827. /**
  92828. * @private
  92829. * @param {?} expr
  92830. * @param {?=} params
  92831. * @return {?}
  92832. */
  92833. interpolateString(expr, params) {
  92834. if (!params) {
  92835. return expr;
  92836. }
  92837. return expr.replace(this.templateMatcher, (/**
  92838. * @param {?} substring
  92839. * @param {?} b
  92840. * @return {?}
  92841. */
  92842. (substring, b) => {
  92843. /** @type {?} */
  92844. let r = this.getValue(params, b);
  92845. return isDefined(r) ? r : substring;
  92846. }));
  92847. }
  92848. }
  92849. TranslateDefaultParser.ɵfac = function TranslateDefaultParser_Factory(t) { return ɵTranslateDefaultParser_BaseFactory(t || TranslateDefaultParser); };
  92850. TranslateDefaultParser.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: TranslateDefaultParser, factory: TranslateDefaultParser.ɵfac });
  92851. const ɵTranslateDefaultParser_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TranslateDefaultParser);
  92852. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateDefaultParser, [{
  92853. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  92854. }], null, null); })();
  92855. if (false) {}
  92856. /**
  92857. * @fileoverview added by tsickle
  92858. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  92859. */
  92860. /**
  92861. * @abstract
  92862. */
  92863. class TranslateCompiler {
  92864. }
  92865. if (false) {}
  92866. /**
  92867. * This compiler is just a placeholder that does nothing, in case you don't need a compiler at all
  92868. */
  92869. class TranslateFakeCompiler extends TranslateCompiler {
  92870. /**
  92871. * @param {?} value
  92872. * @param {?} lang
  92873. * @return {?}
  92874. */
  92875. compile(value, lang) {
  92876. return value;
  92877. }
  92878. /**
  92879. * @param {?} translations
  92880. * @param {?} lang
  92881. * @return {?}
  92882. */
  92883. compileTranslations(translations, lang) {
  92884. return translations;
  92885. }
  92886. }
  92887. TranslateFakeCompiler.ɵfac = function TranslateFakeCompiler_Factory(t) { return ɵTranslateFakeCompiler_BaseFactory(t || TranslateFakeCompiler); };
  92888. TranslateFakeCompiler.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: TranslateFakeCompiler, factory: TranslateFakeCompiler.ɵfac });
  92889. const ɵTranslateFakeCompiler_BaseFactory = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetInheritedFactory"](TranslateFakeCompiler);
  92890. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateFakeCompiler, [{
  92891. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  92892. }], null, null); })();
  92893. /**
  92894. * @fileoverview added by tsickle
  92895. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  92896. */
  92897. class TranslateStore {
  92898. constructor() {
  92899. /**
  92900. * The lang currently used
  92901. */
  92902. this.currentLang = this.defaultLang;
  92903. /**
  92904. * a list of translations per lang
  92905. */
  92906. this.translations = {};
  92907. /**
  92908. * an array of langs
  92909. */
  92910. this.langs = [];
  92911. /**
  92912. * An EventEmitter to listen to translation change events
  92913. * onTranslationChange.subscribe((params: TranslationChangeEvent) => {
  92914. * // do something
  92915. * });
  92916. */
  92917. this.onTranslationChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  92918. /**
  92919. * An EventEmitter to listen to lang change events
  92920. * onLangChange.subscribe((params: LangChangeEvent) => {
  92921. * // do something
  92922. * });
  92923. */
  92924. this.onLangChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  92925. /**
  92926. * An EventEmitter to listen to default lang change events
  92927. * onDefaultLangChange.subscribe((params: DefaultLangChangeEvent) => {
  92928. * // do something
  92929. * });
  92930. */
  92931. this.onDefaultLangChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  92932. }
  92933. }
  92934. if (false) {}
  92935. /**
  92936. * @fileoverview added by tsickle
  92937. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  92938. */
  92939. /** @type {?} */
  92940. const USE_STORE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('USE_STORE');
  92941. /** @type {?} */
  92942. const USE_DEFAULT_LANG = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('USE_DEFAULT_LANG');
  92943. /** @type {?} */
  92944. const DEFAULT_LANGUAGE = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('DEFAULT_LANGUAGE');
  92945. /** @type {?} */
  92946. const USE_EXTEND = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('USE_EXTEND');
  92947. /**
  92948. * @record
  92949. */
  92950. function TranslationChangeEvent() { }
  92951. if (false) {}
  92952. /**
  92953. * @record
  92954. */
  92955. function LangChangeEvent() { }
  92956. if (false) {}
  92957. /**
  92958. * @record
  92959. */
  92960. function DefaultLangChangeEvent() { }
  92961. if (false) {}
  92962. class TranslateService {
  92963. /**
  92964. *
  92965. * @param {?} store an instance of the store (that is supposed to be unique)
  92966. * @param {?} currentLoader An instance of the loader currently used
  92967. * @param {?} compiler An instance of the compiler currently used
  92968. * @param {?} parser An instance of the parser currently used
  92969. * @param {?} missingTranslationHandler A handler for missing translations.
  92970. * @param {?=} useDefaultLang whether we should use default language translation when current language translation is missing.
  92971. * @param {?=} isolate whether this service should use the store or not
  92972. * @param {?=} extend To make a child module extend (and use) translations from parent modules.
  92973. * @param {?=} defaultLanguage Set the default language using configuration
  92974. */
  92975. constructor(store, currentLoader, compiler, parser, missingTranslationHandler, useDefaultLang = true, isolate = false, extend = false, defaultLanguage) {
  92976. this.store = store;
  92977. this.currentLoader = currentLoader;
  92978. this.compiler = compiler;
  92979. this.parser = parser;
  92980. this.missingTranslationHandler = missingTranslationHandler;
  92981. this.useDefaultLang = useDefaultLang;
  92982. this.isolate = isolate;
  92983. this.extend = extend;
  92984. this.pending = false;
  92985. this._onTranslationChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  92986. this._onLangChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  92987. this._onDefaultLangChange = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
  92988. this._langs = [];
  92989. this._translations = {};
  92990. this._translationRequests = {};
  92991. /** set the default language from configuration */
  92992. if (defaultLanguage) {
  92993. this.setDefaultLang(defaultLanguage);
  92994. }
  92995. }
  92996. /**
  92997. * An EventEmitter to listen to translation change events
  92998. * onTranslationChange.subscribe((params: TranslationChangeEvent) => {
  92999. * // do something
  93000. * });
  93001. * @return {?}
  93002. */
  93003. get onTranslationChange() {
  93004. return this.isolate ? this._onTranslationChange : this.store.onTranslationChange;
  93005. }
  93006. /**
  93007. * An EventEmitter to listen to lang change events
  93008. * onLangChange.subscribe((params: LangChangeEvent) => {
  93009. * // do something
  93010. * });
  93011. * @return {?}
  93012. */
  93013. get onLangChange() {
  93014. return this.isolate ? this._onLangChange : this.store.onLangChange;
  93015. }
  93016. /**
  93017. * An EventEmitter to listen to default lang change events
  93018. * onDefaultLangChange.subscribe((params: DefaultLangChangeEvent) => {
  93019. * // do something
  93020. * });
  93021. * @return {?}
  93022. */
  93023. get onDefaultLangChange() {
  93024. return this.isolate ? this._onDefaultLangChange : this.store.onDefaultLangChange;
  93025. }
  93026. /**
  93027. * The default lang to fallback when translations are missing on the current lang
  93028. * @return {?}
  93029. */
  93030. get defaultLang() {
  93031. return this.isolate ? this._defaultLang : this.store.defaultLang;
  93032. }
  93033. /**
  93034. * @param {?} defaultLang
  93035. * @return {?}
  93036. */
  93037. set defaultLang(defaultLang) {
  93038. if (this.isolate) {
  93039. this._defaultLang = defaultLang;
  93040. }
  93041. else {
  93042. this.store.defaultLang = defaultLang;
  93043. }
  93044. }
  93045. /**
  93046. * The lang currently used
  93047. * @return {?}
  93048. */
  93049. get currentLang() {
  93050. return this.isolate ? this._currentLang : this.store.currentLang;
  93051. }
  93052. /**
  93053. * @param {?} currentLang
  93054. * @return {?}
  93055. */
  93056. set currentLang(currentLang) {
  93057. if (this.isolate) {
  93058. this._currentLang = currentLang;
  93059. }
  93060. else {
  93061. this.store.currentLang = currentLang;
  93062. }
  93063. }
  93064. /**
  93065. * an array of langs
  93066. * @return {?}
  93067. */
  93068. get langs() {
  93069. return this.isolate ? this._langs : this.store.langs;
  93070. }
  93071. /**
  93072. * @param {?} langs
  93073. * @return {?}
  93074. */
  93075. set langs(langs) {
  93076. if (this.isolate) {
  93077. this._langs = langs;
  93078. }
  93079. else {
  93080. this.store.langs = langs;
  93081. }
  93082. }
  93083. /**
  93084. * a list of translations per lang
  93085. * @return {?}
  93086. */
  93087. get translations() {
  93088. return this.isolate ? this._translations : this.store.translations;
  93089. }
  93090. /**
  93091. * @param {?} translations
  93092. * @return {?}
  93093. */
  93094. set translations(translations) {
  93095. if (this.isolate) {
  93096. this._translations = translations;
  93097. }
  93098. else {
  93099. this.store.translations = translations;
  93100. }
  93101. }
  93102. /**
  93103. * Sets the default language to use as a fallback
  93104. * @param {?} lang
  93105. * @return {?}
  93106. */
  93107. setDefaultLang(lang) {
  93108. if (lang === this.defaultLang) {
  93109. return;
  93110. }
  93111. /** @type {?} */
  93112. let pending = this.retrieveTranslations(lang);
  93113. if (typeof pending !== "undefined") {
  93114. // on init set the defaultLang immediately
  93115. if (this.defaultLang == null) {
  93116. this.defaultLang = lang;
  93117. }
  93118. pending.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1))
  93119. .subscribe((/**
  93120. * @param {?} res
  93121. * @return {?}
  93122. */
  93123. (res) => {
  93124. this.changeDefaultLang(lang);
  93125. }));
  93126. }
  93127. else { // we already have this language
  93128. this.changeDefaultLang(lang);
  93129. }
  93130. }
  93131. /**
  93132. * Gets the default language used
  93133. * @return {?}
  93134. */
  93135. getDefaultLang() {
  93136. return this.defaultLang;
  93137. }
  93138. /**
  93139. * Changes the lang currently used
  93140. * @param {?} lang
  93141. * @return {?}
  93142. */
  93143. use(lang) {
  93144. // don't change the language if the language given is already selected
  93145. if (lang === this.currentLang) {
  93146. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(this.translations[lang]);
  93147. }
  93148. /** @type {?} */
  93149. let pending = this.retrieveTranslations(lang);
  93150. if (typeof pending !== "undefined") {
  93151. // on init set the currentLang immediately
  93152. if (!this.currentLang) {
  93153. this.currentLang = lang;
  93154. }
  93155. pending.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1))
  93156. .subscribe((/**
  93157. * @param {?} res
  93158. * @return {?}
  93159. */
  93160. (res) => {
  93161. this.changeLang(lang);
  93162. }));
  93163. return pending;
  93164. }
  93165. else { // we have this language, return an Observable
  93166. this.changeLang(lang);
  93167. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(this.translations[lang]);
  93168. }
  93169. }
  93170. /**
  93171. * Retrieves the given translations
  93172. * @private
  93173. * @param {?} lang
  93174. * @return {?}
  93175. */
  93176. retrieveTranslations(lang) {
  93177. /** @type {?} */
  93178. let pending;
  93179. // if this language is unavailable or extend is true, ask for it
  93180. if (typeof this.translations[lang] === "undefined" || this.extend) {
  93181. this._translationRequests[lang] = this._translationRequests[lang] || this.getTranslation(lang);
  93182. pending = this._translationRequests[lang];
  93183. }
  93184. return pending;
  93185. }
  93186. /**
  93187. * Gets an object of translations for a given language with the current loader
  93188. * and passes it through the compiler
  93189. * @param {?} lang
  93190. * @return {?}
  93191. */
  93192. getTranslation(lang) {
  93193. this.pending = true;
  93194. /** @type {?} */
  93195. const loadingTranslations = this.currentLoader.getTranslation(lang).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["shareReplay"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1));
  93196. this.loadingTranslations = loadingTranslations.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((/**
  93197. * @param {?} res
  93198. * @return {?}
  93199. */
  93200. (res) => this.compiler.compileTranslations(res, lang))), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["shareReplay"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["take"])(1));
  93201. this.loadingTranslations
  93202. .subscribe({
  93203. next: (/**
  93204. * @param {?} res
  93205. * @return {?}
  93206. */
  93207. (res) => {
  93208. this.translations[lang] = this.extend && this.translations[lang] ? Object.assign(Object.assign({}, res), this.translations[lang]) : res;
  93209. this.updateLangs();
  93210. this.pending = false;
  93211. }),
  93212. error: (/**
  93213. * @param {?} err
  93214. * @return {?}
  93215. */
  93216. (err) => {
  93217. this.pending = false;
  93218. })
  93219. });
  93220. return loadingTranslations;
  93221. }
  93222. /**
  93223. * Manually sets an object of translations for a given language
  93224. * after passing it through the compiler
  93225. * @param {?} lang
  93226. * @param {?} translations
  93227. * @param {?=} shouldMerge
  93228. * @return {?}
  93229. */
  93230. setTranslation(lang, translations, shouldMerge = false) {
  93231. translations = this.compiler.compileTranslations(translations, lang);
  93232. if ((shouldMerge || this.extend) && this.translations[lang]) {
  93233. this.translations[lang] = mergeDeep(this.translations[lang], translations);
  93234. }
  93235. else {
  93236. this.translations[lang] = translations;
  93237. }
  93238. this.updateLangs();
  93239. this.onTranslationChange.emit({ lang: lang, translations: this.translations[lang] });
  93240. }
  93241. /**
  93242. * Returns an array of currently available langs
  93243. * @return {?}
  93244. */
  93245. getLangs() {
  93246. return this.langs;
  93247. }
  93248. /**
  93249. * Add available langs
  93250. * @param {?} langs
  93251. * @return {?}
  93252. */
  93253. addLangs(langs) {
  93254. langs.forEach((/**
  93255. * @param {?} lang
  93256. * @return {?}
  93257. */
  93258. (lang) => {
  93259. if (this.langs.indexOf(lang) === -1) {
  93260. this.langs.push(lang);
  93261. }
  93262. }));
  93263. }
  93264. /**
  93265. * Update the list of available langs
  93266. * @private
  93267. * @return {?}
  93268. */
  93269. updateLangs() {
  93270. this.addLangs(Object.keys(this.translations));
  93271. }
  93272. /**
  93273. * Returns the parsed result of the translations
  93274. * @param {?} translations
  93275. * @param {?} key
  93276. * @param {?=} interpolateParams
  93277. * @return {?}
  93278. */
  93279. getParsedResult(translations, key, interpolateParams) {
  93280. /** @type {?} */
  93281. let res;
  93282. if (key instanceof Array) {
  93283. /** @type {?} */
  93284. let result = {};
  93285. /** @type {?} */
  93286. let observables = false;
  93287. for (let k of key) {
  93288. result[k] = this.getParsedResult(translations, k, interpolateParams);
  93289. if (Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(result[k])) {
  93290. observables = true;
  93291. }
  93292. }
  93293. if (observables) {
  93294. /** @type {?} */
  93295. const sources = key.map((/**
  93296. * @param {?} k
  93297. * @return {?}
  93298. */
  93299. k => Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(result[k]) ? result[k] : Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])((/** @type {?} */ (result[k])))));
  93300. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["forkJoin"])(sources).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((/**
  93301. * @param {?} arr
  93302. * @return {?}
  93303. */
  93304. (arr) => {
  93305. /** @type {?} */
  93306. let obj = {};
  93307. arr.forEach((/**
  93308. * @param {?} value
  93309. * @param {?} index
  93310. * @return {?}
  93311. */
  93312. (value, index) => {
  93313. obj[key[index]] = value;
  93314. }));
  93315. return obj;
  93316. })));
  93317. }
  93318. return result;
  93319. }
  93320. if (translations) {
  93321. res = this.parser.interpolate(this.parser.getValue(translations, key), interpolateParams);
  93322. }
  93323. if (typeof res === "undefined" && this.defaultLang != null && this.defaultLang !== this.currentLang && this.useDefaultLang) {
  93324. res = this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang], key), interpolateParams);
  93325. }
  93326. if (typeof res === "undefined") {
  93327. /** @type {?} */
  93328. let params = { key, translateService: this };
  93329. if (typeof interpolateParams !== 'undefined') {
  93330. params.interpolateParams = interpolateParams;
  93331. }
  93332. res = this.missingTranslationHandler.handle(params);
  93333. }
  93334. return typeof res !== "undefined" ? res : key;
  93335. }
  93336. /**
  93337. * Gets the translated value of a key (or an array of keys)
  93338. * @param {?} key
  93339. * @param {?=} interpolateParams
  93340. * @return {?} the translated key, or an object of translated keys
  93341. */
  93342. get(key, interpolateParams) {
  93343. if (!isDefined(key) || !key.length) {
  93344. throw new Error(`Parameter "key" required`);
  93345. }
  93346. // check if we are loading a new translation to use
  93347. if (this.pending) {
  93348. return this.loadingTranslations.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["concatMap"])((/**
  93349. * @param {?} res
  93350. * @return {?}
  93351. */
  93352. (res) => {
  93353. res = this.getParsedResult(res, key, interpolateParams);
  93354. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res) ? res : Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(res);
  93355. })));
  93356. }
  93357. else {
  93358. /** @type {?} */
  93359. let res = this.getParsedResult(this.translations[this.currentLang], key, interpolateParams);
  93360. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res) ? res : Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(res);
  93361. }
  93362. }
  93363. /**
  93364. * Returns a stream of translated values of a key (or an array of keys) which updates
  93365. * whenever the translation changes.
  93366. * @param {?} key
  93367. * @param {?=} interpolateParams
  93368. * @return {?} A stream of the translated key, or an object of translated keys
  93369. */
  93370. getStreamOnTranslationChange(key, interpolateParams) {
  93371. if (!isDefined(key) || !key.length) {
  93372. throw new Error(`Parameter "key" required`);
  93373. }
  93374. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["concat"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["defer"])((/**
  93375. * @return {?}
  93376. */
  93377. () => this.get(key, interpolateParams))), this.onTranslationChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["switchMap"])((/**
  93378. * @param {?} event
  93379. * @return {?}
  93380. */
  93381. (event) => {
  93382. /** @type {?} */
  93383. const res = this.getParsedResult(event.translations, key, interpolateParams);
  93384. if (typeof res.subscribe === 'function') {
  93385. return res;
  93386. }
  93387. else {
  93388. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(res);
  93389. }
  93390. }))));
  93391. }
  93392. /**
  93393. * Returns a stream of translated values of a key (or an array of keys) which updates
  93394. * whenever the language changes.
  93395. * @param {?} key
  93396. * @param {?=} interpolateParams
  93397. * @return {?} A stream of the translated key, or an object of translated keys
  93398. */
  93399. stream(key, interpolateParams) {
  93400. if (!isDefined(key) || !key.length) {
  93401. throw new Error(`Parameter "key" required`);
  93402. }
  93403. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["concat"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["defer"])((/**
  93404. * @return {?}
  93405. */
  93406. () => this.get(key, interpolateParams))), this.onLangChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["switchMap"])((/**
  93407. * @param {?} event
  93408. * @return {?}
  93409. */
  93410. (event) => {
  93411. /** @type {?} */
  93412. const res = this.getParsedResult(event.translations, key, interpolateParams);
  93413. return Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res) ? res : Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(res);
  93414. }))));
  93415. }
  93416. /**
  93417. * Returns a translation instantly from the internal state of loaded translation.
  93418. * All rules regarding the current language, the preferred language of even fallback languages will be used except any promise handling.
  93419. * @param {?} key
  93420. * @param {?=} interpolateParams
  93421. * @return {?}
  93422. */
  93423. instant(key, interpolateParams) {
  93424. if (!isDefined(key) || !key.length) {
  93425. throw new Error(`Parameter "key" required`);
  93426. }
  93427. /** @type {?} */
  93428. let res = this.getParsedResult(this.translations[this.currentLang], key, interpolateParams);
  93429. if (Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res)) {
  93430. if (key instanceof Array) {
  93431. /** @type {?} */
  93432. let obj = {};
  93433. key.forEach((/**
  93434. * @param {?} value
  93435. * @param {?} index
  93436. * @return {?}
  93437. */
  93438. (value, index) => {
  93439. obj[key[index]] = key[index];
  93440. }));
  93441. return obj;
  93442. }
  93443. return key;
  93444. }
  93445. else {
  93446. return res;
  93447. }
  93448. }
  93449. /**
  93450. * Sets the translated value of a key, after compiling it
  93451. * @param {?} key
  93452. * @param {?} value
  93453. * @param {?=} lang
  93454. * @return {?}
  93455. */
  93456. set(key, value, lang = this.currentLang) {
  93457. this.translations[lang][key] = this.compiler.compile(value, lang);
  93458. this.updateLangs();
  93459. this.onTranslationChange.emit({ lang: lang, translations: this.translations[lang] });
  93460. }
  93461. /**
  93462. * Changes the current lang
  93463. * @private
  93464. * @param {?} lang
  93465. * @return {?}
  93466. */
  93467. changeLang(lang) {
  93468. this.currentLang = lang;
  93469. this.onLangChange.emit({ lang: lang, translations: this.translations[lang] });
  93470. // if there is no default lang, use the one that we just set
  93471. if (this.defaultLang == null) {
  93472. this.changeDefaultLang(lang);
  93473. }
  93474. }
  93475. /**
  93476. * Changes the default lang
  93477. * @private
  93478. * @param {?} lang
  93479. * @return {?}
  93480. */
  93481. changeDefaultLang(lang) {
  93482. this.defaultLang = lang;
  93483. this.onDefaultLangChange.emit({ lang: lang, translations: this.translations[lang] });
  93484. }
  93485. /**
  93486. * Allows to reload the lang file from the file
  93487. * @param {?} lang
  93488. * @return {?}
  93489. */
  93490. reloadLang(lang) {
  93491. this.resetLang(lang);
  93492. return this.getTranslation(lang);
  93493. }
  93494. /**
  93495. * Deletes inner translation
  93496. * @param {?} lang
  93497. * @return {?}
  93498. */
  93499. resetLang(lang) {
  93500. this._translationRequests[lang] = undefined;
  93501. this.translations[lang] = undefined;
  93502. }
  93503. /**
  93504. * Returns the language code name from the browser, e.g. "de"
  93505. * @return {?}
  93506. */
  93507. getBrowserLang() {
  93508. if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {
  93509. return undefined;
  93510. }
  93511. /** @type {?} */
  93512. let browserLang = window.navigator.languages ? window.navigator.languages[0] : null;
  93513. browserLang = browserLang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;
  93514. if (typeof browserLang === 'undefined') {
  93515. return undefined;
  93516. }
  93517. if (browserLang.indexOf('-') !== -1) {
  93518. browserLang = browserLang.split('-')[0];
  93519. }
  93520. if (browserLang.indexOf('_') !== -1) {
  93521. browserLang = browserLang.split('_')[0];
  93522. }
  93523. return browserLang;
  93524. }
  93525. /**
  93526. * Returns the culture language code name from the browser, e.g. "de-DE"
  93527. * @return {?}
  93528. */
  93529. getBrowserCultureLang() {
  93530. if (typeof window === 'undefined' || typeof window.navigator === 'undefined') {
  93531. return undefined;
  93532. }
  93533. /** @type {?} */
  93534. let browserCultureLang = window.navigator.languages ? window.navigator.languages[0] : null;
  93535. browserCultureLang = browserCultureLang || window.navigator.language || window.navigator.browserLanguage || window.navigator.userLanguage;
  93536. return browserCultureLang;
  93537. }
  93538. }
  93539. TranslateService.ɵfac = function TranslateService_Factory(t) { return new (t || TranslateService)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](TranslateStore), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](TranslateLoader), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](TranslateCompiler), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](TranslateParser), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](MissingTranslationHandler), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](USE_DEFAULT_LANG), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](USE_STORE), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](USE_EXTEND), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](DEFAULT_LANGUAGE)); };
  93540. TranslateService.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: TranslateService, factory: TranslateService.ɵfac });
  93541. /** @nocollapse */
  93542. TranslateService.ctorParameters = () => [
  93543. { type: TranslateStore },
  93544. { type: TranslateLoader },
  93545. { type: TranslateCompiler },
  93546. { type: TranslateParser },
  93547. { type: MissingTranslationHandler },
  93548. { type: Boolean, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [USE_DEFAULT_LANG,] }] },
  93549. { type: Boolean, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [USE_STORE,] }] },
  93550. { type: Boolean, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [USE_EXTEND,] }] },
  93551. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [DEFAULT_LANGUAGE,] }] }
  93552. ];
  93553. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateService, [{
  93554. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  93555. }], function () { return [{ type: TranslateStore }, { type: TranslateLoader }, { type: TranslateCompiler }, { type: TranslateParser }, { type: MissingTranslationHandler }, { type: Boolean, decorators: [{
  93556. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  93557. args: [USE_DEFAULT_LANG]
  93558. }] }, { type: Boolean, decorators: [{
  93559. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  93560. args: [USE_STORE]
  93561. }] }, { type: Boolean, decorators: [{
  93562. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  93563. args: [USE_EXTEND]
  93564. }] }, { type: String, decorators: [{
  93565. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  93566. args: [DEFAULT_LANGUAGE]
  93567. }] }]; }, null); })();
  93568. if (false) {}
  93569. /**
  93570. * @fileoverview added by tsickle
  93571. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  93572. */
  93573. class TranslateDirective {
  93574. /**
  93575. * @param {?} translateService
  93576. * @param {?} element
  93577. * @param {?} _ref
  93578. */
  93579. constructor(translateService, element, _ref) {
  93580. this.translateService = translateService;
  93581. this.element = element;
  93582. this._ref = _ref;
  93583. // subscribe to onTranslationChange event, in case the translations of the current lang change
  93584. if (!this.onTranslationChangeSub) {
  93585. this.onTranslationChangeSub = this.translateService.onTranslationChange.subscribe((/**
  93586. * @param {?} event
  93587. * @return {?}
  93588. */
  93589. (event) => {
  93590. if (event.lang === this.translateService.currentLang) {
  93591. this.checkNodes(true, event.translations);
  93592. }
  93593. }));
  93594. }
  93595. // subscribe to onLangChange event, in case the language changes
  93596. if (!this.onLangChangeSub) {
  93597. this.onLangChangeSub = this.translateService.onLangChange.subscribe((/**
  93598. * @param {?} event
  93599. * @return {?}
  93600. */
  93601. (event) => {
  93602. this.checkNodes(true, event.translations);
  93603. }));
  93604. }
  93605. // subscribe to onDefaultLangChange event, in case the default language changes
  93606. if (!this.onDefaultLangChangeSub) {
  93607. this.onDefaultLangChangeSub = this.translateService.onDefaultLangChange.subscribe((/**
  93608. * @param {?} event
  93609. * @return {?}
  93610. */
  93611. (event) => {
  93612. this.checkNodes(true);
  93613. }));
  93614. }
  93615. }
  93616. /**
  93617. * @param {?} key
  93618. * @return {?}
  93619. */
  93620. set translate(key) {
  93621. if (key) {
  93622. this.key = key;
  93623. this.checkNodes();
  93624. }
  93625. }
  93626. /**
  93627. * @param {?} params
  93628. * @return {?}
  93629. */
  93630. set translateParams(params) {
  93631. if (!equals(this.currentParams, params)) {
  93632. this.currentParams = params;
  93633. this.checkNodes(true);
  93634. }
  93635. }
  93636. /**
  93637. * @return {?}
  93638. */
  93639. ngAfterViewChecked() {
  93640. this.checkNodes();
  93641. }
  93642. /**
  93643. * @param {?=} forceUpdate
  93644. * @param {?=} translations
  93645. * @return {?}
  93646. */
  93647. checkNodes(forceUpdate = false, translations) {
  93648. /** @type {?} */
  93649. let nodes = this.element.nativeElement.childNodes;
  93650. // if the element is empty
  93651. if (!nodes.length) {
  93652. // we add the key as content
  93653. this.setContent(this.element.nativeElement, this.key);
  93654. nodes = this.element.nativeElement.childNodes;
  93655. }
  93656. for (let i = 0; i < nodes.length; ++i) {
  93657. /** @type {?} */
  93658. let node = nodes[i];
  93659. if (node.nodeType === 3) { // node type 3 is a text node
  93660. // node type 3 is a text node
  93661. /** @type {?} */
  93662. let key;
  93663. if (forceUpdate) {
  93664. node.lastKey = null;
  93665. }
  93666. if (isDefined(node.lookupKey)) {
  93667. key = node.lookupKey;
  93668. }
  93669. else if (this.key) {
  93670. key = this.key;
  93671. }
  93672. else {
  93673. /** @type {?} */
  93674. let content = this.getContent(node);
  93675. /** @type {?} */
  93676. let trimmedContent = content.trim();
  93677. if (trimmedContent.length) {
  93678. node.lookupKey = trimmedContent;
  93679. // we want to use the content as a key, not the translation value
  93680. if (content !== node.currentValue) {
  93681. key = trimmedContent;
  93682. // the content was changed from the user, we'll use it as a reference if needed
  93683. node.originalContent = content || node.originalContent;
  93684. }
  93685. else if (node.originalContent) { // the content seems ok, but the lang has changed
  93686. // the current content is the translation, not the key, use the last real content as key
  93687. key = node.originalContent.trim();
  93688. }
  93689. else if (content !== node.currentValue) {
  93690. // we want to use the content as a key, not the translation value
  93691. key = trimmedContent;
  93692. // the content was changed from the user, we'll use it as a reference if needed
  93693. node.originalContent = content || node.originalContent;
  93694. }
  93695. }
  93696. }
  93697. this.updateValue(key, node, translations);
  93698. }
  93699. }
  93700. }
  93701. /**
  93702. * @param {?} key
  93703. * @param {?} node
  93704. * @param {?} translations
  93705. * @return {?}
  93706. */
  93707. updateValue(key, node, translations) {
  93708. if (key) {
  93709. if (node.lastKey === key && this.lastParams === this.currentParams) {
  93710. return;
  93711. }
  93712. this.lastParams = this.currentParams;
  93713. /** @type {?} */
  93714. let onTranslation = (/**
  93715. * @param {?} res
  93716. * @return {?}
  93717. */
  93718. (res) => {
  93719. if (res !== key) {
  93720. node.lastKey = key;
  93721. }
  93722. if (!node.originalContent) {
  93723. node.originalContent = this.getContent(node);
  93724. }
  93725. node.currentValue = isDefined(res) ? res : (node.originalContent || key);
  93726. // we replace in the original content to preserve spaces that we might have trimmed
  93727. this.setContent(node, this.key ? node.currentValue : node.originalContent.replace(key, node.currentValue));
  93728. this._ref.markForCheck();
  93729. });
  93730. if (isDefined(translations)) {
  93731. /** @type {?} */
  93732. let res = this.translateService.getParsedResult(translations, key, this.currentParams);
  93733. if (Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res)) {
  93734. res.subscribe(onTranslation);
  93735. }
  93736. else {
  93737. onTranslation(res);
  93738. }
  93739. }
  93740. else {
  93741. this.translateService.get(key, this.currentParams).subscribe(onTranslation);
  93742. }
  93743. }
  93744. }
  93745. /**
  93746. * @param {?} node
  93747. * @return {?}
  93748. */
  93749. getContent(node) {
  93750. return isDefined(node.textContent) ? node.textContent : node.data;
  93751. }
  93752. /**
  93753. * @param {?} node
  93754. * @param {?} content
  93755. * @return {?}
  93756. */
  93757. setContent(node, content) {
  93758. if (isDefined(node.textContent)) {
  93759. node.textContent = content;
  93760. }
  93761. else {
  93762. node.data = content;
  93763. }
  93764. }
  93765. /**
  93766. * @return {?}
  93767. */
  93768. ngOnDestroy() {
  93769. if (this.onLangChangeSub) {
  93770. this.onLangChangeSub.unsubscribe();
  93771. }
  93772. if (this.onDefaultLangChangeSub) {
  93773. this.onDefaultLangChangeSub.unsubscribe();
  93774. }
  93775. if (this.onTranslationChangeSub) {
  93776. this.onTranslationChangeSub.unsubscribe();
  93777. }
  93778. }
  93779. }
  93780. TranslateDirective.ɵfac = function TranslateDirective_Factory(t) { return new (t || TranslateDirective)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"])); };
  93781. TranslateDirective.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({ type: TranslateDirective, selectors: [["", "translate", ""], ["", "ngx-translate", ""]], inputs: { translate: "translate", translateParams: "translateParams" } });
  93782. /** @nocollapse */
  93783. TranslateDirective.ctorParameters = () => [
  93784. { type: TranslateService },
  93785. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] },
  93786. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  93787. ];
  93788. TranslateDirective.propDecorators = {
  93789. translate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }],
  93790. translateParams: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"] }]
  93791. };
  93792. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateDirective, [{
  93793. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Directive"],
  93794. args: [{
  93795. selector: '[translate],[ngx-translate]'
  93796. }]
  93797. }], function () { return [{ type: TranslateService }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, { translate: [{
  93798. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  93799. }], translateParams: [{
  93800. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"]
  93801. }] }); })();
  93802. if (false) {}
  93803. /**
  93804. * @fileoverview added by tsickle
  93805. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  93806. */
  93807. class TranslatePipe {
  93808. /**
  93809. * @param {?} translate
  93810. * @param {?} _ref
  93811. */
  93812. constructor(translate, _ref) {
  93813. this.translate = translate;
  93814. this._ref = _ref;
  93815. this.value = '';
  93816. }
  93817. /**
  93818. * @param {?} key
  93819. * @param {?=} interpolateParams
  93820. * @param {?=} translations
  93821. * @return {?}
  93822. */
  93823. updateValue(key, interpolateParams, translations) {
  93824. /** @type {?} */
  93825. let onTranslation = (/**
  93826. * @param {?} res
  93827. * @return {?}
  93828. */
  93829. (res) => {
  93830. this.value = res !== undefined ? res : key;
  93831. this.lastKey = key;
  93832. this._ref.markForCheck();
  93833. });
  93834. if (translations) {
  93835. /** @type {?} */
  93836. let res = this.translate.getParsedResult(translations, key, interpolateParams);
  93837. if (Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["isObservable"])(res.subscribe)) {
  93838. res.subscribe(onTranslation);
  93839. }
  93840. else {
  93841. onTranslation(res);
  93842. }
  93843. }
  93844. this.translate.get(key, interpolateParams).subscribe(onTranslation);
  93845. }
  93846. /**
  93847. * @param {?} query
  93848. * @param {...?} args
  93849. * @return {?}
  93850. */
  93851. transform(query, ...args) {
  93852. if (!query || !query.length) {
  93853. return query;
  93854. }
  93855. // if we ask another time for the same key, return the last value
  93856. if (equals(query, this.lastKey) && equals(args, this.lastParams)) {
  93857. return this.value;
  93858. }
  93859. /** @type {?} */
  93860. let interpolateParams;
  93861. if (isDefined(args[0]) && args.length) {
  93862. if (typeof args[0] === 'string' && args[0].length) {
  93863. // we accept objects written in the template such as {n:1}, {'n':1}, {n:'v'}
  93864. // which is why we might need to change it to real JSON objects such as {"n":1} or {"n":"v"}
  93865. /** @type {?} */
  93866. let validArgs = args[0]
  93867. .replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g, '"$2":')
  93868. .replace(/:(\s)?(\')(.*?)(\')/g, ':"$3"');
  93869. try {
  93870. interpolateParams = JSON.parse(validArgs);
  93871. }
  93872. catch (e) {
  93873. throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${args[0]}`);
  93874. }
  93875. }
  93876. else if (typeof args[0] === 'object' && !Array.isArray(args[0])) {
  93877. interpolateParams = args[0];
  93878. }
  93879. }
  93880. // store the query, in case it changes
  93881. this.lastKey = query;
  93882. // store the params, in case they change
  93883. this.lastParams = args;
  93884. // set the value
  93885. this.updateValue(query, interpolateParams);
  93886. // if there is a subscription to onLangChange, clean it
  93887. this._dispose();
  93888. // subscribe to onTranslationChange event, in case the translations change
  93889. if (!this.onTranslationChange) {
  93890. this.onTranslationChange = this.translate.onTranslationChange.subscribe((/**
  93891. * @param {?} event
  93892. * @return {?}
  93893. */
  93894. (event) => {
  93895. if (this.lastKey && event.lang === this.translate.currentLang) {
  93896. this.lastKey = null;
  93897. this.updateValue(query, interpolateParams, event.translations);
  93898. }
  93899. }));
  93900. }
  93901. // subscribe to onLangChange event, in case the language changes
  93902. if (!this.onLangChange) {
  93903. this.onLangChange = this.translate.onLangChange.subscribe((/**
  93904. * @param {?} event
  93905. * @return {?}
  93906. */
  93907. (event) => {
  93908. if (this.lastKey) {
  93909. this.lastKey = null; // we want to make sure it doesn't return the same value until it's been updated
  93910. this.updateValue(query, interpolateParams, event.translations);
  93911. }
  93912. }));
  93913. }
  93914. // subscribe to onDefaultLangChange event, in case the default language changes
  93915. if (!this.onDefaultLangChange) {
  93916. this.onDefaultLangChange = this.translate.onDefaultLangChange.subscribe((/**
  93917. * @return {?}
  93918. */
  93919. () => {
  93920. if (this.lastKey) {
  93921. this.lastKey = null; // we want to make sure it doesn't return the same value until it's been updated
  93922. this.updateValue(query, interpolateParams);
  93923. }
  93924. }));
  93925. }
  93926. return this.value;
  93927. }
  93928. /**
  93929. * Clean any existing subscription to change events
  93930. * @private
  93931. * @return {?}
  93932. */
  93933. _dispose() {
  93934. if (typeof this.onTranslationChange !== 'undefined') {
  93935. this.onTranslationChange.unsubscribe();
  93936. this.onTranslationChange = undefined;
  93937. }
  93938. if (typeof this.onLangChange !== 'undefined') {
  93939. this.onLangChange.unsubscribe();
  93940. this.onLangChange = undefined;
  93941. }
  93942. if (typeof this.onDefaultLangChange !== 'undefined') {
  93943. this.onDefaultLangChange.unsubscribe();
  93944. this.onDefaultLangChange = undefined;
  93945. }
  93946. }
  93947. /**
  93948. * @return {?}
  93949. */
  93950. ngOnDestroy() {
  93951. this._dispose();
  93952. }
  93953. }
  93954. TranslatePipe.ɵfac = function TranslatePipe_Factory(t) { return new (t || TranslatePipe)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](TranslateService), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinjectPipeChangeDetectorRef"]()); };
  93955. TranslatePipe.ɵpipe = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefinePipe"]({ name: "translate", type: TranslatePipe, pure: false });
  93956. TranslatePipe.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: TranslatePipe, factory: TranslatePipe.ɵfac });
  93957. /** @nocollapse */
  93958. TranslatePipe.ctorParameters = () => [
  93959. { type: TranslateService },
  93960. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }
  93961. ];
  93962. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslatePipe, [{
  93963. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  93964. }, {
  93965. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"],
  93966. args: [{
  93967. name: 'translate',
  93968. pure: false // required to update the value when the promise is resolved
  93969. }]
  93970. }], function () { return [{ type: TranslateService }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ChangeDetectorRef"] }]; }, null); })();
  93971. if (false) {}
  93972. /**
  93973. * @fileoverview added by tsickle
  93974. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  93975. */
  93976. /**
  93977. * @record
  93978. */
  93979. function TranslateModuleConfig() { }
  93980. if (false) {}
  93981. class TranslateModule {
  93982. /**
  93983. * Use this method in your root module to provide the TranslateService
  93984. * @param {?=} config
  93985. * @return {?}
  93986. */
  93987. static forRoot(config = {}) {
  93988. return {
  93989. ngModule: TranslateModule,
  93990. providers: [
  93991. config.loader || { provide: TranslateLoader, useClass: TranslateFakeLoader },
  93992. config.compiler || { provide: TranslateCompiler, useClass: TranslateFakeCompiler },
  93993. config.parser || { provide: TranslateParser, useClass: TranslateDefaultParser },
  93994. config.missingTranslationHandler || { provide: MissingTranslationHandler, useClass: FakeMissingTranslationHandler },
  93995. TranslateStore,
  93996. { provide: USE_STORE, useValue: config.isolate },
  93997. { provide: USE_DEFAULT_LANG, useValue: config.useDefaultLang },
  93998. { provide: USE_EXTEND, useValue: config.extend },
  93999. { provide: DEFAULT_LANGUAGE, useValue: config.defaultLanguage },
  94000. TranslateService
  94001. ]
  94002. };
  94003. }
  94004. /**
  94005. * Use this method in your other (non root) modules to import the directive/pipe
  94006. * @param {?=} config
  94007. * @return {?}
  94008. */
  94009. static forChild(config = {}) {
  94010. return {
  94011. ngModule: TranslateModule,
  94012. providers: [
  94013. config.loader || { provide: TranslateLoader, useClass: TranslateFakeLoader },
  94014. config.compiler || { provide: TranslateCompiler, useClass: TranslateFakeCompiler },
  94015. config.parser || { provide: TranslateParser, useClass: TranslateDefaultParser },
  94016. config.missingTranslationHandler || { provide: MissingTranslationHandler, useClass: FakeMissingTranslationHandler },
  94017. { provide: USE_STORE, useValue: config.isolate },
  94018. { provide: USE_DEFAULT_LANG, useValue: config.useDefaultLang },
  94019. { provide: USE_EXTEND, useValue: config.extend },
  94020. { provide: DEFAULT_LANGUAGE, useValue: config.defaultLanguage },
  94021. TranslateService
  94022. ]
  94023. };
  94024. }
  94025. }
  94026. TranslateModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: TranslateModule });
  94027. TranslateModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function TranslateModule_Factory(t) { return new (t || TranslateModule)(); } });
  94028. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](TranslateModule, { declarations: [TranslatePipe, TranslateDirective], exports: [TranslatePipe, TranslateDirective] }); })();
  94029. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](TranslateModule, [{
  94030. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  94031. args: [{
  94032. declarations: [
  94033. TranslatePipe,
  94034. TranslateDirective
  94035. ],
  94036. exports: [
  94037. TranslatePipe,
  94038. TranslateDirective
  94039. ]
  94040. }]
  94041. }], null, null); })();
  94042. /**
  94043. * @fileoverview added by tsickle
  94044. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  94045. */
  94046. //# sourceMappingURL=ngx-translate-core.js.map
  94047. /***/ }),
  94048. /***/ "syX2":
  94049. /*!**********************************************************************!*\
  94050. !*** ./node_modules/rxjs/_esm2015/internal/operators/timeoutWith.js ***!
  94051. \**********************************************************************/
  94052. /*! exports provided: timeoutWith */
  94053. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  94054. "use strict";
  94055. __webpack_require__.r(__webpack_exports__);
  94056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeoutWith", function() { return timeoutWith; });
  94057. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  94058. /* harmony import */ var _util_isDate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isDate */ "mlxB");
  94059. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  94060. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  94061. function timeoutWith(due, withObservable, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) {
  94062. return (source) => {
  94063. let absoluteTimeout = Object(_util_isDate__WEBPACK_IMPORTED_MODULE_1__["isDate"])(due);
  94064. let waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);
  94065. return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));
  94066. };
  94067. }
  94068. class TimeoutWithOperator {
  94069. constructor(waitFor, absoluteTimeout, withObservable, scheduler) {
  94070. this.waitFor = waitFor;
  94071. this.absoluteTimeout = absoluteTimeout;
  94072. this.withObservable = withObservable;
  94073. this.scheduler = scheduler;
  94074. }
  94075. call(subscriber, source) {
  94076. return source.subscribe(new TimeoutWithSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler));
  94077. }
  94078. }
  94079. class TimeoutWithSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] {
  94080. constructor(destination, absoluteTimeout, waitFor, withObservable, scheduler) {
  94081. super(destination);
  94082. this.absoluteTimeout = absoluteTimeout;
  94083. this.waitFor = waitFor;
  94084. this.withObservable = withObservable;
  94085. this.scheduler = scheduler;
  94086. this.action = null;
  94087. this.scheduleTimeout();
  94088. }
  94089. static dispatchTimeout(subscriber) {
  94090. const { withObservable } = subscriber;
  94091. subscriber._unsubscribeAndRecycle();
  94092. subscriber.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_3__["subscribeToResult"])(subscriber, withObservable));
  94093. }
  94094. scheduleTimeout() {
  94095. const { action } = this;
  94096. if (action) {
  94097. this.action = action.schedule(this, this.waitFor);
  94098. }
  94099. else {
  94100. this.add(this.action = this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout, this.waitFor, this));
  94101. }
  94102. }
  94103. _next(value) {
  94104. if (!this.absoluteTimeout) {
  94105. this.scheduleTimeout();
  94106. }
  94107. super._next(value);
  94108. }
  94109. _unsubscribe() {
  94110. this.action = null;
  94111. this.scheduler = null;
  94112. this.withObservable = null;
  94113. }
  94114. }
  94115. //# sourceMappingURL=timeoutWith.js.map
  94116. /***/ }),
  94117. /***/ "t9l1":
  94118. /*!***************************************************************************!*\
  94119. !*** ./node_modules/@angular/animations/__ivy_ngcc__/fesm2015/browser.js ***!
  94120. \***************************************************************************/
  94121. /*! exports provided: AnimationDriver, ɵAnimation, ɵAnimationEngine, ɵAnimationStyleNormalizer, ɵCssKeyframesDriver, ɵCssKeyframesPlayer, ɵNoopAnimationDriver, ɵNoopAnimationStyleNormalizer, ɵWebAnimationsDriver, ɵWebAnimationsPlayer, ɵWebAnimationsStyleNormalizer, ɵallowPreviousPlayerStylesMerge, ɵangular_packages_animations_browser_browser_a, ɵcontainsElement, ɵinvokeQuery, ɵmatchesElement, ɵsupportsWebAnimations, ɵvalidateStyleProperty */
  94122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  94123. "use strict";
  94124. __webpack_require__.r(__webpack_exports__);
  94125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationDriver", function() { return AnimationDriver; });
  94126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimation", function() { return Animation; });
  94127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimationEngine", function() { return AnimationEngine; });
  94128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵAnimationStyleNormalizer", function() { return AnimationStyleNormalizer; });
  94129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCssKeyframesDriver", function() { return CssKeyframesDriver; });
  94130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵCssKeyframesPlayer", function() { return CssKeyframesPlayer; });
  94131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNoopAnimationDriver", function() { return NoopAnimationDriver; });
  94132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵNoopAnimationStyleNormalizer", function() { return NoopAnimationStyleNormalizer; });
  94133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵWebAnimationsDriver", function() { return WebAnimationsDriver; });
  94134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵWebAnimationsPlayer", function() { return WebAnimationsPlayer; });
  94135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵWebAnimationsStyleNormalizer", function() { return WebAnimationsStyleNormalizer; });
  94136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵallowPreviousPlayerStylesMerge", function() { return allowPreviousPlayerStylesMerge; });
  94137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_animations_browser_browser_a", function() { return SpecialCasedStyles; });
  94138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵcontainsElement", function() { return containsElement; });
  94139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵinvokeQuery", function() { return invokeQuery; });
  94140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵmatchesElement", function() { return matchesElement; });
  94141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵsupportsWebAnimations", function() { return supportsWebAnimations; });
  94142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵvalidateStyleProperty", function() { return validateStyleProperty; });
  94143. /* harmony import */ var _angular_animations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/animations */ "R0Ic");
  94144. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
  94145. /**
  94146. * @license Angular v11.0.4
  94147. * (c) 2010-2020 Google LLC. https://angular.io/
  94148. * License: MIT
  94149. */
  94150. /**
  94151. * @license
  94152. * Copyright Google LLC All Rights Reserved.
  94153. *
  94154. * Use of this source code is governed by an MIT-style license that can be
  94155. * found in the LICENSE file at https://angular.io/license
  94156. */
  94157. function isBrowser() {
  94158. return (typeof window !== 'undefined' && typeof window.document !== 'undefined');
  94159. }
  94160. function isNode() {
  94161. // Checking only for `process` isn't enough to identify whether or not we're in a Node
  94162. // environment, because Webpack by default will polyfill the `process`. While we can discern
  94163. // that Webpack polyfilled it by looking at `process.browser`, it's very Webpack-specific and
  94164. // might not be future-proof. Instead we look at the stringified version of `process` which
  94165. // is `[object process]` in Node and `[object Object]` when polyfilled.
  94166. return typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
  94167. }
  94168. function optimizeGroupPlayer(players) {
  94169. switch (players.length) {
  94170. case 0:
  94171. return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"]();
  94172. case 1:
  94173. return players[0];
  94174. default:
  94175. return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵAnimationGroupPlayer"](players);
  94176. }
  94177. }
  94178. function normalizeKeyframes(driver, normalizer, element, keyframes, preStyles = {}, postStyles = {}) {
  94179. const errors = [];
  94180. const normalizedKeyframes = [];
  94181. let previousOffset = -1;
  94182. let previousKeyframe = null;
  94183. keyframes.forEach(kf => {
  94184. const offset = kf['offset'];
  94185. const isSameOffset = offset == previousOffset;
  94186. const normalizedKeyframe = (isSameOffset && previousKeyframe) || {};
  94187. Object.keys(kf).forEach(prop => {
  94188. let normalizedProp = prop;
  94189. let normalizedValue = kf[prop];
  94190. if (prop !== 'offset') {
  94191. normalizedProp = normalizer.normalizePropertyName(normalizedProp, errors);
  94192. switch (normalizedValue) {
  94193. case _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵPRE_STYLE"]:
  94194. normalizedValue = preStyles[prop];
  94195. break;
  94196. case _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]:
  94197. normalizedValue = postStyles[prop];
  94198. break;
  94199. default:
  94200. normalizedValue =
  94201. normalizer.normalizeStyleValue(prop, normalizedProp, normalizedValue, errors);
  94202. break;
  94203. }
  94204. }
  94205. normalizedKeyframe[normalizedProp] = normalizedValue;
  94206. });
  94207. if (!isSameOffset) {
  94208. normalizedKeyframes.push(normalizedKeyframe);
  94209. }
  94210. previousKeyframe = normalizedKeyframe;
  94211. previousOffset = offset;
  94212. });
  94213. if (errors.length) {
  94214. const LINE_START = '\n - ';
  94215. throw new Error(`Unable to animate due to the following errors:${LINE_START}${errors.join(LINE_START)}`);
  94216. }
  94217. return normalizedKeyframes;
  94218. }
  94219. function listenOnPlayer(player, eventName, event, callback) {
  94220. switch (eventName) {
  94221. case 'start':
  94222. player.onStart(() => callback(event && copyAnimationEvent(event, 'start', player)));
  94223. break;
  94224. case 'done':
  94225. player.onDone(() => callback(event && copyAnimationEvent(event, 'done', player)));
  94226. break;
  94227. case 'destroy':
  94228. player.onDestroy(() => callback(event && copyAnimationEvent(event, 'destroy', player)));
  94229. break;
  94230. }
  94231. }
  94232. function copyAnimationEvent(e, phaseName, player) {
  94233. const totalTime = player.totalTime;
  94234. const disabled = player.disabled ? true : false;
  94235. const event = makeAnimationEvent(e.element, e.triggerName, e.fromState, e.toState, phaseName || e.phaseName, totalTime == undefined ? e.totalTime : totalTime, disabled);
  94236. const data = e['_data'];
  94237. if (data != null) {
  94238. event['_data'] = data;
  94239. }
  94240. return event;
  94241. }
  94242. function makeAnimationEvent(element, triggerName, fromState, toState, phaseName = '', totalTime = 0, disabled) {
  94243. return { element, triggerName, fromState, toState, phaseName, totalTime, disabled: !!disabled };
  94244. }
  94245. function getOrSetAsInMap(map, key, defaultValue) {
  94246. let value;
  94247. if (map instanceof Map) {
  94248. value = map.get(key);
  94249. if (!value) {
  94250. map.set(key, value = defaultValue);
  94251. }
  94252. }
  94253. else {
  94254. value = map[key];
  94255. if (!value) {
  94256. value = map[key] = defaultValue;
  94257. }
  94258. }
  94259. return value;
  94260. }
  94261. function parseTimelineCommand(command) {
  94262. const separatorPos = command.indexOf(':');
  94263. const id = command.substring(1, separatorPos);
  94264. const action = command.substr(separatorPos + 1);
  94265. return [id, action];
  94266. }
  94267. let _contains = (elm1, elm2) => false;
  94268. const ɵ0 = _contains;
  94269. let _matches = (element, selector) => false;
  94270. const ɵ1 = _matches;
  94271. let _query = (element, selector, multi) => {
  94272. return [];
  94273. };
  94274. const ɵ2 = _query;
  94275. // Define utility methods for browsers and platform-server(domino) where Element
  94276. // and utility methods exist.
  94277. const _isNode = isNode();
  94278. if (_isNode || typeof Element !== 'undefined') {
  94279. // this is well supported in all browsers
  94280. _contains = (elm1, elm2) => {
  94281. return elm1.contains(elm2);
  94282. };
  94283. _matches = (() => {
  94284. if (_isNode || Element.prototype.matches) {
  94285. return (element, selector) => element.matches(selector);
  94286. }
  94287. else {
  94288. const proto = Element.prototype;
  94289. const fn = proto.matchesSelector || proto.mozMatchesSelector || proto.msMatchesSelector ||
  94290. proto.oMatchesSelector || proto.webkitMatchesSelector;
  94291. if (fn) {
  94292. return (element, selector) => fn.apply(element, [selector]);
  94293. }
  94294. else {
  94295. return _matches;
  94296. }
  94297. }
  94298. })();
  94299. _query = (element, selector, multi) => {
  94300. let results = [];
  94301. if (multi) {
  94302. // DO NOT REFACTOR TO USE SPREAD SYNTAX.
  94303. // For element queries that return sufficiently large NodeList objects,
  94304. // using spread syntax to populate the results array causes a RangeError
  94305. // due to the call stack limit being reached. `Array.from` can not be used
  94306. // as well, since NodeList is not iterable in IE 11, see
  94307. // https://developer.mozilla.org/en-US/docs/Web/API/NodeList
  94308. // More info is available in #38551.
  94309. const elems = element.querySelectorAll(selector);
  94310. for (let i = 0; i < elems.length; i++) {
  94311. results.push(elems[i]);
  94312. }
  94313. }
  94314. else {
  94315. const elm = element.querySelector(selector);
  94316. if (elm) {
  94317. results.push(elm);
  94318. }
  94319. }
  94320. return results;
  94321. };
  94322. }
  94323. function containsVendorPrefix(prop) {
  94324. // Webkit is the only real popular vendor prefix nowadays
  94325. // cc: http://shouldiprefix.com/
  94326. return prop.substring(1, 6) == 'ebkit'; // webkit or Webkit
  94327. }
  94328. let _CACHED_BODY = null;
  94329. let _IS_WEBKIT = false;
  94330. function validateStyleProperty(prop) {
  94331. if (!_CACHED_BODY) {
  94332. _CACHED_BODY = getBodyNode() || {};
  94333. _IS_WEBKIT = _CACHED_BODY.style ? ('WebkitAppearance' in _CACHED_BODY.style) : false;
  94334. }
  94335. let result = true;
  94336. if (_CACHED_BODY.style && !containsVendorPrefix(prop)) {
  94337. result = prop in _CACHED_BODY.style;
  94338. if (!result && _IS_WEBKIT) {
  94339. const camelProp = 'Webkit' + prop.charAt(0).toUpperCase() + prop.substr(1);
  94340. result = camelProp in _CACHED_BODY.style;
  94341. }
  94342. }
  94343. return result;
  94344. }
  94345. function getBodyNode() {
  94346. if (typeof document != 'undefined') {
  94347. return document.body;
  94348. }
  94349. return null;
  94350. }
  94351. const matchesElement = _matches;
  94352. const containsElement = _contains;
  94353. const invokeQuery = _query;
  94354. function hypenatePropsObject(object) {
  94355. const newObj = {};
  94356. Object.keys(object).forEach(prop => {
  94357. const newProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2');
  94358. newObj[newProp] = object[prop];
  94359. });
  94360. return newObj;
  94361. }
  94362. /**
  94363. * @license
  94364. * Copyright Google LLC All Rights Reserved.
  94365. *
  94366. * Use of this source code is governed by an MIT-style license that can be
  94367. * found in the LICENSE file at https://angular.io/license
  94368. */
  94369. /**
  94370. * @publicApi
  94371. */
  94372. class NoopAnimationDriver {
  94373. validateStyleProperty(prop) {
  94374. return validateStyleProperty(prop);
  94375. }
  94376. matchesElement(element, selector) {
  94377. return matchesElement(element, selector);
  94378. }
  94379. containsElement(elm1, elm2) {
  94380. return containsElement(elm1, elm2);
  94381. }
  94382. query(element, selector, multi) {
  94383. return invokeQuery(element, selector, multi);
  94384. }
  94385. computeStyle(element, prop, defaultValue) {
  94386. return defaultValue || '';
  94387. }
  94388. animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {
  94389. return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"](duration, delay);
  94390. }
  94391. }
  94392. NoopAnimationDriver.ɵfac = function NoopAnimationDriver_Factory(t) { return new (t || NoopAnimationDriver)(); };
  94393. NoopAnimationDriver.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: NoopAnimationDriver, factory: NoopAnimationDriver.ɵfac });
  94394. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](NoopAnimationDriver, [{
  94395. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  94396. }], null, null); })();
  94397. /**
  94398. * @publicApi
  94399. */
  94400. class AnimationDriver {
  94401. }
  94402. AnimationDriver.NOOP = new NoopAnimationDriver();
  94403. /**
  94404. * @license
  94405. * Copyright Google LLC All Rights Reserved.
  94406. *
  94407. * Use of this source code is governed by an MIT-style license that can be
  94408. * found in the LICENSE file at https://angular.io/license
  94409. */
  94410. const ONE_SECOND = 1000;
  94411. const SUBSTITUTION_EXPR_START = '{{';
  94412. const SUBSTITUTION_EXPR_END = '}}';
  94413. const ENTER_CLASSNAME = 'ng-enter';
  94414. const LEAVE_CLASSNAME = 'ng-leave';
  94415. const ENTER_SELECTOR = '.ng-enter';
  94416. const LEAVE_SELECTOR = '.ng-leave';
  94417. const NG_TRIGGER_CLASSNAME = 'ng-trigger';
  94418. const NG_TRIGGER_SELECTOR = '.ng-trigger';
  94419. const NG_ANIMATING_CLASSNAME = 'ng-animating';
  94420. const NG_ANIMATING_SELECTOR = '.ng-animating';
  94421. function resolveTimingValue(value) {
  94422. if (typeof value == 'number')
  94423. return value;
  94424. const matches = value.match(/^(-?[\.\d]+)(m?s)/);
  94425. if (!matches || matches.length < 2)
  94426. return 0;
  94427. return _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);
  94428. }
  94429. function _convertTimeValueToMS(value, unit) {
  94430. switch (unit) {
  94431. case 's':
  94432. return value * ONE_SECOND;
  94433. default: // ms or something else
  94434. return value;
  94435. }
  94436. }
  94437. function resolveTiming(timings, errors, allowNegativeValues) {
  94438. return timings.hasOwnProperty('duration') ?
  94439. timings :
  94440. parseTimeExpression(timings, errors, allowNegativeValues);
  94441. }
  94442. function parseTimeExpression(exp, errors, allowNegativeValues) {
  94443. const regex = /^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;
  94444. let duration;
  94445. let delay = 0;
  94446. let easing = '';
  94447. if (typeof exp === 'string') {
  94448. const matches = exp.match(regex);
  94449. if (matches === null) {
  94450. errors.push(`The provided timing value "${exp}" is invalid.`);
  94451. return { duration: 0, delay: 0, easing: '' };
  94452. }
  94453. duration = _convertTimeValueToMS(parseFloat(matches[1]), matches[2]);
  94454. const delayMatch = matches[3];
  94455. if (delayMatch != null) {
  94456. delay = _convertTimeValueToMS(parseFloat(delayMatch), matches[4]);
  94457. }
  94458. const easingVal = matches[5];
  94459. if (easingVal) {
  94460. easing = easingVal;
  94461. }
  94462. }
  94463. else {
  94464. duration = exp;
  94465. }
  94466. if (!allowNegativeValues) {
  94467. let containsErrors = false;
  94468. let startIndex = errors.length;
  94469. if (duration < 0) {
  94470. errors.push(`Duration values below 0 are not allowed for this animation step.`);
  94471. containsErrors = true;
  94472. }
  94473. if (delay < 0) {
  94474. errors.push(`Delay values below 0 are not allowed for this animation step.`);
  94475. containsErrors = true;
  94476. }
  94477. if (containsErrors) {
  94478. errors.splice(startIndex, 0, `The provided timing value "${exp}" is invalid.`);
  94479. }
  94480. }
  94481. return { duration, delay, easing };
  94482. }
  94483. function copyObj(obj, destination = {}) {
  94484. Object.keys(obj).forEach(prop => {
  94485. destination[prop] = obj[prop];
  94486. });
  94487. return destination;
  94488. }
  94489. function normalizeStyles(styles) {
  94490. const normalizedStyles = {};
  94491. if (Array.isArray(styles)) {
  94492. styles.forEach(data => copyStyles(data, false, normalizedStyles));
  94493. }
  94494. else {
  94495. copyStyles(styles, false, normalizedStyles);
  94496. }
  94497. return normalizedStyles;
  94498. }
  94499. function copyStyles(styles, readPrototype, destination = {}) {
  94500. if (readPrototype) {
  94501. // we make use of a for-in loop so that the
  94502. // prototypically inherited properties are
  94503. // revealed from the backFill map
  94504. for (let prop in styles) {
  94505. destination[prop] = styles[prop];
  94506. }
  94507. }
  94508. else {
  94509. copyObj(styles, destination);
  94510. }
  94511. return destination;
  94512. }
  94513. function getStyleAttributeString(element, key, value) {
  94514. // Return the key-value pair string to be added to the style attribute for the
  94515. // given CSS style key.
  94516. if (value) {
  94517. return key + ':' + value + ';';
  94518. }
  94519. else {
  94520. return '';
  94521. }
  94522. }
  94523. function writeStyleAttribute(element) {
  94524. // Read the style property of the element and manually reflect it to the
  94525. // style attribute. This is needed because Domino on platform-server doesn't
  94526. // understand the full set of allowed CSS properties and doesn't reflect some
  94527. // of them automatically.
  94528. let styleAttrValue = '';
  94529. for (let i = 0; i < element.style.length; i++) {
  94530. const key = element.style.item(i);
  94531. styleAttrValue += getStyleAttributeString(element, key, element.style.getPropertyValue(key));
  94532. }
  94533. for (const key in element.style) {
  94534. // Skip internal Domino properties that don't need to be reflected.
  94535. if (!element.style.hasOwnProperty(key) || key.startsWith('_')) {
  94536. continue;
  94537. }
  94538. const dashKey = camelCaseToDashCase(key);
  94539. styleAttrValue += getStyleAttributeString(element, dashKey, element.style[key]);
  94540. }
  94541. element.setAttribute('style', styleAttrValue);
  94542. }
  94543. function setStyles(element, styles, formerStyles) {
  94544. if (element['style']) {
  94545. Object.keys(styles).forEach(prop => {
  94546. const camelProp = dashCaseToCamelCase(prop);
  94547. if (formerStyles && !formerStyles.hasOwnProperty(prop)) {
  94548. formerStyles[prop] = element.style[camelProp];
  94549. }
  94550. element.style[camelProp] = styles[prop];
  94551. });
  94552. // On the server set the 'style' attribute since it's not automatically reflected.
  94553. if (isNode()) {
  94554. writeStyleAttribute(element);
  94555. }
  94556. }
  94557. }
  94558. function eraseStyles(element, styles) {
  94559. if (element['style']) {
  94560. Object.keys(styles).forEach(prop => {
  94561. const camelProp = dashCaseToCamelCase(prop);
  94562. element.style[camelProp] = '';
  94563. });
  94564. // On the server set the 'style' attribute since it's not automatically reflected.
  94565. if (isNode()) {
  94566. writeStyleAttribute(element);
  94567. }
  94568. }
  94569. }
  94570. function normalizeAnimationEntry(steps) {
  94571. if (Array.isArray(steps)) {
  94572. if (steps.length == 1)
  94573. return steps[0];
  94574. return Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["sequence"])(steps);
  94575. }
  94576. return steps;
  94577. }
  94578. function validateStyleParams(value, options, errors) {
  94579. const params = options.params || {};
  94580. const matches = extractStyleParams(value);
  94581. if (matches.length) {
  94582. matches.forEach(varName => {
  94583. if (!params.hasOwnProperty(varName)) {
  94584. errors.push(`Unable to resolve the local animation param ${varName} in the given list of values`);
  94585. }
  94586. });
  94587. }
  94588. }
  94589. const PARAM_REGEX = new RegExp(`${SUBSTITUTION_EXPR_START}\\s*(.+?)\\s*${SUBSTITUTION_EXPR_END}`, 'g');
  94590. function extractStyleParams(value) {
  94591. let params = [];
  94592. if (typeof value === 'string') {
  94593. let match;
  94594. while (match = PARAM_REGEX.exec(value)) {
  94595. params.push(match[1]);
  94596. }
  94597. PARAM_REGEX.lastIndex = 0;
  94598. }
  94599. return params;
  94600. }
  94601. function interpolateParams(value, params, errors) {
  94602. const original = value.toString();
  94603. const str = original.replace(PARAM_REGEX, (_, varName) => {
  94604. let localVal = params[varName];
  94605. // this means that the value was never overridden by the data passed in by the user
  94606. if (!params.hasOwnProperty(varName)) {
  94607. errors.push(`Please provide a value for the animation param ${varName}`);
  94608. localVal = '';
  94609. }
  94610. return localVal.toString();
  94611. });
  94612. // we do this to assert that numeric values stay as they are
  94613. return str == original ? value : str;
  94614. }
  94615. function iteratorToArray(iterator) {
  94616. const arr = [];
  94617. let item = iterator.next();
  94618. while (!item.done) {
  94619. arr.push(item.value);
  94620. item = iterator.next();
  94621. }
  94622. return arr;
  94623. }
  94624. function mergeAnimationOptions(source, destination) {
  94625. if (source.params) {
  94626. const p0 = source.params;
  94627. if (!destination.params) {
  94628. destination.params = {};
  94629. }
  94630. const p1 = destination.params;
  94631. Object.keys(p0).forEach(param => {
  94632. if (!p1.hasOwnProperty(param)) {
  94633. p1[param] = p0[param];
  94634. }
  94635. });
  94636. }
  94637. return destination;
  94638. }
  94639. const DASH_CASE_REGEXP = /-+([a-z0-9])/g;
  94640. function dashCaseToCamelCase(input) {
  94641. return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
  94642. }
  94643. function camelCaseToDashCase(input) {
  94644. return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
  94645. }
  94646. function allowPreviousPlayerStylesMerge(duration, delay) {
  94647. return duration === 0 || delay === 0;
  94648. }
  94649. function balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles) {
  94650. const previousStyleProps = Object.keys(previousStyles);
  94651. if (previousStyleProps.length && keyframes.length) {
  94652. let startingKeyframe = keyframes[0];
  94653. let missingStyleProps = [];
  94654. previousStyleProps.forEach(prop => {
  94655. if (!startingKeyframe.hasOwnProperty(prop)) {
  94656. missingStyleProps.push(prop);
  94657. }
  94658. startingKeyframe[prop] = previousStyles[prop];
  94659. });
  94660. if (missingStyleProps.length) {
  94661. // tslint:disable-next-line
  94662. for (var i = 1; i < keyframes.length; i++) {
  94663. let kf = keyframes[i];
  94664. missingStyleProps.forEach(function (prop) {
  94665. kf[prop] = computeStyle(element, prop);
  94666. });
  94667. }
  94668. }
  94669. }
  94670. return keyframes;
  94671. }
  94672. function visitDslNode(visitor, node, context) {
  94673. switch (node.type) {
  94674. case 7 /* Trigger */:
  94675. return visitor.visitTrigger(node, context);
  94676. case 0 /* State */:
  94677. return visitor.visitState(node, context);
  94678. case 1 /* Transition */:
  94679. return visitor.visitTransition(node, context);
  94680. case 2 /* Sequence */:
  94681. return visitor.visitSequence(node, context);
  94682. case 3 /* Group */:
  94683. return visitor.visitGroup(node, context);
  94684. case 4 /* Animate */:
  94685. return visitor.visitAnimate(node, context);
  94686. case 5 /* Keyframes */:
  94687. return visitor.visitKeyframes(node, context);
  94688. case 6 /* Style */:
  94689. return visitor.visitStyle(node, context);
  94690. case 8 /* Reference */:
  94691. return visitor.visitReference(node, context);
  94692. case 9 /* AnimateChild */:
  94693. return visitor.visitAnimateChild(node, context);
  94694. case 10 /* AnimateRef */:
  94695. return visitor.visitAnimateRef(node, context);
  94696. case 11 /* Query */:
  94697. return visitor.visitQuery(node, context);
  94698. case 12 /* Stagger */:
  94699. return visitor.visitStagger(node, context);
  94700. default:
  94701. throw new Error(`Unable to resolve animation metadata node #${node.type}`);
  94702. }
  94703. }
  94704. function computeStyle(element, prop) {
  94705. return window.getComputedStyle(element)[prop];
  94706. }
  94707. /**
  94708. * @license
  94709. * Copyright Google LLC All Rights Reserved.
  94710. *
  94711. * Use of this source code is governed by an MIT-style license that can be
  94712. * found in the LICENSE file at https://angular.io/license
  94713. */
  94714. const ANY_STATE = '*';
  94715. function parseTransitionExpr(transitionValue, errors) {
  94716. const expressions = [];
  94717. if (typeof transitionValue == 'string') {
  94718. transitionValue.split(/\s*,\s*/).forEach(str => parseInnerTransitionStr(str, expressions, errors));
  94719. }
  94720. else {
  94721. expressions.push(transitionValue);
  94722. }
  94723. return expressions;
  94724. }
  94725. function parseInnerTransitionStr(eventStr, expressions, errors) {
  94726. if (eventStr[0] == ':') {
  94727. const result = parseAnimationAlias(eventStr, errors);
  94728. if (typeof result == 'function') {
  94729. expressions.push(result);
  94730. return;
  94731. }
  94732. eventStr = result;
  94733. }
  94734. const match = eventStr.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);
  94735. if (match == null || match.length < 4) {
  94736. errors.push(`The provided transition expression "${eventStr}" is not supported`);
  94737. return expressions;
  94738. }
  94739. const fromState = match[1];
  94740. const separator = match[2];
  94741. const toState = match[3];
  94742. expressions.push(makeLambdaFromStates(fromState, toState));
  94743. const isFullAnyStateExpr = fromState == ANY_STATE && toState == ANY_STATE;
  94744. if (separator[0] == '<' && !isFullAnyStateExpr) {
  94745. expressions.push(makeLambdaFromStates(toState, fromState));
  94746. }
  94747. }
  94748. function parseAnimationAlias(alias, errors) {
  94749. switch (alias) {
  94750. case ':enter':
  94751. return 'void => *';
  94752. case ':leave':
  94753. return '* => void';
  94754. case ':increment':
  94755. return (fromState, toState) => parseFloat(toState) > parseFloat(fromState);
  94756. case ':decrement':
  94757. return (fromState, toState) => parseFloat(toState) < parseFloat(fromState);
  94758. default:
  94759. errors.push(`The transition alias value "${alias}" is not supported`);
  94760. return '* => *';
  94761. }
  94762. }
  94763. // DO NOT REFACTOR ... keep the follow set instantiations
  94764. // with the values intact (closure compiler for some reason
  94765. // removes follow-up lines that add the values outside of
  94766. // the constructor...
  94767. const TRUE_BOOLEAN_VALUES = new Set(['true', '1']);
  94768. const FALSE_BOOLEAN_VALUES = new Set(['false', '0']);
  94769. function makeLambdaFromStates(lhs, rhs) {
  94770. const LHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(lhs) || FALSE_BOOLEAN_VALUES.has(lhs);
  94771. const RHS_MATCH_BOOLEAN = TRUE_BOOLEAN_VALUES.has(rhs) || FALSE_BOOLEAN_VALUES.has(rhs);
  94772. return (fromState, toState) => {
  94773. let lhsMatch = lhs == ANY_STATE || lhs == fromState;
  94774. let rhsMatch = rhs == ANY_STATE || rhs == toState;
  94775. if (!lhsMatch && LHS_MATCH_BOOLEAN && typeof fromState === 'boolean') {
  94776. lhsMatch = fromState ? TRUE_BOOLEAN_VALUES.has(lhs) : FALSE_BOOLEAN_VALUES.has(lhs);
  94777. }
  94778. if (!rhsMatch && RHS_MATCH_BOOLEAN && typeof toState === 'boolean') {
  94779. rhsMatch = toState ? TRUE_BOOLEAN_VALUES.has(rhs) : FALSE_BOOLEAN_VALUES.has(rhs);
  94780. }
  94781. return lhsMatch && rhsMatch;
  94782. };
  94783. }
  94784. /**
  94785. * @license
  94786. * Copyright Google LLC All Rights Reserved.
  94787. *
  94788. * Use of this source code is governed by an MIT-style license that can be
  94789. * found in the LICENSE file at https://angular.io/license
  94790. */
  94791. const SELF_TOKEN = ':self';
  94792. const SELF_TOKEN_REGEX = new RegExp(`\s*${SELF_TOKEN}\s*,?`, 'g');
  94793. /*
  94794. * [Validation]
  94795. * The visitor code below will traverse the animation AST generated by the animation verb functions
  94796. * (the output is a tree of objects) and attempt to perform a series of validations on the data. The
  94797. * following corner-cases will be validated:
  94798. *
  94799. * 1. Overlap of animations
  94800. * Given that a CSS property cannot be animated in more than one place at the same time, it's
  94801. * important that this behavior is detected and validated. The way in which this occurs is that
  94802. * each time a style property is examined, a string-map containing the property will be updated with
  94803. * the start and end times for when the property is used within an animation step.
  94804. *
  94805. * If there are two or more parallel animations that are currently running (these are invoked by the
  94806. * group()) on the same element then the validator will throw an error. Since the start/end timing
  94807. * values are collected for each property then if the current animation step is animating the same
  94808. * property and its timing values fall anywhere into the window of time that the property is
  94809. * currently being animated within then this is what causes an error.
  94810. *
  94811. * 2. Timing values
  94812. * The validator will validate to see if a timing value of `duration delay easing` or
  94813. * `durationNumber` is valid or not.
  94814. *
  94815. * (note that upon validation the code below will replace the timing data with an object containing
  94816. * {duration,delay,easing}.
  94817. *
  94818. * 3. Offset Validation
  94819. * Each of the style() calls are allowed to have an offset value when placed inside of keyframes().
  94820. * Offsets within keyframes() are considered valid when:
  94821. *
  94822. * - No offsets are used at all
  94823. * - Each style() entry contains an offset value
  94824. * - Each offset is between 0 and 1
  94825. * - Each offset is greater to or equal than the previous one
  94826. *
  94827. * Otherwise an error will be thrown.
  94828. */
  94829. function buildAnimationAst(driver, metadata, errors) {
  94830. return new AnimationAstBuilderVisitor(driver).build(metadata, errors);
  94831. }
  94832. const ROOT_SELECTOR = '';
  94833. class AnimationAstBuilderVisitor {
  94834. constructor(_driver) {
  94835. this._driver = _driver;
  94836. }
  94837. build(metadata, errors) {
  94838. const context = new AnimationAstBuilderContext(errors);
  94839. this._resetContextStyleTimingState(context);
  94840. return visitDslNode(this, normalizeAnimationEntry(metadata), context);
  94841. }
  94842. _resetContextStyleTimingState(context) {
  94843. context.currentQuerySelector = ROOT_SELECTOR;
  94844. context.collectedStyles = {};
  94845. context.collectedStyles[ROOT_SELECTOR] = {};
  94846. context.currentTime = 0;
  94847. }
  94848. visitTrigger(metadata, context) {
  94849. let queryCount = context.queryCount = 0;
  94850. let depCount = context.depCount = 0;
  94851. const states = [];
  94852. const transitions = [];
  94853. if (metadata.name.charAt(0) == '@') {
  94854. context.errors.push('animation triggers cannot be prefixed with an `@` sign (e.g. trigger(\'@foo\', [...]))');
  94855. }
  94856. metadata.definitions.forEach(def => {
  94857. this._resetContextStyleTimingState(context);
  94858. if (def.type == 0 /* State */) {
  94859. const stateDef = def;
  94860. const name = stateDef.name;
  94861. name.toString().split(/\s*,\s*/).forEach(n => {
  94862. stateDef.name = n;
  94863. states.push(this.visitState(stateDef, context));
  94864. });
  94865. stateDef.name = name;
  94866. }
  94867. else if (def.type == 1 /* Transition */) {
  94868. const transition = this.visitTransition(def, context);
  94869. queryCount += transition.queryCount;
  94870. depCount += transition.depCount;
  94871. transitions.push(transition);
  94872. }
  94873. else {
  94874. context.errors.push('only state() and transition() definitions can sit inside of a trigger()');
  94875. }
  94876. });
  94877. return {
  94878. type: 7 /* Trigger */,
  94879. name: metadata.name,
  94880. states,
  94881. transitions,
  94882. queryCount,
  94883. depCount,
  94884. options: null
  94885. };
  94886. }
  94887. visitState(metadata, context) {
  94888. const styleAst = this.visitStyle(metadata.styles, context);
  94889. const astParams = (metadata.options && metadata.options.params) || null;
  94890. if (styleAst.containsDynamicStyles) {
  94891. const missingSubs = new Set();
  94892. const params = astParams || {};
  94893. styleAst.styles.forEach(value => {
  94894. if (isObject(value)) {
  94895. const stylesObj = value;
  94896. Object.keys(stylesObj).forEach(prop => {
  94897. extractStyleParams(stylesObj[prop]).forEach(sub => {
  94898. if (!params.hasOwnProperty(sub)) {
  94899. missingSubs.add(sub);
  94900. }
  94901. });
  94902. });
  94903. }
  94904. });
  94905. if (missingSubs.size) {
  94906. const missingSubsArr = iteratorToArray(missingSubs.values());
  94907. context.errors.push(`state("${metadata
  94908. .name}", ...) must define default values for all the following style substitutions: ${missingSubsArr.join(', ')}`);
  94909. }
  94910. }
  94911. return {
  94912. type: 0 /* State */,
  94913. name: metadata.name,
  94914. style: styleAst,
  94915. options: astParams ? { params: astParams } : null
  94916. };
  94917. }
  94918. visitTransition(metadata, context) {
  94919. context.queryCount = 0;
  94920. context.depCount = 0;
  94921. const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);
  94922. const matchers = parseTransitionExpr(metadata.expr, context.errors);
  94923. return {
  94924. type: 1 /* Transition */,
  94925. matchers,
  94926. animation,
  94927. queryCount: context.queryCount,
  94928. depCount: context.depCount,
  94929. options: normalizeAnimationOptions(metadata.options)
  94930. };
  94931. }
  94932. visitSequence(metadata, context) {
  94933. return {
  94934. type: 2 /* Sequence */,
  94935. steps: metadata.steps.map(s => visitDslNode(this, s, context)),
  94936. options: normalizeAnimationOptions(metadata.options)
  94937. };
  94938. }
  94939. visitGroup(metadata, context) {
  94940. const currentTime = context.currentTime;
  94941. let furthestTime = 0;
  94942. const steps = metadata.steps.map(step => {
  94943. context.currentTime = currentTime;
  94944. const innerAst = visitDslNode(this, step, context);
  94945. furthestTime = Math.max(furthestTime, context.currentTime);
  94946. return innerAst;
  94947. });
  94948. context.currentTime = furthestTime;
  94949. return {
  94950. type: 3 /* Group */,
  94951. steps,
  94952. options: normalizeAnimationOptions(metadata.options)
  94953. };
  94954. }
  94955. visitAnimate(metadata, context) {
  94956. const timingAst = constructTimingAst(metadata.timings, context.errors);
  94957. context.currentAnimateTimings = timingAst;
  94958. let styleAst;
  94959. let styleMetadata = metadata.styles ? metadata.styles : Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])({});
  94960. if (styleMetadata.type == 5 /* Keyframes */) {
  94961. styleAst = this.visitKeyframes(styleMetadata, context);
  94962. }
  94963. else {
  94964. let styleMetadata = metadata.styles;
  94965. let isEmpty = false;
  94966. if (!styleMetadata) {
  94967. isEmpty = true;
  94968. const newStyleData = {};
  94969. if (timingAst.easing) {
  94970. newStyleData['easing'] = timingAst.easing;
  94971. }
  94972. styleMetadata = Object(_angular_animations__WEBPACK_IMPORTED_MODULE_0__["style"])(newStyleData);
  94973. }
  94974. context.currentTime += timingAst.duration + timingAst.delay;
  94975. const _styleAst = this.visitStyle(styleMetadata, context);
  94976. _styleAst.isEmptyStep = isEmpty;
  94977. styleAst = _styleAst;
  94978. }
  94979. context.currentAnimateTimings = null;
  94980. return {
  94981. type: 4 /* Animate */,
  94982. timings: timingAst,
  94983. style: styleAst,
  94984. options: null
  94985. };
  94986. }
  94987. visitStyle(metadata, context) {
  94988. const ast = this._makeStyleAst(metadata, context);
  94989. this._validateStyleAst(ast, context);
  94990. return ast;
  94991. }
  94992. _makeStyleAst(metadata, context) {
  94993. const styles = [];
  94994. if (Array.isArray(metadata.styles)) {
  94995. metadata.styles.forEach(styleTuple => {
  94996. if (typeof styleTuple == 'string') {
  94997. if (styleTuple == _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]) {
  94998. styles.push(styleTuple);
  94999. }
  95000. else {
  95001. context.errors.push(`The provided style string value ${styleTuple} is not allowed.`);
  95002. }
  95003. }
  95004. else {
  95005. styles.push(styleTuple);
  95006. }
  95007. });
  95008. }
  95009. else {
  95010. styles.push(metadata.styles);
  95011. }
  95012. let containsDynamicStyles = false;
  95013. let collectedEasing = null;
  95014. styles.forEach(styleData => {
  95015. if (isObject(styleData)) {
  95016. const styleMap = styleData;
  95017. const easing = styleMap['easing'];
  95018. if (easing) {
  95019. collectedEasing = easing;
  95020. delete styleMap['easing'];
  95021. }
  95022. if (!containsDynamicStyles) {
  95023. for (let prop in styleMap) {
  95024. const value = styleMap[prop];
  95025. if (value.toString().indexOf(SUBSTITUTION_EXPR_START) >= 0) {
  95026. containsDynamicStyles = true;
  95027. break;
  95028. }
  95029. }
  95030. }
  95031. }
  95032. });
  95033. return {
  95034. type: 6 /* Style */,
  95035. styles,
  95036. easing: collectedEasing,
  95037. offset: metadata.offset,
  95038. containsDynamicStyles,
  95039. options: null
  95040. };
  95041. }
  95042. _validateStyleAst(ast, context) {
  95043. const timings = context.currentAnimateTimings;
  95044. let endTime = context.currentTime;
  95045. let startTime = context.currentTime;
  95046. if (timings && startTime > 0) {
  95047. startTime -= timings.duration + timings.delay;
  95048. }
  95049. ast.styles.forEach(tuple => {
  95050. if (typeof tuple == 'string')
  95051. return;
  95052. Object.keys(tuple).forEach(prop => {
  95053. if (!this._driver.validateStyleProperty(prop)) {
  95054. context.errors.push(`The provided animation property "${prop}" is not a supported CSS property for animations`);
  95055. return;
  95056. }
  95057. const collectedStyles = context.collectedStyles[context.currentQuerySelector];
  95058. const collectedEntry = collectedStyles[prop];
  95059. let updateCollectedStyle = true;
  95060. if (collectedEntry) {
  95061. if (startTime != endTime && startTime >= collectedEntry.startTime &&
  95062. endTime <= collectedEntry.endTime) {
  95063. context.errors.push(`The CSS property "${prop}" that exists between the times of "${collectedEntry.startTime}ms" and "${collectedEntry
  95064. .endTime}ms" is also being animated in a parallel animation between the times of "${startTime}ms" and "${endTime}ms"`);
  95065. updateCollectedStyle = false;
  95066. }
  95067. // we always choose the smaller start time value since we
  95068. // want to have a record of the entire animation window where
  95069. // the style property is being animated in between
  95070. startTime = collectedEntry.startTime;
  95071. }
  95072. if (updateCollectedStyle) {
  95073. collectedStyles[prop] = { startTime, endTime };
  95074. }
  95075. if (context.options) {
  95076. validateStyleParams(tuple[prop], context.options, context.errors);
  95077. }
  95078. });
  95079. });
  95080. }
  95081. visitKeyframes(metadata, context) {
  95082. const ast = { type: 5 /* Keyframes */, styles: [], options: null };
  95083. if (!context.currentAnimateTimings) {
  95084. context.errors.push(`keyframes() must be placed inside of a call to animate()`);
  95085. return ast;
  95086. }
  95087. const MAX_KEYFRAME_OFFSET = 1;
  95088. let totalKeyframesWithOffsets = 0;
  95089. const offsets = [];
  95090. let offsetsOutOfOrder = false;
  95091. let keyframesOutOfRange = false;
  95092. let previousOffset = 0;
  95093. const keyframes = metadata.steps.map(styles => {
  95094. const style = this._makeStyleAst(styles, context);
  95095. let offsetVal = style.offset != null ? style.offset : consumeOffset(style.styles);
  95096. let offset = 0;
  95097. if (offsetVal != null) {
  95098. totalKeyframesWithOffsets++;
  95099. offset = style.offset = offsetVal;
  95100. }
  95101. keyframesOutOfRange = keyframesOutOfRange || offset < 0 || offset > 1;
  95102. offsetsOutOfOrder = offsetsOutOfOrder || offset < previousOffset;
  95103. previousOffset = offset;
  95104. offsets.push(offset);
  95105. return style;
  95106. });
  95107. if (keyframesOutOfRange) {
  95108. context.errors.push(`Please ensure that all keyframe offsets are between 0 and 1`);
  95109. }
  95110. if (offsetsOutOfOrder) {
  95111. context.errors.push(`Please ensure that all keyframe offsets are in order`);
  95112. }
  95113. const length = metadata.steps.length;
  95114. let generatedOffset = 0;
  95115. if (totalKeyframesWithOffsets > 0 && totalKeyframesWithOffsets < length) {
  95116. context.errors.push(`Not all style() steps within the declared keyframes() contain offsets`);
  95117. }
  95118. else if (totalKeyframesWithOffsets == 0) {
  95119. generatedOffset = MAX_KEYFRAME_OFFSET / (length - 1);
  95120. }
  95121. const limit = length - 1;
  95122. const currentTime = context.currentTime;
  95123. const currentAnimateTimings = context.currentAnimateTimings;
  95124. const animateDuration = currentAnimateTimings.duration;
  95125. keyframes.forEach((kf, i) => {
  95126. const offset = generatedOffset > 0 ? (i == limit ? 1 : (generatedOffset * i)) : offsets[i];
  95127. const durationUpToThisFrame = offset * animateDuration;
  95128. context.currentTime = currentTime + currentAnimateTimings.delay + durationUpToThisFrame;
  95129. currentAnimateTimings.duration = durationUpToThisFrame;
  95130. this._validateStyleAst(kf, context);
  95131. kf.offset = offset;
  95132. ast.styles.push(kf);
  95133. });
  95134. return ast;
  95135. }
  95136. visitReference(metadata, context) {
  95137. return {
  95138. type: 8 /* Reference */,
  95139. animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),
  95140. options: normalizeAnimationOptions(metadata.options)
  95141. };
  95142. }
  95143. visitAnimateChild(metadata, context) {
  95144. context.depCount++;
  95145. return {
  95146. type: 9 /* AnimateChild */,
  95147. options: normalizeAnimationOptions(metadata.options)
  95148. };
  95149. }
  95150. visitAnimateRef(metadata, context) {
  95151. return {
  95152. type: 10 /* AnimateRef */,
  95153. animation: this.visitReference(metadata.animation, context),
  95154. options: normalizeAnimationOptions(metadata.options)
  95155. };
  95156. }
  95157. visitQuery(metadata, context) {
  95158. const parentSelector = context.currentQuerySelector;
  95159. const options = (metadata.options || {});
  95160. context.queryCount++;
  95161. context.currentQuery = metadata;
  95162. const [selector, includeSelf] = normalizeSelector(metadata.selector);
  95163. context.currentQuerySelector =
  95164. parentSelector.length ? (parentSelector + ' ' + selector) : selector;
  95165. getOrSetAsInMap(context.collectedStyles, context.currentQuerySelector, {});
  95166. const animation = visitDslNode(this, normalizeAnimationEntry(metadata.animation), context);
  95167. context.currentQuery = null;
  95168. context.currentQuerySelector = parentSelector;
  95169. return {
  95170. type: 11 /* Query */,
  95171. selector,
  95172. limit: options.limit || 0,
  95173. optional: !!options.optional,
  95174. includeSelf,
  95175. animation,
  95176. originalSelector: metadata.selector,
  95177. options: normalizeAnimationOptions(metadata.options)
  95178. };
  95179. }
  95180. visitStagger(metadata, context) {
  95181. if (!context.currentQuery) {
  95182. context.errors.push(`stagger() can only be used inside of query()`);
  95183. }
  95184. const timings = metadata.timings === 'full' ?
  95185. { duration: 0, delay: 0, easing: 'full' } :
  95186. resolveTiming(metadata.timings, context.errors, true);
  95187. return {
  95188. type: 12 /* Stagger */,
  95189. animation: visitDslNode(this, normalizeAnimationEntry(metadata.animation), context),
  95190. timings,
  95191. options: null
  95192. };
  95193. }
  95194. }
  95195. function normalizeSelector(selector) {
  95196. const hasAmpersand = selector.split(/\s*,\s*/).find(token => token == SELF_TOKEN) ? true : false;
  95197. if (hasAmpersand) {
  95198. selector = selector.replace(SELF_TOKEN_REGEX, '');
  95199. }
  95200. // the :enter and :leave selectors are filled in at runtime during timeline building
  95201. selector = selector.replace(/@\*/g, NG_TRIGGER_SELECTOR)
  95202. .replace(/@\w+/g, match => NG_TRIGGER_SELECTOR + '-' + match.substr(1))
  95203. .replace(/:animating/g, NG_ANIMATING_SELECTOR);
  95204. return [selector, hasAmpersand];
  95205. }
  95206. function normalizeParams(obj) {
  95207. return obj ? copyObj(obj) : null;
  95208. }
  95209. class AnimationAstBuilderContext {
  95210. constructor(errors) {
  95211. this.errors = errors;
  95212. this.queryCount = 0;
  95213. this.depCount = 0;
  95214. this.currentTransition = null;
  95215. this.currentQuery = null;
  95216. this.currentQuerySelector = null;
  95217. this.currentAnimateTimings = null;
  95218. this.currentTime = 0;
  95219. this.collectedStyles = {};
  95220. this.options = null;
  95221. }
  95222. }
  95223. function consumeOffset(styles) {
  95224. if (typeof styles == 'string')
  95225. return null;
  95226. let offset = null;
  95227. if (Array.isArray(styles)) {
  95228. styles.forEach(styleTuple => {
  95229. if (isObject(styleTuple) && styleTuple.hasOwnProperty('offset')) {
  95230. const obj = styleTuple;
  95231. offset = parseFloat(obj['offset']);
  95232. delete obj['offset'];
  95233. }
  95234. });
  95235. }
  95236. else if (isObject(styles) && styles.hasOwnProperty('offset')) {
  95237. const obj = styles;
  95238. offset = parseFloat(obj['offset']);
  95239. delete obj['offset'];
  95240. }
  95241. return offset;
  95242. }
  95243. function isObject(value) {
  95244. return !Array.isArray(value) && typeof value == 'object';
  95245. }
  95246. function constructTimingAst(value, errors) {
  95247. let timings = null;
  95248. if (value.hasOwnProperty('duration')) {
  95249. timings = value;
  95250. }
  95251. else if (typeof value == 'number') {
  95252. const duration = resolveTiming(value, errors).duration;
  95253. return makeTimingAst(duration, 0, '');
  95254. }
  95255. const strValue = value;
  95256. const isDynamic = strValue.split(/\s+/).some(v => v.charAt(0) == '{' && v.charAt(1) == '{');
  95257. if (isDynamic) {
  95258. const ast = makeTimingAst(0, 0, '');
  95259. ast.dynamic = true;
  95260. ast.strValue = strValue;
  95261. return ast;
  95262. }
  95263. timings = timings || resolveTiming(strValue, errors);
  95264. return makeTimingAst(timings.duration, timings.delay, timings.easing);
  95265. }
  95266. function normalizeAnimationOptions(options) {
  95267. if (options) {
  95268. options = copyObj(options);
  95269. if (options['params']) {
  95270. options['params'] = normalizeParams(options['params']);
  95271. }
  95272. }
  95273. else {
  95274. options = {};
  95275. }
  95276. return options;
  95277. }
  95278. function makeTimingAst(duration, delay, easing) {
  95279. return { duration, delay, easing };
  95280. }
  95281. function createTimelineInstruction(element, keyframes, preStyleProps, postStyleProps, duration, delay, easing = null, subTimeline = false) {
  95282. return {
  95283. type: 1 /* TimelineAnimation */,
  95284. element,
  95285. keyframes,
  95286. preStyleProps,
  95287. postStyleProps,
  95288. duration,
  95289. delay,
  95290. totalTime: duration + delay,
  95291. easing,
  95292. subTimeline
  95293. };
  95294. }
  95295. class ElementInstructionMap {
  95296. constructor() {
  95297. this._map = new Map();
  95298. }
  95299. consume(element) {
  95300. let instructions = this._map.get(element);
  95301. if (instructions) {
  95302. this._map.delete(element);
  95303. }
  95304. else {
  95305. instructions = [];
  95306. }
  95307. return instructions;
  95308. }
  95309. append(element, instructions) {
  95310. let existingInstructions = this._map.get(element);
  95311. if (!existingInstructions) {
  95312. this._map.set(element, existingInstructions = []);
  95313. }
  95314. existingInstructions.push(...instructions);
  95315. }
  95316. has(element) {
  95317. return this._map.has(element);
  95318. }
  95319. clear() {
  95320. this._map.clear();
  95321. }
  95322. }
  95323. /**
  95324. * @license
  95325. * Copyright Google LLC All Rights Reserved.
  95326. *
  95327. * Use of this source code is governed by an MIT-style license that can be
  95328. * found in the LICENSE file at https://angular.io/license
  95329. */
  95330. const ONE_FRAME_IN_MILLISECONDS = 1;
  95331. const ENTER_TOKEN = ':enter';
  95332. const ENTER_TOKEN_REGEX = new RegExp(ENTER_TOKEN, 'g');
  95333. const LEAVE_TOKEN = ':leave';
  95334. const LEAVE_TOKEN_REGEX = new RegExp(LEAVE_TOKEN, 'g');
  95335. /*
  95336. * The code within this file aims to generate web-animations-compatible keyframes from Angular's
  95337. * animation DSL code.
  95338. *
  95339. * The code below will be converted from:
  95340. *
  95341. * ```
  95342. * sequence([
  95343. * style({ opacity: 0 }),
  95344. * animate(1000, style({ opacity: 0 }))
  95345. * ])
  95346. * ```
  95347. *
  95348. * To:
  95349. * ```
  95350. * keyframes = [{ opacity: 0, offset: 0 }, { opacity: 1, offset: 1 }]
  95351. * duration = 1000
  95352. * delay = 0
  95353. * easing = ''
  95354. * ```
  95355. *
  95356. * For this operation to cover the combination of animation verbs (style, animate, group, etc...) a
  95357. * combination of prototypical inheritance, AST traversal and merge-sort-like algorithms are used.
  95358. *
  95359. * [AST Traversal]
  95360. * Each of the animation verbs, when executed, will return an string-map object representing what
  95361. * type of action it is (style, animate, group, etc...) and the data associated with it. This means
  95362. * that when functional composition mix of these functions is evaluated (like in the example above)
  95363. * then it will end up producing a tree of objects representing the animation itself.
  95364. *
  95365. * When this animation object tree is processed by the visitor code below it will visit each of the
  95366. * verb statements within the visitor. And during each visit it will build the context of the
  95367. * animation keyframes by interacting with the `TimelineBuilder`.
  95368. *
  95369. * [TimelineBuilder]
  95370. * This class is responsible for tracking the styles and building a series of keyframe objects for a
  95371. * timeline between a start and end time. The builder starts off with an initial timeline and each
  95372. * time the AST comes across a `group()`, `keyframes()` or a combination of the two wihtin a
  95373. * `sequence()` then it will generate a sub timeline for each step as well as a new one after
  95374. * they are complete.
  95375. *
  95376. * As the AST is traversed, the timing state on each of the timelines will be incremented. If a sub
  95377. * timeline was created (based on one of the cases above) then the parent timeline will attempt to
  95378. * merge the styles used within the sub timelines into itself (only with group() this will happen).
  95379. * This happens with a merge operation (much like how the merge works in mergesort) and it will only
  95380. * copy the most recently used styles from the sub timelines into the parent timeline. This ensures
  95381. * that if the styles are used later on in another phase of the animation then they will be the most
  95382. * up-to-date values.
  95383. *
  95384. * [How Missing Styles Are Updated]
  95385. * Each timeline has a `backFill` property which is responsible for filling in new styles into
  95386. * already processed keyframes if a new style shows up later within the animation sequence.
  95387. *
  95388. * ```
  95389. * sequence([
  95390. * style({ width: 0 }),
  95391. * animate(1000, style({ width: 100 })),
  95392. * animate(1000, style({ width: 200 })),
  95393. * animate(1000, style({ width: 300 }))
  95394. * animate(1000, style({ width: 400, height: 400 })) // notice how `height` doesn't exist anywhere
  95395. * else
  95396. * ])
  95397. * ```
  95398. *
  95399. * What is happening here is that the `height` value is added later in the sequence, but is missing
  95400. * from all previous animation steps. Therefore when a keyframe is created it would also be missing
  95401. * from all previous keyframes up until where it is first used. For the timeline keyframe generation
  95402. * to properly fill in the style it will place the previous value (the value from the parent
  95403. * timeline) or a default value of `*` into the backFill object. Given that each of the keyframe
  95404. * styles are objects that prototypically inhert from the backFill object, this means that if a
  95405. * value is added into the backFill then it will automatically propagate any missing values to all
  95406. * keyframes. Therefore the missing `height` value will be properly filled into the already
  95407. * processed keyframes.
  95408. *
  95409. * When a sub-timeline is created it will have its own backFill property. This is done so that
  95410. * styles present within the sub-timeline do not accidentally seep into the previous/future timeline
  95411. * keyframes
  95412. *
  95413. * (For prototypically-inherited contents to be detected a `for(i in obj)` loop must be used.)
  95414. *
  95415. * [Validation]
  95416. * The code in this file is not responsible for validation. That functionality happens with within
  95417. * the `AnimationValidatorVisitor` code.
  95418. */
  95419. function buildAnimationTimelines(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles = {}, finalStyles = {}, options, subInstructions, errors = []) {
  95420. return new AnimationTimelineBuilderVisitor().buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors);
  95421. }
  95422. class AnimationTimelineBuilderVisitor {
  95423. buildKeyframes(driver, rootElement, ast, enterClassName, leaveClassName, startingStyles, finalStyles, options, subInstructions, errors = []) {
  95424. subInstructions = subInstructions || new ElementInstructionMap();
  95425. const context = new AnimationTimelineContext(driver, rootElement, subInstructions, enterClassName, leaveClassName, errors, []);
  95426. context.options = options;
  95427. context.currentTimeline.setStyles([startingStyles], null, context.errors, options);
  95428. visitDslNode(this, ast, context);
  95429. // this checks to see if an actual animation happened
  95430. const timelines = context.timelines.filter(timeline => timeline.containsAnimation());
  95431. if (timelines.length && Object.keys(finalStyles).length) {
  95432. const tl = timelines[timelines.length - 1];
  95433. if (!tl.allowOnlyTimelineStyles()) {
  95434. tl.setStyles([finalStyles], null, context.errors, options);
  95435. }
  95436. }
  95437. return timelines.length ? timelines.map(timeline => timeline.buildKeyframes()) :
  95438. [createTimelineInstruction(rootElement, [], [], [], 0, 0, '', false)];
  95439. }
  95440. visitTrigger(ast, context) {
  95441. // these values are not visited in this AST
  95442. }
  95443. visitState(ast, context) {
  95444. // these values are not visited in this AST
  95445. }
  95446. visitTransition(ast, context) {
  95447. // these values are not visited in this AST
  95448. }
  95449. visitAnimateChild(ast, context) {
  95450. const elementInstructions = context.subInstructions.consume(context.element);
  95451. if (elementInstructions) {
  95452. const innerContext = context.createSubContext(ast.options);
  95453. const startTime = context.currentTimeline.currentTime;
  95454. const endTime = this._visitSubInstructions(elementInstructions, innerContext, innerContext.options);
  95455. if (startTime != endTime) {
  95456. // we do this on the upper context because we created a sub context for
  95457. // the sub child animations
  95458. context.transformIntoNewTimeline(endTime);
  95459. }
  95460. }
  95461. context.previousNode = ast;
  95462. }
  95463. visitAnimateRef(ast, context) {
  95464. const innerContext = context.createSubContext(ast.options);
  95465. innerContext.transformIntoNewTimeline();
  95466. this.visitReference(ast.animation, innerContext);
  95467. context.transformIntoNewTimeline(innerContext.currentTimeline.currentTime);
  95468. context.previousNode = ast;
  95469. }
  95470. _visitSubInstructions(instructions, context, options) {
  95471. const startTime = context.currentTimeline.currentTime;
  95472. let furthestTime = startTime;
  95473. // this is a special-case for when a user wants to skip a sub
  95474. // animation from being fired entirely.
  95475. const duration = options.duration != null ? resolveTimingValue(options.duration) : null;
  95476. const delay = options.delay != null ? resolveTimingValue(options.delay) : null;
  95477. if (duration !== 0) {
  95478. instructions.forEach(instruction => {
  95479. const instructionTimings = context.appendInstructionToTimeline(instruction, duration, delay);
  95480. furthestTime =
  95481. Math.max(furthestTime, instructionTimings.duration + instructionTimings.delay);
  95482. });
  95483. }
  95484. return furthestTime;
  95485. }
  95486. visitReference(ast, context) {
  95487. context.updateOptions(ast.options, true);
  95488. visitDslNode(this, ast.animation, context);
  95489. context.previousNode = ast;
  95490. }
  95491. visitSequence(ast, context) {
  95492. const subContextCount = context.subContextCount;
  95493. let ctx = context;
  95494. const options = ast.options;
  95495. if (options && (options.params || options.delay)) {
  95496. ctx = context.createSubContext(options);
  95497. ctx.transformIntoNewTimeline();
  95498. if (options.delay != null) {
  95499. if (ctx.previousNode.type == 6 /* Style */) {
  95500. ctx.currentTimeline.snapshotCurrentStyles();
  95501. ctx.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
  95502. }
  95503. const delay = resolveTimingValue(options.delay);
  95504. ctx.delayNextStep(delay);
  95505. }
  95506. }
  95507. if (ast.steps.length) {
  95508. ast.steps.forEach(s => visitDslNode(this, s, ctx));
  95509. // this is here just incase the inner steps only contain or end with a style() call
  95510. ctx.currentTimeline.applyStylesToKeyframe();
  95511. // this means that some animation function within the sequence
  95512. // ended up creating a sub timeline (which means the current
  95513. // timeline cannot overlap with the contents of the sequence)
  95514. if (ctx.subContextCount > subContextCount) {
  95515. ctx.transformIntoNewTimeline();
  95516. }
  95517. }
  95518. context.previousNode = ast;
  95519. }
  95520. visitGroup(ast, context) {
  95521. const innerTimelines = [];
  95522. let furthestTime = context.currentTimeline.currentTime;
  95523. const delay = ast.options && ast.options.delay ? resolveTimingValue(ast.options.delay) : 0;
  95524. ast.steps.forEach(s => {
  95525. const innerContext = context.createSubContext(ast.options);
  95526. if (delay) {
  95527. innerContext.delayNextStep(delay);
  95528. }
  95529. visitDslNode(this, s, innerContext);
  95530. furthestTime = Math.max(furthestTime, innerContext.currentTimeline.currentTime);
  95531. innerTimelines.push(innerContext.currentTimeline);
  95532. });
  95533. // this operation is run after the AST loop because otherwise
  95534. // if the parent timeline's collected styles were updated then
  95535. // it would pass in invalid data into the new-to-be forked items
  95536. innerTimelines.forEach(timeline => context.currentTimeline.mergeTimelineCollectedStyles(timeline));
  95537. context.transformIntoNewTimeline(furthestTime);
  95538. context.previousNode = ast;
  95539. }
  95540. _visitTiming(ast, context) {
  95541. if (ast.dynamic) {
  95542. const strValue = ast.strValue;
  95543. const timingValue = context.params ? interpolateParams(strValue, context.params, context.errors) : strValue;
  95544. return resolveTiming(timingValue, context.errors);
  95545. }
  95546. else {
  95547. return { duration: ast.duration, delay: ast.delay, easing: ast.easing };
  95548. }
  95549. }
  95550. visitAnimate(ast, context) {
  95551. const timings = context.currentAnimateTimings = this._visitTiming(ast.timings, context);
  95552. const timeline = context.currentTimeline;
  95553. if (timings.delay) {
  95554. context.incrementTime(timings.delay);
  95555. timeline.snapshotCurrentStyles();
  95556. }
  95557. const style = ast.style;
  95558. if (style.type == 5 /* Keyframes */) {
  95559. this.visitKeyframes(style, context);
  95560. }
  95561. else {
  95562. context.incrementTime(timings.duration);
  95563. this.visitStyle(style, context);
  95564. timeline.applyStylesToKeyframe();
  95565. }
  95566. context.currentAnimateTimings = null;
  95567. context.previousNode = ast;
  95568. }
  95569. visitStyle(ast, context) {
  95570. const timeline = context.currentTimeline;
  95571. const timings = context.currentAnimateTimings;
  95572. // this is a special case for when a style() call
  95573. // directly follows an animate() call (but not inside of an animate() call)
  95574. if (!timings && timeline.getCurrentStyleProperties().length) {
  95575. timeline.forwardFrame();
  95576. }
  95577. const easing = (timings && timings.easing) || ast.easing;
  95578. if (ast.isEmptyStep) {
  95579. timeline.applyEmptyStep(easing);
  95580. }
  95581. else {
  95582. timeline.setStyles(ast.styles, easing, context.errors, context.options);
  95583. }
  95584. context.previousNode = ast;
  95585. }
  95586. visitKeyframes(ast, context) {
  95587. const currentAnimateTimings = context.currentAnimateTimings;
  95588. const startTime = (context.currentTimeline).duration;
  95589. const duration = currentAnimateTimings.duration;
  95590. const innerContext = context.createSubContext();
  95591. const innerTimeline = innerContext.currentTimeline;
  95592. innerTimeline.easing = currentAnimateTimings.easing;
  95593. ast.styles.forEach(step => {
  95594. const offset = step.offset || 0;
  95595. innerTimeline.forwardTime(offset * duration);
  95596. innerTimeline.setStyles(step.styles, step.easing, context.errors, context.options);
  95597. innerTimeline.applyStylesToKeyframe();
  95598. });
  95599. // this will ensure that the parent timeline gets all the styles from
  95600. // the child even if the new timeline below is not used
  95601. context.currentTimeline.mergeTimelineCollectedStyles(innerTimeline);
  95602. // we do this because the window between this timeline and the sub timeline
  95603. // should ensure that the styles within are exactly the same as they were before
  95604. context.transformIntoNewTimeline(startTime + duration);
  95605. context.previousNode = ast;
  95606. }
  95607. visitQuery(ast, context) {
  95608. // in the event that the first step before this is a style step we need
  95609. // to ensure the styles are applied before the children are animated
  95610. const startTime = context.currentTimeline.currentTime;
  95611. const options = (ast.options || {});
  95612. const delay = options.delay ? resolveTimingValue(options.delay) : 0;
  95613. if (delay &&
  95614. (context.previousNode.type === 6 /* Style */ ||
  95615. (startTime == 0 && context.currentTimeline.getCurrentStyleProperties().length))) {
  95616. context.currentTimeline.snapshotCurrentStyles();
  95617. context.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
  95618. }
  95619. let furthestTime = startTime;
  95620. const elms = context.invokeQuery(ast.selector, ast.originalSelector, ast.limit, ast.includeSelf, options.optional ? true : false, context.errors);
  95621. context.currentQueryTotal = elms.length;
  95622. let sameElementTimeline = null;
  95623. elms.forEach((element, i) => {
  95624. context.currentQueryIndex = i;
  95625. const innerContext = context.createSubContext(ast.options, element);
  95626. if (delay) {
  95627. innerContext.delayNextStep(delay);
  95628. }
  95629. if (element === context.element) {
  95630. sameElementTimeline = innerContext.currentTimeline;
  95631. }
  95632. visitDslNode(this, ast.animation, innerContext);
  95633. // this is here just incase the inner steps only contain or end
  95634. // with a style() call (which is here to signal that this is a preparatory
  95635. // call to style an element before it is animated again)
  95636. innerContext.currentTimeline.applyStylesToKeyframe();
  95637. const endTime = innerContext.currentTimeline.currentTime;
  95638. furthestTime = Math.max(furthestTime, endTime);
  95639. });
  95640. context.currentQueryIndex = 0;
  95641. context.currentQueryTotal = 0;
  95642. context.transformIntoNewTimeline(furthestTime);
  95643. if (sameElementTimeline) {
  95644. context.currentTimeline.mergeTimelineCollectedStyles(sameElementTimeline);
  95645. context.currentTimeline.snapshotCurrentStyles();
  95646. }
  95647. context.previousNode = ast;
  95648. }
  95649. visitStagger(ast, context) {
  95650. const parentContext = context.parentContext;
  95651. const tl = context.currentTimeline;
  95652. const timings = ast.timings;
  95653. const duration = Math.abs(timings.duration);
  95654. const maxTime = duration * (context.currentQueryTotal - 1);
  95655. let delay = duration * context.currentQueryIndex;
  95656. let staggerTransformer = timings.duration < 0 ? 'reverse' : timings.easing;
  95657. switch (staggerTransformer) {
  95658. case 'reverse':
  95659. delay = maxTime - delay;
  95660. break;
  95661. case 'full':
  95662. delay = parentContext.currentStaggerTime;
  95663. break;
  95664. }
  95665. const timeline = context.currentTimeline;
  95666. if (delay) {
  95667. timeline.delayNextStep(delay);
  95668. }
  95669. const startingTime = timeline.currentTime;
  95670. visitDslNode(this, ast.animation, context);
  95671. context.previousNode = ast;
  95672. // time = duration + delay
  95673. // the reason why this computation is so complex is because
  95674. // the inner timeline may either have a delay value or a stretched
  95675. // keyframe depending on if a subtimeline is not used or is used.
  95676. parentContext.currentStaggerTime =
  95677. (tl.currentTime - startingTime) + (tl.startTime - parentContext.currentTimeline.startTime);
  95678. }
  95679. }
  95680. const DEFAULT_NOOP_PREVIOUS_NODE = {};
  95681. class AnimationTimelineContext {
  95682. constructor(_driver, element, subInstructions, _enterClassName, _leaveClassName, errors, timelines, initialTimeline) {
  95683. this._driver = _driver;
  95684. this.element = element;
  95685. this.subInstructions = subInstructions;
  95686. this._enterClassName = _enterClassName;
  95687. this._leaveClassName = _leaveClassName;
  95688. this.errors = errors;
  95689. this.timelines = timelines;
  95690. this.parentContext = null;
  95691. this.currentAnimateTimings = null;
  95692. this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
  95693. this.subContextCount = 0;
  95694. this.options = {};
  95695. this.currentQueryIndex = 0;
  95696. this.currentQueryTotal = 0;
  95697. this.currentStaggerTime = 0;
  95698. this.currentTimeline = initialTimeline || new TimelineBuilder(this._driver, element, 0);
  95699. timelines.push(this.currentTimeline);
  95700. }
  95701. get params() {
  95702. return this.options.params;
  95703. }
  95704. updateOptions(options, skipIfExists) {
  95705. if (!options)
  95706. return;
  95707. const newOptions = options;
  95708. let optionsToUpdate = this.options;
  95709. // NOTE: this will get patched up when other animation methods support duration overrides
  95710. if (newOptions.duration != null) {
  95711. optionsToUpdate.duration = resolveTimingValue(newOptions.duration);
  95712. }
  95713. if (newOptions.delay != null) {
  95714. optionsToUpdate.delay = resolveTimingValue(newOptions.delay);
  95715. }
  95716. const newParams = newOptions.params;
  95717. if (newParams) {
  95718. let paramsToUpdate = optionsToUpdate.params;
  95719. if (!paramsToUpdate) {
  95720. paramsToUpdate = this.options.params = {};
  95721. }
  95722. Object.keys(newParams).forEach(name => {
  95723. if (!skipIfExists || !paramsToUpdate.hasOwnProperty(name)) {
  95724. paramsToUpdate[name] = interpolateParams(newParams[name], paramsToUpdate, this.errors);
  95725. }
  95726. });
  95727. }
  95728. }
  95729. _copyOptions() {
  95730. const options = {};
  95731. if (this.options) {
  95732. const oldParams = this.options.params;
  95733. if (oldParams) {
  95734. const params = options['params'] = {};
  95735. Object.keys(oldParams).forEach(name => {
  95736. params[name] = oldParams[name];
  95737. });
  95738. }
  95739. }
  95740. return options;
  95741. }
  95742. createSubContext(options = null, element, newTime) {
  95743. const target = element || this.element;
  95744. const context = new AnimationTimelineContext(this._driver, target, this.subInstructions, this._enterClassName, this._leaveClassName, this.errors, this.timelines, this.currentTimeline.fork(target, newTime || 0));
  95745. context.previousNode = this.previousNode;
  95746. context.currentAnimateTimings = this.currentAnimateTimings;
  95747. context.options = this._copyOptions();
  95748. context.updateOptions(options);
  95749. context.currentQueryIndex = this.currentQueryIndex;
  95750. context.currentQueryTotal = this.currentQueryTotal;
  95751. context.parentContext = this;
  95752. this.subContextCount++;
  95753. return context;
  95754. }
  95755. transformIntoNewTimeline(newTime) {
  95756. this.previousNode = DEFAULT_NOOP_PREVIOUS_NODE;
  95757. this.currentTimeline = this.currentTimeline.fork(this.element, newTime);
  95758. this.timelines.push(this.currentTimeline);
  95759. return this.currentTimeline;
  95760. }
  95761. appendInstructionToTimeline(instruction, duration, delay) {
  95762. const updatedTimings = {
  95763. duration: duration != null ? duration : instruction.duration,
  95764. delay: this.currentTimeline.currentTime + (delay != null ? delay : 0) + instruction.delay,
  95765. easing: ''
  95766. };
  95767. const builder = new SubTimelineBuilder(this._driver, instruction.element, instruction.keyframes, instruction.preStyleProps, instruction.postStyleProps, updatedTimings, instruction.stretchStartingKeyframe);
  95768. this.timelines.push(builder);
  95769. return updatedTimings;
  95770. }
  95771. incrementTime(time) {
  95772. this.currentTimeline.forwardTime(this.currentTimeline.duration + time);
  95773. }
  95774. delayNextStep(delay) {
  95775. // negative delays are not yet supported
  95776. if (delay > 0) {
  95777. this.currentTimeline.delayNextStep(delay);
  95778. }
  95779. }
  95780. invokeQuery(selector, originalSelector, limit, includeSelf, optional, errors) {
  95781. let results = [];
  95782. if (includeSelf) {
  95783. results.push(this.element);
  95784. }
  95785. if (selector.length > 0) { // if :self is only used then the selector is empty
  95786. selector = selector.replace(ENTER_TOKEN_REGEX, '.' + this._enterClassName);
  95787. selector = selector.replace(LEAVE_TOKEN_REGEX, '.' + this._leaveClassName);
  95788. const multi = limit != 1;
  95789. let elements = this._driver.query(this.element, selector, multi);
  95790. if (limit !== 0) {
  95791. elements = limit < 0 ? elements.slice(elements.length + limit, elements.length) :
  95792. elements.slice(0, limit);
  95793. }
  95794. results.push(...elements);
  95795. }
  95796. if (!optional && results.length == 0) {
  95797. errors.push(`\`query("${originalSelector}")\` returned zero elements. (Use \`query("${originalSelector}", { optional: true })\` if you wish to allow this.)`);
  95798. }
  95799. return results;
  95800. }
  95801. }
  95802. class TimelineBuilder {
  95803. constructor(_driver, element, startTime, _elementTimelineStylesLookup) {
  95804. this._driver = _driver;
  95805. this.element = element;
  95806. this.startTime = startTime;
  95807. this._elementTimelineStylesLookup = _elementTimelineStylesLookup;
  95808. this.duration = 0;
  95809. this._previousKeyframe = {};
  95810. this._currentKeyframe = {};
  95811. this._keyframes = new Map();
  95812. this._styleSummary = {};
  95813. this._pendingStyles = {};
  95814. this._backFill = {};
  95815. this._currentEmptyStepKeyframe = null;
  95816. if (!this._elementTimelineStylesLookup) {
  95817. this._elementTimelineStylesLookup = new Map();
  95818. }
  95819. this._localTimelineStyles = Object.create(this._backFill, {});
  95820. this._globalTimelineStyles = this._elementTimelineStylesLookup.get(element);
  95821. if (!this._globalTimelineStyles) {
  95822. this._globalTimelineStyles = this._localTimelineStyles;
  95823. this._elementTimelineStylesLookup.set(element, this._localTimelineStyles);
  95824. }
  95825. this._loadKeyframe();
  95826. }
  95827. containsAnimation() {
  95828. switch (this._keyframes.size) {
  95829. case 0:
  95830. return false;
  95831. case 1:
  95832. return this.getCurrentStyleProperties().length > 0;
  95833. default:
  95834. return true;
  95835. }
  95836. }
  95837. getCurrentStyleProperties() {
  95838. return Object.keys(this._currentKeyframe);
  95839. }
  95840. get currentTime() {
  95841. return this.startTime + this.duration;
  95842. }
  95843. delayNextStep(delay) {
  95844. // in the event that a style() step is placed right before a stagger()
  95845. // and that style() step is the very first style() value in the animation
  95846. // then we need to make a copy of the keyframe [0, copy, 1] so that the delay
  95847. // properly applies the style() values to work with the stagger...
  95848. const hasPreStyleStep = this._keyframes.size == 1 && Object.keys(this._pendingStyles).length;
  95849. if (this.duration || hasPreStyleStep) {
  95850. this.forwardTime(this.currentTime + delay);
  95851. if (hasPreStyleStep) {
  95852. this.snapshotCurrentStyles();
  95853. }
  95854. }
  95855. else {
  95856. this.startTime += delay;
  95857. }
  95858. }
  95859. fork(element, currentTime) {
  95860. this.applyStylesToKeyframe();
  95861. return new TimelineBuilder(this._driver, element, currentTime || this.currentTime, this._elementTimelineStylesLookup);
  95862. }
  95863. _loadKeyframe() {
  95864. if (this._currentKeyframe) {
  95865. this._previousKeyframe = this._currentKeyframe;
  95866. }
  95867. this._currentKeyframe = this._keyframes.get(this.duration);
  95868. if (!this._currentKeyframe) {
  95869. this._currentKeyframe = Object.create(this._backFill, {});
  95870. this._keyframes.set(this.duration, this._currentKeyframe);
  95871. }
  95872. }
  95873. forwardFrame() {
  95874. this.duration += ONE_FRAME_IN_MILLISECONDS;
  95875. this._loadKeyframe();
  95876. }
  95877. forwardTime(time) {
  95878. this.applyStylesToKeyframe();
  95879. this.duration = time;
  95880. this._loadKeyframe();
  95881. }
  95882. _updateStyle(prop, value) {
  95883. this._localTimelineStyles[prop] = value;
  95884. this._globalTimelineStyles[prop] = value;
  95885. this._styleSummary[prop] = { time: this.currentTime, value };
  95886. }
  95887. allowOnlyTimelineStyles() {
  95888. return this._currentEmptyStepKeyframe !== this._currentKeyframe;
  95889. }
  95890. applyEmptyStep(easing) {
  95891. if (easing) {
  95892. this._previousKeyframe['easing'] = easing;
  95893. }
  95894. // special case for animate(duration):
  95895. // all missing styles are filled with a `*` value then
  95896. // if any destination styles are filled in later on the same
  95897. // keyframe then they will override the overridden styles
  95898. // We use `_globalTimelineStyles` here because there may be
  95899. // styles in previous keyframes that are not present in this timeline
  95900. Object.keys(this._globalTimelineStyles).forEach(prop => {
  95901. this._backFill[prop] = this._globalTimelineStyles[prop] || _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"];
  95902. this._currentKeyframe[prop] = _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"];
  95903. });
  95904. this._currentEmptyStepKeyframe = this._currentKeyframe;
  95905. }
  95906. setStyles(input, easing, errors, options) {
  95907. if (easing) {
  95908. this._previousKeyframe['easing'] = easing;
  95909. }
  95910. const params = (options && options.params) || {};
  95911. const styles = flattenStyles(input, this._globalTimelineStyles);
  95912. Object.keys(styles).forEach(prop => {
  95913. const val = interpolateParams(styles[prop], params, errors);
  95914. this._pendingStyles[prop] = val;
  95915. if (!this._localTimelineStyles.hasOwnProperty(prop)) {
  95916. this._backFill[prop] = this._globalTimelineStyles.hasOwnProperty(prop) ?
  95917. this._globalTimelineStyles[prop] :
  95918. _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"];
  95919. }
  95920. this._updateStyle(prop, val);
  95921. });
  95922. }
  95923. applyStylesToKeyframe() {
  95924. const styles = this._pendingStyles;
  95925. const props = Object.keys(styles);
  95926. if (props.length == 0)
  95927. return;
  95928. this._pendingStyles = {};
  95929. props.forEach(prop => {
  95930. const val = styles[prop];
  95931. this._currentKeyframe[prop] = val;
  95932. });
  95933. Object.keys(this._localTimelineStyles).forEach(prop => {
  95934. if (!this._currentKeyframe.hasOwnProperty(prop)) {
  95935. this._currentKeyframe[prop] = this._localTimelineStyles[prop];
  95936. }
  95937. });
  95938. }
  95939. snapshotCurrentStyles() {
  95940. Object.keys(this._localTimelineStyles).forEach(prop => {
  95941. const val = this._localTimelineStyles[prop];
  95942. this._pendingStyles[prop] = val;
  95943. this._updateStyle(prop, val);
  95944. });
  95945. }
  95946. getFinalKeyframe() {
  95947. return this._keyframes.get(this.duration);
  95948. }
  95949. get properties() {
  95950. const properties = [];
  95951. for (let prop in this._currentKeyframe) {
  95952. properties.push(prop);
  95953. }
  95954. return properties;
  95955. }
  95956. mergeTimelineCollectedStyles(timeline) {
  95957. Object.keys(timeline._styleSummary).forEach(prop => {
  95958. const details0 = this._styleSummary[prop];
  95959. const details1 = timeline._styleSummary[prop];
  95960. if (!details0 || details1.time > details0.time) {
  95961. this._updateStyle(prop, details1.value);
  95962. }
  95963. });
  95964. }
  95965. buildKeyframes() {
  95966. this.applyStylesToKeyframe();
  95967. const preStyleProps = new Set();
  95968. const postStyleProps = new Set();
  95969. const isEmpty = this._keyframes.size === 1 && this.duration === 0;
  95970. let finalKeyframes = [];
  95971. this._keyframes.forEach((keyframe, time) => {
  95972. const finalKeyframe = copyStyles(keyframe, true);
  95973. Object.keys(finalKeyframe).forEach(prop => {
  95974. const value = finalKeyframe[prop];
  95975. if (value == _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵPRE_STYLE"]) {
  95976. preStyleProps.add(prop);
  95977. }
  95978. else if (value == _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]) {
  95979. postStyleProps.add(prop);
  95980. }
  95981. });
  95982. if (!isEmpty) {
  95983. finalKeyframe['offset'] = time / this.duration;
  95984. }
  95985. finalKeyframes.push(finalKeyframe);
  95986. });
  95987. const preProps = preStyleProps.size ? iteratorToArray(preStyleProps.values()) : [];
  95988. const postProps = postStyleProps.size ? iteratorToArray(postStyleProps.values()) : [];
  95989. // special case for a 0-second animation (which is designed just to place styles onscreen)
  95990. if (isEmpty) {
  95991. const kf0 = finalKeyframes[0];
  95992. const kf1 = copyObj(kf0);
  95993. kf0['offset'] = 0;
  95994. kf1['offset'] = 1;
  95995. finalKeyframes = [kf0, kf1];
  95996. }
  95997. return createTimelineInstruction(this.element, finalKeyframes, preProps, postProps, this.duration, this.startTime, this.easing, false);
  95998. }
  95999. }
  96000. class SubTimelineBuilder extends TimelineBuilder {
  96001. constructor(driver, element, keyframes, preStyleProps, postStyleProps, timings, _stretchStartingKeyframe = false) {
  96002. super(driver, element, timings.delay);
  96003. this.element = element;
  96004. this.keyframes = keyframes;
  96005. this.preStyleProps = preStyleProps;
  96006. this.postStyleProps = postStyleProps;
  96007. this._stretchStartingKeyframe = _stretchStartingKeyframe;
  96008. this.timings = { duration: timings.duration, delay: timings.delay, easing: timings.easing };
  96009. }
  96010. containsAnimation() {
  96011. return this.keyframes.length > 1;
  96012. }
  96013. buildKeyframes() {
  96014. let keyframes = this.keyframes;
  96015. let { delay, duration, easing } = this.timings;
  96016. if (this._stretchStartingKeyframe && delay) {
  96017. const newKeyframes = [];
  96018. const totalTime = duration + delay;
  96019. const startingGap = delay / totalTime;
  96020. // the original starting keyframe now starts once the delay is done
  96021. const newFirstKeyframe = copyStyles(keyframes[0], false);
  96022. newFirstKeyframe['offset'] = 0;
  96023. newKeyframes.push(newFirstKeyframe);
  96024. const oldFirstKeyframe = copyStyles(keyframes[0], false);
  96025. oldFirstKeyframe['offset'] = roundOffset(startingGap);
  96026. newKeyframes.push(oldFirstKeyframe);
  96027. /*
  96028. When the keyframe is stretched then it means that the delay before the animation
  96029. starts is gone. Instead the first keyframe is placed at the start of the animation
  96030. and it is then copied to where it starts when the original delay is over. This basically
  96031. means nothing animates during that delay, but the styles are still renderered. For this
  96032. to work the original offset values that exist in the original keyframes must be "warped"
  96033. so that they can take the new keyframe + delay into account.
  96034. delay=1000, duration=1000, keyframes = 0 .5 1
  96035. turns into
  96036. delay=0, duration=2000, keyframes = 0 .33 .66 1
  96037. */
  96038. // offsets between 1 ... n -1 are all warped by the keyframe stretch
  96039. const limit = keyframes.length - 1;
  96040. for (let i = 1; i <= limit; i++) {
  96041. let kf = copyStyles(keyframes[i], false);
  96042. const oldOffset = kf['offset'];
  96043. const timeAtKeyframe = delay + oldOffset * duration;
  96044. kf['offset'] = roundOffset(timeAtKeyframe / totalTime);
  96045. newKeyframes.push(kf);
  96046. }
  96047. // the new starting keyframe should be added at the start
  96048. duration = totalTime;
  96049. delay = 0;
  96050. easing = '';
  96051. keyframes = newKeyframes;
  96052. }
  96053. return createTimelineInstruction(this.element, keyframes, this.preStyleProps, this.postStyleProps, duration, delay, easing, true);
  96054. }
  96055. }
  96056. function roundOffset(offset, decimalPoints = 3) {
  96057. const mult = Math.pow(10, decimalPoints - 1);
  96058. return Math.round(offset * mult) / mult;
  96059. }
  96060. function flattenStyles(input, allStyles) {
  96061. const styles = {};
  96062. let allProperties;
  96063. input.forEach(token => {
  96064. if (token === '*') {
  96065. allProperties = allProperties || Object.keys(allStyles);
  96066. allProperties.forEach(prop => {
  96067. styles[prop] = _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"];
  96068. });
  96069. }
  96070. else {
  96071. copyStyles(token, false, styles);
  96072. }
  96073. });
  96074. return styles;
  96075. }
  96076. class Animation {
  96077. constructor(_driver, input) {
  96078. this._driver = _driver;
  96079. const errors = [];
  96080. const ast = buildAnimationAst(_driver, input, errors);
  96081. if (errors.length) {
  96082. const errorMessage = `animation validation failed:\n${errors.join('\n')}`;
  96083. throw new Error(errorMessage);
  96084. }
  96085. this._animationAst = ast;
  96086. }
  96087. buildTimelines(element, startingStyles, destinationStyles, options, subInstructions) {
  96088. const start = Array.isArray(startingStyles) ? normalizeStyles(startingStyles) :
  96089. startingStyles;
  96090. const dest = Array.isArray(destinationStyles) ? normalizeStyles(destinationStyles) :
  96091. destinationStyles;
  96092. const errors = [];
  96093. subInstructions = subInstructions || new ElementInstructionMap();
  96094. const result = buildAnimationTimelines(this._driver, element, this._animationAst, ENTER_CLASSNAME, LEAVE_CLASSNAME, start, dest, options, subInstructions, errors);
  96095. if (errors.length) {
  96096. const errorMessage = `animation building failed:\n${errors.join('\n')}`;
  96097. throw new Error(errorMessage);
  96098. }
  96099. return result;
  96100. }
  96101. }
  96102. /**
  96103. * @license
  96104. * Copyright Google LLC All Rights Reserved.
  96105. *
  96106. * Use of this source code is governed by an MIT-style license that can be
  96107. * found in the LICENSE file at https://angular.io/license
  96108. */
  96109. /**
  96110. * @publicApi
  96111. */
  96112. class AnimationStyleNormalizer {
  96113. }
  96114. /**
  96115. * @publicApi
  96116. */
  96117. class NoopAnimationStyleNormalizer {
  96118. normalizePropertyName(propertyName, errors) {
  96119. return propertyName;
  96120. }
  96121. normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {
  96122. return value;
  96123. }
  96124. }
  96125. /**
  96126. * @license
  96127. * Copyright Google LLC All Rights Reserved.
  96128. *
  96129. * Use of this source code is governed by an MIT-style license that can be
  96130. * found in the LICENSE file at https://angular.io/license
  96131. */
  96132. class WebAnimationsStyleNormalizer extends AnimationStyleNormalizer {
  96133. normalizePropertyName(propertyName, errors) {
  96134. return dashCaseToCamelCase(propertyName);
  96135. }
  96136. normalizeStyleValue(userProvidedProperty, normalizedProperty, value, errors) {
  96137. let unit = '';
  96138. const strVal = value.toString().trim();
  96139. if (DIMENSIONAL_PROP_MAP[normalizedProperty] && value !== 0 && value !== '0') {
  96140. if (typeof value === 'number') {
  96141. unit = 'px';
  96142. }
  96143. else {
  96144. const valAndSuffixMatch = value.match(/^[+-]?[\d\.]+([a-z]*)$/);
  96145. if (valAndSuffixMatch && valAndSuffixMatch[1].length == 0) {
  96146. errors.push(`Please provide a CSS unit value for ${userProvidedProperty}:${value}`);
  96147. }
  96148. }
  96149. }
  96150. return strVal + unit;
  96151. }
  96152. }
  96153. const ɵ0$1 = () => makeBooleanMap('width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective'
  96154. .split(','));
  96155. const DIMENSIONAL_PROP_MAP = (ɵ0$1)();
  96156. function makeBooleanMap(keys) {
  96157. const map = {};
  96158. keys.forEach(key => map[key] = true);
  96159. return map;
  96160. }
  96161. function createTransitionInstruction(element, triggerName, fromState, toState, isRemovalTransition, fromStyles, toStyles, timelines, queriedElements, preStyleProps, postStyleProps, totalTime, errors) {
  96162. return {
  96163. type: 0 /* TransitionAnimation */,
  96164. element,
  96165. triggerName,
  96166. isRemovalTransition,
  96167. fromState,
  96168. fromStyles,
  96169. toState,
  96170. toStyles,
  96171. timelines,
  96172. queriedElements,
  96173. preStyleProps,
  96174. postStyleProps,
  96175. totalTime,
  96176. errors
  96177. };
  96178. }
  96179. const EMPTY_OBJECT = {};
  96180. class AnimationTransitionFactory {
  96181. constructor(_triggerName, ast, _stateStyles) {
  96182. this._triggerName = _triggerName;
  96183. this.ast = ast;
  96184. this._stateStyles = _stateStyles;
  96185. }
  96186. match(currentState, nextState, element, params) {
  96187. return oneOrMoreTransitionsMatch(this.ast.matchers, currentState, nextState, element, params);
  96188. }
  96189. buildStyles(stateName, params, errors) {
  96190. const backupStateStyler = this._stateStyles['*'];
  96191. const stateStyler = this._stateStyles[stateName];
  96192. const backupStyles = backupStateStyler ? backupStateStyler.buildStyles(params, errors) : {};
  96193. return stateStyler ? stateStyler.buildStyles(params, errors) : backupStyles;
  96194. }
  96195. build(driver, element, currentState, nextState, enterClassName, leaveClassName, currentOptions, nextOptions, subInstructions, skipAstBuild) {
  96196. const errors = [];
  96197. const transitionAnimationParams = this.ast.options && this.ast.options.params || EMPTY_OBJECT;
  96198. const currentAnimationParams = currentOptions && currentOptions.params || EMPTY_OBJECT;
  96199. const currentStateStyles = this.buildStyles(currentState, currentAnimationParams, errors);
  96200. const nextAnimationParams = nextOptions && nextOptions.params || EMPTY_OBJECT;
  96201. const nextStateStyles = this.buildStyles(nextState, nextAnimationParams, errors);
  96202. const queriedElements = new Set();
  96203. const preStyleMap = new Map();
  96204. const postStyleMap = new Map();
  96205. const isRemoval = nextState === 'void';
  96206. const animationOptions = { params: Object.assign(Object.assign({}, transitionAnimationParams), nextAnimationParams) };
  96207. const timelines = skipAstBuild ?
  96208. [] :
  96209. buildAnimationTimelines(driver, element, this.ast.animation, enterClassName, leaveClassName, currentStateStyles, nextStateStyles, animationOptions, subInstructions, errors);
  96210. let totalTime = 0;
  96211. timelines.forEach(tl => {
  96212. totalTime = Math.max(tl.duration + tl.delay, totalTime);
  96213. });
  96214. if (errors.length) {
  96215. return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, [], [], preStyleMap, postStyleMap, totalTime, errors);
  96216. }
  96217. timelines.forEach(tl => {
  96218. const elm = tl.element;
  96219. const preProps = getOrSetAsInMap(preStyleMap, elm, {});
  96220. tl.preStyleProps.forEach(prop => preProps[prop] = true);
  96221. const postProps = getOrSetAsInMap(postStyleMap, elm, {});
  96222. tl.postStyleProps.forEach(prop => postProps[prop] = true);
  96223. if (elm !== element) {
  96224. queriedElements.add(elm);
  96225. }
  96226. });
  96227. const queriedElementsList = iteratorToArray(queriedElements.values());
  96228. return createTransitionInstruction(element, this._triggerName, currentState, nextState, isRemoval, currentStateStyles, nextStateStyles, timelines, queriedElementsList, preStyleMap, postStyleMap, totalTime);
  96229. }
  96230. }
  96231. function oneOrMoreTransitionsMatch(matchFns, currentState, nextState, element, params) {
  96232. return matchFns.some(fn => fn(currentState, nextState, element, params));
  96233. }
  96234. class AnimationStateStyles {
  96235. constructor(styles, defaultParams) {
  96236. this.styles = styles;
  96237. this.defaultParams = defaultParams;
  96238. }
  96239. buildStyles(params, errors) {
  96240. const finalStyles = {};
  96241. const combinedParams = copyObj(this.defaultParams);
  96242. Object.keys(params).forEach(key => {
  96243. const value = params[key];
  96244. if (value != null) {
  96245. combinedParams[key] = value;
  96246. }
  96247. });
  96248. this.styles.styles.forEach(value => {
  96249. if (typeof value !== 'string') {
  96250. const styleObj = value;
  96251. Object.keys(styleObj).forEach(prop => {
  96252. let val = styleObj[prop];
  96253. if (val.length > 1) {
  96254. val = interpolateParams(val, combinedParams, errors);
  96255. }
  96256. finalStyles[prop] = val;
  96257. });
  96258. }
  96259. });
  96260. return finalStyles;
  96261. }
  96262. }
  96263. /**
  96264. * @publicApi
  96265. */
  96266. function buildTrigger(name, ast) {
  96267. return new AnimationTrigger(name, ast);
  96268. }
  96269. /**
  96270. * @publicApi
  96271. */
  96272. class AnimationTrigger {
  96273. constructor(name, ast) {
  96274. this.name = name;
  96275. this.ast = ast;
  96276. this.transitionFactories = [];
  96277. this.states = {};
  96278. ast.states.forEach(ast => {
  96279. const defaultParams = (ast.options && ast.options.params) || {};
  96280. this.states[ast.name] = new AnimationStateStyles(ast.style, defaultParams);
  96281. });
  96282. balanceProperties(this.states, 'true', '1');
  96283. balanceProperties(this.states, 'false', '0');
  96284. ast.transitions.forEach(ast => {
  96285. this.transitionFactories.push(new AnimationTransitionFactory(name, ast, this.states));
  96286. });
  96287. this.fallbackTransition = createFallbackTransition(name, this.states);
  96288. }
  96289. get containsQueries() {
  96290. return this.ast.queryCount > 0;
  96291. }
  96292. matchTransition(currentState, nextState, element, params) {
  96293. const entry = this.transitionFactories.find(f => f.match(currentState, nextState, element, params));
  96294. return entry || null;
  96295. }
  96296. matchStyles(currentState, params, errors) {
  96297. return this.fallbackTransition.buildStyles(currentState, params, errors);
  96298. }
  96299. }
  96300. function createFallbackTransition(triggerName, states) {
  96301. const matchers = [(fromState, toState) => true];
  96302. const animation = { type: 2 /* Sequence */, steps: [], options: null };
  96303. const transition = {
  96304. type: 1 /* Transition */,
  96305. animation,
  96306. matchers,
  96307. options: null,
  96308. queryCount: 0,
  96309. depCount: 0
  96310. };
  96311. return new AnimationTransitionFactory(triggerName, transition, states);
  96312. }
  96313. function balanceProperties(obj, key1, key2) {
  96314. if (obj.hasOwnProperty(key1)) {
  96315. if (!obj.hasOwnProperty(key2)) {
  96316. obj[key2] = obj[key1];
  96317. }
  96318. }
  96319. else if (obj.hasOwnProperty(key2)) {
  96320. obj[key1] = obj[key2];
  96321. }
  96322. }
  96323. /**
  96324. * @license
  96325. * Copyright Google LLC All Rights Reserved.
  96326. *
  96327. * Use of this source code is governed by an MIT-style license that can be
  96328. * found in the LICENSE file at https://angular.io/license
  96329. */
  96330. const EMPTY_INSTRUCTION_MAP = new ElementInstructionMap();
  96331. class TimelineAnimationEngine {
  96332. constructor(bodyNode, _driver, _normalizer) {
  96333. this.bodyNode = bodyNode;
  96334. this._driver = _driver;
  96335. this._normalizer = _normalizer;
  96336. this._animations = {};
  96337. this._playersById = {};
  96338. this.players = [];
  96339. }
  96340. register(id, metadata) {
  96341. const errors = [];
  96342. const ast = buildAnimationAst(this._driver, metadata, errors);
  96343. if (errors.length) {
  96344. throw new Error(`Unable to build the animation due to the following errors: ${errors.join('\n')}`);
  96345. }
  96346. else {
  96347. this._animations[id] = ast;
  96348. }
  96349. }
  96350. _buildPlayer(i, preStyles, postStyles) {
  96351. const element = i.element;
  96352. const keyframes = normalizeKeyframes(this._driver, this._normalizer, element, i.keyframes, preStyles, postStyles);
  96353. return this._driver.animate(element, keyframes, i.duration, i.delay, i.easing, [], true);
  96354. }
  96355. create(id, element, options = {}) {
  96356. const errors = [];
  96357. const ast = this._animations[id];
  96358. let instructions;
  96359. const autoStylesMap = new Map();
  96360. if (ast) {
  96361. instructions = buildAnimationTimelines(this._driver, element, ast, ENTER_CLASSNAME, LEAVE_CLASSNAME, {}, {}, options, EMPTY_INSTRUCTION_MAP, errors);
  96362. instructions.forEach(inst => {
  96363. const styles = getOrSetAsInMap(autoStylesMap, inst.element, {});
  96364. inst.postStyleProps.forEach(prop => styles[prop] = null);
  96365. });
  96366. }
  96367. else {
  96368. errors.push('The requested animation doesn\'t exist or has already been destroyed');
  96369. instructions = [];
  96370. }
  96371. if (errors.length) {
  96372. throw new Error(`Unable to create the animation due to the following errors: ${errors.join('\n')}`);
  96373. }
  96374. autoStylesMap.forEach((styles, element) => {
  96375. Object.keys(styles).forEach(prop => {
  96376. styles[prop] = this._driver.computeStyle(element, prop, _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]);
  96377. });
  96378. });
  96379. const players = instructions.map(i => {
  96380. const styles = autoStylesMap.get(i.element);
  96381. return this._buildPlayer(i, {}, styles);
  96382. });
  96383. const player = optimizeGroupPlayer(players);
  96384. this._playersById[id] = player;
  96385. player.onDestroy(() => this.destroy(id));
  96386. this.players.push(player);
  96387. return player;
  96388. }
  96389. destroy(id) {
  96390. const player = this._getPlayer(id);
  96391. player.destroy();
  96392. delete this._playersById[id];
  96393. const index = this.players.indexOf(player);
  96394. if (index >= 0) {
  96395. this.players.splice(index, 1);
  96396. }
  96397. }
  96398. _getPlayer(id) {
  96399. const player = this._playersById[id];
  96400. if (!player) {
  96401. throw new Error(`Unable to find the timeline player referenced by ${id}`);
  96402. }
  96403. return player;
  96404. }
  96405. listen(id, element, eventName, callback) {
  96406. // triggerName, fromState, toState are all ignored for timeline animations
  96407. const baseEvent = makeAnimationEvent(element, '', '', '');
  96408. listenOnPlayer(this._getPlayer(id), eventName, baseEvent, callback);
  96409. return () => { };
  96410. }
  96411. command(id, element, command, args) {
  96412. if (command == 'register') {
  96413. this.register(id, args[0]);
  96414. return;
  96415. }
  96416. if (command == 'create') {
  96417. const options = (args[0] || {});
  96418. this.create(id, element, options);
  96419. return;
  96420. }
  96421. const player = this._getPlayer(id);
  96422. switch (command) {
  96423. case 'play':
  96424. player.play();
  96425. break;
  96426. case 'pause':
  96427. player.pause();
  96428. break;
  96429. case 'reset':
  96430. player.reset();
  96431. break;
  96432. case 'restart':
  96433. player.restart();
  96434. break;
  96435. case 'finish':
  96436. player.finish();
  96437. break;
  96438. case 'init':
  96439. player.init();
  96440. break;
  96441. case 'setPosition':
  96442. player.setPosition(parseFloat(args[0]));
  96443. break;
  96444. case 'destroy':
  96445. this.destroy(id);
  96446. break;
  96447. }
  96448. }
  96449. }
  96450. /**
  96451. * @license
  96452. * Copyright Google LLC All Rights Reserved.
  96453. *
  96454. * Use of this source code is governed by an MIT-style license that can be
  96455. * found in the LICENSE file at https://angular.io/license
  96456. */
  96457. const QUEUED_CLASSNAME = 'ng-animate-queued';
  96458. const QUEUED_SELECTOR = '.ng-animate-queued';
  96459. const DISABLED_CLASSNAME = 'ng-animate-disabled';
  96460. const DISABLED_SELECTOR = '.ng-animate-disabled';
  96461. const STAR_CLASSNAME = 'ng-star-inserted';
  96462. const STAR_SELECTOR = '.ng-star-inserted';
  96463. const EMPTY_PLAYER_ARRAY = [];
  96464. const NULL_REMOVAL_STATE = {
  96465. namespaceId: '',
  96466. setForRemoval: false,
  96467. setForMove: false,
  96468. hasAnimation: false,
  96469. removedBeforeQueried: false
  96470. };
  96471. const NULL_REMOVED_QUERIED_STATE = {
  96472. namespaceId: '',
  96473. setForMove: false,
  96474. setForRemoval: false,
  96475. hasAnimation: false,
  96476. removedBeforeQueried: true
  96477. };
  96478. const REMOVAL_FLAG = '__ng_removed';
  96479. class StateValue {
  96480. constructor(input, namespaceId = '') {
  96481. this.namespaceId = namespaceId;
  96482. const isObj = input && input.hasOwnProperty('value');
  96483. const value = isObj ? input['value'] : input;
  96484. this.value = normalizeTriggerValue(value);
  96485. if (isObj) {
  96486. const options = copyObj(input);
  96487. delete options['value'];
  96488. this.options = options;
  96489. }
  96490. else {
  96491. this.options = {};
  96492. }
  96493. if (!this.options.params) {
  96494. this.options.params = {};
  96495. }
  96496. }
  96497. get params() {
  96498. return this.options.params;
  96499. }
  96500. absorbOptions(options) {
  96501. const newParams = options.params;
  96502. if (newParams) {
  96503. const oldParams = this.options.params;
  96504. Object.keys(newParams).forEach(prop => {
  96505. if (oldParams[prop] == null) {
  96506. oldParams[prop] = newParams[prop];
  96507. }
  96508. });
  96509. }
  96510. }
  96511. }
  96512. const VOID_VALUE = 'void';
  96513. const DEFAULT_STATE_VALUE = new StateValue(VOID_VALUE);
  96514. class AnimationTransitionNamespace {
  96515. constructor(id, hostElement, _engine) {
  96516. this.id = id;
  96517. this.hostElement = hostElement;
  96518. this._engine = _engine;
  96519. this.players = [];
  96520. this._triggers = {};
  96521. this._queue = [];
  96522. this._elementListeners = new Map();
  96523. this._hostClassName = 'ng-tns-' + id;
  96524. addClass(hostElement, this._hostClassName);
  96525. }
  96526. listen(element, name, phase, callback) {
  96527. if (!this._triggers.hasOwnProperty(name)) {
  96528. throw new Error(`Unable to listen on the animation trigger event "${phase}" because the animation trigger "${name}" doesn\'t exist!`);
  96529. }
  96530. if (phase == null || phase.length == 0) {
  96531. throw new Error(`Unable to listen on the animation trigger "${name}" because the provided event is undefined!`);
  96532. }
  96533. if (!isTriggerEventValid(phase)) {
  96534. throw new Error(`The provided animation trigger event "${phase}" for the animation trigger "${name}" is not supported!`);
  96535. }
  96536. const listeners = getOrSetAsInMap(this._elementListeners, element, []);
  96537. const data = { name, phase, callback };
  96538. listeners.push(data);
  96539. const triggersWithStates = getOrSetAsInMap(this._engine.statesByElement, element, {});
  96540. if (!triggersWithStates.hasOwnProperty(name)) {
  96541. addClass(element, NG_TRIGGER_CLASSNAME);
  96542. addClass(element, NG_TRIGGER_CLASSNAME + '-' + name);
  96543. triggersWithStates[name] = DEFAULT_STATE_VALUE;
  96544. }
  96545. return () => {
  96546. // the event listener is removed AFTER the flush has occurred such
  96547. // that leave animations callbacks can fire (otherwise if the node
  96548. // is removed in between then the listeners would be deregistered)
  96549. this._engine.afterFlush(() => {
  96550. const index = listeners.indexOf(data);
  96551. if (index >= 0) {
  96552. listeners.splice(index, 1);
  96553. }
  96554. if (!this._triggers[name]) {
  96555. delete triggersWithStates[name];
  96556. }
  96557. });
  96558. };
  96559. }
  96560. register(name, ast) {
  96561. if (this._triggers[name]) {
  96562. // throw
  96563. return false;
  96564. }
  96565. else {
  96566. this._triggers[name] = ast;
  96567. return true;
  96568. }
  96569. }
  96570. _getTrigger(name) {
  96571. const trigger = this._triggers[name];
  96572. if (!trigger) {
  96573. throw new Error(`The provided animation trigger "${name}" has not been registered!`);
  96574. }
  96575. return trigger;
  96576. }
  96577. trigger(element, triggerName, value, defaultToFallback = true) {
  96578. const trigger = this._getTrigger(triggerName);
  96579. const player = new TransitionAnimationPlayer(this.id, triggerName, element);
  96580. let triggersWithStates = this._engine.statesByElement.get(element);
  96581. if (!triggersWithStates) {
  96582. addClass(element, NG_TRIGGER_CLASSNAME);
  96583. addClass(element, NG_TRIGGER_CLASSNAME + '-' + triggerName);
  96584. this._engine.statesByElement.set(element, triggersWithStates = {});
  96585. }
  96586. let fromState = triggersWithStates[triggerName];
  96587. const toState = new StateValue(value, this.id);
  96588. const isObj = value && value.hasOwnProperty('value');
  96589. if (!isObj && fromState) {
  96590. toState.absorbOptions(fromState.options);
  96591. }
  96592. triggersWithStates[triggerName] = toState;
  96593. if (!fromState) {
  96594. fromState = DEFAULT_STATE_VALUE;
  96595. }
  96596. const isRemoval = toState.value === VOID_VALUE;
  96597. // normally this isn't reached by here, however, if an object expression
  96598. // is passed in then it may be a new object each time. Comparing the value
  96599. // is important since that will stay the same despite there being a new object.
  96600. // The removal arc here is special cased because the same element is triggered
  96601. // twice in the event that it contains animations on the outer/inner portions
  96602. // of the host container
  96603. if (!isRemoval && fromState.value === toState.value) {
  96604. // this means that despite the value not changing, some inner params
  96605. // have changed which means that the animation final styles need to be applied
  96606. if (!objEquals(fromState.params, toState.params)) {
  96607. const errors = [];
  96608. const fromStyles = trigger.matchStyles(fromState.value, fromState.params, errors);
  96609. const toStyles = trigger.matchStyles(toState.value, toState.params, errors);
  96610. if (errors.length) {
  96611. this._engine.reportError(errors);
  96612. }
  96613. else {
  96614. this._engine.afterFlush(() => {
  96615. eraseStyles(element, fromStyles);
  96616. setStyles(element, toStyles);
  96617. });
  96618. }
  96619. }
  96620. return;
  96621. }
  96622. const playersOnElement = getOrSetAsInMap(this._engine.playersByElement, element, []);
  96623. playersOnElement.forEach(player => {
  96624. // only remove the player if it is queued on the EXACT same trigger/namespace
  96625. // we only also deal with queued players here because if the animation has
  96626. // started then we want to keep the player alive until the flush happens
  96627. // (which is where the previousPlayers are passed into the new palyer)
  96628. if (player.namespaceId == this.id && player.triggerName == triggerName && player.queued) {
  96629. player.destroy();
  96630. }
  96631. });
  96632. let transition = trigger.matchTransition(fromState.value, toState.value, element, toState.params);
  96633. let isFallbackTransition = false;
  96634. if (!transition) {
  96635. if (!defaultToFallback)
  96636. return;
  96637. transition = trigger.fallbackTransition;
  96638. isFallbackTransition = true;
  96639. }
  96640. this._engine.totalQueuedPlayers++;
  96641. this._queue.push({ element, triggerName, transition, fromState, toState, player, isFallbackTransition });
  96642. if (!isFallbackTransition) {
  96643. addClass(element, QUEUED_CLASSNAME);
  96644. player.onStart(() => {
  96645. removeClass(element, QUEUED_CLASSNAME);
  96646. });
  96647. }
  96648. player.onDone(() => {
  96649. let index = this.players.indexOf(player);
  96650. if (index >= 0) {
  96651. this.players.splice(index, 1);
  96652. }
  96653. const players = this._engine.playersByElement.get(element);
  96654. if (players) {
  96655. let index = players.indexOf(player);
  96656. if (index >= 0) {
  96657. players.splice(index, 1);
  96658. }
  96659. }
  96660. });
  96661. this.players.push(player);
  96662. playersOnElement.push(player);
  96663. return player;
  96664. }
  96665. deregister(name) {
  96666. delete this._triggers[name];
  96667. this._engine.statesByElement.forEach((stateMap, element) => {
  96668. delete stateMap[name];
  96669. });
  96670. this._elementListeners.forEach((listeners, element) => {
  96671. this._elementListeners.set(element, listeners.filter(entry => {
  96672. return entry.name != name;
  96673. }));
  96674. });
  96675. }
  96676. clearElementCache(element) {
  96677. this._engine.statesByElement.delete(element);
  96678. this._elementListeners.delete(element);
  96679. const elementPlayers = this._engine.playersByElement.get(element);
  96680. if (elementPlayers) {
  96681. elementPlayers.forEach(player => player.destroy());
  96682. this._engine.playersByElement.delete(element);
  96683. }
  96684. }
  96685. _signalRemovalForInnerTriggers(rootElement, context) {
  96686. const elements = this._engine.driver.query(rootElement, NG_TRIGGER_SELECTOR, true);
  96687. // emulate a leave animation for all inner nodes within this node.
  96688. // If there are no animations found for any of the nodes then clear the cache
  96689. // for the element.
  96690. elements.forEach(elm => {
  96691. // this means that an inner remove() operation has already kicked off
  96692. // the animation on this element...
  96693. if (elm[REMOVAL_FLAG])
  96694. return;
  96695. const namespaces = this._engine.fetchNamespacesByElement(elm);
  96696. if (namespaces.size) {
  96697. namespaces.forEach(ns => ns.triggerLeaveAnimation(elm, context, false, true));
  96698. }
  96699. else {
  96700. this.clearElementCache(elm);
  96701. }
  96702. });
  96703. // If the child elements were removed along with the parent, their animations might not
  96704. // have completed. Clear all the elements from the cache so we don't end up with a memory leak.
  96705. this._engine.afterFlushAnimationsDone(() => elements.forEach(elm => this.clearElementCache(elm)));
  96706. }
  96707. triggerLeaveAnimation(element, context, destroyAfterComplete, defaultToFallback) {
  96708. const triggerStates = this._engine.statesByElement.get(element);
  96709. if (triggerStates) {
  96710. const players = [];
  96711. Object.keys(triggerStates).forEach(triggerName => {
  96712. // this check is here in the event that an element is removed
  96713. // twice (both on the host level and the component level)
  96714. if (this._triggers[triggerName]) {
  96715. const player = this.trigger(element, triggerName, VOID_VALUE, defaultToFallback);
  96716. if (player) {
  96717. players.push(player);
  96718. }
  96719. }
  96720. });
  96721. if (players.length) {
  96722. this._engine.markElementAsRemoved(this.id, element, true, context);
  96723. if (destroyAfterComplete) {
  96724. optimizeGroupPlayer(players).onDone(() => this._engine.processLeaveNode(element));
  96725. }
  96726. return true;
  96727. }
  96728. }
  96729. return false;
  96730. }
  96731. prepareLeaveAnimationListeners(element) {
  96732. const listeners = this._elementListeners.get(element);
  96733. if (listeners) {
  96734. const visitedTriggers = new Set();
  96735. listeners.forEach(listener => {
  96736. const triggerName = listener.name;
  96737. if (visitedTriggers.has(triggerName))
  96738. return;
  96739. visitedTriggers.add(triggerName);
  96740. const trigger = this._triggers[triggerName];
  96741. const transition = trigger.fallbackTransition;
  96742. const elementStates = this._engine.statesByElement.get(element);
  96743. const fromState = elementStates[triggerName] || DEFAULT_STATE_VALUE;
  96744. const toState = new StateValue(VOID_VALUE);
  96745. const player = new TransitionAnimationPlayer(this.id, triggerName, element);
  96746. this._engine.totalQueuedPlayers++;
  96747. this._queue.push({
  96748. element,
  96749. triggerName,
  96750. transition,
  96751. fromState,
  96752. toState,
  96753. player,
  96754. isFallbackTransition: true
  96755. });
  96756. });
  96757. }
  96758. }
  96759. removeNode(element, context) {
  96760. const engine = this._engine;
  96761. if (element.childElementCount) {
  96762. this._signalRemovalForInnerTriggers(element, context);
  96763. }
  96764. // this means that a * => VOID animation was detected and kicked off
  96765. if (this.triggerLeaveAnimation(element, context, true))
  96766. return;
  96767. // find the player that is animating and make sure that the
  96768. // removal is delayed until that player has completed
  96769. let containsPotentialParentTransition = false;
  96770. if (engine.totalAnimations) {
  96771. const currentPlayers = engine.players.length ? engine.playersByQueriedElement.get(element) : [];
  96772. // when this `if statement` does not continue forward it means that
  96773. // a previous animation query has selected the current element and
  96774. // is animating it. In this situation want to continue forwards and
  96775. // allow the element to be queued up for animation later.
  96776. if (currentPlayers && currentPlayers.length) {
  96777. containsPotentialParentTransition = true;
  96778. }
  96779. else {
  96780. let parent = element;
  96781. while (parent = parent.parentNode) {
  96782. const triggers = engine.statesByElement.get(parent);
  96783. if (triggers) {
  96784. containsPotentialParentTransition = true;
  96785. break;
  96786. }
  96787. }
  96788. }
  96789. }
  96790. // at this stage we know that the element will either get removed
  96791. // during flush or will be picked up by a parent query. Either way
  96792. // we need to fire the listeners for this element when it DOES get
  96793. // removed (once the query parent animation is done or after flush)
  96794. this.prepareLeaveAnimationListeners(element);
  96795. // whether or not a parent has an animation we need to delay the deferral of the leave
  96796. // operation until we have more information (which we do after flush() has been called)
  96797. if (containsPotentialParentTransition) {
  96798. engine.markElementAsRemoved(this.id, element, false, context);
  96799. }
  96800. else {
  96801. const removalFlag = element[REMOVAL_FLAG];
  96802. if (!removalFlag || removalFlag === NULL_REMOVAL_STATE) {
  96803. // we do this after the flush has occurred such
  96804. // that the callbacks can be fired
  96805. engine.afterFlush(() => this.clearElementCache(element));
  96806. engine.destroyInnerAnimations(element);
  96807. engine._onRemovalComplete(element, context);
  96808. }
  96809. }
  96810. }
  96811. insertNode(element, parent) {
  96812. addClass(element, this._hostClassName);
  96813. }
  96814. drainQueuedTransitions(microtaskId) {
  96815. const instructions = [];
  96816. this._queue.forEach(entry => {
  96817. const player = entry.player;
  96818. if (player.destroyed)
  96819. return;
  96820. const element = entry.element;
  96821. const listeners = this._elementListeners.get(element);
  96822. if (listeners) {
  96823. listeners.forEach((listener) => {
  96824. if (listener.name == entry.triggerName) {
  96825. const baseEvent = makeAnimationEvent(element, entry.triggerName, entry.fromState.value, entry.toState.value);
  96826. baseEvent['_data'] = microtaskId;
  96827. listenOnPlayer(entry.player, listener.phase, baseEvent, listener.callback);
  96828. }
  96829. });
  96830. }
  96831. if (player.markedForDestroy) {
  96832. this._engine.afterFlush(() => {
  96833. // now we can destroy the element properly since the event listeners have
  96834. // been bound to the player
  96835. player.destroy();
  96836. });
  96837. }
  96838. else {
  96839. instructions.push(entry);
  96840. }
  96841. });
  96842. this._queue = [];
  96843. return instructions.sort((a, b) => {
  96844. // if depCount == 0 them move to front
  96845. // otherwise if a contains b then move back
  96846. const d0 = a.transition.ast.depCount;
  96847. const d1 = b.transition.ast.depCount;
  96848. if (d0 == 0 || d1 == 0) {
  96849. return d0 - d1;
  96850. }
  96851. return this._engine.driver.containsElement(a.element, b.element) ? 1 : -1;
  96852. });
  96853. }
  96854. destroy(context) {
  96855. this.players.forEach(p => p.destroy());
  96856. this._signalRemovalForInnerTriggers(this.hostElement, context);
  96857. }
  96858. elementContainsData(element) {
  96859. let containsData = false;
  96860. if (this._elementListeners.has(element))
  96861. containsData = true;
  96862. containsData =
  96863. (this._queue.find(entry => entry.element === element) ? true : false) || containsData;
  96864. return containsData;
  96865. }
  96866. }
  96867. class TransitionAnimationEngine {
  96868. constructor(bodyNode, driver, _normalizer) {
  96869. this.bodyNode = bodyNode;
  96870. this.driver = driver;
  96871. this._normalizer = _normalizer;
  96872. this.players = [];
  96873. this.newHostElements = new Map();
  96874. this.playersByElement = new Map();
  96875. this.playersByQueriedElement = new Map();
  96876. this.statesByElement = new Map();
  96877. this.disabledNodes = new Set();
  96878. this.totalAnimations = 0;
  96879. this.totalQueuedPlayers = 0;
  96880. this._namespaceLookup = {};
  96881. this._namespaceList = [];
  96882. this._flushFns = [];
  96883. this._whenQuietFns = [];
  96884. this.namespacesByHostElement = new Map();
  96885. this.collectedEnterElements = [];
  96886. this.collectedLeaveElements = [];
  96887. // this method is designed to be overridden by the code that uses this engine
  96888. this.onRemovalComplete = (element, context) => { };
  96889. }
  96890. /** @internal */
  96891. _onRemovalComplete(element, context) {
  96892. this.onRemovalComplete(element, context);
  96893. }
  96894. get queuedPlayers() {
  96895. const players = [];
  96896. this._namespaceList.forEach(ns => {
  96897. ns.players.forEach(player => {
  96898. if (player.queued) {
  96899. players.push(player);
  96900. }
  96901. });
  96902. });
  96903. return players;
  96904. }
  96905. createNamespace(namespaceId, hostElement) {
  96906. const ns = new AnimationTransitionNamespace(namespaceId, hostElement, this);
  96907. if (hostElement.parentNode) {
  96908. this._balanceNamespaceList(ns, hostElement);
  96909. }
  96910. else {
  96911. // defer this later until flush during when the host element has
  96912. // been inserted so that we know exactly where to place it in
  96913. // the namespace list
  96914. this.newHostElements.set(hostElement, ns);
  96915. // given that this host element is apart of the animation code, it
  96916. // may or may not be inserted by a parent node that is an of an
  96917. // animation renderer type. If this happens then we can still have
  96918. // access to this item when we query for :enter nodes. If the parent
  96919. // is a renderer then the set data-structure will normalize the entry
  96920. this.collectEnterElement(hostElement);
  96921. }
  96922. return this._namespaceLookup[namespaceId] = ns;
  96923. }
  96924. _balanceNamespaceList(ns, hostElement) {
  96925. const limit = this._namespaceList.length - 1;
  96926. if (limit >= 0) {
  96927. let found = false;
  96928. for (let i = limit; i >= 0; i--) {
  96929. const nextNamespace = this._namespaceList[i];
  96930. if (this.driver.containsElement(nextNamespace.hostElement, hostElement)) {
  96931. this._namespaceList.splice(i + 1, 0, ns);
  96932. found = true;
  96933. break;
  96934. }
  96935. }
  96936. if (!found) {
  96937. this._namespaceList.splice(0, 0, ns);
  96938. }
  96939. }
  96940. else {
  96941. this._namespaceList.push(ns);
  96942. }
  96943. this.namespacesByHostElement.set(hostElement, ns);
  96944. return ns;
  96945. }
  96946. register(namespaceId, hostElement) {
  96947. let ns = this._namespaceLookup[namespaceId];
  96948. if (!ns) {
  96949. ns = this.createNamespace(namespaceId, hostElement);
  96950. }
  96951. return ns;
  96952. }
  96953. registerTrigger(namespaceId, name, trigger) {
  96954. let ns = this._namespaceLookup[namespaceId];
  96955. if (ns && ns.register(name, trigger)) {
  96956. this.totalAnimations++;
  96957. }
  96958. }
  96959. destroy(namespaceId, context) {
  96960. if (!namespaceId)
  96961. return;
  96962. const ns = this._fetchNamespace(namespaceId);
  96963. this.afterFlush(() => {
  96964. this.namespacesByHostElement.delete(ns.hostElement);
  96965. delete this._namespaceLookup[namespaceId];
  96966. const index = this._namespaceList.indexOf(ns);
  96967. if (index >= 0) {
  96968. this._namespaceList.splice(index, 1);
  96969. }
  96970. });
  96971. this.afterFlushAnimationsDone(() => ns.destroy(context));
  96972. }
  96973. _fetchNamespace(id) {
  96974. return this._namespaceLookup[id];
  96975. }
  96976. fetchNamespacesByElement(element) {
  96977. // normally there should only be one namespace per element, however
  96978. // if @triggers are placed on both the component element and then
  96979. // its host element (within the component code) then there will be
  96980. // two namespaces returned. We use a set here to simply the dedupe
  96981. // of namespaces incase there are multiple triggers both the elm and host
  96982. const namespaces = new Set();
  96983. const elementStates = this.statesByElement.get(element);
  96984. if (elementStates) {
  96985. const keys = Object.keys(elementStates);
  96986. for (let i = 0; i < keys.length; i++) {
  96987. const nsId = elementStates[keys[i]].namespaceId;
  96988. if (nsId) {
  96989. const ns = this._fetchNamespace(nsId);
  96990. if (ns) {
  96991. namespaces.add(ns);
  96992. }
  96993. }
  96994. }
  96995. }
  96996. return namespaces;
  96997. }
  96998. trigger(namespaceId, element, name, value) {
  96999. if (isElementNode(element)) {
  97000. const ns = this._fetchNamespace(namespaceId);
  97001. if (ns) {
  97002. ns.trigger(element, name, value);
  97003. return true;
  97004. }
  97005. }
  97006. return false;
  97007. }
  97008. insertNode(namespaceId, element, parent, insertBefore) {
  97009. if (!isElementNode(element))
  97010. return;
  97011. // special case for when an element is removed and reinserted (move operation)
  97012. // when this occurs we do not want to use the element for deletion later
  97013. const details = element[REMOVAL_FLAG];
  97014. if (details && details.setForRemoval) {
  97015. details.setForRemoval = false;
  97016. details.setForMove = true;
  97017. const index = this.collectedLeaveElements.indexOf(element);
  97018. if (index >= 0) {
  97019. this.collectedLeaveElements.splice(index, 1);
  97020. }
  97021. }
  97022. // in the event that the namespaceId is blank then the caller
  97023. // code does not contain any animation code in it, but it is
  97024. // just being called so that the node is marked as being inserted
  97025. if (namespaceId) {
  97026. const ns = this._fetchNamespace(namespaceId);
  97027. // This if-statement is a workaround for router issue #21947.
  97028. // The router sometimes hits a race condition where while a route
  97029. // is being instantiated a new navigation arrives, triggering leave
  97030. // animation of DOM that has not been fully initialized, until this
  97031. // is resolved, we need to handle the scenario when DOM is not in a
  97032. // consistent state during the animation.
  97033. if (ns) {
  97034. ns.insertNode(element, parent);
  97035. }
  97036. }
  97037. // only *directives and host elements are inserted before
  97038. if (insertBefore) {
  97039. this.collectEnterElement(element);
  97040. }
  97041. }
  97042. collectEnterElement(element) {
  97043. this.collectedEnterElements.push(element);
  97044. }
  97045. markElementAsDisabled(element, value) {
  97046. if (value) {
  97047. if (!this.disabledNodes.has(element)) {
  97048. this.disabledNodes.add(element);
  97049. addClass(element, DISABLED_CLASSNAME);
  97050. }
  97051. }
  97052. else if (this.disabledNodes.has(element)) {
  97053. this.disabledNodes.delete(element);
  97054. removeClass(element, DISABLED_CLASSNAME);
  97055. }
  97056. }
  97057. removeNode(namespaceId, element, isHostElement, context) {
  97058. if (isElementNode(element)) {
  97059. const ns = namespaceId ? this._fetchNamespace(namespaceId) : null;
  97060. if (ns) {
  97061. ns.removeNode(element, context);
  97062. }
  97063. else {
  97064. this.markElementAsRemoved(namespaceId, element, false, context);
  97065. }
  97066. if (isHostElement) {
  97067. const hostNS = this.namespacesByHostElement.get(element);
  97068. if (hostNS && hostNS.id !== namespaceId) {
  97069. hostNS.removeNode(element, context);
  97070. }
  97071. }
  97072. }
  97073. else {
  97074. this._onRemovalComplete(element, context);
  97075. }
  97076. }
  97077. markElementAsRemoved(namespaceId, element, hasAnimation, context) {
  97078. this.collectedLeaveElements.push(element);
  97079. element[REMOVAL_FLAG] =
  97080. { namespaceId, setForRemoval: context, hasAnimation, removedBeforeQueried: false };
  97081. }
  97082. listen(namespaceId, element, name, phase, callback) {
  97083. if (isElementNode(element)) {
  97084. return this._fetchNamespace(namespaceId).listen(element, name, phase, callback);
  97085. }
  97086. return () => { };
  97087. }
  97088. _buildInstruction(entry, subTimelines, enterClassName, leaveClassName, skipBuildAst) {
  97089. return entry.transition.build(this.driver, entry.element, entry.fromState.value, entry.toState.value, enterClassName, leaveClassName, entry.fromState.options, entry.toState.options, subTimelines, skipBuildAst);
  97090. }
  97091. destroyInnerAnimations(containerElement) {
  97092. let elements = this.driver.query(containerElement, NG_TRIGGER_SELECTOR, true);
  97093. elements.forEach(element => this.destroyActiveAnimationsForElement(element));
  97094. if (this.playersByQueriedElement.size == 0)
  97095. return;
  97096. elements = this.driver.query(containerElement, NG_ANIMATING_SELECTOR, true);
  97097. elements.forEach(element => this.finishActiveQueriedAnimationOnElement(element));
  97098. }
  97099. destroyActiveAnimationsForElement(element) {
  97100. const players = this.playersByElement.get(element);
  97101. if (players) {
  97102. players.forEach(player => {
  97103. // special case for when an element is set for destruction, but hasn't started.
  97104. // in this situation we want to delay the destruction until the flush occurs
  97105. // so that any event listeners attached to the player are triggered.
  97106. if (player.queued) {
  97107. player.markedForDestroy = true;
  97108. }
  97109. else {
  97110. player.destroy();
  97111. }
  97112. });
  97113. }
  97114. }
  97115. finishActiveQueriedAnimationOnElement(element) {
  97116. const players = this.playersByQueriedElement.get(element);
  97117. if (players) {
  97118. players.forEach(player => player.finish());
  97119. }
  97120. }
  97121. whenRenderingDone() {
  97122. return new Promise(resolve => {
  97123. if (this.players.length) {
  97124. return optimizeGroupPlayer(this.players).onDone(() => resolve());
  97125. }
  97126. else {
  97127. resolve();
  97128. }
  97129. });
  97130. }
  97131. processLeaveNode(element) {
  97132. const details = element[REMOVAL_FLAG];
  97133. if (details && details.setForRemoval) {
  97134. // this will prevent it from removing it twice
  97135. element[REMOVAL_FLAG] = NULL_REMOVAL_STATE;
  97136. if (details.namespaceId) {
  97137. this.destroyInnerAnimations(element);
  97138. const ns = this._fetchNamespace(details.namespaceId);
  97139. if (ns) {
  97140. ns.clearElementCache(element);
  97141. }
  97142. }
  97143. this._onRemovalComplete(element, details.setForRemoval);
  97144. }
  97145. if (this.driver.matchesElement(element, DISABLED_SELECTOR)) {
  97146. this.markElementAsDisabled(element, false);
  97147. }
  97148. this.driver.query(element, DISABLED_SELECTOR, true).forEach(node => {
  97149. this.markElementAsDisabled(node, false);
  97150. });
  97151. }
  97152. flush(microtaskId = -1) {
  97153. let players = [];
  97154. if (this.newHostElements.size) {
  97155. this.newHostElements.forEach((ns, element) => this._balanceNamespaceList(ns, element));
  97156. this.newHostElements.clear();
  97157. }
  97158. if (this.totalAnimations && this.collectedEnterElements.length) {
  97159. for (let i = 0; i < this.collectedEnterElements.length; i++) {
  97160. const elm = this.collectedEnterElements[i];
  97161. addClass(elm, STAR_CLASSNAME);
  97162. }
  97163. }
  97164. if (this._namespaceList.length &&
  97165. (this.totalQueuedPlayers || this.collectedLeaveElements.length)) {
  97166. const cleanupFns = [];
  97167. try {
  97168. players = this._flushAnimations(cleanupFns, microtaskId);
  97169. }
  97170. finally {
  97171. for (let i = 0; i < cleanupFns.length; i++) {
  97172. cleanupFns[i]();
  97173. }
  97174. }
  97175. }
  97176. else {
  97177. for (let i = 0; i < this.collectedLeaveElements.length; i++) {
  97178. const element = this.collectedLeaveElements[i];
  97179. this.processLeaveNode(element);
  97180. }
  97181. }
  97182. this.totalQueuedPlayers = 0;
  97183. this.collectedEnterElements.length = 0;
  97184. this.collectedLeaveElements.length = 0;
  97185. this._flushFns.forEach(fn => fn());
  97186. this._flushFns = [];
  97187. if (this._whenQuietFns.length) {
  97188. // we move these over to a variable so that
  97189. // if any new callbacks are registered in another
  97190. // flush they do not populate the existing set
  97191. const quietFns = this._whenQuietFns;
  97192. this._whenQuietFns = [];
  97193. if (players.length) {
  97194. optimizeGroupPlayer(players).onDone(() => {
  97195. quietFns.forEach(fn => fn());
  97196. });
  97197. }
  97198. else {
  97199. quietFns.forEach(fn => fn());
  97200. }
  97201. }
  97202. }
  97203. reportError(errors) {
  97204. throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${errors.join('\n')}`);
  97205. }
  97206. _flushAnimations(cleanupFns, microtaskId) {
  97207. const subTimelines = new ElementInstructionMap();
  97208. const skippedPlayers = [];
  97209. const skippedPlayersMap = new Map();
  97210. const queuedInstructions = [];
  97211. const queriedElements = new Map();
  97212. const allPreStyleElements = new Map();
  97213. const allPostStyleElements = new Map();
  97214. const disabledElementsSet = new Set();
  97215. this.disabledNodes.forEach(node => {
  97216. disabledElementsSet.add(node);
  97217. const nodesThatAreDisabled = this.driver.query(node, QUEUED_SELECTOR, true);
  97218. for (let i = 0; i < nodesThatAreDisabled.length; i++) {
  97219. disabledElementsSet.add(nodesThatAreDisabled[i]);
  97220. }
  97221. });
  97222. const bodyNode = this.bodyNode;
  97223. const allTriggerElements = Array.from(this.statesByElement.keys());
  97224. const enterNodeMap = buildRootMap(allTriggerElements, this.collectedEnterElements);
  97225. // this must occur before the instructions are built below such that
  97226. // the :enter queries match the elements (since the timeline queries
  97227. // are fired during instruction building).
  97228. const enterNodeMapIds = new Map();
  97229. let i = 0;
  97230. enterNodeMap.forEach((nodes, root) => {
  97231. const className = ENTER_CLASSNAME + i++;
  97232. enterNodeMapIds.set(root, className);
  97233. nodes.forEach(node => addClass(node, className));
  97234. });
  97235. const allLeaveNodes = [];
  97236. const mergedLeaveNodes = new Set();
  97237. const leaveNodesWithoutAnimations = new Set();
  97238. for (let i = 0; i < this.collectedLeaveElements.length; i++) {
  97239. const element = this.collectedLeaveElements[i];
  97240. const details = element[REMOVAL_FLAG];
  97241. if (details && details.setForRemoval) {
  97242. allLeaveNodes.push(element);
  97243. mergedLeaveNodes.add(element);
  97244. if (details.hasAnimation) {
  97245. this.driver.query(element, STAR_SELECTOR, true).forEach(elm => mergedLeaveNodes.add(elm));
  97246. }
  97247. else {
  97248. leaveNodesWithoutAnimations.add(element);
  97249. }
  97250. }
  97251. }
  97252. const leaveNodeMapIds = new Map();
  97253. const leaveNodeMap = buildRootMap(allTriggerElements, Array.from(mergedLeaveNodes));
  97254. leaveNodeMap.forEach((nodes, root) => {
  97255. const className = LEAVE_CLASSNAME + i++;
  97256. leaveNodeMapIds.set(root, className);
  97257. nodes.forEach(node => addClass(node, className));
  97258. });
  97259. cleanupFns.push(() => {
  97260. enterNodeMap.forEach((nodes, root) => {
  97261. const className = enterNodeMapIds.get(root);
  97262. nodes.forEach(node => removeClass(node, className));
  97263. });
  97264. leaveNodeMap.forEach((nodes, root) => {
  97265. const className = leaveNodeMapIds.get(root);
  97266. nodes.forEach(node => removeClass(node, className));
  97267. });
  97268. allLeaveNodes.forEach(element => {
  97269. this.processLeaveNode(element);
  97270. });
  97271. });
  97272. const allPlayers = [];
  97273. const erroneousTransitions = [];
  97274. for (let i = this._namespaceList.length - 1; i >= 0; i--) {
  97275. const ns = this._namespaceList[i];
  97276. ns.drainQueuedTransitions(microtaskId).forEach(entry => {
  97277. const player = entry.player;
  97278. const element = entry.element;
  97279. allPlayers.push(player);
  97280. if (this.collectedEnterElements.length) {
  97281. const details = element[REMOVAL_FLAG];
  97282. // move animations are currently not supported...
  97283. if (details && details.setForMove) {
  97284. player.destroy();
  97285. return;
  97286. }
  97287. }
  97288. const nodeIsOrphaned = !bodyNode || !this.driver.containsElement(bodyNode, element);
  97289. const leaveClassName = leaveNodeMapIds.get(element);
  97290. const enterClassName = enterNodeMapIds.get(element);
  97291. const instruction = this._buildInstruction(entry, subTimelines, enterClassName, leaveClassName, nodeIsOrphaned);
  97292. if (instruction.errors && instruction.errors.length) {
  97293. erroneousTransitions.push(instruction);
  97294. return;
  97295. }
  97296. // even though the element may not be apart of the DOM, it may
  97297. // still be added at a later point (due to the mechanics of content
  97298. // projection and/or dynamic component insertion) therefore it's
  97299. // important we still style the element.
  97300. if (nodeIsOrphaned) {
  97301. player.onStart(() => eraseStyles(element, instruction.fromStyles));
  97302. player.onDestroy(() => setStyles(element, instruction.toStyles));
  97303. skippedPlayers.push(player);
  97304. return;
  97305. }
  97306. // if a unmatched transition is queued to go then it SHOULD NOT render
  97307. // an animation and cancel the previously running animations.
  97308. if (entry.isFallbackTransition) {
  97309. player.onStart(() => eraseStyles(element, instruction.fromStyles));
  97310. player.onDestroy(() => setStyles(element, instruction.toStyles));
  97311. skippedPlayers.push(player);
  97312. return;
  97313. }
  97314. // this means that if a parent animation uses this animation as a sub trigger
  97315. // then it will instruct the timeline builder to not add a player delay, but
  97316. // instead stretch the first keyframe gap up until the animation starts. The
  97317. // reason this is important is to prevent extra initialization styles from being
  97318. // required by the user in the animation.
  97319. instruction.timelines.forEach(tl => tl.stretchStartingKeyframe = true);
  97320. subTimelines.append(element, instruction.timelines);
  97321. const tuple = { instruction, player, element };
  97322. queuedInstructions.push(tuple);
  97323. instruction.queriedElements.forEach(element => getOrSetAsInMap(queriedElements, element, []).push(player));
  97324. instruction.preStyleProps.forEach((stringMap, element) => {
  97325. const props = Object.keys(stringMap);
  97326. if (props.length) {
  97327. let setVal = allPreStyleElements.get(element);
  97328. if (!setVal) {
  97329. allPreStyleElements.set(element, setVal = new Set());
  97330. }
  97331. props.forEach(prop => setVal.add(prop));
  97332. }
  97333. });
  97334. instruction.postStyleProps.forEach((stringMap, element) => {
  97335. const props = Object.keys(stringMap);
  97336. let setVal = allPostStyleElements.get(element);
  97337. if (!setVal) {
  97338. allPostStyleElements.set(element, setVal = new Set());
  97339. }
  97340. props.forEach(prop => setVal.add(prop));
  97341. });
  97342. });
  97343. }
  97344. if (erroneousTransitions.length) {
  97345. const errors = [];
  97346. erroneousTransitions.forEach(instruction => {
  97347. errors.push(`@${instruction.triggerName} has failed due to:\n`);
  97348. instruction.errors.forEach(error => errors.push(`- ${error}\n`));
  97349. });
  97350. allPlayers.forEach(player => player.destroy());
  97351. this.reportError(errors);
  97352. }
  97353. const allPreviousPlayersMap = new Map();
  97354. // this map works to tell which element in the DOM tree is contained by
  97355. // which animation. Further down below this map will get populated once
  97356. // the players are built and in doing so it can efficiently figure out
  97357. // if a sub player is skipped due to a parent player having priority.
  97358. const animationElementMap = new Map();
  97359. queuedInstructions.forEach(entry => {
  97360. const element = entry.element;
  97361. if (subTimelines.has(element)) {
  97362. animationElementMap.set(element, element);
  97363. this._beforeAnimationBuild(entry.player.namespaceId, entry.instruction, allPreviousPlayersMap);
  97364. }
  97365. });
  97366. skippedPlayers.forEach(player => {
  97367. const element = player.element;
  97368. const previousPlayers = this._getPreviousPlayers(element, false, player.namespaceId, player.triggerName, null);
  97369. previousPlayers.forEach(prevPlayer => {
  97370. getOrSetAsInMap(allPreviousPlayersMap, element, []).push(prevPlayer);
  97371. prevPlayer.destroy();
  97372. });
  97373. });
  97374. // this is a special case for nodes that will be removed (either by)
  97375. // having their own leave animations or by being queried in a container
  97376. // that will be removed once a parent animation is complete. The idea
  97377. // here is that * styles must be identical to ! styles because of
  97378. // backwards compatibility (* is also filled in by default in many places).
  97379. // Otherwise * styles will return an empty value or auto since the element
  97380. // that is being getComputedStyle'd will not be visible (since * = destination)
  97381. const replaceNodes = allLeaveNodes.filter(node => {
  97382. return replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements);
  97383. });
  97384. // POST STAGE: fill the * styles
  97385. const postStylesMap = new Map();
  97386. const allLeaveQueriedNodes = cloakAndComputeStyles(postStylesMap, this.driver, leaveNodesWithoutAnimations, allPostStyleElements, _angular_animations__WEBPACK_IMPORTED_MODULE_0__["AUTO_STYLE"]);
  97387. allLeaveQueriedNodes.forEach(node => {
  97388. if (replacePostStylesAsPre(node, allPreStyleElements, allPostStyleElements)) {
  97389. replaceNodes.push(node);
  97390. }
  97391. });
  97392. // PRE STAGE: fill the ! styles
  97393. const preStylesMap = new Map();
  97394. enterNodeMap.forEach((nodes, root) => {
  97395. cloakAndComputeStyles(preStylesMap, this.driver, new Set(nodes), allPreStyleElements, _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵPRE_STYLE"]);
  97396. });
  97397. replaceNodes.forEach(node => {
  97398. const post = postStylesMap.get(node);
  97399. const pre = preStylesMap.get(node);
  97400. postStylesMap.set(node, Object.assign(Object.assign({}, post), pre));
  97401. });
  97402. const rootPlayers = [];
  97403. const subPlayers = [];
  97404. const NO_PARENT_ANIMATION_ELEMENT_DETECTED = {};
  97405. queuedInstructions.forEach(entry => {
  97406. const { element, player, instruction } = entry;
  97407. // this means that it was never consumed by a parent animation which
  97408. // means that it is independent and therefore should be set for animation
  97409. if (subTimelines.has(element)) {
  97410. if (disabledElementsSet.has(element)) {
  97411. player.onDestroy(() => setStyles(element, instruction.toStyles));
  97412. player.disabled = true;
  97413. player.overrideTotalTime(instruction.totalTime);
  97414. skippedPlayers.push(player);
  97415. return;
  97416. }
  97417. // this will flow up the DOM and query the map to figure out
  97418. // if a parent animation has priority over it. In the situation
  97419. // that a parent is detected then it will cancel the loop. If
  97420. // nothing is detected, or it takes a few hops to find a parent,
  97421. // then it will fill in the missing nodes and signal them as having
  97422. // a detected parent (or a NO_PARENT value via a special constant).
  97423. let parentWithAnimation = NO_PARENT_ANIMATION_ELEMENT_DETECTED;
  97424. if (animationElementMap.size > 1) {
  97425. let elm = element;
  97426. const parentsToAdd = [];
  97427. while (elm = elm.parentNode) {
  97428. const detectedParent = animationElementMap.get(elm);
  97429. if (detectedParent) {
  97430. parentWithAnimation = detectedParent;
  97431. break;
  97432. }
  97433. parentsToAdd.push(elm);
  97434. }
  97435. parentsToAdd.forEach(parent => animationElementMap.set(parent, parentWithAnimation));
  97436. }
  97437. const innerPlayer = this._buildAnimation(player.namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap);
  97438. player.setRealPlayer(innerPlayer);
  97439. if (parentWithAnimation === NO_PARENT_ANIMATION_ELEMENT_DETECTED) {
  97440. rootPlayers.push(player);
  97441. }
  97442. else {
  97443. const parentPlayers = this.playersByElement.get(parentWithAnimation);
  97444. if (parentPlayers && parentPlayers.length) {
  97445. player.parentPlayer = optimizeGroupPlayer(parentPlayers);
  97446. }
  97447. skippedPlayers.push(player);
  97448. }
  97449. }
  97450. else {
  97451. eraseStyles(element, instruction.fromStyles);
  97452. player.onDestroy(() => setStyles(element, instruction.toStyles));
  97453. // there still might be a ancestor player animating this
  97454. // element therefore we will still add it as a sub player
  97455. // even if its animation may be disabled
  97456. subPlayers.push(player);
  97457. if (disabledElementsSet.has(element)) {
  97458. skippedPlayers.push(player);
  97459. }
  97460. }
  97461. });
  97462. // find all of the sub players' corresponding inner animation player
  97463. subPlayers.forEach(player => {
  97464. // even if any players are not found for a sub animation then it
  97465. // will still complete itself after the next tick since it's Noop
  97466. const playersForElement = skippedPlayersMap.get(player.element);
  97467. if (playersForElement && playersForElement.length) {
  97468. const innerPlayer = optimizeGroupPlayer(playersForElement);
  97469. player.setRealPlayer(innerPlayer);
  97470. }
  97471. });
  97472. // the reason why we don't actually play the animation is
  97473. // because all that a skipped player is designed to do is to
  97474. // fire the start/done transition callback events
  97475. skippedPlayers.forEach(player => {
  97476. if (player.parentPlayer) {
  97477. player.syncPlayerEvents(player.parentPlayer);
  97478. }
  97479. else {
  97480. player.destroy();
  97481. }
  97482. });
  97483. // run through all of the queued removals and see if they
  97484. // were picked up by a query. If not then perform the removal
  97485. // operation right away unless a parent animation is ongoing.
  97486. for (let i = 0; i < allLeaveNodes.length; i++) {
  97487. const element = allLeaveNodes[i];
  97488. const details = element[REMOVAL_FLAG];
  97489. removeClass(element, LEAVE_CLASSNAME);
  97490. // this means the element has a removal animation that is being
  97491. // taken care of and therefore the inner elements will hang around
  97492. // until that animation is over (or the parent queried animation)
  97493. if (details && details.hasAnimation)
  97494. continue;
  97495. let players = [];
  97496. // if this element is queried or if it contains queried children
  97497. // then we want for the element not to be removed from the page
  97498. // until the queried animations have finished
  97499. if (queriedElements.size) {
  97500. let queriedPlayerResults = queriedElements.get(element);
  97501. if (queriedPlayerResults && queriedPlayerResults.length) {
  97502. players.push(...queriedPlayerResults);
  97503. }
  97504. let queriedInnerElements = this.driver.query(element, NG_ANIMATING_SELECTOR, true);
  97505. for (let j = 0; j < queriedInnerElements.length; j++) {
  97506. let queriedPlayers = queriedElements.get(queriedInnerElements[j]);
  97507. if (queriedPlayers && queriedPlayers.length) {
  97508. players.push(...queriedPlayers);
  97509. }
  97510. }
  97511. }
  97512. const activePlayers = players.filter(p => !p.destroyed);
  97513. if (activePlayers.length) {
  97514. removeNodesAfterAnimationDone(this, element, activePlayers);
  97515. }
  97516. else {
  97517. this.processLeaveNode(element);
  97518. }
  97519. }
  97520. // this is required so the cleanup method doesn't remove them
  97521. allLeaveNodes.length = 0;
  97522. rootPlayers.forEach(player => {
  97523. this.players.push(player);
  97524. player.onDone(() => {
  97525. player.destroy();
  97526. const index = this.players.indexOf(player);
  97527. this.players.splice(index, 1);
  97528. });
  97529. player.play();
  97530. });
  97531. return rootPlayers;
  97532. }
  97533. elementContainsData(namespaceId, element) {
  97534. let containsData = false;
  97535. const details = element[REMOVAL_FLAG];
  97536. if (details && details.setForRemoval)
  97537. containsData = true;
  97538. if (this.playersByElement.has(element))
  97539. containsData = true;
  97540. if (this.playersByQueriedElement.has(element))
  97541. containsData = true;
  97542. if (this.statesByElement.has(element))
  97543. containsData = true;
  97544. return this._fetchNamespace(namespaceId).elementContainsData(element) || containsData;
  97545. }
  97546. afterFlush(callback) {
  97547. this._flushFns.push(callback);
  97548. }
  97549. afterFlushAnimationsDone(callback) {
  97550. this._whenQuietFns.push(callback);
  97551. }
  97552. _getPreviousPlayers(element, isQueriedElement, namespaceId, triggerName, toStateValue) {
  97553. let players = [];
  97554. if (isQueriedElement) {
  97555. const queriedElementPlayers = this.playersByQueriedElement.get(element);
  97556. if (queriedElementPlayers) {
  97557. players = queriedElementPlayers;
  97558. }
  97559. }
  97560. else {
  97561. const elementPlayers = this.playersByElement.get(element);
  97562. if (elementPlayers) {
  97563. const isRemovalAnimation = !toStateValue || toStateValue == VOID_VALUE;
  97564. elementPlayers.forEach(player => {
  97565. if (player.queued)
  97566. return;
  97567. if (!isRemovalAnimation && player.triggerName != triggerName)
  97568. return;
  97569. players.push(player);
  97570. });
  97571. }
  97572. }
  97573. if (namespaceId || triggerName) {
  97574. players = players.filter(player => {
  97575. if (namespaceId && namespaceId != player.namespaceId)
  97576. return false;
  97577. if (triggerName && triggerName != player.triggerName)
  97578. return false;
  97579. return true;
  97580. });
  97581. }
  97582. return players;
  97583. }
  97584. _beforeAnimationBuild(namespaceId, instruction, allPreviousPlayersMap) {
  97585. const triggerName = instruction.triggerName;
  97586. const rootElement = instruction.element;
  97587. // when a removal animation occurs, ALL previous players are collected
  97588. // and destroyed (even if they are outside of the current namespace)
  97589. const targetNameSpaceId = instruction.isRemovalTransition ? undefined : namespaceId;
  97590. const targetTriggerName = instruction.isRemovalTransition ? undefined : triggerName;
  97591. for (const timelineInstruction of instruction.timelines) {
  97592. const element = timelineInstruction.element;
  97593. const isQueriedElement = element !== rootElement;
  97594. const players = getOrSetAsInMap(allPreviousPlayersMap, element, []);
  97595. const previousPlayers = this._getPreviousPlayers(element, isQueriedElement, targetNameSpaceId, targetTriggerName, instruction.toState);
  97596. previousPlayers.forEach(player => {
  97597. const realPlayer = player.getRealPlayer();
  97598. if (realPlayer.beforeDestroy) {
  97599. realPlayer.beforeDestroy();
  97600. }
  97601. player.destroy();
  97602. players.push(player);
  97603. });
  97604. }
  97605. // this needs to be done so that the PRE/POST styles can be
  97606. // computed properly without interfering with the previous animation
  97607. eraseStyles(rootElement, instruction.fromStyles);
  97608. }
  97609. _buildAnimation(namespaceId, instruction, allPreviousPlayersMap, skippedPlayersMap, preStylesMap, postStylesMap) {
  97610. const triggerName = instruction.triggerName;
  97611. const rootElement = instruction.element;
  97612. // we first run this so that the previous animation player
  97613. // data can be passed into the successive animation players
  97614. const allQueriedPlayers = [];
  97615. const allConsumedElements = new Set();
  97616. const allSubElements = new Set();
  97617. const allNewPlayers = instruction.timelines.map(timelineInstruction => {
  97618. const element = timelineInstruction.element;
  97619. allConsumedElements.add(element);
  97620. // FIXME (matsko): make sure to-be-removed animations are removed properly
  97621. const details = element[REMOVAL_FLAG];
  97622. if (details && details.removedBeforeQueried)
  97623. return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"](timelineInstruction.duration, timelineInstruction.delay);
  97624. const isQueriedElement = element !== rootElement;
  97625. const previousPlayers = flattenGroupPlayers((allPreviousPlayersMap.get(element) || EMPTY_PLAYER_ARRAY)
  97626. .map(p => p.getRealPlayer()))
  97627. .filter(p => {
  97628. // the `element` is not apart of the AnimationPlayer definition, but
  97629. // Mock/WebAnimations
  97630. // use the element within their implementation. This will be added in Angular5 to
  97631. // AnimationPlayer
  97632. const pp = p;
  97633. return pp.element ? pp.element === element : false;
  97634. });
  97635. const preStyles = preStylesMap.get(element);
  97636. const postStyles = postStylesMap.get(element);
  97637. const keyframes = normalizeKeyframes(this.driver, this._normalizer, element, timelineInstruction.keyframes, preStyles, postStyles);
  97638. const player = this._buildPlayer(timelineInstruction, keyframes, previousPlayers);
  97639. // this means that this particular player belongs to a sub trigger. It is
  97640. // important that we match this player up with the corresponding (@trigger.listener)
  97641. if (timelineInstruction.subTimeline && skippedPlayersMap) {
  97642. allSubElements.add(element);
  97643. }
  97644. if (isQueriedElement) {
  97645. const wrappedPlayer = new TransitionAnimationPlayer(namespaceId, triggerName, element);
  97646. wrappedPlayer.setRealPlayer(player);
  97647. allQueriedPlayers.push(wrappedPlayer);
  97648. }
  97649. return player;
  97650. });
  97651. allQueriedPlayers.forEach(player => {
  97652. getOrSetAsInMap(this.playersByQueriedElement, player.element, []).push(player);
  97653. player.onDone(() => deleteOrUnsetInMap(this.playersByQueriedElement, player.element, player));
  97654. });
  97655. allConsumedElements.forEach(element => addClass(element, NG_ANIMATING_CLASSNAME));
  97656. const player = optimizeGroupPlayer(allNewPlayers);
  97657. player.onDestroy(() => {
  97658. allConsumedElements.forEach(element => removeClass(element, NG_ANIMATING_CLASSNAME));
  97659. setStyles(rootElement, instruction.toStyles);
  97660. });
  97661. // this basically makes all of the callbacks for sub element animations
  97662. // be dependent on the upper players for when they finish
  97663. allSubElements.forEach(element => {
  97664. getOrSetAsInMap(skippedPlayersMap, element, []).push(player);
  97665. });
  97666. return player;
  97667. }
  97668. _buildPlayer(instruction, keyframes, previousPlayers) {
  97669. if (keyframes.length > 0) {
  97670. return this.driver.animate(instruction.element, keyframes, instruction.duration, instruction.delay, instruction.easing, previousPlayers);
  97671. }
  97672. // special case for when an empty transition|definition is provided
  97673. // ... there is no point in rendering an empty animation
  97674. return new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"](instruction.duration, instruction.delay);
  97675. }
  97676. }
  97677. class TransitionAnimationPlayer {
  97678. constructor(namespaceId, triggerName, element) {
  97679. this.namespaceId = namespaceId;
  97680. this.triggerName = triggerName;
  97681. this.element = element;
  97682. this._player = new _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"]();
  97683. this._containsRealPlayer = false;
  97684. this._queuedCallbacks = {};
  97685. this.destroyed = false;
  97686. this.markedForDestroy = false;
  97687. this.disabled = false;
  97688. this.queued = true;
  97689. this.totalTime = 0;
  97690. }
  97691. setRealPlayer(player) {
  97692. if (this._containsRealPlayer)
  97693. return;
  97694. this._player = player;
  97695. Object.keys(this._queuedCallbacks).forEach(phase => {
  97696. this._queuedCallbacks[phase].forEach(callback => listenOnPlayer(player, phase, undefined, callback));
  97697. });
  97698. this._queuedCallbacks = {};
  97699. this._containsRealPlayer = true;
  97700. this.overrideTotalTime(player.totalTime);
  97701. this.queued = false;
  97702. }
  97703. getRealPlayer() {
  97704. return this._player;
  97705. }
  97706. overrideTotalTime(totalTime) {
  97707. this.totalTime = totalTime;
  97708. }
  97709. syncPlayerEvents(player) {
  97710. const p = this._player;
  97711. if (p.triggerCallback) {
  97712. player.onStart(() => p.triggerCallback('start'));
  97713. }
  97714. player.onDone(() => this.finish());
  97715. player.onDestroy(() => this.destroy());
  97716. }
  97717. _queueEvent(name, callback) {
  97718. getOrSetAsInMap(this._queuedCallbacks, name, []).push(callback);
  97719. }
  97720. onDone(fn) {
  97721. if (this.queued) {
  97722. this._queueEvent('done', fn);
  97723. }
  97724. this._player.onDone(fn);
  97725. }
  97726. onStart(fn) {
  97727. if (this.queued) {
  97728. this._queueEvent('start', fn);
  97729. }
  97730. this._player.onStart(fn);
  97731. }
  97732. onDestroy(fn) {
  97733. if (this.queued) {
  97734. this._queueEvent('destroy', fn);
  97735. }
  97736. this._player.onDestroy(fn);
  97737. }
  97738. init() {
  97739. this._player.init();
  97740. }
  97741. hasStarted() {
  97742. return this.queued ? false : this._player.hasStarted();
  97743. }
  97744. play() {
  97745. !this.queued && this._player.play();
  97746. }
  97747. pause() {
  97748. !this.queued && this._player.pause();
  97749. }
  97750. restart() {
  97751. !this.queued && this._player.restart();
  97752. }
  97753. finish() {
  97754. this._player.finish();
  97755. }
  97756. destroy() {
  97757. this.destroyed = true;
  97758. this._player.destroy();
  97759. }
  97760. reset() {
  97761. !this.queued && this._player.reset();
  97762. }
  97763. setPosition(p) {
  97764. if (!this.queued) {
  97765. this._player.setPosition(p);
  97766. }
  97767. }
  97768. getPosition() {
  97769. return this.queued ? 0 : this._player.getPosition();
  97770. }
  97771. /** @internal */
  97772. triggerCallback(phaseName) {
  97773. const p = this._player;
  97774. if (p.triggerCallback) {
  97775. p.triggerCallback(phaseName);
  97776. }
  97777. }
  97778. }
  97779. function deleteOrUnsetInMap(map, key, value) {
  97780. let currentValues;
  97781. if (map instanceof Map) {
  97782. currentValues = map.get(key);
  97783. if (currentValues) {
  97784. if (currentValues.length) {
  97785. const index = currentValues.indexOf(value);
  97786. currentValues.splice(index, 1);
  97787. }
  97788. if (currentValues.length == 0) {
  97789. map.delete(key);
  97790. }
  97791. }
  97792. }
  97793. else {
  97794. currentValues = map[key];
  97795. if (currentValues) {
  97796. if (currentValues.length) {
  97797. const index = currentValues.indexOf(value);
  97798. currentValues.splice(index, 1);
  97799. }
  97800. if (currentValues.length == 0) {
  97801. delete map[key];
  97802. }
  97803. }
  97804. }
  97805. return currentValues;
  97806. }
  97807. function normalizeTriggerValue(value) {
  97808. // we use `!= null` here because it's the most simple
  97809. // way to test against a "falsy" value without mixing
  97810. // in empty strings or a zero value. DO NOT OPTIMIZE.
  97811. return value != null ? value : null;
  97812. }
  97813. function isElementNode(node) {
  97814. return node && node['nodeType'] === 1;
  97815. }
  97816. function isTriggerEventValid(eventName) {
  97817. return eventName == 'start' || eventName == 'done';
  97818. }
  97819. function cloakElement(element, value) {
  97820. const oldValue = element.style.display;
  97821. element.style.display = value != null ? value : 'none';
  97822. return oldValue;
  97823. }
  97824. function cloakAndComputeStyles(valuesMap, driver, elements, elementPropsMap, defaultStyle) {
  97825. const cloakVals = [];
  97826. elements.forEach(element => cloakVals.push(cloakElement(element)));
  97827. const failedElements = [];
  97828. elementPropsMap.forEach((props, element) => {
  97829. const styles = {};
  97830. props.forEach(prop => {
  97831. const value = styles[prop] = driver.computeStyle(element, prop, defaultStyle);
  97832. // there is no easy way to detect this because a sub element could be removed
  97833. // by a parent animation element being detached.
  97834. if (!value || value.length == 0) {
  97835. element[REMOVAL_FLAG] = NULL_REMOVED_QUERIED_STATE;
  97836. failedElements.push(element);
  97837. }
  97838. });
  97839. valuesMap.set(element, styles);
  97840. });
  97841. // we use a index variable here since Set.forEach(a, i) does not return
  97842. // an index value for the closure (but instead just the value)
  97843. let i = 0;
  97844. elements.forEach(element => cloakElement(element, cloakVals[i++]));
  97845. return failedElements;
  97846. }
  97847. /*
  97848. Since the Angular renderer code will return a collection of inserted
  97849. nodes in all areas of a DOM tree, it's up to this algorithm to figure
  97850. out which nodes are roots for each animation @trigger.
  97851. By placing each inserted node into a Set and traversing upwards, it
  97852. is possible to find the @trigger elements and well any direct *star
  97853. insertion nodes, if a @trigger root is found then the enter element
  97854. is placed into the Map[@trigger] spot.
  97855. */
  97856. function buildRootMap(roots, nodes) {
  97857. const rootMap = new Map();
  97858. roots.forEach(root => rootMap.set(root, []));
  97859. if (nodes.length == 0)
  97860. return rootMap;
  97861. const NULL_NODE = 1;
  97862. const nodeSet = new Set(nodes);
  97863. const localRootMap = new Map();
  97864. function getRoot(node) {
  97865. if (!node)
  97866. return NULL_NODE;
  97867. let root = localRootMap.get(node);
  97868. if (root)
  97869. return root;
  97870. const parent = node.parentNode;
  97871. if (rootMap.has(parent)) { // ngIf inside @trigger
  97872. root = parent;
  97873. }
  97874. else if (nodeSet.has(parent)) { // ngIf inside ngIf
  97875. root = NULL_NODE;
  97876. }
  97877. else { // recurse upwards
  97878. root = getRoot(parent);
  97879. }
  97880. localRootMap.set(node, root);
  97881. return root;
  97882. }
  97883. nodes.forEach(node => {
  97884. const root = getRoot(node);
  97885. if (root !== NULL_NODE) {
  97886. rootMap.get(root).push(node);
  97887. }
  97888. });
  97889. return rootMap;
  97890. }
  97891. const CLASSES_CACHE_KEY = '$$classes';
  97892. function containsClass(element, className) {
  97893. if (element.classList) {
  97894. return element.classList.contains(className);
  97895. }
  97896. else {
  97897. const classes = element[CLASSES_CACHE_KEY];
  97898. return classes && classes[className];
  97899. }
  97900. }
  97901. function addClass(element, className) {
  97902. if (element.classList) {
  97903. element.classList.add(className);
  97904. }
  97905. else {
  97906. let classes = element[CLASSES_CACHE_KEY];
  97907. if (!classes) {
  97908. classes = element[CLASSES_CACHE_KEY] = {};
  97909. }
  97910. classes[className] = true;
  97911. }
  97912. }
  97913. function removeClass(element, className) {
  97914. if (element.classList) {
  97915. element.classList.remove(className);
  97916. }
  97917. else {
  97918. let classes = element[CLASSES_CACHE_KEY];
  97919. if (classes) {
  97920. delete classes[className];
  97921. }
  97922. }
  97923. }
  97924. function removeNodesAfterAnimationDone(engine, element, players) {
  97925. optimizeGroupPlayer(players).onDone(() => engine.processLeaveNode(element));
  97926. }
  97927. function flattenGroupPlayers(players) {
  97928. const finalPlayers = [];
  97929. _flattenGroupPlayersRecur(players, finalPlayers);
  97930. return finalPlayers;
  97931. }
  97932. function _flattenGroupPlayersRecur(players, finalPlayers) {
  97933. for (let i = 0; i < players.length; i++) {
  97934. const player = players[i];
  97935. if (player instanceof _angular_animations__WEBPACK_IMPORTED_MODULE_0__["ɵAnimationGroupPlayer"]) {
  97936. _flattenGroupPlayersRecur(player.players, finalPlayers);
  97937. }
  97938. else {
  97939. finalPlayers.push(player);
  97940. }
  97941. }
  97942. }
  97943. function objEquals(a, b) {
  97944. const k1 = Object.keys(a);
  97945. const k2 = Object.keys(b);
  97946. if (k1.length != k2.length)
  97947. return false;
  97948. for (let i = 0; i < k1.length; i++) {
  97949. const prop = k1[i];
  97950. if (!b.hasOwnProperty(prop) || a[prop] !== b[prop])
  97951. return false;
  97952. }
  97953. return true;
  97954. }
  97955. function replacePostStylesAsPre(element, allPreStyleElements, allPostStyleElements) {
  97956. const postEntry = allPostStyleElements.get(element);
  97957. if (!postEntry)
  97958. return false;
  97959. let preEntry = allPreStyleElements.get(element);
  97960. if (preEntry) {
  97961. postEntry.forEach(data => preEntry.add(data));
  97962. }
  97963. else {
  97964. allPreStyleElements.set(element, postEntry);
  97965. }
  97966. allPostStyleElements.delete(element);
  97967. return true;
  97968. }
  97969. class AnimationEngine {
  97970. constructor(bodyNode, _driver, normalizer) {
  97971. this.bodyNode = bodyNode;
  97972. this._driver = _driver;
  97973. this._triggerCache = {};
  97974. // this method is designed to be overridden by the code that uses this engine
  97975. this.onRemovalComplete = (element, context) => { };
  97976. this._transitionEngine = new TransitionAnimationEngine(bodyNode, _driver, normalizer);
  97977. this._timelineEngine = new TimelineAnimationEngine(bodyNode, _driver, normalizer);
  97978. this._transitionEngine.onRemovalComplete = (element, context) => this.onRemovalComplete(element, context);
  97979. }
  97980. registerTrigger(componentId, namespaceId, hostElement, name, metadata) {
  97981. const cacheKey = componentId + '-' + name;
  97982. let trigger = this._triggerCache[cacheKey];
  97983. if (!trigger) {
  97984. const errors = [];
  97985. const ast = buildAnimationAst(this._driver, metadata, errors);
  97986. if (errors.length) {
  97987. throw new Error(`The animation trigger "${name}" has failed to build due to the following errors:\n - ${errors.join('\n - ')}`);
  97988. }
  97989. trigger = buildTrigger(name, ast);
  97990. this._triggerCache[cacheKey] = trigger;
  97991. }
  97992. this._transitionEngine.registerTrigger(namespaceId, name, trigger);
  97993. }
  97994. register(namespaceId, hostElement) {
  97995. this._transitionEngine.register(namespaceId, hostElement);
  97996. }
  97997. destroy(namespaceId, context) {
  97998. this._transitionEngine.destroy(namespaceId, context);
  97999. }
  98000. onInsert(namespaceId, element, parent, insertBefore) {
  98001. this._transitionEngine.insertNode(namespaceId, element, parent, insertBefore);
  98002. }
  98003. onRemove(namespaceId, element, context, isHostElement) {
  98004. this._transitionEngine.removeNode(namespaceId, element, isHostElement || false, context);
  98005. }
  98006. disableAnimations(element, disable) {
  98007. this._transitionEngine.markElementAsDisabled(element, disable);
  98008. }
  98009. process(namespaceId, element, property, value) {
  98010. if (property.charAt(0) == '@') {
  98011. const [id, action] = parseTimelineCommand(property);
  98012. const args = value;
  98013. this._timelineEngine.command(id, element, action, args);
  98014. }
  98015. else {
  98016. this._transitionEngine.trigger(namespaceId, element, property, value);
  98017. }
  98018. }
  98019. listen(namespaceId, element, eventName, eventPhase, callback) {
  98020. // @@listen
  98021. if (eventName.charAt(0) == '@') {
  98022. const [id, action] = parseTimelineCommand(eventName);
  98023. return this._timelineEngine.listen(id, element, action, callback);
  98024. }
  98025. return this._transitionEngine.listen(namespaceId, element, eventName, eventPhase, callback);
  98026. }
  98027. flush(microtaskId = -1) {
  98028. this._transitionEngine.flush(microtaskId);
  98029. }
  98030. get players() {
  98031. return this._transitionEngine.players
  98032. .concat(this._timelineEngine.players);
  98033. }
  98034. whenRenderingDone() {
  98035. return this._transitionEngine.whenRenderingDone();
  98036. }
  98037. }
  98038. /**
  98039. * @license
  98040. * Copyright Google LLC All Rights Reserved.
  98041. *
  98042. * Use of this source code is governed by an MIT-style license that can be
  98043. * found in the LICENSE file at https://angular.io/license
  98044. */
  98045. /**
  98046. * Returns an instance of `SpecialCasedStyles` if and when any special (non animateable) styles are
  98047. * detected.
  98048. *
  98049. * In CSS there exist properties that cannot be animated within a keyframe animation
  98050. * (whether it be via CSS keyframes or web-animations) and the animation implementation
  98051. * will ignore them. This function is designed to detect those special cased styles and
  98052. * return a container that will be executed at the start and end of the animation.
  98053. *
  98054. * @returns an instance of `SpecialCasedStyles` if any special styles are detected otherwise `null`
  98055. */
  98056. function packageNonAnimatableStyles(element, styles) {
  98057. let startStyles = null;
  98058. let endStyles = null;
  98059. if (Array.isArray(styles) && styles.length) {
  98060. startStyles = filterNonAnimatableStyles(styles[0]);
  98061. if (styles.length > 1) {
  98062. endStyles = filterNonAnimatableStyles(styles[styles.length - 1]);
  98063. }
  98064. }
  98065. else if (styles) {
  98066. startStyles = filterNonAnimatableStyles(styles);
  98067. }
  98068. return (startStyles || endStyles) ? new SpecialCasedStyles(element, startStyles, endStyles) :
  98069. null;
  98070. }
  98071. /**
  98072. * Designed to be executed during a keyframe-based animation to apply any special-cased styles.
  98073. *
  98074. * When started (when the `start()` method is run) then the provided `startStyles`
  98075. * will be applied. When finished (when the `finish()` method is called) the
  98076. * `endStyles` will be applied as well any any starting styles. Finally when
  98077. * `destroy()` is called then all styles will be removed.
  98078. */
  98079. class SpecialCasedStyles {
  98080. constructor(_element, _startStyles, _endStyles) {
  98081. this._element = _element;
  98082. this._startStyles = _startStyles;
  98083. this._endStyles = _endStyles;
  98084. this._state = 0 /* Pending */;
  98085. let initialStyles = SpecialCasedStyles.initialStylesByElement.get(_element);
  98086. if (!initialStyles) {
  98087. SpecialCasedStyles.initialStylesByElement.set(_element, initialStyles = {});
  98088. }
  98089. this._initialStyles = initialStyles;
  98090. }
  98091. start() {
  98092. if (this._state < 1 /* Started */) {
  98093. if (this._startStyles) {
  98094. setStyles(this._element, this._startStyles, this._initialStyles);
  98095. }
  98096. this._state = 1 /* Started */;
  98097. }
  98098. }
  98099. finish() {
  98100. this.start();
  98101. if (this._state < 2 /* Finished */) {
  98102. setStyles(this._element, this._initialStyles);
  98103. if (this._endStyles) {
  98104. setStyles(this._element, this._endStyles);
  98105. this._endStyles = null;
  98106. }
  98107. this._state = 1 /* Started */;
  98108. }
  98109. }
  98110. destroy() {
  98111. this.finish();
  98112. if (this._state < 3 /* Destroyed */) {
  98113. SpecialCasedStyles.initialStylesByElement.delete(this._element);
  98114. if (this._startStyles) {
  98115. eraseStyles(this._element, this._startStyles);
  98116. this._endStyles = null;
  98117. }
  98118. if (this._endStyles) {
  98119. eraseStyles(this._element, this._endStyles);
  98120. this._endStyles = null;
  98121. }
  98122. setStyles(this._element, this._initialStyles);
  98123. this._state = 3 /* Destroyed */;
  98124. }
  98125. }
  98126. }
  98127. SpecialCasedStyles.initialStylesByElement = new WeakMap();
  98128. function filterNonAnimatableStyles(styles) {
  98129. let result = null;
  98130. const props = Object.keys(styles);
  98131. for (let i = 0; i < props.length; i++) {
  98132. const prop = props[i];
  98133. if (isNonAnimatableStyle(prop)) {
  98134. result = result || {};
  98135. result[prop] = styles[prop];
  98136. }
  98137. }
  98138. return result;
  98139. }
  98140. function isNonAnimatableStyle(prop) {
  98141. return prop === 'display' || prop === 'position';
  98142. }
  98143. /**
  98144. * @license
  98145. * Copyright Google LLC All Rights Reserved.
  98146. *
  98147. * Use of this source code is governed by an MIT-style license that can be
  98148. * found in the LICENSE file at https://angular.io/license
  98149. */
  98150. const ELAPSED_TIME_MAX_DECIMAL_PLACES = 3;
  98151. const ANIMATION_PROP = 'animation';
  98152. const ANIMATIONEND_EVENT = 'animationend';
  98153. const ONE_SECOND$1 = 1000;
  98154. class ElementAnimationStyleHandler {
  98155. constructor(_element, _name, _duration, _delay, _easing, _fillMode, _onDoneFn) {
  98156. this._element = _element;
  98157. this._name = _name;
  98158. this._duration = _duration;
  98159. this._delay = _delay;
  98160. this._easing = _easing;
  98161. this._fillMode = _fillMode;
  98162. this._onDoneFn = _onDoneFn;
  98163. this._finished = false;
  98164. this._destroyed = false;
  98165. this._startTime = 0;
  98166. this._position = 0;
  98167. this._eventFn = (e) => this._handleCallback(e);
  98168. }
  98169. apply() {
  98170. applyKeyframeAnimation(this._element, `${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`);
  98171. addRemoveAnimationEvent(this._element, this._eventFn, false);
  98172. this._startTime = Date.now();
  98173. }
  98174. pause() {
  98175. playPauseAnimation(this._element, this._name, 'paused');
  98176. }
  98177. resume() {
  98178. playPauseAnimation(this._element, this._name, 'running');
  98179. }
  98180. setPosition(position) {
  98181. const index = findIndexForAnimation(this._element, this._name);
  98182. this._position = position * this._duration;
  98183. setAnimationStyle(this._element, 'Delay', `-${this._position}ms`, index);
  98184. }
  98185. getPosition() {
  98186. return this._position;
  98187. }
  98188. _handleCallback(event) {
  98189. const timestamp = event._ngTestManualTimestamp || Date.now();
  98190. const elapsedTime = parseFloat(event.elapsedTime.toFixed(ELAPSED_TIME_MAX_DECIMAL_PLACES)) * ONE_SECOND$1;
  98191. if (event.animationName == this._name &&
  98192. Math.max(timestamp - this._startTime, 0) >= this._delay && elapsedTime >= this._duration) {
  98193. this.finish();
  98194. }
  98195. }
  98196. finish() {
  98197. if (this._finished)
  98198. return;
  98199. this._finished = true;
  98200. this._onDoneFn();
  98201. addRemoveAnimationEvent(this._element, this._eventFn, true);
  98202. }
  98203. destroy() {
  98204. if (this._destroyed)
  98205. return;
  98206. this._destroyed = true;
  98207. this.finish();
  98208. removeKeyframeAnimation(this._element, this._name);
  98209. }
  98210. }
  98211. function playPauseAnimation(element, name, status) {
  98212. const index = findIndexForAnimation(element, name);
  98213. setAnimationStyle(element, 'PlayState', status, index);
  98214. }
  98215. function applyKeyframeAnimation(element, value) {
  98216. const anim = getAnimationStyle(element, '').trim();
  98217. let index = 0;
  98218. if (anim.length) {
  98219. index = countChars(anim, ',') + 1;
  98220. value = `${anim}, ${value}`;
  98221. }
  98222. setAnimationStyle(element, '', value);
  98223. return index;
  98224. }
  98225. function removeKeyframeAnimation(element, name) {
  98226. const anim = getAnimationStyle(element, '');
  98227. const tokens = anim.split(',');
  98228. const index = findMatchingTokenIndex(tokens, name);
  98229. if (index >= 0) {
  98230. tokens.splice(index, 1);
  98231. const newValue = tokens.join(',');
  98232. setAnimationStyle(element, '', newValue);
  98233. }
  98234. }
  98235. function findIndexForAnimation(element, value) {
  98236. const anim = getAnimationStyle(element, '');
  98237. if (anim.indexOf(',') > 0) {
  98238. const tokens = anim.split(',');
  98239. return findMatchingTokenIndex(tokens, value);
  98240. }
  98241. return findMatchingTokenIndex([anim], value);
  98242. }
  98243. function findMatchingTokenIndex(tokens, searchToken) {
  98244. for (let i = 0; i < tokens.length; i++) {
  98245. if (tokens[i].indexOf(searchToken) >= 0) {
  98246. return i;
  98247. }
  98248. }
  98249. return -1;
  98250. }
  98251. function addRemoveAnimationEvent(element, fn, doRemove) {
  98252. doRemove ? element.removeEventListener(ANIMATIONEND_EVENT, fn) :
  98253. element.addEventListener(ANIMATIONEND_EVENT, fn);
  98254. }
  98255. function setAnimationStyle(element, name, value, index) {
  98256. const prop = ANIMATION_PROP + name;
  98257. if (index != null) {
  98258. const oldValue = element.style[prop];
  98259. if (oldValue.length) {
  98260. const tokens = oldValue.split(',');
  98261. tokens[index] = value;
  98262. value = tokens.join(',');
  98263. }
  98264. }
  98265. element.style[prop] = value;
  98266. }
  98267. function getAnimationStyle(element, name) {
  98268. return element.style[ANIMATION_PROP + name] || '';
  98269. }
  98270. function countChars(value, char) {
  98271. let count = 0;
  98272. for (let i = 0; i < value.length; i++) {
  98273. const c = value.charAt(i);
  98274. if (c === char)
  98275. count++;
  98276. }
  98277. return count;
  98278. }
  98279. const DEFAULT_FILL_MODE = 'forwards';
  98280. const DEFAULT_EASING = 'linear';
  98281. class CssKeyframesPlayer {
  98282. constructor(element, keyframes, animationName, _duration, _delay, easing, _finalStyles, _specialStyles) {
  98283. this.element = element;
  98284. this.keyframes = keyframes;
  98285. this.animationName = animationName;
  98286. this._duration = _duration;
  98287. this._delay = _delay;
  98288. this._finalStyles = _finalStyles;
  98289. this._specialStyles = _specialStyles;
  98290. this._onDoneFns = [];
  98291. this._onStartFns = [];
  98292. this._onDestroyFns = [];
  98293. this._started = false;
  98294. this.currentSnapshot = {};
  98295. this._state = 0;
  98296. this.easing = easing || DEFAULT_EASING;
  98297. this.totalTime = _duration + _delay;
  98298. this._buildStyler();
  98299. }
  98300. onStart(fn) {
  98301. this._onStartFns.push(fn);
  98302. }
  98303. onDone(fn) {
  98304. this._onDoneFns.push(fn);
  98305. }
  98306. onDestroy(fn) {
  98307. this._onDestroyFns.push(fn);
  98308. }
  98309. destroy() {
  98310. this.init();
  98311. if (this._state >= 4 /* DESTROYED */)
  98312. return;
  98313. this._state = 4 /* DESTROYED */;
  98314. this._styler.destroy();
  98315. this._flushStartFns();
  98316. this._flushDoneFns();
  98317. if (this._specialStyles) {
  98318. this._specialStyles.destroy();
  98319. }
  98320. this._onDestroyFns.forEach(fn => fn());
  98321. this._onDestroyFns = [];
  98322. }
  98323. _flushDoneFns() {
  98324. this._onDoneFns.forEach(fn => fn());
  98325. this._onDoneFns = [];
  98326. }
  98327. _flushStartFns() {
  98328. this._onStartFns.forEach(fn => fn());
  98329. this._onStartFns = [];
  98330. }
  98331. finish() {
  98332. this.init();
  98333. if (this._state >= 3 /* FINISHED */)
  98334. return;
  98335. this._state = 3 /* FINISHED */;
  98336. this._styler.finish();
  98337. this._flushStartFns();
  98338. if (this._specialStyles) {
  98339. this._specialStyles.finish();
  98340. }
  98341. this._flushDoneFns();
  98342. }
  98343. setPosition(value) {
  98344. this._styler.setPosition(value);
  98345. }
  98346. getPosition() {
  98347. return this._styler.getPosition();
  98348. }
  98349. hasStarted() {
  98350. return this._state >= 2 /* STARTED */;
  98351. }
  98352. init() {
  98353. if (this._state >= 1 /* INITIALIZED */)
  98354. return;
  98355. this._state = 1 /* INITIALIZED */;
  98356. const elm = this.element;
  98357. this._styler.apply();
  98358. if (this._delay) {
  98359. this._styler.pause();
  98360. }
  98361. }
  98362. play() {
  98363. this.init();
  98364. if (!this.hasStarted()) {
  98365. this._flushStartFns();
  98366. this._state = 2 /* STARTED */;
  98367. if (this._specialStyles) {
  98368. this._specialStyles.start();
  98369. }
  98370. }
  98371. this._styler.resume();
  98372. }
  98373. pause() {
  98374. this.init();
  98375. this._styler.pause();
  98376. }
  98377. restart() {
  98378. this.reset();
  98379. this.play();
  98380. }
  98381. reset() {
  98382. this._styler.destroy();
  98383. this._buildStyler();
  98384. this._styler.apply();
  98385. }
  98386. _buildStyler() {
  98387. this._styler = new ElementAnimationStyleHandler(this.element, this.animationName, this._duration, this._delay, this.easing, DEFAULT_FILL_MODE, () => this.finish());
  98388. }
  98389. /** @internal */
  98390. triggerCallback(phaseName) {
  98391. const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
  98392. methods.forEach(fn => fn());
  98393. methods.length = 0;
  98394. }
  98395. beforeDestroy() {
  98396. this.init();
  98397. const styles = {};
  98398. if (this.hasStarted()) {
  98399. const finished = this._state >= 3 /* FINISHED */;
  98400. Object.keys(this._finalStyles).forEach(prop => {
  98401. if (prop != 'offset') {
  98402. styles[prop] = finished ? this._finalStyles[prop] : computeStyle(this.element, prop);
  98403. }
  98404. });
  98405. }
  98406. this.currentSnapshot = styles;
  98407. }
  98408. }
  98409. /**
  98410. * @license
  98411. * Copyright Google LLC All Rights Reserved.
  98412. *
  98413. * Use of this source code is governed by an MIT-style license that can be
  98414. * found in the LICENSE file at https://angular.io/license
  98415. */
  98416. class DirectStylePlayer extends _angular_animations__WEBPACK_IMPORTED_MODULE_0__["NoopAnimationPlayer"] {
  98417. constructor(element, styles) {
  98418. super();
  98419. this.element = element;
  98420. this._startingStyles = {};
  98421. this.__initialized = false;
  98422. this._styles = hypenatePropsObject(styles);
  98423. }
  98424. init() {
  98425. if (this.__initialized || !this._startingStyles)
  98426. return;
  98427. this.__initialized = true;
  98428. Object.keys(this._styles).forEach(prop => {
  98429. this._startingStyles[prop] = this.element.style[prop];
  98430. });
  98431. super.init();
  98432. }
  98433. play() {
  98434. if (!this._startingStyles)
  98435. return;
  98436. this.init();
  98437. Object.keys(this._styles)
  98438. .forEach(prop => this.element.style.setProperty(prop, this._styles[prop]));
  98439. super.play();
  98440. }
  98441. destroy() {
  98442. if (!this._startingStyles)
  98443. return;
  98444. Object.keys(this._startingStyles).forEach(prop => {
  98445. const value = this._startingStyles[prop];
  98446. if (value) {
  98447. this.element.style.setProperty(prop, value);
  98448. }
  98449. else {
  98450. this.element.style.removeProperty(prop);
  98451. }
  98452. });
  98453. this._startingStyles = null;
  98454. super.destroy();
  98455. }
  98456. }
  98457. const KEYFRAMES_NAME_PREFIX = 'gen_css_kf_';
  98458. const TAB_SPACE = ' ';
  98459. class CssKeyframesDriver {
  98460. constructor() {
  98461. this._count = 0;
  98462. this._head = document.querySelector('head');
  98463. }
  98464. validateStyleProperty(prop) {
  98465. return validateStyleProperty(prop);
  98466. }
  98467. matchesElement(element, selector) {
  98468. return matchesElement(element, selector);
  98469. }
  98470. containsElement(elm1, elm2) {
  98471. return containsElement(elm1, elm2);
  98472. }
  98473. query(element, selector, multi) {
  98474. return invokeQuery(element, selector, multi);
  98475. }
  98476. computeStyle(element, prop, defaultValue) {
  98477. return window.getComputedStyle(element)[prop];
  98478. }
  98479. buildKeyframeElement(element, name, keyframes) {
  98480. keyframes = keyframes.map(kf => hypenatePropsObject(kf));
  98481. let keyframeStr = `@keyframes ${name} {\n`;
  98482. let tab = '';
  98483. keyframes.forEach(kf => {
  98484. tab = TAB_SPACE;
  98485. const offset = parseFloat(kf['offset']);
  98486. keyframeStr += `${tab}${offset * 100}% {\n`;
  98487. tab += TAB_SPACE;
  98488. Object.keys(kf).forEach(prop => {
  98489. const value = kf[prop];
  98490. switch (prop) {
  98491. case 'offset':
  98492. return;
  98493. case 'easing':
  98494. if (value) {
  98495. keyframeStr += `${tab}animation-timing-function: ${value};\n`;
  98496. }
  98497. return;
  98498. default:
  98499. keyframeStr += `${tab}${prop}: ${value};\n`;
  98500. return;
  98501. }
  98502. });
  98503. keyframeStr += `${tab}}\n`;
  98504. });
  98505. keyframeStr += `}\n`;
  98506. const kfElm = document.createElement('style');
  98507. kfElm.textContent = keyframeStr;
  98508. return kfElm;
  98509. }
  98510. animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {
  98511. if ((typeof ngDevMode === 'undefined' || ngDevMode) && scrubberAccessRequested) {
  98512. notifyFaultyScrubber();
  98513. }
  98514. const previousCssKeyframePlayers = previousPlayers.filter(player => player instanceof CssKeyframesPlayer);
  98515. const previousStyles = {};
  98516. if (allowPreviousPlayerStylesMerge(duration, delay)) {
  98517. previousCssKeyframePlayers.forEach(player => {
  98518. let styles = player.currentSnapshot;
  98519. Object.keys(styles).forEach(prop => previousStyles[prop] = styles[prop]);
  98520. });
  98521. }
  98522. keyframes = balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles);
  98523. const finalStyles = flattenKeyframesIntoStyles(keyframes);
  98524. // if there is no animation then there is no point in applying
  98525. // styles and waiting for an event to get fired. This causes lag.
  98526. // It's better to just directly apply the styles to the element
  98527. // via the direct styling animation player.
  98528. if (duration == 0) {
  98529. return new DirectStylePlayer(element, finalStyles);
  98530. }
  98531. const animationName = `${KEYFRAMES_NAME_PREFIX}${this._count++}`;
  98532. const kfElm = this.buildKeyframeElement(element, animationName, keyframes);
  98533. document.querySelector('head').appendChild(kfElm);
  98534. const specialStyles = packageNonAnimatableStyles(element, keyframes);
  98535. const player = new CssKeyframesPlayer(element, keyframes, animationName, duration, delay, easing, finalStyles, specialStyles);
  98536. player.onDestroy(() => removeElement(kfElm));
  98537. return player;
  98538. }
  98539. }
  98540. function flattenKeyframesIntoStyles(keyframes) {
  98541. let flatKeyframes = {};
  98542. if (keyframes) {
  98543. const kfs = Array.isArray(keyframes) ? keyframes : [keyframes];
  98544. kfs.forEach(kf => {
  98545. Object.keys(kf).forEach(prop => {
  98546. if (prop == 'offset' || prop == 'easing')
  98547. return;
  98548. flatKeyframes[prop] = kf[prop];
  98549. });
  98550. });
  98551. }
  98552. return flatKeyframes;
  98553. }
  98554. function removeElement(node) {
  98555. node.parentNode.removeChild(node);
  98556. }
  98557. let warningIssued = false;
  98558. function notifyFaultyScrubber() {
  98559. if (warningIssued)
  98560. return;
  98561. console.warn('@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n', ' visit https://bit.ly/IWukam to learn more about using the web-animation-js polyfill.');
  98562. warningIssued = true;
  98563. }
  98564. class WebAnimationsPlayer {
  98565. constructor(element, keyframes, options, _specialStyles) {
  98566. this.element = element;
  98567. this.keyframes = keyframes;
  98568. this.options = options;
  98569. this._specialStyles = _specialStyles;
  98570. this._onDoneFns = [];
  98571. this._onStartFns = [];
  98572. this._onDestroyFns = [];
  98573. this._initialized = false;
  98574. this._finished = false;
  98575. this._started = false;
  98576. this._destroyed = false;
  98577. this.time = 0;
  98578. this.parentPlayer = null;
  98579. this.currentSnapshot = {};
  98580. this._duration = options['duration'];
  98581. this._delay = options['delay'] || 0;
  98582. this.time = this._duration + this._delay;
  98583. }
  98584. _onFinish() {
  98585. if (!this._finished) {
  98586. this._finished = true;
  98587. this._onDoneFns.forEach(fn => fn());
  98588. this._onDoneFns = [];
  98589. }
  98590. }
  98591. init() {
  98592. this._buildPlayer();
  98593. this._preparePlayerBeforeStart();
  98594. }
  98595. _buildPlayer() {
  98596. if (this._initialized)
  98597. return;
  98598. this._initialized = true;
  98599. const keyframes = this.keyframes;
  98600. this.domPlayer =
  98601. this._triggerWebAnimation(this.element, keyframes, this.options);
  98602. this._finalKeyframe = keyframes.length ? keyframes[keyframes.length - 1] : {};
  98603. this.domPlayer.addEventListener('finish', () => this._onFinish());
  98604. }
  98605. _preparePlayerBeforeStart() {
  98606. // this is required so that the player doesn't start to animate right away
  98607. if (this._delay) {
  98608. this._resetDomPlayerState();
  98609. }
  98610. else {
  98611. this.domPlayer.pause();
  98612. }
  98613. }
  98614. /** @internal */
  98615. _triggerWebAnimation(element, keyframes, options) {
  98616. // jscompiler doesn't seem to know animate is a native property because it's not fully
  98617. // supported yet across common browsers (we polyfill it for Edge/Safari) [CL #143630929]
  98618. return element['animate'](keyframes, options);
  98619. }
  98620. onStart(fn) {
  98621. this._onStartFns.push(fn);
  98622. }
  98623. onDone(fn) {
  98624. this._onDoneFns.push(fn);
  98625. }
  98626. onDestroy(fn) {
  98627. this._onDestroyFns.push(fn);
  98628. }
  98629. play() {
  98630. this._buildPlayer();
  98631. if (!this.hasStarted()) {
  98632. this._onStartFns.forEach(fn => fn());
  98633. this._onStartFns = [];
  98634. this._started = true;
  98635. if (this._specialStyles) {
  98636. this._specialStyles.start();
  98637. }
  98638. }
  98639. this.domPlayer.play();
  98640. }
  98641. pause() {
  98642. this.init();
  98643. this.domPlayer.pause();
  98644. }
  98645. finish() {
  98646. this.init();
  98647. if (this._specialStyles) {
  98648. this._specialStyles.finish();
  98649. }
  98650. this._onFinish();
  98651. this.domPlayer.finish();
  98652. }
  98653. reset() {
  98654. this._resetDomPlayerState();
  98655. this._destroyed = false;
  98656. this._finished = false;
  98657. this._started = false;
  98658. }
  98659. _resetDomPlayerState() {
  98660. if (this.domPlayer) {
  98661. this.domPlayer.cancel();
  98662. }
  98663. }
  98664. restart() {
  98665. this.reset();
  98666. this.play();
  98667. }
  98668. hasStarted() {
  98669. return this._started;
  98670. }
  98671. destroy() {
  98672. if (!this._destroyed) {
  98673. this._destroyed = true;
  98674. this._resetDomPlayerState();
  98675. this._onFinish();
  98676. if (this._specialStyles) {
  98677. this._specialStyles.destroy();
  98678. }
  98679. this._onDestroyFns.forEach(fn => fn());
  98680. this._onDestroyFns = [];
  98681. }
  98682. }
  98683. setPosition(p) {
  98684. this.domPlayer.currentTime = p * this.time;
  98685. }
  98686. getPosition() {
  98687. return this.domPlayer.currentTime / this.time;
  98688. }
  98689. get totalTime() {
  98690. return this._delay + this._duration;
  98691. }
  98692. beforeDestroy() {
  98693. const styles = {};
  98694. if (this.hasStarted()) {
  98695. Object.keys(this._finalKeyframe).forEach(prop => {
  98696. if (prop != 'offset') {
  98697. styles[prop] =
  98698. this._finished ? this._finalKeyframe[prop] : computeStyle(this.element, prop);
  98699. }
  98700. });
  98701. }
  98702. this.currentSnapshot = styles;
  98703. }
  98704. /** @internal */
  98705. triggerCallback(phaseName) {
  98706. const methods = phaseName == 'start' ? this._onStartFns : this._onDoneFns;
  98707. methods.forEach(fn => fn());
  98708. methods.length = 0;
  98709. }
  98710. }
  98711. class WebAnimationsDriver {
  98712. constructor() {
  98713. this._isNativeImpl = /\{\s*\[native\s+code\]\s*\}/.test(getElementAnimateFn().toString());
  98714. this._cssKeyframesDriver = new CssKeyframesDriver();
  98715. }
  98716. validateStyleProperty(prop) {
  98717. return validateStyleProperty(prop);
  98718. }
  98719. matchesElement(element, selector) {
  98720. return matchesElement(element, selector);
  98721. }
  98722. containsElement(elm1, elm2) {
  98723. return containsElement(elm1, elm2);
  98724. }
  98725. query(element, selector, multi) {
  98726. return invokeQuery(element, selector, multi);
  98727. }
  98728. computeStyle(element, prop, defaultValue) {
  98729. return window.getComputedStyle(element)[prop];
  98730. }
  98731. overrideWebAnimationsSupport(supported) {
  98732. this._isNativeImpl = supported;
  98733. }
  98734. animate(element, keyframes, duration, delay, easing, previousPlayers = [], scrubberAccessRequested) {
  98735. const useKeyframes = !scrubberAccessRequested && !this._isNativeImpl;
  98736. if (useKeyframes) {
  98737. return this._cssKeyframesDriver.animate(element, keyframes, duration, delay, easing, previousPlayers);
  98738. }
  98739. const fill = delay == 0 ? 'both' : 'forwards';
  98740. const playerOptions = { duration, delay, fill };
  98741. // we check for this to avoid having a null|undefined value be present
  98742. // for the easing (which results in an error for certain browsers #9752)
  98743. if (easing) {
  98744. playerOptions['easing'] = easing;
  98745. }
  98746. const previousStyles = {};
  98747. const previousWebAnimationPlayers = previousPlayers.filter(player => player instanceof WebAnimationsPlayer);
  98748. if (allowPreviousPlayerStylesMerge(duration, delay)) {
  98749. previousWebAnimationPlayers.forEach(player => {
  98750. let styles = player.currentSnapshot;
  98751. Object.keys(styles).forEach(prop => previousStyles[prop] = styles[prop]);
  98752. });
  98753. }
  98754. keyframes = keyframes.map(styles => copyStyles(styles, false));
  98755. keyframes = balancePreviousStylesIntoKeyframes(element, keyframes, previousStyles);
  98756. const specialStyles = packageNonAnimatableStyles(element, keyframes);
  98757. return new WebAnimationsPlayer(element, keyframes, playerOptions, specialStyles);
  98758. }
  98759. }
  98760. function supportsWebAnimations() {
  98761. return typeof getElementAnimateFn() === 'function';
  98762. }
  98763. function getElementAnimateFn() {
  98764. return (isBrowser() && Element.prototype['animate']) || {};
  98765. }
  98766. /**
  98767. * @license
  98768. * Copyright Google LLC All Rights Reserved.
  98769. *
  98770. * Use of this source code is governed by an MIT-style license that can be
  98771. * found in the LICENSE file at https://angular.io/license
  98772. */
  98773. /**
  98774. * @license
  98775. * Copyright Google LLC All Rights Reserved.
  98776. *
  98777. * Use of this source code is governed by an MIT-style license that can be
  98778. * found in the LICENSE file at https://angular.io/license
  98779. */
  98780. /**
  98781. * @license
  98782. * Copyright Google LLC All Rights Reserved.
  98783. *
  98784. * Use of this source code is governed by an MIT-style license that can be
  98785. * found in the LICENSE file at https://angular.io/license
  98786. */
  98787. /**
  98788. * @license
  98789. * Copyright Google LLC All Rights Reserved.
  98790. *
  98791. * Use of this source code is governed by an MIT-style license that can be
  98792. * found in the LICENSE file at https://angular.io/license
  98793. */
  98794. /**
  98795. * Generated bundle index. Do not edit.
  98796. */
  98797. //# sourceMappingURL=browser.js.map
  98798. /***/ }),
  98799. /***/ "tS1D":
  98800. /*!******************************************************************!*\
  98801. !*** ./node_modules/rxjs/_esm2015/internal/operators/timeout.js ***!
  98802. \******************************************************************/
  98803. /*! exports provided: timeout */
  98804. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  98805. "use strict";
  98806. __webpack_require__.r(__webpack_exports__);
  98807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "timeout", function() { return timeout; });
  98808. /* harmony import */ var _scheduler_async__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../scheduler/async */ "D0XW");
  98809. /* harmony import */ var _util_TimeoutError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/TimeoutError */ "Y6u4");
  98810. /* harmony import */ var _timeoutWith__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./timeoutWith */ "syX2");
  98811. /* harmony import */ var _observable_throwError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../observable/throwError */ "z6cu");
  98812. function timeout(due, scheduler = _scheduler_async__WEBPACK_IMPORTED_MODULE_0__["async"]) {
  98813. return Object(_timeoutWith__WEBPACK_IMPORTED_MODULE_2__["timeoutWith"])(due, Object(_observable_throwError__WEBPACK_IMPORTED_MODULE_3__["throwError"])(new _util_TimeoutError__WEBPACK_IMPORTED_MODULE_1__["TimeoutError"]()), scheduler);
  98814. }
  98815. //# sourceMappingURL=timeout.js.map
  98816. /***/ }),
  98817. /***/ "tf+s":
  98818. /*!**********************************************************************!*\
  98819. !*** ./node_modules/rxjs/_esm2015/internal/operators/subscribeOn.js ***!
  98820. \**********************************************************************/
  98821. /*! exports provided: subscribeOn */
  98822. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  98823. "use strict";
  98824. __webpack_require__.r(__webpack_exports__);
  98825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "subscribeOn", function() { return subscribeOn; });
  98826. /* harmony import */ var _observable_SubscribeOnObservable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/SubscribeOnObservable */ "O4y0");
  98827. function subscribeOn(scheduler, delay = 0) {
  98828. return function subscribeOnOperatorFunction(source) {
  98829. return source.lift(new SubscribeOnOperator(scheduler, delay));
  98830. };
  98831. }
  98832. class SubscribeOnOperator {
  98833. constructor(scheduler, delay) {
  98834. this.scheduler = scheduler;
  98835. this.delay = delay;
  98836. }
  98837. call(subscriber, source) {
  98838. return new _observable_SubscribeOnObservable__WEBPACK_IMPORTED_MODULE_0__["SubscribeOnObservable"](source, this.delay, this.scheduler).subscribe(subscriber);
  98839. }
  98840. }
  98841. //# sourceMappingURL=subscribeOn.js.map
  98842. /***/ }),
  98843. /***/ "tk/3":
  98844. /*!********************************************************************!*\
  98845. !*** ./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js ***!
  98846. \********************************************************************/
  98847. /*! exports provided: HTTP_INTERCEPTORS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpErrorResponse, HttpEventType, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, XhrFactory, ɵHttpInterceptingHandler, ɵangular_packages_common_http_http_a, ɵangular_packages_common_http_http_b, ɵangular_packages_common_http_http_c, ɵangular_packages_common_http_http_d, ɵangular_packages_common_http_http_e, ɵangular_packages_common_http_http_f, ɵangular_packages_common_http_http_g, ɵangular_packages_common_http_http_h */
  98848. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  98849. "use strict";
  98850. __webpack_require__.r(__webpack_exports__);
  98851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HTTP_INTERCEPTORS", function() { return HTTP_INTERCEPTORS; });
  98852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpBackend", function() { return HttpBackend; });
  98853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpClient", function() { return HttpClient; });
  98854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpClientJsonpModule", function() { return HttpClientJsonpModule; });
  98855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpClientModule", function() { return HttpClientModule; });
  98856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpClientXsrfModule", function() { return HttpClientXsrfModule; });
  98857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpErrorResponse", function() { return HttpErrorResponse; });
  98858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpEventType", function() { return HttpEventType; });
  98859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpHandler", function() { return HttpHandler; });
  98860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpHeaderResponse", function() { return HttpHeaderResponse; });
  98861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpHeaders", function() { return HttpHeaders; });
  98862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpParams", function() { return HttpParams; });
  98863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpRequest", function() { return HttpRequest; });
  98864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpResponse", function() { return HttpResponse; });
  98865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpResponseBase", function() { return HttpResponseBase; });
  98866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpUrlEncodingCodec", function() { return HttpUrlEncodingCodec; });
  98867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpXhrBackend", function() { return HttpXhrBackend; });
  98868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HttpXsrfTokenExtractor", function() { return HttpXsrfTokenExtractor; });
  98869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonpClientBackend", function() { return JsonpClientBackend; });
  98870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JsonpInterceptor", function() { return JsonpInterceptor; });
  98871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "XhrFactory", function() { return XhrFactory; });
  98872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵHttpInterceptingHandler", function() { return HttpInterceptingHandler; });
  98873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_a", function() { return NoopInterceptor; });
  98874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_b", function() { return JsonpCallbackContext; });
  98875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_c", function() { return jsonpCallbackContext; });
  98876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_d", function() { return BrowserXhr; });
  98877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_e", function() { return XSRF_COOKIE_NAME; });
  98878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_f", function() { return XSRF_HEADER_NAME; });
  98879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_g", function() { return HttpXsrfCookieExtractor; });
  98880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_common_http_http_h", function() { return HttpXsrfInterceptor; });
  98881. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "fXoL");
  98882. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "qCKp");
  98883. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  98884. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "ofXK");
  98885. /**
  98886. * @license Angular v11.0.4
  98887. * (c) 2010-2020 Google LLC. https://angular.io/
  98888. * License: MIT
  98889. */
  98890. /**
  98891. * @license
  98892. * Copyright Google LLC All Rights Reserved.
  98893. *
  98894. * Use of this source code is governed by an MIT-style license that can be
  98895. * found in the LICENSE file at https://angular.io/license
  98896. */
  98897. /**
  98898. * Transforms an `HttpRequest` into a stream of `HttpEvent`s, one of which will likely be a
  98899. * `HttpResponse`.
  98900. *
  98901. * `HttpHandler` is injectable. When injected, the handler instance dispatches requests to the
  98902. * first interceptor in the chain, which dispatches to the second, etc, eventually reaching the
  98903. * `HttpBackend`.
  98904. *
  98905. * In an `HttpInterceptor`, the `HttpHandler` parameter is the next interceptor in the chain.
  98906. *
  98907. * @publicApi
  98908. */
  98909. class HttpHandler {
  98910. }
  98911. /**
  98912. * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
  98913. *
  98914. * Interceptors sit between the `HttpClient` interface and the `HttpBackend`.
  98915. *
  98916. * When injected, `HttpBackend` dispatches requests directly to the backend, without going
  98917. * through the interceptor chain.
  98918. *
  98919. * @publicApi
  98920. */
  98921. class HttpBackend {
  98922. }
  98923. /**
  98924. * @license
  98925. * Copyright Google LLC All Rights Reserved.
  98926. *
  98927. * Use of this source code is governed by an MIT-style license that can be
  98928. * found in the LICENSE file at https://angular.io/license
  98929. */
  98930. /**
  98931. * Represents the header configuration options for an HTTP request.
  98932. * Instances are immutable. Modifying methods return a cloned
  98933. * instance with the change. The original object is never changed.
  98934. *
  98935. * @publicApi
  98936. */
  98937. class HttpHeaders {
  98938. /** Constructs a new HTTP header object with the given values.*/
  98939. constructor(headers) {
  98940. /**
  98941. * Internal map of lowercased header names to the normalized
  98942. * form of the name (the form seen first).
  98943. */
  98944. this.normalizedNames = new Map();
  98945. /**
  98946. * Queued updates to be materialized the next initialization.
  98947. */
  98948. this.lazyUpdate = null;
  98949. if (!headers) {
  98950. this.headers = new Map();
  98951. }
  98952. else if (typeof headers === 'string') {
  98953. this.lazyInit = () => {
  98954. this.headers = new Map();
  98955. headers.split('\n').forEach(line => {
  98956. const index = line.indexOf(':');
  98957. if (index > 0) {
  98958. const name = line.slice(0, index);
  98959. const key = name.toLowerCase();
  98960. const value = line.slice(index + 1).trim();
  98961. this.maybeSetNormalizedName(name, key);
  98962. if (this.headers.has(key)) {
  98963. this.headers.get(key).push(value);
  98964. }
  98965. else {
  98966. this.headers.set(key, [value]);
  98967. }
  98968. }
  98969. });
  98970. };
  98971. }
  98972. else {
  98973. this.lazyInit = () => {
  98974. this.headers = new Map();
  98975. Object.keys(headers).forEach(name => {
  98976. let values = headers[name];
  98977. const key = name.toLowerCase();
  98978. if (typeof values === 'string') {
  98979. values = [values];
  98980. }
  98981. if (values.length > 0) {
  98982. this.headers.set(key, values);
  98983. this.maybeSetNormalizedName(name, key);
  98984. }
  98985. });
  98986. };
  98987. }
  98988. }
  98989. /**
  98990. * Checks for existence of a given header.
  98991. *
  98992. * @param name The header name to check for existence.
  98993. *
  98994. * @returns True if the header exists, false otherwise.
  98995. */
  98996. has(name) {
  98997. this.init();
  98998. return this.headers.has(name.toLowerCase());
  98999. }
  99000. /**
  99001. * Retrieves the first value of a given header.
  99002. *
  99003. * @param name The header name.
  99004. *
  99005. * @returns The value string if the header exists, null otherwise
  99006. */
  99007. get(name) {
  99008. this.init();
  99009. const values = this.headers.get(name.toLowerCase());
  99010. return values && values.length > 0 ? values[0] : null;
  99011. }
  99012. /**
  99013. * Retrieves the names of the headers.
  99014. *
  99015. * @returns A list of header names.
  99016. */
  99017. keys() {
  99018. this.init();
  99019. return Array.from(this.normalizedNames.values());
  99020. }
  99021. /**
  99022. * Retrieves a list of values for a given header.
  99023. *
  99024. * @param name The header name from which to retrieve values.
  99025. *
  99026. * @returns A string of values if the header exists, null otherwise.
  99027. */
  99028. getAll(name) {
  99029. this.init();
  99030. return this.headers.get(name.toLowerCase()) || null;
  99031. }
  99032. /**
  99033. * Appends a new value to the existing set of values for a header
  99034. * and returns them in a clone of the original instance.
  99035. *
  99036. * @param name The header name for which to append the values.
  99037. * @param value The value to append.
  99038. *
  99039. * @returns A clone of the HTTP headers object with the value appended to the given header.
  99040. */
  99041. append(name, value) {
  99042. return this.clone({ name, value, op: 'a' });
  99043. }
  99044. /**
  99045. * Sets or modifies a value for a given header in a clone of the original instance.
  99046. * If the header already exists, its value is replaced with the given value
  99047. * in the returned object.
  99048. *
  99049. * @param name The header name.
  99050. * @param value The value or values to set or overide for the given header.
  99051. *
  99052. * @returns A clone of the HTTP headers object with the newly set header value.
  99053. */
  99054. set(name, value) {
  99055. return this.clone({ name, value, op: 's' });
  99056. }
  99057. /**
  99058. * Deletes values for a given header in a clone of the original instance.
  99059. *
  99060. * @param name The header name.
  99061. * @param value The value or values to delete for the given header.
  99062. *
  99063. * @returns A clone of the HTTP headers object with the given value deleted.
  99064. */
  99065. delete(name, value) {
  99066. return this.clone({ name, value, op: 'd' });
  99067. }
  99068. maybeSetNormalizedName(name, lcName) {
  99069. if (!this.normalizedNames.has(lcName)) {
  99070. this.normalizedNames.set(lcName, name);
  99071. }
  99072. }
  99073. init() {
  99074. if (!!this.lazyInit) {
  99075. if (this.lazyInit instanceof HttpHeaders) {
  99076. this.copyFrom(this.lazyInit);
  99077. }
  99078. else {
  99079. this.lazyInit();
  99080. }
  99081. this.lazyInit = null;
  99082. if (!!this.lazyUpdate) {
  99083. this.lazyUpdate.forEach(update => this.applyUpdate(update));
  99084. this.lazyUpdate = null;
  99085. }
  99086. }
  99087. }
  99088. copyFrom(other) {
  99089. other.init();
  99090. Array.from(other.headers.keys()).forEach(key => {
  99091. this.headers.set(key, other.headers.get(key));
  99092. this.normalizedNames.set(key, other.normalizedNames.get(key));
  99093. });
  99094. }
  99095. clone(update) {
  99096. const clone = new HttpHeaders();
  99097. clone.lazyInit =
  99098. (!!this.lazyInit && this.lazyInit instanceof HttpHeaders) ? this.lazyInit : this;
  99099. clone.lazyUpdate = (this.lazyUpdate || []).concat([update]);
  99100. return clone;
  99101. }
  99102. applyUpdate(update) {
  99103. const key = update.name.toLowerCase();
  99104. switch (update.op) {
  99105. case 'a':
  99106. case 's':
  99107. let value = update.value;
  99108. if (typeof value === 'string') {
  99109. value = [value];
  99110. }
  99111. if (value.length === 0) {
  99112. return;
  99113. }
  99114. this.maybeSetNormalizedName(update.name, key);
  99115. const base = (update.op === 'a' ? this.headers.get(key) : undefined) || [];
  99116. base.push(...value);
  99117. this.headers.set(key, base);
  99118. break;
  99119. case 'd':
  99120. const toDelete = update.value;
  99121. if (!toDelete) {
  99122. this.headers.delete(key);
  99123. this.normalizedNames.delete(key);
  99124. }
  99125. else {
  99126. let existing = this.headers.get(key);
  99127. if (!existing) {
  99128. return;
  99129. }
  99130. existing = existing.filter(value => toDelete.indexOf(value) === -1);
  99131. if (existing.length === 0) {
  99132. this.headers.delete(key);
  99133. this.normalizedNames.delete(key);
  99134. }
  99135. else {
  99136. this.headers.set(key, existing);
  99137. }
  99138. }
  99139. break;
  99140. }
  99141. }
  99142. /**
  99143. * @internal
  99144. */
  99145. forEach(fn) {
  99146. this.init();
  99147. Array.from(this.normalizedNames.keys())
  99148. .forEach(key => fn(this.normalizedNames.get(key), this.headers.get(key)));
  99149. }
  99150. }
  99151. /**
  99152. * @license
  99153. * Copyright Google LLC All Rights Reserved.
  99154. *
  99155. * Use of this source code is governed by an MIT-style license that can be
  99156. * found in the LICENSE file at https://angular.io/license
  99157. */
  99158. /**
  99159. * Provides encoding and decoding of URL parameter and query-string values.
  99160. *
  99161. * Serializes and parses URL parameter keys and values to encode and decode them.
  99162. * If you pass URL query parameters without encoding,
  99163. * the query parameters can be misinterpreted at the receiving end.
  99164. *
  99165. *
  99166. * @publicApi
  99167. */
  99168. class HttpUrlEncodingCodec {
  99169. /**
  99170. * Encodes a key name for a URL parameter or query-string.
  99171. * @param key The key name.
  99172. * @returns The encoded key name.
  99173. */
  99174. encodeKey(key) {
  99175. return standardEncoding(key);
  99176. }
  99177. /**
  99178. * Encodes the value of a URL parameter or query-string.
  99179. * @param value The value.
  99180. * @returns The encoded value.
  99181. */
  99182. encodeValue(value) {
  99183. return standardEncoding(value);
  99184. }
  99185. /**
  99186. * Decodes an encoded URL parameter or query-string key.
  99187. * @param key The encoded key name.
  99188. * @returns The decoded key name.
  99189. */
  99190. decodeKey(key) {
  99191. return decodeURIComponent(key);
  99192. }
  99193. /**
  99194. * Decodes an encoded URL parameter or query-string value.
  99195. * @param value The encoded value.
  99196. * @returns The decoded value.
  99197. */
  99198. decodeValue(value) {
  99199. return decodeURIComponent(value);
  99200. }
  99201. }
  99202. function paramParser(rawParams, codec) {
  99203. const map = new Map();
  99204. if (rawParams.length > 0) {
  99205. const params = rawParams.split('&');
  99206. params.forEach((param) => {
  99207. const eqIdx = param.indexOf('=');
  99208. const [key, val] = eqIdx == -1 ?
  99209. [codec.decodeKey(param), ''] :
  99210. [codec.decodeKey(param.slice(0, eqIdx)), codec.decodeValue(param.slice(eqIdx + 1))];
  99211. const list = map.get(key) || [];
  99212. list.push(val);
  99213. map.set(key, list);
  99214. });
  99215. }
  99216. return map;
  99217. }
  99218. function standardEncoding(v) {
  99219. return encodeURIComponent(v)
  99220. .replace(/%40/gi, '@')
  99221. .replace(/%3A/gi, ':')
  99222. .replace(/%24/gi, '$')
  99223. .replace(/%2C/gi, ',')
  99224. .replace(/%3B/gi, ';')
  99225. .replace(/%2B/gi, '+')
  99226. .replace(/%3D/gi, '=')
  99227. .replace(/%3F/gi, '?')
  99228. .replace(/%2F/gi, '/');
  99229. }
  99230. /**
  99231. * An HTTP request/response body that represents serialized parameters,
  99232. * per the MIME type `application/x-www-form-urlencoded`.
  99233. *
  99234. * This class is immutable; all mutation operations return a new instance.
  99235. *
  99236. * @publicApi
  99237. */
  99238. class HttpParams {
  99239. constructor(options = {}) {
  99240. this.updates = null;
  99241. this.cloneFrom = null;
  99242. this.encoder = options.encoder || new HttpUrlEncodingCodec();
  99243. if (!!options.fromString) {
  99244. if (!!options.fromObject) {
  99245. throw new Error(`Cannot specify both fromString and fromObject.`);
  99246. }
  99247. this.map = paramParser(options.fromString, this.encoder);
  99248. }
  99249. else if (!!options.fromObject) {
  99250. this.map = new Map();
  99251. Object.keys(options.fromObject).forEach(key => {
  99252. const value = options.fromObject[key];
  99253. this.map.set(key, Array.isArray(value) ? value : [value]);
  99254. });
  99255. }
  99256. else {
  99257. this.map = null;
  99258. }
  99259. }
  99260. /**
  99261. * Reports whether the body includes one or more values for a given parameter.
  99262. * @param param The parameter name.
  99263. * @returns True if the parameter has one or more values,
  99264. * false if it has no value or is not present.
  99265. */
  99266. has(param) {
  99267. this.init();
  99268. return this.map.has(param);
  99269. }
  99270. /**
  99271. * Retrieves the first value for a parameter.
  99272. * @param param The parameter name.
  99273. * @returns The first value of the given parameter,
  99274. * or `null` if the parameter is not present.
  99275. */
  99276. get(param) {
  99277. this.init();
  99278. const res = this.map.get(param);
  99279. return !!res ? res[0] : null;
  99280. }
  99281. /**
  99282. * Retrieves all values for a parameter.
  99283. * @param param The parameter name.
  99284. * @returns All values in a string array,
  99285. * or `null` if the parameter not present.
  99286. */
  99287. getAll(param) {
  99288. this.init();
  99289. return this.map.get(param) || null;
  99290. }
  99291. /**
  99292. * Retrieves all the parameters for this body.
  99293. * @returns The parameter names in a string array.
  99294. */
  99295. keys() {
  99296. this.init();
  99297. return Array.from(this.map.keys());
  99298. }
  99299. /**
  99300. * Appends a new value to existing values for a parameter.
  99301. * @param param The parameter name.
  99302. * @param value The new value to add.
  99303. * @return A new body with the appended value.
  99304. */
  99305. append(param, value) {
  99306. return this.clone({ param, value, op: 'a' });
  99307. }
  99308. /**
  99309. * Replaces the value for a parameter.
  99310. * @param param The parameter name.
  99311. * @param value The new value.
  99312. * @return A new body with the new value.
  99313. */
  99314. set(param, value) {
  99315. return this.clone({ param, value, op: 's' });
  99316. }
  99317. /**
  99318. * Removes a given value or all values from a parameter.
  99319. * @param param The parameter name.
  99320. * @param value The value to remove, if provided.
  99321. * @return A new body with the given value removed, or with all values
  99322. * removed if no value is specified.
  99323. */
  99324. delete(param, value) {
  99325. return this.clone({ param, value, op: 'd' });
  99326. }
  99327. /**
  99328. * Serializes the body to an encoded string, where key-value pairs (separated by `=`) are
  99329. * separated by `&`s.
  99330. */
  99331. toString() {
  99332. this.init();
  99333. return this.keys()
  99334. .map(key => {
  99335. const eKey = this.encoder.encodeKey(key);
  99336. // `a: ['1']` produces `'a=1'`
  99337. // `b: []` produces `''`
  99338. // `c: ['1', '2']` produces `'c=1&c=2'`
  99339. return this.map.get(key).map(value => eKey + '=' + this.encoder.encodeValue(value))
  99340. .join('&');
  99341. })
  99342. // filter out empty values because `b: []` produces `''`
  99343. // which results in `a=1&&c=1&c=2` instead of `a=1&c=1&c=2` if we don't
  99344. .filter(param => param !== '')
  99345. .join('&');
  99346. }
  99347. clone(update) {
  99348. const clone = new HttpParams({ encoder: this.encoder });
  99349. clone.cloneFrom = this.cloneFrom || this;
  99350. clone.updates = (this.updates || []).concat([update]);
  99351. return clone;
  99352. }
  99353. init() {
  99354. if (this.map === null) {
  99355. this.map = new Map();
  99356. }
  99357. if (this.cloneFrom !== null) {
  99358. this.cloneFrom.init();
  99359. this.cloneFrom.keys().forEach(key => this.map.set(key, this.cloneFrom.map.get(key)));
  99360. this.updates.forEach(update => {
  99361. switch (update.op) {
  99362. case 'a':
  99363. case 's':
  99364. const base = (update.op === 'a' ? this.map.get(update.param) : undefined) || [];
  99365. base.push(update.value);
  99366. this.map.set(update.param, base);
  99367. break;
  99368. case 'd':
  99369. if (update.value !== undefined) {
  99370. let base = this.map.get(update.param) || [];
  99371. const idx = base.indexOf(update.value);
  99372. if (idx !== -1) {
  99373. base.splice(idx, 1);
  99374. }
  99375. if (base.length > 0) {
  99376. this.map.set(update.param, base);
  99377. }
  99378. else {
  99379. this.map.delete(update.param);
  99380. }
  99381. }
  99382. else {
  99383. this.map.delete(update.param);
  99384. break;
  99385. }
  99386. }
  99387. });
  99388. this.cloneFrom = this.updates = null;
  99389. }
  99390. }
  99391. }
  99392. /**
  99393. * @license
  99394. * Copyright Google LLC All Rights Reserved.
  99395. *
  99396. * Use of this source code is governed by an MIT-style license that can be
  99397. * found in the LICENSE file at https://angular.io/license
  99398. */
  99399. /**
  99400. * Determine whether the given HTTP method may include a body.
  99401. */
  99402. function mightHaveBody(method) {
  99403. switch (method) {
  99404. case 'DELETE':
  99405. case 'GET':
  99406. case 'HEAD':
  99407. case 'OPTIONS':
  99408. case 'JSONP':
  99409. return false;
  99410. default:
  99411. return true;
  99412. }
  99413. }
  99414. /**
  99415. * Safely assert whether the given value is an ArrayBuffer.
  99416. *
  99417. * In some execution environments ArrayBuffer is not defined.
  99418. */
  99419. function isArrayBuffer(value) {
  99420. return typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer;
  99421. }
  99422. /**
  99423. * Safely assert whether the given value is a Blob.
  99424. *
  99425. * In some execution environments Blob is not defined.
  99426. */
  99427. function isBlob(value) {
  99428. return typeof Blob !== 'undefined' && value instanceof Blob;
  99429. }
  99430. /**
  99431. * Safely assert whether the given value is a FormData instance.
  99432. *
  99433. * In some execution environments FormData is not defined.
  99434. */
  99435. function isFormData(value) {
  99436. return typeof FormData !== 'undefined' && value instanceof FormData;
  99437. }
  99438. /**
  99439. * An outgoing HTTP request with an optional typed body.
  99440. *
  99441. * `HttpRequest` represents an outgoing request, including URL, method,
  99442. * headers, body, and other request configuration options. Instances should be
  99443. * assumed to be immutable. To modify a `HttpRequest`, the `clone`
  99444. * method should be used.
  99445. *
  99446. * @publicApi
  99447. */
  99448. class HttpRequest {
  99449. constructor(method, url, third, fourth) {
  99450. this.url = url;
  99451. /**
  99452. * The request body, or `null` if one isn't set.
  99453. *
  99454. * Bodies are not enforced to be immutable, as they can include a reference to any
  99455. * user-defined data type. However, interceptors should take care to preserve
  99456. * idempotence by treating them as such.
  99457. */
  99458. this.body = null;
  99459. /**
  99460. * Whether this request should be made in a way that exposes progress events.
  99461. *
  99462. * Progress events are expensive (change detection runs on each event) and so
  99463. * they should only be requested if the consumer intends to monitor them.
  99464. */
  99465. this.reportProgress = false;
  99466. /**
  99467. * Whether this request should be sent with outgoing credentials (cookies).
  99468. */
  99469. this.withCredentials = false;
  99470. /**
  99471. * The expected response type of the server.
  99472. *
  99473. * This is used to parse the response appropriately before returning it to
  99474. * the requestee.
  99475. */
  99476. this.responseType = 'json';
  99477. this.method = method.toUpperCase();
  99478. // Next, need to figure out which argument holds the HttpRequestInit
  99479. // options, if any.
  99480. let options;
  99481. // Check whether a body argument is expected. The only valid way to omit
  99482. // the body argument is to use a known no-body method like GET.
  99483. if (mightHaveBody(this.method) || !!fourth) {
  99484. // Body is the third argument, options are the fourth.
  99485. this.body = (third !== undefined) ? third : null;
  99486. options = fourth;
  99487. }
  99488. else {
  99489. // No body required, options are the third argument. The body stays null.
  99490. options = third;
  99491. }
  99492. // If options have been passed, interpret them.
  99493. if (options) {
  99494. // Normalize reportProgress and withCredentials.
  99495. this.reportProgress = !!options.reportProgress;
  99496. this.withCredentials = !!options.withCredentials;
  99497. // Override default response type of 'json' if one is provided.
  99498. if (!!options.responseType) {
  99499. this.responseType = options.responseType;
  99500. }
  99501. // Override headers if they're provided.
  99502. if (!!options.headers) {
  99503. this.headers = options.headers;
  99504. }
  99505. if (!!options.params) {
  99506. this.params = options.params;
  99507. }
  99508. }
  99509. // If no headers have been passed in, construct a new HttpHeaders instance.
  99510. if (!this.headers) {
  99511. this.headers = new HttpHeaders();
  99512. }
  99513. // If no parameters have been passed in, construct a new HttpUrlEncodedParams instance.
  99514. if (!this.params) {
  99515. this.params = new HttpParams();
  99516. this.urlWithParams = url;
  99517. }
  99518. else {
  99519. // Encode the parameters to a string in preparation for inclusion in the URL.
  99520. const params = this.params.toString();
  99521. if (params.length === 0) {
  99522. // No parameters, the visible URL is just the URL given at creation time.
  99523. this.urlWithParams = url;
  99524. }
  99525. else {
  99526. // Does the URL already have query parameters? Look for '?'.
  99527. const qIdx = url.indexOf('?');
  99528. // There are 3 cases to handle:
  99529. // 1) No existing parameters -> append '?' followed by params.
  99530. // 2) '?' exists and is followed by existing query string ->
  99531. // append '&' followed by params.
  99532. // 3) '?' exists at the end of the url -> append params directly.
  99533. // This basically amounts to determining the character, if any, with
  99534. // which to join the URL and parameters.
  99535. const sep = qIdx === -1 ? '?' : (qIdx < url.length - 1 ? '&' : '');
  99536. this.urlWithParams = url + sep + params;
  99537. }
  99538. }
  99539. }
  99540. /**
  99541. * Transform the free-form body into a serialized format suitable for
  99542. * transmission to the server.
  99543. */
  99544. serializeBody() {
  99545. // If no body is present, no need to serialize it.
  99546. if (this.body === null) {
  99547. return null;
  99548. }
  99549. // Check whether the body is already in a serialized form. If so,
  99550. // it can just be returned directly.
  99551. if (isArrayBuffer(this.body) || isBlob(this.body) || isFormData(this.body) ||
  99552. typeof this.body === 'string') {
  99553. return this.body;
  99554. }
  99555. // Check whether the body is an instance of HttpUrlEncodedParams.
  99556. if (this.body instanceof HttpParams) {
  99557. return this.body.toString();
  99558. }
  99559. // Check whether the body is an object or array, and serialize with JSON if so.
  99560. if (typeof this.body === 'object' || typeof this.body === 'boolean' ||
  99561. Array.isArray(this.body)) {
  99562. return JSON.stringify(this.body);
  99563. }
  99564. // Fall back on toString() for everything else.
  99565. return this.body.toString();
  99566. }
  99567. /**
  99568. * Examine the body and attempt to infer an appropriate MIME type
  99569. * for it.
  99570. *
  99571. * If no such type can be inferred, this method will return `null`.
  99572. */
  99573. detectContentTypeHeader() {
  99574. // An empty body has no content type.
  99575. if (this.body === null) {
  99576. return null;
  99577. }
  99578. // FormData bodies rely on the browser's content type assignment.
  99579. if (isFormData(this.body)) {
  99580. return null;
  99581. }
  99582. // Blobs usually have their own content type. If it doesn't, then
  99583. // no type can be inferred.
  99584. if (isBlob(this.body)) {
  99585. return this.body.type || null;
  99586. }
  99587. // Array buffers have unknown contents and thus no type can be inferred.
  99588. if (isArrayBuffer(this.body)) {
  99589. return null;
  99590. }
  99591. // Technically, strings could be a form of JSON data, but it's safe enough
  99592. // to assume they're plain strings.
  99593. if (typeof this.body === 'string') {
  99594. return 'text/plain';
  99595. }
  99596. // `HttpUrlEncodedParams` has its own content-type.
  99597. if (this.body instanceof HttpParams) {
  99598. return 'application/x-www-form-urlencoded;charset=UTF-8';
  99599. }
  99600. // Arrays, objects, and numbers will be encoded as JSON.
  99601. if (typeof this.body === 'object' || typeof this.body === 'number' ||
  99602. Array.isArray(this.body)) {
  99603. return 'application/json';
  99604. }
  99605. // No type could be inferred.
  99606. return null;
  99607. }
  99608. clone(update = {}) {
  99609. // For method, url, and responseType, take the current value unless
  99610. // it is overridden in the update hash.
  99611. const method = update.method || this.method;
  99612. const url = update.url || this.url;
  99613. const responseType = update.responseType || this.responseType;
  99614. // The body is somewhat special - a `null` value in update.body means
  99615. // whatever current body is present is being overridden with an empty
  99616. // body, whereas an `undefined` value in update.body implies no
  99617. // override.
  99618. const body = (update.body !== undefined) ? update.body : this.body;
  99619. // Carefully handle the boolean options to differentiate between
  99620. // `false` and `undefined` in the update args.
  99621. const withCredentials = (update.withCredentials !== undefined) ? update.withCredentials : this.withCredentials;
  99622. const reportProgress = (update.reportProgress !== undefined) ? update.reportProgress : this.reportProgress;
  99623. // Headers and params may be appended to if `setHeaders` or
  99624. // `setParams` are used.
  99625. let headers = update.headers || this.headers;
  99626. let params = update.params || this.params;
  99627. // Check whether the caller has asked to add headers.
  99628. if (update.setHeaders !== undefined) {
  99629. // Set every requested header.
  99630. headers =
  99631. Object.keys(update.setHeaders)
  99632. .reduce((headers, name) => headers.set(name, update.setHeaders[name]), headers);
  99633. }
  99634. // Check whether the caller has asked to set params.
  99635. if (update.setParams) {
  99636. // Set every requested param.
  99637. params = Object.keys(update.setParams)
  99638. .reduce((params, param) => params.set(param, update.setParams[param]), params);
  99639. }
  99640. // Finally, construct the new HttpRequest using the pieces from above.
  99641. return new HttpRequest(method, url, body, {
  99642. params,
  99643. headers,
  99644. reportProgress,
  99645. responseType,
  99646. withCredentials,
  99647. });
  99648. }
  99649. }
  99650. /**
  99651. * @license
  99652. * Copyright Google LLC All Rights Reserved.
  99653. *
  99654. * Use of this source code is governed by an MIT-style license that can be
  99655. * found in the LICENSE file at https://angular.io/license
  99656. */
  99657. /**
  99658. * Type enumeration for the different kinds of `HttpEvent`.
  99659. *
  99660. * @publicApi
  99661. */
  99662. var HttpEventType;
  99663. (function (HttpEventType) {
  99664. /**
  99665. * The request was sent out over the wire.
  99666. */
  99667. HttpEventType[HttpEventType["Sent"] = 0] = "Sent";
  99668. /**
  99669. * An upload progress event was received.
  99670. */
  99671. HttpEventType[HttpEventType["UploadProgress"] = 1] = "UploadProgress";
  99672. /**
  99673. * The response status code and headers were received.
  99674. */
  99675. HttpEventType[HttpEventType["ResponseHeader"] = 2] = "ResponseHeader";
  99676. /**
  99677. * A download progress event was received.
  99678. */
  99679. HttpEventType[HttpEventType["DownloadProgress"] = 3] = "DownloadProgress";
  99680. /**
  99681. * The full response including the body was received.
  99682. */
  99683. HttpEventType[HttpEventType["Response"] = 4] = "Response";
  99684. /**
  99685. * A custom event from an interceptor or a backend.
  99686. */
  99687. HttpEventType[HttpEventType["User"] = 5] = "User";
  99688. })(HttpEventType || (HttpEventType = {}));
  99689. /**
  99690. * Base class for both `HttpResponse` and `HttpHeaderResponse`.
  99691. *
  99692. * @publicApi
  99693. */
  99694. class HttpResponseBase {
  99695. /**
  99696. * Super-constructor for all responses.
  99697. *
  99698. * The single parameter accepted is an initialization hash. Any properties
  99699. * of the response passed there will override the default values.
  99700. */
  99701. constructor(init, defaultStatus = 200, defaultStatusText = 'OK') {
  99702. // If the hash has values passed, use them to initialize the response.
  99703. // Otherwise use the default values.
  99704. this.headers = init.headers || new HttpHeaders();
  99705. this.status = init.status !== undefined ? init.status : defaultStatus;
  99706. this.statusText = init.statusText || defaultStatusText;
  99707. this.url = init.url || null;
  99708. // Cache the ok value to avoid defining a getter.
  99709. this.ok = this.status >= 200 && this.status < 300;
  99710. }
  99711. }
  99712. /**
  99713. * A partial HTTP response which only includes the status and header data,
  99714. * but no response body.
  99715. *
  99716. * `HttpHeaderResponse` is a `HttpEvent` available on the response
  99717. * event stream, only when progress events are requested.
  99718. *
  99719. * @publicApi
  99720. */
  99721. class HttpHeaderResponse extends HttpResponseBase {
  99722. /**
  99723. * Create a new `HttpHeaderResponse` with the given parameters.
  99724. */
  99725. constructor(init = {}) {
  99726. super(init);
  99727. this.type = HttpEventType.ResponseHeader;
  99728. }
  99729. /**
  99730. * Copy this `HttpHeaderResponse`, overriding its contents with the
  99731. * given parameter hash.
  99732. */
  99733. clone(update = {}) {
  99734. // Perform a straightforward initialization of the new HttpHeaderResponse,
  99735. // overriding the current parameters with new ones if given.
  99736. return new HttpHeaderResponse({
  99737. headers: update.headers || this.headers,
  99738. status: update.status !== undefined ? update.status : this.status,
  99739. statusText: update.statusText || this.statusText,
  99740. url: update.url || this.url || undefined,
  99741. });
  99742. }
  99743. }
  99744. /**
  99745. * A full HTTP response, including a typed response body (which may be `null`
  99746. * if one was not returned).
  99747. *
  99748. * `HttpResponse` is a `HttpEvent` available on the response event
  99749. * stream.
  99750. *
  99751. * @publicApi
  99752. */
  99753. class HttpResponse extends HttpResponseBase {
  99754. /**
  99755. * Construct a new `HttpResponse`.
  99756. */
  99757. constructor(init = {}) {
  99758. super(init);
  99759. this.type = HttpEventType.Response;
  99760. this.body = init.body !== undefined ? init.body : null;
  99761. }
  99762. clone(update = {}) {
  99763. return new HttpResponse({
  99764. body: (update.body !== undefined) ? update.body : this.body,
  99765. headers: update.headers || this.headers,
  99766. status: (update.status !== undefined) ? update.status : this.status,
  99767. statusText: update.statusText || this.statusText,
  99768. url: update.url || this.url || undefined,
  99769. });
  99770. }
  99771. }
  99772. /**
  99773. * A response that represents an error or failure, either from a
  99774. * non-successful HTTP status, an error while executing the request,
  99775. * or some other failure which occurred during the parsing of the response.
  99776. *
  99777. * Any error returned on the `Observable` response stream will be
  99778. * wrapped in an `HttpErrorResponse` to provide additional context about
  99779. * the state of the HTTP layer when the error occurred. The error property
  99780. * will contain either a wrapped Error object or the error response returned
  99781. * from the server.
  99782. *
  99783. * @publicApi
  99784. */
  99785. class HttpErrorResponse extends HttpResponseBase {
  99786. constructor(init) {
  99787. // Initialize with a default status of 0 / Unknown Error.
  99788. super(init, 0, 'Unknown Error');
  99789. this.name = 'HttpErrorResponse';
  99790. /**
  99791. * Errors are never okay, even when the status code is in the 2xx success range.
  99792. */
  99793. this.ok = false;
  99794. // If the response was successful, then this was a parse error. Otherwise, it was
  99795. // a protocol-level failure of some sort. Either the request failed in transit
  99796. // or the server returned an unsuccessful status code.
  99797. if (this.status >= 200 && this.status < 300) {
  99798. this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;
  99799. }
  99800. else {
  99801. this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${init.statusText}`;
  99802. }
  99803. this.error = init.error || null;
  99804. }
  99805. }
  99806. /**
  99807. * @license
  99808. * Copyright Google LLC All Rights Reserved.
  99809. *
  99810. * Use of this source code is governed by an MIT-style license that can be
  99811. * found in the LICENSE file at https://angular.io/license
  99812. */
  99813. /**
  99814. * Constructs an instance of `HttpRequestOptions<T>` from a source `HttpMethodOptions` and
  99815. * the given `body`. This function clones the object and adds the body.
  99816. *
  99817. * Note that the `responseType` *options* value is a String that identifies the
  99818. * single data type of the response.
  99819. * A single overload version of the method handles each response type.
  99820. * The value of `responseType` cannot be a union, as the combined signature could imply.
  99821. *
  99822. */
  99823. function addBody(options, body) {
  99824. return {
  99825. body,
  99826. headers: options.headers,
  99827. observe: options.observe,
  99828. params: options.params,
  99829. reportProgress: options.reportProgress,
  99830. responseType: options.responseType,
  99831. withCredentials: options.withCredentials,
  99832. };
  99833. }
  99834. /**
  99835. * Performs HTTP requests.
  99836. * This service is available as an injectable class, with methods to perform HTTP requests.
  99837. * Each request method has multiple signatures, and the return type varies based on
  99838. * the signature that is called (mainly the values of `observe` and `responseType`).
  99839. *
  99840. * Note that the `responseType` *options* value is a String that identifies the
  99841. * single data type of the response.
  99842. * A single overload version of the method handles each response type.
  99843. * The value of `responseType` cannot be a union, as the combined signature could imply.
  99844. *
  99845. * @usageNotes
  99846. * Sample HTTP requests for the [Tour of Heroes](/tutorial/toh-pt0) application.
  99847. *
  99848. * ### HTTP Request Example
  99849. *
  99850. * ```
  99851. * // GET heroes whose name contains search term
  99852. * searchHeroes(term: string): observable<Hero[]>{
  99853. *
  99854. * const params = new HttpParams({fromString: 'name=term'});
  99855. * return this.httpClient.request('GET', this.heroesUrl, {responseType:'json', params});
  99856. * }
  99857. * ```
  99858. * ### JSONP Example
  99859. * ```
  99860. * requestJsonp(url, callback = 'callback') {
  99861. * return this.httpClient.jsonp(this.heroesURL, callback);
  99862. * }
  99863. * ```
  99864. *
  99865. * ### PATCH Example
  99866. * ```
  99867. * // PATCH one of the heroes' name
  99868. * patchHero (id: number, heroName: string): Observable<{}> {
  99869. * const url = `${this.heroesUrl}/${id}`; // PATCH api/heroes/42
  99870. * return this.httpClient.patch(url, {name: heroName}, httpOptions)
  99871. * .pipe(catchError(this.handleError('patchHero')));
  99872. * }
  99873. * ```
  99874. *
  99875. * @see [HTTP Guide](guide/http)
  99876. *
  99877. * @publicApi
  99878. */
  99879. class HttpClient {
  99880. constructor(handler) {
  99881. this.handler = handler;
  99882. }
  99883. /**
  99884. * Constructs an observable for a generic HTTP request that, when subscribed,
  99885. * fires the request through the chain of registered interceptors and on to the
  99886. * server.
  99887. *
  99888. * You can pass an `HttpRequest` directly as the only parameter. In this case,
  99889. * the call returns an observable of the raw `HttpEvent` stream.
  99890. *
  99891. * Alternatively you can pass an HTTP method as the first parameter,
  99892. * a URL string as the second, and an options hash containing the request body as the third.
  99893. * See `addBody()`. In this case, the specified `responseType` and `observe` options determine the
  99894. * type of returned observable.
  99895. * * The `responseType` value determines how a successful response body is parsed.
  99896. * * If `responseType` is the default `json`, you can pass a type interface for the resulting
  99897. * object as a type parameter to the call.
  99898. *
  99899. * The `observe` value determines the return type, according to what you are interested in
  99900. * observing.
  99901. * * An `observe` value of events returns an observable of the raw `HttpEvent` stream, including
  99902. * progress events by default.
  99903. * * An `observe` value of response returns an observable of `HttpResponse<T>`,
  99904. * where the `T` parameter depends on the `responseType` and any optionally provided type
  99905. * parameter.
  99906. * * An `observe` value of body returns an observable of `<T>` with the same `T` body type.
  99907. *
  99908. */
  99909. request(first, url, options = {}) {
  99910. let req;
  99911. // First, check whether the primary argument is an instance of `HttpRequest`.
  99912. if (first instanceof HttpRequest) {
  99913. // It is. The other arguments must be undefined (per the signatures) and can be
  99914. // ignored.
  99915. req = first;
  99916. }
  99917. else {
  99918. // It's a string, so it represents a URL. Construct a request based on it,
  99919. // and incorporate the remaining arguments (assuming `GET` unless a method is
  99920. // provided.
  99921. // Figure out the headers.
  99922. let headers = undefined;
  99923. if (options.headers instanceof HttpHeaders) {
  99924. headers = options.headers;
  99925. }
  99926. else {
  99927. headers = new HttpHeaders(options.headers);
  99928. }
  99929. // Sort out parameters.
  99930. let params = undefined;
  99931. if (!!options.params) {
  99932. if (options.params instanceof HttpParams) {
  99933. params = options.params;
  99934. }
  99935. else {
  99936. params = new HttpParams({ fromObject: options.params });
  99937. }
  99938. }
  99939. // Construct the request.
  99940. req = new HttpRequest(first, url, (options.body !== undefined ? options.body : null), {
  99941. headers,
  99942. params,
  99943. reportProgress: options.reportProgress,
  99944. // By default, JSON is assumed to be returned for all calls.
  99945. responseType: options.responseType || 'json',
  99946. withCredentials: options.withCredentials,
  99947. });
  99948. }
  99949. // Start with an Observable.of() the initial request, and run the handler (which
  99950. // includes all interceptors) inside a concatMap(). This way, the handler runs
  99951. // inside an Observable chain, which causes interceptors to be re-run on every
  99952. // subscription (this also makes retries re-run the handler, including interceptors).
  99953. const events$ = Object(rxjs__WEBPACK_IMPORTED_MODULE_1__["of"])(req).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["concatMap"])((req) => this.handler.handle(req)));
  99954. // If coming via the API signature which accepts a previously constructed HttpRequest,
  99955. // the only option is to get the event stream. Otherwise, return the event stream if
  99956. // that is what was requested.
  99957. if (first instanceof HttpRequest || options.observe === 'events') {
  99958. return events$;
  99959. }
  99960. // The requested stream contains either the full response or the body. In either
  99961. // case, the first step is to filter the event stream to extract a stream of
  99962. // responses(s).
  99963. const res$ = events$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["filter"])((event) => event instanceof HttpResponse));
  99964. // Decide which stream to return.
  99965. switch (options.observe || 'body') {
  99966. case 'body':
  99967. // The requested stream is the body. Map the response stream to the response
  99968. // body. This could be done more simply, but a misbehaving interceptor might
  99969. // transform the response body into a different format and ignore the requested
  99970. // responseType. Guard against this by validating that the response is of the
  99971. // requested type.
  99972. switch (req.responseType) {
  99973. case 'arraybuffer':
  99974. return res$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => {
  99975. // Validate that the body is an ArrayBuffer.
  99976. if (res.body !== null && !(res.body instanceof ArrayBuffer)) {
  99977. throw new Error('Response is not an ArrayBuffer.');
  99978. }
  99979. return res.body;
  99980. }));
  99981. case 'blob':
  99982. return res$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => {
  99983. // Validate that the body is a Blob.
  99984. if (res.body !== null && !(res.body instanceof Blob)) {
  99985. throw new Error('Response is not a Blob.');
  99986. }
  99987. return res.body;
  99988. }));
  99989. case 'text':
  99990. return res$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => {
  99991. // Validate that the body is a string.
  99992. if (res.body !== null && typeof res.body !== 'string') {
  99993. throw new Error('Response is not a string.');
  99994. }
  99995. return res.body;
  99996. }));
  99997. case 'json':
  99998. default:
  99999. // No validation needed for JSON responses, as they can be of any type.
  100000. return res$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_2__["map"])((res) => res.body));
  100001. }
  100002. case 'response':
  100003. // The response stream was requested directly, so return it.
  100004. return res$;
  100005. default:
  100006. // Guard against new future observe types being added.
  100007. throw new Error(`Unreachable: unhandled observe type ${options.observe}}`);
  100008. }
  100009. }
  100010. /**
  100011. * Constructs an observable that, when subscribed, causes the configured
  100012. * `DELETE` request to execute on the server. See the individual overloads for
  100013. * details on the return type.
  100014. *
  100015. * @param url The endpoint URL.
  100016. * @param options The HTTP options to send with the request.
  100017. *
  100018. */
  100019. delete(url, options = {}) {
  100020. return this.request('DELETE', url, options);
  100021. }
  100022. /**
  100023. * Constructs an observable that, when subscribed, causes the configured
  100024. * `GET` request to execute on the server. See the individual overloads for
  100025. * details on the return type.
  100026. */
  100027. get(url, options = {}) {
  100028. return this.request('GET', url, options);
  100029. }
  100030. /**
  100031. * Constructs an observable that, when subscribed, causes the configured
  100032. * `HEAD` request to execute on the server. The `HEAD` method returns
  100033. * meta information about the resource without transferring the
  100034. * resource itself. See the individual overloads for
  100035. * details on the return type.
  100036. */
  100037. head(url, options = {}) {
  100038. return this.request('HEAD', url, options);
  100039. }
  100040. /**
  100041. * Constructs an `Observable` that, when subscribed, causes a request with the special method
  100042. * `JSONP` to be dispatched via the interceptor pipeline.
  100043. * The [JSONP pattern](https://en.wikipedia.org/wiki/JSONP) works around limitations of certain
  100044. * API endpoints that don't support newer,
  100045. * and preferable [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) protocol.
  100046. * JSONP treats the endpoint API as a JavaScript file and tricks the browser to process the
  100047. * requests even if the API endpoint is not located on the same domain (origin) as the client-side
  100048. * application making the request.
  100049. * The endpoint API must support JSONP callback for JSONP requests to work.
  100050. * The resource API returns the JSON response wrapped in a callback function.
  100051. * You can pass the callback function name as one of the query parameters.
  100052. * Note that JSONP requests can only be used with `GET` requests.
  100053. *
  100054. * @param url The resource URL.
  100055. * @param callbackParam The callback function name.
  100056. *
  100057. */
  100058. jsonp(url, callbackParam) {
  100059. return this.request('JSONP', url, {
  100060. params: new HttpParams().append(callbackParam, 'JSONP_CALLBACK'),
  100061. observe: 'body',
  100062. responseType: 'json',
  100063. });
  100064. }
  100065. /**
  100066. * Constructs an `Observable` that, when subscribed, causes the configured
  100067. * `OPTIONS` request to execute on the server. This method allows the client
  100068. * to determine the supported HTTP methods and other capabilites of an endpoint,
  100069. * without implying a resource action. See the individual overloads for
  100070. * details on the return type.
  100071. */
  100072. options(url, options = {}) {
  100073. return this.request('OPTIONS', url, options);
  100074. }
  100075. /**
  100076. * Constructs an observable that, when subscribed, causes the configured
  100077. * `PATCH` request to execute on the server. See the individual overloads for
  100078. * details on the return type.
  100079. */
  100080. patch(url, body, options = {}) {
  100081. return this.request('PATCH', url, addBody(options, body));
  100082. }
  100083. /**
  100084. * Constructs an observable that, when subscribed, causes the configured
  100085. * `POST` request to execute on the server. The server responds with the location of
  100086. * the replaced resource. See the individual overloads for
  100087. * details on the return type.
  100088. */
  100089. post(url, body, options = {}) {
  100090. return this.request('POST', url, addBody(options, body));
  100091. }
  100092. /**
  100093. * Constructs an observable that, when subscribed, causes the configured
  100094. * `PUT` request to execute on the server. The `PUT` method replaces an existing resource
  100095. * with a new set of values.
  100096. * See the individual overloads for details on the return type.
  100097. */
  100098. put(url, body, options = {}) {
  100099. return this.request('PUT', url, addBody(options, body));
  100100. }
  100101. }
  100102. HttpClient.ɵfac = function HttpClient_Factory(t) { return new (t || HttpClient)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](HttpHandler)); };
  100103. HttpClient.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: HttpClient, factory: HttpClient.ɵfac });
  100104. HttpClient.ctorParameters = () => [
  100105. { type: HttpHandler }
  100106. ];
  100107. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClient, [{
  100108. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100109. }], function () { return [{ type: HttpHandler }]; }, null); })();
  100110. /**
  100111. * @license
  100112. * Copyright Google LLC All Rights Reserved.
  100113. *
  100114. * Use of this source code is governed by an MIT-style license that can be
  100115. * found in the LICENSE file at https://angular.io/license
  100116. */
  100117. /**
  100118. * `HttpHandler` which applies an `HttpInterceptor` to an `HttpRequest`.
  100119. *
  100120. *
  100121. */
  100122. class HttpInterceptorHandler {
  100123. constructor(next, interceptor) {
  100124. this.next = next;
  100125. this.interceptor = interceptor;
  100126. }
  100127. handle(req) {
  100128. return this.interceptor.intercept(req, this.next);
  100129. }
  100130. }
  100131. /**
  100132. * A multi-provider token that represents the array of registered
  100133. * `HttpInterceptor` objects.
  100134. *
  100135. * @publicApi
  100136. */
  100137. const HTTP_INTERCEPTORS = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('HTTP_INTERCEPTORS');
  100138. class NoopInterceptor {
  100139. intercept(req, next) {
  100140. return next.handle(req);
  100141. }
  100142. }
  100143. NoopInterceptor.ɵfac = function NoopInterceptor_Factory(t) { return new (t || NoopInterceptor)(); };
  100144. NoopInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: NoopInterceptor, factory: NoopInterceptor.ɵfac });
  100145. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](NoopInterceptor, [{
  100146. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100147. }], null, null); })();
  100148. /**
  100149. * @license
  100150. * Copyright Google LLC All Rights Reserved.
  100151. *
  100152. * Use of this source code is governed by an MIT-style license that can be
  100153. * found in the LICENSE file at https://angular.io/license
  100154. */
  100155. // Every request made through JSONP needs a callback name that's unique across the
  100156. // whole page. Each request is assigned an id and the callback name is constructed
  100157. // from that. The next id to be assigned is tracked in a global variable here that
  100158. // is shared among all applications on the page.
  100159. let nextRequestId = 0;
  100160. // Error text given when a JSONP script is injected, but doesn't invoke the callback
  100161. // passed in its URL.
  100162. const JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';
  100163. // Error text given when a request is passed to the JsonpClientBackend that doesn't
  100164. // have a request method JSONP.
  100165. const JSONP_ERR_WRONG_METHOD = 'JSONP requests must use JSONP request method.';
  100166. const JSONP_ERR_WRONG_RESPONSE_TYPE = 'JSONP requests must use Json response type.';
  100167. /**
  100168. * DI token/abstract type representing a map of JSONP callbacks.
  100169. *
  100170. * In the browser, this should always be the `window` object.
  100171. *
  100172. *
  100173. */
  100174. class JsonpCallbackContext {
  100175. }
  100176. /**
  100177. * Processes an `HttpRequest` with the JSONP method,
  100178. * by performing JSONP style requests.
  100179. * @see `HttpHandler`
  100180. * @see `HttpXhrBackend`
  100181. *
  100182. * @publicApi
  100183. */
  100184. class JsonpClientBackend {
  100185. constructor(callbackMap, document) {
  100186. this.callbackMap = callbackMap;
  100187. this.document = document;
  100188. /**
  100189. * A resolved promise that can be used to schedule microtasks in the event handlers.
  100190. */
  100191. this.resolvedPromise = Promise.resolve();
  100192. }
  100193. /**
  100194. * Get the name of the next callback method, by incrementing the global `nextRequestId`.
  100195. */
  100196. nextCallback() {
  100197. return `ng_jsonp_callback_${nextRequestId++}`;
  100198. }
  100199. /**
  100200. * Processes a JSONP request and returns an event stream of the results.
  100201. * @param req The request object.
  100202. * @returns An observable of the response events.
  100203. *
  100204. */
  100205. handle(req) {
  100206. // Firstly, check both the method and response type. If either doesn't match
  100207. // then the request was improperly routed here and cannot be handled.
  100208. if (req.method !== 'JSONP') {
  100209. throw new Error(JSONP_ERR_WRONG_METHOD);
  100210. }
  100211. else if (req.responseType !== 'json') {
  100212. throw new Error(JSONP_ERR_WRONG_RESPONSE_TYPE);
  100213. }
  100214. // Everything else happens inside the Observable boundary.
  100215. return new rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"]((observer) => {
  100216. // The first step to make a request is to generate the callback name, and replace the
  100217. // callback placeholder in the URL with the name. Care has to be taken here to ensure
  100218. // a trailing &, if matched, gets inserted back into the URL in the correct place.
  100219. const callback = this.nextCallback();
  100220. const url = req.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/, `=${callback}$1`);
  100221. // Construct the <script> tag and point it at the URL.
  100222. const node = this.document.createElement('script');
  100223. node.src = url;
  100224. // A JSONP request requires waiting for multiple callbacks. These variables
  100225. // are closed over and track state across those callbacks.
  100226. // The response object, if one has been received, or null otherwise.
  100227. let body = null;
  100228. // Whether the response callback has been called.
  100229. let finished = false;
  100230. // Whether the request has been cancelled (and thus any other callbacks)
  100231. // should be ignored.
  100232. let cancelled = false;
  100233. // Set the response callback in this.callbackMap (which will be the window
  100234. // object in the browser. The script being loaded via the <script> tag will
  100235. // eventually call this callback.
  100236. this.callbackMap[callback] = (data) => {
  100237. // Data has been received from the JSONP script. Firstly, delete this callback.
  100238. delete this.callbackMap[callback];
  100239. // Next, make sure the request wasn't cancelled in the meantime.
  100240. if (cancelled) {
  100241. return;
  100242. }
  100243. // Set state to indicate data was received.
  100244. body = data;
  100245. finished = true;
  100246. };
  100247. // cleanup() is a utility closure that removes the <script> from the page and
  100248. // the response callback from the window. This logic is used in both the
  100249. // success, error, and cancellation paths, so it's extracted out for convenience.
  100250. const cleanup = () => {
  100251. // Remove the <script> tag if it's still on the page.
  100252. if (node.parentNode) {
  100253. node.parentNode.removeChild(node);
  100254. }
  100255. // Remove the response callback from the callbackMap (window object in the
  100256. // browser).
  100257. delete this.callbackMap[callback];
  100258. };
  100259. // onLoad() is the success callback which runs after the response callback
  100260. // if the JSONP script loads successfully. The event itself is unimportant.
  100261. // If something went wrong, onLoad() may run without the response callback
  100262. // having been invoked.
  100263. const onLoad = (event) => {
  100264. // Do nothing if the request has been cancelled.
  100265. if (cancelled) {
  100266. return;
  100267. }
  100268. // We wrap it in an extra Promise, to ensure the microtask
  100269. // is scheduled after the loaded endpoint has executed any potential microtask itself,
  100270. // which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496
  100271. this.resolvedPromise.then(() => {
  100272. // Cleanup the page.
  100273. cleanup();
  100274. // Check whether the response callback has run.
  100275. if (!finished) {
  100276. // It hasn't, something went wrong with the request. Return an error via
  100277. // the Observable error path. All JSONP errors have status 0.
  100278. observer.error(new HttpErrorResponse({
  100279. url,
  100280. status: 0,
  100281. statusText: 'JSONP Error',
  100282. error: new Error(JSONP_ERR_NO_CALLBACK),
  100283. }));
  100284. return;
  100285. }
  100286. // Success. body either contains the response body or null if none was
  100287. // returned.
  100288. observer.next(new HttpResponse({
  100289. body,
  100290. status: 200,
  100291. statusText: 'OK',
  100292. url,
  100293. }));
  100294. // Complete the stream, the response is over.
  100295. observer.complete();
  100296. });
  100297. };
  100298. // onError() is the error callback, which runs if the script returned generates
  100299. // a Javascript error. It emits the error via the Observable error channel as
  100300. // a HttpErrorResponse.
  100301. const onError = (error) => {
  100302. // If the request was already cancelled, no need to emit anything.
  100303. if (cancelled) {
  100304. return;
  100305. }
  100306. cleanup();
  100307. // Wrap the error in a HttpErrorResponse.
  100308. observer.error(new HttpErrorResponse({
  100309. error,
  100310. status: 0,
  100311. statusText: 'JSONP Error',
  100312. url,
  100313. }));
  100314. };
  100315. // Subscribe to both the success (load) and error events on the <script> tag,
  100316. // and add it to the page.
  100317. node.addEventListener('load', onLoad);
  100318. node.addEventListener('error', onError);
  100319. this.document.body.appendChild(node);
  100320. // The request has now been successfully sent.
  100321. observer.next({ type: HttpEventType.Sent });
  100322. // Cancellation handler.
  100323. return () => {
  100324. // Track the cancellation so event listeners won't do anything even if already scheduled.
  100325. cancelled = true;
  100326. // Remove the event listeners so they won't run if the events later fire.
  100327. node.removeEventListener('load', onLoad);
  100328. node.removeEventListener('error', onError);
  100329. // And finally, clean up the page.
  100330. cleanup();
  100331. };
  100332. });
  100333. }
  100334. }
  100335. JsonpClientBackend.ɵfac = function JsonpClientBackend_Factory(t) { return new (t || JsonpClientBackend)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](JsonpCallbackContext), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"])); };
  100336. JsonpClientBackend.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: JsonpClientBackend, factory: JsonpClientBackend.ɵfac });
  100337. JsonpClientBackend.ctorParameters = () => [
  100338. { type: JsonpCallbackContext },
  100339. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"],] }] }
  100340. ];
  100341. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](JsonpClientBackend, [{
  100342. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100343. }], function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
  100344. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  100345. args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
  100346. }] }]; }, null); })();
  100347. /**
  100348. * Identifies requests with the method JSONP and
  100349. * shifts them to the `JsonpClientBackend`.
  100350. *
  100351. * @see `HttpInterceptor`
  100352. *
  100353. * @publicApi
  100354. */
  100355. class JsonpInterceptor {
  100356. constructor(jsonp) {
  100357. this.jsonp = jsonp;
  100358. }
  100359. /**
  100360. * Identifies and handles a given JSONP request.
  100361. * @param req The outgoing request object to handle.
  100362. * @param next The next interceptor in the chain, or the backend
  100363. * if no interceptors remain in the chain.
  100364. * @returns An observable of the event stream.
  100365. */
  100366. intercept(req, next) {
  100367. if (req.method === 'JSONP') {
  100368. return this.jsonp.handle(req);
  100369. }
  100370. // Fall through for normal HTTP requests.
  100371. return next.handle(req);
  100372. }
  100373. }
  100374. JsonpInterceptor.ɵfac = function JsonpInterceptor_Factory(t) { return new (t || JsonpInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](JsonpClientBackend)); };
  100375. JsonpInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: JsonpInterceptor, factory: JsonpInterceptor.ɵfac });
  100376. JsonpInterceptor.ctorParameters = () => [
  100377. { type: JsonpClientBackend }
  100378. ];
  100379. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](JsonpInterceptor, [{
  100380. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100381. }], function () { return [{ type: JsonpClientBackend }]; }, null); })();
  100382. /**
  100383. * @license
  100384. * Copyright Google LLC All Rights Reserved.
  100385. *
  100386. * Use of this source code is governed by an MIT-style license that can be
  100387. * found in the LICENSE file at https://angular.io/license
  100388. */
  100389. const XSSI_PREFIX = /^\)\]\}',?\n/;
  100390. /**
  100391. * Determine an appropriate URL for the response, by checking either
  100392. * XMLHttpRequest.responseURL or the X-Request-URL header.
  100393. */
  100394. function getResponseUrl(xhr) {
  100395. if ('responseURL' in xhr && xhr.responseURL) {
  100396. return xhr.responseURL;
  100397. }
  100398. if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) {
  100399. return xhr.getResponseHeader('X-Request-URL');
  100400. }
  100401. return null;
  100402. }
  100403. /**
  100404. * A wrapper around the `XMLHttpRequest` constructor.
  100405. *
  100406. * @publicApi
  100407. */
  100408. class XhrFactory {
  100409. }
  100410. /**
  100411. * A factory for `HttpXhrBackend` that uses the `XMLHttpRequest` browser API.
  100412. *
  100413. */
  100414. class BrowserXhr {
  100415. constructor() { }
  100416. build() {
  100417. return (new XMLHttpRequest());
  100418. }
  100419. }
  100420. BrowserXhr.ɵfac = function BrowserXhr_Factory(t) { return new (t || BrowserXhr)(); };
  100421. BrowserXhr.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: BrowserXhr, factory: BrowserXhr.ɵfac });
  100422. BrowserXhr.ctorParameters = () => [];
  100423. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](BrowserXhr, [{
  100424. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100425. }], function () { return []; }, null); })();
  100426. /**
  100427. * Uses `XMLHttpRequest` to send requests to a backend server.
  100428. * @see `HttpHandler`
  100429. * @see `JsonpClientBackend`
  100430. *
  100431. * @publicApi
  100432. */
  100433. class HttpXhrBackend {
  100434. constructor(xhrFactory) {
  100435. this.xhrFactory = xhrFactory;
  100436. }
  100437. /**
  100438. * Processes a request and returns a stream of response events.
  100439. * @param req The request object.
  100440. * @returns An observable of the response events.
  100441. */
  100442. handle(req) {
  100443. // Quick check to give a better error message when a user attempts to use
  100444. // HttpClient.jsonp() without installing the HttpClientJsonpModule
  100445. if (req.method === 'JSONP') {
  100446. throw new Error(`Attempted to construct Jsonp request without HttpClientJsonpModule installed.`);
  100447. }
  100448. // Everything happens on Observable subscription.
  100449. return new rxjs__WEBPACK_IMPORTED_MODULE_1__["Observable"]((observer) => {
  100450. // Start by setting up the XHR object with request method, URL, and withCredentials flag.
  100451. const xhr = this.xhrFactory.build();
  100452. xhr.open(req.method, req.urlWithParams);
  100453. if (!!req.withCredentials) {
  100454. xhr.withCredentials = true;
  100455. }
  100456. // Add all the requested headers.
  100457. req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));
  100458. // Add an Accept header if one isn't present already.
  100459. if (!req.headers.has('Accept')) {
  100460. xhr.setRequestHeader('Accept', 'application/json, text/plain, */*');
  100461. }
  100462. // Auto-detect the Content-Type header if one isn't present already.
  100463. if (!req.headers.has('Content-Type')) {
  100464. const detectedType = req.detectContentTypeHeader();
  100465. // Sometimes Content-Type detection fails.
  100466. if (detectedType !== null) {
  100467. xhr.setRequestHeader('Content-Type', detectedType);
  100468. }
  100469. }
  100470. // Set the responseType if one was requested.
  100471. if (req.responseType) {
  100472. const responseType = req.responseType.toLowerCase();
  100473. // JSON responses need to be processed as text. This is because if the server
  100474. // returns an XSSI-prefixed JSON response, the browser will fail to parse it,
  100475. // xhr.response will be null, and xhr.responseText cannot be accessed to
  100476. // retrieve the prefixed JSON data in order to strip the prefix. Thus, all JSON
  100477. // is parsed by first requesting text and then applying JSON.parse.
  100478. xhr.responseType = ((responseType !== 'json') ? responseType : 'text');
  100479. }
  100480. // Serialize the request body if one is present. If not, this will be set to null.
  100481. const reqBody = req.serializeBody();
  100482. // If progress events are enabled, response headers will be delivered
  100483. // in two events - the HttpHeaderResponse event and the full HttpResponse
  100484. // event. However, since response headers don't change in between these
  100485. // two events, it doesn't make sense to parse them twice. So headerResponse
  100486. // caches the data extracted from the response whenever it's first parsed,
  100487. // to ensure parsing isn't duplicated.
  100488. let headerResponse = null;
  100489. // partialFromXhr extracts the HttpHeaderResponse from the current XMLHttpRequest
  100490. // state, and memoizes it into headerResponse.
  100491. const partialFromXhr = () => {
  100492. if (headerResponse !== null) {
  100493. return headerResponse;
  100494. }
  100495. // Read status and normalize an IE9 bug (https://bugs.jquery.com/ticket/1450).
  100496. const status = xhr.status === 1223 ? 204 : xhr.status;
  100497. const statusText = xhr.statusText || 'OK';
  100498. // Parse headers from XMLHttpRequest - this step is lazy.
  100499. const headers = new HttpHeaders(xhr.getAllResponseHeaders());
  100500. // Read the response URL from the XMLHttpResponse instance and fall back on the
  100501. // request URL.
  100502. const url = getResponseUrl(xhr) || req.url;
  100503. // Construct the HttpHeaderResponse and memoize it.
  100504. headerResponse = new HttpHeaderResponse({ headers, status, statusText, url });
  100505. return headerResponse;
  100506. };
  100507. // Next, a few closures are defined for the various events which XMLHttpRequest can
  100508. // emit. This allows them to be unregistered as event listeners later.
  100509. // First up is the load event, which represents a response being fully available.
  100510. const onLoad = () => {
  100511. // Read response state from the memoized partial data.
  100512. let { headers, status, statusText, url } = partialFromXhr();
  100513. // The body will be read out if present.
  100514. let body = null;
  100515. if (status !== 204) {
  100516. // Use XMLHttpRequest.response if set, responseText otherwise.
  100517. body = (typeof xhr.response === 'undefined') ? xhr.responseText : xhr.response;
  100518. }
  100519. // Normalize another potential bug (this one comes from CORS).
  100520. if (status === 0) {
  100521. status = !!body ? 200 : 0;
  100522. }
  100523. // ok determines whether the response will be transmitted on the event or
  100524. // error channel. Unsuccessful status codes (not 2xx) will always be errors,
  100525. // but a successful status code can still result in an error if the user
  100526. // asked for JSON data and the body cannot be parsed as such.
  100527. let ok = status >= 200 && status < 300;
  100528. // Check whether the body needs to be parsed as JSON (in many cases the browser
  100529. // will have done that already).
  100530. if (req.responseType === 'json' && typeof body === 'string') {
  100531. // Save the original body, before attempting XSSI prefix stripping.
  100532. const originalBody = body;
  100533. body = body.replace(XSSI_PREFIX, '');
  100534. try {
  100535. // Attempt the parse. If it fails, a parse error should be delivered to the user.
  100536. body = body !== '' ? JSON.parse(body) : null;
  100537. }
  100538. catch (error) {
  100539. // Since the JSON.parse failed, it's reasonable to assume this might not have been a
  100540. // JSON response. Restore the original body (including any XSSI prefix) to deliver
  100541. // a better error response.
  100542. body = originalBody;
  100543. // If this was an error request to begin with, leave it as a string, it probably
  100544. // just isn't JSON. Otherwise, deliver the parsing error to the user.
  100545. if (ok) {
  100546. // Even though the response status was 2xx, this is still an error.
  100547. ok = false;
  100548. // The parse error contains the text of the body that failed to parse.
  100549. body = { error, text: body };
  100550. }
  100551. }
  100552. }
  100553. if (ok) {
  100554. // A successful response is delivered on the event stream.
  100555. observer.next(new HttpResponse({
  100556. body,
  100557. headers,
  100558. status,
  100559. statusText,
  100560. url: url || undefined,
  100561. }));
  100562. // The full body has been received and delivered, no further events
  100563. // are possible. This request is complete.
  100564. observer.complete();
  100565. }
  100566. else {
  100567. // An unsuccessful request is delivered on the error channel.
  100568. observer.error(new HttpErrorResponse({
  100569. // The error in this case is the response body (error from the server).
  100570. error: body,
  100571. headers,
  100572. status,
  100573. statusText,
  100574. url: url || undefined,
  100575. }));
  100576. }
  100577. };
  100578. // The onError callback is called when something goes wrong at the network level.
  100579. // Connection timeout, DNS error, offline, etc. These are actual errors, and are
  100580. // transmitted on the error channel.
  100581. const onError = (error) => {
  100582. const { url } = partialFromXhr();
  100583. const res = new HttpErrorResponse({
  100584. error,
  100585. status: xhr.status || 0,
  100586. statusText: xhr.statusText || 'Unknown Error',
  100587. url: url || undefined,
  100588. });
  100589. observer.error(res);
  100590. };
  100591. // The sentHeaders flag tracks whether the HttpResponseHeaders event
  100592. // has been sent on the stream. This is necessary to track if progress
  100593. // is enabled since the event will be sent on only the first download
  100594. // progerss event.
  100595. let sentHeaders = false;
  100596. // The download progress event handler, which is only registered if
  100597. // progress events are enabled.
  100598. const onDownProgress = (event) => {
  100599. // Send the HttpResponseHeaders event if it hasn't been sent already.
  100600. if (!sentHeaders) {
  100601. observer.next(partialFromXhr());
  100602. sentHeaders = true;
  100603. }
  100604. // Start building the download progress event to deliver on the response
  100605. // event stream.
  100606. let progressEvent = {
  100607. type: HttpEventType.DownloadProgress,
  100608. loaded: event.loaded,
  100609. };
  100610. // Set the total number of bytes in the event if it's available.
  100611. if (event.lengthComputable) {
  100612. progressEvent.total = event.total;
  100613. }
  100614. // If the request was for text content and a partial response is
  100615. // available on XMLHttpRequest, include it in the progress event
  100616. // to allow for streaming reads.
  100617. if (req.responseType === 'text' && !!xhr.responseText) {
  100618. progressEvent.partialText = xhr.responseText;
  100619. }
  100620. // Finally, fire the event.
  100621. observer.next(progressEvent);
  100622. };
  100623. // The upload progress event handler, which is only registered if
  100624. // progress events are enabled.
  100625. const onUpProgress = (event) => {
  100626. // Upload progress events are simpler. Begin building the progress
  100627. // event.
  100628. let progress = {
  100629. type: HttpEventType.UploadProgress,
  100630. loaded: event.loaded,
  100631. };
  100632. // If the total number of bytes being uploaded is available, include
  100633. // it.
  100634. if (event.lengthComputable) {
  100635. progress.total = event.total;
  100636. }
  100637. // Send the event.
  100638. observer.next(progress);
  100639. };
  100640. // By default, register for load and error events.
  100641. xhr.addEventListener('load', onLoad);
  100642. xhr.addEventListener('error', onError);
  100643. // Progress events are only enabled if requested.
  100644. if (req.reportProgress) {
  100645. // Download progress is always enabled if requested.
  100646. xhr.addEventListener('progress', onDownProgress);
  100647. // Upload progress depends on whether there is a body to upload.
  100648. if (reqBody !== null && xhr.upload) {
  100649. xhr.upload.addEventListener('progress', onUpProgress);
  100650. }
  100651. }
  100652. // Fire the request, and notify the event stream that it was fired.
  100653. xhr.send(reqBody);
  100654. observer.next({ type: HttpEventType.Sent });
  100655. // This is the return from the Observable function, which is the
  100656. // request cancellation handler.
  100657. return () => {
  100658. // On a cancellation, remove all registered event listeners.
  100659. xhr.removeEventListener('error', onError);
  100660. xhr.removeEventListener('load', onLoad);
  100661. if (req.reportProgress) {
  100662. xhr.removeEventListener('progress', onDownProgress);
  100663. if (reqBody !== null && xhr.upload) {
  100664. xhr.upload.removeEventListener('progress', onUpProgress);
  100665. }
  100666. }
  100667. // Finally, abort the in-flight request.
  100668. if (xhr.readyState !== xhr.DONE) {
  100669. xhr.abort();
  100670. }
  100671. };
  100672. });
  100673. }
  100674. }
  100675. HttpXhrBackend.ɵfac = function HttpXhrBackend_Factory(t) { return new (t || HttpXhrBackend)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](XhrFactory)); };
  100676. HttpXhrBackend.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: HttpXhrBackend, factory: HttpXhrBackend.ɵfac });
  100677. HttpXhrBackend.ctorParameters = () => [
  100678. { type: XhrFactory }
  100679. ];
  100680. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpXhrBackend, [{
  100681. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100682. }], function () { return [{ type: XhrFactory }]; }, null); })();
  100683. /**
  100684. * @license
  100685. * Copyright Google LLC All Rights Reserved.
  100686. *
  100687. * Use of this source code is governed by an MIT-style license that can be
  100688. * found in the LICENSE file at https://angular.io/license
  100689. */
  100690. const XSRF_COOKIE_NAME = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('XSRF_COOKIE_NAME');
  100691. const XSRF_HEADER_NAME = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["InjectionToken"]('XSRF_HEADER_NAME');
  100692. /**
  100693. * Retrieves the current XSRF token to use with the next outgoing request.
  100694. *
  100695. * @publicApi
  100696. */
  100697. class HttpXsrfTokenExtractor {
  100698. }
  100699. /**
  100700. * `HttpXsrfTokenExtractor` which retrieves the token from a cookie.
  100701. */
  100702. class HttpXsrfCookieExtractor {
  100703. constructor(doc, platform, cookieName) {
  100704. this.doc = doc;
  100705. this.platform = platform;
  100706. this.cookieName = cookieName;
  100707. this.lastCookieString = '';
  100708. this.lastToken = null;
  100709. /**
  100710. * @internal for testing
  100711. */
  100712. this.parseCount = 0;
  100713. }
  100714. getToken() {
  100715. if (this.platform === 'server') {
  100716. return null;
  100717. }
  100718. const cookieString = this.doc.cookie || '';
  100719. if (cookieString !== this.lastCookieString) {
  100720. this.parseCount++;
  100721. this.lastToken = Object(_angular_common__WEBPACK_IMPORTED_MODULE_3__["ɵparseCookieValue"])(cookieString, this.cookieName);
  100722. this.lastCookieString = cookieString;
  100723. }
  100724. return this.lastToken;
  100725. }
  100726. }
  100727. HttpXsrfCookieExtractor.ɵfac = function HttpXsrfCookieExtractor_Factory(t) { return new (t || HttpXsrfCookieExtractor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](XSRF_COOKIE_NAME)); };
  100728. HttpXsrfCookieExtractor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: HttpXsrfCookieExtractor, factory: HttpXsrfCookieExtractor.ɵfac });
  100729. HttpXsrfCookieExtractor.ctorParameters = () => [
  100730. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"],] }] },
  100731. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"],] }] },
  100732. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [XSRF_COOKIE_NAME,] }] }
  100733. ];
  100734. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpXsrfCookieExtractor, [{
  100735. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100736. }], function () { return [{ type: undefined, decorators: [{
  100737. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  100738. args: [_angular_common__WEBPACK_IMPORTED_MODULE_3__["DOCUMENT"]]
  100739. }] }, { type: String, decorators: [{
  100740. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  100741. args: [_angular_core__WEBPACK_IMPORTED_MODULE_0__["PLATFORM_ID"]]
  100742. }] }, { type: String, decorators: [{
  100743. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  100744. args: [XSRF_COOKIE_NAME]
  100745. }] }]; }, null); })();
  100746. /**
  100747. * `HttpInterceptor` which adds an XSRF token to eligible outgoing requests.
  100748. */
  100749. class HttpXsrfInterceptor {
  100750. constructor(tokenService, headerName) {
  100751. this.tokenService = tokenService;
  100752. this.headerName = headerName;
  100753. }
  100754. intercept(req, next) {
  100755. const lcUrl = req.url.toLowerCase();
  100756. // Skip both non-mutating requests and absolute URLs.
  100757. // Non-mutating requests don't require a token, and absolute URLs require special handling
  100758. // anyway as the cookie set
  100759. // on our origin is not the same as the token expected by another origin.
  100760. if (req.method === 'GET' || req.method === 'HEAD' || lcUrl.startsWith('http://') ||
  100761. lcUrl.startsWith('https://')) {
  100762. return next.handle(req);
  100763. }
  100764. const token = this.tokenService.getToken();
  100765. // Be careful not to overwrite an existing header of the same name.
  100766. if (token !== null && !req.headers.has(this.headerName)) {
  100767. req = req.clone({ headers: req.headers.set(this.headerName, token) });
  100768. }
  100769. return next.handle(req);
  100770. }
  100771. }
  100772. HttpXsrfInterceptor.ɵfac = function HttpXsrfInterceptor_Factory(t) { return new (t || HttpXsrfInterceptor)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](HttpXsrfTokenExtractor), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](XSRF_HEADER_NAME)); };
  100773. HttpXsrfInterceptor.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: HttpXsrfInterceptor, factory: HttpXsrfInterceptor.ɵfac });
  100774. HttpXsrfInterceptor.ctorParameters = () => [
  100775. { type: HttpXsrfTokenExtractor },
  100776. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"], args: [XSRF_HEADER_NAME,] }] }
  100777. ];
  100778. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpXsrfInterceptor, [{
  100779. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100780. }], function () { return [{ type: HttpXsrfTokenExtractor }, { type: String, decorators: [{
  100781. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"],
  100782. args: [XSRF_HEADER_NAME]
  100783. }] }]; }, null); })();
  100784. /**
  100785. * @license
  100786. * Copyright Google LLC All Rights Reserved.
  100787. *
  100788. * Use of this source code is governed by an MIT-style license that can be
  100789. * found in the LICENSE file at https://angular.io/license
  100790. */
  100791. /**
  100792. * An injectable `HttpHandler` that applies multiple interceptors
  100793. * to a request before passing it to the given `HttpBackend`.
  100794. *
  100795. * The interceptors are loaded lazily from the injector, to allow
  100796. * interceptors to themselves inject classes depending indirectly
  100797. * on `HttpInterceptingHandler` itself.
  100798. * @see `HttpInterceptor`
  100799. */
  100800. class HttpInterceptingHandler {
  100801. constructor(backend, injector) {
  100802. this.backend = backend;
  100803. this.injector = injector;
  100804. this.chain = null;
  100805. }
  100806. handle(req) {
  100807. if (this.chain === null) {
  100808. const interceptors = this.injector.get(HTTP_INTERCEPTORS, []);
  100809. this.chain = interceptors.reduceRight((next, interceptor) => new HttpInterceptorHandler(next, interceptor), this.backend);
  100810. }
  100811. return this.chain.handle(req);
  100812. }
  100813. }
  100814. HttpInterceptingHandler.ɵfac = function HttpInterceptingHandler_Factory(t) { return new (t || HttpInterceptingHandler)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](HttpBackend), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"])); };
  100815. HttpInterceptingHandler.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: HttpInterceptingHandler, factory: HttpInterceptingHandler.ɵfac });
  100816. HttpInterceptingHandler.ctorParameters = () => [
  100817. { type: HttpBackend },
  100818. { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }
  100819. ];
  100820. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpInterceptingHandler, [{
  100821. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"]
  100822. }], function () { return [{ type: HttpBackend }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["Injector"] }]; }, null); })();
  100823. /**
  100824. * Constructs an `HttpHandler` that applies interceptors
  100825. * to a request before passing it to the given `HttpBackend`.
  100826. *
  100827. * Use as a factory function within `HttpClientModule`.
  100828. *
  100829. *
  100830. */
  100831. function interceptingHandler(backend, interceptors = []) {
  100832. if (!interceptors) {
  100833. return backend;
  100834. }
  100835. return interceptors.reduceRight((next, interceptor) => new HttpInterceptorHandler(next, interceptor), backend);
  100836. }
  100837. /**
  100838. * Factory function that determines where to store JSONP callbacks.
  100839. *
  100840. * Ordinarily JSONP callbacks are stored on the `window` object, but this may not exist
  100841. * in test environments. In that case, callbacks are stored on an anonymous object instead.
  100842. *
  100843. *
  100844. */
  100845. function jsonpCallbackContext() {
  100846. if (typeof window === 'object') {
  100847. return window;
  100848. }
  100849. return {};
  100850. }
  100851. /**
  100852. * Configures XSRF protection support for outgoing requests.
  100853. *
  100854. * For a server that supports a cookie-based XSRF protection system,
  100855. * use directly to configure XSRF protection with the correct
  100856. * cookie and header names.
  100857. *
  100858. * If no names are supplied, the default cookie name is `XSRF-TOKEN`
  100859. * and the default header name is `X-XSRF-TOKEN`.
  100860. *
  100861. * @publicApi
  100862. */
  100863. class HttpClientXsrfModule {
  100864. /**
  100865. * Disable the default XSRF protection.
  100866. */
  100867. static disable() {
  100868. return {
  100869. ngModule: HttpClientXsrfModule,
  100870. providers: [
  100871. { provide: HttpXsrfInterceptor, useClass: NoopInterceptor },
  100872. ],
  100873. };
  100874. }
  100875. /**
  100876. * Configure XSRF protection.
  100877. * @param options An object that can specify either or both
  100878. * cookie name or header name.
  100879. * - Cookie name default is `XSRF-TOKEN`.
  100880. * - Header name default is `X-XSRF-TOKEN`.
  100881. *
  100882. */
  100883. static withOptions(options = {}) {
  100884. return {
  100885. ngModule: HttpClientXsrfModule,
  100886. providers: [
  100887. options.cookieName ? { provide: XSRF_COOKIE_NAME, useValue: options.cookieName } : [],
  100888. options.headerName ? { provide: XSRF_HEADER_NAME, useValue: options.headerName } : [],
  100889. ],
  100890. };
  100891. }
  100892. }
  100893. HttpClientXsrfModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: HttpClientXsrfModule });
  100894. HttpClientXsrfModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function HttpClientXsrfModule_Factory(t) { return new (t || HttpClientXsrfModule)(); }, providers: [
  100895. HttpXsrfInterceptor,
  100896. { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
  100897. { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
  100898. { provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },
  100899. { provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },
  100900. ] });
  100901. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClientXsrfModule, [{
  100902. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  100903. args: [{
  100904. providers: [
  100905. HttpXsrfInterceptor,
  100906. { provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
  100907. { provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
  100908. { provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },
  100909. { provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },
  100910. ]
  100911. }]
  100912. }], null, null); })();
  100913. /**
  100914. * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
  100915. * with supporting services for XSRF. Automatically imported by `HttpClientModule`.
  100916. *
  100917. * You can add interceptors to the chain behind `HttpClient` by binding them to the
  100918. * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.
  100919. *
  100920. * @publicApi
  100921. */
  100922. class HttpClientModule {
  100923. }
  100924. HttpClientModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: HttpClientModule });
  100925. HttpClientModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function HttpClientModule_Factory(t) { return new (t || HttpClientModule)(); }, providers: [
  100926. HttpClient,
  100927. { provide: HttpHandler, useClass: HttpInterceptingHandler },
  100928. HttpXhrBackend,
  100929. { provide: HttpBackend, useExisting: HttpXhrBackend },
  100930. BrowserXhr,
  100931. { provide: XhrFactory, useExisting: BrowserXhr },
  100932. ], imports: [[
  100933. HttpClientXsrfModule.withOptions({
  100934. cookieName: 'XSRF-TOKEN',
  100935. headerName: 'X-XSRF-TOKEN'
  100936. }),
  100937. ]] });
  100938. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](HttpClientModule, { imports: [HttpClientXsrfModule] }); })();
  100939. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClientModule, [{
  100940. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  100941. args: [{
  100942. /**
  100943. * Optional configuration for XSRF protection.
  100944. */
  100945. imports: [
  100946. HttpClientXsrfModule.withOptions({
  100947. cookieName: 'XSRF-TOKEN',
  100948. headerName: 'X-XSRF-TOKEN'
  100949. }),
  100950. ],
  100951. /**
  100952. * Configures the [dependency injector](guide/glossary#injector) where it is imported
  100953. * with supporting services for HTTP communications.
  100954. */
  100955. providers: [
  100956. HttpClient,
  100957. { provide: HttpHandler, useClass: HttpInterceptingHandler },
  100958. HttpXhrBackend,
  100959. { provide: HttpBackend, useExisting: HttpXhrBackend },
  100960. BrowserXhr,
  100961. { provide: XhrFactory, useExisting: BrowserXhr },
  100962. ]
  100963. }]
  100964. }], null, null); })();
  100965. /**
  100966. * Configures the [dependency injector](guide/glossary#injector) for `HttpClient`
  100967. * with supporting services for JSONP.
  100968. * Without this module, Jsonp requests reach the backend
  100969. * with method JSONP, where they are rejected.
  100970. *
  100971. * You can add interceptors to the chain behind `HttpClient` by binding them to the
  100972. * multiprovider for built-in [DI token](guide/glossary#di-token) `HTTP_INTERCEPTORS`.
  100973. *
  100974. * @publicApi
  100975. */
  100976. class HttpClientJsonpModule {
  100977. }
  100978. HttpClientJsonpModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: HttpClientJsonpModule });
  100979. HttpClientJsonpModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ factory: function HttpClientJsonpModule_Factory(t) { return new (t || HttpClientJsonpModule)(); }, providers: [
  100980. JsonpClientBackend,
  100981. { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },
  100982. { provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },
  100983. ] });
  100984. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](HttpClientJsonpModule, [{
  100985. type: _angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"],
  100986. args: [{
  100987. providers: [
  100988. JsonpClientBackend,
  100989. { provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },
  100990. { provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },
  100991. ]
  100992. }]
  100993. }], null, null); })();
  100994. /**
  100995. * @license
  100996. * Copyright Google LLC All Rights Reserved.
  100997. *
  100998. * Use of this source code is governed by an MIT-style license that can be
  100999. * found in the LICENSE file at https://angular.io/license
  101000. */
  101001. /**
  101002. * @license
  101003. * Copyright Google LLC All Rights Reserved.
  101004. *
  101005. * Use of this source code is governed by an MIT-style license that can be
  101006. * found in the LICENSE file at https://angular.io/license
  101007. */
  101008. /**
  101009. * Generated bundle index. Do not edit.
  101010. */
  101011. //# sourceMappingURL=http.js.map
  101012. /***/ }),
  101013. /***/ "tnsW":
  101014. /*!****************************************************************!*\
  101015. !*** ./node_modules/rxjs/_esm2015/internal/operators/audit.js ***!
  101016. \****************************************************************/
  101017. /*! exports provided: audit */
  101018. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  101019. "use strict";
  101020. __webpack_require__.r(__webpack_exports__);
  101021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "audit", function() { return audit; });
  101022. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  101023. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  101024. function audit(durationSelector) {
  101025. return function auditOperatorFunction(source) {
  101026. return source.lift(new AuditOperator(durationSelector));
  101027. };
  101028. }
  101029. class AuditOperator {
  101030. constructor(durationSelector) {
  101031. this.durationSelector = durationSelector;
  101032. }
  101033. call(subscriber, source) {
  101034. return source.subscribe(new AuditSubscriber(subscriber, this.durationSelector));
  101035. }
  101036. }
  101037. class AuditSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  101038. constructor(destination, durationSelector) {
  101039. super(destination);
  101040. this.durationSelector = durationSelector;
  101041. this.hasValue = false;
  101042. }
  101043. _next(value) {
  101044. this.value = value;
  101045. this.hasValue = true;
  101046. if (!this.throttled) {
  101047. let duration;
  101048. try {
  101049. const { durationSelector } = this;
  101050. duration = durationSelector(value);
  101051. }
  101052. catch (err) {
  101053. return this.destination.error(err);
  101054. }
  101055. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, duration);
  101056. if (!innerSubscription || innerSubscription.closed) {
  101057. this.clearThrottle();
  101058. }
  101059. else {
  101060. this.add(this.throttled = innerSubscription);
  101061. }
  101062. }
  101063. }
  101064. clearThrottle() {
  101065. const { value, hasValue, throttled } = this;
  101066. if (throttled) {
  101067. this.remove(throttled);
  101068. this.throttled = null;
  101069. throttled.unsubscribe();
  101070. }
  101071. if (hasValue) {
  101072. this.value = null;
  101073. this.hasValue = false;
  101074. this.destination.next(value);
  101075. }
  101076. }
  101077. notifyNext(outerValue, innerValue, outerIndex, innerIndex) {
  101078. this.clearThrottle();
  101079. }
  101080. notifyComplete() {
  101081. this.clearThrottle();
  101082. }
  101083. }
  101084. //# sourceMappingURL=audit.js.map
  101085. /***/ }),
  101086. /***/ "tyNb":
  101087. /*!**********************************************************************!*\
  101088. !*** ./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js ***!
  101089. \**********************************************************************/
  101090. /*! exports provided: ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, BaseRouteReuseStrategy, ChildActivationEnd, ChildActivationStart, ChildrenOutletContexts, DefaultUrlSerializer, GuardsCheckEnd, GuardsCheckStart, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, NoPreloading, OutletContext, PRIMARY_OUTLET, PreloadAllModules, PreloadingStrategy, ROUTER_CONFIGURATION, ROUTER_INITIALIZER, ROUTES, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterLink, RouterLinkActive, RouterLinkWithHref, RouterModule, RouterOutlet, RouterPreloader, RouterState, RouterStateSnapshot, RoutesRecognized, Scroll, UrlHandlingStrategy, UrlSegment, UrlSegmentGroup, UrlSerializer, UrlTree, VERSION, convertToParamMap, provideRoutes, ɵEmptyOutletComponent, ɵROUTER_PROVIDERS, ɵangular_packages_router_router_a, ɵangular_packages_router_router_b, ɵangular_packages_router_router_c, ɵangular_packages_router_router_d, ɵangular_packages_router_router_e, ɵangular_packages_router_router_f, ɵangular_packages_router_router_g, ɵangular_packages_router_router_h, ɵangular_packages_router_router_i, ɵangular_packages_router_router_j, ɵangular_packages_router_router_k, ɵangular_packages_router_router_l, ɵangular_packages_router_router_m, ɵangular_packages_router_router_n, ɵangular_packages_router_router_o, ɵassignExtraOptionsToRouter, ɵflatten */
  101091. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  101092. "use strict";
  101093. __webpack_require__.r(__webpack_exports__);
  101094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivatedRoute", function() { return ActivatedRoute; });
  101095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivatedRouteSnapshot", function() { return ActivatedRouteSnapshot; });
  101096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivationEnd", function() { return ActivationEnd; });
  101097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ActivationStart", function() { return ActivationStart; });
  101098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BaseRouteReuseStrategy", function() { return BaseRouteReuseStrategy; });
  101099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChildActivationEnd", function() { return ChildActivationEnd; });
  101100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChildActivationStart", function() { return ChildActivationStart; });
  101101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChildrenOutletContexts", function() { return ChildrenOutletContexts; });
  101102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DefaultUrlSerializer", function() { return DefaultUrlSerializer; });
  101103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GuardsCheckEnd", function() { return GuardsCheckEnd; });
  101104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GuardsCheckStart", function() { return GuardsCheckStart; });
  101105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationCancel", function() { return NavigationCancel; });
  101106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationEnd", function() { return NavigationEnd; });
  101107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationError", function() { return NavigationError; });
  101108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NavigationStart", function() { return NavigationStart; });
  101109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NoPreloading", function() { return NoPreloading; });
  101110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OutletContext", function() { return OutletContext; });
  101111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PRIMARY_OUTLET", function() { return PRIMARY_OUTLET; });
  101112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreloadAllModules", function() { return PreloadAllModules; });
  101113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PreloadingStrategy", function() { return PreloadingStrategy; });
  101114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ROUTER_CONFIGURATION", function() { return ROUTER_CONFIGURATION; });
  101115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ROUTER_INITIALIZER", function() { return ROUTER_INITIALIZER; });
  101116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ROUTES", function() { return ROUTES; });
  101117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResolveEnd", function() { return ResolveEnd; });
  101118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ResolveStart", function() { return ResolveStart; });
  101119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouteConfigLoadEnd", function() { return RouteConfigLoadEnd; });
  101120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouteConfigLoadStart", function() { return RouteConfigLoadStart; });
  101121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouteReuseStrategy", function() { return RouteReuseStrategy; });
  101122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Router", function() { return Router; });
  101123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterEvent", function() { return RouterEvent; });
  101124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterLink", function() { return RouterLink; });
  101125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterLinkActive", function() { return RouterLinkActive; });
  101126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterLinkWithHref", function() { return RouterLinkWithHref; });
  101127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterModule", function() { return RouterModule; });
  101128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterOutlet", function() { return RouterOutlet; });
  101129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterPreloader", function() { return RouterPreloader; });
  101130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterState", function() { return RouterState; });
  101131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RouterStateSnapshot", function() { return RouterStateSnapshot; });
  101132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RoutesRecognized", function() { return RoutesRecognized; });
  101133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Scroll", function() { return Scroll; });
  101134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UrlHandlingStrategy", function() { return UrlHandlingStrategy; });
  101135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UrlSegment", function() { return UrlSegment; });
  101136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UrlSegmentGroup", function() { return UrlSegmentGroup; });
  101137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UrlSerializer", function() { return UrlSerializer; });
  101138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UrlTree", function() { return UrlTree; });
  101139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VERSION", function() { return VERSION; });
  101140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertToParamMap", function() { return convertToParamMap; });
  101141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "provideRoutes", function() { return provideRoutes; });
  101142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵEmptyOutletComponent", function() { return ɵEmptyOutletComponent; });
  101143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵROUTER_PROVIDERS", function() { return ROUTER_PROVIDERS; });
  101144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_a", function() { return ROUTER_FORROOT_GUARD; });
  101145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_b", function() { return routerNgProbeToken; });
  101146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_c", function() { return createRouterScroller; });
  101147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_d", function() { return provideLocationStrategy; });
  101148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_e", function() { return provideForRootGuard; });
  101149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_f", function() { return setupRouter; });
  101150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_g", function() { return rootRoute; });
  101151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_h", function() { return RouterInitializer; });
  101152. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_i", function() { return getAppInitializer; });
  101153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_j", function() { return getBootstrapListener; });
  101154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_k", function() { return provideRouterInitializer; });
  101155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_l", function() { return ɵEmptyOutletComponent; });
  101156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_m", function() { return Tree; });
  101157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_n", function() { return TreeNode; });
  101158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵangular_packages_router_router_o", function() { return RouterScroller; });
  101159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵassignExtraOptionsToRouter", function() { return assignExtraOptionsToRouter; });
  101160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ɵflatten", function() { return flatten; });
  101161. /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "ofXK");
  101162. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
  101163. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
  101164. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  101165. /**
  101166. * @license Angular v11.0.4
  101167. * (c) 2010-2020 Google LLC. https://angular.io/
  101168. * License: MIT
  101169. */
  101170. /**
  101171. * @license
  101172. * Copyright Google LLC All Rights Reserved.
  101173. *
  101174. * Use of this source code is governed by an MIT-style license that can be
  101175. * found in the LICENSE file at https://angular.io/license
  101176. */
  101177. /**
  101178. * Base for events the router goes through, as opposed to events tied to a specific
  101179. * route. Fired one time for any given navigation.
  101180. *
  101181. * The following code shows how a class subscribes to router events.
  101182. *
  101183. * ```ts
  101184. * class MyService {
  101185. * constructor(public router: Router, logger: Logger) {
  101186. * router.events.pipe(
  101187. * filter((e: Event): e is RouterEvent => e instanceof RouterEvent)
  101188. * ).subscribe((e: RouterEvent) => {
  101189. * logger.log(e.id, e.url);
  101190. * });
  101191. * }
  101192. * }
  101193. * ```
  101194. *
  101195. * @see `Event`
  101196. * @see [Router events summary](guide/router#router-events)
  101197. * @publicApi
  101198. */
  101199. class RouterEvent {
  101200. constructor(
  101201. /** A unique ID that the router assigns to every router navigation. */
  101202. id,
  101203. /** The URL that is the destination for this navigation. */
  101204. url) {
  101205. this.id = id;
  101206. this.url = url;
  101207. }
  101208. }
  101209. /**
  101210. * An event triggered when a navigation starts.
  101211. *
  101212. * @publicApi
  101213. */
  101214. class NavigationStart extends RouterEvent {
  101215. constructor(
  101216. /** @docsNotRequired */
  101217. id,
  101218. /** @docsNotRequired */
  101219. url,
  101220. /** @docsNotRequired */
  101221. navigationTrigger = 'imperative',
  101222. /** @docsNotRequired */
  101223. restoredState = null) {
  101224. super(id, url);
  101225. this.navigationTrigger = navigationTrigger;
  101226. this.restoredState = restoredState;
  101227. }
  101228. /** @docsNotRequired */
  101229. toString() {
  101230. return `NavigationStart(id: ${this.id}, url: '${this.url}')`;
  101231. }
  101232. }
  101233. /**
  101234. * An event triggered when a navigation ends successfully.
  101235. *
  101236. * @see `NavigationStart`
  101237. * @see `NavigationCancel`
  101238. * @see `NavigationError`
  101239. *
  101240. * @publicApi
  101241. */
  101242. class NavigationEnd extends RouterEvent {
  101243. constructor(
  101244. /** @docsNotRequired */
  101245. id,
  101246. /** @docsNotRequired */
  101247. url,
  101248. /** @docsNotRequired */
  101249. urlAfterRedirects) {
  101250. super(id, url);
  101251. this.urlAfterRedirects = urlAfterRedirects;
  101252. }
  101253. /** @docsNotRequired */
  101254. toString() {
  101255. return `NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`;
  101256. }
  101257. }
  101258. /**
  101259. * An event triggered when a navigation is canceled, directly or indirectly.
  101260. * This can happen when a route guard
  101261. * returns `false` or initiates a redirect by returning a `UrlTree`.
  101262. *
  101263. * @see `NavigationStart`
  101264. * @see `NavigationEnd`
  101265. * @see `NavigationError`
  101266. *
  101267. * @publicApi
  101268. */
  101269. class NavigationCancel extends RouterEvent {
  101270. constructor(
  101271. /** @docsNotRequired */
  101272. id,
  101273. /** @docsNotRequired */
  101274. url,
  101275. /** @docsNotRequired */
  101276. reason) {
  101277. super(id, url);
  101278. this.reason = reason;
  101279. }
  101280. /** @docsNotRequired */
  101281. toString() {
  101282. return `NavigationCancel(id: ${this.id}, url: '${this.url}')`;
  101283. }
  101284. }
  101285. /**
  101286. * An event triggered when a navigation fails due to an unexpected error.
  101287. *
  101288. * @see `NavigationStart`
  101289. * @see `NavigationEnd`
  101290. * @see `NavigationCancel`
  101291. *
  101292. * @publicApi
  101293. */
  101294. class NavigationError extends RouterEvent {
  101295. constructor(
  101296. /** @docsNotRequired */
  101297. id,
  101298. /** @docsNotRequired */
  101299. url,
  101300. /** @docsNotRequired */
  101301. error) {
  101302. super(id, url);
  101303. this.error = error;
  101304. }
  101305. /** @docsNotRequired */
  101306. toString() {
  101307. return `NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`;
  101308. }
  101309. }
  101310. /**
  101311. * An event triggered when routes are recognized.
  101312. *
  101313. * @publicApi
  101314. */
  101315. class RoutesRecognized extends RouterEvent {
  101316. constructor(
  101317. /** @docsNotRequired */
  101318. id,
  101319. /** @docsNotRequired */
  101320. url,
  101321. /** @docsNotRequired */
  101322. urlAfterRedirects,
  101323. /** @docsNotRequired */
  101324. state) {
  101325. super(id, url);
  101326. this.urlAfterRedirects = urlAfterRedirects;
  101327. this.state = state;
  101328. }
  101329. /** @docsNotRequired */
  101330. toString() {
  101331. return `RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
  101332. }
  101333. }
  101334. /**
  101335. * An event triggered at the start of the Guard phase of routing.
  101336. *
  101337. * @see `GuardsCheckEnd`
  101338. *
  101339. * @publicApi
  101340. */
  101341. class GuardsCheckStart extends RouterEvent {
  101342. constructor(
  101343. /** @docsNotRequired */
  101344. id,
  101345. /** @docsNotRequired */
  101346. url,
  101347. /** @docsNotRequired */
  101348. urlAfterRedirects,
  101349. /** @docsNotRequired */
  101350. state) {
  101351. super(id, url);
  101352. this.urlAfterRedirects = urlAfterRedirects;
  101353. this.state = state;
  101354. }
  101355. toString() {
  101356. return `GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
  101357. }
  101358. }
  101359. /**
  101360. * An event triggered at the end of the Guard phase of routing.
  101361. *
  101362. * @see `GuardsCheckStart`
  101363. *
  101364. * @publicApi
  101365. */
  101366. class GuardsCheckEnd extends RouterEvent {
  101367. constructor(
  101368. /** @docsNotRequired */
  101369. id,
  101370. /** @docsNotRequired */
  101371. url,
  101372. /** @docsNotRequired */
  101373. urlAfterRedirects,
  101374. /** @docsNotRequired */
  101375. state,
  101376. /** @docsNotRequired */
  101377. shouldActivate) {
  101378. super(id, url);
  101379. this.urlAfterRedirects = urlAfterRedirects;
  101380. this.state = state;
  101381. this.shouldActivate = shouldActivate;
  101382. }
  101383. toString() {
  101384. return `GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`;
  101385. }
  101386. }
  101387. /**
  101388. * An event triggered at the the start of the Resolve phase of routing.
  101389. *
  101390. * Runs in the "resolve" phase whether or not there is anything to resolve.
  101391. * In future, may change to only run when there are things to be resolved.
  101392. *
  101393. * @see `ResolveEnd`
  101394. *
  101395. * @publicApi
  101396. */
  101397. class ResolveStart extends RouterEvent {
  101398. constructor(
  101399. /** @docsNotRequired */
  101400. id,
  101401. /** @docsNotRequired */
  101402. url,
  101403. /** @docsNotRequired */
  101404. urlAfterRedirects,
  101405. /** @docsNotRequired */
  101406. state) {
  101407. super(id, url);
  101408. this.urlAfterRedirects = urlAfterRedirects;
  101409. this.state = state;
  101410. }
  101411. toString() {
  101412. return `ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
  101413. }
  101414. }
  101415. /**
  101416. * An event triggered at the end of the Resolve phase of routing.
  101417. * @see `ResolveStart`.
  101418. *
  101419. * @publicApi
  101420. */
  101421. class ResolveEnd extends RouterEvent {
  101422. constructor(
  101423. /** @docsNotRequired */
  101424. id,
  101425. /** @docsNotRequired */
  101426. url,
  101427. /** @docsNotRequired */
  101428. urlAfterRedirects,
  101429. /** @docsNotRequired */
  101430. state) {
  101431. super(id, url);
  101432. this.urlAfterRedirects = urlAfterRedirects;
  101433. this.state = state;
  101434. }
  101435. toString() {
  101436. return `ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`;
  101437. }
  101438. }
  101439. /**
  101440. * An event triggered before lazy loading a route configuration.
  101441. *
  101442. * @see `RouteConfigLoadEnd`
  101443. *
  101444. * @publicApi
  101445. */
  101446. class RouteConfigLoadStart {
  101447. constructor(
  101448. /** @docsNotRequired */
  101449. route) {
  101450. this.route = route;
  101451. }
  101452. toString() {
  101453. return `RouteConfigLoadStart(path: ${this.route.path})`;
  101454. }
  101455. }
  101456. /**
  101457. * An event triggered when a route has been lazy loaded.
  101458. *
  101459. * @see `RouteConfigLoadStart`
  101460. *
  101461. * @publicApi
  101462. */
  101463. class RouteConfigLoadEnd {
  101464. constructor(
  101465. /** @docsNotRequired */
  101466. route) {
  101467. this.route = route;
  101468. }
  101469. toString() {
  101470. return `RouteConfigLoadEnd(path: ${this.route.path})`;
  101471. }
  101472. }
  101473. /**
  101474. * An event triggered at the start of the child-activation
  101475. * part of the Resolve phase of routing.
  101476. * @see `ChildActivationEnd`
  101477. * @see `ResolveStart`
  101478. *
  101479. * @publicApi
  101480. */
  101481. class ChildActivationStart {
  101482. constructor(
  101483. /** @docsNotRequired */
  101484. snapshot) {
  101485. this.snapshot = snapshot;
  101486. }
  101487. toString() {
  101488. const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
  101489. return `ChildActivationStart(path: '${path}')`;
  101490. }
  101491. }
  101492. /**
  101493. * An event triggered at the end of the child-activation part
  101494. * of the Resolve phase of routing.
  101495. * @see `ChildActivationStart`
  101496. * @see `ResolveStart`
  101497. * @publicApi
  101498. */
  101499. class ChildActivationEnd {
  101500. constructor(
  101501. /** @docsNotRequired */
  101502. snapshot) {
  101503. this.snapshot = snapshot;
  101504. }
  101505. toString() {
  101506. const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
  101507. return `ChildActivationEnd(path: '${path}')`;
  101508. }
  101509. }
  101510. /**
  101511. * An event triggered at the start of the activation part
  101512. * of the Resolve phase of routing.
  101513. * @see `ActivationEnd`
  101514. * @see `ResolveStart`
  101515. *
  101516. * @publicApi
  101517. */
  101518. class ActivationStart {
  101519. constructor(
  101520. /** @docsNotRequired */
  101521. snapshot) {
  101522. this.snapshot = snapshot;
  101523. }
  101524. toString() {
  101525. const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
  101526. return `ActivationStart(path: '${path}')`;
  101527. }
  101528. }
  101529. /**
  101530. * An event triggered at the end of the activation part
  101531. * of the Resolve phase of routing.
  101532. * @see `ActivationStart`
  101533. * @see `ResolveStart`
  101534. *
  101535. * @publicApi
  101536. */
  101537. class ActivationEnd {
  101538. constructor(
  101539. /** @docsNotRequired */
  101540. snapshot) {
  101541. this.snapshot = snapshot;
  101542. }
  101543. toString() {
  101544. const path = this.snapshot.routeConfig && this.snapshot.routeConfig.path || '';
  101545. return `ActivationEnd(path: '${path}')`;
  101546. }
  101547. }
  101548. /**
  101549. * An event triggered by scrolling.
  101550. *
  101551. * @publicApi
  101552. */
  101553. class Scroll {
  101554. constructor(
  101555. /** @docsNotRequired */
  101556. routerEvent,
  101557. /** @docsNotRequired */
  101558. position,
  101559. /** @docsNotRequired */
  101560. anchor) {
  101561. this.routerEvent = routerEvent;
  101562. this.position = position;
  101563. this.anchor = anchor;
  101564. }
  101565. toString() {
  101566. const pos = this.position ? `${this.position[0]}, ${this.position[1]}` : null;
  101567. return `Scroll(anchor: '${this.anchor}', position: '${pos}')`;
  101568. }
  101569. }
  101570. /**
  101571. * @license
  101572. * Copyright Google LLC All Rights Reserved.
  101573. *
  101574. * Use of this source code is governed by an MIT-style license that can be
  101575. * found in the LICENSE file at https://angular.io/license
  101576. */
  101577. /**
  101578. * The primary routing outlet.
  101579. *
  101580. * @publicApi
  101581. */
  101582. const PRIMARY_OUTLET = 'primary';
  101583. class ParamsAsMap {
  101584. constructor(params) {
  101585. this.params = params || {};
  101586. }
  101587. has(name) {
  101588. return Object.prototype.hasOwnProperty.call(this.params, name);
  101589. }
  101590. get(name) {
  101591. if (this.has(name)) {
  101592. const v = this.params[name];
  101593. return Array.isArray(v) ? v[0] : v;
  101594. }
  101595. return null;
  101596. }
  101597. getAll(name) {
  101598. if (this.has(name)) {
  101599. const v = this.params[name];
  101600. return Array.isArray(v) ? v : [v];
  101601. }
  101602. return [];
  101603. }
  101604. get keys() {
  101605. return Object.keys(this.params);
  101606. }
  101607. }
  101608. /**
  101609. * Converts a `Params` instance to a `ParamMap`.
  101610. * @param params The instance to convert.
  101611. * @returns The new map instance.
  101612. *
  101613. * @publicApi
  101614. */
  101615. function convertToParamMap(params) {
  101616. return new ParamsAsMap(params);
  101617. }
  101618. const NAVIGATION_CANCELING_ERROR = 'ngNavigationCancelingError';
  101619. function navigationCancelingError(message) {
  101620. const error = Error('NavigationCancelingError: ' + message);
  101621. error[NAVIGATION_CANCELING_ERROR] = true;
  101622. return error;
  101623. }
  101624. function isNavigationCancelingError(error) {
  101625. return error && error[NAVIGATION_CANCELING_ERROR];
  101626. }
  101627. // Matches the route configuration (`route`) against the actual URL (`segments`).
  101628. function defaultUrlMatcher(segments, segmentGroup, route) {
  101629. const parts = route.path.split('/');
  101630. if (parts.length > segments.length) {
  101631. // The actual URL is shorter than the config, no match
  101632. return null;
  101633. }
  101634. if (route.pathMatch === 'full' &&
  101635. (segmentGroup.hasChildren() || parts.length < segments.length)) {
  101636. // The config is longer than the actual URL but we are looking for a full match, return null
  101637. return null;
  101638. }
  101639. const posParams = {};
  101640. // Check each config part against the actual URL
  101641. for (let index = 0; index < parts.length; index++) {
  101642. const part = parts[index];
  101643. const segment = segments[index];
  101644. const isParameter = part.startsWith(':');
  101645. if (isParameter) {
  101646. posParams[part.substring(1)] = segment;
  101647. }
  101648. else if (part !== segment.path) {
  101649. // The actual URL part does not match the config, no match
  101650. return null;
  101651. }
  101652. }
  101653. return { consumed: segments.slice(0, parts.length), posParams };
  101654. }
  101655. /**
  101656. * @license
  101657. * Copyright Google LLC All Rights Reserved.
  101658. *
  101659. * Use of this source code is governed by an MIT-style license that can be
  101660. * found in the LICENSE file at https://angular.io/license
  101661. */
  101662. function shallowEqualArrays(a, b) {
  101663. if (a.length !== b.length)
  101664. return false;
  101665. for (let i = 0; i < a.length; ++i) {
  101666. if (!shallowEqual(a[i], b[i]))
  101667. return false;
  101668. }
  101669. return true;
  101670. }
  101671. function shallowEqual(a, b) {
  101672. // Casting Object.keys return values to include `undefined` as there are some cases
  101673. // in IE 11 where this can happen. Cannot provide a test because the behavior only
  101674. // exists in certain circumstances in IE 11, therefore doing this cast ensures the
  101675. // logic is correct for when this edge case is hit.
  101676. const k1 = Object.keys(a);
  101677. const k2 = Object.keys(b);
  101678. if (!k1 || !k2 || k1.length != k2.length) {
  101679. return false;
  101680. }
  101681. let key;
  101682. for (let i = 0; i < k1.length; i++) {
  101683. key = k1[i];
  101684. if (!equalArraysOrString(a[key], b[key])) {
  101685. return false;
  101686. }
  101687. }
  101688. return true;
  101689. }
  101690. /**
  101691. * Test equality for arrays of strings or a string.
  101692. */
  101693. function equalArraysOrString(a, b) {
  101694. if (Array.isArray(a) && Array.isArray(b)) {
  101695. if (a.length !== b.length)
  101696. return false;
  101697. const aSorted = [...a].sort();
  101698. const bSorted = [...b].sort();
  101699. return aSorted.every((val, index) => bSorted[index] === val);
  101700. }
  101701. else {
  101702. return a === b;
  101703. }
  101704. }
  101705. /**
  101706. * Flattens single-level nested arrays.
  101707. */
  101708. function flatten(arr) {
  101709. return Array.prototype.concat.apply([], arr);
  101710. }
  101711. /**
  101712. * Return the last element of an array.
  101713. */
  101714. function last(a) {
  101715. return a.length > 0 ? a[a.length - 1] : null;
  101716. }
  101717. /**
  101718. * Verifys all booleans in an array are `true`.
  101719. */
  101720. function and(bools) {
  101721. return !bools.some(v => !v);
  101722. }
  101723. function forEach(map, callback) {
  101724. for (const prop in map) {
  101725. if (map.hasOwnProperty(prop)) {
  101726. callback(map[prop], prop);
  101727. }
  101728. }
  101729. }
  101730. function waitForMap(obj, fn) {
  101731. if (Object.keys(obj).length === 0) {
  101732. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])({});
  101733. }
  101734. const waitHead = [];
  101735. const waitTail = [];
  101736. const res = {};
  101737. forEach(obj, (a, k) => {
  101738. const mapped = fn(k, a).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((r) => res[k] = r));
  101739. if (k === PRIMARY_OUTLET) {
  101740. waitHead.push(mapped);
  101741. }
  101742. else {
  101743. waitTail.push(mapped);
  101744. }
  101745. });
  101746. // Closure compiler has problem with using spread operator here. So we use "Array.concat".
  101747. // Note that we also need to cast the new promise because TypeScript cannot infer the type
  101748. // when calling the "of" function through "Function.apply"
  101749. return rxjs__WEBPACK_IMPORTED_MODULE_2__["of"].apply(null, waitHead.concat(waitTail))
  101750. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatAll"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["last"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(() => res));
  101751. }
  101752. function wrapIntoObservable(value) {
  101753. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵisObservable"])(value)) {
  101754. return value;
  101755. }
  101756. if (Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵisPromise"])(value)) {
  101757. // Use `Promise.resolve()` to wrap promise-like instances.
  101758. // Required ie when a Resolver returns a AngularJS `$q` promise to correctly trigger the
  101759. // change detection.
  101760. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(Promise.resolve(value));
  101761. }
  101762. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(value);
  101763. }
  101764. /**
  101765. * @license
  101766. * Copyright Google LLC All Rights Reserved.
  101767. *
  101768. * Use of this source code is governed by an MIT-style license that can be
  101769. * found in the LICENSE file at https://angular.io/license
  101770. */
  101771. function createEmptyUrlTree() {
  101772. return new UrlTree(new UrlSegmentGroup([], {}), {}, null);
  101773. }
  101774. function containsTree(container, containee, exact) {
  101775. if (exact) {
  101776. return equalQueryParams(container.queryParams, containee.queryParams) &&
  101777. equalSegmentGroups(container.root, containee.root);
  101778. }
  101779. return containsQueryParams(container.queryParams, containee.queryParams) &&
  101780. containsSegmentGroup(container.root, containee.root);
  101781. }
  101782. function equalQueryParams(container, containee) {
  101783. // TODO: This does not handle array params correctly.
  101784. return shallowEqual(container, containee);
  101785. }
  101786. function equalSegmentGroups(container, containee) {
  101787. if (!equalPath(container.segments, containee.segments))
  101788. return false;
  101789. if (container.numberOfChildren !== containee.numberOfChildren)
  101790. return false;
  101791. for (const c in containee.children) {
  101792. if (!container.children[c])
  101793. return false;
  101794. if (!equalSegmentGroups(container.children[c], containee.children[c]))
  101795. return false;
  101796. }
  101797. return true;
  101798. }
  101799. function containsQueryParams(container, containee) {
  101800. return Object.keys(containee).length <= Object.keys(container).length &&
  101801. Object.keys(containee).every(key => equalArraysOrString(container[key], containee[key]));
  101802. }
  101803. function containsSegmentGroup(container, containee) {
  101804. return containsSegmentGroupHelper(container, containee, containee.segments);
  101805. }
  101806. function containsSegmentGroupHelper(container, containee, containeePaths) {
  101807. if (container.segments.length > containeePaths.length) {
  101808. const current = container.segments.slice(0, containeePaths.length);
  101809. if (!equalPath(current, containeePaths))
  101810. return false;
  101811. if (containee.hasChildren())
  101812. return false;
  101813. return true;
  101814. }
  101815. else if (container.segments.length === containeePaths.length) {
  101816. if (!equalPath(container.segments, containeePaths))
  101817. return false;
  101818. for (const c in containee.children) {
  101819. if (!container.children[c])
  101820. return false;
  101821. if (!containsSegmentGroup(container.children[c], containee.children[c]))
  101822. return false;
  101823. }
  101824. return true;
  101825. }
  101826. else {
  101827. const current = containeePaths.slice(0, container.segments.length);
  101828. const next = containeePaths.slice(container.segments.length);
  101829. if (!equalPath(container.segments, current))
  101830. return false;
  101831. if (!container.children[PRIMARY_OUTLET])
  101832. return false;
  101833. return containsSegmentGroupHelper(container.children[PRIMARY_OUTLET], containee, next);
  101834. }
  101835. }
  101836. /**
  101837. * @description
  101838. *
  101839. * Represents the parsed URL.
  101840. *
  101841. * Since a router state is a tree, and the URL is nothing but a serialized state, the URL is a
  101842. * serialized tree.
  101843. * UrlTree is a data structure that provides a lot of affordances in dealing with URLs
  101844. *
  101845. * @usageNotes
  101846. * ### Example
  101847. *
  101848. * ```
  101849. * @Component({templateUrl:'template.html'})
  101850. * class MyComponent {
  101851. * constructor(router: Router) {
  101852. * const tree: UrlTree =
  101853. * router.parseUrl('/team/33/(user/victor//support:help)?debug=true#fragment');
  101854. * const f = tree.fragment; // return 'fragment'
  101855. * const q = tree.queryParams; // returns {debug: 'true'}
  101856. * const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];
  101857. * const s: UrlSegment[] = g.segments; // returns 2 segments 'team' and '33'
  101858. * g.children[PRIMARY_OUTLET].segments; // returns 2 segments 'user' and 'victor'
  101859. * g.children['support'].segments; // return 1 segment 'help'
  101860. * }
  101861. * }
  101862. * ```
  101863. *
  101864. * @publicApi
  101865. */
  101866. class UrlTree {
  101867. /** @internal */
  101868. constructor(
  101869. /** The root segment group of the URL tree */
  101870. root,
  101871. /** The query params of the URL */
  101872. queryParams,
  101873. /** The fragment of the URL */
  101874. fragment) {
  101875. this.root = root;
  101876. this.queryParams = queryParams;
  101877. this.fragment = fragment;
  101878. }
  101879. get queryParamMap() {
  101880. if (!this._queryParamMap) {
  101881. this._queryParamMap = convertToParamMap(this.queryParams);
  101882. }
  101883. return this._queryParamMap;
  101884. }
  101885. /** @docsNotRequired */
  101886. toString() {
  101887. return DEFAULT_SERIALIZER.serialize(this);
  101888. }
  101889. }
  101890. /**
  101891. * @description
  101892. *
  101893. * Represents the parsed URL segment group.
  101894. *
  101895. * See `UrlTree` for more information.
  101896. *
  101897. * @publicApi
  101898. */
  101899. class UrlSegmentGroup {
  101900. constructor(
  101901. /** The URL segments of this group. See `UrlSegment` for more information */
  101902. segments,
  101903. /** The list of children of this group */
  101904. children) {
  101905. this.segments = segments;
  101906. this.children = children;
  101907. /** The parent node in the url tree */
  101908. this.parent = null;
  101909. forEach(children, (v, k) => v.parent = this);
  101910. }
  101911. /** Whether the segment has child segments */
  101912. hasChildren() {
  101913. return this.numberOfChildren > 0;
  101914. }
  101915. /** Number of child segments */
  101916. get numberOfChildren() {
  101917. return Object.keys(this.children).length;
  101918. }
  101919. /** @docsNotRequired */
  101920. toString() {
  101921. return serializePaths(this);
  101922. }
  101923. }
  101924. /**
  101925. * @description
  101926. *
  101927. * Represents a single URL segment.
  101928. *
  101929. * A UrlSegment is a part of a URL between the two slashes. It contains a path and the matrix
  101930. * parameters associated with the segment.
  101931. *
  101932. * @usageNotes
  101933. * ### Example
  101934. *
  101935. * ```
  101936. * @Component({templateUrl:'template.html'})
  101937. * class MyComponent {
  101938. * constructor(router: Router) {
  101939. * const tree: UrlTree = router.parseUrl('/team;id=33');
  101940. * const g: UrlSegmentGroup = tree.root.children[PRIMARY_OUTLET];
  101941. * const s: UrlSegment[] = g.segments;
  101942. * s[0].path; // returns 'team'
  101943. * s[0].parameters; // returns {id: 33}
  101944. * }
  101945. * }
  101946. * ```
  101947. *
  101948. * @publicApi
  101949. */
  101950. class UrlSegment {
  101951. constructor(
  101952. /** The path part of a URL segment */
  101953. path,
  101954. /** The matrix parameters associated with a segment */
  101955. parameters) {
  101956. this.path = path;
  101957. this.parameters = parameters;
  101958. }
  101959. get parameterMap() {
  101960. if (!this._parameterMap) {
  101961. this._parameterMap = convertToParamMap(this.parameters);
  101962. }
  101963. return this._parameterMap;
  101964. }
  101965. /** @docsNotRequired */
  101966. toString() {
  101967. return serializePath(this);
  101968. }
  101969. }
  101970. function equalSegments(as, bs) {
  101971. return equalPath(as, bs) && as.every((a, i) => shallowEqual(a.parameters, bs[i].parameters));
  101972. }
  101973. function equalPath(as, bs) {
  101974. if (as.length !== bs.length)
  101975. return false;
  101976. return as.every((a, i) => a.path === bs[i].path);
  101977. }
  101978. function mapChildrenIntoArray(segment, fn) {
  101979. let res = [];
  101980. forEach(segment.children, (child, childOutlet) => {
  101981. if (childOutlet === PRIMARY_OUTLET) {
  101982. res = res.concat(fn(child, childOutlet));
  101983. }
  101984. });
  101985. forEach(segment.children, (child, childOutlet) => {
  101986. if (childOutlet !== PRIMARY_OUTLET) {
  101987. res = res.concat(fn(child, childOutlet));
  101988. }
  101989. });
  101990. return res;
  101991. }
  101992. /**
  101993. * @description
  101994. *
  101995. * Serializes and deserializes a URL string into a URL tree.
  101996. *
  101997. * The url serialization strategy is customizable. You can
  101998. * make all URLs case insensitive by providing a custom UrlSerializer.
  101999. *
  102000. * See `DefaultUrlSerializer` for an example of a URL serializer.
  102001. *
  102002. * @publicApi
  102003. */
  102004. class UrlSerializer {
  102005. }
  102006. /**
  102007. * @description
  102008. *
  102009. * A default implementation of the `UrlSerializer`.
  102010. *
  102011. * Example URLs:
  102012. *
  102013. * ```
  102014. * /inbox/33(popup:compose)
  102015. * /inbox/33;open=true/messages/44
  102016. * ```
  102017. *
  102018. * DefaultUrlSerializer uses parentheses to serialize secondary segments (e.g., popup:compose), the
  102019. * colon syntax to specify the outlet, and the ';parameter=value' syntax (e.g., open=true) to
  102020. * specify route specific parameters.
  102021. *
  102022. * @publicApi
  102023. */
  102024. class DefaultUrlSerializer {
  102025. /** Parses a url into a `UrlTree` */
  102026. parse(url) {
  102027. const p = new UrlParser(url);
  102028. return new UrlTree(p.parseRootSegment(), p.parseQueryParams(), p.parseFragment());
  102029. }
  102030. /** Converts a `UrlTree` into a url */
  102031. serialize(tree) {
  102032. const segment = `/${serializeSegment(tree.root, true)}`;
  102033. const query = serializeQueryParams(tree.queryParams);
  102034. const fragment = typeof tree.fragment === `string` ? `#${encodeUriFragment(tree.fragment)}` : '';
  102035. return `${segment}${query}${fragment}`;
  102036. }
  102037. }
  102038. const DEFAULT_SERIALIZER = new DefaultUrlSerializer();
  102039. function serializePaths(segment) {
  102040. return segment.segments.map(p => serializePath(p)).join('/');
  102041. }
  102042. function serializeSegment(segment, root) {
  102043. if (!segment.hasChildren()) {
  102044. return serializePaths(segment);
  102045. }
  102046. if (root) {
  102047. const primary = segment.children[PRIMARY_OUTLET] ?
  102048. serializeSegment(segment.children[PRIMARY_OUTLET], false) :
  102049. '';
  102050. const children = [];
  102051. forEach(segment.children, (v, k) => {
  102052. if (k !== PRIMARY_OUTLET) {
  102053. children.push(`${k}:${serializeSegment(v, false)}`);
  102054. }
  102055. });
  102056. return children.length > 0 ? `${primary}(${children.join('//')})` : primary;
  102057. }
  102058. else {
  102059. const children = mapChildrenIntoArray(segment, (v, k) => {
  102060. if (k === PRIMARY_OUTLET) {
  102061. return [serializeSegment(segment.children[PRIMARY_OUTLET], false)];
  102062. }
  102063. return [`${k}:${serializeSegment(v, false)}`];
  102064. });
  102065. // use no parenthesis if the only child is a primary outlet route
  102066. if (Object.keys(segment.children).length === 1 && segment.children[PRIMARY_OUTLET] != null) {
  102067. return `${serializePaths(segment)}/${children[0]}`;
  102068. }
  102069. return `${serializePaths(segment)}/(${children.join('//')})`;
  102070. }
  102071. }
  102072. /**
  102073. * Encodes a URI string with the default encoding. This function will only ever be called from
  102074. * `encodeUriQuery` or `encodeUriSegment` as it's the base set of encodings to be used. We need
  102075. * a custom encoding because encodeURIComponent is too aggressive and encodes stuff that doesn't
  102076. * have to be encoded per https://url.spec.whatwg.org.
  102077. */
  102078. function encodeUriString(s) {
  102079. return encodeURIComponent(s)
  102080. .replace(/%40/g, '@')
  102081. .replace(/%3A/gi, ':')
  102082. .replace(/%24/g, '$')
  102083. .replace(/%2C/gi, ',');
  102084. }
  102085. /**
  102086. * This function should be used to encode both keys and values in a query string key/value. In
  102087. * the following URL, you need to call encodeUriQuery on "k" and "v":
  102088. *
  102089. * http://www.site.org/html;mk=mv?k=v#f
  102090. */
  102091. function encodeUriQuery(s) {
  102092. return encodeUriString(s).replace(/%3B/gi, ';');
  102093. }
  102094. /**
  102095. * This function should be used to encode a URL fragment. In the following URL, you need to call
  102096. * encodeUriFragment on "f":
  102097. *
  102098. * http://www.site.org/html;mk=mv?k=v#f
  102099. */
  102100. function encodeUriFragment(s) {
  102101. return encodeURI(s);
  102102. }
  102103. /**
  102104. * This function should be run on any URI segment as well as the key and value in a key/value
  102105. * pair for matrix params. In the following URL, you need to call encodeUriSegment on "html",
  102106. * "mk", and "mv":
  102107. *
  102108. * http://www.site.org/html;mk=mv?k=v#f
  102109. */
  102110. function encodeUriSegment(s) {
  102111. return encodeUriString(s).replace(/\(/g, '%28').replace(/\)/g, '%29').replace(/%26/gi, '&');
  102112. }
  102113. function decode(s) {
  102114. return decodeURIComponent(s);
  102115. }
  102116. // Query keys/values should have the "+" replaced first, as "+" in a query string is " ".
  102117. // decodeURIComponent function will not decode "+" as a space.
  102118. function decodeQuery(s) {
  102119. return decode(s.replace(/\+/g, '%20'));
  102120. }
  102121. function serializePath(path) {
  102122. return `${encodeUriSegment(path.path)}${serializeMatrixParams(path.parameters)}`;
  102123. }
  102124. function serializeMatrixParams(params) {
  102125. return Object.keys(params)
  102126. .map(key => `;${encodeUriSegment(key)}=${encodeUriSegment(params[key])}`)
  102127. .join('');
  102128. }
  102129. function serializeQueryParams(params) {
  102130. const strParams = Object.keys(params).map((name) => {
  102131. const value = params[name];
  102132. return Array.isArray(value) ?
  102133. value.map(v => `${encodeUriQuery(name)}=${encodeUriQuery(v)}`).join('&') :
  102134. `${encodeUriQuery(name)}=${encodeUriQuery(value)}`;
  102135. });
  102136. return strParams.length ? `?${strParams.join('&')}` : '';
  102137. }
  102138. const SEGMENT_RE = /^[^\/()?;=#]+/;
  102139. function matchSegments(str) {
  102140. const match = str.match(SEGMENT_RE);
  102141. return match ? match[0] : '';
  102142. }
  102143. const QUERY_PARAM_RE = /^[^=?&#]+/;
  102144. // Return the name of the query param at the start of the string or an empty string
  102145. function matchQueryParams(str) {
  102146. const match = str.match(QUERY_PARAM_RE);
  102147. return match ? match[0] : '';
  102148. }
  102149. const QUERY_PARAM_VALUE_RE = /^[^?&#]+/;
  102150. // Return the value of the query param at the start of the string or an empty string
  102151. function matchUrlQueryParamValue(str) {
  102152. const match = str.match(QUERY_PARAM_VALUE_RE);
  102153. return match ? match[0] : '';
  102154. }
  102155. class UrlParser {
  102156. constructor(url) {
  102157. this.url = url;
  102158. this.remaining = url;
  102159. }
  102160. parseRootSegment() {
  102161. this.consumeOptional('/');
  102162. if (this.remaining === '' || this.peekStartsWith('?') || this.peekStartsWith('#')) {
  102163. return new UrlSegmentGroup([], {});
  102164. }
  102165. // The root segment group never has segments
  102166. return new UrlSegmentGroup([], this.parseChildren());
  102167. }
  102168. parseQueryParams() {
  102169. const params = {};
  102170. if (this.consumeOptional('?')) {
  102171. do {
  102172. this.parseQueryParam(params);
  102173. } while (this.consumeOptional('&'));
  102174. }
  102175. return params;
  102176. }
  102177. parseFragment() {
  102178. return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;
  102179. }
  102180. parseChildren() {
  102181. if (this.remaining === '') {
  102182. return {};
  102183. }
  102184. this.consumeOptional('/');
  102185. const segments = [];
  102186. if (!this.peekStartsWith('(')) {
  102187. segments.push(this.parseSegment());
  102188. }
  102189. while (this.peekStartsWith('/') && !this.peekStartsWith('//') && !this.peekStartsWith('/(')) {
  102190. this.capture('/');
  102191. segments.push(this.parseSegment());
  102192. }
  102193. let children = {};
  102194. if (this.peekStartsWith('/(')) {
  102195. this.capture('/');
  102196. children = this.parseParens(true);
  102197. }
  102198. let res = {};
  102199. if (this.peekStartsWith('(')) {
  102200. res = this.parseParens(false);
  102201. }
  102202. if (segments.length > 0 || Object.keys(children).length > 0) {
  102203. res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);
  102204. }
  102205. return res;
  102206. }
  102207. // parse a segment with its matrix parameters
  102208. // ie `name;k1=v1;k2`
  102209. parseSegment() {
  102210. const path = matchSegments(this.remaining);
  102211. if (path === '' && this.peekStartsWith(';')) {
  102212. throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);
  102213. }
  102214. this.capture(path);
  102215. return new UrlSegment(decode(path), this.parseMatrixParams());
  102216. }
  102217. parseMatrixParams() {
  102218. const params = {};
  102219. while (this.consumeOptional(';')) {
  102220. this.parseParam(params);
  102221. }
  102222. return params;
  102223. }
  102224. parseParam(params) {
  102225. const key = matchSegments(this.remaining);
  102226. if (!key) {
  102227. return;
  102228. }
  102229. this.capture(key);
  102230. let value = '';
  102231. if (this.consumeOptional('=')) {
  102232. const valueMatch = matchSegments(this.remaining);
  102233. if (valueMatch) {
  102234. value = valueMatch;
  102235. this.capture(value);
  102236. }
  102237. }
  102238. params[decode(key)] = decode(value);
  102239. }
  102240. // Parse a single query parameter `name[=value]`
  102241. parseQueryParam(params) {
  102242. const key = matchQueryParams(this.remaining);
  102243. if (!key) {
  102244. return;
  102245. }
  102246. this.capture(key);
  102247. let value = '';
  102248. if (this.consumeOptional('=')) {
  102249. const valueMatch = matchUrlQueryParamValue(this.remaining);
  102250. if (valueMatch) {
  102251. value = valueMatch;
  102252. this.capture(value);
  102253. }
  102254. }
  102255. const decodedKey = decodeQuery(key);
  102256. const decodedVal = decodeQuery(value);
  102257. if (params.hasOwnProperty(decodedKey)) {
  102258. // Append to existing values
  102259. let currentVal = params[decodedKey];
  102260. if (!Array.isArray(currentVal)) {
  102261. currentVal = [currentVal];
  102262. params[decodedKey] = currentVal;
  102263. }
  102264. currentVal.push(decodedVal);
  102265. }
  102266. else {
  102267. // Create a new value
  102268. params[decodedKey] = decodedVal;
  102269. }
  102270. }
  102271. // parse `(a/b//outlet_name:c/d)`
  102272. parseParens(allowPrimary) {
  102273. const segments = {};
  102274. this.capture('(');
  102275. while (!this.consumeOptional(')') && this.remaining.length > 0) {
  102276. const path = matchSegments(this.remaining);
  102277. const next = this.remaining[path.length];
  102278. // if is is not one of these characters, then the segment was unescaped
  102279. // or the group was not closed
  102280. if (next !== '/' && next !== ')' && next !== ';') {
  102281. throw new Error(`Cannot parse url '${this.url}'`);
  102282. }
  102283. let outletName = undefined;
  102284. if (path.indexOf(':') > -1) {
  102285. outletName = path.substr(0, path.indexOf(':'));
  102286. this.capture(outletName);
  102287. this.capture(':');
  102288. }
  102289. else if (allowPrimary) {
  102290. outletName = PRIMARY_OUTLET;
  102291. }
  102292. const children = this.parseChildren();
  102293. segments[outletName] = Object.keys(children).length === 1 ? children[PRIMARY_OUTLET] :
  102294. new UrlSegmentGroup([], children);
  102295. this.consumeOptional('//');
  102296. }
  102297. return segments;
  102298. }
  102299. peekStartsWith(str) {
  102300. return this.remaining.startsWith(str);
  102301. }
  102302. // Consumes the prefix when it is present and returns whether it has been consumed
  102303. consumeOptional(str) {
  102304. if (this.peekStartsWith(str)) {
  102305. this.remaining = this.remaining.substring(str.length);
  102306. return true;
  102307. }
  102308. return false;
  102309. }
  102310. capture(str) {
  102311. if (!this.consumeOptional(str)) {
  102312. throw new Error(`Expected "${str}".`);
  102313. }
  102314. }
  102315. }
  102316. /**
  102317. * @license
  102318. * Copyright Google LLC All Rights Reserved.
  102319. *
  102320. * Use of this source code is governed by an MIT-style license that can be
  102321. * found in the LICENSE file at https://angular.io/license
  102322. */
  102323. class Tree {
  102324. constructor(root) {
  102325. this._root = root;
  102326. }
  102327. get root() {
  102328. return this._root.value;
  102329. }
  102330. /**
  102331. * @internal
  102332. */
  102333. parent(t) {
  102334. const p = this.pathFromRoot(t);
  102335. return p.length > 1 ? p[p.length - 2] : null;
  102336. }
  102337. /**
  102338. * @internal
  102339. */
  102340. children(t) {
  102341. const n = findNode(t, this._root);
  102342. return n ? n.children.map(t => t.value) : [];
  102343. }
  102344. /**
  102345. * @internal
  102346. */
  102347. firstChild(t) {
  102348. const n = findNode(t, this._root);
  102349. return n && n.children.length > 0 ? n.children[0].value : null;
  102350. }
  102351. /**
  102352. * @internal
  102353. */
  102354. siblings(t) {
  102355. const p = findPath(t, this._root);
  102356. if (p.length < 2)
  102357. return [];
  102358. const c = p[p.length - 2].children.map(c => c.value);
  102359. return c.filter(cc => cc !== t);
  102360. }
  102361. /**
  102362. * @internal
  102363. */
  102364. pathFromRoot(t) {
  102365. return findPath(t, this._root).map(s => s.value);
  102366. }
  102367. }
  102368. // DFS for the node matching the value
  102369. function findNode(value, node) {
  102370. if (value === node.value)
  102371. return node;
  102372. for (const child of node.children) {
  102373. const node = findNode(value, child);
  102374. if (node)
  102375. return node;
  102376. }
  102377. return null;
  102378. }
  102379. // Return the path to the node with the given value using DFS
  102380. function findPath(value, node) {
  102381. if (value === node.value)
  102382. return [node];
  102383. for (const child of node.children) {
  102384. const path = findPath(value, child);
  102385. if (path.length) {
  102386. path.unshift(node);
  102387. return path;
  102388. }
  102389. }
  102390. return [];
  102391. }
  102392. class TreeNode {
  102393. constructor(value, children) {
  102394. this.value = value;
  102395. this.children = children;
  102396. }
  102397. toString() {
  102398. return `TreeNode(${this.value})`;
  102399. }
  102400. }
  102401. // Return the list of T indexed by outlet name
  102402. function nodeChildrenAsMap(node) {
  102403. const map = {};
  102404. if (node) {
  102405. node.children.forEach(child => map[child.value.outlet] = child);
  102406. }
  102407. return map;
  102408. }
  102409. /**
  102410. * @license
  102411. * Copyright Google LLC All Rights Reserved.
  102412. *
  102413. * Use of this source code is governed by an MIT-style license that can be
  102414. * found in the LICENSE file at https://angular.io/license
  102415. */
  102416. /**
  102417. * Represents the state of the router as a tree of activated routes.
  102418. *
  102419. * @usageNotes
  102420. *
  102421. * Every node in the route tree is an `ActivatedRoute` instance
  102422. * that knows about the "consumed" URL segments, the extracted parameters,
  102423. * and the resolved data.
  102424. * Use the `ActivatedRoute` properties to traverse the tree from any node.
  102425. *
  102426. * The following fragment shows how a component gets the root node
  102427. * of the current state to establish its own route tree:
  102428. *
  102429. * ```
  102430. * @Component({templateUrl:'template.html'})
  102431. * class MyComponent {
  102432. * constructor(router: Router) {
  102433. * const state: RouterState = router.routerState;
  102434. * const root: ActivatedRoute = state.root;
  102435. * const child = root.firstChild;
  102436. * const id: Observable<string> = child.params.map(p => p.id);
  102437. * //...
  102438. * }
  102439. * }
  102440. * ```
  102441. *
  102442. * @see `ActivatedRoute`
  102443. * @see [Getting route information](guide/router#getting-route-information)
  102444. *
  102445. * @publicApi
  102446. */
  102447. class RouterState extends Tree {
  102448. /** @internal */
  102449. constructor(root,
  102450. /** The current snapshot of the router state */
  102451. snapshot) {
  102452. super(root);
  102453. this.snapshot = snapshot;
  102454. setRouterState(this, root);
  102455. }
  102456. toString() {
  102457. return this.snapshot.toString();
  102458. }
  102459. }
  102460. function createEmptyState(urlTree, rootComponent) {
  102461. const snapshot = createEmptyStateSnapshot(urlTree, rootComponent);
  102462. const emptyUrl = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]([new UrlSegment('', {})]);
  102463. const emptyParams = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]({});
  102464. const emptyData = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]({});
  102465. const emptyQueryParams = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]({});
  102466. const fragment = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]('');
  102467. const activated = new ActivatedRoute(emptyUrl, emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, snapshot.root);
  102468. activated.snapshot = snapshot.root;
  102469. return new RouterState(new TreeNode(activated, []), snapshot);
  102470. }
  102471. function createEmptyStateSnapshot(urlTree, rootComponent) {
  102472. const emptyParams = {};
  102473. const emptyData = {};
  102474. const emptyQueryParams = {};
  102475. const fragment = '';
  102476. const activated = new ActivatedRouteSnapshot([], emptyParams, emptyQueryParams, fragment, emptyData, PRIMARY_OUTLET, rootComponent, null, urlTree.root, -1, {});
  102477. return new RouterStateSnapshot('', new TreeNode(activated, []));
  102478. }
  102479. /**
  102480. * Provides access to information about a route associated with a component
  102481. * that is loaded in an outlet.
  102482. * Use to traverse the `RouterState` tree and extract information from nodes.
  102483. *
  102484. * The following example shows how to construct a component using information from a
  102485. * currently activated route.
  102486. *
  102487. * {@example router/activated-route/module.ts region="activated-route"
  102488. * header="activated-route.component.ts"}
  102489. *
  102490. * @see [Getting route information](guide/router#getting-route-information)
  102491. *
  102492. * @publicApi
  102493. */
  102494. class ActivatedRoute {
  102495. /** @internal */
  102496. constructor(
  102497. /** An observable of the URL segments matched by this route. */
  102498. url,
  102499. /** An observable of the matrix parameters scoped to this route. */
  102500. params,
  102501. /** An observable of the query parameters shared by all the routes. */
  102502. queryParams,
  102503. /** An observable of the URL fragment shared by all the routes. */
  102504. fragment,
  102505. /** An observable of the static and resolved data of this route. */
  102506. data,
  102507. /** The outlet name of the route, a constant. */
  102508. outlet,
  102509. /** The component of the route, a constant. */
  102510. // TODO(vsavkin): remove |string
  102511. component, futureSnapshot) {
  102512. this.url = url;
  102513. this.params = params;
  102514. this.queryParams = queryParams;
  102515. this.fragment = fragment;
  102516. this.data = data;
  102517. this.outlet = outlet;
  102518. this.component = component;
  102519. this._futureSnapshot = futureSnapshot;
  102520. }
  102521. /** The configuration used to match this route. */
  102522. get routeConfig() {
  102523. return this._futureSnapshot.routeConfig;
  102524. }
  102525. /** The root of the router state. */
  102526. get root() {
  102527. return this._routerState.root;
  102528. }
  102529. /** The parent of this route in the router state tree. */
  102530. get parent() {
  102531. return this._routerState.parent(this);
  102532. }
  102533. /** The first child of this route in the router state tree. */
  102534. get firstChild() {
  102535. return this._routerState.firstChild(this);
  102536. }
  102537. /** The children of this route in the router state tree. */
  102538. get children() {
  102539. return this._routerState.children(this);
  102540. }
  102541. /** The path from the root of the router state tree to this route. */
  102542. get pathFromRoot() {
  102543. return this._routerState.pathFromRoot(this);
  102544. }
  102545. /**
  102546. * An Observable that contains a map of the required and optional parameters
  102547. * specific to the route.
  102548. * The map supports retrieving single and multiple values from the same parameter.
  102549. */
  102550. get paramMap() {
  102551. if (!this._paramMap) {
  102552. this._paramMap = this.params.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((p) => convertToParamMap(p)));
  102553. }
  102554. return this._paramMap;
  102555. }
  102556. /**
  102557. * An Observable that contains a map of the query parameters available to all routes.
  102558. * The map supports retrieving single and multiple values from the query parameter.
  102559. */
  102560. get queryParamMap() {
  102561. if (!this._queryParamMap) {
  102562. this._queryParamMap =
  102563. this.queryParams.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((p) => convertToParamMap(p)));
  102564. }
  102565. return this._queryParamMap;
  102566. }
  102567. toString() {
  102568. return this.snapshot ? this.snapshot.toString() : `Future(${this._futureSnapshot})`;
  102569. }
  102570. }
  102571. /**
  102572. * Returns the inherited params, data, and resolve for a given route.
  102573. * By default, this only inherits values up to the nearest path-less or component-less route.
  102574. * @internal
  102575. */
  102576. function inheritedParamsDataResolve(route, paramsInheritanceStrategy = 'emptyOnly') {
  102577. const pathFromRoot = route.pathFromRoot;
  102578. let inheritingStartingFrom = 0;
  102579. if (paramsInheritanceStrategy !== 'always') {
  102580. inheritingStartingFrom = pathFromRoot.length - 1;
  102581. while (inheritingStartingFrom >= 1) {
  102582. const current = pathFromRoot[inheritingStartingFrom];
  102583. const parent = pathFromRoot[inheritingStartingFrom - 1];
  102584. // current route is an empty path => inherits its parent's params and data
  102585. if (current.routeConfig && current.routeConfig.path === '') {
  102586. inheritingStartingFrom--;
  102587. // parent is componentless => current route should inherit its params and data
  102588. }
  102589. else if (!parent.component) {
  102590. inheritingStartingFrom--;
  102591. }
  102592. else {
  102593. break;
  102594. }
  102595. }
  102596. }
  102597. return flattenInherited(pathFromRoot.slice(inheritingStartingFrom));
  102598. }
  102599. /** @internal */
  102600. function flattenInherited(pathFromRoot) {
  102601. return pathFromRoot.reduce((res, curr) => {
  102602. const params = Object.assign(Object.assign({}, res.params), curr.params);
  102603. const data = Object.assign(Object.assign({}, res.data), curr.data);
  102604. const resolve = Object.assign(Object.assign({}, res.resolve), curr._resolvedData);
  102605. return { params, data, resolve };
  102606. }, { params: {}, data: {}, resolve: {} });
  102607. }
  102608. /**
  102609. * @description
  102610. *
  102611. * Contains the information about a route associated with a component loaded in an
  102612. * outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to
  102613. * traverse the router state tree.
  102614. *
  102615. * The following example initializes a component with route information extracted
  102616. * from the snapshot of the root node at the time of creation.
  102617. *
  102618. * ```
  102619. * @Component({templateUrl:'./my-component.html'})
  102620. * class MyComponent {
  102621. * constructor(route: ActivatedRoute) {
  102622. * const id: string = route.snapshot.params.id;
  102623. * const url: string = route.snapshot.url.join('');
  102624. * const user = route.snapshot.data.user;
  102625. * }
  102626. * }
  102627. * ```
  102628. *
  102629. * @publicApi
  102630. */
  102631. class ActivatedRouteSnapshot {
  102632. /** @internal */
  102633. constructor(
  102634. /** The URL segments matched by this route */
  102635. url,
  102636. /** The matrix parameters scoped to this route */
  102637. params,
  102638. /** The query parameters shared by all the routes */
  102639. queryParams,
  102640. /** The URL fragment shared by all the routes */
  102641. fragment,
  102642. /** The static and resolved data of this route */
  102643. data,
  102644. /** The outlet name of the route */
  102645. outlet,
  102646. /** The component of the route */
  102647. component, routeConfig, urlSegment, lastPathIndex, resolve) {
  102648. this.url = url;
  102649. this.params = params;
  102650. this.queryParams = queryParams;
  102651. this.fragment = fragment;
  102652. this.data = data;
  102653. this.outlet = outlet;
  102654. this.component = component;
  102655. this.routeConfig = routeConfig;
  102656. this._urlSegment = urlSegment;
  102657. this._lastPathIndex = lastPathIndex;
  102658. this._resolve = resolve;
  102659. }
  102660. /** The root of the router state */
  102661. get root() {
  102662. return this._routerState.root;
  102663. }
  102664. /** The parent of this route in the router state tree */
  102665. get parent() {
  102666. return this._routerState.parent(this);
  102667. }
  102668. /** The first child of this route in the router state tree */
  102669. get firstChild() {
  102670. return this._routerState.firstChild(this);
  102671. }
  102672. /** The children of this route in the router state tree */
  102673. get children() {
  102674. return this._routerState.children(this);
  102675. }
  102676. /** The path from the root of the router state tree to this route */
  102677. get pathFromRoot() {
  102678. return this._routerState.pathFromRoot(this);
  102679. }
  102680. get paramMap() {
  102681. if (!this._paramMap) {
  102682. this._paramMap = convertToParamMap(this.params);
  102683. }
  102684. return this._paramMap;
  102685. }
  102686. get queryParamMap() {
  102687. if (!this._queryParamMap) {
  102688. this._queryParamMap = convertToParamMap(this.queryParams);
  102689. }
  102690. return this._queryParamMap;
  102691. }
  102692. toString() {
  102693. const url = this.url.map(segment => segment.toString()).join('/');
  102694. const matched = this.routeConfig ? this.routeConfig.path : '';
  102695. return `Route(url:'${url}', path:'${matched}')`;
  102696. }
  102697. }
  102698. /**
  102699. * @description
  102700. *
  102701. * Represents the state of the router at a moment in time.
  102702. *
  102703. * This is a tree of activated route snapshots. Every node in this tree knows about
  102704. * the "consumed" URL segments, the extracted parameters, and the resolved data.
  102705. *
  102706. * The following example shows how a component is initialized with information
  102707. * from the snapshot of the root node's state at the time of creation.
  102708. *
  102709. * ```
  102710. * @Component({templateUrl:'template.html'})
  102711. * class MyComponent {
  102712. * constructor(router: Router) {
  102713. * const state: RouterState = router.routerState;
  102714. * const snapshot: RouterStateSnapshot = state.snapshot;
  102715. * const root: ActivatedRouteSnapshot = snapshot.root;
  102716. * const child = root.firstChild;
  102717. * const id: Observable<string> = child.params.map(p => p.id);
  102718. * //...
  102719. * }
  102720. * }
  102721. * ```
  102722. *
  102723. * @publicApi
  102724. */
  102725. class RouterStateSnapshot extends Tree {
  102726. /** @internal */
  102727. constructor(
  102728. /** The url from which this snapshot was created */
  102729. url, root) {
  102730. super(root);
  102731. this.url = url;
  102732. setRouterState(this, root);
  102733. }
  102734. toString() {
  102735. return serializeNode(this._root);
  102736. }
  102737. }
  102738. function setRouterState(state, node) {
  102739. node.value._routerState = state;
  102740. node.children.forEach(c => setRouterState(state, c));
  102741. }
  102742. function serializeNode(node) {
  102743. const c = node.children.length > 0 ? ` { ${node.children.map(serializeNode).join(', ')} } ` : '';
  102744. return `${node.value}${c}`;
  102745. }
  102746. /**
  102747. * The expectation is that the activate route is created with the right set of parameters.
  102748. * So we push new values into the observables only when they are not the initial values.
  102749. * And we detect that by checking if the snapshot field is set.
  102750. */
  102751. function advanceActivatedRoute(route) {
  102752. if (route.snapshot) {
  102753. const currentSnapshot = route.snapshot;
  102754. const nextSnapshot = route._futureSnapshot;
  102755. route.snapshot = nextSnapshot;
  102756. if (!shallowEqual(currentSnapshot.queryParams, nextSnapshot.queryParams)) {
  102757. route.queryParams.next(nextSnapshot.queryParams);
  102758. }
  102759. if (currentSnapshot.fragment !== nextSnapshot.fragment) {
  102760. route.fragment.next(nextSnapshot.fragment);
  102761. }
  102762. if (!shallowEqual(currentSnapshot.params, nextSnapshot.params)) {
  102763. route.params.next(nextSnapshot.params);
  102764. }
  102765. if (!shallowEqualArrays(currentSnapshot.url, nextSnapshot.url)) {
  102766. route.url.next(nextSnapshot.url);
  102767. }
  102768. if (!shallowEqual(currentSnapshot.data, nextSnapshot.data)) {
  102769. route.data.next(nextSnapshot.data);
  102770. }
  102771. }
  102772. else {
  102773. route.snapshot = route._futureSnapshot;
  102774. // this is for resolved data
  102775. route.data.next(route._futureSnapshot.data);
  102776. }
  102777. }
  102778. function equalParamsAndUrlSegments(a, b) {
  102779. const equalUrlParams = shallowEqual(a.params, b.params) && equalSegments(a.url, b.url);
  102780. const parentsMismatch = !a.parent !== !b.parent;
  102781. return equalUrlParams && !parentsMismatch &&
  102782. (!a.parent || equalParamsAndUrlSegments(a.parent, b.parent));
  102783. }
  102784. /**
  102785. * @license
  102786. * Copyright Google LLC All Rights Reserved.
  102787. *
  102788. * Use of this source code is governed by an MIT-style license that can be
  102789. * found in the LICENSE file at https://angular.io/license
  102790. */
  102791. function createRouterState(routeReuseStrategy, curr, prevState) {
  102792. const root = createNode(routeReuseStrategy, curr._root, prevState ? prevState._root : undefined);
  102793. return new RouterState(root, curr);
  102794. }
  102795. function createNode(routeReuseStrategy, curr, prevState) {
  102796. // reuse an activated route that is currently displayed on the screen
  102797. if (prevState && routeReuseStrategy.shouldReuseRoute(curr.value, prevState.value.snapshot)) {
  102798. const value = prevState.value;
  102799. value._futureSnapshot = curr.value;
  102800. const children = createOrReuseChildren(routeReuseStrategy, curr, prevState);
  102801. return new TreeNode(value, children);
  102802. // retrieve an activated route that is used to be displayed, but is not currently displayed
  102803. }
  102804. else {
  102805. const detachedRouteHandle = routeReuseStrategy.retrieve(curr.value);
  102806. if (detachedRouteHandle) {
  102807. const tree = detachedRouteHandle.route;
  102808. setFutureSnapshotsOfActivatedRoutes(curr, tree);
  102809. return tree;
  102810. }
  102811. else {
  102812. const value = createActivatedRoute(curr.value);
  102813. const children = curr.children.map(c => createNode(routeReuseStrategy, c));
  102814. return new TreeNode(value, children);
  102815. }
  102816. }
  102817. }
  102818. function setFutureSnapshotsOfActivatedRoutes(curr, result) {
  102819. if (curr.value.routeConfig !== result.value.routeConfig) {
  102820. throw new Error('Cannot reattach ActivatedRouteSnapshot created from a different route');
  102821. }
  102822. if (curr.children.length !== result.children.length) {
  102823. throw new Error('Cannot reattach ActivatedRouteSnapshot with a different number of children');
  102824. }
  102825. result.value._futureSnapshot = curr.value;
  102826. for (let i = 0; i < curr.children.length; ++i) {
  102827. setFutureSnapshotsOfActivatedRoutes(curr.children[i], result.children[i]);
  102828. }
  102829. }
  102830. function createOrReuseChildren(routeReuseStrategy, curr, prevState) {
  102831. return curr.children.map(child => {
  102832. for (const p of prevState.children) {
  102833. if (routeReuseStrategy.shouldReuseRoute(child.value, p.value.snapshot)) {
  102834. return createNode(routeReuseStrategy, child, p);
  102835. }
  102836. }
  102837. return createNode(routeReuseStrategy, child);
  102838. });
  102839. }
  102840. function createActivatedRoute(c) {
  102841. return new ActivatedRoute(new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.url), new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.params), new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.queryParams), new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.fragment), new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"](c.data), c.outlet, c.component, c);
  102842. }
  102843. /**
  102844. * @license
  102845. * Copyright Google LLC All Rights Reserved.
  102846. *
  102847. * Use of this source code is governed by an MIT-style license that can be
  102848. * found in the LICENSE file at https://angular.io/license
  102849. */
  102850. function createUrlTree(route, urlTree, commands, queryParams, fragment) {
  102851. if (commands.length === 0) {
  102852. return tree(urlTree.root, urlTree.root, urlTree, queryParams, fragment);
  102853. }
  102854. const nav = computeNavigation(commands);
  102855. if (nav.toRoot()) {
  102856. return tree(urlTree.root, new UrlSegmentGroup([], {}), urlTree, queryParams, fragment);
  102857. }
  102858. const startingPosition = findStartingPosition(nav, urlTree, route);
  102859. const segmentGroup = startingPosition.processChildren ?
  102860. updateSegmentGroupChildren(startingPosition.segmentGroup, startingPosition.index, nav.commands) :
  102861. updateSegmentGroup(startingPosition.segmentGroup, startingPosition.index, nav.commands);
  102862. return tree(startingPosition.segmentGroup, segmentGroup, urlTree, queryParams, fragment);
  102863. }
  102864. function isMatrixParams(command) {
  102865. return typeof command === 'object' && command != null && !command.outlets && !command.segmentPath;
  102866. }
  102867. /**
  102868. * Determines if a given command has an `outlets` map. When we encounter a command
  102869. * with an outlets k/v map, we need to apply each outlet individually to the existing segment.
  102870. */
  102871. function isCommandWithOutlets(command) {
  102872. return typeof command === 'object' && command != null && command.outlets;
  102873. }
  102874. function tree(oldSegmentGroup, newSegmentGroup, urlTree, queryParams, fragment) {
  102875. let qp = {};
  102876. if (queryParams) {
  102877. forEach(queryParams, (value, name) => {
  102878. qp[name] = Array.isArray(value) ? value.map((v) => `${v}`) : `${value}`;
  102879. });
  102880. }
  102881. if (urlTree.root === oldSegmentGroup) {
  102882. return new UrlTree(newSegmentGroup, qp, fragment);
  102883. }
  102884. return new UrlTree(replaceSegment(urlTree.root, oldSegmentGroup, newSegmentGroup), qp, fragment);
  102885. }
  102886. function replaceSegment(current, oldSegment, newSegment) {
  102887. const children = {};
  102888. forEach(current.children, (c, outletName) => {
  102889. if (c === oldSegment) {
  102890. children[outletName] = newSegment;
  102891. }
  102892. else {
  102893. children[outletName] = replaceSegment(c, oldSegment, newSegment);
  102894. }
  102895. });
  102896. return new UrlSegmentGroup(current.segments, children);
  102897. }
  102898. class Navigation {
  102899. constructor(isAbsolute, numberOfDoubleDots, commands) {
  102900. this.isAbsolute = isAbsolute;
  102901. this.numberOfDoubleDots = numberOfDoubleDots;
  102902. this.commands = commands;
  102903. if (isAbsolute && commands.length > 0 && isMatrixParams(commands[0])) {
  102904. throw new Error('Root segment cannot have matrix parameters');
  102905. }
  102906. const cmdWithOutlet = commands.find(isCommandWithOutlets);
  102907. if (cmdWithOutlet && cmdWithOutlet !== last(commands)) {
  102908. throw new Error('{outlets:{}} has to be the last command');
  102909. }
  102910. }
  102911. toRoot() {
  102912. return this.isAbsolute && this.commands.length === 1 && this.commands[0] == '/';
  102913. }
  102914. }
  102915. /** Transforms commands to a normalized `Navigation` */
  102916. function computeNavigation(commands) {
  102917. if ((typeof commands[0] === 'string') && commands.length === 1 && commands[0] === '/') {
  102918. return new Navigation(true, 0, commands);
  102919. }
  102920. let numberOfDoubleDots = 0;
  102921. let isAbsolute = false;
  102922. const res = commands.reduce((res, cmd, cmdIdx) => {
  102923. if (typeof cmd === 'object' && cmd != null) {
  102924. if (cmd.outlets) {
  102925. const outlets = {};
  102926. forEach(cmd.outlets, (commands, name) => {
  102927. outlets[name] = typeof commands === 'string' ? commands.split('/') : commands;
  102928. });
  102929. return [...res, { outlets }];
  102930. }
  102931. if (cmd.segmentPath) {
  102932. return [...res, cmd.segmentPath];
  102933. }
  102934. }
  102935. if (!(typeof cmd === 'string')) {
  102936. return [...res, cmd];
  102937. }
  102938. if (cmdIdx === 0) {
  102939. cmd.split('/').forEach((urlPart, partIndex) => {
  102940. if (partIndex == 0 && urlPart === '.') {
  102941. // skip './a'
  102942. }
  102943. else if (partIndex == 0 && urlPart === '') { // '/a'
  102944. isAbsolute = true;
  102945. }
  102946. else if (urlPart === '..') { // '../a'
  102947. numberOfDoubleDots++;
  102948. }
  102949. else if (urlPart != '') {
  102950. res.push(urlPart);
  102951. }
  102952. });
  102953. return res;
  102954. }
  102955. return [...res, cmd];
  102956. }, []);
  102957. return new Navigation(isAbsolute, numberOfDoubleDots, res);
  102958. }
  102959. class Position {
  102960. constructor(segmentGroup, processChildren, index) {
  102961. this.segmentGroup = segmentGroup;
  102962. this.processChildren = processChildren;
  102963. this.index = index;
  102964. }
  102965. }
  102966. function findStartingPosition(nav, tree, route) {
  102967. if (nav.isAbsolute) {
  102968. return new Position(tree.root, true, 0);
  102969. }
  102970. if (route.snapshot._lastPathIndex === -1) {
  102971. const segmentGroup = route.snapshot._urlSegment;
  102972. // Pathless ActivatedRoute has _lastPathIndex === -1 but should not process children
  102973. // see issue #26224, #13011, #35687
  102974. // However, if the ActivatedRoute is the root we should process children like above.
  102975. const processChildren = segmentGroup === tree.root;
  102976. return new Position(segmentGroup, processChildren, 0);
  102977. }
  102978. const modifier = isMatrixParams(nav.commands[0]) ? 0 : 1;
  102979. const index = route.snapshot._lastPathIndex + modifier;
  102980. return createPositionApplyingDoubleDots(route.snapshot._urlSegment, index, nav.numberOfDoubleDots);
  102981. }
  102982. function createPositionApplyingDoubleDots(group, index, numberOfDoubleDots) {
  102983. let g = group;
  102984. let ci = index;
  102985. let dd = numberOfDoubleDots;
  102986. while (dd > ci) {
  102987. dd -= ci;
  102988. g = g.parent;
  102989. if (!g) {
  102990. throw new Error('Invalid number of \'../\'');
  102991. }
  102992. ci = g.segments.length;
  102993. }
  102994. return new Position(g, false, ci - dd);
  102995. }
  102996. function getOutlets(commands) {
  102997. if (isCommandWithOutlets(commands[0])) {
  102998. return commands[0].outlets;
  102999. }
  103000. return { [PRIMARY_OUTLET]: commands };
  103001. }
  103002. function updateSegmentGroup(segmentGroup, startIndex, commands) {
  103003. if (!segmentGroup) {
  103004. segmentGroup = new UrlSegmentGroup([], {});
  103005. }
  103006. if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {
  103007. return updateSegmentGroupChildren(segmentGroup, startIndex, commands);
  103008. }
  103009. const m = prefixedWith(segmentGroup, startIndex, commands);
  103010. const slicedCommands = commands.slice(m.commandIndex);
  103011. if (m.match && m.pathIndex < segmentGroup.segments.length) {
  103012. const g = new UrlSegmentGroup(segmentGroup.segments.slice(0, m.pathIndex), {});
  103013. g.children[PRIMARY_OUTLET] =
  103014. new UrlSegmentGroup(segmentGroup.segments.slice(m.pathIndex), segmentGroup.children);
  103015. return updateSegmentGroupChildren(g, 0, slicedCommands);
  103016. }
  103017. else if (m.match && slicedCommands.length === 0) {
  103018. return new UrlSegmentGroup(segmentGroup.segments, {});
  103019. }
  103020. else if (m.match && !segmentGroup.hasChildren()) {
  103021. return createNewSegmentGroup(segmentGroup, startIndex, commands);
  103022. }
  103023. else if (m.match) {
  103024. return updateSegmentGroupChildren(segmentGroup, 0, slicedCommands);
  103025. }
  103026. else {
  103027. return createNewSegmentGroup(segmentGroup, startIndex, commands);
  103028. }
  103029. }
  103030. function updateSegmentGroupChildren(segmentGroup, startIndex, commands) {
  103031. if (commands.length === 0) {
  103032. return new UrlSegmentGroup(segmentGroup.segments, {});
  103033. }
  103034. else {
  103035. const outlets = getOutlets(commands);
  103036. const children = {};
  103037. forEach(outlets, (commands, outlet) => {
  103038. if (typeof commands === 'string') {
  103039. commands = [commands];
  103040. }
  103041. if (commands !== null) {
  103042. children[outlet] = updateSegmentGroup(segmentGroup.children[outlet], startIndex, commands);
  103043. }
  103044. });
  103045. forEach(segmentGroup.children, (child, childOutlet) => {
  103046. if (outlets[childOutlet] === undefined) {
  103047. children[childOutlet] = child;
  103048. }
  103049. });
  103050. return new UrlSegmentGroup(segmentGroup.segments, children);
  103051. }
  103052. }
  103053. function prefixedWith(segmentGroup, startIndex, commands) {
  103054. let currentCommandIndex = 0;
  103055. let currentPathIndex = startIndex;
  103056. const noMatch = { match: false, pathIndex: 0, commandIndex: 0 };
  103057. while (currentPathIndex < segmentGroup.segments.length) {
  103058. if (currentCommandIndex >= commands.length)
  103059. return noMatch;
  103060. const path = segmentGroup.segments[currentPathIndex];
  103061. const command = commands[currentCommandIndex];
  103062. // Do not try to consume command as part of the prefixing if it has outlets because it can
  103063. // contain outlets other than the one being processed. Consuming the outlets command would
  103064. // result in other outlets being ignored.
  103065. if (isCommandWithOutlets(command)) {
  103066. break;
  103067. }
  103068. const curr = `${command}`;
  103069. const next = currentCommandIndex < commands.length - 1 ? commands[currentCommandIndex + 1] : null;
  103070. if (currentPathIndex > 0 && curr === undefined)
  103071. break;
  103072. if (curr && next && (typeof next === 'object') && next.outlets === undefined) {
  103073. if (!compare(curr, next, path))
  103074. return noMatch;
  103075. currentCommandIndex += 2;
  103076. }
  103077. else {
  103078. if (!compare(curr, {}, path))
  103079. return noMatch;
  103080. currentCommandIndex++;
  103081. }
  103082. currentPathIndex++;
  103083. }
  103084. return { match: true, pathIndex: currentPathIndex, commandIndex: currentCommandIndex };
  103085. }
  103086. function createNewSegmentGroup(segmentGroup, startIndex, commands) {
  103087. const paths = segmentGroup.segments.slice(0, startIndex);
  103088. let i = 0;
  103089. while (i < commands.length) {
  103090. const command = commands[i];
  103091. if (isCommandWithOutlets(command)) {
  103092. const children = createNewSegmentChildren(command.outlets);
  103093. return new UrlSegmentGroup(paths, children);
  103094. }
  103095. // if we start with an object literal, we need to reuse the path part from the segment
  103096. if (i === 0 && isMatrixParams(commands[0])) {
  103097. const p = segmentGroup.segments[startIndex];
  103098. paths.push(new UrlSegment(p.path, commands[0]));
  103099. i++;
  103100. continue;
  103101. }
  103102. const curr = isCommandWithOutlets(command) ? command.outlets[PRIMARY_OUTLET] : `${command}`;
  103103. const next = (i < commands.length - 1) ? commands[i + 1] : null;
  103104. if (curr && next && isMatrixParams(next)) {
  103105. paths.push(new UrlSegment(curr, stringify(next)));
  103106. i += 2;
  103107. }
  103108. else {
  103109. paths.push(new UrlSegment(curr, {}));
  103110. i++;
  103111. }
  103112. }
  103113. return new UrlSegmentGroup(paths, {});
  103114. }
  103115. function createNewSegmentChildren(outlets) {
  103116. const children = {};
  103117. forEach(outlets, (commands, outlet) => {
  103118. if (typeof commands === 'string') {
  103119. commands = [commands];
  103120. }
  103121. if (commands !== null) {
  103122. children[outlet] = createNewSegmentGroup(new UrlSegmentGroup([], {}), 0, commands);
  103123. }
  103124. });
  103125. return children;
  103126. }
  103127. function stringify(params) {
  103128. const res = {};
  103129. forEach(params, (v, k) => res[k] = `${v}`);
  103130. return res;
  103131. }
  103132. function compare(path, params, segment) {
  103133. return path == segment.path && shallowEqual(params, segment.parameters);
  103134. }
  103135. /**
  103136. * @license
  103137. * Copyright Google LLC All Rights Reserved.
  103138. *
  103139. * Use of this source code is governed by an MIT-style license that can be
  103140. * found in the LICENSE file at https://angular.io/license
  103141. */
  103142. const activateRoutes = (rootContexts, routeReuseStrategy, forwardEvent) => Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(t => {
  103143. new ActivateRoutes(routeReuseStrategy, t.targetRouterState, t.currentRouterState, forwardEvent)
  103144. .activate(rootContexts);
  103145. return t;
  103146. });
  103147. class ActivateRoutes {
  103148. constructor(routeReuseStrategy, futureState, currState, forwardEvent) {
  103149. this.routeReuseStrategy = routeReuseStrategy;
  103150. this.futureState = futureState;
  103151. this.currState = currState;
  103152. this.forwardEvent = forwardEvent;
  103153. }
  103154. activate(parentContexts) {
  103155. const futureRoot = this.futureState._root;
  103156. const currRoot = this.currState ? this.currState._root : null;
  103157. this.deactivateChildRoutes(futureRoot, currRoot, parentContexts);
  103158. advanceActivatedRoute(this.futureState.root);
  103159. this.activateChildRoutes(futureRoot, currRoot, parentContexts);
  103160. }
  103161. // De-activate the child route that are not re-used for the future state
  103162. deactivateChildRoutes(futureNode, currNode, contexts) {
  103163. const children = nodeChildrenAsMap(currNode);
  103164. // Recurse on the routes active in the future state to de-activate deeper children
  103165. futureNode.children.forEach(futureChild => {
  103166. const childOutletName = futureChild.value.outlet;
  103167. this.deactivateRoutes(futureChild, children[childOutletName], contexts);
  103168. delete children[childOutletName];
  103169. });
  103170. // De-activate the routes that will not be re-used
  103171. forEach(children, (v, childName) => {
  103172. this.deactivateRouteAndItsChildren(v, contexts);
  103173. });
  103174. }
  103175. deactivateRoutes(futureNode, currNode, parentContext) {
  103176. const future = futureNode.value;
  103177. const curr = currNode ? currNode.value : null;
  103178. if (future === curr) {
  103179. // Reusing the node, check to see if the children need to be de-activated
  103180. if (future.component) {
  103181. // If we have a normal route, we need to go through an outlet.
  103182. const context = parentContext.getContext(future.outlet);
  103183. if (context) {
  103184. this.deactivateChildRoutes(futureNode, currNode, context.children);
  103185. }
  103186. }
  103187. else {
  103188. // if we have a componentless route, we recurse but keep the same outlet map.
  103189. this.deactivateChildRoutes(futureNode, currNode, parentContext);
  103190. }
  103191. }
  103192. else {
  103193. if (curr) {
  103194. // Deactivate the current route which will not be re-used
  103195. this.deactivateRouteAndItsChildren(currNode, parentContext);
  103196. }
  103197. }
  103198. }
  103199. deactivateRouteAndItsChildren(route, parentContexts) {
  103200. if (this.routeReuseStrategy.shouldDetach(route.value.snapshot)) {
  103201. this.detachAndStoreRouteSubtree(route, parentContexts);
  103202. }
  103203. else {
  103204. this.deactivateRouteAndOutlet(route, parentContexts);
  103205. }
  103206. }
  103207. detachAndStoreRouteSubtree(route, parentContexts) {
  103208. const context = parentContexts.getContext(route.value.outlet);
  103209. if (context && context.outlet) {
  103210. const componentRef = context.outlet.detach();
  103211. const contexts = context.children.onOutletDeactivated();
  103212. this.routeReuseStrategy.store(route.value.snapshot, { componentRef, route, contexts });
  103213. }
  103214. }
  103215. deactivateRouteAndOutlet(route, parentContexts) {
  103216. const context = parentContexts.getContext(route.value.outlet);
  103217. if (context) {
  103218. const children = nodeChildrenAsMap(route);
  103219. const contexts = route.value.component ? context.children : parentContexts;
  103220. forEach(children, (v, k) => this.deactivateRouteAndItsChildren(v, contexts));
  103221. if (context.outlet) {
  103222. // Destroy the component
  103223. context.outlet.deactivate();
  103224. // Destroy the contexts for all the outlets that were in the component
  103225. context.children.onOutletDeactivated();
  103226. }
  103227. }
  103228. }
  103229. activateChildRoutes(futureNode, currNode, contexts) {
  103230. const children = nodeChildrenAsMap(currNode);
  103231. futureNode.children.forEach(c => {
  103232. this.activateRoutes(c, children[c.value.outlet], contexts);
  103233. this.forwardEvent(new ActivationEnd(c.value.snapshot));
  103234. });
  103235. if (futureNode.children.length) {
  103236. this.forwardEvent(new ChildActivationEnd(futureNode.value.snapshot));
  103237. }
  103238. }
  103239. activateRoutes(futureNode, currNode, parentContexts) {
  103240. const future = futureNode.value;
  103241. const curr = currNode ? currNode.value : null;
  103242. advanceActivatedRoute(future);
  103243. // reusing the node
  103244. if (future === curr) {
  103245. if (future.component) {
  103246. // If we have a normal route, we need to go through an outlet.
  103247. const context = parentContexts.getOrCreateContext(future.outlet);
  103248. this.activateChildRoutes(futureNode, currNode, context.children);
  103249. }
  103250. else {
  103251. // if we have a componentless route, we recurse but keep the same outlet map.
  103252. this.activateChildRoutes(futureNode, currNode, parentContexts);
  103253. }
  103254. }
  103255. else {
  103256. if (future.component) {
  103257. // if we have a normal route, we need to place the component into the outlet and recurse.
  103258. const context = parentContexts.getOrCreateContext(future.outlet);
  103259. if (this.routeReuseStrategy.shouldAttach(future.snapshot)) {
  103260. const stored = this.routeReuseStrategy.retrieve(future.snapshot);
  103261. this.routeReuseStrategy.store(future.snapshot, null);
  103262. context.children.onOutletReAttached(stored.contexts);
  103263. context.attachRef = stored.componentRef;
  103264. context.route = stored.route.value;
  103265. if (context.outlet) {
  103266. // Attach right away when the outlet has already been instantiated
  103267. // Otherwise attach from `RouterOutlet.ngOnInit` when it is instantiated
  103268. context.outlet.attach(stored.componentRef, stored.route.value);
  103269. }
  103270. advanceActivatedRouteNodeAndItsChildren(stored.route);
  103271. }
  103272. else {
  103273. const config = parentLoadedConfig(future.snapshot);
  103274. const cmpFactoryResolver = config ? config.module.componentFactoryResolver : null;
  103275. context.attachRef = null;
  103276. context.route = future;
  103277. context.resolver = cmpFactoryResolver;
  103278. if (context.outlet) {
  103279. // Activate the outlet when it has already been instantiated
  103280. // Otherwise it will get activated from its `ngOnInit` when instantiated
  103281. context.outlet.activateWith(future, cmpFactoryResolver);
  103282. }
  103283. this.activateChildRoutes(futureNode, null, context.children);
  103284. }
  103285. }
  103286. else {
  103287. // if we have a componentless route, we recurse but keep the same outlet map.
  103288. this.activateChildRoutes(futureNode, null, parentContexts);
  103289. }
  103290. }
  103291. }
  103292. }
  103293. function advanceActivatedRouteNodeAndItsChildren(node) {
  103294. advanceActivatedRoute(node.value);
  103295. node.children.forEach(advanceActivatedRouteNodeAndItsChildren);
  103296. }
  103297. function parentLoadedConfig(snapshot) {
  103298. for (let s = snapshot.parent; s; s = s.parent) {
  103299. const route = s.routeConfig;
  103300. if (route && route._loadedConfig)
  103301. return route._loadedConfig;
  103302. if (route && route.component)
  103303. return null;
  103304. }
  103305. return null;
  103306. }
  103307. /**
  103308. * @license
  103309. * Copyright Google LLC All Rights Reserved.
  103310. *
  103311. * Use of this source code is governed by an MIT-style license that can be
  103312. * found in the LICENSE file at https://angular.io/license
  103313. */
  103314. class LoadedRouterConfig {
  103315. constructor(routes, module) {
  103316. this.routes = routes;
  103317. this.module = module;
  103318. }
  103319. }
  103320. /**
  103321. * @license
  103322. * Copyright Google LLC All Rights Reserved.
  103323. *
  103324. * Use of this source code is governed by an MIT-style license that can be
  103325. * found in the LICENSE file at https://angular.io/license
  103326. */
  103327. /**
  103328. * Simple function check, but generic so type inference will flow. Example:
  103329. *
  103330. * function product(a: number, b: number) {
  103331. * return a * b;
  103332. * }
  103333. *
  103334. * if (isFunction<product>(fn)) {
  103335. * return fn(1, 2);
  103336. * } else {
  103337. * throw "Must provide the `product` function";
  103338. * }
  103339. */
  103340. function isFunction(v) {
  103341. return typeof v === 'function';
  103342. }
  103343. function isBoolean(v) {
  103344. return typeof v === 'boolean';
  103345. }
  103346. function isUrlTree(v) {
  103347. return v instanceof UrlTree;
  103348. }
  103349. function isCanLoad(guard) {
  103350. return guard && isFunction(guard.canLoad);
  103351. }
  103352. function isCanActivate(guard) {
  103353. return guard && isFunction(guard.canActivate);
  103354. }
  103355. function isCanActivateChild(guard) {
  103356. return guard && isFunction(guard.canActivateChild);
  103357. }
  103358. function isCanDeactivate(guard) {
  103359. return guard && isFunction(guard.canDeactivate);
  103360. }
  103361. /**
  103362. * @license
  103363. * Copyright Google LLC All Rights Reserved.
  103364. *
  103365. * Use of this source code is governed by an MIT-style license that can be
  103366. * found in the LICENSE file at https://angular.io/license
  103367. */
  103368. const INITIAL_VALUE = Symbol('INITIAL_VALUE');
  103369. function prioritizedGuardValue() {
  103370. return Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(obs => {
  103371. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["combineLatest"])(...obs.map(o => o.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])(INITIAL_VALUE))))
  103372. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["scan"])((acc, list) => {
  103373. let isPending = false;
  103374. return list.reduce((innerAcc, val, i) => {
  103375. if (innerAcc !== INITIAL_VALUE)
  103376. return innerAcc;
  103377. // Toggle pending flag if any values haven't been set yet
  103378. if (val === INITIAL_VALUE)
  103379. isPending = true;
  103380. // Any other return values are only valid if we haven't yet hit a pending
  103381. // call. This guarantees that in the case of a guard at the bottom of the
  103382. // tree that returns a redirect, we will wait for the higher priority
  103383. // guard at the top to finish before performing the redirect.
  103384. if (!isPending) {
  103385. // Early return when we hit a `false` value as that should always
  103386. // cancel navigation
  103387. if (val === false)
  103388. return val;
  103389. if (i === list.length - 1 || isUrlTree(val)) {
  103390. return val;
  103391. }
  103392. }
  103393. return innerAcc;
  103394. }, acc);
  103395. }, INITIAL_VALUE), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(item => item !== INITIAL_VALUE), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(item => isUrlTree(item) ? item : item === true), //
  103396. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["take"])(1));
  103397. });
  103398. }
  103399. /**
  103400. * @license
  103401. * Copyright Google LLC All Rights Reserved.
  103402. *
  103403. * Use of this source code is governed by an MIT-style license that can be
  103404. * found in the LICENSE file at https://angular.io/license
  103405. */
  103406. /**
  103407. * This component is used internally within the router to be a placeholder when an empty
  103408. * router-outlet is needed. For example, with a config such as:
  103409. *
  103410. * `{path: 'parent', outlet: 'nav', children: [...]}`
  103411. *
  103412. * In order to render, there needs to be a component on this config, which will default
  103413. * to this `EmptyOutletComponent`.
  103414. */
  103415. class ɵEmptyOutletComponent {
  103416. }
  103417. ɵEmptyOutletComponent.ɵfac = function ɵEmptyOutletComponent_Factory(t) { return new (t || ɵEmptyOutletComponent)(); };
  103418. ɵEmptyOutletComponent.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: ɵEmptyOutletComponent, selectors: [["ng-component"]], decls: 1, vars: 0, template: function ɵEmptyOutletComponent_Template(rf, ctx) { if (rf & 1) {
  103419. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](0, "router-outlet");
  103420. } }, directives: function () { return [RouterOutlet]; }, encapsulation: 2 });
  103421. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ɵEmptyOutletComponent, [{
  103422. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
  103423. args: [{ template: `<router-outlet></router-outlet>` }]
  103424. }], null, null); })();
  103425. /**
  103426. * @license
  103427. * Copyright Google LLC All Rights Reserved.
  103428. *
  103429. * Use of this source code is governed by an MIT-style license that can be
  103430. * found in the LICENSE file at https://angular.io/license
  103431. */
  103432. function validateConfig(config, parentPath = '') {
  103433. // forEach doesn't iterate undefined values
  103434. for (let i = 0; i < config.length; i++) {
  103435. const route = config[i];
  103436. const fullPath = getFullPath(parentPath, route);
  103437. validateNode(route, fullPath);
  103438. }
  103439. }
  103440. function validateNode(route, fullPath) {
  103441. if (typeof ngDevMode === 'undefined' || ngDevMode) {
  103442. if (!route) {
  103443. throw new Error(`
  103444. Invalid configuration of route '${fullPath}': Encountered undefined route.
  103445. The reason might be an extra comma.
  103446. Example:
  103447. const routes: Routes = [
  103448. { path: '', redirectTo: '/dashboard', pathMatch: 'full' },
  103449. { path: 'dashboard', component: DashboardComponent },, << two commas
  103450. { path: 'detail/:id', component: HeroDetailComponent }
  103451. ];
  103452. `);
  103453. }
  103454. if (Array.isArray(route)) {
  103455. throw new Error(`Invalid configuration of route '${fullPath}': Array cannot be specified`);
  103456. }
  103457. if (!route.component && !route.children && !route.loadChildren &&
  103458. (route.outlet && route.outlet !== PRIMARY_OUTLET)) {
  103459. throw new Error(`Invalid configuration of route '${fullPath}': a componentless route without children or loadChildren cannot have a named outlet set`);
  103460. }
  103461. if (route.redirectTo && route.children) {
  103462. throw new Error(`Invalid configuration of route '${fullPath}': redirectTo and children cannot be used together`);
  103463. }
  103464. if (route.redirectTo && route.loadChildren) {
  103465. throw new Error(`Invalid configuration of route '${fullPath}': redirectTo and loadChildren cannot be used together`);
  103466. }
  103467. if (route.children && route.loadChildren) {
  103468. throw new Error(`Invalid configuration of route '${fullPath}': children and loadChildren cannot be used together`);
  103469. }
  103470. if (route.redirectTo && route.component) {
  103471. throw new Error(`Invalid configuration of route '${fullPath}': redirectTo and component cannot be used together`);
  103472. }
  103473. if (route.path && route.matcher) {
  103474. throw new Error(`Invalid configuration of route '${fullPath}': path and matcher cannot be used together`);
  103475. }
  103476. if (route.redirectTo === void 0 && !route.component && !route.children && !route.loadChildren) {
  103477. throw new Error(`Invalid configuration of route '${fullPath}'. One of the following must be provided: component, redirectTo, children or loadChildren`);
  103478. }
  103479. if (route.path === void 0 && route.matcher === void 0) {
  103480. throw new Error(`Invalid configuration of route '${fullPath}': routes must have either a path or a matcher specified`);
  103481. }
  103482. if (typeof route.path === 'string' && route.path.charAt(0) === '/') {
  103483. throw new Error(`Invalid configuration of route '${fullPath}': path cannot start with a slash`);
  103484. }
  103485. if (route.path === '' && route.redirectTo !== void 0 && route.pathMatch === void 0) {
  103486. const exp = `The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.`;
  103487. throw new Error(`Invalid configuration of route '{path: "${fullPath}", redirectTo: "${route.redirectTo}"}': please provide 'pathMatch'. ${exp}`);
  103488. }
  103489. if (route.pathMatch !== void 0 && route.pathMatch !== 'full' && route.pathMatch !== 'prefix') {
  103490. throw new Error(`Invalid configuration of route '${fullPath}': pathMatch can only be set to 'prefix' or 'full'`);
  103491. }
  103492. }
  103493. if (route.children) {
  103494. validateConfig(route.children, fullPath);
  103495. }
  103496. }
  103497. function getFullPath(parentPath, currentRoute) {
  103498. if (!currentRoute) {
  103499. return parentPath;
  103500. }
  103501. if (!parentPath && !currentRoute.path) {
  103502. return '';
  103503. }
  103504. else if (parentPath && !currentRoute.path) {
  103505. return `${parentPath}/`;
  103506. }
  103507. else if (!parentPath && currentRoute.path) {
  103508. return currentRoute.path;
  103509. }
  103510. else {
  103511. return `${parentPath}/${currentRoute.path}`;
  103512. }
  103513. }
  103514. /**
  103515. * Makes a copy of the config and adds any default required properties.
  103516. */
  103517. function standardizeConfig(r) {
  103518. const children = r.children && r.children.map(standardizeConfig);
  103519. const c = children ? Object.assign(Object.assign({}, r), { children }) : Object.assign({}, r);
  103520. if (!c.component && (children || c.loadChildren) && (c.outlet && c.outlet !== PRIMARY_OUTLET)) {
  103521. c.component = ɵEmptyOutletComponent;
  103522. }
  103523. return c;
  103524. }
  103525. /** Returns of `Map` of outlet names to the `Route`s for that outlet. */
  103526. function groupRoutesByOutlet(routes) {
  103527. return routes.reduce((map, route) => {
  103528. const routeOutlet = getOutlet(route);
  103529. if (map.has(routeOutlet)) {
  103530. map.get(routeOutlet).push(route);
  103531. }
  103532. else {
  103533. map.set(routeOutlet, [route]);
  103534. }
  103535. return map;
  103536. }, new Map());
  103537. }
  103538. /** Returns the `route.outlet` or PRIMARY_OUTLET if none exists. */
  103539. function getOutlet(route) {
  103540. return route.outlet || PRIMARY_OUTLET;
  103541. }
  103542. /**
  103543. * @license
  103544. * Copyright Google LLC All Rights Reserved.
  103545. *
  103546. * Use of this source code is governed by an MIT-style license that can be
  103547. * found in the LICENSE file at https://angular.io/license
  103548. */
  103549. class NoMatch {
  103550. constructor(segmentGroup) {
  103551. this.segmentGroup = segmentGroup || null;
  103552. }
  103553. }
  103554. class AbsoluteRedirect {
  103555. constructor(urlTree) {
  103556. this.urlTree = urlTree;
  103557. }
  103558. }
  103559. function noMatch(segmentGroup) {
  103560. return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((obs) => obs.error(new NoMatch(segmentGroup)));
  103561. }
  103562. function absoluteRedirect(newTree) {
  103563. return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((obs) => obs.error(new AbsoluteRedirect(newTree)));
  103564. }
  103565. function namedOutletsRedirect(redirectTo) {
  103566. return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((obs) => obs.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${redirectTo}'`)));
  103567. }
  103568. function canLoadFails(route) {
  103569. return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((obs) => obs.error(navigationCancelingError(`Cannot load children because the guard of the route "path: '${route.path}'" returned false`)));
  103570. }
  103571. /**
  103572. * Returns the `UrlTree` with the redirection applied.
  103573. *
  103574. * Lazy modules are loaded along the way.
  103575. */
  103576. function applyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config) {
  103577. return new ApplyRedirects(moduleInjector, configLoader, urlSerializer, urlTree, config).apply();
  103578. }
  103579. class ApplyRedirects {
  103580. constructor(moduleInjector, configLoader, urlSerializer, urlTree, config) {
  103581. this.configLoader = configLoader;
  103582. this.urlSerializer = urlSerializer;
  103583. this.urlTree = urlTree;
  103584. this.config = config;
  103585. this.allowRedirects = true;
  103586. this.ngModule = moduleInjector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleRef"]);
  103587. }
  103588. apply() {
  103589. const expanded$ = this.expandSegmentGroup(this.ngModule, this.config, this.urlTree.root, PRIMARY_OUTLET);
  103590. const urlTrees$ = expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((rootSegmentGroup) => this.createUrlTree(rootSegmentGroup, this.urlTree.queryParams, this.urlTree.fragment)));
  103591. return urlTrees$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])((e) => {
  103592. if (e instanceof AbsoluteRedirect) {
  103593. // after an absolute redirect we do not apply any more redirects!
  103594. this.allowRedirects = false;
  103595. // we need to run matching, so we can fetch all lazy-loaded modules
  103596. return this.match(e.urlTree);
  103597. }
  103598. if (e instanceof NoMatch) {
  103599. throw this.noMatchError(e);
  103600. }
  103601. throw e;
  103602. }));
  103603. }
  103604. match(tree) {
  103605. const expanded$ = this.expandSegmentGroup(this.ngModule, this.config, tree.root, PRIMARY_OUTLET);
  103606. const mapped$ = expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((rootSegmentGroup) => this.createUrlTree(rootSegmentGroup, tree.queryParams, tree.fragment)));
  103607. return mapped$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])((e) => {
  103608. if (e instanceof NoMatch) {
  103609. throw this.noMatchError(e);
  103610. }
  103611. throw e;
  103612. }));
  103613. }
  103614. noMatchError(e) {
  103615. return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`);
  103616. }
  103617. createUrlTree(rootCandidate, queryParams, fragment) {
  103618. const root = rootCandidate.segments.length > 0 ?
  103619. new UrlSegmentGroup([], { [PRIMARY_OUTLET]: rootCandidate }) :
  103620. rootCandidate;
  103621. return new UrlTree(root, queryParams, fragment);
  103622. }
  103623. expandSegmentGroup(ngModule, routes, segmentGroup, outlet) {
  103624. if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {
  103625. return this.expandChildren(ngModule, routes, segmentGroup)
  103626. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((children) => new UrlSegmentGroup([], children)));
  103627. }
  103628. return this.expandSegment(ngModule, segmentGroup, routes, segmentGroup.segments, outlet, true);
  103629. }
  103630. // Recursively expand segment groups for all the child outlets
  103631. expandChildren(ngModule, routes, segmentGroup) {
  103632. return waitForMap(segmentGroup.children, (childOutlet, child) => this.expandSegmentGroup(ngModule, routes, child, childOutlet));
  103633. }
  103634. expandSegment(ngModule, segmentGroup, routes, segments, outlet, allowRedirects) {
  103635. // We need to expand each outlet group independently to ensure that we not only load modules
  103636. // for routes matching the given `outlet`, but also those which will be activated because
  103637. // their path is empty string. This can result in multiple outlets being activated at once.
  103638. const routesByOutlet = groupRoutesByOutlet(routes);
  103639. if (!routesByOutlet.has(outlet)) {
  103640. routesByOutlet.set(outlet, []);
  103641. }
  103642. const expandRoutes = (routes) => {
  103643. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(routes).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatMap"])((r) => {
  103644. const expanded$ = this.expandSegmentAgainstRoute(ngModule, segmentGroup, routes, r, segments, outlet, allowRedirects);
  103645. return expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(e => {
  103646. if (e instanceof NoMatch) {
  103647. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
  103648. }
  103649. throw e;
  103650. }));
  103651. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])((s) => s !== null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(e => {
  103652. if (e instanceof rxjs__WEBPACK_IMPORTED_MODULE_2__["EmptyError"] || e.name === 'EmptyError') {
  103653. if (this.noLeftoversInUrl(segmentGroup, segments, outlet)) {
  103654. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new UrlSegmentGroup([], {}));
  103655. }
  103656. throw new NoMatch(segmentGroup);
  103657. }
  103658. throw e;
  103659. }));
  103660. };
  103661. const expansions = Array.from(routesByOutlet.entries()).map(([routeOutlet, routes]) => {
  103662. const expanded = expandRoutes(routes);
  103663. // Map all results from outlets we aren't activating to `null` so they can be ignored later
  103664. return routeOutlet === outlet ? expanded :
  103665. expanded.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(() => null), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(() => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null)));
  103666. });
  103667. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(expansions)
  103668. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["combineAll"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(),
  103669. // Return only the expansion for the route outlet we are trying to activate.
  103670. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(results => results.find(result => result !== null)));
  103671. }
  103672. noLeftoversInUrl(segmentGroup, segments, outlet) {
  103673. return segments.length === 0 && !segmentGroup.children[outlet];
  103674. }
  103675. expandSegmentAgainstRoute(ngModule, segmentGroup, routes, route, paths, outlet, allowRedirects) {
  103676. // Empty string segments are special because multiple outlets can match a single path, i.e.
  103677. // `[{path: '', component: B}, {path: '', loadChildren: () => {}, outlet: "about"}]`
  103678. if (getOutlet(route) !== outlet && route.path !== '') {
  103679. return noMatch(segmentGroup);
  103680. }
  103681. if (route.redirectTo === undefined) {
  103682. return this.matchSegmentAgainstRoute(ngModule, segmentGroup, route, paths);
  103683. }
  103684. if (allowRedirects && this.allowRedirects) {
  103685. return this.expandSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, paths, outlet);
  103686. }
  103687. return noMatch(segmentGroup);
  103688. }
  103689. expandSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {
  103690. if (route.path === '**') {
  103691. return this.expandWildCardWithParamsAgainstRouteUsingRedirect(ngModule, routes, route, outlet);
  103692. }
  103693. return this.expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet);
  103694. }
  103695. expandWildCardWithParamsAgainstRouteUsingRedirect(ngModule, routes, route, outlet) {
  103696. const newTree = this.applyRedirectCommands([], route.redirectTo, {});
  103697. if (route.redirectTo.startsWith('/')) {
  103698. return absoluteRedirect(newTree);
  103699. }
  103700. return this.lineralizeSegments(route, newTree).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((newSegments) => {
  103701. const group = new UrlSegmentGroup(newSegments, {});
  103702. return this.expandSegment(ngModule, group, routes, newSegments, outlet, false);
  103703. }));
  103704. }
  103705. expandRegularSegmentAgainstRouteUsingRedirect(ngModule, segmentGroup, routes, route, segments, outlet) {
  103706. const { matched, consumedSegments, lastChild, positionalParamSegments } = match(segmentGroup, route, segments);
  103707. if (!matched)
  103708. return noMatch(segmentGroup);
  103709. const newTree = this.applyRedirectCommands(consumedSegments, route.redirectTo, positionalParamSegments);
  103710. if (route.redirectTo.startsWith('/')) {
  103711. return absoluteRedirect(newTree);
  103712. }
  103713. return this.lineralizeSegments(route, newTree).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((newSegments) => {
  103714. return this.expandSegment(ngModule, segmentGroup, routes, newSegments.concat(segments.slice(lastChild)), outlet, false);
  103715. }));
  103716. }
  103717. matchSegmentAgainstRoute(ngModule, rawSegmentGroup, route, segments) {
  103718. if (route.path === '**') {
  103719. if (route.loadChildren) {
  103720. return this.configLoader.load(ngModule.injector, route)
  103721. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((cfg) => {
  103722. route._loadedConfig = cfg;
  103723. return new UrlSegmentGroup(segments, {});
  103724. }));
  103725. }
  103726. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new UrlSegmentGroup(segments, {}));
  103727. }
  103728. const { matched, consumedSegments, lastChild } = match(rawSegmentGroup, route, segments);
  103729. if (!matched)
  103730. return noMatch(rawSegmentGroup);
  103731. const rawSlicedSegments = segments.slice(lastChild);
  103732. const childConfig$ = this.getChildConfig(ngModule, route, segments);
  103733. return childConfig$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((routerConfig) => {
  103734. const childModule = routerConfig.module;
  103735. const childConfig = routerConfig.routes;
  103736. const { segmentGroup, slicedSegments } = split(rawSegmentGroup, consumedSegments, rawSlicedSegments, childConfig);
  103737. if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
  103738. const expanded$ = this.expandChildren(childModule, childConfig, segmentGroup);
  103739. return expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((children) => new UrlSegmentGroup(consumedSegments, children)));
  103740. }
  103741. if (childConfig.length === 0 && slicedSegments.length === 0) {
  103742. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new UrlSegmentGroup(consumedSegments, {}));
  103743. }
  103744. const expanded$ = this.expandSegment(childModule, segmentGroup, childConfig, slicedSegments, PRIMARY_OUTLET, true);
  103745. return expanded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((cs) => new UrlSegmentGroup(consumedSegments.concat(cs.segments), cs.children)));
  103746. }));
  103747. }
  103748. getChildConfig(ngModule, route, segments) {
  103749. if (route.children) {
  103750. // The children belong to the same module
  103751. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new LoadedRouterConfig(route.children, ngModule));
  103752. }
  103753. if (route.loadChildren) {
  103754. // lazy children belong to the loaded module
  103755. if (route._loadedConfig !== undefined) {
  103756. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(route._loadedConfig);
  103757. }
  103758. return this.runCanLoadGuards(ngModule.injector, route, segments)
  103759. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((shouldLoadResult) => {
  103760. if (shouldLoadResult) {
  103761. return this.configLoader.load(ngModule.injector, route)
  103762. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((cfg) => {
  103763. route._loadedConfig = cfg;
  103764. return cfg;
  103765. }));
  103766. }
  103767. return canLoadFails(route);
  103768. }));
  103769. }
  103770. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(new LoadedRouterConfig([], ngModule));
  103771. }
  103772. runCanLoadGuards(moduleInjector, route, segments) {
  103773. const canLoad = route.canLoad;
  103774. if (!canLoad || canLoad.length === 0)
  103775. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
  103776. const canLoadObservables = canLoad.map((injectionToken) => {
  103777. const guard = moduleInjector.get(injectionToken);
  103778. let guardVal;
  103779. if (isCanLoad(guard)) {
  103780. guardVal = guard.canLoad(route, segments);
  103781. }
  103782. else if (isFunction(guard)) {
  103783. guardVal = guard(route, segments);
  103784. }
  103785. else {
  103786. throw new Error('Invalid CanLoad guard');
  103787. }
  103788. return wrapIntoObservable(guardVal);
  103789. });
  103790. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canLoadObservables)
  103791. .pipe(prioritizedGuardValue(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])((result) => {
  103792. if (!isUrlTree(result))
  103793. return;
  103794. const error = navigationCancelingError(`Redirecting to "${this.urlSerializer.serialize(result)}"`);
  103795. error.url = result;
  103796. throw error;
  103797. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(result => result === true));
  103798. }
  103799. lineralizeSegments(route, urlTree) {
  103800. let res = [];
  103801. let c = urlTree.root;
  103802. while (true) {
  103803. res = res.concat(c.segments);
  103804. if (c.numberOfChildren === 0) {
  103805. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(res);
  103806. }
  103807. if (c.numberOfChildren > 1 || !c.children[PRIMARY_OUTLET]) {
  103808. return namedOutletsRedirect(route.redirectTo);
  103809. }
  103810. c = c.children[PRIMARY_OUTLET];
  103811. }
  103812. }
  103813. applyRedirectCommands(segments, redirectTo, posParams) {
  103814. return this.applyRedirectCreatreUrlTree(redirectTo, this.urlSerializer.parse(redirectTo), segments, posParams);
  103815. }
  103816. applyRedirectCreatreUrlTree(redirectTo, urlTree, segments, posParams) {
  103817. const newRoot = this.createSegmentGroup(redirectTo, urlTree.root, segments, posParams);
  103818. return new UrlTree(newRoot, this.createQueryParams(urlTree.queryParams, this.urlTree.queryParams), urlTree.fragment);
  103819. }
  103820. createQueryParams(redirectToParams, actualParams) {
  103821. const res = {};
  103822. forEach(redirectToParams, (v, k) => {
  103823. const copySourceValue = typeof v === 'string' && v.startsWith(':');
  103824. if (copySourceValue) {
  103825. const sourceName = v.substring(1);
  103826. res[k] = actualParams[sourceName];
  103827. }
  103828. else {
  103829. res[k] = v;
  103830. }
  103831. });
  103832. return res;
  103833. }
  103834. createSegmentGroup(redirectTo, group, segments, posParams) {
  103835. const updatedSegments = this.createSegments(redirectTo, group.segments, segments, posParams);
  103836. let children = {};
  103837. forEach(group.children, (child, name) => {
  103838. children[name] = this.createSegmentGroup(redirectTo, child, segments, posParams);
  103839. });
  103840. return new UrlSegmentGroup(updatedSegments, children);
  103841. }
  103842. createSegments(redirectTo, redirectToSegments, actualSegments, posParams) {
  103843. return redirectToSegments.map(s => s.path.startsWith(':') ? this.findPosParam(redirectTo, s, posParams) :
  103844. this.findOrReturn(s, actualSegments));
  103845. }
  103846. findPosParam(redirectTo, redirectToUrlSegment, posParams) {
  103847. const pos = posParams[redirectToUrlSegment.path.substring(1)];
  103848. if (!pos)
  103849. throw new Error(`Cannot redirect to '${redirectTo}'. Cannot find '${redirectToUrlSegment.path}'.`);
  103850. return pos;
  103851. }
  103852. findOrReturn(redirectToUrlSegment, actualSegments) {
  103853. let idx = 0;
  103854. for (const s of actualSegments) {
  103855. if (s.path === redirectToUrlSegment.path) {
  103856. actualSegments.splice(idx);
  103857. return s;
  103858. }
  103859. idx++;
  103860. }
  103861. return redirectToUrlSegment;
  103862. }
  103863. }
  103864. function match(segmentGroup, route, segments) {
  103865. if (route.path === '') {
  103866. if ((route.pathMatch === 'full') && (segmentGroup.hasChildren() || segments.length > 0)) {
  103867. return { matched: false, consumedSegments: [], lastChild: 0, positionalParamSegments: {} };
  103868. }
  103869. return { matched: true, consumedSegments: [], lastChild: 0, positionalParamSegments: {} };
  103870. }
  103871. const matcher = route.matcher || defaultUrlMatcher;
  103872. const res = matcher(segments, segmentGroup, route);
  103873. if (!res) {
  103874. return {
  103875. matched: false,
  103876. consumedSegments: [],
  103877. lastChild: 0,
  103878. positionalParamSegments: {},
  103879. };
  103880. }
  103881. return {
  103882. matched: true,
  103883. consumedSegments: res.consumed,
  103884. lastChild: res.consumed.length,
  103885. positionalParamSegments: res.posParams,
  103886. };
  103887. }
  103888. function split(segmentGroup, consumedSegments, slicedSegments, config) {
  103889. if (slicedSegments.length > 0 &&
  103890. containsEmptyPathRedirectsWithNamedOutlets(segmentGroup, slicedSegments, config)) {
  103891. const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptySegments(config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));
  103892. return { segmentGroup: mergeTrivialChildren(s), slicedSegments: [] };
  103893. }
  103894. if (slicedSegments.length === 0 &&
  103895. containsEmptyPathRedirects(segmentGroup, slicedSegments, config)) {
  103896. const s = new UrlSegmentGroup(segmentGroup.segments, addEmptySegmentsToChildrenIfNeeded(segmentGroup, slicedSegments, config, segmentGroup.children));
  103897. return { segmentGroup: mergeTrivialChildren(s), slicedSegments };
  103898. }
  103899. return { segmentGroup, slicedSegments };
  103900. }
  103901. function mergeTrivialChildren(s) {
  103902. if (s.numberOfChildren === 1 && s.children[PRIMARY_OUTLET]) {
  103903. const c = s.children[PRIMARY_OUTLET];
  103904. return new UrlSegmentGroup(s.segments.concat(c.segments), c.children);
  103905. }
  103906. return s;
  103907. }
  103908. function addEmptySegmentsToChildrenIfNeeded(segmentGroup, slicedSegments, routes, children) {
  103909. const res = {};
  103910. for (const r of routes) {
  103911. if (isEmptyPathRedirect(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {
  103912. res[getOutlet(r)] = new UrlSegmentGroup([], {});
  103913. }
  103914. }
  103915. return Object.assign(Object.assign({}, children), res);
  103916. }
  103917. function createChildrenForEmptySegments(routes, primarySegmentGroup) {
  103918. const res = {};
  103919. res[PRIMARY_OUTLET] = primarySegmentGroup;
  103920. for (const r of routes) {
  103921. if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {
  103922. res[getOutlet(r)] = new UrlSegmentGroup([], {});
  103923. }
  103924. }
  103925. return res;
  103926. }
  103927. function containsEmptyPathRedirectsWithNamedOutlets(segmentGroup, segments, routes) {
  103928. return routes.some(r => isEmptyPathRedirect(segmentGroup, segments, r) && getOutlet(r) !== PRIMARY_OUTLET);
  103929. }
  103930. function containsEmptyPathRedirects(segmentGroup, segments, routes) {
  103931. return routes.some(r => isEmptyPathRedirect(segmentGroup, segments, r));
  103932. }
  103933. function isEmptyPathRedirect(segmentGroup, segments, r) {
  103934. if ((segmentGroup.hasChildren() || segments.length > 0) && r.pathMatch === 'full') {
  103935. return false;
  103936. }
  103937. return r.path === '' && r.redirectTo !== undefined;
  103938. }
  103939. /**
  103940. * @license
  103941. * Copyright Google LLC All Rights Reserved.
  103942. *
  103943. * Use of this source code is governed by an MIT-style license that can be
  103944. * found in the LICENSE file at https://angular.io/license
  103945. */
  103946. function applyRedirects$1(moduleInjector, configLoader, urlSerializer, config) {
  103947. return function (source) {
  103948. return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(t => applyRedirects(moduleInjector, configLoader, urlSerializer, t.extractedUrl, config)
  103949. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(urlAfterRedirects => (Object.assign(Object.assign({}, t), { urlAfterRedirects }))))));
  103950. };
  103951. }
  103952. /**
  103953. * @license
  103954. * Copyright Google LLC All Rights Reserved.
  103955. *
  103956. * Use of this source code is governed by an MIT-style license that can be
  103957. * found in the LICENSE file at https://angular.io/license
  103958. */
  103959. class CanActivate {
  103960. constructor(path) {
  103961. this.path = path;
  103962. this.route = this.path[this.path.length - 1];
  103963. }
  103964. }
  103965. class CanDeactivate {
  103966. constructor(component, route) {
  103967. this.component = component;
  103968. this.route = route;
  103969. }
  103970. }
  103971. function getAllRouteGuards(future, curr, parentContexts) {
  103972. const futureRoot = future._root;
  103973. const currRoot = curr ? curr._root : null;
  103974. return getChildRouteGuards(futureRoot, currRoot, parentContexts, [futureRoot.value]);
  103975. }
  103976. function getCanActivateChild(p) {
  103977. const canActivateChild = p.routeConfig ? p.routeConfig.canActivateChild : null;
  103978. if (!canActivateChild || canActivateChild.length === 0)
  103979. return null;
  103980. return { node: p, guards: canActivateChild };
  103981. }
  103982. function getToken(token, snapshot, moduleInjector) {
  103983. const config = getClosestLoadedConfig(snapshot);
  103984. const injector = config ? config.module.injector : moduleInjector;
  103985. return injector.get(token);
  103986. }
  103987. function getClosestLoadedConfig(snapshot) {
  103988. if (!snapshot)
  103989. return null;
  103990. for (let s = snapshot.parent; s; s = s.parent) {
  103991. const route = s.routeConfig;
  103992. if (route && route._loadedConfig)
  103993. return route._loadedConfig;
  103994. }
  103995. return null;
  103996. }
  103997. function getChildRouteGuards(futureNode, currNode, contexts, futurePath, checks = {
  103998. canDeactivateChecks: [],
  103999. canActivateChecks: []
  104000. }) {
  104001. const prevChildren = nodeChildrenAsMap(currNode);
  104002. // Process the children of the future route
  104003. futureNode.children.forEach(c => {
  104004. getRouteGuards(c, prevChildren[c.value.outlet], contexts, futurePath.concat([c.value]), checks);
  104005. delete prevChildren[c.value.outlet];
  104006. });
  104007. // Process any children left from the current route (not active for the future route)
  104008. forEach(prevChildren, (v, k) => deactivateRouteAndItsChildren(v, contexts.getContext(k), checks));
  104009. return checks;
  104010. }
  104011. function getRouteGuards(futureNode, currNode, parentContexts, futurePath, checks = {
  104012. canDeactivateChecks: [],
  104013. canActivateChecks: []
  104014. }) {
  104015. const future = futureNode.value;
  104016. const curr = currNode ? currNode.value : null;
  104017. const context = parentContexts ? parentContexts.getContext(futureNode.value.outlet) : null;
  104018. // reusing the node
  104019. if (curr && future.routeConfig === curr.routeConfig) {
  104020. const shouldRun = shouldRunGuardsAndResolvers(curr, future, future.routeConfig.runGuardsAndResolvers);
  104021. if (shouldRun) {
  104022. checks.canActivateChecks.push(new CanActivate(futurePath));
  104023. }
  104024. else {
  104025. // we need to set the data
  104026. future.data = curr.data;
  104027. future._resolvedData = curr._resolvedData;
  104028. }
  104029. // If we have a component, we need to go through an outlet.
  104030. if (future.component) {
  104031. getChildRouteGuards(futureNode, currNode, context ? context.children : null, futurePath, checks);
  104032. // if we have a componentless route, we recurse but keep the same outlet map.
  104033. }
  104034. else {
  104035. getChildRouteGuards(futureNode, currNode, parentContexts, futurePath, checks);
  104036. }
  104037. if (shouldRun && context && context.outlet && context.outlet.isActivated) {
  104038. checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, curr));
  104039. }
  104040. }
  104041. else {
  104042. if (curr) {
  104043. deactivateRouteAndItsChildren(currNode, context, checks);
  104044. }
  104045. checks.canActivateChecks.push(new CanActivate(futurePath));
  104046. // If we have a component, we need to go through an outlet.
  104047. if (future.component) {
  104048. getChildRouteGuards(futureNode, null, context ? context.children : null, futurePath, checks);
  104049. // if we have a componentless route, we recurse but keep the same outlet map.
  104050. }
  104051. else {
  104052. getChildRouteGuards(futureNode, null, parentContexts, futurePath, checks);
  104053. }
  104054. }
  104055. return checks;
  104056. }
  104057. function shouldRunGuardsAndResolvers(curr, future, mode) {
  104058. if (typeof mode === 'function') {
  104059. return mode(curr, future);
  104060. }
  104061. switch (mode) {
  104062. case 'pathParamsChange':
  104063. return !equalPath(curr.url, future.url);
  104064. case 'pathParamsOrQueryParamsChange':
  104065. return !equalPath(curr.url, future.url) ||
  104066. !shallowEqual(curr.queryParams, future.queryParams);
  104067. case 'always':
  104068. return true;
  104069. case 'paramsOrQueryParamsChange':
  104070. return !equalParamsAndUrlSegments(curr, future) ||
  104071. !shallowEqual(curr.queryParams, future.queryParams);
  104072. case 'paramsChange':
  104073. default:
  104074. return !equalParamsAndUrlSegments(curr, future);
  104075. }
  104076. }
  104077. function deactivateRouteAndItsChildren(route, context, checks) {
  104078. const children = nodeChildrenAsMap(route);
  104079. const r = route.value;
  104080. forEach(children, (node, childName) => {
  104081. if (!r.component) {
  104082. deactivateRouteAndItsChildren(node, context, checks);
  104083. }
  104084. else if (context) {
  104085. deactivateRouteAndItsChildren(node, context.children.getContext(childName), checks);
  104086. }
  104087. else {
  104088. deactivateRouteAndItsChildren(node, null, checks);
  104089. }
  104090. });
  104091. if (!r.component) {
  104092. checks.canDeactivateChecks.push(new CanDeactivate(null, r));
  104093. }
  104094. else if (context && context.outlet && context.outlet.isActivated) {
  104095. checks.canDeactivateChecks.push(new CanDeactivate(context.outlet.component, r));
  104096. }
  104097. else {
  104098. checks.canDeactivateChecks.push(new CanDeactivate(null, r));
  104099. }
  104100. }
  104101. /**
  104102. * @license
  104103. * Copyright Google LLC All Rights Reserved.
  104104. *
  104105. * Use of this source code is governed by an MIT-style license that can be
  104106. * found in the LICENSE file at https://angular.io/license
  104107. */
  104108. function checkGuards(moduleInjector, forwardEvent) {
  104109. return function (source) {
  104110. return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(t => {
  104111. const { targetSnapshot, currentSnapshot, guards: { canActivateChecks, canDeactivateChecks } } = t;
  104112. if (canDeactivateChecks.length === 0 && canActivateChecks.length === 0) {
  104113. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(Object.assign(Object.assign({}, t), { guardsResult: true }));
  104114. }
  104115. return runCanDeactivateChecks(canDeactivateChecks, targetSnapshot, currentSnapshot, moduleInjector)
  104116. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(canDeactivate => {
  104117. return canDeactivate && isBoolean(canDeactivate) ?
  104118. runCanActivateChecks(targetSnapshot, canActivateChecks, moduleInjector, forwardEvent) :
  104119. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canDeactivate);
  104120. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(guardsResult => (Object.assign(Object.assign({}, t), { guardsResult }))));
  104121. }));
  104122. };
  104123. }
  104124. function runCanDeactivateChecks(checks, futureRSS, currRSS, moduleInjector) {
  104125. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(checks).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(check => runCanDeactivate(check.component, check.route, currRSS, futureRSS, moduleInjector)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(result => {
  104126. return result !== true;
  104127. }, true));
  104128. }
  104129. function runCanActivateChecks(futureSnapshot, checks, moduleInjector, forwardEvent) {
  104130. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(checks).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatMap"])((check) => {
  104131. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])([
  104132. fireChildActivationStart(check.route.parent, forwardEvent),
  104133. fireActivationStart(check.route, forwardEvent),
  104134. runCanActivateChild(futureSnapshot, check.path, moduleInjector),
  104135. runCanActivate(futureSnapshot, check.route, moduleInjector)
  104136. ])
  104137. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatAll"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(result => {
  104138. return result !== true;
  104139. }, true));
  104140. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])(result => {
  104141. return result !== true;
  104142. }, true));
  104143. }
  104144. /**
  104145. * This should fire off `ActivationStart` events for each route being activated at this
  104146. * level.
  104147. * In other words, if you're activating `a` and `b` below, `path` will contain the
  104148. * `ActivatedRouteSnapshot`s for both and we will fire `ActivationStart` for both. Always
  104149. * return
  104150. * `true` so checks continue to run.
  104151. */
  104152. function fireActivationStart(snapshot, forwardEvent) {
  104153. if (snapshot !== null && forwardEvent) {
  104154. forwardEvent(new ActivationStart(snapshot));
  104155. }
  104156. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
  104157. }
  104158. /**
  104159. * This should fire off `ChildActivationStart` events for each route being activated at this
  104160. * level.
  104161. * In other words, if you're activating `a` and `b` below, `path` will contain the
  104162. * `ActivatedRouteSnapshot`s for both and we will fire `ChildActivationStart` for both. Always
  104163. * return
  104164. * `true` so checks continue to run.
  104165. */
  104166. function fireChildActivationStart(snapshot, forwardEvent) {
  104167. if (snapshot !== null && forwardEvent) {
  104168. forwardEvent(new ChildActivationStart(snapshot));
  104169. }
  104170. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
  104171. }
  104172. function runCanActivate(futureRSS, futureARS, moduleInjector) {
  104173. const canActivate = futureARS.routeConfig ? futureARS.routeConfig.canActivate : null;
  104174. if (!canActivate || canActivate.length === 0)
  104175. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
  104176. const canActivateObservables = canActivate.map((c) => {
  104177. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["defer"])(() => {
  104178. const guard = getToken(c, futureARS, moduleInjector);
  104179. let observable;
  104180. if (isCanActivate(guard)) {
  104181. observable = wrapIntoObservable(guard.canActivate(futureARS, futureRSS));
  104182. }
  104183. else if (isFunction(guard)) {
  104184. observable = wrapIntoObservable(guard(futureARS, futureRSS));
  104185. }
  104186. else {
  104187. throw new Error('Invalid CanActivate guard');
  104188. }
  104189. return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])());
  104190. });
  104191. });
  104192. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canActivateObservables).pipe(prioritizedGuardValue());
  104193. }
  104194. function runCanActivateChild(futureRSS, path, moduleInjector) {
  104195. const futureARS = path[path.length - 1];
  104196. const canActivateChildGuards = path.slice(0, path.length - 1)
  104197. .reverse()
  104198. .map(p => getCanActivateChild(p))
  104199. .filter(_ => _ !== null);
  104200. const canActivateChildGuardsMapped = canActivateChildGuards.map((d) => {
  104201. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["defer"])(() => {
  104202. const guardsMapped = d.guards.map((c) => {
  104203. const guard = getToken(c, d.node, moduleInjector);
  104204. let observable;
  104205. if (isCanActivateChild(guard)) {
  104206. observable = wrapIntoObservable(guard.canActivateChild(futureARS, futureRSS));
  104207. }
  104208. else if (isFunction(guard)) {
  104209. observable = wrapIntoObservable(guard(futureARS, futureRSS));
  104210. }
  104211. else {
  104212. throw new Error('Invalid CanActivateChild guard');
  104213. }
  104214. return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])());
  104215. });
  104216. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(guardsMapped).pipe(prioritizedGuardValue());
  104217. });
  104218. });
  104219. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canActivateChildGuardsMapped).pipe(prioritizedGuardValue());
  104220. }
  104221. function runCanDeactivate(component, currARS, currRSS, futureRSS, moduleInjector) {
  104222. const canDeactivate = currARS && currARS.routeConfig ? currARS.routeConfig.canDeactivate : null;
  104223. if (!canDeactivate || canDeactivate.length === 0)
  104224. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(true);
  104225. const canDeactivateObservables = canDeactivate.map((c) => {
  104226. const guard = getToken(c, currARS, moduleInjector);
  104227. let observable;
  104228. if (isCanDeactivate(guard)) {
  104229. observable = wrapIntoObservable(guard.canDeactivate(component, currARS, currRSS, futureRSS));
  104230. }
  104231. else if (isFunction(guard)) {
  104232. observable = wrapIntoObservable(guard(component, currARS, currRSS, futureRSS));
  104233. }
  104234. else {
  104235. throw new Error('Invalid CanDeactivate guard');
  104236. }
  104237. return observable.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["first"])());
  104238. });
  104239. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(canDeactivateObservables).pipe(prioritizedGuardValue());
  104240. }
  104241. /**
  104242. * @license
  104243. * Copyright Google LLC All Rights Reserved.
  104244. *
  104245. * Use of this source code is governed by an MIT-style license that can be
  104246. * found in the LICENSE file at https://angular.io/license
  104247. */
  104248. class NoMatch$1 {
  104249. }
  104250. function recognize(rootComponentType, config, urlTree, url, paramsInheritanceStrategy = 'emptyOnly', relativeLinkResolution = 'legacy') {
  104251. return new Recognizer(rootComponentType, config, urlTree, url, paramsInheritanceStrategy, relativeLinkResolution)
  104252. .recognize();
  104253. }
  104254. class Recognizer {
  104255. constructor(rootComponentType, config, urlTree, url, paramsInheritanceStrategy, relativeLinkResolution) {
  104256. this.rootComponentType = rootComponentType;
  104257. this.config = config;
  104258. this.urlTree = urlTree;
  104259. this.url = url;
  104260. this.paramsInheritanceStrategy = paramsInheritanceStrategy;
  104261. this.relativeLinkResolution = relativeLinkResolution;
  104262. }
  104263. recognize() {
  104264. try {
  104265. const rootSegmentGroup = split$1(this.urlTree.root, [], [], this.config, this.relativeLinkResolution).segmentGroup;
  104266. const children = this.processSegmentGroup(this.config, rootSegmentGroup, PRIMARY_OUTLET);
  104267. const root = new ActivatedRouteSnapshot([], Object.freeze({}), Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, {}, PRIMARY_OUTLET, this.rootComponentType, null, this.urlTree.root, -1, {});
  104268. const rootNode = new TreeNode(root, children);
  104269. const routeState = new RouterStateSnapshot(this.url, rootNode);
  104270. this.inheritParamsAndData(routeState._root);
  104271. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(routeState);
  104272. }
  104273. catch (e) {
  104274. return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((obs) => obs.error(e));
  104275. }
  104276. }
  104277. inheritParamsAndData(routeNode) {
  104278. const route = routeNode.value;
  104279. const i = inheritedParamsDataResolve(route, this.paramsInheritanceStrategy);
  104280. route.params = Object.freeze(i.params);
  104281. route.data = Object.freeze(i.data);
  104282. routeNode.children.forEach(n => this.inheritParamsAndData(n));
  104283. }
  104284. processSegmentGroup(config, segmentGroup, outlet) {
  104285. if (segmentGroup.segments.length === 0 && segmentGroup.hasChildren()) {
  104286. return this.processChildren(config, segmentGroup);
  104287. }
  104288. return this.processSegment(config, segmentGroup, segmentGroup.segments, outlet);
  104289. }
  104290. processChildren(config, segmentGroup) {
  104291. const children = mapChildrenIntoArray(segmentGroup, (child, childOutlet) => this.processSegmentGroup(config, child, childOutlet));
  104292. checkOutletNameUniqueness(children);
  104293. sortActivatedRouteSnapshots(children);
  104294. return children;
  104295. }
  104296. processSegment(config, segmentGroup, segments, outlet) {
  104297. for (const r of config) {
  104298. try {
  104299. return this.processSegmentAgainstRoute(r, segmentGroup, segments, outlet);
  104300. }
  104301. catch (e) {
  104302. if (!(e instanceof NoMatch$1))
  104303. throw e;
  104304. }
  104305. }
  104306. if (this.noLeftoversInUrl(segmentGroup, segments, outlet)) {
  104307. return [];
  104308. }
  104309. throw new NoMatch$1();
  104310. }
  104311. noLeftoversInUrl(segmentGroup, segments, outlet) {
  104312. return segments.length === 0 && !segmentGroup.children[outlet];
  104313. }
  104314. processSegmentAgainstRoute(route, rawSegment, segments, outlet) {
  104315. if (route.redirectTo)
  104316. throw new NoMatch$1();
  104317. if ((route.outlet || PRIMARY_OUTLET) !== outlet)
  104318. throw new NoMatch$1();
  104319. let snapshot;
  104320. let consumedSegments = [];
  104321. let rawSlicedSegments = [];
  104322. if (route.path === '**') {
  104323. const params = segments.length > 0 ? last(segments).parameters : {};
  104324. snapshot = new ActivatedRouteSnapshot(segments, params, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), outlet, route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + segments.length, getResolve(route));
  104325. }
  104326. else {
  104327. const result = match$1(rawSegment, route, segments);
  104328. consumedSegments = result.consumedSegments;
  104329. rawSlicedSegments = segments.slice(result.lastChild);
  104330. snapshot = new ActivatedRouteSnapshot(consumedSegments, result.parameters, Object.freeze(Object.assign({}, this.urlTree.queryParams)), this.urlTree.fragment, getData(route), outlet, route.component, route, getSourceSegmentGroup(rawSegment), getPathIndexShift(rawSegment) + consumedSegments.length, getResolve(route));
  104331. }
  104332. const childConfig = getChildConfig(route);
  104333. const { segmentGroup, slicedSegments } = split$1(rawSegment, consumedSegments, rawSlicedSegments, childConfig, this.relativeLinkResolution);
  104334. if (slicedSegments.length === 0 && segmentGroup.hasChildren()) {
  104335. const children = this.processChildren(childConfig, segmentGroup);
  104336. return [new TreeNode(snapshot, children)];
  104337. }
  104338. if (childConfig.length === 0 && slicedSegments.length === 0) {
  104339. return [new TreeNode(snapshot, [])];
  104340. }
  104341. const children = this.processSegment(childConfig, segmentGroup, slicedSegments, PRIMARY_OUTLET);
  104342. return [new TreeNode(snapshot, children)];
  104343. }
  104344. }
  104345. function sortActivatedRouteSnapshots(nodes) {
  104346. nodes.sort((a, b) => {
  104347. if (a.value.outlet === PRIMARY_OUTLET)
  104348. return -1;
  104349. if (b.value.outlet === PRIMARY_OUTLET)
  104350. return 1;
  104351. return a.value.outlet.localeCompare(b.value.outlet);
  104352. });
  104353. }
  104354. function getChildConfig(route) {
  104355. if (route.children) {
  104356. return route.children;
  104357. }
  104358. if (route.loadChildren) {
  104359. return route._loadedConfig.routes;
  104360. }
  104361. return [];
  104362. }
  104363. function match$1(segmentGroup, route, segments) {
  104364. if (route.path === '') {
  104365. if (route.pathMatch === 'full' && (segmentGroup.hasChildren() || segments.length > 0)) {
  104366. throw new NoMatch$1();
  104367. }
  104368. return { consumedSegments: [], lastChild: 0, parameters: {} };
  104369. }
  104370. const matcher = route.matcher || defaultUrlMatcher;
  104371. const res = matcher(segments, segmentGroup, route);
  104372. if (!res)
  104373. throw new NoMatch$1();
  104374. const posParams = {};
  104375. forEach(res.posParams, (v, k) => {
  104376. posParams[k] = v.path;
  104377. });
  104378. const parameters = res.consumed.length > 0 ? Object.assign(Object.assign({}, posParams), res.consumed[res.consumed.length - 1].parameters) :
  104379. posParams;
  104380. return { consumedSegments: res.consumed, lastChild: res.consumed.length, parameters };
  104381. }
  104382. function checkOutletNameUniqueness(nodes) {
  104383. const names = {};
  104384. nodes.forEach(n => {
  104385. const routeWithSameOutletName = names[n.value.outlet];
  104386. if (routeWithSameOutletName) {
  104387. const p = routeWithSameOutletName.url.map(s => s.toString()).join('/');
  104388. const c = n.value.url.map(s => s.toString()).join('/');
  104389. throw new Error(`Two segments cannot have the same outlet name: '${p}' and '${c}'.`);
  104390. }
  104391. names[n.value.outlet] = n.value;
  104392. });
  104393. }
  104394. function getSourceSegmentGroup(segmentGroup) {
  104395. let s = segmentGroup;
  104396. while (s._sourceSegment) {
  104397. s = s._sourceSegment;
  104398. }
  104399. return s;
  104400. }
  104401. function getPathIndexShift(segmentGroup) {
  104402. let s = segmentGroup;
  104403. let res = (s._segmentIndexShift ? s._segmentIndexShift : 0);
  104404. while (s._sourceSegment) {
  104405. s = s._sourceSegment;
  104406. res += (s._segmentIndexShift ? s._segmentIndexShift : 0);
  104407. }
  104408. return res - 1;
  104409. }
  104410. function split$1(segmentGroup, consumedSegments, slicedSegments, config, relativeLinkResolution) {
  104411. if (slicedSegments.length > 0 &&
  104412. containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, config)) {
  104413. const s = new UrlSegmentGroup(consumedSegments, createChildrenForEmptyPaths(segmentGroup, consumedSegments, config, new UrlSegmentGroup(slicedSegments, segmentGroup.children)));
  104414. s._sourceSegment = segmentGroup;
  104415. s._segmentIndexShift = consumedSegments.length;
  104416. return { segmentGroup: s, slicedSegments: [] };
  104417. }
  104418. if (slicedSegments.length === 0 &&
  104419. containsEmptyPathMatches(segmentGroup, slicedSegments, config)) {
  104420. const s = new UrlSegmentGroup(segmentGroup.segments, addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, config, segmentGroup.children, relativeLinkResolution));
  104421. s._sourceSegment = segmentGroup;
  104422. s._segmentIndexShift = consumedSegments.length;
  104423. return { segmentGroup: s, slicedSegments };
  104424. }
  104425. const s = new UrlSegmentGroup(segmentGroup.segments, segmentGroup.children);
  104426. s._sourceSegment = segmentGroup;
  104427. s._segmentIndexShift = consumedSegments.length;
  104428. return { segmentGroup: s, slicedSegments };
  104429. }
  104430. function addEmptyPathsToChildrenIfNeeded(segmentGroup, consumedSegments, slicedSegments, routes, children, relativeLinkResolution) {
  104431. const res = {};
  104432. for (const r of routes) {
  104433. if (emptyPathMatch(segmentGroup, slicedSegments, r) && !children[getOutlet(r)]) {
  104434. const s = new UrlSegmentGroup([], {});
  104435. s._sourceSegment = segmentGroup;
  104436. if (relativeLinkResolution === 'legacy') {
  104437. s._segmentIndexShift = segmentGroup.segments.length;
  104438. }
  104439. else {
  104440. s._segmentIndexShift = consumedSegments.length;
  104441. }
  104442. res[getOutlet(r)] = s;
  104443. }
  104444. }
  104445. return Object.assign(Object.assign({}, children), res);
  104446. }
  104447. function createChildrenForEmptyPaths(segmentGroup, consumedSegments, routes, primarySegment) {
  104448. const res = {};
  104449. res[PRIMARY_OUTLET] = primarySegment;
  104450. primarySegment._sourceSegment = segmentGroup;
  104451. primarySegment._segmentIndexShift = consumedSegments.length;
  104452. for (const r of routes) {
  104453. if (r.path === '' && getOutlet(r) !== PRIMARY_OUTLET) {
  104454. const s = new UrlSegmentGroup([], {});
  104455. s._sourceSegment = segmentGroup;
  104456. s._segmentIndexShift = consumedSegments.length;
  104457. res[getOutlet(r)] = s;
  104458. }
  104459. }
  104460. return res;
  104461. }
  104462. function containsEmptyPathMatchesWithNamedOutlets(segmentGroup, slicedSegments, routes) {
  104463. return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r) && getOutlet(r) !== PRIMARY_OUTLET);
  104464. }
  104465. function containsEmptyPathMatches(segmentGroup, slicedSegments, routes) {
  104466. return routes.some(r => emptyPathMatch(segmentGroup, slicedSegments, r));
  104467. }
  104468. function emptyPathMatch(segmentGroup, slicedSegments, r) {
  104469. if ((segmentGroup.hasChildren() || slicedSegments.length > 0) && r.pathMatch === 'full') {
  104470. return false;
  104471. }
  104472. return r.path === '' && r.redirectTo === undefined;
  104473. }
  104474. function getData(route) {
  104475. return route.data || {};
  104476. }
  104477. function getResolve(route) {
  104478. return route.resolve || {};
  104479. }
  104480. /**
  104481. * @license
  104482. * Copyright Google LLC All Rights Reserved.
  104483. *
  104484. * Use of this source code is governed by an MIT-style license that can be
  104485. * found in the LICENSE file at https://angular.io/license
  104486. */
  104487. function recognize$1(rootComponentType, config, serializer, paramsInheritanceStrategy, relativeLinkResolution) {
  104488. return function (source) {
  104489. return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(t => recognize(rootComponentType, config, t.urlAfterRedirects, serializer(t.urlAfterRedirects), paramsInheritanceStrategy, relativeLinkResolution)
  104490. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(targetSnapshot => (Object.assign(Object.assign({}, t), { targetSnapshot }))))));
  104491. };
  104492. }
  104493. /**
  104494. * @license
  104495. * Copyright Google LLC All Rights Reserved.
  104496. *
  104497. * Use of this source code is governed by an MIT-style license that can be
  104498. * found in the LICENSE file at https://angular.io/license
  104499. */
  104500. function resolveData(paramsInheritanceStrategy, moduleInjector) {
  104501. return function (source) {
  104502. return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(t => {
  104503. const { targetSnapshot, guards: { canActivateChecks } } = t;
  104504. if (!canActivateChecks.length) {
  104505. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t);
  104506. }
  104507. let canActivateChecksResolved = 0;
  104508. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(canActivateChecks)
  104509. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatMap"])(check => runResolve(check.route, targetSnapshot, paramsInheritanceStrategy, moduleInjector)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(() => canActivateChecksResolved++), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeLast"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(_ => canActivateChecksResolved === canActivateChecks.length ? Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t) : rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"]));
  104510. }));
  104511. };
  104512. }
  104513. function runResolve(futureARS, futureRSS, paramsInheritanceStrategy, moduleInjector) {
  104514. const resolve = futureARS._resolve;
  104515. return resolveNode(resolve, futureARS, futureRSS, moduleInjector)
  104516. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((resolvedData) => {
  104517. futureARS._resolvedData = resolvedData;
  104518. futureARS.data = Object.assign(Object.assign({}, futureARS.data), inheritedParamsDataResolve(futureARS, paramsInheritanceStrategy).resolve);
  104519. return null;
  104520. }));
  104521. }
  104522. function resolveNode(resolve, futureARS, futureRSS, moduleInjector) {
  104523. const keys = Object.keys(resolve);
  104524. if (keys.length === 0) {
  104525. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])({});
  104526. }
  104527. const data = {};
  104528. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(keys).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((key) => getResolver(resolve[key], futureARS, futureRSS, moduleInjector)
  104529. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])((value) => {
  104530. data[key] = value;
  104531. }))), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeLast"])(1), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])(() => {
  104532. // Ensure all resolvers returned values, otherwise don't emit any "next" and just complete
  104533. // the chain which will cancel navigation
  104534. if (Object.keys(data).length === keys.length) {
  104535. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(data);
  104536. }
  104537. return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
  104538. }));
  104539. }
  104540. function getResolver(injectionToken, futureARS, futureRSS, moduleInjector) {
  104541. const resolver = getToken(injectionToken, futureARS, moduleInjector);
  104542. return resolver.resolve ? wrapIntoObservable(resolver.resolve(futureARS, futureRSS)) :
  104543. wrapIntoObservable(resolver(futureARS, futureRSS));
  104544. }
  104545. /**
  104546. * @license
  104547. * Copyright Google LLC All Rights Reserved.
  104548. *
  104549. * Use of this source code is governed by an MIT-style license that can be
  104550. * found in the LICENSE file at https://angular.io/license
  104551. */
  104552. /**
  104553. * Perform a side effect through a switchMap for every emission on the source Observable,
  104554. * but return an Observable that is identical to the source. It's essentially the same as
  104555. * the `tap` operator, but if the side effectful `next` function returns an ObservableInput,
  104556. * it will wait before continuing with the original value.
  104557. */
  104558. function switchTap(next) {
  104559. return function (source) {
  104560. return source.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(v => {
  104561. const nextResult = next(v);
  104562. if (nextResult) {
  104563. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(nextResult).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(() => v));
  104564. }
  104565. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])([v]);
  104566. }));
  104567. };
  104568. }
  104569. /**
  104570. * @license
  104571. * Copyright Google LLC All Rights Reserved.
  104572. *
  104573. * Use of this source code is governed by an MIT-style license that can be
  104574. * found in the LICENSE file at https://angular.io/license
  104575. */
  104576. /**
  104577. * @description
  104578. *
  104579. * Provides a way to customize when activated routes get reused.
  104580. *
  104581. * @publicApi
  104582. */
  104583. class RouteReuseStrategy {
  104584. }
  104585. /**
  104586. * @description
  104587. *
  104588. * This base route reuse strategy only reuses routes when the matched router configs are
  104589. * identical. This prevents components from being destroyed and recreated
  104590. * when just the fragment or query parameters change
  104591. * (that is, the existing component is _reused_).
  104592. *
  104593. * This strategy does not store any routes for later reuse.
  104594. *
  104595. * Angular uses this strategy by default.
  104596. *
  104597. *
  104598. * It can be used as a base class for custom route reuse strategies, i.e. you can create your own
  104599. * class that extends the `BaseRouteReuseStrategy` one.
  104600. * @publicApi
  104601. */
  104602. class BaseRouteReuseStrategy {
  104603. /**
  104604. * Whether the given route should detach for later reuse.
  104605. * Always returns false for `BaseRouteReuseStrategy`.
  104606. * */
  104607. shouldDetach(route) {
  104608. return false;
  104609. }
  104610. /**
  104611. * A no-op; the route is never stored since this strategy never detaches routes for later re-use.
  104612. */
  104613. store(route, detachedTree) { }
  104614. /** Returns `false`, meaning the route (and its subtree) is never reattached */
  104615. shouldAttach(route) {
  104616. return false;
  104617. }
  104618. /** Returns `null` because this strategy does not store routes for later re-use. */
  104619. retrieve(route) {
  104620. return null;
  104621. }
  104622. /**
  104623. * Determines if a route should be reused.
  104624. * This strategy returns `true` when the future route config and current route config are
  104625. * identical.
  104626. */
  104627. shouldReuseRoute(future, curr) {
  104628. return future.routeConfig === curr.routeConfig;
  104629. }
  104630. }
  104631. class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
  104632. }
  104633. /**
  104634. * @license
  104635. * Copyright Google LLC All Rights Reserved.
  104636. *
  104637. * Use of this source code is governed by an MIT-style license that can be
  104638. * found in the LICENSE file at https://angular.io/license
  104639. */
  104640. /**
  104641. * The [DI token](guide/glossary/#di-token) for a router configuration.
  104642. * @see `ROUTES`
  104643. * @publicApi
  104644. */
  104645. const ROUTES = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('ROUTES');
  104646. class RouterConfigLoader {
  104647. constructor(loader, compiler, onLoadStartListener, onLoadEndListener) {
  104648. this.loader = loader;
  104649. this.compiler = compiler;
  104650. this.onLoadStartListener = onLoadStartListener;
  104651. this.onLoadEndListener = onLoadEndListener;
  104652. }
  104653. load(parentInjector, route) {
  104654. if (this.onLoadStartListener) {
  104655. this.onLoadStartListener(route);
  104656. }
  104657. const moduleFactory$ = this.loadModuleFactory(route.loadChildren);
  104658. return moduleFactory$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((factory) => {
  104659. if (this.onLoadEndListener) {
  104660. this.onLoadEndListener(route);
  104661. }
  104662. const module = factory.create(parentInjector);
  104663. return new LoadedRouterConfig(flatten(module.injector.get(ROUTES)).map(standardizeConfig), module);
  104664. }));
  104665. }
  104666. loadModuleFactory(loadChildren) {
  104667. if (typeof loadChildren === 'string') {
  104668. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(this.loader.load(loadChildren));
  104669. }
  104670. else {
  104671. return wrapIntoObservable(loadChildren()).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((t) => {
  104672. if (t instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactory"]) {
  104673. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t);
  104674. }
  104675. else {
  104676. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(this.compiler.compileModuleAsync(t));
  104677. }
  104678. }));
  104679. }
  104680. }
  104681. }
  104682. /**
  104683. * @license
  104684. * Copyright Google LLC All Rights Reserved.
  104685. *
  104686. * Use of this source code is governed by an MIT-style license that can be
  104687. * found in the LICENSE file at https://angular.io/license
  104688. */
  104689. /**
  104690. * Store contextual information about a `RouterOutlet`
  104691. *
  104692. * @publicApi
  104693. */
  104694. class OutletContext {
  104695. constructor() {
  104696. this.outlet = null;
  104697. this.route = null;
  104698. this.resolver = null;
  104699. this.children = new ChildrenOutletContexts();
  104700. this.attachRef = null;
  104701. }
  104702. }
  104703. /**
  104704. * Store contextual information about the children (= nested) `RouterOutlet`
  104705. *
  104706. * @publicApi
  104707. */
  104708. class ChildrenOutletContexts {
  104709. constructor() {
  104710. // contexts for child outlets, by name.
  104711. this.contexts = new Map();
  104712. }
  104713. /** Called when a `RouterOutlet` directive is instantiated */
  104714. onChildOutletCreated(childName, outlet) {
  104715. const context = this.getOrCreateContext(childName);
  104716. context.outlet = outlet;
  104717. this.contexts.set(childName, context);
  104718. }
  104719. /**
  104720. * Called when a `RouterOutlet` directive is destroyed.
  104721. * We need to keep the context as the outlet could be destroyed inside a NgIf and might be
  104722. * re-created later.
  104723. */
  104724. onChildOutletDestroyed(childName) {
  104725. const context = this.getContext(childName);
  104726. if (context) {
  104727. context.outlet = null;
  104728. }
  104729. }
  104730. /**
  104731. * Called when the corresponding route is deactivated during navigation.
  104732. * Because the component get destroyed, all children outlet are destroyed.
  104733. */
  104734. onOutletDeactivated() {
  104735. const contexts = this.contexts;
  104736. this.contexts = new Map();
  104737. return contexts;
  104738. }
  104739. onOutletReAttached(contexts) {
  104740. this.contexts = contexts;
  104741. }
  104742. getOrCreateContext(childName) {
  104743. let context = this.getContext(childName);
  104744. if (!context) {
  104745. context = new OutletContext();
  104746. this.contexts.set(childName, context);
  104747. }
  104748. return context;
  104749. }
  104750. getContext(childName) {
  104751. return this.contexts.get(childName) || null;
  104752. }
  104753. }
  104754. /**
  104755. * @license
  104756. * Copyright Google LLC All Rights Reserved.
  104757. *
  104758. * Use of this source code is governed by an MIT-style license that can be
  104759. * found in the LICENSE file at https://angular.io/license
  104760. */
  104761. /**
  104762. * @description
  104763. *
  104764. * Provides a way to migrate AngularJS applications to Angular.
  104765. *
  104766. * @publicApi
  104767. */
  104768. class UrlHandlingStrategy {
  104769. }
  104770. /**
  104771. * @publicApi
  104772. */
  104773. class DefaultUrlHandlingStrategy {
  104774. shouldProcessUrl(url) {
  104775. return true;
  104776. }
  104777. extract(url) {
  104778. return url;
  104779. }
  104780. merge(newUrlPart, wholeUrl) {
  104781. return newUrlPart;
  104782. }
  104783. }
  104784. /**
  104785. * @license
  104786. * Copyright Google LLC All Rights Reserved.
  104787. *
  104788. * Use of this source code is governed by an MIT-style license that can be
  104789. * found in the LICENSE file at https://angular.io/license
  104790. */
  104791. function defaultErrorHandler(error) {
  104792. throw error;
  104793. }
  104794. function defaultMalformedUriErrorHandler(error, urlSerializer, url) {
  104795. return urlSerializer.parse('/');
  104796. }
  104797. /**
  104798. * @internal
  104799. */
  104800. function defaultRouterHook(snapshot, runExtras) {
  104801. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
  104802. }
  104803. /**
  104804. * @description
  104805. *
  104806. * A service that provides navigation among views and URL manipulation capabilities.
  104807. *
  104808. * @see `Route`.
  104809. * @see [Routing and Navigation Guide](guide/router).
  104810. *
  104811. * @ngModule RouterModule
  104812. *
  104813. * @publicApi
  104814. */
  104815. class Router {
  104816. /**
  104817. * Creates the router service.
  104818. */
  104819. // TODO: vsavkin make internal after the final is out.
  104820. constructor(rootComponentType, urlSerializer, rootContexts, location, injector, loader, compiler, config) {
  104821. this.rootComponentType = rootComponentType;
  104822. this.urlSerializer = urlSerializer;
  104823. this.rootContexts = rootContexts;
  104824. this.location = location;
  104825. this.config = config;
  104826. this.lastSuccessfulNavigation = null;
  104827. this.currentNavigation = null;
  104828. /**
  104829. * Tracks the previously seen location change from the location subscription so we can compare
  104830. * the two latest to see if they are duplicates. See setUpLocationChangeListener.
  104831. */
  104832. this.lastLocationChangeInfo = null;
  104833. this.navigationId = 0;
  104834. this.isNgZoneEnabled = false;
  104835. /**
  104836. * An event stream for routing events in this NgModule.
  104837. */
  104838. this.events = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  104839. /**
  104840. * A handler for navigation errors in this NgModule.
  104841. */
  104842. this.errorHandler = defaultErrorHandler;
  104843. /**
  104844. * A handler for errors thrown by `Router.parseUrl(url)`
  104845. * when `url` contains an invalid character.
  104846. * The most common case is a `%` sign
  104847. * that's not encoded and is not part of a percent encoded sequence.
  104848. */
  104849. this.malformedUriErrorHandler = defaultMalformedUriErrorHandler;
  104850. /**
  104851. * True if at least one navigation event has occurred,
  104852. * false otherwise.
  104853. */
  104854. this.navigated = false;
  104855. this.lastSuccessfulId = -1;
  104856. /**
  104857. * Hooks that enable you to pause navigation,
  104858. * either before or after the preactivation phase.
  104859. * Used by `RouterModule`.
  104860. *
  104861. * @internal
  104862. */
  104863. this.hooks = { beforePreactivation: defaultRouterHook, afterPreactivation: defaultRouterHook };
  104864. /**
  104865. * A strategy for extracting and merging URLs.
  104866. * Used for AngularJS to Angular migrations.
  104867. */
  104868. this.urlHandlingStrategy = new DefaultUrlHandlingStrategy();
  104869. /**
  104870. * A strategy for re-using routes.
  104871. */
  104872. this.routeReuseStrategy = new DefaultRouteReuseStrategy();
  104873. /**
  104874. * How to handle a navigation request to the current URL. One of:
  104875. * - `'ignore'` : The router ignores the request.
  104876. * - `'reload'` : The router reloads the URL. Use to implement a "refresh" feature.
  104877. */
  104878. this.onSameUrlNavigation = 'ignore';
  104879. /**
  104880. * How to merge parameters, data, and resolved data from parent to child
  104881. * routes. One of:
  104882. *
  104883. * - `'emptyOnly'` : Inherit parent parameters, data, and resolved data
  104884. * for path-less or component-less routes.
  104885. * - `'always'` : Inherit parent parameters, data, and resolved data
  104886. * for all child routes.
  104887. */
  104888. this.paramsInheritanceStrategy = 'emptyOnly';
  104889. /**
  104890. * Determines when the router updates the browser URL.
  104891. * By default (`"deferred"`), updates the browser URL after navigation has finished.
  104892. * Set to `'eager'` to update the browser URL at the beginning of navigation.
  104893. * You can choose to update early so that, if navigation fails,
  104894. * you can show an error message with the URL that failed.
  104895. */
  104896. this.urlUpdateStrategy = 'deferred';
  104897. /**
  104898. * Enables a bug fix that corrects relative link resolution in components with empty paths.
  104899. * @see `RouterModule`
  104900. */
  104901. this.relativeLinkResolution = 'corrected';
  104902. const onLoadStart = (r) => this.triggerEvent(new RouteConfigLoadStart(r));
  104903. const onLoadEnd = (r) => this.triggerEvent(new RouteConfigLoadEnd(r));
  104904. this.ngModule = injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleRef"]);
  104905. this.console = injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵConsole"]);
  104906. const ngZone = injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]);
  104907. this.isNgZoneEnabled = ngZone instanceof _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"];
  104908. this.resetConfig(config);
  104909. this.currentUrlTree = createEmptyUrlTree();
  104910. this.rawUrlTree = this.currentUrlTree;
  104911. this.browserUrlTree = this.currentUrlTree;
  104912. this.configLoader = new RouterConfigLoader(loader, compiler, onLoadStart, onLoadEnd);
  104913. this.routerState = createEmptyState(this.currentUrlTree, this.rootComponentType);
  104914. this.transitions = new rxjs__WEBPACK_IMPORTED_MODULE_2__["BehaviorSubject"]({
  104915. id: 0,
  104916. currentUrlTree: this.currentUrlTree,
  104917. currentRawUrl: this.currentUrlTree,
  104918. extractedUrl: this.urlHandlingStrategy.extract(this.currentUrlTree),
  104919. urlAfterRedirects: this.urlHandlingStrategy.extract(this.currentUrlTree),
  104920. rawUrl: this.currentUrlTree,
  104921. extras: {},
  104922. resolve: null,
  104923. reject: null,
  104924. promise: Promise.resolve(true),
  104925. source: 'imperative',
  104926. restoredState: null,
  104927. currentSnapshot: this.routerState.snapshot,
  104928. targetSnapshot: null,
  104929. currentRouterState: this.routerState,
  104930. targetRouterState: null,
  104931. guards: { canActivateChecks: [], canDeactivateChecks: [] },
  104932. guardsResult: null,
  104933. });
  104934. this.navigations = this.setupNavigations(this.transitions);
  104935. this.processNavigations();
  104936. }
  104937. setupNavigations(transitions) {
  104938. const eventsSubject = this.events;
  104939. return transitions.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(t => t.id !== 0),
  104940. // Extract URL
  104941. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(t => (Object.assign(Object.assign({}, t), { extractedUrl: this.urlHandlingStrategy.extract(t.rawUrl) }))),
  104942. // Using switchMap so we cancel executing navigations when a new one comes in
  104943. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(t => {
  104944. let completed = false;
  104945. let errored = false;
  104946. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t).pipe(
  104947. // Store the Navigation object
  104948. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  104949. this.currentNavigation = {
  104950. id: t.id,
  104951. initialUrl: t.currentRawUrl,
  104952. extractedUrl: t.extractedUrl,
  104953. trigger: t.source,
  104954. extras: t.extras,
  104955. previousNavigation: this.lastSuccessfulNavigation ? Object.assign(Object.assign({}, this.lastSuccessfulNavigation), { previousNavigation: null }) :
  104956. null
  104957. };
  104958. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(t => {
  104959. const urlTransition = !this.navigated ||
  104960. t.extractedUrl.toString() !== this.browserUrlTree.toString();
  104961. const processCurrentUrl = (this.onSameUrlNavigation === 'reload' ? true : urlTransition) &&
  104962. this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl);
  104963. if (processCurrentUrl) {
  104964. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t).pipe(
  104965. // Fire NavigationStart event
  104966. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(t => {
  104967. const transition = this.transitions.getValue();
  104968. eventsSubject.next(new NavigationStart(t.id, this.serializeUrl(t.extractedUrl), t.source, t.restoredState));
  104969. if (transition !== this.transitions.getValue()) {
  104970. return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
  104971. }
  104972. return [t];
  104973. }),
  104974. // This delay is required to match old behavior that forced navigation
  104975. // to always be async
  104976. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(t => Promise.resolve(t)),
  104977. // ApplyRedirects
  104978. applyRedirects$1(this.ngModule.injector, this.configLoader, this.urlSerializer, this.config),
  104979. // Update the currentNavigation
  104980. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  104981. this.currentNavigation = Object.assign(Object.assign({}, this.currentNavigation), { finalUrl: t.urlAfterRedirects });
  104982. }),
  104983. // Recognize
  104984. recognize$1(this.rootComponentType, this.config, (url) => this.serializeUrl(url), this.paramsInheritanceStrategy, this.relativeLinkResolution),
  104985. // Update URL if in `eager` update mode
  104986. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  104987. if (this.urlUpdateStrategy === 'eager') {
  104988. if (!t.extras.skipLocationChange) {
  104989. this.setBrowserUrl(t.urlAfterRedirects, !!t.extras.replaceUrl, t.id, t.extras.state);
  104990. }
  104991. this.browserUrlTree = t.urlAfterRedirects;
  104992. }
  104993. }),
  104994. // Fire RoutesRecognized
  104995. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  104996. const routesRecognized = new RoutesRecognized(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);
  104997. eventsSubject.next(routesRecognized);
  104998. }));
  104999. }
  105000. else {
  105001. const processPreviousUrl = urlTransition && this.rawUrlTree &&
  105002. this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree);
  105003. /* When the current URL shouldn't be processed, but the previous one was,
  105004. * we handle this "error condition" by navigating to the previously
  105005. * successful URL, but leaving the URL intact.*/
  105006. if (processPreviousUrl) {
  105007. const { id, extractedUrl, source, restoredState, extras } = t;
  105008. const navStart = new NavigationStart(id, this.serializeUrl(extractedUrl), source, restoredState);
  105009. eventsSubject.next(navStart);
  105010. const targetSnapshot = createEmptyState(extractedUrl, this.rootComponentType).snapshot;
  105011. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(Object.assign(Object.assign({}, t), { targetSnapshot, urlAfterRedirects: extractedUrl, extras: Object.assign(Object.assign({}, extras), { skipLocationChange: false, replaceUrl: false }) }));
  105012. }
  105013. else {
  105014. /* When neither the current or previous URL can be processed, do nothing
  105015. * other than update router's internal reference to the current "settled"
  105016. * URL. This way the next navigation will be coming from the current URL
  105017. * in the browser.
  105018. */
  105019. this.rawUrlTree = t.rawUrl;
  105020. this.browserUrlTree = t.urlAfterRedirects;
  105021. t.resolve(null);
  105022. return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
  105023. }
  105024. }
  105025. }),
  105026. // Before Preactivation
  105027. switchTap(t => {
  105028. const { targetSnapshot, id: navigationId, extractedUrl: appliedUrlTree, rawUrl: rawUrlTree, extras: { skipLocationChange, replaceUrl } } = t;
  105029. return this.hooks.beforePreactivation(targetSnapshot, {
  105030. navigationId,
  105031. appliedUrlTree,
  105032. rawUrlTree,
  105033. skipLocationChange: !!skipLocationChange,
  105034. replaceUrl: !!replaceUrl,
  105035. });
  105036. }),
  105037. // --- GUARDS ---
  105038. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  105039. const guardsStart = new GuardsCheckStart(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);
  105040. this.triggerEvent(guardsStart);
  105041. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])(t => (Object.assign(Object.assign({}, t), { guards: getAllRouteGuards(t.targetSnapshot, t.currentSnapshot, this.rootContexts) }))), checkGuards(this.ngModule.injector, (evt) => this.triggerEvent(evt)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  105042. if (isUrlTree(t.guardsResult)) {
  105043. const error = navigationCancelingError(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);
  105044. error.url = t.guardsResult;
  105045. throw error;
  105046. }
  105047. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  105048. const guardsEnd = new GuardsCheckEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot, !!t.guardsResult);
  105049. this.triggerEvent(guardsEnd);
  105050. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])(t => {
  105051. if (!t.guardsResult) {
  105052. this.resetUrlToCurrentUrlTree();
  105053. const navCancel = new NavigationCancel(t.id, this.serializeUrl(t.extractedUrl), '');
  105054. eventsSubject.next(navCancel);
  105055. t.resolve(false);
  105056. return false;
  105057. }
  105058. return true;
  105059. }),
  105060. // --- RESOLVE ---
  105061. switchTap(t => {
  105062. if (t.guards.canActivateChecks.length) {
  105063. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  105064. const resolveStart = new ResolveStart(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);
  105065. this.triggerEvent(resolveStart);
  105066. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])(t => {
  105067. let dataResolved = false;
  105068. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(t).pipe(resolveData(this.paramsInheritanceStrategy, this.ngModule.injector), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])({
  105069. next: () => dataResolved = true,
  105070. complete: () => {
  105071. if (!dataResolved) {
  105072. const navCancel = new NavigationCancel(t.id, this.serializeUrl(t.extractedUrl), `At least one route resolver didn't emit any value.`);
  105073. eventsSubject.next(navCancel);
  105074. t.resolve(false);
  105075. }
  105076. }
  105077. }));
  105078. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])(t => {
  105079. const resolveEnd = new ResolveEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(t.urlAfterRedirects), t.targetSnapshot);
  105080. this.triggerEvent(resolveEnd);
  105081. }));
  105082. }
  105083. return undefined;
  105084. }),
  105085. // --- AFTER PREACTIVATION ---
  105086. switchTap((t) => {
  105087. const { targetSnapshot, id: navigationId, extractedUrl: appliedUrlTree, rawUrl: rawUrlTree, extras: { skipLocationChange, replaceUrl } } = t;
  105088. return this.hooks.afterPreactivation(targetSnapshot, {
  105089. navigationId,
  105090. appliedUrlTree,
  105091. rawUrlTree,
  105092. skipLocationChange: !!skipLocationChange,
  105093. replaceUrl: !!replaceUrl,
  105094. });
  105095. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((t) => {
  105096. const targetRouterState = createRouterState(this.routeReuseStrategy, t.targetSnapshot, t.currentRouterState);
  105097. return (Object.assign(Object.assign({}, t), { targetRouterState }));
  105098. }),
  105099. /* Once here, we are about to activate syncronously. The assumption is this
  105100. will succeed, and user code may read from the Router service. Therefore
  105101. before activation, we need to update router properties storing the current
  105102. URL and the RouterState, as well as updated the browser URL. All this should
  105103. happen *before* activating. */
  105104. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])((t) => {
  105105. this.currentUrlTree = t.urlAfterRedirects;
  105106. this.rawUrlTree =
  105107. this.urlHandlingStrategy.merge(this.currentUrlTree, t.rawUrl);
  105108. this.routerState = t.targetRouterState;
  105109. if (this.urlUpdateStrategy === 'deferred') {
  105110. if (!t.extras.skipLocationChange) {
  105111. this.setBrowserUrl(this.rawUrlTree, !!t.extras.replaceUrl, t.id, t.extras.state);
  105112. }
  105113. this.browserUrlTree = t.urlAfterRedirects;
  105114. }
  105115. }), activateRoutes(this.rootContexts, this.routeReuseStrategy, (evt) => this.triggerEvent(evt)), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["tap"])({
  105116. next() {
  105117. completed = true;
  105118. },
  105119. complete() {
  105120. completed = true;
  105121. }
  105122. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["finalize"])(() => {
  105123. /* When the navigation stream finishes either through error or success, we
  105124. * set the `completed` or `errored` flag. However, there are some situations
  105125. * where we could get here without either of those being set. For instance, a
  105126. * redirect during NavigationStart. Therefore, this is a catch-all to make
  105127. * sure the NavigationCancel
  105128. * event is fired when a navigation gets cancelled but not caught by other
  105129. * means. */
  105130. if (!completed && !errored) {
  105131. // Must reset to current URL tree here to ensure history.state is set. On a
  105132. // fresh page load, if a new navigation comes in before a successful
  105133. // navigation completes, there will be nothing in
  105134. // history.state.navigationId. This can cause sync problems with AngularJS
  105135. // sync code which looks for a value here in order to determine whether or
  105136. // not to handle a given popstate event or to leave it to the Angualr
  105137. // router.
  105138. this.resetUrlToCurrentUrlTree();
  105139. const navCancel = new NavigationCancel(t.id, this.serializeUrl(t.extractedUrl), `Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);
  105140. eventsSubject.next(navCancel);
  105141. t.resolve(false);
  105142. }
  105143. // currentNavigation should always be reset to null here. If navigation was
  105144. // successful, lastSuccessfulTransition will have already been set. Therefore
  105145. // we can safely set currentNavigation to null here.
  105146. this.currentNavigation = null;
  105147. }), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])((e) => {
  105148. errored = true;
  105149. /* This error type is issued during Redirect, and is handled as a
  105150. * cancellation rather than an error. */
  105151. if (isNavigationCancelingError(e)) {
  105152. const redirecting = isUrlTree(e.url);
  105153. if (!redirecting) {
  105154. // Set property only if we're not redirecting. If we landed on a page and
  105155. // redirect to `/` route, the new navigation is going to see the `/`
  105156. // isn't a change from the default currentUrlTree and won't navigate.
  105157. // This is only applicable with initial navigation, so setting
  105158. // `navigated` only when not redirecting resolves this scenario.
  105159. this.navigated = true;
  105160. this.resetStateAndUrl(t.currentRouterState, t.currentUrlTree, t.rawUrl);
  105161. }
  105162. const navCancel = new NavigationCancel(t.id, this.serializeUrl(t.extractedUrl), e.message);
  105163. eventsSubject.next(navCancel);
  105164. // When redirecting, we need to delay resolving the navigation
  105165. // promise and push it to the redirect navigation
  105166. if (!redirecting) {
  105167. t.resolve(false);
  105168. }
  105169. else {
  105170. // setTimeout is required so this navigation finishes with
  105171. // the return EMPTY below. If it isn't allowed to finish
  105172. // processing, there can be multiple navigations to the same
  105173. // URL.
  105174. setTimeout(() => {
  105175. const mergedTree = this.urlHandlingStrategy.merge(e.url, this.rawUrlTree);
  105176. const extras = {
  105177. skipLocationChange: t.extras.skipLocationChange,
  105178. replaceUrl: this.urlUpdateStrategy === 'eager'
  105179. };
  105180. return this.scheduleNavigation(mergedTree, 'imperative', null, extras, { resolve: t.resolve, reject: t.reject, promise: t.promise });
  105181. }, 0);
  105182. }
  105183. /* All other errors should reset to the router's internal URL reference to
  105184. * the pre-error state. */
  105185. }
  105186. else {
  105187. this.resetStateAndUrl(t.currentRouterState, t.currentUrlTree, t.rawUrl);
  105188. const navError = new NavigationError(t.id, this.serializeUrl(t.extractedUrl), e);
  105189. eventsSubject.next(navError);
  105190. try {
  105191. t.resolve(this.errorHandler(e));
  105192. }
  105193. catch (ee) {
  105194. t.reject(ee);
  105195. }
  105196. }
  105197. return rxjs__WEBPACK_IMPORTED_MODULE_2__["EMPTY"];
  105198. }));
  105199. // TODO(jasonaden): remove cast once g3 is on updated TypeScript
  105200. }));
  105201. }
  105202. /**
  105203. * @internal
  105204. * TODO: this should be removed once the constructor of the router made internal
  105205. */
  105206. resetRootComponentType(rootComponentType) {
  105207. this.rootComponentType = rootComponentType;
  105208. // TODO: vsavkin router 4.0 should make the root component set to null
  105209. // this will simplify the lifecycle of the router.
  105210. this.routerState.root.component = this.rootComponentType;
  105211. }
  105212. getTransition() {
  105213. const transition = this.transitions.value;
  105214. // This value needs to be set. Other values such as extractedUrl are set on initial navigation
  105215. // but the urlAfterRedirects may not get set if we aren't processing the new URL *and* not
  105216. // processing the previous URL.
  105217. transition.urlAfterRedirects = this.browserUrlTree;
  105218. return transition;
  105219. }
  105220. setTransition(t) {
  105221. this.transitions.next(Object.assign(Object.assign({}, this.getTransition()), t));
  105222. }
  105223. /**
  105224. * Sets up the location change listener and performs the initial navigation.
  105225. */
  105226. initialNavigation() {
  105227. this.setUpLocationChangeListener();
  105228. if (this.navigationId === 0) {
  105229. this.navigateByUrl(this.location.path(true), { replaceUrl: true });
  105230. }
  105231. }
  105232. /**
  105233. * Sets up the location change listener. This listener detects navigations triggered from outside
  105234. * the Router (the browser back/forward buttons, for example) and schedules a corresponding Router
  105235. * navigation so that the correct events, guards, etc. are triggered.
  105236. */
  105237. setUpLocationChangeListener() {
  105238. // Don't need to use Zone.wrap any more, because zone.js
  105239. // already patch onPopState, so location change callback will
  105240. // run into ngZone
  105241. if (!this.locationSubscription) {
  105242. this.locationSubscription = this.location.subscribe(event => {
  105243. const currentChange = this.extractLocationChangeInfoFromEvent(event);
  105244. if (this.shouldScheduleNavigation(this.lastLocationChangeInfo, currentChange)) {
  105245. // The `setTimeout` was added in #12160 and is likely to support Angular/AngularJS
  105246. // hybrid apps.
  105247. setTimeout(() => {
  105248. const { source, state, urlTree } = currentChange;
  105249. const extras = { replaceUrl: true };
  105250. if (state) {
  105251. const stateCopy = Object.assign({}, state);
  105252. delete stateCopy.navigationId;
  105253. if (Object.keys(stateCopy).length !== 0) {
  105254. extras.state = stateCopy;
  105255. }
  105256. }
  105257. this.scheduleNavigation(urlTree, source, state, extras);
  105258. }, 0);
  105259. }
  105260. this.lastLocationChangeInfo = currentChange;
  105261. });
  105262. }
  105263. }
  105264. /** Extracts router-related information from a `PopStateEvent`. */
  105265. extractLocationChangeInfoFromEvent(change) {
  105266. var _a;
  105267. return {
  105268. source: change['type'] === 'popstate' ? 'popstate' : 'hashchange',
  105269. urlTree: this.parseUrl(change['url']),
  105270. // Navigations coming from Angular router have a navigationId state
  105271. // property. When this exists, restore the state.
  105272. state: ((_a = change.state) === null || _a === void 0 ? void 0 : _a.navigationId) ? change.state : null,
  105273. transitionId: this.getTransition().id
  105274. };
  105275. }
  105276. /**
  105277. * Determines whether two events triggered by the Location subscription are due to the same
  105278. * navigation. The location subscription can fire two events (popstate and hashchange) for a
  105279. * single navigation. The second one should be ignored, that is, we should not schedule another
  105280. * navigation in the Router.
  105281. */
  105282. shouldScheduleNavigation(previous, current) {
  105283. if (!previous)
  105284. return true;
  105285. const sameDestination = current.urlTree.toString() === previous.urlTree.toString();
  105286. const eventsOccurredAtSameTime = current.transitionId === previous.transitionId;
  105287. if (!eventsOccurredAtSameTime || !sameDestination) {
  105288. return true;
  105289. }
  105290. if ((current.source === 'hashchange' && previous.source === 'popstate') ||
  105291. (current.source === 'popstate' && previous.source === 'hashchange')) {
  105292. return false;
  105293. }
  105294. return true;
  105295. }
  105296. /** The current URL. */
  105297. get url() {
  105298. return this.serializeUrl(this.currentUrlTree);
  105299. }
  105300. /** The current Navigation object if one exists */
  105301. getCurrentNavigation() {
  105302. return this.currentNavigation;
  105303. }
  105304. /** @internal */
  105305. triggerEvent(event) {
  105306. this.events.next(event);
  105307. }
  105308. /**
  105309. * Resets the route configuration used for navigation and generating links.
  105310. *
  105311. * @param config The route array for the new configuration.
  105312. *
  105313. * @usageNotes
  105314. *
  105315. * ```
  105316. * router.resetConfig([
  105317. * { path: 'team/:id', component: TeamCmp, children: [
  105318. * { path: 'simple', component: SimpleCmp },
  105319. * { path: 'user/:name', component: UserCmp }
  105320. * ]}
  105321. * ]);
  105322. * ```
  105323. */
  105324. resetConfig(config) {
  105325. validateConfig(config);
  105326. this.config = config.map(standardizeConfig);
  105327. this.navigated = false;
  105328. this.lastSuccessfulId = -1;
  105329. }
  105330. /** @nodoc */
  105331. ngOnDestroy() {
  105332. this.dispose();
  105333. }
  105334. /** Disposes of the router. */
  105335. dispose() {
  105336. if (this.locationSubscription) {
  105337. this.locationSubscription.unsubscribe();
  105338. this.locationSubscription = undefined;
  105339. }
  105340. }
  105341. /**
  105342. * Appends URL segments to the current URL tree to create a new URL tree.
  105343. *
  105344. * @param commands An array of URL fragments with which to construct the new URL tree.
  105345. * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
  105346. * segments, followed by the parameters for each segment.
  105347. * The fragments are applied to the current URL tree or the one provided in the `relativeTo`
  105348. * property of the options object, if supplied.
  105349. * @param navigationExtras Options that control the navigation strategy.
  105350. * @returns The new URL tree.
  105351. *
  105352. * @usageNotes
  105353. *
  105354. * ```
  105355. * // create /team/33/user/11
  105356. * router.createUrlTree(['/team', 33, 'user', 11]);
  105357. *
  105358. * // create /team/33;expand=true/user/11
  105359. * router.createUrlTree(['/team', 33, {expand: true}, 'user', 11]);
  105360. *
  105361. * // you can collapse static segments like this (this works only with the first passed-in value):
  105362. * router.createUrlTree(['/team/33/user', userId]);
  105363. *
  105364. * // If the first segment can contain slashes, and you do not want the router to split it,
  105365. * // you can do the following:
  105366. * router.createUrlTree([{segmentPath: '/one/two'}]);
  105367. *
  105368. * // create /team/33/(user/11//right:chat)
  105369. * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: 'chat'}}]);
  105370. *
  105371. * // remove the right secondary node
  105372. * router.createUrlTree(['/team', 33, {outlets: {primary: 'user/11', right: null}}]);
  105373. *
  105374. * // assuming the current url is `/team/33/user/11` and the route points to `user/11`
  105375. *
  105376. * // navigate to /team/33/user/11/details
  105377. * router.createUrlTree(['details'], {relativeTo: route});
  105378. *
  105379. * // navigate to /team/33/user/22
  105380. * router.createUrlTree(['../22'], {relativeTo: route});
  105381. *
  105382. * // navigate to /team/44/user/22
  105383. * router.createUrlTree(['../../team/44/user/22'], {relativeTo: route});
  105384. * ```
  105385. */
  105386. createUrlTree(commands, navigationExtras = {}) {
  105387. const { relativeTo, queryParams, fragment, queryParamsHandling, preserveFragment } = navigationExtras;
  105388. const a = relativeTo || this.routerState.root;
  105389. const f = preserveFragment ? this.currentUrlTree.fragment : fragment;
  105390. let q = null;
  105391. switch (queryParamsHandling) {
  105392. case 'merge':
  105393. q = Object.assign(Object.assign({}, this.currentUrlTree.queryParams), queryParams);
  105394. break;
  105395. case 'preserve':
  105396. q = this.currentUrlTree.queryParams;
  105397. break;
  105398. default:
  105399. q = queryParams || null;
  105400. }
  105401. if (q !== null) {
  105402. q = this.removeEmptyProps(q);
  105403. }
  105404. return createUrlTree(a, this.currentUrlTree, commands, q, f);
  105405. }
  105406. /**
  105407. * Navigates to a view using an absolute route path.
  105408. *
  105409. * @param url An absolute path for a defined route. The function does not apply any delta to the
  105410. * current URL.
  105411. * @param extras An object containing properties that modify the navigation strategy.
  105412. *
  105413. * @returns A Promise that resolves to 'true' when navigation succeeds,
  105414. * to 'false' when navigation fails, or is rejected on error.
  105415. *
  105416. * @usageNotes
  105417. *
  105418. * The following calls request navigation to an absolute path.
  105419. *
  105420. * ```
  105421. * router.navigateByUrl("/team/33/user/11");
  105422. *
  105423. * // Navigate without updating the URL
  105424. * router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
  105425. * ```
  105426. *
  105427. * @see [Routing and Navigation guide](guide/router)
  105428. *
  105429. */
  105430. navigateByUrl(url, extras = {
  105431. skipLocationChange: false
  105432. }) {
  105433. if (typeof ngDevMode === 'undefined' ||
  105434. ngDevMode && this.isNgZoneEnabled && !_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"].isInAngularZone()) {
  105435. this.console.warn(`Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);
  105436. }
  105437. const urlTree = isUrlTree(url) ? url : this.parseUrl(url);
  105438. const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);
  105439. return this.scheduleNavigation(mergedTree, 'imperative', null, extras);
  105440. }
  105441. /**
  105442. * Navigate based on the provided array of commands and a starting point.
  105443. * If no starting route is provided, the navigation is absolute.
  105444. *
  105445. * @param commands An array of URL fragments with which to construct the target URL.
  105446. * If the path is static, can be the literal URL string. For a dynamic path, pass an array of path
  105447. * segments, followed by the parameters for each segment.
  105448. * The fragments are applied to the current URL or the one provided in the `relativeTo` property
  105449. * of the options object, if supplied.
  105450. * @param extras An options object that determines how the URL should be constructed or
  105451. * interpreted.
  105452. *
  105453. * @returns A Promise that resolves to `true` when navigation succeeds, to `false` when navigation
  105454. * fails,
  105455. * or is rejected on error.
  105456. *
  105457. * @usageNotes
  105458. *
  105459. * The following calls request navigation to a dynamic route path relative to the current URL.
  105460. *
  105461. * ```
  105462. * router.navigate(['team', 33, 'user', 11], {relativeTo: route});
  105463. *
  105464. * // Navigate without updating the URL, overriding the default behavior
  105465. * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});
  105466. * ```
  105467. *
  105468. * @see [Routing and Navigation guide](guide/router)
  105469. *
  105470. */
  105471. navigate(commands, extras = { skipLocationChange: false }) {
  105472. validateCommands(commands);
  105473. return this.navigateByUrl(this.createUrlTree(commands, extras), extras);
  105474. }
  105475. /** Serializes a `UrlTree` into a string */
  105476. serializeUrl(url) {
  105477. return this.urlSerializer.serialize(url);
  105478. }
  105479. /** Parses a string into a `UrlTree` */
  105480. parseUrl(url) {
  105481. let urlTree;
  105482. try {
  105483. urlTree = this.urlSerializer.parse(url);
  105484. }
  105485. catch (e) {
  105486. urlTree = this.malformedUriErrorHandler(e, this.urlSerializer, url);
  105487. }
  105488. return urlTree;
  105489. }
  105490. /** Returns whether the url is activated */
  105491. isActive(url, exact) {
  105492. if (isUrlTree(url)) {
  105493. return containsTree(this.currentUrlTree, url, exact);
  105494. }
  105495. const urlTree = this.parseUrl(url);
  105496. return containsTree(this.currentUrlTree, urlTree, exact);
  105497. }
  105498. removeEmptyProps(params) {
  105499. return Object.keys(params).reduce((result, key) => {
  105500. const value = params[key];
  105501. if (value !== null && value !== undefined) {
  105502. result[key] = value;
  105503. }
  105504. return result;
  105505. }, {});
  105506. }
  105507. processNavigations() {
  105508. this.navigations.subscribe(t => {
  105509. this.navigated = true;
  105510. this.lastSuccessfulId = t.id;
  105511. this.events
  105512. .next(new NavigationEnd(t.id, this.serializeUrl(t.extractedUrl), this.serializeUrl(this.currentUrlTree)));
  105513. this.lastSuccessfulNavigation = this.currentNavigation;
  105514. this.currentNavigation = null;
  105515. t.resolve(true);
  105516. }, e => {
  105517. this.console.warn(`Unhandled Navigation Error: `);
  105518. });
  105519. }
  105520. scheduleNavigation(rawUrl, source, restoredState, extras, priorPromise) {
  105521. // * Imperative navigations (router.navigate) might trigger additional navigations to the same
  105522. // URL via a popstate event and the locationChangeListener. We should skip these duplicate
  105523. // navs. Duplicates may also be triggered by attempts to sync AngularJS and Angular router
  105524. // states.
  105525. // * Imperative navigations can be cancelled by router guards, meaning the URL won't change. If
  105526. // the user follows that with a navigation using the back/forward button or manual URL change,
  105527. // the destination may be the same as the previous imperative attempt. We should not skip
  105528. // these navigations because it's a separate case from the one above -- it's not a duplicate
  105529. // navigation.
  105530. const lastNavigation = this.getTransition();
  105531. // We don't want to skip duplicate successful navs if they're imperative because
  105532. // onSameUrlNavigation could be 'reload' (so the duplicate is intended).
  105533. const browserNavPrecededByRouterNav = source !== 'imperative' && (lastNavigation === null || lastNavigation === void 0 ? void 0 : lastNavigation.source) === 'imperative';
  105534. const lastNavigationSucceeded = this.lastSuccessfulId === lastNavigation.id;
  105535. // If the last navigation succeeded or is in flight, we can use the rawUrl as the comparison.
  105536. // However, if it failed, we should compare to the final result (urlAfterRedirects).
  105537. const lastNavigationUrl = (lastNavigationSucceeded || this.currentNavigation) ?
  105538. lastNavigation.rawUrl :
  105539. lastNavigation.urlAfterRedirects;
  105540. const duplicateNav = lastNavigationUrl.toString() === rawUrl.toString();
  105541. if (browserNavPrecededByRouterNav && duplicateNav) {
  105542. return Promise.resolve(true); // return value is not used
  105543. }
  105544. let resolve;
  105545. let reject;
  105546. let promise;
  105547. if (priorPromise) {
  105548. resolve = priorPromise.resolve;
  105549. reject = priorPromise.reject;
  105550. promise = priorPromise.promise;
  105551. }
  105552. else {
  105553. promise = new Promise((res, rej) => {
  105554. resolve = res;
  105555. reject = rej;
  105556. });
  105557. }
  105558. const id = ++this.navigationId;
  105559. this.setTransition({
  105560. id,
  105561. source,
  105562. restoredState,
  105563. currentUrlTree: this.currentUrlTree,
  105564. currentRawUrl: this.rawUrlTree,
  105565. rawUrl,
  105566. extras,
  105567. resolve,
  105568. reject,
  105569. promise,
  105570. currentSnapshot: this.routerState.snapshot,
  105571. currentRouterState: this.routerState
  105572. });
  105573. // Make sure that the error is propagated even though `processNavigations` catch
  105574. // handler does not rethrow
  105575. return promise.catch((e) => {
  105576. return Promise.reject(e);
  105577. });
  105578. }
  105579. setBrowserUrl(url, replaceUrl, id, state) {
  105580. const path = this.urlSerializer.serialize(url);
  105581. state = state || {};
  105582. if (this.location.isCurrentPathEqualTo(path) || replaceUrl) {
  105583. // TODO(jasonaden): Remove first `navigationId` and rely on `ng` namespace.
  105584. this.location.replaceState(path, '', Object.assign(Object.assign({}, state), { navigationId: id }));
  105585. }
  105586. else {
  105587. this.location.go(path, '', Object.assign(Object.assign({}, state), { navigationId: id }));
  105588. }
  105589. }
  105590. resetStateAndUrl(storedState, storedUrl, rawUrl) {
  105591. this.routerState = storedState;
  105592. this.currentUrlTree = storedUrl;
  105593. this.rawUrlTree = this.urlHandlingStrategy.merge(this.currentUrlTree, rawUrl);
  105594. this.resetUrlToCurrentUrlTree();
  105595. }
  105596. resetUrlToCurrentUrlTree() {
  105597. this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree), '', { navigationId: this.lastSuccessfulId });
  105598. }
  105599. }
  105600. Router.ɵfac = function Router_Factory(t) { return new (t || Router)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Type"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](UrlSerializer), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](ChildrenOutletContexts), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](undefined)); };
  105601. Router.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: Router, factory: Router.ɵfac });
  105602. Router.ctorParameters = () => [
  105603. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Type"] },
  105604. { type: UrlSerializer },
  105605. { type: ChildrenOutletContexts },
  105606. { type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"] },
  105607. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"] },
  105608. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"] },
  105609. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"] },
  105610. { type: undefined }
  105611. ];
  105612. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](Router, [{
  105613. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  105614. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Type"] }, { type: UrlSerializer }, { type: ChildrenOutletContexts }, { type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"] }, { type: undefined }]; }, null); })();
  105615. function validateCommands(commands) {
  105616. for (let i = 0; i < commands.length; i++) {
  105617. const cmd = commands[i];
  105618. if (cmd == null) {
  105619. throw new Error(`The requested path contains ${cmd} segment at index ${i}`);
  105620. }
  105621. }
  105622. }
  105623. /**
  105624. * @license
  105625. * Copyright Google LLC All Rights Reserved.
  105626. *
  105627. * Use of this source code is governed by an MIT-style license that can be
  105628. * found in the LICENSE file at https://angular.io/license
  105629. */
  105630. /**
  105631. * @description
  105632. *
  105633. * When applied to an element in a template, makes that element a link
  105634. * that initiates navigation to a route. Navigation opens one or more routed components
  105635. * in one or more `<router-outlet>` locations on the page.
  105636. *
  105637. * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,
  105638. * the following creates a static link to the route:
  105639. * `<a routerLink="/user/bob">link to user component</a>`
  105640. *
  105641. * You can use dynamic values to generate the link.
  105642. * For a dynamic link, pass an array of path segments,
  105643. * followed by the params for each segment.
  105644. * For example, `['/team', teamId, 'user', userName, {details: true}]`
  105645. * generates a link to `/team/11/user/bob;details=true`.
  105646. *
  105647. * Multiple static segments can be merged into one term and combined with dynamic segements.
  105648. * For example, `['/team/11/user', userName, {details: true}]`
  105649. *
  105650. * The input that you provide to the link is treated as a delta to the current URL.
  105651. * For instance, suppose the current URL is `/user/(box//aux:team)`.
  105652. * The link `<a [routerLink]="['/user/jim']">Jim</a>` creates the URL
  105653. * `/user/(jim//aux:team)`.
  105654. * See {@link Router#createUrlTree createUrlTree} for more information.
  105655. *
  105656. * @usageNotes
  105657. *
  105658. * You can use absolute or relative paths in a link, set query parameters,
  105659. * control how parameters are handled, and keep a history of navigation states.
  105660. *
  105661. * ### Relative link paths
  105662. *
  105663. * The first segment name can be prepended with `/`, `./`, or `../`.
  105664. * * If the first segment begins with `/`, the router looks up the route from the root of the
  105665. * app.
  105666. * * If the first segment begins with `./`, or doesn't begin with a slash, the router
  105667. * looks in the children of the current activated route.
  105668. * * If the first segment begins with `../`, the router goes up one level in the route tree.
  105669. *
  105670. * ### Setting and handling query params and fragments
  105671. *
  105672. * The following link adds a query parameter and a fragment to the generated URL:
  105673. *
  105674. * ```
  105675. * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
  105676. * link to user component
  105677. * </a>
  105678. * ```
  105679. * By default, the directive constructs the new URL using the given query parameters.
  105680. * The example generates the link: `/user/bob?debug=true#education`.
  105681. *
  105682. * You can instruct the directive to handle query parameters differently
  105683. * by specifying the `queryParamsHandling` option in the link.
  105684. * Allowed values are:
  105685. *
  105686. * - `'merge'`: Merge the given `queryParams` into the current query params.
  105687. * - `'preserve'`: Preserve the current query params.
  105688. *
  105689. * For example:
  105690. *
  105691. * ```
  105692. * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" queryParamsHandling="merge">
  105693. * link to user component
  105694. * </a>
  105695. * ```
  105696. *
  105697. * See {@link UrlCreationOptions.queryParamsHandling UrlCreationOptions#queryParamsHandling}.
  105698. *
  105699. * ### Preserving navigation history
  105700. *
  105701. * You can provide a `state` value to be persisted to the browser's
  105702. * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).
  105703. * For example:
  105704. *
  105705. * ```
  105706. * <a [routerLink]="['/user/bob']" [state]="{tracingId: 123}">
  105707. * link to user component
  105708. * </a>
  105709. * ```
  105710. *
  105711. * Use {@link Router.getCurrentNavigation() Router#getCurrentNavigation} to retrieve a saved
  105712. * navigation-state value. For example, to capture the `tracingId` during the `NavigationStart`
  105713. * event:
  105714. *
  105715. * ```
  105716. * // Get NavigationStart events
  105717. * router.events.pipe(filter(e => e instanceof NavigationStart)).subscribe(e => {
  105718. * const navigation = router.getCurrentNavigation();
  105719. * tracingService.trace({id: navigation.extras.state.tracingId});
  105720. * });
  105721. * ```
  105722. *
  105723. * @ngModule RouterModule
  105724. *
  105725. * @publicApi
  105726. */
  105727. class RouterLink {
  105728. constructor(router, route, tabIndex, renderer, el) {
  105729. this.router = router;
  105730. this.route = route;
  105731. this.commands = [];
  105732. /** @internal */
  105733. this.onChanges = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  105734. if (tabIndex == null) {
  105735. renderer.setAttribute(el.nativeElement, 'tabindex', '0');
  105736. }
  105737. }
  105738. /** @nodoc */
  105739. ngOnChanges(changes) {
  105740. // This is subscribed to by `RouterLinkActive` so that it knows to update when there are changes
  105741. // to the RouterLinks it's tracking.
  105742. this.onChanges.next(this);
  105743. }
  105744. /**
  105745. * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
  105746. * - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
  105747. * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
  105748. * - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
  105749. * @see {@link Router#createUrlTree Router#createUrlTree}
  105750. */
  105751. set routerLink(commands) {
  105752. if (commands != null) {
  105753. this.commands = Array.isArray(commands) ? commands : [commands];
  105754. }
  105755. else {
  105756. this.commands = [];
  105757. }
  105758. }
  105759. /** @nodoc */
  105760. onClick() {
  105761. const extras = {
  105762. skipLocationChange: attrBoolValue(this.skipLocationChange),
  105763. replaceUrl: attrBoolValue(this.replaceUrl),
  105764. state: this.state,
  105765. };
  105766. this.router.navigateByUrl(this.urlTree, extras);
  105767. return true;
  105768. }
  105769. get urlTree() {
  105770. return this.router.createUrlTree(this.commands, {
  105771. relativeTo: this.route,
  105772. queryParams: this.queryParams,
  105773. fragment: this.fragment,
  105774. queryParamsHandling: this.queryParamsHandling,
  105775. preserveFragment: attrBoolValue(this.preserveFragment),
  105776. });
  105777. }
  105778. }
  105779. RouterLink.ɵfac = function RouterLink_Factory(t) { return new (t || RouterLink)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]('tabindex'), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"])); };
  105780. RouterLink.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: RouterLink, selectors: [["", "routerLink", "", 5, "a", 5, "area"]], hostBindings: function RouterLink_HostBindings(rf, ctx) { if (rf & 1) {
  105781. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function RouterLink_click_HostBindingHandler() { return ctx.onClick(); });
  105782. } }, inputs: { routerLink: "routerLink", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", preserveFragment: "preserveFragment", skipLocationChange: "skipLocationChange", replaceUrl: "replaceUrl", state: "state" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]] });
  105783. RouterLink.ctorParameters = () => [
  105784. { type: Router },
  105785. { type: ActivatedRoute },
  105786. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"], args: ['tabindex',] }] },
  105787. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"] },
  105788. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }
  105789. ];
  105790. RouterLink.propDecorators = {
  105791. queryParams: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105792. fragment: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105793. queryParamsHandling: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105794. preserveFragment: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105795. skipLocationChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105796. replaceUrl: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105797. state: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105798. routerLink: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105799. onClick: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"], args: ['click',] }]
  105800. };
  105801. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterLink, [{
  105802. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
  105803. args: [{ selector: ':not(a):not(area)[routerLink]' }]
  105804. }], function () { return [{ type: Router }, { type: ActivatedRoute }, { type: String, decorators: [{
  105805. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
  105806. args: ['tabindex']
  105807. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }]; }, { routerLink: [{
  105808. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105809. }],
  105810. /** @nodoc */
  105811. onClick: [{
  105812. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
  105813. args: ['click']
  105814. }], queryParams: [{
  105815. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105816. }], fragment: [{
  105817. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105818. }], queryParamsHandling: [{
  105819. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105820. }], preserveFragment: [{
  105821. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105822. }], skipLocationChange: [{
  105823. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105824. }], replaceUrl: [{
  105825. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105826. }], state: [{
  105827. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105828. }] }); })();
  105829. /**
  105830. * @description
  105831. *
  105832. * Lets you link to specific routes in your app.
  105833. *
  105834. * See `RouterLink` for more information.
  105835. *
  105836. * @ngModule RouterModule
  105837. *
  105838. * @publicApi
  105839. */
  105840. class RouterLinkWithHref {
  105841. constructor(router, route, locationStrategy) {
  105842. this.router = router;
  105843. this.route = route;
  105844. this.locationStrategy = locationStrategy;
  105845. this.commands = [];
  105846. /** @internal */
  105847. this.onChanges = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  105848. this.subscription = router.events.subscribe((s) => {
  105849. if (s instanceof NavigationEnd) {
  105850. this.updateTargetUrlAndHref();
  105851. }
  105852. });
  105853. }
  105854. /**
  105855. * Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
  105856. * - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
  105857. * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
  105858. * - **null|undefined**: shorthand for an empty array of commands, i.e. `[]`
  105859. * @see {@link Router#createUrlTree Router#createUrlTree}
  105860. */
  105861. set routerLink(commands) {
  105862. if (commands != null) {
  105863. this.commands = Array.isArray(commands) ? commands : [commands];
  105864. }
  105865. else {
  105866. this.commands = [];
  105867. }
  105868. }
  105869. /** @nodoc */
  105870. ngOnChanges(changes) {
  105871. this.updateTargetUrlAndHref();
  105872. this.onChanges.next(this);
  105873. }
  105874. /** @nodoc */
  105875. ngOnDestroy() {
  105876. this.subscription.unsubscribe();
  105877. }
  105878. /** @nodoc */
  105879. onClick(button, ctrlKey, shiftKey, altKey, metaKey) {
  105880. if (button !== 0 || ctrlKey || shiftKey || altKey || metaKey) {
  105881. return true;
  105882. }
  105883. if (typeof this.target === 'string' && this.target != '_self') {
  105884. return true;
  105885. }
  105886. const extras = {
  105887. skipLocationChange: attrBoolValue(this.skipLocationChange),
  105888. replaceUrl: attrBoolValue(this.replaceUrl),
  105889. state: this.state
  105890. };
  105891. this.router.navigateByUrl(this.urlTree, extras);
  105892. return false;
  105893. }
  105894. updateTargetUrlAndHref() {
  105895. this.href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree));
  105896. }
  105897. get urlTree() {
  105898. return this.router.createUrlTree(this.commands, {
  105899. relativeTo: this.route,
  105900. queryParams: this.queryParams,
  105901. fragment: this.fragment,
  105902. queryParamsHandling: this.queryParamsHandling,
  105903. preserveFragment: attrBoolValue(this.preserveFragment),
  105904. });
  105905. }
  105906. }
  105907. RouterLinkWithHref.ɵfac = function RouterLinkWithHref_Factory(t) { return new (t || RouterLinkWithHref)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["LocationStrategy"])); };
  105908. RouterLinkWithHref.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: RouterLinkWithHref, selectors: [["a", "routerLink", ""], ["area", "routerLink", ""]], hostVars: 2, hostBindings: function RouterLinkWithHref_HostBindings(rf, ctx) { if (rf & 1) {
  105909. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function RouterLinkWithHref_click_HostBindingHandler($event) { return ctx.onClick($event.button, $event.ctrlKey, $event.shiftKey, $event.altKey, $event.metaKey); });
  105910. } if (rf & 2) {
  105911. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵhostProperty"]("href", ctx.href, _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsanitizeUrl"]);
  105912. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵattribute"]("target", ctx.target);
  105913. } }, inputs: { routerLink: "routerLink", target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", preserveFragment: "preserveFragment", skipLocationChange: "skipLocationChange", replaceUrl: "replaceUrl", state: "state" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]] });
  105914. RouterLinkWithHref.ctorParameters = () => [
  105915. { type: Router },
  105916. { type: ActivatedRoute },
  105917. { type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["LocationStrategy"] }
  105918. ];
  105919. RouterLinkWithHref.propDecorators = {
  105920. target: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostBinding"], args: ['attr.target',] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105921. queryParams: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105922. fragment: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105923. queryParamsHandling: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105924. preserveFragment: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105925. skipLocationChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105926. replaceUrl: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105927. state: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105928. href: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostBinding"] }],
  105929. routerLink: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  105930. onClick: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"], args: ['click',
  105931. ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey'],] }]
  105932. };
  105933. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterLinkWithHref, [{
  105934. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
  105935. args: [{ selector: 'a[routerLink],area[routerLink]' }]
  105936. }], function () { return [{ type: Router }, { type: ActivatedRoute }, { type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["LocationStrategy"] }]; }, { routerLink: [{
  105937. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105938. }],
  105939. /** @nodoc */
  105940. onClick: [{
  105941. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostListener"],
  105942. args: ['click',
  105943. ['$event.button', '$event.ctrlKey', '$event.shiftKey', '$event.altKey', '$event.metaKey']]
  105944. }], href: [{
  105945. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostBinding"]
  105946. }], target: [{
  105947. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["HostBinding"],
  105948. args: ['attr.target']
  105949. }, {
  105950. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105951. }], queryParams: [{
  105952. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105953. }], fragment: [{
  105954. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105955. }], queryParamsHandling: [{
  105956. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105957. }], preserveFragment: [{
  105958. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105959. }], skipLocationChange: [{
  105960. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105961. }], replaceUrl: [{
  105962. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105963. }], state: [{
  105964. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  105965. }] }); })();
  105966. function attrBoolValue(s) {
  105967. return s === '' || !!s;
  105968. }
  105969. /**
  105970. * @license
  105971. * Copyright Google LLC All Rights Reserved.
  105972. *
  105973. * Use of this source code is governed by an MIT-style license that can be
  105974. * found in the LICENSE file at https://angular.io/license
  105975. */
  105976. /**
  105977. *
  105978. * @description
  105979. *
  105980. * Tracks whether the linked route of an element is currently active, and allows you
  105981. * to specify one or more CSS classes to add to the element when the linked route
  105982. * is active.
  105983. *
  105984. * Use this directive to create a visual distinction for elements associated with an active route.
  105985. * For example, the following code highlights the word "Bob" when the the router
  105986. * activates the associated route:
  105987. *
  105988. * ```
  105989. * <a routerLink="/user/bob" routerLinkActive="active-link">Bob</a>
  105990. * ```
  105991. *
  105992. * Whenever the URL is either '/user' or '/user/bob', the "active-link" class is
  105993. * added to the anchor tag. If the URL changes, the class is removed.
  105994. *
  105995. * You can set more than one class using a space-separated string or an array.
  105996. * For example:
  105997. *
  105998. * ```
  105999. * <a routerLink="/user/bob" routerLinkActive="class1 class2">Bob</a>
  106000. * <a routerLink="/user/bob" [routerLinkActive]="['class1', 'class2']">Bob</a>
  106001. * ```
  106002. *
  106003. * To add the classes only when the URL matches the link exactly, add the option `exact: true`:
  106004. *
  106005. * ```
  106006. * <a routerLink="/user/bob" routerLinkActive="active-link" [routerLinkActiveOptions]="{exact:
  106007. * true}">Bob</a>
  106008. * ```
  106009. *
  106010. * To directly check the `isActive` status of the link, assign the `RouterLinkActive`
  106011. * instance to a template variable.
  106012. * For example, the following checks the status without assigning any CSS classes:
  106013. *
  106014. * ```
  106015. * <a routerLink="/user/bob" routerLinkActive #rla="routerLinkActive">
  106016. * Bob {{ rla.isActive ? '(already open)' : ''}}
  106017. * </a>
  106018. * ```
  106019. *
  106020. * You can apply the `RouterLinkActive` directive to an ancestor of linked elements.
  106021. * For example, the following sets the active-link class on the `<div>` parent tag
  106022. * when the URL is either '/user/jim' or '/user/bob'.
  106023. *
  106024. * ```
  106025. * <div routerLinkActive="active-link" [routerLinkActiveOptions]="{exact: true}">
  106026. * <a routerLink="/user/jim">Jim</a>
  106027. * <a routerLink="/user/bob">Bob</a>
  106028. * </div>
  106029. * ```
  106030. *
  106031. * @ngModule RouterModule
  106032. *
  106033. * @publicApi
  106034. */
  106035. class RouterLinkActive {
  106036. constructor(router, element, renderer, cdr, link, linkWithHref) {
  106037. this.router = router;
  106038. this.element = element;
  106039. this.renderer = renderer;
  106040. this.cdr = cdr;
  106041. this.link = link;
  106042. this.linkWithHref = linkWithHref;
  106043. this.classes = [];
  106044. this.isActive = false;
  106045. this.routerLinkActiveOptions = { exact: false };
  106046. this.routerEventsSubscription = router.events.subscribe((s) => {
  106047. if (s instanceof NavigationEnd) {
  106048. this.update();
  106049. }
  106050. });
  106051. }
  106052. /** @nodoc */
  106053. ngAfterContentInit() {
  106054. // `of(null)` is used to force subscribe body to execute once immediately (like `startWith`).
  106055. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])([this.links.changes, this.linksWithHrefs.changes, Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null)])
  106056. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeAll"])())
  106057. .subscribe(_ => {
  106058. this.update();
  106059. this.subscribeToEachLinkOnChanges();
  106060. });
  106061. }
  106062. subscribeToEachLinkOnChanges() {
  106063. var _a;
  106064. (_a = this.linkInputChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
  106065. const allLinkChanges = [...this.links.toArray(), ...this.linksWithHrefs.toArray(), this.link, this.linkWithHref]
  106066. .filter((link) => !!link)
  106067. .map(link => link.onChanges);
  106068. this.linkInputChangesSubscription = Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(allLinkChanges).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeAll"])()).subscribe(link => {
  106069. if (this.isActive !== this.isLinkActive(this.router)(link)) {
  106070. this.update();
  106071. }
  106072. });
  106073. }
  106074. set routerLinkActive(data) {
  106075. const classes = Array.isArray(data) ? data : data.split(' ');
  106076. this.classes = classes.filter(c => !!c);
  106077. }
  106078. /** @nodoc */
  106079. ngOnChanges(changes) {
  106080. this.update();
  106081. }
  106082. /** @nodoc */
  106083. ngOnDestroy() {
  106084. var _a;
  106085. this.routerEventsSubscription.unsubscribe();
  106086. (_a = this.linkInputChangesSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
  106087. }
  106088. update() {
  106089. if (!this.links || !this.linksWithHrefs || !this.router.navigated)
  106090. return;
  106091. Promise.resolve().then(() => {
  106092. const hasActiveLinks = this.hasActiveLinks();
  106093. if (this.isActive !== hasActiveLinks) {
  106094. this.isActive = hasActiveLinks;
  106095. this.cdr.markForCheck();
  106096. this.classes.forEach((c) => {
  106097. if (hasActiveLinks) {
  106098. this.renderer.addClass(this.element.nativeElement, c);
  106099. }
  106100. else {
  106101. this.renderer.removeClass(this.element.nativeElement, c);
  106102. }
  106103. });
  106104. }
  106105. });
  106106. }
  106107. isLinkActive(router) {
  106108. return (link) => router.isActive(link.urlTree, this.routerLinkActiveOptions.exact);
  106109. }
  106110. hasActiveLinks() {
  106111. const isActiveCheckFn = this.isLinkActive(this.router);
  106112. return this.link && isActiveCheckFn(this.link) ||
  106113. this.linkWithHref && isActiveCheckFn(this.linkWithHref) ||
  106114. this.links.some(isActiveCheckFn) || this.linksWithHrefs.some(isActiveCheckFn);
  106115. }
  106116. }
  106117. RouterLinkActive.ɵfac = function RouterLinkActive_Factory(t) { return new (t || RouterLinkActive)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](RouterLink, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](RouterLinkWithHref, 8)); };
  106118. RouterLinkActive.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: RouterLinkActive, selectors: [["", "routerLinkActive", ""]], contentQueries: function RouterLinkActive_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
  106119. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, RouterLink, true);
  106120. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵcontentQuery"](dirIndex, RouterLinkWithHref, true);
  106121. } if (rf & 2) {
  106122. let _t;
  106123. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.links = _t);
  106124. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx.linksWithHrefs = _t);
  106125. } }, inputs: { routerLinkActiveOptions: "routerLinkActiveOptions", routerLinkActive: "routerLinkActive" }, exportAs: ["routerLinkActive"], features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]] });
  106126. RouterLinkActive.ctorParameters = () => [
  106127. { type: Router },
  106128. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] },
  106129. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"] },
  106130. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] },
  106131. { type: RouterLink, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }] },
  106132. { type: RouterLinkWithHref, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }] }
  106133. ];
  106134. RouterLinkActive.propDecorators = {
  106135. links: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"], args: [RouterLink, { descendants: true },] }],
  106136. linksWithHrefs: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"], args: [RouterLinkWithHref, { descendants: true },] }],
  106137. routerLinkActiveOptions: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  106138. routerLinkActive: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }]
  106139. };
  106140. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterLinkActive, [{
  106141. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
  106142. args: [{
  106143. selector: '[routerLinkActive]',
  106144. exportAs: 'routerLinkActive'
  106145. }]
  106146. }], function () { return [{ type: Router }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Renderer2"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: RouterLink, decorators: [{
  106147. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  106148. }] }, { type: RouterLinkWithHref, decorators: [{
  106149. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  106150. }] }]; }, { routerLinkActiveOptions: [{
  106151. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  106152. }], routerLinkActive: [{
  106153. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  106154. }], links: [{
  106155. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
  106156. args: [RouterLink, { descendants: true }]
  106157. }], linksWithHrefs: [{
  106158. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ContentChildren"],
  106159. args: [RouterLinkWithHref, { descendants: true }]
  106160. }] }); })();
  106161. /**
  106162. * @license
  106163. * Copyright Google LLC All Rights Reserved.
  106164. *
  106165. * Use of this source code is governed by an MIT-style license that can be
  106166. * found in the LICENSE file at https://angular.io/license
  106167. */
  106168. /**
  106169. * @description
  106170. *
  106171. * Acts as a placeholder that Angular dynamically fills based on the current router state.
  106172. *
  106173. * Each outlet can have a unique name, determined by the optional `name` attribute.
  106174. * The name cannot be set or changed dynamically. If not set, default value is "primary".
  106175. *
  106176. * ```
  106177. * <router-outlet></router-outlet>
  106178. * <router-outlet name='left'></router-outlet>
  106179. * <router-outlet name='right'></router-outlet>
  106180. * ```
  106181. *
  106182. * Named outlets can be the targets of secondary routes.
  106183. * The `Route` object for a secondary route has an `outlet` property to identify the target outlet:
  106184. *
  106185. * `{path: <base-path>, component: <component>, outlet: <target_outlet_name>}`
  106186. *
  106187. * Using named outlets and secondary routes, you can target multiple outlets in
  106188. * the same `RouterLink` directive.
  106189. *
  106190. * The router keeps track of separate branches in a navigation tree for each named outlet and
  106191. * generates a representation of that tree in the URL.
  106192. * The URL for a secondary route uses the following syntax to specify both the primary and secondary
  106193. * routes at the same time:
  106194. *
  106195. * `http://base-path/primary-route-path(outlet-name:route-path)`
  106196. *
  106197. * A router outlet emits an activate event when a new component is instantiated,
  106198. * and a deactivate event when a component is destroyed.
  106199. *
  106200. * ```
  106201. * <router-outlet
  106202. * (activate)='onActivate($event)'
  106203. * (deactivate)='onDeactivate($event)'></router-outlet>
  106204. * ```
  106205. *
  106206. * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets "Example of a named
  106207. * outlet and secondary route configuration").
  106208. * @see `RouterLink`
  106209. * @see `Route`
  106210. * @ngModule RouterModule
  106211. *
  106212. * @publicApi
  106213. */
  106214. class RouterOutlet {
  106215. constructor(parentContexts, location, resolver, name, changeDetector) {
  106216. this.parentContexts = parentContexts;
  106217. this.location = location;
  106218. this.resolver = resolver;
  106219. this.changeDetector = changeDetector;
  106220. this.activated = null;
  106221. this._activatedRoute = null;
  106222. this.activateEvents = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
  106223. this.deactivateEvents = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["EventEmitter"]();
  106224. this.name = name || PRIMARY_OUTLET;
  106225. parentContexts.onChildOutletCreated(this.name, this);
  106226. }
  106227. /** @nodoc */
  106228. ngOnDestroy() {
  106229. this.parentContexts.onChildOutletDestroyed(this.name);
  106230. }
  106231. /** @nodoc */
  106232. ngOnInit() {
  106233. if (!this.activated) {
  106234. // If the outlet was not instantiated at the time the route got activated we need to populate
  106235. // the outlet when it is initialized (ie inside a NgIf)
  106236. const context = this.parentContexts.getContext(this.name);
  106237. if (context && context.route) {
  106238. if (context.attachRef) {
  106239. // `attachRef` is populated when there is an existing component to mount
  106240. this.attach(context.attachRef, context.route);
  106241. }
  106242. else {
  106243. // otherwise the component defined in the configuration is created
  106244. this.activateWith(context.route, context.resolver || null);
  106245. }
  106246. }
  106247. }
  106248. }
  106249. get isActivated() {
  106250. return !!this.activated;
  106251. }
  106252. get component() {
  106253. if (!this.activated)
  106254. throw new Error('Outlet is not activated');
  106255. return this.activated.instance;
  106256. }
  106257. get activatedRoute() {
  106258. if (!this.activated)
  106259. throw new Error('Outlet is not activated');
  106260. return this._activatedRoute;
  106261. }
  106262. get activatedRouteData() {
  106263. if (this._activatedRoute) {
  106264. return this._activatedRoute.snapshot.data;
  106265. }
  106266. return {};
  106267. }
  106268. /**
  106269. * Called when the `RouteReuseStrategy` instructs to detach the subtree
  106270. */
  106271. detach() {
  106272. if (!this.activated)
  106273. throw new Error('Outlet is not activated');
  106274. this.location.detach();
  106275. const cmp = this.activated;
  106276. this.activated = null;
  106277. this._activatedRoute = null;
  106278. return cmp;
  106279. }
  106280. /**
  106281. * Called when the `RouteReuseStrategy` instructs to re-attach a previously detached subtree
  106282. */
  106283. attach(ref, activatedRoute) {
  106284. this.activated = ref;
  106285. this._activatedRoute = activatedRoute;
  106286. this.location.insert(ref.hostView);
  106287. }
  106288. deactivate() {
  106289. if (this.activated) {
  106290. const c = this.component;
  106291. this.activated.destroy();
  106292. this.activated = null;
  106293. this._activatedRoute = null;
  106294. this.deactivateEvents.emit(c);
  106295. }
  106296. }
  106297. activateWith(activatedRoute, resolver) {
  106298. if (this.isActivated) {
  106299. throw new Error('Cannot activate an already activated outlet');
  106300. }
  106301. this._activatedRoute = activatedRoute;
  106302. const snapshot = activatedRoute._futureSnapshot;
  106303. const component = snapshot.routeConfig.component;
  106304. resolver = resolver || this.resolver;
  106305. const factory = resolver.resolveComponentFactory(component);
  106306. const childContexts = this.parentContexts.getOrCreateContext(this.name).children;
  106307. const injector = new OutletInjector(activatedRoute, childContexts, this.location.injector);
  106308. this.activated = this.location.createComponent(factory, this.location.length, injector);
  106309. // Calling `markForCheck` to make sure we will run the change detection when the
  106310. // `RouterOutlet` is inside a `ChangeDetectionStrategy.OnPush` component.
  106311. this.changeDetector.markForCheck();
  106312. this.activateEvents.emit(this.activated.instance);
  106313. }
  106314. }
  106315. RouterOutlet.ɵfac = function RouterOutlet_Factory(t) { return new (t || RouterOutlet)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ChildrenOutletContexts), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinjectAttribute"]('name'), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"])); };
  106316. RouterOutlet.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: RouterOutlet, selectors: [["router-outlet"]], outputs: { activateEvents: "activate", deactivateEvents: "deactivate" }, exportAs: ["outlet"] });
  106317. RouterOutlet.ctorParameters = () => [
  106318. { type: ChildrenOutletContexts },
  106319. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"] },
  106320. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"] },
  106321. { type: String, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"], args: ['name',] }] },
  106322. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }
  106323. ];
  106324. RouterOutlet.propDecorators = {
  106325. activateEvents: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"], args: ['activate',] }],
  106326. deactivateEvents: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"], args: ['deactivate',] }]
  106327. };
  106328. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterOutlet, [{
  106329. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
  106330. args: [{ selector: 'router-outlet', exportAs: 'outlet' }]
  106331. }], function () { return [{ type: ChildrenOutletContexts }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ComponentFactoryResolver"] }, { type: String, decorators: [{
  106332. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Attribute"],
  106333. args: ['name']
  106334. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }]; }, { activateEvents: [{
  106335. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
  106336. args: ['activate']
  106337. }], deactivateEvents: [{
  106338. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"],
  106339. args: ['deactivate']
  106340. }] }); })();
  106341. class OutletInjector {
  106342. constructor(route, childContexts, parent) {
  106343. this.route = route;
  106344. this.childContexts = childContexts;
  106345. this.parent = parent;
  106346. }
  106347. get(token, notFoundValue) {
  106348. if (token === ActivatedRoute) {
  106349. return this.route;
  106350. }
  106351. if (token === ChildrenOutletContexts) {
  106352. return this.childContexts;
  106353. }
  106354. return this.parent.get(token, notFoundValue);
  106355. }
  106356. }
  106357. /**
  106358. * @license
  106359. * Copyright Google LLC All Rights Reserved.
  106360. *
  106361. * Use of this source code is governed by an MIT-style license that can be
  106362. * found in the LICENSE file at https://angular.io/license
  106363. */
  106364. /**
  106365. * @description
  106366. *
  106367. * Provides a preloading strategy.
  106368. *
  106369. * @publicApi
  106370. */
  106371. class PreloadingStrategy {
  106372. }
  106373. /**
  106374. * @description
  106375. *
  106376. * Provides a preloading strategy that preloads all modules as quickly as possible.
  106377. *
  106378. * ```
  106379. * RouterModule.forRoot(ROUTES, {preloadingStrategy: PreloadAllModules})
  106380. * ```
  106381. *
  106382. * @publicApi
  106383. */
  106384. class PreloadAllModules {
  106385. preload(route, fn) {
  106386. return fn().pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["catchError"])(() => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null)));
  106387. }
  106388. }
  106389. /**
  106390. * @description
  106391. *
  106392. * Provides a preloading strategy that does not preload any modules.
  106393. *
  106394. * This strategy is enabled by default.
  106395. *
  106396. * @publicApi
  106397. */
  106398. class NoPreloading {
  106399. preload(route, fn) {
  106400. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
  106401. }
  106402. }
  106403. /**
  106404. * The preloader optimistically loads all router configurations to
  106405. * make navigations into lazily-loaded sections of the application faster.
  106406. *
  106407. * The preloader runs in the background. When the router bootstraps, the preloader
  106408. * starts listening to all navigation events. After every such event, the preloader
  106409. * will check if any configurations can be loaded lazily.
  106410. *
  106411. * If a route is protected by `canLoad` guards, the preloaded will not load it.
  106412. *
  106413. * @publicApi
  106414. */
  106415. class RouterPreloader {
  106416. constructor(router, moduleLoader, compiler, injector, preloadingStrategy) {
  106417. this.router = router;
  106418. this.injector = injector;
  106419. this.preloadingStrategy = preloadingStrategy;
  106420. const onStartLoad = (r) => router.triggerEvent(new RouteConfigLoadStart(r));
  106421. const onEndLoad = (r) => router.triggerEvent(new RouteConfigLoadEnd(r));
  106422. this.loader = new RouterConfigLoader(moduleLoader, compiler, onStartLoad, onEndLoad);
  106423. }
  106424. setUpPreloading() {
  106425. this.subscription =
  106426. this.router.events
  106427. .pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])((e) => e instanceof NavigationEnd), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["concatMap"])(() => this.preload()))
  106428. .subscribe(() => { });
  106429. }
  106430. preload() {
  106431. const ngModule = this.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleRef"]);
  106432. return this.processRoutes(ngModule, this.router.config);
  106433. }
  106434. /** @nodoc */
  106435. ngOnDestroy() {
  106436. if (this.subscription) {
  106437. this.subscription.unsubscribe();
  106438. }
  106439. }
  106440. processRoutes(ngModule, routes) {
  106441. const res = [];
  106442. for (const route of routes) {
  106443. // we already have the config loaded, just recurse
  106444. if (route.loadChildren && !route.canLoad && route._loadedConfig) {
  106445. const childConfig = route._loadedConfig;
  106446. res.push(this.processRoutes(childConfig.module, childConfig.routes));
  106447. // no config loaded, fetch the config
  106448. }
  106449. else if (route.loadChildren && !route.canLoad) {
  106450. res.push(this.preloadConfig(ngModule, route));
  106451. // recurse into children
  106452. }
  106453. else if (route.children) {
  106454. res.push(this.processRoutes(ngModule, route.children));
  106455. }
  106456. }
  106457. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["from"])(res).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeAll"])(), Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["map"])((_) => void 0));
  106458. }
  106459. preloadConfig(ngModule, route) {
  106460. return this.preloadingStrategy.preload(route, () => {
  106461. const loaded$ = this.loader.load(ngModule.injector, route);
  106462. return loaded$.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["mergeMap"])((config) => {
  106463. route._loadedConfig = config;
  106464. return this.processRoutes(config.module, config.routes);
  106465. }));
  106466. });
  106467. }
  106468. }
  106469. RouterPreloader.ɵfac = function RouterPreloader_Factory(t) { return new (t || RouterPreloader)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](PreloadingStrategy)); };
  106470. RouterPreloader.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: RouterPreloader, factory: RouterPreloader.ɵfac });
  106471. RouterPreloader.ctorParameters = () => [
  106472. { type: Router },
  106473. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"] },
  106474. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"] },
  106475. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"] },
  106476. { type: PreloadingStrategy }
  106477. ];
  106478. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterPreloader, [{
  106479. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  106480. }], function () { return [{ type: Router }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"] }, { type: PreloadingStrategy }]; }, null); })();
  106481. /**
  106482. * @license
  106483. * Copyright Google LLC All Rights Reserved.
  106484. *
  106485. * Use of this source code is governed by an MIT-style license that can be
  106486. * found in the LICENSE file at https://angular.io/license
  106487. */
  106488. class RouterScroller {
  106489. constructor(router,
  106490. /** @docsNotRequired */ viewportScroller, options = {}) {
  106491. this.router = router;
  106492. this.viewportScroller = viewportScroller;
  106493. this.options = options;
  106494. this.lastId = 0;
  106495. this.lastSource = 'imperative';
  106496. this.restoredId = 0;
  106497. this.store = {};
  106498. // Default both options to 'disabled'
  106499. options.scrollPositionRestoration = options.scrollPositionRestoration || 'disabled';
  106500. options.anchorScrolling = options.anchorScrolling || 'disabled';
  106501. }
  106502. init() {
  106503. // we want to disable the automatic scrolling because having two places
  106504. // responsible for scrolling results race conditions, especially given
  106505. // that browser don't implement this behavior consistently
  106506. if (this.options.scrollPositionRestoration !== 'disabled') {
  106507. this.viewportScroller.setHistoryScrollRestoration('manual');
  106508. }
  106509. this.routerEventsSubscription = this.createScrollEvents();
  106510. this.scrollEventsSubscription = this.consumeScrollEvents();
  106511. }
  106512. createScrollEvents() {
  106513. return this.router.events.subscribe(e => {
  106514. if (e instanceof NavigationStart) {
  106515. // store the scroll position of the current stable navigations.
  106516. this.store[this.lastId] = this.viewportScroller.getScrollPosition();
  106517. this.lastSource = e.navigationTrigger;
  106518. this.restoredId = e.restoredState ? e.restoredState.navigationId : 0;
  106519. }
  106520. else if (e instanceof NavigationEnd) {
  106521. this.lastId = e.id;
  106522. this.scheduleScrollEvent(e, this.router.parseUrl(e.urlAfterRedirects).fragment);
  106523. }
  106524. });
  106525. }
  106526. consumeScrollEvents() {
  106527. return this.router.events.subscribe(e => {
  106528. if (!(e instanceof Scroll))
  106529. return;
  106530. // a popstate event. The pop state event will always ignore anchor scrolling.
  106531. if (e.position) {
  106532. if (this.options.scrollPositionRestoration === 'top') {
  106533. this.viewportScroller.scrollToPosition([0, 0]);
  106534. }
  106535. else if (this.options.scrollPositionRestoration === 'enabled') {
  106536. this.viewportScroller.scrollToPosition(e.position);
  106537. }
  106538. // imperative navigation "forward"
  106539. }
  106540. else {
  106541. if (e.anchor && this.options.anchorScrolling === 'enabled') {
  106542. this.viewportScroller.scrollToAnchor(e.anchor);
  106543. }
  106544. else if (this.options.scrollPositionRestoration !== 'disabled') {
  106545. this.viewportScroller.scrollToPosition([0, 0]);
  106546. }
  106547. }
  106548. });
  106549. }
  106550. scheduleScrollEvent(routerEvent, anchor) {
  106551. this.router.triggerEvent(new Scroll(routerEvent, this.lastSource === 'popstate' ? this.store[this.restoredId] : null, anchor));
  106552. }
  106553. /** @nodoc */
  106554. ngOnDestroy() {
  106555. if (this.routerEventsSubscription) {
  106556. this.routerEventsSubscription.unsubscribe();
  106557. }
  106558. if (this.scrollEventsSubscription) {
  106559. this.scrollEventsSubscription.unsubscribe();
  106560. }
  106561. }
  106562. }
  106563. RouterScroller.ɵfac = function RouterScroller_Factory(t) { return new (t || RouterScroller)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](Router), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["ViewportScroller"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](undefined)); };
  106564. RouterScroller.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: RouterScroller, factory: RouterScroller.ɵfac });
  106565. RouterScroller.ctorParameters = () => [
  106566. { type: Router },
  106567. { type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["ViewportScroller"] },
  106568. { type: undefined }
  106569. ];
  106570. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterScroller, [{
  106571. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  106572. }], function () { return [{ type: Router }, { type: _angular_common__WEBPACK_IMPORTED_MODULE_0__["ViewportScroller"] }, { type: undefined }]; }, null); })();
  106573. /**
  106574. * @license
  106575. * Copyright Google LLC All Rights Reserved.
  106576. *
  106577. * Use of this source code is governed by an MIT-style license that can be
  106578. * found in the LICENSE file at https://angular.io/license
  106579. */
  106580. /**
  106581. * The directives defined in the `RouterModule`.
  106582. */
  106583. const ROUTER_DIRECTIVES = [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent];
  106584. /**
  106585. * A [DI token](guide/glossary/#di-token) for the router service.
  106586. *
  106587. * @publicApi
  106588. */
  106589. const ROUTER_CONFIGURATION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('ROUTER_CONFIGURATION');
  106590. /**
  106591. * @docsNotRequired
  106592. */
  106593. const ROUTER_FORROOT_GUARD = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('ROUTER_FORROOT_GUARD');
  106594. const ɵ0 = { enableTracing: false };
  106595. const ROUTER_PROVIDERS = [
  106596. _angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"],
  106597. { provide: UrlSerializer, useClass: DefaultUrlSerializer },
  106598. {
  106599. provide: Router,
  106600. useFactory: setupRouter,
  106601. deps: [
  106602. UrlSerializer, ChildrenOutletContexts, _angular_common__WEBPACK_IMPORTED_MODULE_0__["Location"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"], _angular_core__WEBPACK_IMPORTED_MODULE_1__["Compiler"],
  106603. ROUTES, ROUTER_CONFIGURATION, [UrlHandlingStrategy, new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]()],
  106604. [RouteReuseStrategy, new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]()]
  106605. ]
  106606. },
  106607. ChildrenOutletContexts,
  106608. { provide: ActivatedRoute, useFactory: rootRoute, deps: [Router] },
  106609. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModuleFactoryLoader"], useClass: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SystemJsNgModuleLoader"] },
  106610. RouterPreloader,
  106611. NoPreloading,
  106612. PreloadAllModules,
  106613. { provide: ROUTER_CONFIGURATION, useValue: ɵ0 },
  106614. ];
  106615. function routerNgProbeToken() {
  106616. return new _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgProbeToken"]('Router', Router);
  106617. }
  106618. /**
  106619. * @description
  106620. *
  106621. * Adds directives and providers for in-app navigation among views defined in an application.
  106622. * Use the Angular `Router` service to declaratively specify application states and manage state
  106623. * transitions.
  106624. *
  106625. * You can import this NgModule multiple times, once for each lazy-loaded bundle.
  106626. * However, only one `Router` service can be active.
  106627. * To ensure this, there are two ways to register routes when importing this module:
  106628. *
  106629. * * The `forRoot()` method creates an `NgModule` that contains all the directives, the given
  106630. * routes, and the `Router` service itself.
  106631. * * The `forChild()` method creates an `NgModule` that contains all the directives and the given
  106632. * routes, but does not include the `Router` service.
  106633. *
  106634. * @see [Routing and Navigation guide](guide/router) for an
  106635. * overview of how the `Router` service should be used.
  106636. *
  106637. * @publicApi
  106638. */
  106639. class RouterModule {
  106640. // Note: We are injecting the Router so it gets created eagerly...
  106641. constructor(guard, router) { }
  106642. /**
  106643. * Creates and configures a module with all the router providers and directives.
  106644. * Optionally sets up an application listener to perform an initial navigation.
  106645. *
  106646. * When registering the NgModule at the root, import as follows:
  106647. *
  106648. * ```
  106649. * @NgModule({
  106650. * imports: [RouterModule.forRoot(ROUTES)]
  106651. * })
  106652. * class MyNgModule {}
  106653. * ```
  106654. *
  106655. * @param routes An array of `Route` objects that define the navigation paths for the application.
  106656. * @param config An `ExtraOptions` configuration object that controls how navigation is performed.
  106657. * @return The new `NgModule`.
  106658. *
  106659. */
  106660. static forRoot(routes, config) {
  106661. return {
  106662. ngModule: RouterModule,
  106663. providers: [
  106664. ROUTER_PROVIDERS,
  106665. provideRoutes(routes),
  106666. {
  106667. provide: ROUTER_FORROOT_GUARD,
  106668. useFactory: provideForRootGuard,
  106669. deps: [[Router, new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"](), new _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"]()]]
  106670. },
  106671. { provide: ROUTER_CONFIGURATION, useValue: config ? config : {} },
  106672. {
  106673. provide: _angular_common__WEBPACK_IMPORTED_MODULE_0__["LocationStrategy"],
  106674. useFactory: provideLocationStrategy,
  106675. deps: [_angular_common__WEBPACK_IMPORTED_MODULE_0__["PlatformLocation"], [new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"](_angular_common__WEBPACK_IMPORTED_MODULE_0__["APP_BASE_HREF"]), new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]()], ROUTER_CONFIGURATION]
  106676. },
  106677. {
  106678. provide: RouterScroller,
  106679. useFactory: createRouterScroller,
  106680. deps: [Router, _angular_common__WEBPACK_IMPORTED_MODULE_0__["ViewportScroller"], ROUTER_CONFIGURATION]
  106681. },
  106682. {
  106683. provide: PreloadingStrategy,
  106684. useExisting: config && config.preloadingStrategy ? config.preloadingStrategy :
  106685. NoPreloading
  106686. },
  106687. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgProbeToken"], multi: true, useFactory: routerNgProbeToken },
  106688. provideRouterInitializer(),
  106689. ],
  106690. };
  106691. }
  106692. /**
  106693. * Creates a module with all the router directives and a provider registering routes,
  106694. * without creating a new Router service.
  106695. * When registering for submodules and lazy-loaded submodules, create the NgModule as follows:
  106696. *
  106697. * ```
  106698. * @NgModule({
  106699. * imports: [RouterModule.forChild(ROUTES)]
  106700. * })
  106701. * class MyNgModule {}
  106702. * ```
  106703. *
  106704. * @param routes An array of `Route` objects that define the navigation paths for the submodule.
  106705. * @return The new NgModule.
  106706. *
  106707. */
  106708. static forChild(routes) {
  106709. return { ngModule: RouterModule, providers: [provideRoutes(routes)] };
  106710. }
  106711. }
  106712. RouterModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: RouterModule });
  106713. RouterModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function RouterModule_Factory(t) { return new (t || RouterModule)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](ROUTER_FORROOT_GUARD, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](Router, 8)); } });
  106714. RouterModule.ctorParameters = () => [
  106715. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [ROUTER_FORROOT_GUARD,] }] },
  106716. { type: Router, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }] }
  106717. ];
  106718. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](RouterModule, { declarations: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkWithHref, RouterLinkActive, ɵEmptyOutletComponent] }); })();
  106719. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterModule, [{
  106720. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
  106721. args: [{
  106722. declarations: ROUTER_DIRECTIVES,
  106723. exports: ROUTER_DIRECTIVES,
  106724. entryComponents: [ɵEmptyOutletComponent]
  106725. }]
  106726. }], function () { return [{ type: undefined, decorators: [{
  106727. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  106728. }, {
  106729. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  106730. args: [ROUTER_FORROOT_GUARD]
  106731. }] }, { type: Router, decorators: [{
  106732. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  106733. }] }]; }, null); })();
  106734. function createRouterScroller(router, viewportScroller, config) {
  106735. if (config.scrollOffset) {
  106736. viewportScroller.setOffset(config.scrollOffset);
  106737. }
  106738. return new RouterScroller(router, viewportScroller, config);
  106739. }
  106740. function provideLocationStrategy(platformLocationStrategy, baseHref, options = {}) {
  106741. return options.useHash ? new _angular_common__WEBPACK_IMPORTED_MODULE_0__["HashLocationStrategy"](platformLocationStrategy, baseHref) :
  106742. new _angular_common__WEBPACK_IMPORTED_MODULE_0__["PathLocationStrategy"](platformLocationStrategy, baseHref);
  106743. }
  106744. function provideForRootGuard(router) {
  106745. if ((typeof ngDevMode === 'undefined' || ngDevMode) && router) {
  106746. throw new Error(`RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.`);
  106747. }
  106748. return 'guarded';
  106749. }
  106750. /**
  106751. * Registers a [DI provider](guide/glossary#provider) for a set of routes.
  106752. * @param routes The route configuration to provide.
  106753. *
  106754. * @usageNotes
  106755. *
  106756. * ```
  106757. * @NgModule({
  106758. * imports: [RouterModule.forChild(ROUTES)],
  106759. * providers: [provideRoutes(EXTRA_ROUTES)]
  106760. * })
  106761. * class MyNgModule {}
  106762. * ```
  106763. *
  106764. * @publicApi
  106765. */
  106766. function provideRoutes(routes) {
  106767. return [
  106768. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ANALYZE_FOR_ENTRY_COMPONENTS"], multi: true, useValue: routes },
  106769. { provide: ROUTES, multi: true, useValue: routes },
  106770. ];
  106771. }
  106772. function setupRouter(urlSerializer, contexts, location, injector, loader, compiler, config, opts = {}, urlHandlingStrategy, routeReuseStrategy) {
  106773. const router = new Router(null, urlSerializer, contexts, location, injector, loader, compiler, flatten(config));
  106774. if (urlHandlingStrategy) {
  106775. router.urlHandlingStrategy = urlHandlingStrategy;
  106776. }
  106777. if (routeReuseStrategy) {
  106778. router.routeReuseStrategy = routeReuseStrategy;
  106779. }
  106780. assignExtraOptionsToRouter(opts, router);
  106781. if (opts.enableTracing) {
  106782. const dom = Object(_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵgetDOM"])();
  106783. router.events.subscribe((e) => {
  106784. dom.logGroup(`Router Event: ${e.constructor.name}`);
  106785. dom.log(e.toString());
  106786. dom.log(e);
  106787. dom.logGroupEnd();
  106788. });
  106789. }
  106790. return router;
  106791. }
  106792. function assignExtraOptionsToRouter(opts, router) {
  106793. if (opts.errorHandler) {
  106794. router.errorHandler = opts.errorHandler;
  106795. }
  106796. if (opts.malformedUriErrorHandler) {
  106797. router.malformedUriErrorHandler = opts.malformedUriErrorHandler;
  106798. }
  106799. if (opts.onSameUrlNavigation) {
  106800. router.onSameUrlNavigation = opts.onSameUrlNavigation;
  106801. }
  106802. if (opts.paramsInheritanceStrategy) {
  106803. router.paramsInheritanceStrategy = opts.paramsInheritanceStrategy;
  106804. }
  106805. if (opts.relativeLinkResolution) {
  106806. router.relativeLinkResolution = opts.relativeLinkResolution;
  106807. }
  106808. if (opts.urlUpdateStrategy) {
  106809. router.urlUpdateStrategy = opts.urlUpdateStrategy;
  106810. }
  106811. }
  106812. function rootRoute(router) {
  106813. return router.routerState.root;
  106814. }
  106815. /**
  106816. * Router initialization requires two steps:
  106817. *
  106818. * First, we start the navigation in a `APP_INITIALIZER` to block the bootstrap if
  106819. * a resolver or a guard executes asynchronously.
  106820. *
  106821. * Next, we actually run activation in a `BOOTSTRAP_LISTENER`, using the
  106822. * `afterPreactivation` hook provided by the router.
  106823. * The router navigation starts, reaches the point when preactivation is done, and then
  106824. * pauses. It waits for the hook to be resolved. We then resolve it only in a bootstrap listener.
  106825. */
  106826. class RouterInitializer {
  106827. constructor(injector) {
  106828. this.injector = injector;
  106829. this.initNavigation = false;
  106830. this.resultOfPreactivationDone = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  106831. }
  106832. appInitializer() {
  106833. const p = this.injector.get(_angular_common__WEBPACK_IMPORTED_MODULE_0__["LOCATION_INITIALIZED"], Promise.resolve(null));
  106834. return p.then(() => {
  106835. let resolve = null;
  106836. const res = new Promise(r => resolve = r);
  106837. const router = this.injector.get(Router);
  106838. const opts = this.injector.get(ROUTER_CONFIGURATION);
  106839. if (opts.initialNavigation === 'disabled') {
  106840. router.setUpLocationChangeListener();
  106841. resolve(true);
  106842. }
  106843. else if (
  106844. // TODO: enabled is deprecated as of v11, can be removed in v13
  106845. opts.initialNavigation === 'enabled' || opts.initialNavigation === 'enabledBlocking') {
  106846. router.hooks.afterPreactivation = () => {
  106847. // only the initial navigation should be delayed
  106848. if (!this.initNavigation) {
  106849. this.initNavigation = true;
  106850. resolve(true);
  106851. return this.resultOfPreactivationDone;
  106852. // subsequent navigations should not be delayed
  106853. }
  106854. else {
  106855. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])(null);
  106856. }
  106857. };
  106858. router.initialNavigation();
  106859. }
  106860. else {
  106861. resolve(true);
  106862. }
  106863. return res;
  106864. });
  106865. }
  106866. bootstrapListener(bootstrappedComponentRef) {
  106867. const opts = this.injector.get(ROUTER_CONFIGURATION);
  106868. const preloader = this.injector.get(RouterPreloader);
  106869. const routerScroller = this.injector.get(RouterScroller);
  106870. const router = this.injector.get(Router);
  106871. const ref = this.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ApplicationRef"]);
  106872. if (bootstrappedComponentRef !== ref.components[0]) {
  106873. return;
  106874. }
  106875. // Default case
  106876. if (opts.initialNavigation === 'enabledNonBlocking' || opts.initialNavigation === undefined) {
  106877. router.initialNavigation();
  106878. }
  106879. preloader.setUpPreloading();
  106880. routerScroller.init();
  106881. router.resetRootComponentType(ref.componentTypes[0]);
  106882. this.resultOfPreactivationDone.next(null);
  106883. this.resultOfPreactivationDone.complete();
  106884. }
  106885. }
  106886. RouterInitializer.ɵfac = function RouterInitializer_Factory(t) { return new (t || RouterInitializer)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"])); };
  106887. RouterInitializer.ɵprov = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"]({ token: RouterInitializer, factory: RouterInitializer.ɵfac });
  106888. RouterInitializer.ctorParameters = () => [
  106889. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"] }
  106890. ];
  106891. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](RouterInitializer, [{
  106892. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"]
  106893. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injector"] }]; }, null); })();
  106894. function getAppInitializer(r) {
  106895. return r.appInitializer.bind(r);
  106896. }
  106897. function getBootstrapListener(r) {
  106898. return r.bootstrapListener.bind(r);
  106899. }
  106900. /**
  106901. * A [DI token](guide/glossary/#di-token) for the router initializer that
  106902. * is called after the app is bootstrapped.
  106903. *
  106904. * @publicApi
  106905. */
  106906. const ROUTER_INITIALIZER = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('Router Initializer');
  106907. function provideRouterInitializer() {
  106908. return [
  106909. RouterInitializer,
  106910. {
  106911. provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_INITIALIZER"],
  106912. multi: true,
  106913. useFactory: getAppInitializer,
  106914. deps: [RouterInitializer]
  106915. },
  106916. { provide: ROUTER_INITIALIZER, useFactory: getBootstrapListener, deps: [RouterInitializer] },
  106917. { provide: _angular_core__WEBPACK_IMPORTED_MODULE_1__["APP_BOOTSTRAP_LISTENER"], multi: true, useExisting: ROUTER_INITIALIZER },
  106918. ];
  106919. }
  106920. /**
  106921. * @license
  106922. * Copyright Google LLC All Rights Reserved.
  106923. *
  106924. * Use of this source code is governed by an MIT-style license that can be
  106925. * found in the LICENSE file at https://angular.io/license
  106926. */
  106927. /**
  106928. * @publicApi
  106929. */
  106930. const VERSION = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["Version"]('11.0.4');
  106931. /**
  106932. * @license
  106933. * Copyright Google LLC All Rights Reserved.
  106934. *
  106935. * Use of this source code is governed by an MIT-style license that can be
  106936. * found in the LICENSE file at https://angular.io/license
  106937. */
  106938. /**
  106939. * @license
  106940. * Copyright Google LLC All Rights Reserved.
  106941. *
  106942. * Use of this source code is governed by an MIT-style license that can be
  106943. * found in the LICENSE file at https://angular.io/license
  106944. */
  106945. /**
  106946. * @license
  106947. * Copyright Google LLC All Rights Reserved.
  106948. *
  106949. * Use of this source code is governed by an MIT-style license that can be
  106950. * found in the LICENSE file at https://angular.io/license
  106951. */
  106952. // This file only reexports content of the `src` folder. Keep it that way.
  106953. /**
  106954. * @license
  106955. * Copyright Google LLC All Rights Reserved.
  106956. *
  106957. * Use of this source code is governed by an MIT-style license that can be
  106958. * found in the LICENSE file at https://angular.io/license
  106959. */
  106960. /**
  106961. * Generated bundle index. Do not edit.
  106962. */
  106963. //# sourceMappingURL=router.js.map
  106964. /***/ }),
  106965. /***/ "uTdr":
  106966. /*!****************************************************************************!*\
  106967. !*** ./node_modules/rxjs/_esm2015/internal/operators/onErrorResumeNext.js ***!
  106968. \****************************************************************************/
  106969. /*! exports provided: onErrorResumeNext, onErrorResumeNextStatic */
  106970. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  106971. "use strict";
  106972. __webpack_require__.r(__webpack_exports__);
  106973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNext", function() { return onErrorResumeNext; });
  106974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "onErrorResumeNextStatic", function() { return onErrorResumeNextStatic; });
  106975. /* harmony import */ var _observable_from__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../observable/from */ "Cfvw");
  106976. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  106977. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  106978. /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv");
  106979. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  106980. function onErrorResumeNext(...nextSources) {
  106981. if (nextSources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(nextSources[0])) {
  106982. nextSources = nextSources[0];
  106983. }
  106984. return (source) => source.lift(new OnErrorResumeNextOperator(nextSources));
  106985. }
  106986. function onErrorResumeNextStatic(...nextSources) {
  106987. let source = null;
  106988. if (nextSources.length === 1 && Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(nextSources[0])) {
  106989. nextSources = nextSources[0];
  106990. }
  106991. source = nextSources.shift();
  106992. return Object(_observable_from__WEBPACK_IMPORTED_MODULE_0__["from"])(source, null).lift(new OnErrorResumeNextOperator(nextSources));
  106993. }
  106994. class OnErrorResumeNextOperator {
  106995. constructor(nextSources) {
  106996. this.nextSources = nextSources;
  106997. }
  106998. call(subscriber, source) {
  106999. return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources));
  107000. }
  107001. }
  107002. class OnErrorResumeNextSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_2__["OuterSubscriber"] {
  107003. constructor(destination, nextSources) {
  107004. super(destination);
  107005. this.destination = destination;
  107006. this.nextSources = nextSources;
  107007. }
  107008. notifyError(error, innerSub) {
  107009. this.subscribeToNextSource();
  107010. }
  107011. notifyComplete(innerSub) {
  107012. this.subscribeToNextSource();
  107013. }
  107014. _error(err) {
  107015. this.subscribeToNextSource();
  107016. this.unsubscribe();
  107017. }
  107018. _complete() {
  107019. this.subscribeToNextSource();
  107020. this.unsubscribe();
  107021. }
  107022. subscribeToNextSource() {
  107023. const next = this.nextSources.shift();
  107024. if (!!next) {
  107025. const innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_3__["InnerSubscriber"](this, undefined, undefined);
  107026. const destination = this.destination;
  107027. destination.add(innerSubscriber);
  107028. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_4__["subscribeToResult"])(this, next, undefined, undefined, innerSubscriber);
  107029. if (innerSubscription !== innerSubscriber) {
  107030. destination.add(innerSubscription);
  107031. }
  107032. }
  107033. else {
  107034. this.destination.complete();
  107035. }
  107036. }
  107037. }
  107038. //# sourceMappingURL=onErrorResumeNext.js.map
  107039. /***/ }),
  107040. /***/ "un/a":
  107041. /*!****************************************************************!*\
  107042. !*** ./node_modules/rxjs/_esm2015/internal/operators/retry.js ***!
  107043. \****************************************************************/
  107044. /*! exports provided: retry */
  107045. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  107046. "use strict";
  107047. __webpack_require__.r(__webpack_exports__);
  107048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "retry", function() { return retry; });
  107049. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  107050. function retry(count = -1) {
  107051. return (source) => source.lift(new RetryOperator(count, source));
  107052. }
  107053. class RetryOperator {
  107054. constructor(count, source) {
  107055. this.count = count;
  107056. this.source = source;
  107057. }
  107058. call(subscriber, source) {
  107059. return source.subscribe(new RetrySubscriber(subscriber, this.count, this.source));
  107060. }
  107061. }
  107062. class RetrySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  107063. constructor(destination, count, source) {
  107064. super(destination);
  107065. this.count = count;
  107066. this.source = source;
  107067. }
  107068. error(err) {
  107069. if (!this.isStopped) {
  107070. const { source, count } = this;
  107071. if (count === 0) {
  107072. return super.error(err);
  107073. }
  107074. else if (count > -1) {
  107075. this.count = count - 1;
  107076. }
  107077. source.subscribe(this._unsubscribeAndRecycle());
  107078. }
  107079. }
  107080. }
  107081. //# sourceMappingURL=retry.js.map
  107082. /***/ }),
  107083. /***/ "vkgz":
  107084. /*!**************************************************************!*\
  107085. !*** ./node_modules/rxjs/_esm2015/internal/operators/tap.js ***!
  107086. \**************************************************************/
  107087. /*! exports provided: tap */
  107088. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  107089. "use strict";
  107090. __webpack_require__.r(__webpack_exports__);
  107091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tap", function() { return tap; });
  107092. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  107093. /* harmony import */ var _util_noop__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/noop */ "KqfI");
  107094. /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isFunction */ "n6bG");
  107095. function tap(nextOrObserver, error, complete) {
  107096. return function tapOperatorFunction(source) {
  107097. return source.lift(new DoOperator(nextOrObserver, error, complete));
  107098. };
  107099. }
  107100. class DoOperator {
  107101. constructor(nextOrObserver, error, complete) {
  107102. this.nextOrObserver = nextOrObserver;
  107103. this.error = error;
  107104. this.complete = complete;
  107105. }
  107106. call(subscriber, source) {
  107107. return source.subscribe(new TapSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));
  107108. }
  107109. }
  107110. class TapSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  107111. constructor(destination, observerOrNext, error, complete) {
  107112. super(destination);
  107113. this._tapNext = _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
  107114. this._tapError = _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
  107115. this._tapComplete = _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
  107116. this._tapError = error || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
  107117. this._tapComplete = complete || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
  107118. if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(observerOrNext)) {
  107119. this._context = this;
  107120. this._tapNext = observerOrNext;
  107121. }
  107122. else if (observerOrNext) {
  107123. this._context = observerOrNext;
  107124. this._tapNext = observerOrNext.next || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
  107125. this._tapError = observerOrNext.error || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
  107126. this._tapComplete = observerOrNext.complete || _util_noop__WEBPACK_IMPORTED_MODULE_1__["noop"];
  107127. }
  107128. }
  107129. _next(value) {
  107130. try {
  107131. this._tapNext.call(this._context, value);
  107132. }
  107133. catch (err) {
  107134. this.destination.error(err);
  107135. return;
  107136. }
  107137. this.destination.next(value);
  107138. }
  107139. _error(err) {
  107140. try {
  107141. this._tapError.call(this._context, err);
  107142. }
  107143. catch (err) {
  107144. this.destination.error(err);
  107145. return;
  107146. }
  107147. this.destination.error(err);
  107148. }
  107149. _complete() {
  107150. try {
  107151. this._tapComplete.call(this._context);
  107152. }
  107153. catch (err) {
  107154. this.destination.error(err);
  107155. return;
  107156. }
  107157. return this.destination.complete();
  107158. }
  107159. }
  107160. //# sourceMappingURL=tap.js.map
  107161. /***/ }),
  107162. /***/ "vqkR":
  107163. /*!********************************************************************!*\
  107164. !*** ./node_modules/rxjs/_esm2015/internal/operators/skipUntil.js ***!
  107165. \********************************************************************/
  107166. /*! exports provided: skipUntil */
  107167. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  107168. "use strict";
  107169. __webpack_require__.r(__webpack_exports__);
  107170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skipUntil", function() { return skipUntil; });
  107171. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  107172. /* harmony import */ var _InnerSubscriber__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../InnerSubscriber */ "51Dv");
  107173. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  107174. function skipUntil(notifier) {
  107175. return (source) => source.lift(new SkipUntilOperator(notifier));
  107176. }
  107177. class SkipUntilOperator {
  107178. constructor(notifier) {
  107179. this.notifier = notifier;
  107180. }
  107181. call(destination, source) {
  107182. return source.subscribe(new SkipUntilSubscriber(destination, this.notifier));
  107183. }
  107184. }
  107185. class SkipUntilSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  107186. constructor(destination, notifier) {
  107187. super(destination);
  107188. this.hasValue = false;
  107189. const innerSubscriber = new _InnerSubscriber__WEBPACK_IMPORTED_MODULE_1__["InnerSubscriber"](this, undefined, undefined);
  107190. this.add(innerSubscriber);
  107191. this.innerSubscription = innerSubscriber;
  107192. const innerSubscription = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_2__["subscribeToResult"])(this, notifier, undefined, undefined, innerSubscriber);
  107193. if (innerSubscription !== innerSubscriber) {
  107194. this.add(innerSubscription);
  107195. this.innerSubscription = innerSubscription;
  107196. }
  107197. }
  107198. _next(value) {
  107199. if (this.hasValue) {
  107200. super._next(value);
  107201. }
  107202. }
  107203. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  107204. this.hasValue = true;
  107205. if (this.innerSubscription) {
  107206. this.innerSubscription.unsubscribe();
  107207. }
  107208. }
  107209. notifyComplete() {
  107210. }
  107211. }
  107212. //# sourceMappingURL=skipUntil.js.map
  107213. /***/ }),
  107214. /***/ "vxfF":
  107215. /*!**********************************************************************!*\
  107216. !*** ./node_modules/@angular/cdk/__ivy_ngcc__/fesm2015/scrolling.js ***!
  107217. \**********************************************************************/
  107218. /*! exports provided: CdkFixedSizeVirtualScroll, CdkScrollable, CdkVirtualForOf, CdkVirtualScrollViewport, DEFAULT_RESIZE_TIME, DEFAULT_SCROLL_TIME, FixedSizeVirtualScrollStrategy, ScrollDispatcher, ScrollingModule, VIRTUAL_SCROLL_STRATEGY, ViewportRuler, _fixedSizeVirtualScrollStrategyFactory */
  107219. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  107220. "use strict";
  107221. __webpack_require__.r(__webpack_exports__);
  107222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CdkFixedSizeVirtualScroll", function() { return CdkFixedSizeVirtualScroll; });
  107223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CdkScrollable", function() { return CdkScrollable; });
  107224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CdkVirtualForOf", function() { return CdkVirtualForOf; });
  107225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CdkVirtualScrollViewport", function() { return CdkVirtualScrollViewport; });
  107226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_RESIZE_TIME", function() { return DEFAULT_RESIZE_TIME; });
  107227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_SCROLL_TIME", function() { return DEFAULT_SCROLL_TIME; });
  107228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FixedSizeVirtualScrollStrategy", function() { return FixedSizeVirtualScrollStrategy; });
  107229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScrollDispatcher", function() { return ScrollDispatcher; });
  107230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ScrollingModule", function() { return ScrollingModule; });
  107231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VIRTUAL_SCROLL_STRATEGY", function() { return VIRTUAL_SCROLL_STRATEGY; });
  107232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ViewportRuler", function() { return ViewportRuler; });
  107233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "_fixedSizeVirtualScrollStrategyFactory", function() { return _fixedSizeVirtualScrollStrategyFactory; });
  107234. /* harmony import */ var _angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/cdk/coercion */ "8LU1");
  107235. /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "fXoL");
  107236. /* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "qCKp");
  107237. /* harmony import */ var rxjs_operators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/operators */ "kU1M");
  107238. /* harmony import */ var _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/cdk/platform */ "nLfN");
  107239. /* harmony import */ var _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/cdk/bidi */ "cH1L");
  107240. /* harmony import */ var _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/cdk/collections */ "0EQZ");
  107241. /**
  107242. * @fileoverview added by tsickle
  107243. * Generated from: src/cdk/scrolling/virtual-scroll-strategy.ts
  107244. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  107245. */
  107246. /**
  107247. * The injection token used to specify the virtual scrolling strategy.
  107248. * @type {?}
  107249. */
  107250. const _c0 = ["contentWrapper"];
  107251. const _c1 = ["*"];
  107252. const VIRTUAL_SCROLL_STRATEGY = new _angular_core__WEBPACK_IMPORTED_MODULE_1__["InjectionToken"]('VIRTUAL_SCROLL_STRATEGY');
  107253. /**
  107254. * A strategy that dictates which items should be rendered in the viewport.
  107255. * @record
  107256. */
  107257. function VirtualScrollStrategy() { }
  107258. if (false) {}
  107259. /**
  107260. * @fileoverview added by tsickle
  107261. * Generated from: src/cdk/scrolling/fixed-size-virtual-scroll.ts
  107262. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  107263. */
  107264. /**
  107265. * Virtual scrolling strategy for lists with items of known fixed size.
  107266. */
  107267. class FixedSizeVirtualScrollStrategy {
  107268. /**
  107269. * @param {?} itemSize The size of the items in the virtually scrolling list.
  107270. * @param {?} minBufferPx The minimum amount of buffer (in pixels) before needing to render more
  107271. * @param {?} maxBufferPx The amount of buffer (in pixels) to render when rendering more.
  107272. */
  107273. constructor(itemSize, minBufferPx, maxBufferPx) {
  107274. this._scrolledIndexChange = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  107275. /**
  107276. * \@docs-private Implemented as part of VirtualScrollStrategy.
  107277. */
  107278. this.scrolledIndexChange = this._scrolledIndexChange.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["distinctUntilChanged"])());
  107279. /**
  107280. * The attached viewport.
  107281. */
  107282. this._viewport = null;
  107283. this._itemSize = itemSize;
  107284. this._minBufferPx = minBufferPx;
  107285. this._maxBufferPx = maxBufferPx;
  107286. }
  107287. /**
  107288. * Attaches this scroll strategy to a viewport.
  107289. * @param {?} viewport The viewport to attach this strategy to.
  107290. * @return {?}
  107291. */
  107292. attach(viewport) {
  107293. this._viewport = viewport;
  107294. this._updateTotalContentSize();
  107295. this._updateRenderedRange();
  107296. }
  107297. /**
  107298. * Detaches this scroll strategy from the currently attached viewport.
  107299. * @return {?}
  107300. */
  107301. detach() {
  107302. this._scrolledIndexChange.complete();
  107303. this._viewport = null;
  107304. }
  107305. /**
  107306. * Update the item size and buffer size.
  107307. * @param {?} itemSize The size of the items in the virtually scrolling list.
  107308. * @param {?} minBufferPx The minimum amount of buffer (in pixels) before needing to render more
  107309. * @param {?} maxBufferPx The amount of buffer (in pixels) to render when rendering more.
  107310. * @return {?}
  107311. */
  107312. updateItemAndBufferSize(itemSize, minBufferPx, maxBufferPx) {
  107313. if (maxBufferPx < minBufferPx) {
  107314. throw Error('CDK virtual scroll: maxBufferPx must be greater than or equal to minBufferPx');
  107315. }
  107316. this._itemSize = itemSize;
  107317. this._minBufferPx = minBufferPx;
  107318. this._maxBufferPx = maxBufferPx;
  107319. this._updateTotalContentSize();
  107320. this._updateRenderedRange();
  107321. }
  107322. /**
  107323. * \@docs-private Implemented as part of VirtualScrollStrategy.
  107324. * @return {?}
  107325. */
  107326. onContentScrolled() {
  107327. this._updateRenderedRange();
  107328. }
  107329. /**
  107330. * \@docs-private Implemented as part of VirtualScrollStrategy.
  107331. * @return {?}
  107332. */
  107333. onDataLengthChanged() {
  107334. this._updateTotalContentSize();
  107335. this._updateRenderedRange();
  107336. }
  107337. /**
  107338. * \@docs-private Implemented as part of VirtualScrollStrategy.
  107339. * @return {?}
  107340. */
  107341. onContentRendered() { }
  107342. /**
  107343. * \@docs-private Implemented as part of VirtualScrollStrategy.
  107344. * @return {?}
  107345. */
  107346. onRenderedOffsetChanged() { }
  107347. /**
  107348. * Scroll to the offset for the given index.
  107349. * @param {?} index The index of the element to scroll to.
  107350. * @param {?} behavior The ScrollBehavior to use when scrolling.
  107351. * @return {?}
  107352. */
  107353. scrollToIndex(index, behavior) {
  107354. if (this._viewport) {
  107355. this._viewport.scrollToOffset(index * this._itemSize, behavior);
  107356. }
  107357. }
  107358. /**
  107359. * Update the viewport's total content size.
  107360. * @private
  107361. * @return {?}
  107362. */
  107363. _updateTotalContentSize() {
  107364. if (!this._viewport) {
  107365. return;
  107366. }
  107367. this._viewport.setTotalContentSize(this._viewport.getDataLength() * this._itemSize);
  107368. }
  107369. /**
  107370. * Update the viewport's rendered range.
  107371. * @private
  107372. * @return {?}
  107373. */
  107374. _updateRenderedRange() {
  107375. if (!this._viewport) {
  107376. return;
  107377. }
  107378. /** @type {?} */
  107379. const scrollOffset = this._viewport.measureScrollOffset();
  107380. /** @type {?} */
  107381. const firstVisibleIndex = scrollOffset / this._itemSize;
  107382. /** @type {?} */
  107383. const renderedRange = this._viewport.getRenderedRange();
  107384. /** @type {?} */
  107385. const newRange = { start: renderedRange.start, end: renderedRange.end };
  107386. /** @type {?} */
  107387. const viewportSize = this._viewport.getViewportSize();
  107388. /** @type {?} */
  107389. const dataLength = this._viewport.getDataLength();
  107390. /** @type {?} */
  107391. const startBuffer = scrollOffset - newRange.start * this._itemSize;
  107392. if (startBuffer < this._minBufferPx && newRange.start != 0) {
  107393. /** @type {?} */
  107394. const expandStart = Math.ceil((this._maxBufferPx - startBuffer) / this._itemSize);
  107395. newRange.start = Math.max(0, newRange.start - expandStart);
  107396. newRange.end = Math.min(dataLength, Math.ceil(firstVisibleIndex + (viewportSize + this._minBufferPx) / this._itemSize));
  107397. }
  107398. else {
  107399. /** @type {?} */
  107400. const endBuffer = newRange.end * this._itemSize - (scrollOffset + viewportSize);
  107401. if (endBuffer < this._minBufferPx && newRange.end != dataLength) {
  107402. /** @type {?} */
  107403. const expandEnd = Math.ceil((this._maxBufferPx - endBuffer) / this._itemSize);
  107404. if (expandEnd > 0) {
  107405. newRange.end = Math.min(dataLength, newRange.end + expandEnd);
  107406. newRange.start = Math.max(0, Math.floor(firstVisibleIndex - this._minBufferPx / this._itemSize));
  107407. }
  107408. }
  107409. }
  107410. this._viewport.setRenderedRange(newRange);
  107411. this._viewport.setRenderedContentOffset(this._itemSize * newRange.start);
  107412. this._scrolledIndexChange.next(Math.floor(firstVisibleIndex));
  107413. }
  107414. }
  107415. if (false) {}
  107416. /**
  107417. * Provider factory for `FixedSizeVirtualScrollStrategy` that simply extracts the already created
  107418. * `FixedSizeVirtualScrollStrategy` from the given directive.
  107419. * @param {?} fixedSizeDir The instance of `CdkFixedSizeVirtualScroll` to extract the
  107420. * `FixedSizeVirtualScrollStrategy` from.
  107421. * @return {?}
  107422. */
  107423. function _fixedSizeVirtualScrollStrategyFactory(fixedSizeDir) {
  107424. return fixedSizeDir._scrollStrategy;
  107425. }
  107426. /**
  107427. * A virtual scroll strategy that supports fixed-size items.
  107428. */
  107429. class CdkFixedSizeVirtualScroll {
  107430. constructor() {
  107431. this._itemSize = 20;
  107432. this._minBufferPx = 100;
  107433. this._maxBufferPx = 200;
  107434. /**
  107435. * The scroll strategy used by this directive.
  107436. */
  107437. this._scrollStrategy = new FixedSizeVirtualScrollStrategy(this.itemSize, this.minBufferPx, this.maxBufferPx);
  107438. }
  107439. /**
  107440. * The size of the items in the list (in pixels).
  107441. * @return {?}
  107442. */
  107443. get itemSize() { return this._itemSize; }
  107444. /**
  107445. * @param {?} value
  107446. * @return {?}
  107447. */
  107448. set itemSize(value) { this._itemSize = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value); }
  107449. /**
  107450. * The minimum amount of buffer rendered beyond the viewport (in pixels).
  107451. * If the amount of buffer dips below this number, more items will be rendered. Defaults to 100px.
  107452. * @return {?}
  107453. */
  107454. get minBufferPx() { return this._minBufferPx; }
  107455. /**
  107456. * @param {?} value
  107457. * @return {?}
  107458. */
  107459. set minBufferPx(value) { this._minBufferPx = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value); }
  107460. /**
  107461. * The number of pixels worth of buffer to render for when rendering new items. Defaults to 200px.
  107462. * @return {?}
  107463. */
  107464. get maxBufferPx() { return this._maxBufferPx; }
  107465. /**
  107466. * @param {?} value
  107467. * @return {?}
  107468. */
  107469. set maxBufferPx(value) { this._maxBufferPx = Object(_angular_cdk_coercion__WEBPACK_IMPORTED_MODULE_0__["coerceNumberProperty"])(value); }
  107470. /**
  107471. * @return {?}
  107472. */
  107473. ngOnChanges() {
  107474. this._scrollStrategy.updateItemAndBufferSize(this.itemSize, this.minBufferPx, this.maxBufferPx);
  107475. }
  107476. }
  107477. CdkFixedSizeVirtualScroll.ɵfac = function CdkFixedSizeVirtualScroll_Factory(t) { return new (t || CdkFixedSizeVirtualScroll)(); };
  107478. CdkFixedSizeVirtualScroll.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: CdkFixedSizeVirtualScroll, selectors: [["cdk-virtual-scroll-viewport", "itemSize", ""]], inputs: { itemSize: "itemSize", minBufferPx: "minBufferPx", maxBufferPx: "maxBufferPx" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
  107479. provide: VIRTUAL_SCROLL_STRATEGY,
  107480. useFactory: _fixedSizeVirtualScrollStrategyFactory,
  107481. deps: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(( /**
  107482. * @return {?}
  107483. */() => CdkFixedSizeVirtualScroll))]
  107484. }]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵNgOnChangesFeature"]] });
  107485. CdkFixedSizeVirtualScroll.propDecorators = {
  107486. itemSize: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  107487. minBufferPx: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  107488. maxBufferPx: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }]
  107489. };
  107490. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkFixedSizeVirtualScroll, [{
  107491. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
  107492. args: [{
  107493. selector: 'cdk-virtual-scroll-viewport[itemSize]',
  107494. providers: [{
  107495. provide: VIRTUAL_SCROLL_STRATEGY,
  107496. useFactory: _fixedSizeVirtualScrollStrategyFactory,
  107497. deps: [Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["forwardRef"])(( /**
  107498. * @return {?}
  107499. */() => CdkFixedSizeVirtualScroll))]
  107500. }]
  107501. }]
  107502. }], function () { return []; }, { itemSize: [{
  107503. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  107504. }], minBufferPx: [{
  107505. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  107506. }], maxBufferPx: [{
  107507. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  107508. }] }); })();
  107509. if (false) {}
  107510. /**
  107511. * @fileoverview added by tsickle
  107512. * Generated from: src/cdk/scrolling/scroll-dispatcher.ts
  107513. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  107514. */
  107515. /**
  107516. * Time in ms to throttle the scrolling events by default.
  107517. * @type {?}
  107518. */
  107519. const DEFAULT_SCROLL_TIME = 20;
  107520. /**
  107521. * Service contained all registered Scrollable references and emits an event when any one of the
  107522. * Scrollable references emit a scrolled event.
  107523. */
  107524. class ScrollDispatcher {
  107525. /**
  107526. * @param {?} _ngZone
  107527. * @param {?} _platform
  107528. */
  107529. constructor(_ngZone, _platform) {
  107530. this._ngZone = _ngZone;
  107531. this._platform = _platform;
  107532. /**
  107533. * Subject for notifying that a registered scrollable reference element has been scrolled.
  107534. */
  107535. this._scrolled = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  107536. /**
  107537. * Keeps track of the global `scroll` and `resize` subscriptions.
  107538. */
  107539. this._globalSubscription = null;
  107540. /**
  107541. * Keeps track of the amount of subscriptions to `scrolled`. Used for cleaning up afterwards.
  107542. */
  107543. this._scrolledCount = 0;
  107544. /**
  107545. * Map of all the scrollable references that are registered with the service and their
  107546. * scroll event subscriptions.
  107547. */
  107548. this.scrollContainers = new Map();
  107549. }
  107550. /**
  107551. * Registers a scrollable instance with the service and listens for its scrolled events. When the
  107552. * scrollable is scrolled, the service emits the event to its scrolled observable.
  107553. * @param {?} scrollable Scrollable instance to be registered.
  107554. * @return {?}
  107555. */
  107556. register(scrollable) {
  107557. if (!this.scrollContainers.has(scrollable)) {
  107558. this.scrollContainers.set(scrollable, scrollable.elementScrolled()
  107559. .subscribe((/**
  107560. * @return {?}
  107561. */
  107562. () => this._scrolled.next(scrollable))));
  107563. }
  107564. }
  107565. /**
  107566. * Deregisters a Scrollable reference and unsubscribes from its scroll event observable.
  107567. * @param {?} scrollable Scrollable instance to be deregistered.
  107568. * @return {?}
  107569. */
  107570. deregister(scrollable) {
  107571. /** @type {?} */
  107572. const scrollableReference = this.scrollContainers.get(scrollable);
  107573. if (scrollableReference) {
  107574. scrollableReference.unsubscribe();
  107575. this.scrollContainers.delete(scrollable);
  107576. }
  107577. }
  107578. /**
  107579. * Returns an observable that emits an event whenever any of the registered Scrollable
  107580. * references (or window, document, or body) fire a scrolled event. Can provide a time in ms
  107581. * to override the default "throttle" time.
  107582. *
  107583. * **Note:** in order to avoid hitting change detection for every scroll event,
  107584. * all of the events emitted from this stream will be run outside the Angular zone.
  107585. * If you need to update any data bindings as a result of a scroll event, you have
  107586. * to run the callback using `NgZone.run`.
  107587. * @param {?=} auditTimeInMs
  107588. * @return {?}
  107589. */
  107590. scrolled(auditTimeInMs = DEFAULT_SCROLL_TIME) {
  107591. if (!this._platform.isBrowser) {
  107592. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])();
  107593. }
  107594. return new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((/**
  107595. * @param {?} observer
  107596. * @return {?}
  107597. */
  107598. (observer) => {
  107599. if (!this._globalSubscription) {
  107600. this._addGlobalListener();
  107601. }
  107602. // In the case of a 0ms delay, use an observable without auditTime
  107603. // since it does add a perceptible delay in processing overhead.
  107604. /** @type {?} */
  107605. const subscription = auditTimeInMs > 0 ?
  107606. this._scrolled.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["auditTime"])(auditTimeInMs)).subscribe(observer) :
  107607. this._scrolled.subscribe(observer);
  107608. this._scrolledCount++;
  107609. return (/**
  107610. * @return {?}
  107611. */
  107612. () => {
  107613. subscription.unsubscribe();
  107614. this._scrolledCount--;
  107615. if (!this._scrolledCount) {
  107616. this._removeGlobalListener();
  107617. }
  107618. });
  107619. }));
  107620. }
  107621. /**
  107622. * @return {?}
  107623. */
  107624. ngOnDestroy() {
  107625. this._removeGlobalListener();
  107626. this.scrollContainers.forEach((/**
  107627. * @param {?} _
  107628. * @param {?} container
  107629. * @return {?}
  107630. */
  107631. (_, container) => this.deregister(container)));
  107632. this._scrolled.complete();
  107633. }
  107634. /**
  107635. * Returns an observable that emits whenever any of the
  107636. * scrollable ancestors of an element are scrolled.
  107637. * @param {?} elementRef Element whose ancestors to listen for.
  107638. * @param {?=} auditTimeInMs Time to throttle the scroll events.
  107639. * @return {?}
  107640. */
  107641. ancestorScrolled(elementRef, auditTimeInMs) {
  107642. /** @type {?} */
  107643. const ancestors = this.getAncestorScrollContainers(elementRef);
  107644. return this.scrolled(auditTimeInMs).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["filter"])((/**
  107645. * @param {?} target
  107646. * @return {?}
  107647. */
  107648. target => {
  107649. return !target || ancestors.indexOf(target) > -1;
  107650. })));
  107651. }
  107652. /**
  107653. * Returns all registered Scrollables that contain the provided element.
  107654. * @param {?} elementRef
  107655. * @return {?}
  107656. */
  107657. getAncestorScrollContainers(elementRef) {
  107658. /** @type {?} */
  107659. const scrollingContainers = [];
  107660. this.scrollContainers.forEach((/**
  107661. * @param {?} _subscription
  107662. * @param {?} scrollable
  107663. * @return {?}
  107664. */
  107665. (_subscription, scrollable) => {
  107666. if (this._scrollableContainsElement(scrollable, elementRef)) {
  107667. scrollingContainers.push(scrollable);
  107668. }
  107669. }));
  107670. return scrollingContainers;
  107671. }
  107672. /**
  107673. * Returns true if the element is contained within the provided Scrollable.
  107674. * @private
  107675. * @param {?} scrollable
  107676. * @param {?} elementRef
  107677. * @return {?}
  107678. */
  107679. _scrollableContainsElement(scrollable, elementRef) {
  107680. /** @type {?} */
  107681. let element = elementRef.nativeElement;
  107682. /** @type {?} */
  107683. let scrollableElement = scrollable.getElementRef().nativeElement;
  107684. // Traverse through the element parents until we reach null, checking if any of the elements
  107685. // are the scrollable's element.
  107686. do {
  107687. if (element == scrollableElement) {
  107688. return true;
  107689. }
  107690. } while (element = (/** @type {?} */ (element)).parentElement);
  107691. return false;
  107692. }
  107693. /**
  107694. * Sets up the global scroll listeners.
  107695. * @private
  107696. * @return {?}
  107697. */
  107698. _addGlobalListener() {
  107699. this._globalSubscription = this._ngZone.runOutsideAngular((/**
  107700. * @return {?}
  107701. */
  107702. () => {
  107703. return Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(window.document, 'scroll').subscribe((/**
  107704. * @return {?}
  107705. */
  107706. () => this._scrolled.next()));
  107707. }));
  107708. }
  107709. /**
  107710. * Cleans up the global scroll listener.
  107711. * @private
  107712. * @return {?}
  107713. */
  107714. _removeGlobalListener() {
  107715. if (this._globalSubscription) {
  107716. this._globalSubscription.unsubscribe();
  107717. this._globalSubscription = null;
  107718. }
  107719. }
  107720. }
  107721. ScrollDispatcher.ɵfac = function ScrollDispatcher_Factory(t) { return new (t || ScrollDispatcher)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"])); };
  107722. /** @nocollapse */
  107723. ScrollDispatcher.ctorParameters = () => [
  107724. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] },
  107725. { type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"] }
  107726. ];
  107727. /** @nocollapse */ ScrollDispatcher.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: function ScrollDispatcher_Factory() { return new ScrollDispatcher(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"])); }, token: ScrollDispatcher, providedIn: "root" });
  107728. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ScrollDispatcher, [{
  107729. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  107730. args: [{ providedIn: 'root' }]
  107731. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }, { type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"] }]; }, null); })();
  107732. if (false) {}
  107733. /**
  107734. * @fileoverview added by tsickle
  107735. * Generated from: src/cdk/scrolling/scrollable.ts
  107736. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  107737. */
  107738. /**
  107739. * Sends an event when the directive's element is scrolled. Registers itself with the
  107740. * ScrollDispatcher service to include itself as part of its collection of scrolling events that it
  107741. * can be listened to through the service.
  107742. */
  107743. class CdkScrollable {
  107744. /**
  107745. * @param {?} elementRef
  107746. * @param {?} scrollDispatcher
  107747. * @param {?} ngZone
  107748. * @param {?=} dir
  107749. */
  107750. constructor(elementRef, scrollDispatcher, ngZone, dir) {
  107751. this.elementRef = elementRef;
  107752. this.scrollDispatcher = scrollDispatcher;
  107753. this.ngZone = ngZone;
  107754. this.dir = dir;
  107755. this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  107756. this._elementScrolled = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((/**
  107757. * @param {?} observer
  107758. * @return {?}
  107759. */
  107760. (observer) => this.ngZone.runOutsideAngular((/**
  107761. * @return {?}
  107762. */
  107763. () => Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(this.elementRef.nativeElement, 'scroll').pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroyed))
  107764. .subscribe(observer)))));
  107765. }
  107766. /**
  107767. * @return {?}
  107768. */
  107769. ngOnInit() {
  107770. this.scrollDispatcher.register(this);
  107771. }
  107772. /**
  107773. * @return {?}
  107774. */
  107775. ngOnDestroy() {
  107776. this.scrollDispatcher.deregister(this);
  107777. this._destroyed.next();
  107778. this._destroyed.complete();
  107779. }
  107780. /**
  107781. * Returns observable that emits when a scroll event is fired on the host element.
  107782. * @return {?}
  107783. */
  107784. elementScrolled() {
  107785. return this._elementScrolled;
  107786. }
  107787. /**
  107788. * Gets the ElementRef for the viewport.
  107789. * @return {?}
  107790. */
  107791. getElementRef() {
  107792. return this.elementRef;
  107793. }
  107794. /**
  107795. * Scrolls to the specified offsets. This is a normalized version of the browser's native scrollTo
  107796. * method, since browsers are not consistent about what scrollLeft means in RTL. For this method
  107797. * left and right always refer to the left and right side of the scrolling container irrespective
  107798. * of the layout direction. start and end refer to left and right in an LTR context and vice-versa
  107799. * in an RTL context.
  107800. * @param {?} options specified the offsets to scroll to.
  107801. * @return {?}
  107802. */
  107803. scrollTo(options) {
  107804. /** @type {?} */
  107805. const el = this.elementRef.nativeElement;
  107806. /** @type {?} */
  107807. const isRtl = this.dir && this.dir.value == 'rtl';
  107808. // Rewrite start & end offsets as right or left offsets.
  107809. if (options.left == null) {
  107810. options.left = isRtl ? options.end : options.start;
  107811. }
  107812. if (options.right == null) {
  107813. options.right = isRtl ? options.start : options.end;
  107814. }
  107815. // Rewrite the bottom offset as a top offset.
  107816. if (options.bottom != null) {
  107817. ((/** @type {?} */ (options))).top =
  107818. el.scrollHeight - el.clientHeight - options.bottom;
  107819. }
  107820. // Rewrite the right offset as a left offset.
  107821. if (isRtl && Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() != 0 /* NORMAL */) {
  107822. if (options.left != null) {
  107823. ((/** @type {?} */ (options))).right =
  107824. el.scrollWidth - el.clientWidth - options.left;
  107825. }
  107826. if (Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() == 2 /* INVERTED */) {
  107827. options.left = options.right;
  107828. }
  107829. else if (Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() == 1 /* NEGATED */) {
  107830. options.left = options.right ? -options.right : options.right;
  107831. }
  107832. }
  107833. else {
  107834. if (options.right != null) {
  107835. ((/** @type {?} */ (options))).left =
  107836. el.scrollWidth - el.clientWidth - options.right;
  107837. }
  107838. }
  107839. this._applyScrollToOptions(options);
  107840. }
  107841. /**
  107842. * @private
  107843. * @param {?} options
  107844. * @return {?}
  107845. */
  107846. _applyScrollToOptions(options) {
  107847. /** @type {?} */
  107848. const el = this.elementRef.nativeElement;
  107849. if (Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["supportsScrollBehavior"])()) {
  107850. el.scrollTo(options);
  107851. }
  107852. else {
  107853. if (options.top != null) {
  107854. el.scrollTop = options.top;
  107855. }
  107856. if (options.left != null) {
  107857. el.scrollLeft = options.left;
  107858. }
  107859. }
  107860. }
  107861. /**
  107862. * Measures the scroll offset relative to the specified edge of the viewport. This method can be
  107863. * used instead of directly checking scrollLeft or scrollTop, since browsers are not consistent
  107864. * about what scrollLeft means in RTL. The values returned by this method are normalized such that
  107865. * left and right always refer to the left and right side of the scrolling container irrespective
  107866. * of the layout direction. start and end refer to left and right in an LTR context and vice-versa
  107867. * in an RTL context.
  107868. * @param {?} from The edge to measure from.
  107869. * @return {?}
  107870. */
  107871. measureScrollOffset(from) {
  107872. /** @type {?} */
  107873. const LEFT = 'left';
  107874. /** @type {?} */
  107875. const RIGHT = 'right';
  107876. /** @type {?} */
  107877. const el = this.elementRef.nativeElement;
  107878. if (from == 'top') {
  107879. return el.scrollTop;
  107880. }
  107881. if (from == 'bottom') {
  107882. return el.scrollHeight - el.clientHeight - el.scrollTop;
  107883. }
  107884. // Rewrite start & end as left or right offsets.
  107885. /** @type {?} */
  107886. const isRtl = this.dir && this.dir.value == 'rtl';
  107887. if (from == 'start') {
  107888. from = isRtl ? RIGHT : LEFT;
  107889. }
  107890. else if (from == 'end') {
  107891. from = isRtl ? LEFT : RIGHT;
  107892. }
  107893. if (isRtl && Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() == 2 /* INVERTED */) {
  107894. // For INVERTED, scrollLeft is (scrollWidth - clientWidth) when scrolled all the way left and
  107895. // 0 when scrolled all the way right.
  107896. if (from == LEFT) {
  107897. return el.scrollWidth - el.clientWidth - el.scrollLeft;
  107898. }
  107899. else {
  107900. return el.scrollLeft;
  107901. }
  107902. }
  107903. else if (isRtl && Object(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["getRtlScrollAxisType"])() == 1 /* NEGATED */) {
  107904. // For NEGATED, scrollLeft is -(scrollWidth - clientWidth) when scrolled all the way left and
  107905. // 0 when scrolled all the way right.
  107906. if (from == LEFT) {
  107907. return el.scrollLeft + el.scrollWidth - el.clientWidth;
  107908. }
  107909. else {
  107910. return -el.scrollLeft;
  107911. }
  107912. }
  107913. else {
  107914. // For NORMAL, as well as non-RTL contexts, scrollLeft is 0 when scrolled all the way left and
  107915. // (scrollWidth - clientWidth) when scrolled all the way right.
  107916. if (from == LEFT) {
  107917. return el.scrollLeft;
  107918. }
  107919. else {
  107920. return el.scrollWidth - el.clientWidth - el.scrollLeft;
  107921. }
  107922. }
  107923. }
  107924. }
  107925. CdkScrollable.ɵfac = function CdkScrollable_Factory(t) { return new (t || CdkScrollable)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["Directionality"], 8)); };
  107926. CdkScrollable.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: CdkScrollable, selectors: [["", "cdk-scrollable", ""], ["", "cdkScrollable", ""]] });
  107927. /** @nocollapse */
  107928. CdkScrollable.ctorParameters = () => [
  107929. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] },
  107930. { type: ScrollDispatcher },
  107931. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] },
  107932. { type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["Directionality"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }] }
  107933. ];
  107934. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkScrollable, [{
  107935. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
  107936. args: [{
  107937. selector: '[cdk-scrollable], [cdkScrollable]'
  107938. }]
  107939. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: ScrollDispatcher }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }, { type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["Directionality"], decorators: [{
  107940. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  107941. }] }]; }, null); })();
  107942. if (false) {}
  107943. /**
  107944. * @fileoverview added by tsickle
  107945. * Generated from: src/cdk/scrolling/viewport-ruler.ts
  107946. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  107947. */
  107948. /**
  107949. * Time in ms to throttle the resize events by default.
  107950. * @type {?}
  107951. */
  107952. const DEFAULT_RESIZE_TIME = 20;
  107953. /**
  107954. * Object that holds the scroll position of the viewport in each direction.
  107955. * @record
  107956. */
  107957. function ViewportScrollPosition() { }
  107958. if (false) {}
  107959. /**
  107960. * Simple utility for getting the bounds of the browser viewport.
  107961. * \@docs-private
  107962. */
  107963. class ViewportRuler {
  107964. /**
  107965. * @param {?} _platform
  107966. * @param {?} ngZone
  107967. */
  107968. constructor(_platform, ngZone) {
  107969. this._platform = _platform;
  107970. ngZone.runOutsideAngular((/**
  107971. * @return {?}
  107972. */
  107973. () => {
  107974. this._change = _platform.isBrowser ?
  107975. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["merge"])(Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(window, 'resize'), Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["fromEvent"])(window, 'orientationchange')) :
  107976. Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])();
  107977. // Note that we need to do the subscription inside `runOutsideAngular`
  107978. // since subscribing is what causes the event listener to be added.
  107979. this._invalidateCache = this.change().subscribe((/**
  107980. * @return {?}
  107981. */
  107982. () => this._updateViewportSize()));
  107983. }));
  107984. }
  107985. /**
  107986. * @return {?}
  107987. */
  107988. ngOnDestroy() {
  107989. this._invalidateCache.unsubscribe();
  107990. }
  107991. /**
  107992. * Returns the viewport's width and height.
  107993. * @return {?}
  107994. */
  107995. getViewportSize() {
  107996. if (!this._viewportSize) {
  107997. this._updateViewportSize();
  107998. }
  107999. /** @type {?} */
  108000. const output = { width: this._viewportSize.width, height: this._viewportSize.height };
  108001. // If we're not on a browser, don't cache the size since it'll be mocked out anyway.
  108002. if (!this._platform.isBrowser) {
  108003. this._viewportSize = (/** @type {?} */ (null));
  108004. }
  108005. return output;
  108006. }
  108007. /**
  108008. * Gets a ClientRect for the viewport's bounds.
  108009. * @return {?}
  108010. */
  108011. getViewportRect() {
  108012. // Use the document element's bounding rect rather than the window scroll properties
  108013. // (e.g. pageYOffset, scrollY) due to in issue in Chrome and IE where window scroll
  108014. // properties and client coordinates (boundingClientRect, clientX/Y, etc.) are in different
  108015. // conceptual viewports. Under most circumstances these viewports are equivalent, but they
  108016. // can disagree when the page is pinch-zoomed (on devices that support touch).
  108017. // See https://bugs.chromium.org/p/chromium/issues/detail?id=489206#c4
  108018. // We use the documentElement instead of the body because, by default (without a css reset)
  108019. // browsers typically give the document body an 8px margin, which is not included in
  108020. // getBoundingClientRect().
  108021. /** @type {?} */
  108022. const scrollPosition = this.getViewportScrollPosition();
  108023. const { width, height } = this.getViewportSize();
  108024. return {
  108025. top: scrollPosition.top,
  108026. left: scrollPosition.left,
  108027. bottom: scrollPosition.top + height,
  108028. right: scrollPosition.left + width,
  108029. height,
  108030. width,
  108031. };
  108032. }
  108033. /**
  108034. * Gets the (top, left) scroll position of the viewport.
  108035. * @return {?}
  108036. */
  108037. getViewportScrollPosition() {
  108038. // While we can get a reference to the fake document
  108039. // during SSR, it doesn't have getBoundingClientRect.
  108040. if (!this._platform.isBrowser) {
  108041. return { top: 0, left: 0 };
  108042. }
  108043. // The top-left-corner of the viewport is determined by the scroll position of the document
  108044. // body, normally just (scrollLeft, scrollTop). However, Chrome and Firefox disagree about
  108045. // whether `document.body` or `document.documentElement` is the scrolled element, so reading
  108046. // `scrollTop` and `scrollLeft` is inconsistent. However, using the bounding rect of
  108047. // `document.documentElement` works consistently, where the `top` and `left` values will
  108048. // equal negative the scroll position.
  108049. /** @type {?} */
  108050. const documentElement = (/** @type {?} */ (document.documentElement));
  108051. /** @type {?} */
  108052. const documentRect = documentElement.getBoundingClientRect();
  108053. /** @type {?} */
  108054. const top = -documentRect.top || document.body.scrollTop || window.scrollY ||
  108055. documentElement.scrollTop || 0;
  108056. /** @type {?} */
  108057. const left = -documentRect.left || document.body.scrollLeft || window.scrollX ||
  108058. documentElement.scrollLeft || 0;
  108059. return { top, left };
  108060. }
  108061. /**
  108062. * Returns a stream that emits whenever the size of the viewport changes.
  108063. * @param {?=} throttleTime Time in milliseconds to throttle the stream.
  108064. * @return {?}
  108065. */
  108066. change(throttleTime = DEFAULT_RESIZE_TIME) {
  108067. return throttleTime > 0 ? this._change.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["auditTime"])(throttleTime)) : this._change;
  108068. }
  108069. /**
  108070. * Updates the cached viewport size.
  108071. * @private
  108072. * @return {?}
  108073. */
  108074. _updateViewportSize() {
  108075. this._viewportSize = this._platform.isBrowser ?
  108076. { width: window.innerWidth, height: window.innerHeight } :
  108077. { width: 0, height: 0 };
  108078. }
  108079. }
  108080. ViewportRuler.ɵfac = function ViewportRuler_Factory(t) { return new (t || ViewportRuler)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); };
  108081. /** @nocollapse */
  108082. ViewportRuler.ctorParameters = () => [
  108083. { type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"] },
  108084. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }
  108085. ];
  108086. /** @nocollapse */ ViewportRuler.ɵprov = Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjectable"])({ factory: function ViewportRuler_Factory() { return new ViewportRuler(Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"]), Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵinject"])(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); }, token: ViewportRuler, providedIn: "root" });
  108087. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ViewportRuler, [{
  108088. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"],
  108089. args: [{ providedIn: 'root' }]
  108090. }], function () { return [{ type: _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["Platform"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, null); })();
  108091. if (false) {}
  108092. /**
  108093. * @fileoverview added by tsickle
  108094. * Generated from: src/cdk/scrolling/virtual-scroll-viewport.ts
  108095. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  108096. */
  108097. /**
  108098. * Checks if the given ranges are equal.
  108099. * @param {?} r1
  108100. * @param {?} r2
  108101. * @return {?}
  108102. */
  108103. function rangesEqual(r1, r2) {
  108104. return r1.start == r2.start && r1.end == r2.end;
  108105. }
  108106. /**
  108107. * Scheduler to be used for scroll events. Needs to fall back to
  108108. * something that doesn't rely on requestAnimationFrame on environments
  108109. * that don't support it (e.g. server-side rendering).
  108110. * @type {?}
  108111. */
  108112. const SCROLL_SCHEDULER = typeof requestAnimationFrame !== 'undefined' ? rxjs__WEBPACK_IMPORTED_MODULE_2__["animationFrameScheduler"] : rxjs__WEBPACK_IMPORTED_MODULE_2__["asapScheduler"];
  108113. /**
  108114. * A viewport that virtualizes its scrolling with the help of `CdkVirtualForOf`.
  108115. */
  108116. class CdkVirtualScrollViewport extends CdkScrollable {
  108117. /**
  108118. * @param {?} elementRef
  108119. * @param {?} _changeDetectorRef
  108120. * @param {?} ngZone
  108121. * @param {?} _scrollStrategy
  108122. * @param {?} dir
  108123. * @param {?} scrollDispatcher
  108124. * @param {?=} viewportRuler
  108125. */
  108126. constructor(elementRef, _changeDetectorRef, ngZone, _scrollStrategy, dir, scrollDispatcher,
  108127. /**
  108128. * @deprecated `viewportRuler` parameter to become required.
  108129. * @breaking-change 11.0.0
  108130. */
  108131. viewportRuler) {
  108132. super(elementRef, scrollDispatcher, ngZone, dir);
  108133. this.elementRef = elementRef;
  108134. this._changeDetectorRef = _changeDetectorRef;
  108135. this._scrollStrategy = _scrollStrategy;
  108136. /**
  108137. * Emits when the viewport is detached from a CdkVirtualForOf.
  108138. */
  108139. this._detachedSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  108140. /**
  108141. * Emits when the rendered range changes.
  108142. */
  108143. this._renderedRangeSubject = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  108144. this._orientation = 'vertical';
  108145. // Note: we don't use the typical EventEmitter here because we need to subscribe to the scroll
  108146. // strategy lazily (i.e. only if the user is actually listening to the events). We do this because
  108147. // depending on how the strategy calculates the scrolled index, it may come at a cost to
  108148. // performance.
  108149. /**
  108150. * Emits when the index of the first element visible in the viewport changes.
  108151. */
  108152. this.scrolledIndexChange = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]((/**
  108153. * @param {?} observer
  108154. * @return {?}
  108155. */
  108156. (observer) => this._scrollStrategy.scrolledIndexChange.subscribe((/**
  108157. * @param {?} index
  108158. * @return {?}
  108159. */
  108160. index => Promise.resolve().then((/**
  108161. * @return {?}
  108162. */
  108163. () => this.ngZone.run((/**
  108164. * @return {?}
  108165. */
  108166. () => observer.next(index)))))))));
  108167. /**
  108168. * A stream that emits whenever the rendered range changes.
  108169. */
  108170. this.renderedRangeStream = this._renderedRangeSubject.asObservable();
  108171. /**
  108172. * The total size of all content (in pixels), including content that is not currently rendered.
  108173. */
  108174. this._totalContentSize = 0;
  108175. /**
  108176. * A string representing the `style.width` property value to be used for the spacer element.
  108177. */
  108178. this._totalContentWidth = '';
  108179. /**
  108180. * A string representing the `style.height` property value to be used for the spacer element.
  108181. */
  108182. this._totalContentHeight = '';
  108183. /**
  108184. * The currently rendered range of indices.
  108185. */
  108186. this._renderedRange = { start: 0, end: 0 };
  108187. /**
  108188. * The length of the data bound to this viewport (in number of items).
  108189. */
  108190. this._dataLength = 0;
  108191. /**
  108192. * The size of the viewport (in pixels).
  108193. */
  108194. this._viewportSize = 0;
  108195. /**
  108196. * The last rendered content offset that was set.
  108197. */
  108198. this._renderedContentOffset = 0;
  108199. /**
  108200. * Whether the last rendered content offset was to the end of the content (and therefore needs to
  108201. * be rewritten as an offset to the start of the content).
  108202. */
  108203. this._renderedContentOffsetNeedsRewrite = false;
  108204. /**
  108205. * Whether there is a pending change detection cycle.
  108206. */
  108207. this._isChangeDetectionPending = false;
  108208. /**
  108209. * A list of functions to run after the next change detection cycle.
  108210. */
  108211. this._runAfterChangeDetection = [];
  108212. /**
  108213. * Subscription to changes in the viewport size.
  108214. */
  108215. this._viewportChanges = rxjs__WEBPACK_IMPORTED_MODULE_2__["Subscription"].EMPTY;
  108216. if (!_scrollStrategy) {
  108217. throw Error('Error: cdk-virtual-scroll-viewport requires the "itemSize" property to be set.');
  108218. }
  108219. // @breaking-change 11.0.0 Remove null check for `viewportRuler`.
  108220. if (viewportRuler) {
  108221. this._viewportChanges = viewportRuler.change().subscribe((/**
  108222. * @return {?}
  108223. */
  108224. () => {
  108225. this.checkViewportSize();
  108226. }));
  108227. }
  108228. }
  108229. /**
  108230. * The direction the viewport scrolls.
  108231. * @return {?}
  108232. */
  108233. get orientation() {
  108234. return this._orientation;
  108235. }
  108236. /**
  108237. * @param {?} orientation
  108238. * @return {?}
  108239. */
  108240. set orientation(orientation) {
  108241. if (this._orientation !== orientation) {
  108242. this._orientation = orientation;
  108243. this._calculateSpacerSize();
  108244. }
  108245. }
  108246. /**
  108247. * @return {?}
  108248. */
  108249. ngOnInit() {
  108250. super.ngOnInit();
  108251. // It's still too early to measure the viewport at this point. Deferring with a promise allows
  108252. // the Viewport to be rendered with the correct size before we measure. We run this outside the
  108253. // zone to avoid causing more change detection cycles. We handle the change detection loop
  108254. // ourselves instead.
  108255. this.ngZone.runOutsideAngular((/**
  108256. * @return {?}
  108257. */
  108258. () => Promise.resolve().then((/**
  108259. * @return {?}
  108260. */
  108261. () => {
  108262. this._measureViewportSize();
  108263. this._scrollStrategy.attach(this);
  108264. this.elementScrolled()
  108265. .pipe(
  108266. // Start off with a fake scroll event so we properly detect our initial position.
  108267. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])((/** @type {?} */ (null))),
  108268. // Collect multiple events into one until the next animation frame. This way if
  108269. // there are multiple scroll events in the same frame we only need to recheck
  108270. // our layout once.
  108271. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["auditTime"])(0, SCROLL_SCHEDULER))
  108272. .subscribe((/**
  108273. * @return {?}
  108274. */
  108275. () => this._scrollStrategy.onContentScrolled()));
  108276. this._markChangeDetectionNeeded();
  108277. }))));
  108278. }
  108279. /**
  108280. * @return {?}
  108281. */
  108282. ngOnDestroy() {
  108283. this.detach();
  108284. this._scrollStrategy.detach();
  108285. // Complete all subjects
  108286. this._renderedRangeSubject.complete();
  108287. this._detachedSubject.complete();
  108288. this._viewportChanges.unsubscribe();
  108289. super.ngOnDestroy();
  108290. }
  108291. /**
  108292. * Attaches a `CdkVirtualForOf` to this viewport.
  108293. * @param {?} forOf
  108294. * @return {?}
  108295. */
  108296. attach(forOf) {
  108297. if (this._forOf) {
  108298. throw Error('CdkVirtualScrollViewport is already attached.');
  108299. }
  108300. // Subscribe to the data stream of the CdkVirtualForOf to keep track of when the data length
  108301. // changes. Run outside the zone to avoid triggering change detection, since we're managing the
  108302. // change detection loop ourselves.
  108303. this.ngZone.runOutsideAngular((/**
  108304. * @return {?}
  108305. */
  108306. () => {
  108307. this._forOf = forOf;
  108308. this._forOf.dataStream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._detachedSubject)).subscribe((/**
  108309. * @param {?} data
  108310. * @return {?}
  108311. */
  108312. data => {
  108313. /** @type {?} */
  108314. const newLength = data.length;
  108315. if (newLength !== this._dataLength) {
  108316. this._dataLength = newLength;
  108317. this._scrollStrategy.onDataLengthChanged();
  108318. }
  108319. this._doChangeDetection();
  108320. }));
  108321. }));
  108322. }
  108323. /**
  108324. * Detaches the current `CdkVirtualForOf`.
  108325. * @return {?}
  108326. */
  108327. detach() {
  108328. this._forOf = null;
  108329. this._detachedSubject.next();
  108330. }
  108331. /**
  108332. * Gets the length of the data bound to this viewport (in number of items).
  108333. * @return {?}
  108334. */
  108335. getDataLength() {
  108336. return this._dataLength;
  108337. }
  108338. /**
  108339. * Gets the size of the viewport (in pixels).
  108340. * @return {?}
  108341. */
  108342. getViewportSize() {
  108343. return this._viewportSize;
  108344. }
  108345. // TODO(mmalerba): This is technically out of sync with what's really rendered until a render
  108346. // cycle happens. I'm being careful to only call it after the render cycle is complete and before
  108347. // setting it to something else, but its error prone and should probably be split into
  108348. // `pendingRange` and `renderedRange`, the latter reflecting whats actually in the DOM.
  108349. /**
  108350. * Get the current rendered range of items.
  108351. * @return {?}
  108352. */
  108353. getRenderedRange() {
  108354. return this._renderedRange;
  108355. }
  108356. /**
  108357. * Sets the total size of all content (in pixels), including content that is not currently
  108358. * rendered.
  108359. * @param {?} size
  108360. * @return {?}
  108361. */
  108362. setTotalContentSize(size) {
  108363. if (this._totalContentSize !== size) {
  108364. this._totalContentSize = size;
  108365. this._calculateSpacerSize();
  108366. this._markChangeDetectionNeeded();
  108367. }
  108368. }
  108369. /**
  108370. * Sets the currently rendered range of indices.
  108371. * @param {?} range
  108372. * @return {?}
  108373. */
  108374. setRenderedRange(range) {
  108375. if (!rangesEqual(this._renderedRange, range)) {
  108376. this._renderedRangeSubject.next(this._renderedRange = range);
  108377. this._markChangeDetectionNeeded((/**
  108378. * @return {?}
  108379. */
  108380. () => this._scrollStrategy.onContentRendered()));
  108381. }
  108382. }
  108383. /**
  108384. * Gets the offset from the start of the viewport to the start of the rendered data (in pixels).
  108385. * @return {?}
  108386. */
  108387. getOffsetToRenderedContentStart() {
  108388. return this._renderedContentOffsetNeedsRewrite ? null : this._renderedContentOffset;
  108389. }
  108390. /**
  108391. * Sets the offset from the start of the viewport to either the start or end of the rendered data
  108392. * (in pixels).
  108393. * @param {?} offset
  108394. * @param {?=} to
  108395. * @return {?}
  108396. */
  108397. setRenderedContentOffset(offset, to = 'to-start') {
  108398. // For a horizontal viewport in a right-to-left language we need to translate along the x-axis
  108399. // in the negative direction.
  108400. /** @type {?} */
  108401. const isRtl = this.dir && this.dir.value == 'rtl';
  108402. /** @type {?} */
  108403. const isHorizontal = this.orientation == 'horizontal';
  108404. /** @type {?} */
  108405. const axis = isHorizontal ? 'X' : 'Y';
  108406. /** @type {?} */
  108407. const axisDirection = isHorizontal && isRtl ? -1 : 1;
  108408. /** @type {?} */
  108409. let transform = `translate${axis}(${Number(axisDirection * offset)}px)`;
  108410. this._renderedContentOffset = offset;
  108411. if (to === 'to-end') {
  108412. transform += ` translate${axis}(-100%)`;
  108413. // The viewport should rewrite this as a `to-start` offset on the next render cycle. Otherwise
  108414. // elements will appear to expand in the wrong direction (e.g. `mat-expansion-panel` would
  108415. // expand upward).
  108416. this._renderedContentOffsetNeedsRewrite = true;
  108417. }
  108418. if (this._renderedContentTransform != transform) {
  108419. // We know this value is safe because we parse `offset` with `Number()` before passing it
  108420. // into the string.
  108421. this._renderedContentTransform = transform;
  108422. this._markChangeDetectionNeeded((/**
  108423. * @return {?}
  108424. */
  108425. () => {
  108426. if (this._renderedContentOffsetNeedsRewrite) {
  108427. this._renderedContentOffset -= this.measureRenderedContentSize();
  108428. this._renderedContentOffsetNeedsRewrite = false;
  108429. this.setRenderedContentOffset(this._renderedContentOffset);
  108430. }
  108431. else {
  108432. this._scrollStrategy.onRenderedOffsetChanged();
  108433. }
  108434. }));
  108435. }
  108436. }
  108437. /**
  108438. * Scrolls to the given offset from the start of the viewport. Please note that this is not always
  108439. * the same as setting `scrollTop` or `scrollLeft`. In a horizontal viewport with right-to-left
  108440. * direction, this would be the equivalent of setting a fictional `scrollRight` property.
  108441. * @param {?} offset The offset to scroll to.
  108442. * @param {?=} behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
  108443. * @return {?}
  108444. */
  108445. scrollToOffset(offset, behavior = 'auto') {
  108446. /** @type {?} */
  108447. const options = { behavior };
  108448. if (this.orientation === 'horizontal') {
  108449. options.start = offset;
  108450. }
  108451. else {
  108452. options.top = offset;
  108453. }
  108454. this.scrollTo(options);
  108455. }
  108456. /**
  108457. * Scrolls to the offset for the given index.
  108458. * @param {?} index The index of the element to scroll to.
  108459. * @param {?=} behavior The ScrollBehavior to use when scrolling. Default is behavior is `auto`.
  108460. * @return {?}
  108461. */
  108462. scrollToIndex(index, behavior = 'auto') {
  108463. this._scrollStrategy.scrollToIndex(index, behavior);
  108464. }
  108465. /**
  108466. * Gets the current scroll offset from the start of the viewport (in pixels).
  108467. * @param {?=} from The edge to measure the offset from. Defaults to 'top' in vertical mode and 'start'
  108468. * in horizontal mode.
  108469. * @return {?}
  108470. */
  108471. measureScrollOffset(from) {
  108472. return from ?
  108473. super.measureScrollOffset(from) :
  108474. super.measureScrollOffset(this.orientation === 'horizontal' ? 'start' : 'top');
  108475. }
  108476. /**
  108477. * Measure the combined size of all of the rendered items.
  108478. * @return {?}
  108479. */
  108480. measureRenderedContentSize() {
  108481. /** @type {?} */
  108482. const contentEl = this._contentWrapper.nativeElement;
  108483. return this.orientation === 'horizontal' ? contentEl.offsetWidth : contentEl.offsetHeight;
  108484. }
  108485. /**
  108486. * Measure the total combined size of the given range. Throws if the range includes items that are
  108487. * not rendered.
  108488. * @param {?} range
  108489. * @return {?}
  108490. */
  108491. measureRangeSize(range) {
  108492. if (!this._forOf) {
  108493. return 0;
  108494. }
  108495. return this._forOf.measureRangeSize(range, this.orientation);
  108496. }
  108497. /**
  108498. * Update the viewport dimensions and re-render.
  108499. * @return {?}
  108500. */
  108501. checkViewportSize() {
  108502. // TODO: Cleanup later when add logic for handling content resize
  108503. this._measureViewportSize();
  108504. this._scrollStrategy.onDataLengthChanged();
  108505. }
  108506. /**
  108507. * Measure the viewport size.
  108508. * @private
  108509. * @return {?}
  108510. */
  108511. _measureViewportSize() {
  108512. /** @type {?} */
  108513. const viewportEl = this.elementRef.nativeElement;
  108514. this._viewportSize = this.orientation === 'horizontal' ?
  108515. viewportEl.clientWidth : viewportEl.clientHeight;
  108516. }
  108517. /**
  108518. * Queue up change detection to run.
  108519. * @private
  108520. * @param {?=} runAfter
  108521. * @return {?}
  108522. */
  108523. _markChangeDetectionNeeded(runAfter) {
  108524. if (runAfter) {
  108525. this._runAfterChangeDetection.push(runAfter);
  108526. }
  108527. // Use a Promise to batch together calls to `_doChangeDetection`. This way if we set a bunch of
  108528. // properties sequentially we only have to run `_doChangeDetection` once at the end.
  108529. if (!this._isChangeDetectionPending) {
  108530. this._isChangeDetectionPending = true;
  108531. this.ngZone.runOutsideAngular((/**
  108532. * @return {?}
  108533. */
  108534. () => Promise.resolve().then((/**
  108535. * @return {?}
  108536. */
  108537. () => {
  108538. this._doChangeDetection();
  108539. }))));
  108540. }
  108541. }
  108542. /**
  108543. * Run change detection.
  108544. * @private
  108545. * @return {?}
  108546. */
  108547. _doChangeDetection() {
  108548. this._isChangeDetectionPending = false;
  108549. // Apply the content transform. The transform can't be set via an Angular binding because
  108550. // bypassSecurityTrustStyle is banned in Google. However the value is safe, it's composed of
  108551. // string literals, a variable that can only be 'X' or 'Y', and user input that is run through
  108552. // the `Number` function first to coerce it to a numeric value.
  108553. this._contentWrapper.nativeElement.style.transform = this._renderedContentTransform;
  108554. // Apply changes to Angular bindings. Note: We must call `markForCheck` to run change detection
  108555. // from the root, since the repeated items are content projected in. Calling `detectChanges`
  108556. // instead does not properly check the projected content.
  108557. this.ngZone.run((/**
  108558. * @return {?}
  108559. */
  108560. () => this._changeDetectorRef.markForCheck()));
  108561. /** @type {?} */
  108562. const runAfterChangeDetection = this._runAfterChangeDetection;
  108563. this._runAfterChangeDetection = [];
  108564. for (const fn of runAfterChangeDetection) {
  108565. fn();
  108566. }
  108567. }
  108568. /**
  108569. * Calculates the `style.width` and `style.height` for the spacer element.
  108570. * @private
  108571. * @return {?}
  108572. */
  108573. _calculateSpacerSize() {
  108574. this._totalContentHeight =
  108575. this.orientation === 'horizontal' ? '' : `${this._totalContentSize}px`;
  108576. this._totalContentWidth =
  108577. this.orientation === 'horizontal' ? `${this._totalContentSize}px` : '';
  108578. }
  108579. }
  108580. CdkVirtualScrollViewport.ɵfac = function CdkVirtualScrollViewport_Factory(t) { return new (t || CdkVirtualScrollViewport)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](VIRTUAL_SCROLL_STRATEGY, 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["Directionality"], 8), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ScrollDispatcher), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](ViewportRuler, 8)); };
  108581. CdkVirtualScrollViewport.ɵcmp = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: CdkVirtualScrollViewport, selectors: [["cdk-virtual-scroll-viewport"]], viewQuery: function CdkVirtualScrollViewport_Query(rf, ctx) { if (rf & 1) {
  108582. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstaticViewQuery"](_c0, true);
  108583. } if (rf & 2) {
  108584. let _t;
  108585. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵqueryRefresh"](_t = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵloadQuery"]()) && (ctx._contentWrapper = _t.first);
  108586. } }, hostAttrs: [1, "cdk-virtual-scroll-viewport"], hostVars: 4, hostBindings: function CdkVirtualScrollViewport_HostBindings(rf, ctx) { if (rf & 2) {
  108587. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassProp"]("cdk-virtual-scroll-orientation-horizontal", ctx.orientation === "horizontal")("cdk-virtual-scroll-orientation-vertical", ctx.orientation !== "horizontal");
  108588. } }, inputs: { orientation: "orientation" }, outputs: { scrolledIndexChange: "scrolledIndexChange" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([{
  108589. provide: CdkScrollable,
  108590. useExisting: CdkVirtualScrollViewport
  108591. }]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵInheritDefinitionFeature"]], ngContentSelectors: _c1, decls: 4, vars: 4, consts: [[1, "cdk-virtual-scroll-content-wrapper"], ["contentWrapper", ""], [1, "cdk-virtual-scroll-spacer"]], template: function CdkVirtualScrollViewport_Template(rf, ctx) { if (rf & 1) {
  108592. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojectionDef"]();
  108593. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "div", 0, 1);
  108594. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵprojection"](2);
  108595. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
  108596. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "div", 2);
  108597. } if (rf & 2) {
  108598. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
  108599. _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵstyleProp"]("width", ctx._totalContentWidth)("height", ctx._totalContentHeight);
  108600. } }, styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"], encapsulation: 2, changeDetection: 0 });
  108601. /** @nocollapse */
  108602. CdkVirtualScrollViewport.ctorParameters = () => [
  108603. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] },
  108604. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] },
  108605. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] },
  108606. { type: undefined, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"], args: [VIRTUAL_SCROLL_STRATEGY,] }] },
  108607. { type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["Directionality"], decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }] },
  108608. { type: ScrollDispatcher },
  108609. { type: ViewportRuler, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"] }] }
  108610. ];
  108611. CdkVirtualScrollViewport.propDecorators = {
  108612. orientation: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  108613. scrolledIndexChange: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"] }],
  108614. _contentWrapper: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"], args: ['contentWrapper', { static: true },] }]
  108615. };
  108616. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkVirtualScrollViewport, [{
  108617. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"],
  108618. args: [{
  108619. selector: 'cdk-virtual-scroll-viewport',
  108620. template: "<!--\n Wrap the rendered content in an element that will be used to offset it based on the scroll\n position.\n-->\n<div #contentWrapper class=\"cdk-virtual-scroll-content-wrapper\">\n <ng-content></ng-content>\n</div>\n<!--\n Spacer used to force the scrolling container to the correct size for the *total* number of items\n so that the scrollbar captures the size of the entire data set.\n-->\n<div class=\"cdk-virtual-scroll-spacer\"\n [style.width]=\"_totalContentWidth\" [style.height]=\"_totalContentHeight\"></div>\n",
  108621. host: {
  108622. 'class': 'cdk-virtual-scroll-viewport',
  108623. '[class.cdk-virtual-scroll-orientation-horizontal]': 'orientation === "horizontal"',
  108624. '[class.cdk-virtual-scroll-orientation-vertical]': 'orientation !== "horizontal"'
  108625. },
  108626. encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewEncapsulation"].None,
  108627. changeDetection: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectionStrategy"].OnPush,
  108628. providers: [{
  108629. provide: CdkScrollable,
  108630. useExisting: CdkVirtualScrollViewport
  108631. }],
  108632. styles: ["cdk-virtual-scroll-viewport{display:block;position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0}[dir=rtl] .cdk-virtual-scroll-spacer{right:0;left:auto;transform-origin:100% 0}\n"]
  108633. }]
  108634. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ElementRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ChangeDetectorRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }, { type: undefined, decorators: [{
  108635. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  108636. }, {
  108637. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Inject"],
  108638. args: [VIRTUAL_SCROLL_STRATEGY]
  108639. }] }, { type: _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["Directionality"], decorators: [{
  108640. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  108641. }] }, { type: ScrollDispatcher }, { type: ViewportRuler, decorators: [{
  108642. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Optional"]
  108643. }] }]; }, { scrolledIndexChange: [{
  108644. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Output"]
  108645. }], orientation: [{
  108646. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  108647. }], _contentWrapper: [{
  108648. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewChild"],
  108649. args: ['contentWrapper', { static: true }]
  108650. }] }); })();
  108651. if (false) {}
  108652. /**
  108653. * @fileoverview added by tsickle
  108654. * Generated from: src/cdk/scrolling/virtual-for-of.ts
  108655. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  108656. */
  108657. /**
  108658. * Helper to extract size from a DOM Node.
  108659. * @param {?} orientation
  108660. * @param {?} node
  108661. * @return {?}
  108662. */
  108663. function getSize(orientation, node) {
  108664. /** @type {?} */
  108665. const el = (/** @type {?} */ (node));
  108666. if (!el.getBoundingClientRect) {
  108667. return 0;
  108668. }
  108669. /** @type {?} */
  108670. const rect = el.getBoundingClientRect();
  108671. return orientation == 'horizontal' ? rect.width : rect.height;
  108672. }
  108673. /**
  108674. * A directive similar to `ngForOf` to be used for rendering data inside a virtual scrolling
  108675. * container.
  108676. * @template T
  108677. */
  108678. class CdkVirtualForOf {
  108679. /**
  108680. * @param {?} _viewContainerRef
  108681. * @param {?} _template
  108682. * @param {?} _differs
  108683. * @param {?} _viewport
  108684. * @param {?} ngZone
  108685. */
  108686. constructor(_viewContainerRef, _template, _differs, _viewport, ngZone) {
  108687. this._viewContainerRef = _viewContainerRef;
  108688. this._template = _template;
  108689. this._differs = _differs;
  108690. this._viewport = _viewport;
  108691. /**
  108692. * Emits when the rendered view of the data changes.
  108693. */
  108694. this.viewChange = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  108695. /**
  108696. * Subject that emits when a new DataSource instance is given.
  108697. */
  108698. this._dataSourceChanges = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  108699. /**
  108700. * The size of the cache used to store templates that are not being used for re-use later.
  108701. * Setting the cache size to `0` will disable caching. Defaults to 20 templates.
  108702. */
  108703. this.cdkVirtualForTemplateCacheSize = 20;
  108704. /**
  108705. * Emits whenever the data in the current DataSource changes.
  108706. */
  108707. this.dataStream = this._dataSourceChanges
  108708. .pipe(
  108709. // Start off with null `DataSource`.
  108710. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["startWith"])((/** @type {?} */ (null))),
  108711. // Bundle up the previous and current data sources so we can work with both.
  108712. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["pairwise"])(),
  108713. // Use `_changeDataSource` to disconnect from the previous data source and connect to the
  108714. // new one, passing back a stream of data changes which we run through `switchMap` to give
  108715. // us a data stream that emits the latest data from whatever the current `DataSource` is.
  108716. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["switchMap"])((/**
  108717. * @param {?} __0
  108718. * @return {?}
  108719. */
  108720. ([prev, cur]) => this._changeDataSource(prev, cur))),
  108721. // Replay the last emitted data when someone subscribes.
  108722. Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["shareReplay"])(1));
  108723. /**
  108724. * The differ used to calculate changes to the data.
  108725. */
  108726. this._differ = null;
  108727. /**
  108728. * The template cache used to hold on ot template instancess that have been stamped out, but don't
  108729. * currently need to be rendered. These instances will be reused in the future rather than
  108730. * stamping out brand new ones.
  108731. */
  108732. this._templateCache = [];
  108733. /**
  108734. * Whether the rendered data should be updated during the next ngDoCheck cycle.
  108735. */
  108736. this._needsUpdate = false;
  108737. this._destroyed = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  108738. this.dataStream.subscribe((/**
  108739. * @param {?} data
  108740. * @return {?}
  108741. */
  108742. data => {
  108743. this._data = data;
  108744. this._onRenderedDataChange();
  108745. }));
  108746. this._viewport.renderedRangeStream.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_3__["takeUntil"])(this._destroyed)).subscribe((/**
  108747. * @param {?} range
  108748. * @return {?}
  108749. */
  108750. range => {
  108751. this._renderedRange = range;
  108752. ngZone.run((/**
  108753. * @return {?}
  108754. */
  108755. () => this.viewChange.next(this._renderedRange)));
  108756. this._onRenderedDataChange();
  108757. }));
  108758. this._viewport.attach(this);
  108759. }
  108760. /**
  108761. * The DataSource to display.
  108762. * @return {?}
  108763. */
  108764. get cdkVirtualForOf() {
  108765. return this._cdkVirtualForOf;
  108766. }
  108767. /**
  108768. * @param {?} value
  108769. * @return {?}
  108770. */
  108771. set cdkVirtualForOf(value) {
  108772. this._cdkVirtualForOf = value;
  108773. if (Object(_angular_cdk_collections__WEBPACK_IMPORTED_MODULE_6__["isDataSource"])(value)) {
  108774. this._dataSourceChanges.next(value);
  108775. }
  108776. else {
  108777. // Slice the value if its an NgIterable to ensure we're working with an array.
  108778. this._dataSourceChanges.next(new _angular_cdk_collections__WEBPACK_IMPORTED_MODULE_6__["ArrayDataSource"](Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["isObservable"])(value) ? value : Array.prototype.slice.call(value || [])));
  108779. }
  108780. }
  108781. /**
  108782. * The `TrackByFunction` to use for tracking changes. The `TrackByFunction` takes the index and
  108783. * the item and produces a value to be used as the item's identity when tracking changes.
  108784. * @return {?}
  108785. */
  108786. get cdkVirtualForTrackBy() {
  108787. return this._cdkVirtualForTrackBy;
  108788. }
  108789. /**
  108790. * @param {?} fn
  108791. * @return {?}
  108792. */
  108793. set cdkVirtualForTrackBy(fn) {
  108794. this._needsUpdate = true;
  108795. this._cdkVirtualForTrackBy = fn ?
  108796. (/**
  108797. * @param {?} index
  108798. * @param {?} item
  108799. * @return {?}
  108800. */
  108801. (index, item) => fn(index + (this._renderedRange ? this._renderedRange.start : 0), item)) :
  108802. undefined;
  108803. }
  108804. /**
  108805. * The template used to stamp out new elements.
  108806. * @param {?} value
  108807. * @return {?}
  108808. */
  108809. set cdkVirtualForTemplate(value) {
  108810. if (value) {
  108811. this._needsUpdate = true;
  108812. this._template = value;
  108813. }
  108814. }
  108815. /**
  108816. * Measures the combined size (width for horizontal orientation, height for vertical) of all items
  108817. * in the specified range. Throws an error if the range includes items that are not currently
  108818. * rendered.
  108819. * @param {?} range
  108820. * @param {?} orientation
  108821. * @return {?}
  108822. */
  108823. measureRangeSize(range, orientation) {
  108824. if (range.start >= range.end) {
  108825. return 0;
  108826. }
  108827. if (range.start < this._renderedRange.start || range.end > this._renderedRange.end) {
  108828. throw Error(`Error: attempted to measure an item that isn't rendered.`);
  108829. }
  108830. // The index into the list of rendered views for the first item in the range.
  108831. /** @type {?} */
  108832. const renderedStartIndex = range.start - this._renderedRange.start;
  108833. // The length of the range we're measuring.
  108834. /** @type {?} */
  108835. const rangeLen = range.end - range.start;
  108836. // Loop over all root nodes for all items in the range and sum up their size.
  108837. /** @type {?} */
  108838. let totalSize = 0;
  108839. /** @type {?} */
  108840. let i = rangeLen;
  108841. while (i--) {
  108842. /** @type {?} */
  108843. const view = (/** @type {?} */ (this._viewContainerRef.get(i + renderedStartIndex)));
  108844. /** @type {?} */
  108845. let j = view ? view.rootNodes.length : 0;
  108846. while (j--) {
  108847. totalSize += getSize(orientation, (/** @type {?} */ (view)).rootNodes[j]);
  108848. }
  108849. }
  108850. return totalSize;
  108851. }
  108852. /**
  108853. * @return {?}
  108854. */
  108855. ngDoCheck() {
  108856. if (this._differ && this._needsUpdate) {
  108857. // TODO(mmalerba): We should differentiate needs update due to scrolling and a new portion of
  108858. // this list being rendered (can use simpler algorithm) vs needs update due to data actually
  108859. // changing (need to do this diff).
  108860. /** @type {?} */
  108861. const changes = this._differ.diff(this._renderedItems);
  108862. if (!changes) {
  108863. this._updateContext();
  108864. }
  108865. else {
  108866. this._applyChanges(changes);
  108867. }
  108868. this._needsUpdate = false;
  108869. }
  108870. }
  108871. /**
  108872. * @return {?}
  108873. */
  108874. ngOnDestroy() {
  108875. this._viewport.detach();
  108876. this._dataSourceChanges.next();
  108877. this._dataSourceChanges.complete();
  108878. this.viewChange.complete();
  108879. this._destroyed.next();
  108880. this._destroyed.complete();
  108881. for (let view of this._templateCache) {
  108882. view.destroy();
  108883. }
  108884. }
  108885. /**
  108886. * React to scroll state changes in the viewport.
  108887. * @private
  108888. * @return {?}
  108889. */
  108890. _onRenderedDataChange() {
  108891. if (!this._renderedRange) {
  108892. return;
  108893. }
  108894. this._renderedItems = this._data.slice(this._renderedRange.start, this._renderedRange.end);
  108895. if (!this._differ) {
  108896. this._differ = this._differs.find(this._renderedItems).create(this.cdkVirtualForTrackBy);
  108897. }
  108898. this._needsUpdate = true;
  108899. }
  108900. /**
  108901. * Swap out one `DataSource` for another.
  108902. * @private
  108903. * @param {?} oldDs
  108904. * @param {?} newDs
  108905. * @return {?}
  108906. */
  108907. _changeDataSource(oldDs, newDs) {
  108908. if (oldDs) {
  108909. oldDs.disconnect(this);
  108910. }
  108911. this._needsUpdate = true;
  108912. return newDs ? newDs.connect(this) : Object(rxjs__WEBPACK_IMPORTED_MODULE_2__["of"])();
  108913. }
  108914. /**
  108915. * Update the `CdkVirtualForOfContext` for all views.
  108916. * @private
  108917. * @return {?}
  108918. */
  108919. _updateContext() {
  108920. /** @type {?} */
  108921. const count = this._data.length;
  108922. /** @type {?} */
  108923. let i = this._viewContainerRef.length;
  108924. while (i--) {
  108925. /** @type {?} */
  108926. let view = (/** @type {?} */ (this._viewContainerRef.get(i)));
  108927. view.context.index = this._renderedRange.start + i;
  108928. view.context.count = count;
  108929. this._updateComputedContextProperties(view.context);
  108930. view.detectChanges();
  108931. }
  108932. }
  108933. /**
  108934. * Apply changes to the DOM.
  108935. * @private
  108936. * @param {?} changes
  108937. * @return {?}
  108938. */
  108939. _applyChanges(changes) {
  108940. // Rearrange the views to put them in the right location.
  108941. changes.forEachOperation((/**
  108942. * @param {?} record
  108943. * @param {?} adjustedPreviousIndex
  108944. * @param {?} currentIndex
  108945. * @return {?}
  108946. */
  108947. (record, adjustedPreviousIndex, currentIndex) => {
  108948. if (record.previousIndex == null) { // Item added.
  108949. // Item added.
  108950. /** @type {?} */
  108951. const view = this._insertViewForNewItem((/** @type {?} */ (currentIndex)));
  108952. view.context.$implicit = record.item;
  108953. }
  108954. else if (currentIndex == null) { // Item removed.
  108955. this._cacheView(this._detachView((/** @type {?} */ (adjustedPreviousIndex))));
  108956. }
  108957. else { // Item moved.
  108958. // Item moved.
  108959. /** @type {?} */
  108960. const view = (/** @type {?} */ (this._viewContainerRef.get((/** @type {?} */ (adjustedPreviousIndex)))));
  108961. this._viewContainerRef.move(view, currentIndex);
  108962. view.context.$implicit = record.item;
  108963. }
  108964. }));
  108965. // Update $implicit for any items that had an identity change.
  108966. changes.forEachIdentityChange((/**
  108967. * @param {?} record
  108968. * @return {?}
  108969. */
  108970. (record) => {
  108971. /** @type {?} */
  108972. const view = (/** @type {?} */ (this._viewContainerRef.get((/** @type {?} */ (record.currentIndex)))));
  108973. view.context.$implicit = record.item;
  108974. }));
  108975. // Update the context variables on all items.
  108976. /** @type {?} */
  108977. const count = this._data.length;
  108978. /** @type {?} */
  108979. let i = this._viewContainerRef.length;
  108980. while (i--) {
  108981. /** @type {?} */
  108982. const view = (/** @type {?} */ (this._viewContainerRef.get(i)));
  108983. view.context.index = this._renderedRange.start + i;
  108984. view.context.count = count;
  108985. this._updateComputedContextProperties(view.context);
  108986. }
  108987. }
  108988. /**
  108989. * Cache the given detached view.
  108990. * @private
  108991. * @param {?} view
  108992. * @return {?}
  108993. */
  108994. _cacheView(view) {
  108995. if (this._templateCache.length < this.cdkVirtualForTemplateCacheSize) {
  108996. this._templateCache.push(view);
  108997. }
  108998. else {
  108999. /** @type {?} */
  109000. const index = this._viewContainerRef.indexOf(view);
  109001. // It's very unlikely that the index will ever be -1, but just in case,
  109002. // destroy the view on its own, otherwise destroy it through the
  109003. // container to ensure that all the references are removed.
  109004. if (index === -1) {
  109005. view.destroy();
  109006. }
  109007. else {
  109008. this._viewContainerRef.remove(index);
  109009. }
  109010. }
  109011. }
  109012. /**
  109013. * Inserts a view for a new item, either from the cache or by creating a new one.
  109014. * @private
  109015. * @param {?} index
  109016. * @return {?}
  109017. */
  109018. _insertViewForNewItem(index) {
  109019. return this._insertViewFromCache(index) || this._createEmbeddedViewAt(index);
  109020. }
  109021. /**
  109022. * Update the computed properties on the `CdkVirtualForOfContext`.
  109023. * @private
  109024. * @param {?} context
  109025. * @return {?}
  109026. */
  109027. _updateComputedContextProperties(context) {
  109028. context.first = context.index === 0;
  109029. context.last = context.index === context.count - 1;
  109030. context.even = context.index % 2 === 0;
  109031. context.odd = !context.even;
  109032. }
  109033. /**
  109034. * Creates a new embedded view and moves it to the given index
  109035. * @private
  109036. * @param {?} index
  109037. * @return {?}
  109038. */
  109039. _createEmbeddedViewAt(index) {
  109040. // Note that it's important that we insert the item directly at the proper index,
  109041. // rather than inserting it and the moving it in place, because if there's a directive
  109042. // on the same node that injects the `ViewContainerRef`, Angular will insert another
  109043. // comment node which can throw off the move when it's being repeated for all items.
  109044. return this._viewContainerRef.createEmbeddedView(this._template, {
  109045. $implicit: (/** @type {?} */ (null)),
  109046. // It's guaranteed that the iterable is not "undefined" or "null" because we only
  109047. // generate views for elements if the "cdkVirtualForOf" iterable has elements.
  109048. cdkVirtualForOf: (/** @type {?} */ (this._cdkVirtualForOf)),
  109049. index: -1,
  109050. count: -1,
  109051. first: false,
  109052. last: false,
  109053. odd: false,
  109054. even: false
  109055. }, index);
  109056. }
  109057. /**
  109058. * Inserts a recycled view from the cache at the given index.
  109059. * @private
  109060. * @param {?} index
  109061. * @return {?}
  109062. */
  109063. _insertViewFromCache(index) {
  109064. /** @type {?} */
  109065. const cachedView = this._templateCache.pop();
  109066. if (cachedView) {
  109067. this._viewContainerRef.insert(cachedView, index);
  109068. }
  109069. return cachedView || null;
  109070. }
  109071. /**
  109072. * Detaches the embedded view at the given index.
  109073. * @private
  109074. * @param {?} index
  109075. * @return {?}
  109076. */
  109077. _detachView(index) {
  109078. return (/** @type {?} */ (this._viewContainerRef.detach(index)));
  109079. }
  109080. }
  109081. CdkVirtualForOf.ɵfac = function CdkVirtualForOf_Factory(t) { return new (t || CdkVirtualForOf)(_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["IterableDiffers"]), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](CdkVirtualScrollViewport, 4), _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"])); };
  109082. CdkVirtualForOf.ɵdir = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineDirective"]({ type: CdkVirtualForOf, selectors: [["", "cdkVirtualFor", "", "cdkVirtualForOf", ""]], inputs: { cdkVirtualForTemplateCacheSize: "cdkVirtualForTemplateCacheSize", cdkVirtualForOf: "cdkVirtualForOf", cdkVirtualForTrackBy: "cdkVirtualForTrackBy", cdkVirtualForTemplate: "cdkVirtualForTemplate" } });
  109083. /** @nocollapse */
  109084. CdkVirtualForOf.ctorParameters = () => [
  109085. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"] },
  109086. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"] },
  109087. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["IterableDiffers"] },
  109088. { type: CdkVirtualScrollViewport, decorators: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"] }] },
  109089. { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }
  109090. ];
  109091. CdkVirtualForOf.propDecorators = {
  109092. cdkVirtualForOf: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  109093. cdkVirtualForTrackBy: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  109094. cdkVirtualForTemplate: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }],
  109095. cdkVirtualForTemplateCacheSize: [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"] }]
  109096. };
  109097. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](CdkVirtualForOf, [{
  109098. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Directive"],
  109099. args: [{
  109100. selector: '[cdkVirtualFor][cdkVirtualForOf]'
  109101. }]
  109102. }], function () { return [{ type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["ViewContainerRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["TemplateRef"] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["IterableDiffers"] }, { type: CdkVirtualScrollViewport, decorators: [{
  109103. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["SkipSelf"]
  109104. }] }, { type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgZone"] }]; }, { cdkVirtualForTemplateCacheSize: [{
  109105. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  109106. }], cdkVirtualForOf: [{
  109107. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  109108. }], cdkVirtualForTrackBy: [{
  109109. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  109110. }], cdkVirtualForTemplate: [{
  109111. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["Input"]
  109112. }] }); })();
  109113. if (false) {}
  109114. /**
  109115. * @fileoverview added by tsickle
  109116. * Generated from: src/cdk/scrolling/scrolling-module.ts
  109117. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  109118. */
  109119. class ScrollingModule {
  109120. }
  109121. ScrollingModule.ɵmod = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: ScrollingModule });
  109122. ScrollingModule.ɵinj = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ factory: function ScrollingModule_Factory(t) { return new (t || ScrollingModule)(); }, imports: [[_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["BidiModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["PlatformModule"]], _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["BidiModule"]] });
  109123. (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](ScrollingModule, { declarations: function () { return [CdkFixedSizeVirtualScroll, CdkScrollable, CdkVirtualForOf, CdkVirtualScrollViewport]; }, imports: function () { return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["BidiModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["PlatformModule"]]; }, exports: function () { return [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["BidiModule"], CdkFixedSizeVirtualScroll, CdkScrollable, CdkVirtualForOf, CdkVirtualScrollViewport]; } }); })();
  109124. /*@__PURE__*/ (function () { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵsetClassMetadata"](ScrollingModule, [{
  109125. type: _angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"],
  109126. args: [{
  109127. imports: [_angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["BidiModule"], _angular_cdk_platform__WEBPACK_IMPORTED_MODULE_4__["PlatformModule"]],
  109128. exports: [
  109129. _angular_cdk_bidi__WEBPACK_IMPORTED_MODULE_5__["BidiModule"],
  109130. CdkFixedSizeVirtualScroll,
  109131. CdkScrollable,
  109132. CdkVirtualForOf,
  109133. CdkVirtualScrollViewport,
  109134. ],
  109135. declarations: [
  109136. CdkFixedSizeVirtualScroll,
  109137. CdkScrollable,
  109138. CdkVirtualForOf,
  109139. CdkVirtualScrollViewport,
  109140. ]
  109141. }]
  109142. }], null, null); })();
  109143. /**
  109144. * @fileoverview added by tsickle
  109145. * Generated from: src/cdk/scrolling/public-api.ts
  109146. * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  109147. */
  109148. /**
  109149. * Generated bundle index. Do not edit.
  109150. */
  109151. //# sourceMappingURL=scrolling.js.map
  109152. /***/ }),
  109153. /***/ "w1tV":
  109154. /*!****************************************************************!*\
  109155. !*** ./node_modules/rxjs/_esm2015/internal/operators/share.js ***!
  109156. \****************************************************************/
  109157. /*! exports provided: share */
  109158. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  109159. "use strict";
  109160. __webpack_require__.r(__webpack_exports__);
  109161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "share", function() { return share; });
  109162. /* harmony import */ var _multicast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./multicast */ "oB13");
  109163. /* harmony import */ var _refCount__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./refCount */ "x+ZX");
  109164. /* harmony import */ var _Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../Subject */ "XNiG");
  109165. function shareSubjectFactory() {
  109166. return new _Subject__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
  109167. }
  109168. function share() {
  109169. return (source) => Object(_refCount__WEBPACK_IMPORTED_MODULE_1__["refCount"])()(Object(_multicast__WEBPACK_IMPORTED_MODULE_0__["multicast"])(shareSubjectFactory)(source));
  109170. }
  109171. //# sourceMappingURL=share.js.map
  109172. /***/ }),
  109173. /***/ "wHSu":
  109174. /*!********************************************************************!*\
  109175. !*** ./node_modules/@fortawesome/free-solid-svg-icons/index.es.js ***!
  109176. \********************************************************************/
  109177. /*! exports provided: fas, prefix, faAd, faAddressBook, faAddressCard, faAdjust, faAirFreshener, faAlignCenter, faAlignJustify, faAlignLeft, faAlignRight, faAllergies, faAmbulance, faAmericanSignLanguageInterpreting, faAnchor, faAngleDoubleDown, faAngleDoubleLeft, faAngleDoubleRight, faAngleDoubleUp, faAngleDown, faAngleLeft, faAngleRight, faAngleUp, faAngry, faAnkh, faAppleAlt, faArchive, faArchway, faArrowAltCircleDown, faArrowAltCircleLeft, faArrowAltCircleRight, faArrowAltCircleUp, faArrowCircleDown, faArrowCircleLeft, faArrowCircleRight, faArrowCircleUp, faArrowDown, faArrowLeft, faArrowRight, faArrowUp, faArrowsAlt, faArrowsAltH, faArrowsAltV, faAssistiveListeningSystems, faAsterisk, faAt, faAtlas, faAtom, faAudioDescription, faAward, faBaby, faBabyCarriage, faBackspace, faBackward, faBacon, faBacteria, faBacterium, faBahai, faBalanceScale, faBalanceScaleLeft, faBalanceScaleRight, faBan, faBandAid, faBarcode, faBars, faBaseballBall, faBasketballBall, faBath, faBatteryEmpty, faBatteryFull, faBatteryHalf, faBatteryQuarter, faBatteryThreeQuarters, faBed, faBeer, faBell, faBellSlash, faBezierCurve, faBible, faBicycle, faBiking, faBinoculars, faBiohazard, faBirthdayCake, faBlender, faBlenderPhone, faBlind, faBlog, faBold, faBolt, faBomb, faBone, faBong, faBook, faBookDead, faBookMedical, faBookOpen, faBookReader, faBookmark, faBorderAll, faBorderNone, faBorderStyle, faBowlingBall, faBox, faBoxOpen, faBoxTissue, faBoxes, faBraille, faBrain, faBreadSlice, faBriefcase, faBriefcaseMedical, faBroadcastTower, faBroom, faBrush, faBug, faBuilding, faBullhorn, faBullseye, faBurn, faBus, faBusAlt, faBusinessTime, faCalculator, faCalendar, faCalendarAlt, faCalendarCheck, faCalendarDay, faCalendarMinus, faCalendarPlus, faCalendarTimes, faCalendarWeek, faCamera, faCameraRetro, faCampground, faCandyCane, faCannabis, faCapsules, faCar, faCarAlt, faCarBattery, faCarCrash, faCarSide, faCaravan, faCaretDown, faCaretLeft, faCaretRight, faCaretSquareDown, faCaretSquareLeft, faCaretSquareRight, faCaretSquareUp, faCaretUp, faCarrot, faCartArrowDown, faCartPlus, faCashRegister, faCat, faCertificate, faChair, faChalkboard, faChalkboardTeacher, faChargingStation, faChartArea, faChartBar, faChartLine, faChartPie, faCheck, faCheckCircle, faCheckDouble, faCheckSquare, faCheese, faChess, faChessBishop, faChessBoard, faChessKing, faChessKnight, faChessPawn, faChessQueen, faChessRook, faChevronCircleDown, faChevronCircleLeft, faChevronCircleRight, faChevronCircleUp, faChevronDown, faChevronLeft, faChevronRight, faChevronUp, faChild, faChurch, faCircle, faCircleNotch, faCity, faClinicMedical, faClipboard, faClipboardCheck, faClipboardList, faClock, faClone, faClosedCaptioning, faCloud, faCloudDownloadAlt, faCloudMeatball, faCloudMoon, faCloudMoonRain, faCloudRain, faCloudShowersHeavy, faCloudSun, faCloudSunRain, faCloudUploadAlt, faCocktail, faCode, faCodeBranch, faCoffee, faCog, faCogs, faCoins, faColumns, faComment, faCommentAlt, faCommentDollar, faCommentDots, faCommentMedical, faCommentSlash, faComments, faCommentsDollar, faCompactDisc, faCompass, faCompress, faCompressAlt, faCompressArrowsAlt, faConciergeBell, faCookie, faCookieBite, faCopy, faCopyright, faCouch, faCreditCard, faCrop, faCropAlt, faCross, faCrosshairs, faCrow, faCrown, faCrutch, faCube, faCubes, faCut, faDatabase, faDeaf, faDemocrat, faDesktop, faDharmachakra, faDiagnoses, faDice, faDiceD20, faDiceD6, faDiceFive, faDiceFour, faDiceOne, faDiceSix, faDiceThree, faDiceTwo, faDigitalTachograph, faDirections, faDisease, faDivide, faDizzy, faDna, faDog, faDollarSign, faDolly, faDollyFlatbed, faDonate, faDoorClosed, faDoorOpen, faDotCircle, faDove, faDownload, faDraftingCompass, faDragon, faDrawPolygon, faDrum, faDrumSteelpan, faDrumstickBite, faDumbbell, faDumpster, faDumpsterFire, faDungeon, faEdit, faEgg, faEject, faEllipsisH, faEllipsisV, faEnvelope, faEnvelopeOpen, faEnvelopeOpenText, faEnvelopeSquare, faEquals, faEraser, faEthernet, faEuroSign, faExchangeAlt, faExclamation, faExclamationCircle, faExclamationTriangle, faExpand, faExpandAlt, faExpandArrowsAlt, faExternalLinkAlt, faExternalLinkSquareAlt, faEye, faEyeDropper, faEyeSlash, faFan, faFastBackward, faFastForward, faFaucet, faFax, faFeather, faFeatherAlt, faFemale, faFighterJet, faFile, faFileAlt, faFileArchive, faFileAudio, faFileCode, faFileContract, faFileCsv, faFileDownload, faFileExcel, faFileExport, faFileImage, faFileImport, faFileInvoice, faFileInvoiceDollar, faFileMedical, faFileMedicalAlt, faFilePdf, faFilePowerpoint, faFilePrescription, faFileSignature, faFileUpload, faFileVideo, faFileWord, faFill, faFillDrip, faFilm, faFilter, faFingerprint, faFire, faFireAlt, faFireExtinguisher, faFirstAid, faFish, faFistRaised, faFlag, faFlagCheckered, faFlagUsa, faFlask, faFlushed, faFolder, faFolderMinus, faFolderOpen, faFolderPlus, faFont, faFontAwesomeLogoFull, faFootballBall, faForward, faFrog, faFrown, faFrownOpen, faFunnelDollar, faFutbol, faGamepad, faGasPump, faGavel, faGem, faGenderless, faGhost, faGift, faGifts, faGlassCheers, faGlassMartini, faGlassMartiniAlt, faGlassWhiskey, faGlasses, faGlobe, faGlobeAfrica, faGlobeAmericas, faGlobeAsia, faGlobeEurope, faGolfBall, faGopuram, faGraduationCap, faGreaterThan, faGreaterThanEqual, faGrimace, faGrin, faGrinAlt, faGrinBeam, faGrinBeamSweat, faGrinHearts, faGrinSquint, faGrinSquintTears, faGrinStars, faGrinTears, faGrinTongue, faGrinTongueSquint, faGrinTongueWink, faGrinWink, faGripHorizontal, faGripLines, faGripLinesVertical, faGripVertical, faGuitar, faHSquare, faHamburger, faHammer, faHamsa, faHandHolding, faHandHoldingHeart, faHandHoldingMedical, faHandHoldingUsd, faHandHoldingWater, faHandLizard, faHandMiddleFinger, faHandPaper, faHandPeace, faHandPointDown, faHandPointLeft, faHandPointRight, faHandPointUp, faHandPointer, faHandRock, faHandScissors, faHandSparkles, faHandSpock, faHands, faHandsHelping, faHandsWash, faHandshake, faHandshakeAltSlash, faHandshakeSlash, faHanukiah, faHardHat, faHashtag, faHatCowboy, faHatCowboySide, faHatWizard, faHdd, faHeadSideCough, faHeadSideCoughSlash, faHeadSideMask, faHeadSideVirus, faHeading, faHeadphones, faHeadphonesAlt, faHeadset, faHeart, faHeartBroken, faHeartbeat, faHelicopter, faHighlighter, faHiking, faHippo, faHistory, faHockeyPuck, faHollyBerry, faHome, faHorse, faHorseHead, faHospital, faHospitalAlt, faHospitalSymbol, faHospitalUser, faHotTub, faHotdog, faHotel, faHourglass, faHourglassEnd, faHourglassHalf, faHourglassStart, faHouseDamage, faHouseUser, faHryvnia, faICursor, faIceCream, faIcicles, faIcons, faIdBadge, faIdCard, faIdCardAlt, faIgloo, faImage, faImages, faInbox, faIndent, faIndustry, faInfinity, faInfo, faInfoCircle, faItalic, faJedi, faJoint, faJournalWhills, faKaaba, faKey, faKeyboard, faKhanda, faKiss, faKissBeam, faKissWinkHeart, faKiwiBird, faLandmark, faLanguage, faLaptop, faLaptopCode, faLaptopHouse, faLaptopMedical, faLaugh, faLaughBeam, faLaughSquint, faLaughWink, faLayerGroup, faLeaf, faLemon, faLessThan, faLessThanEqual, faLevelDownAlt, faLevelUpAlt, faLifeRing, faLightbulb, faLink, faLiraSign, faList, faListAlt, faListOl, faListUl, faLocationArrow, faLock, faLockOpen, faLongArrowAltDown, faLongArrowAltLeft, faLongArrowAltRight, faLongArrowAltUp, faLowVision, faLuggageCart, faLungs, faLungsVirus, faMagic, faMagnet, faMailBulk, faMale, faMap, faMapMarked, faMapMarkedAlt, faMapMarker, faMapMarkerAlt, faMapPin, faMapSigns, faMarker, faMars, faMarsDouble, faMarsStroke, faMarsStrokeH, faMarsStrokeV, faMask, faMedal, faMedkit, faMeh, faMehBlank, faMehRollingEyes, faMemory, faMenorah, faMercury, faMeteor, faMicrochip, faMicrophone, faMicrophoneAlt, faMicrophoneAltSlash, faMicrophoneSlash, faMicroscope, faMinus, faMinusCircle, faMinusSquare, faMitten, faMobile, faMobileAlt, faMoneyBill, faMoneyBillAlt, faMoneyBillWave, faMoneyBillWaveAlt, faMoneyCheck, faMoneyCheckAlt, faMonument, faMoon, faMortarPestle, faMosque, faMotorcycle, faMountain, faMouse, faMousePointer, faMugHot, faMusic, faNetworkWired, faNeuter, faNewspaper, faNotEqual, faNotesMedical, faObjectGroup, faObjectUngroup, faOilCan, faOm, faOtter, faOutdent, faPager, faPaintBrush, faPaintRoller, faPalette, faPallet, faPaperPlane, faPaperclip, faParachuteBox, faParagraph, faParking, faPassport, faPastafarianism, faPaste, faPause, faPauseCircle, faPaw, faPeace, faPen, faPenAlt, faPenFancy, faPenNib, faPenSquare, faPencilAlt, faPencilRuler, faPeopleArrows, faPeopleCarry, faPepperHot, faPercent, faPercentage, faPersonBooth, faPhone, faPhoneAlt, faPhoneSlash, faPhoneSquare, faPhoneSquareAlt, faPhoneVolume, faPhotoVideo, faPiggyBank, faPills, faPizzaSlice, faPlaceOfWorship, faPlane, faPlaneArrival, faPlaneDeparture, faPlaneSlash, faPlay, faPlayCircle, faPlug, faPlus, faPlusCircle, faPlusSquare, faPodcast, faPoll, faPollH, faPoo, faPooStorm, faPoop, faPortrait, faPoundSign, faPowerOff, faPray, faPrayingHands, faPrescription, faPrescriptionBottle, faPrescriptionBottleAlt, faPrint, faProcedures, faProjectDiagram, faPumpMedical, faPumpSoap, faPuzzlePiece, faQrcode, faQuestion, faQuestionCircle, faQuidditch, faQuoteLeft, faQuoteRight, faQuran, faRadiation, faRadiationAlt, faRainbow, faRandom, faReceipt, faRecordVinyl, faRecycle, faRedo, faRedoAlt, faRegistered, faRemoveFormat, faReply, faReplyAll, faRepublican, faRestroom, faRetweet, faRibbon, faRing, faRoad, faRobot, faRocket, faRoute, faRss, faRssSquare, faRubleSign, faRuler, faRulerCombined, faRulerHorizontal, faRulerVertical, faRunning, faRupeeSign, faSadCry, faSadTear, faSatellite, faSatelliteDish, faSave, faSchool, faScrewdriver, faScroll, faSdCard, faSearch, faSearchDollar, faSearchLocation, faSearchMinus, faSearchPlus, faSeedling, faServer, faShapes, faShare, faShareAlt, faShareAltSquare, faShareSquare, faShekelSign, faShieldAlt, faShieldVirus, faShip, faShippingFast, faShoePrints, faShoppingBag, faShoppingBasket, faShoppingCart, faShower, faShuttleVan, faSign, faSignInAlt, faSignLanguage, faSignOutAlt, faSignal, faSignature, faSimCard, faSink, faSitemap, faSkating, faSkiing, faSkiingNordic, faSkull, faSkullCrossbones, faSlash, faSleigh, faSlidersH, faSmile, faSmileBeam, faSmileWink, faSmog, faSmoking, faSmokingBan, faSms, faSnowboarding, faSnowflake, faSnowman, faSnowplow, faSoap, faSocks, faSolarPanel, faSort, faSortAlphaDown, faSortAlphaDownAlt, faSortAlphaUp, faSortAlphaUpAlt, faSortAmountDown, faSortAmountDownAlt, faSortAmountUp, faSortAmountUpAlt, faSortDown, faSortNumericDown, faSortNumericDownAlt, faSortNumericUp, faSortNumericUpAlt, faSortUp, faSpa, faSpaceShuttle, faSpellCheck, faSpider, faSpinner, faSplotch, faSprayCan, faSquare, faSquareFull, faSquareRootAlt, faStamp, faStar, faStarAndCrescent, faStarHalf, faStarHalfAlt, faStarOfDavid, faStarOfLife, faStepBackward, faStepForward, faStethoscope, faStickyNote, faStop, faStopCircle, faStopwatch, faStopwatch20, faStore, faStoreAlt, faStoreAltSlash, faStoreSlash, faStream, faStreetView, faStrikethrough, faStroopwafel, faSubscript, faSubway, faSuitcase, faSuitcaseRolling, faSun, faSuperscript, faSurprise, faSwatchbook, faSwimmer, faSwimmingPool, faSynagogue, faSync, faSyncAlt, faSyringe, faTable, faTableTennis, faTablet, faTabletAlt, faTablets, faTachometerAlt, faTag, faTags, faTape, faTasks, faTaxi, faTeeth, faTeethOpen, faTemperatureHigh, faTemperatureLow, faTenge, faTerminal, faTextHeight, faTextWidth, faTh, faThLarge, faThList, faTheaterMasks, faThermometer, faThermometerEmpty, faThermometerFull, faThermometerHalf, faThermometerQuarter, faThermometerThreeQuarters, faThumbsDown, faThumbsUp, faThumbtack, faTicketAlt, faTimes, faTimesCircle, faTint, faTintSlash, faTired, faToggleOff, faToggleOn, faToilet, faToiletPaper, faToiletPaperSlash, faToolbox, faTools, faTooth, faTorah, faToriiGate, faTractor, faTrademark, faTrafficLight, faTrailer, faTrain, faTram, faTransgender, faTransgenderAlt, faTrash, faTrashAlt, faTrashRestore, faTrashRestoreAlt, faTree, faTrophy, faTruck, faTruckLoading, faTruckMonster, faTruckMoving, faTruckPickup, faTshirt, faTty, faTv, faUmbrella, faUmbrellaBeach, faUnderline, faUndo, faUndoAlt, faUniversalAccess, faUniversity, faUnlink, faUnlock, faUnlockAlt, faUpload, faUser, faUserAlt, faUserAltSlash, faUserAstronaut, faUserCheck, faUserCircle, faUserClock, faUserCog, faUserEdit, faUserFriends, faUserGraduate, faUserInjured, faUserLock, faUserMd, faUserMinus, faUserNinja, faUserNurse, faUserPlus, faUserSecret, faUserShield, faUserSlash, faUserTag, faUserTie, faUserTimes, faUsers, faUsersCog, faUsersSlash, faUtensilSpoon, faUtensils, faVectorSquare, faVenus, faVenusDouble, faVenusMars, faVest, faVestPatches, faVial, faVials, faVideo, faVideoSlash, faVihara, faVirus, faVirusSlash, faViruses, faVoicemail, faVolleyballBall, faVolumeDown, faVolumeMute, faVolumeOff, faVolumeUp, faVoteYea, faVrCardboard, faWalking, faWallet, faWarehouse, faWater, faWaveSquare, faWeight, faWeightHanging, faWheelchair, faWifi, faWind, faWindowClose, faWindowMaximize, faWindowMinimize, faWindowRestore, faWineBottle, faWineGlass, faWineGlassAlt, faWonSign, faWrench, faXRay, faYenSign, faYinYang */
  109178. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  109179. "use strict";
  109180. __webpack_require__.r(__webpack_exports__);
  109181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fas", function() { return _iconsCache; });
  109182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "prefix", function() { return prefix; });
  109183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAd", function() { return faAd; });
  109184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressBook", function() { return faAddressBook; });
  109185. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAddressCard", function() { return faAddressCard; });
  109186. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAdjust", function() { return faAdjust; });
  109187. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAirFreshener", function() { return faAirFreshener; });
  109188. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignCenter", function() { return faAlignCenter; });
  109189. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignJustify", function() { return faAlignJustify; });
  109190. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignLeft", function() { return faAlignLeft; });
  109191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAlignRight", function() { return faAlignRight; });
  109192. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAllergies", function() { return faAllergies; });
  109193. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmbulance", function() { return faAmbulance; });
  109194. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAmericanSignLanguageInterpreting", function() { return faAmericanSignLanguageInterpreting; });
  109195. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnchor", function() { return faAnchor; });
  109196. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleDown", function() { return faAngleDoubleDown; });
  109197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleLeft", function() { return faAngleDoubleLeft; });
  109198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleRight", function() { return faAngleDoubleRight; });
  109199. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDoubleUp", function() { return faAngleDoubleUp; });
  109200. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleDown", function() { return faAngleDown; });
  109201. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleLeft", function() { return faAngleLeft; });
  109202. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleRight", function() { return faAngleRight; });
  109203. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngleUp", function() { return faAngleUp; });
  109204. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAngry", function() { return faAngry; });
  109205. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAnkh", function() { return faAnkh; });
  109206. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAppleAlt", function() { return faAppleAlt; });
  109207. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchive", function() { return faArchive; });
  109208. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArchway", function() { return faArchway; });
  109209. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleDown", function() { return faArrowAltCircleDown; });
  109210. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleLeft", function() { return faArrowAltCircleLeft; });
  109211. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleRight", function() { return faArrowAltCircleRight; });
  109212. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowAltCircleUp", function() { return faArrowAltCircleUp; });
  109213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleDown", function() { return faArrowCircleDown; });
  109214. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleLeft", function() { return faArrowCircleLeft; });
  109215. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleRight", function() { return faArrowCircleRight; });
  109216. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowCircleUp", function() { return faArrowCircleUp; });
  109217. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowDown", function() { return faArrowDown; });
  109218. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowLeft", function() { return faArrowLeft; });
  109219. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowRight", function() { return faArrowRight; });
  109220. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowUp", function() { return faArrowUp; });
  109221. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAlt", function() { return faArrowsAlt; });
  109222. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltH", function() { return faArrowsAltH; });
  109223. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faArrowsAltV", function() { return faArrowsAltV; });
  109224. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAssistiveListeningSystems", function() { return faAssistiveListeningSystems; });
  109225. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAsterisk", function() { return faAsterisk; });
  109226. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAt", function() { return faAt; });
  109227. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtlas", function() { return faAtlas; });
  109228. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAtom", function() { return faAtom; });
  109229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAudioDescription", function() { return faAudioDescription; });
  109230. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faAward", function() { return faAward; });
  109231. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaby", function() { return faBaby; });
  109232. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBabyCarriage", function() { return faBabyCarriage; });
  109233. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackspace", function() { return faBackspace; });
  109234. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBackward", function() { return faBackward; });
  109235. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacon", function() { return faBacon; });
  109236. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacteria", function() { return faBacteria; });
  109237. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBacterium", function() { return faBacterium; });
  109238. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBahai", function() { return faBahai; });
  109239. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScale", function() { return faBalanceScale; });
  109240. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScaleLeft", function() { return faBalanceScaleLeft; });
  109241. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBalanceScaleRight", function() { return faBalanceScaleRight; });
  109242. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBan", function() { return faBan; });
  109243. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBandAid", function() { return faBandAid; });
  109244. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBarcode", function() { return faBarcode; });
  109245. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBars", function() { return faBars; });
  109246. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBaseballBall", function() { return faBaseballBall; });
  109247. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBasketballBall", function() { return faBasketballBall; });
  109248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBath", function() { return faBath; });
  109249. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryEmpty", function() { return faBatteryEmpty; });
  109250. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryFull", function() { return faBatteryFull; });
  109251. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryHalf", function() { return faBatteryHalf; });
  109252. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryQuarter", function() { return faBatteryQuarter; });
  109253. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBatteryThreeQuarters", function() { return faBatteryThreeQuarters; });
  109254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBed", function() { return faBed; });
  109255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBeer", function() { return faBeer; });
  109256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBell", function() { return faBell; });
  109257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBellSlash", function() { return faBellSlash; });
  109258. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBezierCurve", function() { return faBezierCurve; });
  109259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBible", function() { return faBible; });
  109260. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBicycle", function() { return faBicycle; });
  109261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBiking", function() { return faBiking; });
  109262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBinoculars", function() { return faBinoculars; });
  109263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBiohazard", function() { return faBiohazard; });
  109264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBirthdayCake", function() { return faBirthdayCake; });
  109265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlender", function() { return faBlender; });
  109266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlenderPhone", function() { return faBlenderPhone; });
  109267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlind", function() { return faBlind; });
  109268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBlog", function() { return faBlog; });
  109269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBold", function() { return faBold; });
  109270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBolt", function() { return faBolt; });
  109271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBomb", function() { return faBomb; });
  109272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBone", function() { return faBone; });
  109273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBong", function() { return faBong; });
  109274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBook", function() { return faBook; });
  109275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookDead", function() { return faBookDead; });
  109276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookMedical", function() { return faBookMedical; });
  109277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookOpen", function() { return faBookOpen; });
  109278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookReader", function() { return faBookReader; });
  109279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBookmark", function() { return faBookmark; });
  109280. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderAll", function() { return faBorderAll; });
  109281. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderNone", function() { return faBorderNone; });
  109282. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBorderStyle", function() { return faBorderStyle; });
  109283. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBowlingBall", function() { return faBowlingBall; });
  109284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBox", function() { return faBox; });
  109285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxOpen", function() { return faBoxOpen; });
  109286. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxTissue", function() { return faBoxTissue; });
  109287. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBoxes", function() { return faBoxes; });
  109288. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBraille", function() { return faBraille; });
  109289. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrain", function() { return faBrain; });
  109290. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBreadSlice", function() { return faBreadSlice; });
  109291. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcase", function() { return faBriefcase; });
  109292. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBriefcaseMedical", function() { return faBriefcaseMedical; });
  109293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroadcastTower", function() { return faBroadcastTower; });
  109294. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBroom", function() { return faBroom; });
  109295. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBrush", function() { return faBrush; });
  109296. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBug", function() { return faBug; });
  109297. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBuilding", function() { return faBuilding; });
  109298. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullhorn", function() { return faBullhorn; });
  109299. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBullseye", function() { return faBullseye; });
  109300. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBurn", function() { return faBurn; });
  109301. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBus", function() { return faBus; });
  109302. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusAlt", function() { return faBusAlt; });
  109303. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faBusinessTime", function() { return faBusinessTime; });
  109304. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalculator", function() { return faCalculator; });
  109305. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendar", function() { return faCalendar; });
  109306. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarAlt", function() { return faCalendarAlt; });
  109307. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarCheck", function() { return faCalendarCheck; });
  109308. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarDay", function() { return faCalendarDay; });
  109309. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarMinus", function() { return faCalendarMinus; });
  109310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarPlus", function() { return faCalendarPlus; });
  109311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarTimes", function() { return faCalendarTimes; });
  109312. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCalendarWeek", function() { return faCalendarWeek; });
  109313. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCamera", function() { return faCamera; });
  109314. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCameraRetro", function() { return faCameraRetro; });
  109315. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCampground", function() { return faCampground; });
  109316. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCandyCane", function() { return faCandyCane; });
  109317. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCannabis", function() { return faCannabis; });
  109318. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCapsules", function() { return faCapsules; });
  109319. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCar", function() { return faCar; });
  109320. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarAlt", function() { return faCarAlt; });
  109321. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarBattery", function() { return faCarBattery; });
  109322. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarCrash", function() { return faCarCrash; });
  109323. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarSide", function() { return faCarSide; });
  109324. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaravan", function() { return faCaravan; });
  109325. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretDown", function() { return faCaretDown; });
  109326. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretLeft", function() { return faCaretLeft; });
  109327. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretRight", function() { return faCaretRight; });
  109328. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareDown", function() { return faCaretSquareDown; });
  109329. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareLeft", function() { return faCaretSquareLeft; });
  109330. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareRight", function() { return faCaretSquareRight; });
  109331. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretSquareUp", function() { return faCaretSquareUp; });
  109332. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCaretUp", function() { return faCaretUp; });
  109333. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCarrot", function() { return faCarrot; });
  109334. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartArrowDown", function() { return faCartArrowDown; });
  109335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCartPlus", function() { return faCartPlus; });
  109336. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCashRegister", function() { return faCashRegister; });
  109337. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCat", function() { return faCat; });
  109338. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCertificate", function() { return faCertificate; });
  109339. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChair", function() { return faChair; });
  109340. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboard", function() { return faChalkboard; });
  109341. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChalkboardTeacher", function() { return faChalkboardTeacher; });
  109342. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChargingStation", function() { return faChargingStation; });
  109343. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartArea", function() { return faChartArea; });
  109344. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartBar", function() { return faChartBar; });
  109345. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartLine", function() { return faChartLine; });
  109346. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChartPie", function() { return faChartPie; });
  109347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheck", function() { return faCheck; });
  109348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckCircle", function() { return faCheckCircle; });
  109349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckDouble", function() { return faCheckDouble; });
  109350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheckSquare", function() { return faCheckSquare; });
  109351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCheese", function() { return faCheese; });
  109352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChess", function() { return faChess; });
  109353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBishop", function() { return faChessBishop; });
  109354. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessBoard", function() { return faChessBoard; });
  109355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKing", function() { return faChessKing; });
  109356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessKnight", function() { return faChessKnight; });
  109357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessPawn", function() { return faChessPawn; });
  109358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessQueen", function() { return faChessQueen; });
  109359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChessRook", function() { return faChessRook; });
  109360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleDown", function() { return faChevronCircleDown; });
  109361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleLeft", function() { return faChevronCircleLeft; });
  109362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleRight", function() { return faChevronCircleRight; });
  109363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronCircleUp", function() { return faChevronCircleUp; });
  109364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronDown", function() { return faChevronDown; });
  109365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronLeft", function() { return faChevronLeft; });
  109366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronRight", function() { return faChevronRight; });
  109367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChevronUp", function() { return faChevronUp; });
  109368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChild", function() { return faChild; });
  109369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faChurch", function() { return faChurch; });
  109370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircle", function() { return faCircle; });
  109371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCircleNotch", function() { return faCircleNotch; });
  109372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCity", function() { return faCity; });
  109373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClinicMedical", function() { return faClinicMedical; });
  109374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboard", function() { return faClipboard; });
  109375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardCheck", function() { return faClipboardCheck; });
  109376. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClipboardList", function() { return faClipboardList; });
  109377. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClock", function() { return faClock; });
  109378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClone", function() { return faClone; });
  109379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faClosedCaptioning", function() { return faClosedCaptioning; });
  109380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloud", function() { return faCloud; });
  109381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudDownloadAlt", function() { return faCloudDownloadAlt; });
  109382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMeatball", function() { return faCloudMeatball; });
  109383. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoon", function() { return faCloudMoon; });
  109384. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudMoonRain", function() { return faCloudMoonRain; });
  109385. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudRain", function() { return faCloudRain; });
  109386. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudShowersHeavy", function() { return faCloudShowersHeavy; });
  109387. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSun", function() { return faCloudSun; });
  109388. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudSunRain", function() { return faCloudSunRain; });
  109389. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCloudUploadAlt", function() { return faCloudUploadAlt; });
  109390. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCocktail", function() { return faCocktail; });
  109391. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCode", function() { return faCode; });
  109392. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCodeBranch", function() { return faCodeBranch; });
  109393. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoffee", function() { return faCoffee; });
  109394. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCog", function() { return faCog; });
  109395. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCogs", function() { return faCogs; });
  109396. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCoins", function() { return faCoins; });
  109397. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faColumns", function() { return faColumns; });
  109398. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComment", function() { return faComment; });
  109399. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentAlt", function() { return faCommentAlt; });
  109400. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDollar", function() { return faCommentDollar; });
  109401. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentDots", function() { return faCommentDots; });
  109402. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentMedical", function() { return faCommentMedical; });
  109403. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentSlash", function() { return faCommentSlash; });
  109404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faComments", function() { return faComments; });
  109405. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCommentsDollar", function() { return faCommentsDollar; });
  109406. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompactDisc", function() { return faCompactDisc; });
  109407. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompass", function() { return faCompass; });
  109408. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompress", function() { return faCompress; });
  109409. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompressAlt", function() { return faCompressAlt; });
  109410. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCompressArrowsAlt", function() { return faCompressArrowsAlt; });
  109411. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faConciergeBell", function() { return faConciergeBell; });
  109412. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookie", function() { return faCookie; });
  109413. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCookieBite", function() { return faCookieBite; });
  109414. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopy", function() { return faCopy; });
  109415. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCopyright", function() { return faCopyright; });
  109416. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCouch", function() { return faCouch; });
  109417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCreditCard", function() { return faCreditCard; });
  109418. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrop", function() { return faCrop; });
  109419. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCropAlt", function() { return faCropAlt; });
  109420. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCross", function() { return faCross; });
  109421. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrosshairs", function() { return faCrosshairs; });
  109422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrow", function() { return faCrow; });
  109423. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrown", function() { return faCrown; });
  109424. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCrutch", function() { return faCrutch; });
  109425. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCube", function() { return faCube; });
  109426. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCubes", function() { return faCubes; });
  109427. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faCut", function() { return faCut; });
  109428. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDatabase", function() { return faDatabase; });
  109429. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDeaf", function() { return faDeaf; });
  109430. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDemocrat", function() { return faDemocrat; });
  109431. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDesktop", function() { return faDesktop; });
  109432. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDharmachakra", function() { return faDharmachakra; });
  109433. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiagnoses", function() { return faDiagnoses; });
  109434. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDice", function() { return faDice; });
  109435. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD20", function() { return faDiceD20; });
  109436. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceD6", function() { return faDiceD6; });
  109437. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFive", function() { return faDiceFive; });
  109438. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceFour", function() { return faDiceFour; });
  109439. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceOne", function() { return faDiceOne; });
  109440. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceSix", function() { return faDiceSix; });
  109441. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceThree", function() { return faDiceThree; });
  109442. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDiceTwo", function() { return faDiceTwo; });
  109443. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDigitalTachograph", function() { return faDigitalTachograph; });
  109444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDirections", function() { return faDirections; });
  109445. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDisease", function() { return faDisease; });
  109446. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDivide", function() { return faDivide; });
  109447. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDizzy", function() { return faDizzy; });
  109448. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDna", function() { return faDna; });
  109449. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDog", function() { return faDog; });
  109450. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollarSign", function() { return faDollarSign; });
  109451. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDolly", function() { return faDolly; });
  109452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDollyFlatbed", function() { return faDollyFlatbed; });
  109453. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDonate", function() { return faDonate; });
  109454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorClosed", function() { return faDoorClosed; });
  109455. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDoorOpen", function() { return faDoorOpen; });
  109456. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDotCircle", function() { return faDotCircle; });
  109457. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDove", function() { return faDove; });
  109458. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDownload", function() { return faDownload; });
  109459. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDraftingCompass", function() { return faDraftingCompass; });
  109460. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDragon", function() { return faDragon; });
  109461. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrawPolygon", function() { return faDrawPolygon; });
  109462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrum", function() { return faDrum; });
  109463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumSteelpan", function() { return faDrumSteelpan; });
  109464. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDrumstickBite", function() { return faDrumstickBite; });
  109465. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumbbell", function() { return faDumbbell; });
  109466. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumpster", function() { return faDumpster; });
  109467. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDumpsterFire", function() { return faDumpsterFire; });
  109468. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faDungeon", function() { return faDungeon; });
  109469. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEdit", function() { return faEdit; });
  109470. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEgg", function() { return faEgg; });
  109471. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEject", function() { return faEject; });
  109472. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisH", function() { return faEllipsisH; });
  109473. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEllipsisV", function() { return faEllipsisV; });
  109474. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelope", function() { return faEnvelope; });
  109475. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpen", function() { return faEnvelopeOpen; });
  109476. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeOpenText", function() { return faEnvelopeOpenText; });
  109477. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEnvelopeSquare", function() { return faEnvelopeSquare; });
  109478. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEquals", function() { return faEquals; });
  109479. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEraser", function() { return faEraser; });
  109480. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEthernet", function() { return faEthernet; });
  109481. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEuroSign", function() { return faEuroSign; });
  109482. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExchangeAlt", function() { return faExchangeAlt; });
  109483. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamation", function() { return faExclamation; });
  109484. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationCircle", function() { return faExclamationCircle; });
  109485. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExclamationTriangle", function() { return faExclamationTriangle; });
  109486. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpand", function() { return faExpand; });
  109487. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandAlt", function() { return faExpandAlt; });
  109488. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExpandArrowsAlt", function() { return faExpandArrowsAlt; });
  109489. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkAlt", function() { return faExternalLinkAlt; });
  109490. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faExternalLinkSquareAlt", function() { return faExternalLinkSquareAlt; });
  109491. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEye", function() { return faEye; });
  109492. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeDropper", function() { return faEyeDropper; });
  109493. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faEyeSlash", function() { return faEyeSlash; });
  109494. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFan", function() { return faFan; });
  109495. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastBackward", function() { return faFastBackward; });
  109496. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFastForward", function() { return faFastForward; });
  109497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFaucet", function() { return faFaucet; });
  109498. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFax", function() { return faFax; });
  109499. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeather", function() { return faFeather; });
  109500. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFeatherAlt", function() { return faFeatherAlt; });
  109501. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFemale", function() { return faFemale; });
  109502. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFighterJet", function() { return faFighterJet; });
  109503. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFile", function() { return faFile; });
  109504. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAlt", function() { return faFileAlt; });
  109505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileArchive", function() { return faFileArchive; });
  109506. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileAudio", function() { return faFileAudio; });
  109507. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCode", function() { return faFileCode; });
  109508. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileContract", function() { return faFileContract; });
  109509. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileCsv", function() { return faFileCsv; });
  109510. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileDownload", function() { return faFileDownload; });
  109511. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExcel", function() { return faFileExcel; });
  109512. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileExport", function() { return faFileExport; });
  109513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImage", function() { return faFileImage; });
  109514. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileImport", function() { return faFileImport; });
  109515. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoice", function() { return faFileInvoice; });
  109516. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileInvoiceDollar", function() { return faFileInvoiceDollar; });
  109517. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedical", function() { return faFileMedical; });
  109518. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileMedicalAlt", function() { return faFileMedicalAlt; });
  109519. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePdf", function() { return faFilePdf; });
  109520. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePowerpoint", function() { return faFilePowerpoint; });
  109521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilePrescription", function() { return faFilePrescription; });
  109522. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileSignature", function() { return faFileSignature; });
  109523. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileUpload", function() { return faFileUpload; });
  109524. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileVideo", function() { return faFileVideo; });
  109525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFileWord", function() { return faFileWord; });
  109526. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFill", function() { return faFill; });
  109527. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFillDrip", function() { return faFillDrip; });
  109528. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilm", function() { return faFilm; });
  109529. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFilter", function() { return faFilter; });
  109530. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFingerprint", function() { return faFingerprint; });
  109531. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFire", function() { return faFire; });
  109532. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireAlt", function() { return faFireAlt; });
  109533. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFireExtinguisher", function() { return faFireExtinguisher; });
  109534. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFirstAid", function() { return faFirstAid; });
  109535. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFish", function() { return faFish; });
  109536. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFistRaised", function() { return faFistRaised; });
  109537. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlag", function() { return faFlag; });
  109538. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagCheckered", function() { return faFlagCheckered; });
  109539. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlagUsa", function() { return faFlagUsa; });
  109540. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlask", function() { return faFlask; });
  109541. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFlushed", function() { return faFlushed; });
  109542. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolder", function() { return faFolder; });
  109543. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderMinus", function() { return faFolderMinus; });
  109544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderOpen", function() { return faFolderOpen; });
  109545. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFolderPlus", function() { return faFolderPlus; });
  109546. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFont", function() { return faFont; });
  109547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFontAwesomeLogoFull", function() { return faFontAwesomeLogoFull; });
  109548. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFootballBall", function() { return faFootballBall; });
  109549. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faForward", function() { return faForward; });
  109550. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrog", function() { return faFrog; });
  109551. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrown", function() { return faFrown; });
  109552. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFrownOpen", function() { return faFrownOpen; });
  109553. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFunnelDollar", function() { return faFunnelDollar; });
  109554. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faFutbol", function() { return faFutbol; });
  109555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGamepad", function() { return faGamepad; });
  109556. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGasPump", function() { return faGasPump; });
  109557. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGavel", function() { return faGavel; });
  109558. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGem", function() { return faGem; });
  109559. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGenderless", function() { return faGenderless; });
  109560. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGhost", function() { return faGhost; });
  109561. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGift", function() { return faGift; });
  109562. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGifts", function() { return faGifts; });
  109563. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassCheers", function() { return faGlassCheers; });
  109564. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartini", function() { return faGlassMartini; });
  109565. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassMartiniAlt", function() { return faGlassMartiniAlt; });
  109566. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlassWhiskey", function() { return faGlassWhiskey; });
  109567. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlasses", function() { return faGlasses; });
  109568. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobe", function() { return faGlobe; });
  109569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAfrica", function() { return faGlobeAfrica; });
  109570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAmericas", function() { return faGlobeAmericas; });
  109571. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeAsia", function() { return faGlobeAsia; });
  109572. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGlobeEurope", function() { return faGlobeEurope; });
  109573. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGolfBall", function() { return faGolfBall; });
  109574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGopuram", function() { return faGopuram; });
  109575. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGraduationCap", function() { return faGraduationCap; });
  109576. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThan", function() { return faGreaterThan; });
  109577. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGreaterThanEqual", function() { return faGreaterThanEqual; });
  109578. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrimace", function() { return faGrimace; });
  109579. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrin", function() { return faGrin; });
  109580. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinAlt", function() { return faGrinAlt; });
  109581. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeam", function() { return faGrinBeam; });
  109582. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinBeamSweat", function() { return faGrinBeamSweat; });
  109583. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinHearts", function() { return faGrinHearts; });
  109584. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquint", function() { return faGrinSquint; });
  109585. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinSquintTears", function() { return faGrinSquintTears; });
  109586. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinStars", function() { return faGrinStars; });
  109587. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTears", function() { return faGrinTears; });
  109588. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongue", function() { return faGrinTongue; });
  109589. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueSquint", function() { return faGrinTongueSquint; });
  109590. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinTongueWink", function() { return faGrinTongueWink; });
  109591. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGrinWink", function() { return faGrinWink; });
  109592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripHorizontal", function() { return faGripHorizontal; });
  109593. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripLines", function() { return faGripLines; });
  109594. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripLinesVertical", function() { return faGripLinesVertical; });
  109595. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGripVertical", function() { return faGripVertical; });
  109596. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faGuitar", function() { return faGuitar; });
  109597. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHSquare", function() { return faHSquare; });
  109598. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamburger", function() { return faHamburger; });
  109599. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHammer", function() { return faHammer; });
  109600. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHamsa", function() { return faHamsa; });
  109601. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHolding", function() { return faHandHolding; });
  109602. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingHeart", function() { return faHandHoldingHeart; });
  109603. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingMedical", function() { return faHandHoldingMedical; });
  109604. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingUsd", function() { return faHandHoldingUsd; });
  109605. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandHoldingWater", function() { return faHandHoldingWater; });
  109606. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandLizard", function() { return faHandLizard; });
  109607. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandMiddleFinger", function() { return faHandMiddleFinger; });
  109608. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPaper", function() { return faHandPaper; });
  109609. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPeace", function() { return faHandPeace; });
  109610. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointDown", function() { return faHandPointDown; });
  109611. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointLeft", function() { return faHandPointLeft; });
  109612. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointRight", function() { return faHandPointRight; });
  109613. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointUp", function() { return faHandPointUp; });
  109614. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandPointer", function() { return faHandPointer; });
  109615. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandRock", function() { return faHandRock; });
  109616. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandScissors", function() { return faHandScissors; });
  109617. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSparkles", function() { return faHandSparkles; });
  109618. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandSpock", function() { return faHandSpock; });
  109619. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHands", function() { return faHands; });
  109620. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsHelping", function() { return faHandsHelping; });
  109621. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandsWash", function() { return faHandsWash; });
  109622. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshake", function() { return faHandshake; });
  109623. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshakeAltSlash", function() { return faHandshakeAltSlash; });
  109624. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHandshakeSlash", function() { return faHandshakeSlash; });
  109625. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHanukiah", function() { return faHanukiah; });
  109626. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHardHat", function() { return faHardHat; });
  109627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHashtag", function() { return faHashtag; });
  109628. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatCowboy", function() { return faHatCowboy; });
  109629. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatCowboySide", function() { return faHatCowboySide; });
  109630. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHatWizard", function() { return faHatWizard; });
  109631. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHdd", function() { return faHdd; });
  109632. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideCough", function() { return faHeadSideCough; });
  109633. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideCoughSlash", function() { return faHeadSideCoughSlash; });
  109634. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideMask", function() { return faHeadSideMask; });
  109635. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadSideVirus", function() { return faHeadSideVirus; });
  109636. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeading", function() { return faHeading; });
  109637. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphones", function() { return faHeadphones; });
  109638. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadphonesAlt", function() { return faHeadphonesAlt; });
  109639. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeadset", function() { return faHeadset; });
  109640. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeart", function() { return faHeart; });
  109641. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartBroken", function() { return faHeartBroken; });
  109642. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHeartbeat", function() { return faHeartbeat; });
  109643. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHelicopter", function() { return faHelicopter; });
  109644. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHighlighter", function() { return faHighlighter; });
  109645. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHiking", function() { return faHiking; });
  109646. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHippo", function() { return faHippo; });
  109647. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHistory", function() { return faHistory; });
  109648. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHockeyPuck", function() { return faHockeyPuck; });
  109649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHollyBerry", function() { return faHollyBerry; });
  109650. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHome", function() { return faHome; });
  109651. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorse", function() { return faHorse; });
  109652. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHorseHead", function() { return faHorseHead; });
  109653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospital", function() { return faHospital; });
  109654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalAlt", function() { return faHospitalAlt; });
  109655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalSymbol", function() { return faHospitalSymbol; });
  109656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHospitalUser", function() { return faHospitalUser; });
  109657. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotTub", function() { return faHotTub; });
  109658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotdog", function() { return faHotdog; });
  109659. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHotel", function() { return faHotel; });
  109660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglass", function() { return faHourglass; });
  109661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassEnd", function() { return faHourglassEnd; });
  109662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassHalf", function() { return faHourglassHalf; });
  109663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHourglassStart", function() { return faHourglassStart; });
  109664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseDamage", function() { return faHouseDamage; });
  109665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHouseUser", function() { return faHouseUser; });
  109666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faHryvnia", function() { return faHryvnia; });
  109667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faICursor", function() { return faICursor; });
  109668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIceCream", function() { return faIceCream; });
  109669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIcicles", function() { return faIcicles; });
  109670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIcons", function() { return faIcons; });
  109671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdBadge", function() { return faIdBadge; });
  109672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCard", function() { return faIdCard; });
  109673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIdCardAlt", function() { return faIdCardAlt; });
  109674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIgloo", function() { return faIgloo; });
  109675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImage", function() { return faImage; });
  109676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faImages", function() { return faImages; });
  109677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInbox", function() { return faInbox; });
  109678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndent", function() { return faIndent; });
  109679. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faIndustry", function() { return faIndustry; });
  109680. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfinity", function() { return faInfinity; });
  109681. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfo", function() { return faInfo; });
  109682. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faInfoCircle", function() { return faInfoCircle; });
  109683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faItalic", function() { return faItalic; });
  109684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJedi", function() { return faJedi; });
  109685. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJoint", function() { return faJoint; });
  109686. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faJournalWhills", function() { return faJournalWhills; });
  109687. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKaaba", function() { return faKaaba; });
  109688. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKey", function() { return faKey; });
  109689. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKeyboard", function() { return faKeyboard; });
  109690. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKhanda", function() { return faKhanda; });
  109691. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiss", function() { return faKiss; });
  109692. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissBeam", function() { return faKissBeam; });
  109693. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKissWinkHeart", function() { return faKissWinkHeart; });
  109694. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faKiwiBird", function() { return faKiwiBird; });
  109695. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLandmark", function() { return faLandmark; });
  109696. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLanguage", function() { return faLanguage; });
  109697. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptop", function() { return faLaptop; });
  109698. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopCode", function() { return faLaptopCode; });
  109699. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopHouse", function() { return faLaptopHouse; });
  109700. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaptopMedical", function() { return faLaptopMedical; });
  109701. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaugh", function() { return faLaugh; });
  109702. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughBeam", function() { return faLaughBeam; });
  109703. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughSquint", function() { return faLaughSquint; });
  109704. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLaughWink", function() { return faLaughWink; });
  109705. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLayerGroup", function() { return faLayerGroup; });
  109706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLeaf", function() { return faLeaf; });
  109707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLemon", function() { return faLemon; });
  109708. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThan", function() { return faLessThan; });
  109709. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLessThanEqual", function() { return faLessThanEqual; });
  109710. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelDownAlt", function() { return faLevelDownAlt; });
  109711. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLevelUpAlt", function() { return faLevelUpAlt; });
  109712. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLifeRing", function() { return faLifeRing; });
  109713. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLightbulb", function() { return faLightbulb; });
  109714. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLink", function() { return faLink; });
  109715. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLiraSign", function() { return faLiraSign; });
  109716. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faList", function() { return faList; });
  109717. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListAlt", function() { return faListAlt; });
  109718. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListOl", function() { return faListOl; });
  109719. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faListUl", function() { return faListUl; });
  109720. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLocationArrow", function() { return faLocationArrow; });
  109721. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLock", function() { return faLock; });
  109722. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLockOpen", function() { return faLockOpen; });
  109723. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltDown", function() { return faLongArrowAltDown; });
  109724. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltLeft", function() { return faLongArrowAltLeft; });
  109725. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltRight", function() { return faLongArrowAltRight; });
  109726. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLongArrowAltUp", function() { return faLongArrowAltUp; });
  109727. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLowVision", function() { return faLowVision; });
  109728. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLuggageCart", function() { return faLuggageCart; });
  109729. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLungs", function() { return faLungs; });
  109730. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faLungsVirus", function() { return faLungsVirus; });
  109731. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagic", function() { return faMagic; });
  109732. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMagnet", function() { return faMagnet; });
  109733. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMailBulk", function() { return faMailBulk; });
  109734. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMale", function() { return faMale; });
  109735. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMap", function() { return faMap; });
  109736. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarked", function() { return faMapMarked; });
  109737. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkedAlt", function() { return faMapMarkedAlt; });
  109738. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarker", function() { return faMapMarker; });
  109739. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapMarkerAlt", function() { return faMapMarkerAlt; });
  109740. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapPin", function() { return faMapPin; });
  109741. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMapSigns", function() { return faMapSigns; });
  109742. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarker", function() { return faMarker; });
  109743. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMars", function() { return faMars; });
  109744. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsDouble", function() { return faMarsDouble; });
  109745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStroke", function() { return faMarsStroke; });
  109746. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeH", function() { return faMarsStrokeH; });
  109747. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMarsStrokeV", function() { return faMarsStrokeV; });
  109748. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMask", function() { return faMask; });
  109749. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedal", function() { return faMedal; });
  109750. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMedkit", function() { return faMedkit; });
  109751. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeh", function() { return faMeh; });
  109752. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehBlank", function() { return faMehBlank; });
  109753. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMehRollingEyes", function() { return faMehRollingEyes; });
  109754. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMemory", function() { return faMemory; });
  109755. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMenorah", function() { return faMenorah; });
  109756. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMercury", function() { return faMercury; });
  109757. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMeteor", function() { return faMeteor; });
  109758. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrochip", function() { return faMicrochip; });
  109759. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophone", function() { return faMicrophone; });
  109760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAlt", function() { return faMicrophoneAlt; });
  109761. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneAltSlash", function() { return faMicrophoneAltSlash; });
  109762. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicrophoneSlash", function() { return faMicrophoneSlash; });
  109763. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMicroscope", function() { return faMicroscope; });
  109764. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinus", function() { return faMinus; });
  109765. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusCircle", function() { return faMinusCircle; });
  109766. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMinusSquare", function() { return faMinusSquare; });
  109767. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMitten", function() { return faMitten; });
  109768. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobile", function() { return faMobile; });
  109769. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMobileAlt", function() { return faMobileAlt; });
  109770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBill", function() { return faMoneyBill; });
  109771. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillAlt", function() { return faMoneyBillAlt; });
  109772. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWave", function() { return faMoneyBillWave; });
  109773. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyBillWaveAlt", function() { return faMoneyBillWaveAlt; });
  109774. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheck", function() { return faMoneyCheck; });
  109775. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoneyCheckAlt", function() { return faMoneyCheckAlt; });
  109776. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMonument", function() { return faMonument; });
  109777. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMoon", function() { return faMoon; });
  109778. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMortarPestle", function() { return faMortarPestle; });
  109779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMosque", function() { return faMosque; });
  109780. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMotorcycle", function() { return faMotorcycle; });
  109781. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMountain", function() { return faMountain; });
  109782. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMouse", function() { return faMouse; });
  109783. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMousePointer", function() { return faMousePointer; });
  109784. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMugHot", function() { return faMugHot; });
  109785. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faMusic", function() { return faMusic; });
  109786. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNetworkWired", function() { return faNetworkWired; });
  109787. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNeuter", function() { return faNeuter; });
  109788. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNewspaper", function() { return faNewspaper; });
  109789. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotEqual", function() { return faNotEqual; });
  109790. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faNotesMedical", function() { return faNotesMedical; });
  109791. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectGroup", function() { return faObjectGroup; });
  109792. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faObjectUngroup", function() { return faObjectUngroup; });
  109793. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOilCan", function() { return faOilCan; });
  109794. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOm", function() { return faOm; });
  109795. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOtter", function() { return faOtter; });
  109796. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faOutdent", function() { return faOutdent; });
  109797. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPager", function() { return faPager; });
  109798. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintBrush", function() { return faPaintBrush; });
  109799. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaintRoller", function() { return faPaintRoller; });
  109800. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPalette", function() { return faPalette; });
  109801. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPallet", function() { return faPallet; });
  109802. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperPlane", function() { return faPaperPlane; });
  109803. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaperclip", function() { return faPaperclip; });
  109804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParachuteBox", function() { return faParachuteBox; });
  109805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParagraph", function() { return faParagraph; });
  109806. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faParking", function() { return faParking; });
  109807. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPassport", function() { return faPassport; });
  109808. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPastafarianism", function() { return faPastafarianism; });
  109809. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaste", function() { return faPaste; });
  109810. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPause", function() { return faPause; });
  109811. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPauseCircle", function() { return faPauseCircle; });
  109812. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPaw", function() { return faPaw; });
  109813. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeace", function() { return faPeace; });
  109814. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPen", function() { return faPen; });
  109815. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenAlt", function() { return faPenAlt; });
  109816. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenFancy", function() { return faPenFancy; });
  109817. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenNib", function() { return faPenNib; });
  109818. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPenSquare", function() { return faPenSquare; });
  109819. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilAlt", function() { return faPencilAlt; });
  109820. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPencilRuler", function() { return faPencilRuler; });
  109821. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleArrows", function() { return faPeopleArrows; });
  109822. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPeopleCarry", function() { return faPeopleCarry; });
  109823. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPepperHot", function() { return faPepperHot; });
  109824. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercent", function() { return faPercent; });
  109825. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPercentage", function() { return faPercentage; });
  109826. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPersonBooth", function() { return faPersonBooth; });
  109827. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhone", function() { return faPhone; });
  109828. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneAlt", function() { return faPhoneAlt; });
  109829. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSlash", function() { return faPhoneSlash; });
  109830. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquare", function() { return faPhoneSquare; });
  109831. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneSquareAlt", function() { return faPhoneSquareAlt; });
  109832. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhoneVolume", function() { return faPhoneVolume; });
  109833. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPhotoVideo", function() { return faPhotoVideo; });
  109834. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPiggyBank", function() { return faPiggyBank; });
  109835. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPills", function() { return faPills; });
  109836. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPizzaSlice", function() { return faPizzaSlice; });
  109837. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaceOfWorship", function() { return faPlaceOfWorship; });
  109838. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlane", function() { return faPlane; });
  109839. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneArrival", function() { return faPlaneArrival; });
  109840. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneDeparture", function() { return faPlaneDeparture; });
  109841. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlaneSlash", function() { return faPlaneSlash; });
  109842. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlay", function() { return faPlay; });
  109843. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlayCircle", function() { return faPlayCircle; });
  109844. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlug", function() { return faPlug; });
  109845. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlus", function() { return faPlus; });
  109846. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusCircle", function() { return faPlusCircle; });
  109847. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPlusSquare", function() { return faPlusSquare; });
  109848. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPodcast", function() { return faPodcast; });
  109849. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoll", function() { return faPoll; });
  109850. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPollH", function() { return faPollH; });
  109851. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoo", function() { return faPoo; });
  109852. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPooStorm", function() { return faPooStorm; });
  109853. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoop", function() { return faPoop; });
  109854. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPortrait", function() { return faPortrait; });
  109855. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPoundSign", function() { return faPoundSign; });
  109856. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPowerOff", function() { return faPowerOff; });
  109857. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPray", function() { return faPray; });
  109858. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrayingHands", function() { return faPrayingHands; });
  109859. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescription", function() { return faPrescription; });
  109860. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottle", function() { return faPrescriptionBottle; });
  109861. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrescriptionBottleAlt", function() { return faPrescriptionBottleAlt; });
  109862. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPrint", function() { return faPrint; });
  109863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProcedures", function() { return faProcedures; });
  109864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faProjectDiagram", function() { return faProjectDiagram; });
  109865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPumpMedical", function() { return faPumpMedical; });
  109866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPumpSoap", function() { return faPumpSoap; });
  109867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faPuzzlePiece", function() { return faPuzzlePiece; });
  109868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQrcode", function() { return faQrcode; });
  109869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestion", function() { return faQuestion; });
  109870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuestionCircle", function() { return faQuestionCircle; });
  109871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuidditch", function() { return faQuidditch; });
  109872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteLeft", function() { return faQuoteLeft; });
  109873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuoteRight", function() { return faQuoteRight; });
  109874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faQuran", function() { return faQuran; });
  109875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRadiation", function() { return faRadiation; });
  109876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRadiationAlt", function() { return faRadiationAlt; });
  109877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRainbow", function() { return faRainbow; });
  109878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRandom", function() { return faRandom; });
  109879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReceipt", function() { return faReceipt; });
  109880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecordVinyl", function() { return faRecordVinyl; });
  109881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRecycle", function() { return faRecycle; });
  109882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedo", function() { return faRedo; });
  109883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRedoAlt", function() { return faRedoAlt; });
  109884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRegistered", function() { return faRegistered; });
  109885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRemoveFormat", function() { return faRemoveFormat; });
  109886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReply", function() { return faReply; });
  109887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faReplyAll", function() { return faReplyAll; });
  109888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRepublican", function() { return faRepublican; });
  109889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRestroom", function() { return faRestroom; });
  109890. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRetweet", function() { return faRetweet; });
  109891. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRibbon", function() { return faRibbon; });
  109892. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRing", function() { return faRing; });
  109893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoad", function() { return faRoad; });
  109894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRobot", function() { return faRobot; });
  109895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRocket", function() { return faRocket; });
  109896. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRoute", function() { return faRoute; });
  109897. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRss", function() { return faRss; });
  109898. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRssSquare", function() { return faRssSquare; });
  109899. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRubleSign", function() { return faRubleSign; });
  109900. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRuler", function() { return faRuler; });
  109901. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerCombined", function() { return faRulerCombined; });
  109902. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerHorizontal", function() { return faRulerHorizontal; });
  109903. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRulerVertical", function() { return faRulerVertical; });
  109904. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRunning", function() { return faRunning; });
  109905. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faRupeeSign", function() { return faRupeeSign; });
  109906. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadCry", function() { return faSadCry; });
  109907. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSadTear", function() { return faSadTear; });
  109908. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSatellite", function() { return faSatellite; });
  109909. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSatelliteDish", function() { return faSatelliteDish; });
  109910. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSave", function() { return faSave; });
  109911. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSchool", function() { return faSchool; });
  109912. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScrewdriver", function() { return faScrewdriver; });
  109913. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faScroll", function() { return faScroll; });
  109914. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSdCard", function() { return faSdCard; });
  109915. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearch", function() { return faSearch; });
  109916. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchDollar", function() { return faSearchDollar; });
  109917. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchLocation", function() { return faSearchLocation; });
  109918. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchMinus", function() { return faSearchMinus; });
  109919. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSearchPlus", function() { return faSearchPlus; });
  109920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSeedling", function() { return faSeedling; });
  109921. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faServer", function() { return faServer; });
  109922. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShapes", function() { return faShapes; });
  109923. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShare", function() { return faShare; });
  109924. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAlt", function() { return faShareAlt; });
  109925. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareAltSquare", function() { return faShareAltSquare; });
  109926. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShareSquare", function() { return faShareSquare; });
  109927. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShekelSign", function() { return faShekelSign; });
  109928. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldAlt", function() { return faShieldAlt; });
  109929. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShieldVirus", function() { return faShieldVirus; });
  109930. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShip", function() { return faShip; });
  109931. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShippingFast", function() { return faShippingFast; });
  109932. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoePrints", function() { return faShoePrints; });
  109933. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBag", function() { return faShoppingBag; });
  109934. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingBasket", function() { return faShoppingBasket; });
  109935. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShoppingCart", function() { return faShoppingCart; });
  109936. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShower", function() { return faShower; });
  109937. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faShuttleVan", function() { return faShuttleVan; });
  109938. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSign", function() { return faSign; });
  109939. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignInAlt", function() { return faSignInAlt; });
  109940. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignLanguage", function() { return faSignLanguage; });
  109941. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignOutAlt", function() { return faSignOutAlt; });
  109942. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignal", function() { return faSignal; });
  109943. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSignature", function() { return faSignature; });
  109944. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSimCard", function() { return faSimCard; });
  109945. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSink", function() { return faSink; });
  109946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSitemap", function() { return faSitemap; });
  109947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkating", function() { return faSkating; });
  109948. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkiing", function() { return faSkiing; });
  109949. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkiingNordic", function() { return faSkiingNordic; });
  109950. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkull", function() { return faSkull; });
  109951. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSkullCrossbones", function() { return faSkullCrossbones; });
  109952. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlash", function() { return faSlash; });
  109953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSleigh", function() { return faSleigh; });
  109954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSlidersH", function() { return faSlidersH; });
  109955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmile", function() { return faSmile; });
  109956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileBeam", function() { return faSmileBeam; });
  109957. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmileWink", function() { return faSmileWink; });
  109958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmog", function() { return faSmog; });
  109959. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmoking", function() { return faSmoking; });
  109960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSmokingBan", function() { return faSmokingBan; });
  109961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSms", function() { return faSms; });
  109962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowboarding", function() { return faSnowboarding; });
  109963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowflake", function() { return faSnowflake; });
  109964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowman", function() { return faSnowman; });
  109965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSnowplow", function() { return faSnowplow; });
  109966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSoap", function() { return faSoap; });
  109967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSocks", function() { return faSocks; });
  109968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSolarPanel", function() { return faSolarPanel; });
  109969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSort", function() { return faSort; });
  109970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDown", function() { return faSortAlphaDown; });
  109971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaDownAlt", function() { return faSortAlphaDownAlt; });
  109972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUp", function() { return faSortAlphaUp; });
  109973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAlphaUpAlt", function() { return faSortAlphaUpAlt; });
  109974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDown", function() { return faSortAmountDown; });
  109975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountDownAlt", function() { return faSortAmountDownAlt; });
  109976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUp", function() { return faSortAmountUp; });
  109977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortAmountUpAlt", function() { return faSortAmountUpAlt; });
  109978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortDown", function() { return faSortDown; });
  109979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDown", function() { return faSortNumericDown; });
  109980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericDownAlt", function() { return faSortNumericDownAlt; });
  109981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUp", function() { return faSortNumericUp; });
  109982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortNumericUpAlt", function() { return faSortNumericUpAlt; });
  109983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSortUp", function() { return faSortUp; });
  109984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpa", function() { return faSpa; });
  109985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpaceShuttle", function() { return faSpaceShuttle; });
  109986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpellCheck", function() { return faSpellCheck; });
  109987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpider", function() { return faSpider; });
  109988. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSpinner", function() { return faSpinner; });
  109989. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSplotch", function() { return faSplotch; });
  109990. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSprayCan", function() { return faSprayCan; });
  109991. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquare", function() { return faSquare; });
  109992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareFull", function() { return faSquareFull; });
  109993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSquareRootAlt", function() { return faSquareRootAlt; });
  109994. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStamp", function() { return faStamp; });
  109995. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStar", function() { return faStar; });
  109996. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarAndCrescent", function() { return faStarAndCrescent; });
  109997. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalf", function() { return faStarHalf; });
  109998. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarHalfAlt", function() { return faStarHalfAlt; });
  109999. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfDavid", function() { return faStarOfDavid; });
  110000. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStarOfLife", function() { return faStarOfLife; });
  110001. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepBackward", function() { return faStepBackward; });
  110002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStepForward", function() { return faStepForward; });
  110003. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStethoscope", function() { return faStethoscope; });
  110004. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStickyNote", function() { return faStickyNote; });
  110005. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStop", function() { return faStop; });
  110006. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopCircle", function() { return faStopCircle; });
  110007. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch", function() { return faStopwatch; });
  110008. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStopwatch20", function() { return faStopwatch20; });
  110009. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStore", function() { return faStore; });
  110010. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAlt", function() { return faStoreAlt; });
  110011. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreAltSlash", function() { return faStoreAltSlash; });
  110012. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStoreSlash", function() { return faStoreSlash; });
  110013. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStream", function() { return faStream; });
  110014. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStreetView", function() { return faStreetView; });
  110015. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStrikethrough", function() { return faStrikethrough; });
  110016. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faStroopwafel", function() { return faStroopwafel; });
  110017. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubscript", function() { return faSubscript; });
  110018. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSubway", function() { return faSubway; });
  110019. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcase", function() { return faSuitcase; });
  110020. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuitcaseRolling", function() { return faSuitcaseRolling; });
  110021. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSun", function() { return faSun; });
  110022. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSuperscript", function() { return faSuperscript; });
  110023. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSurprise", function() { return faSurprise; });
  110024. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwatchbook", function() { return faSwatchbook; });
  110025. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmer", function() { return faSwimmer; });
  110026. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSwimmingPool", function() { return faSwimmingPool; });
  110027. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSynagogue", function() { return faSynagogue; });
  110028. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSync", function() { return faSync; });
  110029. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyncAlt", function() { return faSyncAlt; });
  110030. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faSyringe", function() { return faSyringe; });
  110031. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTable", function() { return faTable; });
  110032. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTableTennis", function() { return faTableTennis; });
  110033. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablet", function() { return faTablet; });
  110034. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTabletAlt", function() { return faTabletAlt; });
  110035. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTablets", function() { return faTablets; });
  110036. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTachometerAlt", function() { return faTachometerAlt; });
  110037. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTag", function() { return faTag; });
  110038. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTags", function() { return faTags; });
  110039. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTape", function() { return faTape; });
  110040. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTasks", function() { return faTasks; });
  110041. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTaxi", function() { return faTaxi; });
  110042. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeeth", function() { return faTeeth; });
  110043. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTeethOpen", function() { return faTeethOpen; });
  110044. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTemperatureHigh", function() { return faTemperatureHigh; });
  110045. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTemperatureLow", function() { return faTemperatureLow; });
  110046. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTenge", function() { return faTenge; });
  110047. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTerminal", function() { return faTerminal; });
  110048. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextHeight", function() { return faTextHeight; });
  110049. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTextWidth", function() { return faTextWidth; });
  110050. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTh", function() { return faTh; });
  110051. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThLarge", function() { return faThLarge; });
  110052. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThList", function() { return faThList; });
  110053. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTheaterMasks", function() { return faTheaterMasks; });
  110054. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometer", function() { return faThermometer; });
  110055. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerEmpty", function() { return faThermometerEmpty; });
  110056. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerFull", function() { return faThermometerFull; });
  110057. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerHalf", function() { return faThermometerHalf; });
  110058. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerQuarter", function() { return faThermometerQuarter; });
  110059. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThermometerThreeQuarters", function() { return faThermometerThreeQuarters; });
  110060. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsDown", function() { return faThumbsDown; });
  110061. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbsUp", function() { return faThumbsUp; });
  110062. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faThumbtack", function() { return faThumbtack; });
  110063. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTicketAlt", function() { return faTicketAlt; });
  110064. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimes", function() { return faTimes; });
  110065. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTimesCircle", function() { return faTimesCircle; });
  110066. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTint", function() { return faTint; });
  110067. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTintSlash", function() { return faTintSlash; });
  110068. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTired", function() { return faTired; });
  110069. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOff", function() { return faToggleOff; });
  110070. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToggleOn", function() { return faToggleOn; });
  110071. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToilet", function() { return faToilet; });
  110072. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaper", function() { return faToiletPaper; });
  110073. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToiletPaperSlash", function() { return faToiletPaperSlash; });
  110074. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToolbox", function() { return faToolbox; });
  110075. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTools", function() { return faTools; });
  110076. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTooth", function() { return faTooth; });
  110077. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTorah", function() { return faTorah; });
  110078. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faToriiGate", function() { return faToriiGate; });
  110079. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTractor", function() { return faTractor; });
  110080. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrademark", function() { return faTrademark; });
  110081. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrafficLight", function() { return faTrafficLight; });
  110082. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrailer", function() { return faTrailer; });
  110083. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrain", function() { return faTrain; });
  110084. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTram", function() { return faTram; });
  110085. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgender", function() { return faTransgender; });
  110086. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTransgenderAlt", function() { return faTransgenderAlt; });
  110087. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrash", function() { return faTrash; });
  110088. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashAlt", function() { return faTrashAlt; });
  110089. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashRestore", function() { return faTrashRestore; });
  110090. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrashRestoreAlt", function() { return faTrashRestoreAlt; });
  110091. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTree", function() { return faTree; });
  110092. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTrophy", function() { return faTrophy; });
  110093. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruck", function() { return faTruck; });
  110094. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckLoading", function() { return faTruckLoading; });
  110095. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMonster", function() { return faTruckMonster; });
  110096. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckMoving", function() { return faTruckMoving; });
  110097. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTruckPickup", function() { return faTruckPickup; });
  110098. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTshirt", function() { return faTshirt; });
  110099. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTty", function() { return faTty; });
  110100. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faTv", function() { return faTv; });
  110101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrella", function() { return faUmbrella; });
  110102. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUmbrellaBeach", function() { return faUmbrellaBeach; });
  110103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnderline", function() { return faUnderline; });
  110104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndo", function() { return faUndo; });
  110105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUndoAlt", function() { return faUndoAlt; });
  110106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversalAccess", function() { return faUniversalAccess; });
  110107. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUniversity", function() { return faUniversity; });
  110108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlink", function() { return faUnlink; });
  110109. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlock", function() { return faUnlock; });
  110110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUnlockAlt", function() { return faUnlockAlt; });
  110111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUpload", function() { return faUpload; });
  110112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUser", function() { return faUser; });
  110113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAlt", function() { return faUserAlt; });
  110114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAltSlash", function() { return faUserAltSlash; });
  110115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserAstronaut", function() { return faUserAstronaut; });
  110116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCheck", function() { return faUserCheck; });
  110117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCircle", function() { return faUserCircle; });
  110118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserClock", function() { return faUserClock; });
  110119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserCog", function() { return faUserCog; });
  110120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserEdit", function() { return faUserEdit; });
  110121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserFriends", function() { return faUserFriends; });
  110122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserGraduate", function() { return faUserGraduate; });
  110123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserInjured", function() { return faUserInjured; });
  110124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserLock", function() { return faUserLock; });
  110125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMd", function() { return faUserMd; });
  110126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserMinus", function() { return faUserMinus; });
  110127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNinja", function() { return faUserNinja; });
  110128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserNurse", function() { return faUserNurse; });
  110129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserPlus", function() { return faUserPlus; });
  110130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSecret", function() { return faUserSecret; });
  110131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserShield", function() { return faUserShield; });
  110132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserSlash", function() { return faUserSlash; });
  110133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTag", function() { return faUserTag; });
  110134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTie", function() { return faUserTie; });
  110135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUserTimes", function() { return faUserTimes; });
  110136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsers", function() { return faUsers; });
  110137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersCog", function() { return faUsersCog; });
  110138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUsersSlash", function() { return faUsersSlash; });
  110139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensilSpoon", function() { return faUtensilSpoon; });
  110140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faUtensils", function() { return faUtensils; });
  110141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVectorSquare", function() { return faVectorSquare; });
  110142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenus", function() { return faVenus; });
  110143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusDouble", function() { return faVenusDouble; });
  110144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVenusMars", function() { return faVenusMars; });
  110145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVest", function() { return faVest; });
  110146. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVestPatches", function() { return faVestPatches; });
  110147. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVial", function() { return faVial; });
  110148. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVials", function() { return faVials; });
  110149. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideo", function() { return faVideo; });
  110150. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVideoSlash", function() { return faVideoSlash; });
  110151. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVihara", function() { return faVihara; });
  110152. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVirus", function() { return faVirus; });
  110153. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVirusSlash", function() { return faVirusSlash; });
  110154. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faViruses", function() { return faViruses; });
  110155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVoicemail", function() { return faVoicemail; });
  110156. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolleyballBall", function() { return faVolleyballBall; });
  110157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeDown", function() { return faVolumeDown; });
  110158. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeMute", function() { return faVolumeMute; });
  110159. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeOff", function() { return faVolumeOff; });
  110160. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVolumeUp", function() { return faVolumeUp; });
  110161. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVoteYea", function() { return faVoteYea; });
  110162. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faVrCardboard", function() { return faVrCardboard; });
  110163. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWalking", function() { return faWalking; });
  110164. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWallet", function() { return faWallet; });
  110165. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWarehouse", function() { return faWarehouse; });
  110166. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWater", function() { return faWater; });
  110167. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWaveSquare", function() { return faWaveSquare; });
  110168. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeight", function() { return faWeight; });
  110169. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWeightHanging", function() { return faWeightHanging; });
  110170. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWheelchair", function() { return faWheelchair; });
  110171. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWifi", function() { return faWifi; });
  110172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWind", function() { return faWind; });
  110173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowClose", function() { return faWindowClose; });
  110174. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMaximize", function() { return faWindowMaximize; });
  110175. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowMinimize", function() { return faWindowMinimize; });
  110176. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWindowRestore", function() { return faWindowRestore; });
  110177. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineBottle", function() { return faWineBottle; });
  110178. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlass", function() { return faWineGlass; });
  110179. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWineGlassAlt", function() { return faWineGlassAlt; });
  110180. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWonSign", function() { return faWonSign; });
  110181. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faWrench", function() { return faWrench; });
  110182. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faXRay", function() { return faXRay; });
  110183. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYenSign", function() { return faYenSign; });
  110184. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "faYinYang", function() { return faYinYang; });
  110185. /*!
  110186. * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
  110187. * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
  110188. */
  110189. var prefix = "fas";
  110190. var faAd = {
  110191. prefix: 'fas',
  110192. iconName: 'ad',
  110193. icon: [512, 512, [], "f641", "M157.52 272h36.96L176 218.78 157.52 272zM352 256c-13.23 0-24 10.77-24 24s10.77 24 24 24 24-10.77 24-24-10.77-24-24-24zM464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM250.58 352h-16.94c-6.81 0-12.88-4.32-15.12-10.75L211.15 320h-70.29l-7.38 21.25A16 16 0 0 1 118.36 352h-16.94c-11.01 0-18.73-10.85-15.12-21.25L140 176.12A23.995 23.995 0 0 1 162.67 160h26.66A23.99 23.99 0 0 1 212 176.13l53.69 154.62c3.61 10.4-4.11 21.25-15.11 21.25zM424 336c0 8.84-7.16 16-16 16h-16c-4.85 0-9.04-2.27-11.98-5.68-8.62 3.66-18.09 5.68-28.02 5.68-39.7 0-72-32.3-72-72s32.3-72 72-72c8.46 0 16.46 1.73 24 4.42V176c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v160z"]
  110194. };
  110195. var faAddressBook = {
  110196. prefix: 'fas',
  110197. iconName: 'address-book',
  110198. icon: [448, 512, [], "f2b9", "M436 160c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h320c26.5 0 48-21.5 48-48v-48h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20v-64h20zm-228-32c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H118.4C106 384 96 375.4 96 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"]
  110199. };
  110200. var faAddressCard = {
  110201. prefix: 'fas',
  110202. iconName: 'address-card',
  110203. icon: [576, 512, [], "f2bb", "M528 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-352 96c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H86.4C74 384 64 375.4 64 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2zM512 312c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-64c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"]
  110204. };
  110205. var faAdjust = {
  110206. prefix: 'fas',
  110207. iconName: 'adjust',
  110208. icon: [512, 512, [], "f042", "M8 256c0 136.966 111.033 248 248 248s248-111.034 248-248S392.966 8 256 8 8 119.033 8 256zm248 184V72c101.705 0 184 82.311 184 184 0 101.705-82.311 184-184 184z"]
  110209. };
  110210. var faAirFreshener = {
  110211. prefix: 'fas',
  110212. iconName: 'air-freshener',
  110213. icon: [384, 512, [], "f5d0", "M378.94 321.41L284.7 224h49.22c15.3 0 23.66-16.6 13.86-27.53L234.45 69.96c3.43-6.61 5.55-14 5.55-21.96 0-26.51-21.49-48-48-48s-48 21.49-48 48c0 7.96 2.12 15.35 5.55 21.96L36.22 196.47C26.42 207.4 34.78 224 50.08 224H99.3L5.06 321.41C-6.69 333.56 3.34 352 21.7 352H160v32H48c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h288c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16H224v-32h138.3c18.36 0 28.39-18.44 16.64-30.59zM192 31.98c8.85 0 16.02 7.17 16.02 16.02 0 8.84-7.17 16.02-16.02 16.02S175.98 56.84 175.98 48c0-8.85 7.17-16.02 16.02-16.02zM304 432v32H80v-32h224z"]
  110214. };
  110215. var faAlignCenter = {
  110216. prefix: 'fas',
  110217. iconName: 'align-center',
  110218. icon: [448, 512, [], "f037", "M432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM108.1 96h231.81A12.09 12.09 0 0 0 352 83.9V44.09A12.09 12.09 0 0 0 339.91 32H108.1A12.09 12.09 0 0 0 96 44.09V83.9A12.1 12.1 0 0 0 108.1 96zm231.81 256A12.09 12.09 0 0 0 352 339.9v-39.81A12.09 12.09 0 0 0 339.91 288H108.1A12.09 12.09 0 0 0 96 300.09v39.81a12.1 12.1 0 0 0 12.1 12.1z"]
  110219. };
  110220. var faAlignJustify = {
  110221. prefix: 'fas',
  110222. iconName: 'align-justify',
  110223. icon: [448, 512, [], "f039", "M432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-128H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  110224. };
  110225. var faAlignLeft = {
  110226. prefix: 'fas',
  110227. iconName: 'align-left',
  110228. icon: [448, 512, [], "f036", "M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  110229. };
  110230. var faAlignRight = {
  110231. prefix: 'fas',
  110232. iconName: 'align-right',
  110233. icon: [448, 512, [], "f038", "M16 224h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm416 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-384H172.83A12.82 12.82 0 0 0 160 44.83v38.34A12.82 12.82 0 0 0 172.83 96h262.34A12.82 12.82 0 0 0 448 83.17V44.83A12.82 12.82 0 0 0 435.17 32zm0 256H172.83A12.82 12.82 0 0 0 160 300.83v38.34A12.82 12.82 0 0 0 172.83 352h262.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288z"]
  110234. };
  110235. var faAllergies = {
  110236. prefix: 'fas',
  110237. iconName: 'allergies',
  110238. icon: [448, 512, [], "f461", "M416 112c-17.6 0-32 14.4-32 32v72c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32s-32 14.4-32 32v152c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V32c0-17.6-14.4-32-32-32s-32 14.4-32 32v184c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V64c0-17.6-14.4-32-32-32S96 46.4 96 64v241l-23.6-32.5c-13-17.9-38-21.8-55.9-8.8s-21.8 38-8.8 55.9l125.6 172.7c9 12.4 23.5 19.8 38.8 19.8h197.6c22.3 0 41.6-15.3 46.7-37l26.5-112.7c3.2-13.7 4.9-28.3 5.1-42.3V144c0-17.6-14.4-32-32-32zM176 416c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm64 32c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32-128c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
  110239. };
  110240. var faAmbulance = {
  110241. prefix: 'fas',
  110242. iconName: 'ambulance',
  110243. icon: [640, 512, [], "f0f9", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm144-248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm176 248c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"]
  110244. };
  110245. var faAmericanSignLanguageInterpreting = {
  110246. prefix: 'fas',
  110247. iconName: 'american-sign-language-interpreting',
  110248. icon: [640, 512, [], "f2a3", "M290.547 189.039c-20.295-10.149-44.147-11.199-64.739-3.89 42.606 0 71.208 20.475 85.578 50.576 8.576 17.899-5.148 38.071-23.617 38.071 18.429 0 32.211 20.136 23.617 38.071-14.725 30.846-46.123 50.854-80.298 50.854-.557 0-94.471-8.615-94.471-8.615l-66.406 33.347c-9.384 4.693-19.815.379-23.895-7.781L1.86 290.747c-4.167-8.615-1.111-18.897 6.946-23.621l58.072-33.069L108 159.861c6.39-57.245 34.731-109.767 79.743-146.726 11.391-9.448 28.341-7.781 37.51 3.613 9.446 11.394 7.78 28.067-3.612 37.516-12.503 10.559-23.618 22.509-32.509 35.57 21.672-14.729 46.679-24.732 74.186-28.067 14.725-1.945 28.063 8.336 29.73 23.065 1.945 14.728-8.336 28.067-23.062 29.734-16.116 1.945-31.12 7.503-44.178 15.284 26.114-5.713 58.712-3.138 88.079 11.115 13.336 6.669 18.893 22.509 12.224 35.848-6.389 13.06-22.504 18.617-35.564 12.226zm-27.229 69.472c-6.112-12.505-18.338-20.286-32.231-20.286a35.46 35.46 0 0 0-35.565 35.57c0 21.428 17.808 35.57 35.565 35.57 13.893 0 26.119-7.781 32.231-20.286 4.446-9.449 13.614-15.006 23.339-15.284-9.725-.277-18.893-5.835-23.339-15.284zm374.821-37.237c4.168 8.615 1.111 18.897-6.946 23.621l-58.071 33.069L532 352.16c-6.39 57.245-34.731 109.767-79.743 146.726-10.932 9.112-27.799 8.144-37.51-3.613-9.446-11.394-7.78-28.067 3.613-37.516 12.503-10.559 23.617-22.509 32.508-35.57-21.672 14.729-46.679 24.732-74.186 28.067-10.021 2.506-27.552-5.643-29.73-23.065-1.945-14.728 8.336-28.067 23.062-29.734 16.116-1.946 31.12-7.503 44.178-15.284-26.114 5.713-58.712 3.138-88.079-11.115-13.336-6.669-18.893-22.509-12.224-35.848 6.389-13.061 22.505-18.619 35.565-12.227 20.295 10.149 44.147 11.199 64.739 3.89-42.606 0-71.208-20.475-85.578-50.576-8.576-17.899 5.148-38.071 23.617-38.071-18.429 0-32.211-20.136-23.617-38.071 14.033-29.396 44.039-50.887 81.966-50.854l92.803 8.615 66.406-33.347c9.408-4.704 19.828-.354 23.894 7.781l44.455 88.926zm-229.227-18.618c-13.893 0-26.119 7.781-32.231 20.286-4.446 9.449-13.614 15.006-23.339 15.284 9.725.278 18.893 5.836 23.339 15.284 6.112 12.505 18.338 20.286 32.231 20.286a35.46 35.46 0 0 0 35.565-35.57c0-21.429-17.808-35.57-35.565-35.57z"]
  110249. };
  110250. var faAnchor = {
  110251. prefix: 'fas',
  110252. iconName: 'anchor',
  110253. icon: [576, 512, [], "f13d", "M12.971 352h32.394C67.172 454.735 181.944 512 288 512c106.229 0 220.853-57.38 242.635-160h32.394c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0l-67.029 67.029c-7.56 7.56-2.206 20.485 8.485 20.485h35.146c-20.29 54.317-84.963 86.588-144.117 94.015V256h52c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-52v-5.47c37.281-13.178 63.995-48.725 64-90.518C384.005 43.772 341.605.738 289.37.01 235.723-.739 192 42.525 192 96c0 41.798 26.716 77.35 64 90.53V192h-52c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v190.015c-58.936-7.399-123.82-39.679-144.117-94.015h35.146c10.691 0 16.045-12.926 8.485-20.485l-67.029-67.029c-4.686-4.686-12.284-4.686-16.971 0L4.485 331.515C-3.074 339.074 2.28 352 12.971 352zM288 64c17.645 0 32 14.355 32 32s-14.355 32-32 32-32-14.355-32-32 14.355-32 32-32z"]
  110254. };
  110255. var faAngleDoubleDown = {
  110256. prefix: 'fas',
  110257. iconName: 'angle-double-down',
  110258. icon: [320, 512, [], "f103", "M143 256.3L7 120.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0L313 86.3c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.4 9.5-24.6 9.5-34 .1zm34 192l136-136c9.4-9.4 9.4-24.6 0-33.9l-22.6-22.6c-9.4-9.4-24.6-9.4-33.9 0L160 352.1l-96.4-96.4c-9.4-9.4-24.6-9.4-33.9 0L7 278.3c-9.4 9.4-9.4 24.6 0 33.9l136 136c9.4 9.5 24.6 9.5 34 .1z"]
  110259. };
  110260. var faAngleDoubleLeft = {
  110261. prefix: 'fas',
  110262. iconName: 'angle-double-left',
  110263. icon: [448, 512, [], "f100", "M223.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L319.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L393.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34zm-192 34l136 136c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9L127.9 256l96.4-96.4c9.4-9.4 9.4-24.6 0-33.9L201.7 103c-9.4-9.4-24.6-9.4-33.9 0l-136 136c-9.5 9.4-9.5 24.6-.1 34z"]
  110264. };
  110265. var faAngleDoubleRight = {
  110266. prefix: 'fas',
  110267. iconName: 'angle-double-right',
  110268. icon: [448, 512, [], "f101", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34zm192-34l-136-136c-9.4-9.4-24.6-9.4-33.9 0l-22.6 22.6c-9.4 9.4-9.4 24.6 0 33.9l96.4 96.4-96.4 96.4c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l136-136c9.4-9.2 9.4-24.4 0-33.8z"]
  110269. };
  110270. var faAngleDoubleUp = {
  110271. prefix: 'fas',
  110272. iconName: 'angle-double-up',
  110273. icon: [320, 512, [], "f102", "M177 255.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 351.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 425.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1zm-34-192L7 199.7c-9.4 9.4-9.4 24.6 0 33.9l22.6 22.6c9.4 9.4 24.6 9.4 33.9 0l96.4-96.4 96.4 96.4c9.4 9.4 24.6 9.4 33.9 0l22.6-22.6c9.4-9.4 9.4-24.6 0-33.9l-136-136c-9.2-9.4-24.4-9.4-33.8 0z"]
  110274. };
  110275. var faAngleDown = {
  110276. prefix: 'fas',
  110277. iconName: 'angle-down',
  110278. icon: [320, 512, [], "f107", "M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z"]
  110279. };
  110280. var faAngleLeft = {
  110281. prefix: 'fas',
  110282. iconName: 'angle-left',
  110283. icon: [256, 512, [], "f104", "M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"]
  110284. };
  110285. var faAngleRight = {
  110286. prefix: 'fas',
  110287. iconName: 'angle-right',
  110288. icon: [256, 512, [], "f105", "M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"]
  110289. };
  110290. var faAngleUp = {
  110291. prefix: 'fas',
  110292. iconName: 'angle-up',
  110293. icon: [320, 512, [], "f106", "M177 159.7l136 136c9.4 9.4 9.4 24.6 0 33.9l-22.6 22.6c-9.4 9.4-24.6 9.4-33.9 0L160 255.9l-96.4 96.4c-9.4 9.4-24.6 9.4-33.9 0L7 329.7c-9.4-9.4-9.4-24.6 0-33.9l136-136c9.4-9.5 24.6-9.5 34-.1z"]
  110294. };
  110295. var faAngry = {
  110296. prefix: 'fas',
  110297. iconName: 'angry',
  110298. icon: [496, 512, [], "f556", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 240c0-9.3 4.1-17.5 10.5-23.4l-31-9.3c-8.5-2.5-13.3-11.5-10.7-19.9 2.5-8.5 11.4-13.2 19.9-10.7l80 24c8.5 2.5 13.3 11.5 10.7 19.9-2.1 6.9-8.4 11.4-15.3 11.4-.5 0-1.1-.2-1.7-.2.7 2.7 1.7 5.3 1.7 8.2 0 17.7-14.3 32-32 32S136 257.7 136 240zm168 154.2c-27.8-33.4-84.2-33.4-112.1 0-13.5 16.3-38.2-4.2-24.6-20.5 20-24 49.4-37.8 80.6-37.8s60.6 13.8 80.6 37.8c13.8 16.5-11.1 36.6-24.5 20.5zm76.6-186.9l-31 9.3c6.3 5.8 10.5 14.1 10.5 23.4 0 17.7-14.3 32-32 32s-32-14.3-32-32c0-2.9.9-5.6 1.7-8.2-.6.1-1.1.2-1.7.2-6.9 0-13.2-4.5-15.3-11.4-2.5-8.5 2.3-17.4 10.7-19.9l80-24c8.4-2.5 17.4 2.3 19.9 10.7 2.5 8.5-2.3 17.4-10.8 19.9z"]
  110299. };
  110300. var faAnkh = {
  110301. prefix: 'fas',
  110302. iconName: 'ankh',
  110303. icon: [320, 512, [], "f644", "M296 256h-44.62C272.46 222.01 288 181.65 288 144 288 55.63 230.69 0 160 0S32 55.63 32 144c0 37.65 15.54 78.01 36.62 112H24c-13.25 0-24 10.74-24 24v32c0 13.25 10.75 24 24 24h96v152c0 13.25 10.75 24 24 24h32c13.25 0 24-10.75 24-24V336h96c13.25 0 24-10.75 24-24v-32c0-13.26-10.75-24-24-24zM160 80c29.61 0 48 24.52 48 64 0 34.66-27.14 78.14-48 100.87-20.86-22.72-48-66.21-48-100.87 0-39.48 18.39-64 48-64z"]
  110304. };
  110305. var faAppleAlt = {
  110306. prefix: 'fas',
  110307. iconName: 'apple-alt',
  110308. icon: [448, 512, [], "f5d1", "M350.85 129c25.97 4.67 47.27 18.67 63.92 42 14.65 20.67 24.64 46.67 29.96 78 4.67 28.67 4.32 57.33-1 86-7.99 47.33-23.97 87-47.94 119-28.64 38.67-64.59 58-107.87 58-10.66 0-22.3-3.33-34.96-10-8.66-5.33-18.31-8-28.97-8s-20.3 2.67-28.97 8c-12.66 6.67-24.3 10-34.96 10-43.28 0-79.23-19.33-107.87-58-23.97-32-39.95-71.67-47.94-119-5.32-28.67-5.67-57.33-1-86 5.32-31.33 15.31-57.33 29.96-78 16.65-23.33 37.95-37.33 63.92-42 15.98-2.67 37.95-.33 65.92 7 23.97 6.67 44.28 14.67 60.93 24 16.65-9.33 36.96-17.33 60.93-24 27.98-7.33 49.96-9.67 65.94-7zm-54.94-41c-9.32 8.67-21.65 15-36.96 19-10.66 3.33-22.3 5-34.96 5l-14.98-1c-1.33-9.33-1.33-20 0-32 2.67-24 10.32-42.33 22.97-55 9.32-8.67 21.65-15 36.96-19 10.66-3.33 22.3-5 34.96-5l14.98 1 1 15c0 12.67-1.67 24.33-4.99 35-3.99 15.33-10.31 27.67-18.98 37z"]
  110309. };
  110310. var faArchive = {
  110311. prefix: 'fas',
  110312. iconName: 'archive',
  110313. icon: [512, 512, [], "f187", "M32 448c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V160H32v288zm160-212c0-6.6 5.4-12 12-12h104c6.6 0 12 5.4 12 12v8c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-8zM480 32H32C14.3 32 0 46.3 0 64v48c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16V64c0-17.7-14.3-32-32-32z"]
  110314. };
  110315. var faArchway = {
  110316. prefix: 'fas',
  110317. iconName: 'archway',
  110318. icon: [576, 512, [], "f557", "M560 448h-16V96H32v352H16.02c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16H176c8.84 0 16-7.16 16-16V320c0-53.02 42.98-96 96-96s96 42.98 96 96l.02 160v16c0 8.84 7.16 16 16 16H560c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm0-448H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h544c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"]
  110319. };
  110320. var faArrowAltCircleDown = {
  110321. prefix: 'fas',
  110322. iconName: 'arrow-alt-circle-down',
  110323. icon: [512, 512, [], "f358", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM212 140v116h-70.9c-10.7 0-16.1 13-8.5 20.5l114.9 114.3c4.7 4.7 12.2 4.7 16.9 0l114.9-114.3c7.6-7.6 2.2-20.5-8.5-20.5H300V140c0-6.6-5.4-12-12-12h-64c-6.6 0-12 5.4-12 12z"]
  110324. };
  110325. var faArrowAltCircleLeft = {
  110326. prefix: 'fas',
  110327. iconName: 'arrow-alt-circle-left',
  110328. icon: [512, 512, [], "f359", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm116-292H256v-70.9c0-10.7-13-16.1-20.5-8.5L121.2 247.5c-4.7 4.7-4.7 12.2 0 16.9l114.3 114.9c7.6 7.6 20.5 2.2 20.5-8.5V300h116c6.6 0 12-5.4 12-12v-64c0-6.6-5.4-12-12-12z"]
  110329. };
  110330. var faArrowAltCircleRight = {
  110331. prefix: 'fas',
  110332. iconName: 'arrow-alt-circle-right',
  110333. icon: [512, 512, [], "f35a", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zM140 300h116v70.9c0 10.7 13 16.1 20.5 8.5l114.3-114.9c4.7-4.7 4.7-12.2 0-16.9l-114.3-115c-7.6-7.6-20.5-2.2-20.5 8.5V212H140c-6.6 0-12 5.4-12 12v64c0 6.6 5.4 12 12 12z"]
  110334. };
  110335. var faArrowAltCircleUp = {
  110336. prefix: 'fas',
  110337. iconName: 'arrow-alt-circle-up',
  110338. icon: [512, 512, [], "f35b", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm292 116V256h70.9c10.7 0 16.1-13 8.5-20.5L264.5 121.2c-4.7-4.7-12.2-4.7-16.9 0l-115 114.3c-7.6 7.6-2.2 20.5 8.5 20.5H212v116c0 6.6 5.4 12 12 12h64c6.6 0 12-5.4 12-12z"]
  110339. };
  110340. var faArrowCircleDown = {
  110341. prefix: 'fas',
  110342. iconName: 'arrow-circle-down',
  110343. icon: [512, 512, [], "f0ab", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zm-143.6-28.9L288 302.6V120c0-13.3-10.7-24-24-24h-16c-13.3 0-24 10.7-24 24v182.6l-72.4-75.5c-9.3-9.7-24.8-9.9-34.3-.4l-10.9 11c-9.4 9.4-9.4 24.6 0 33.9L239 404.3c9.4 9.4 24.6 9.4 33.9 0l132.7-132.7c9.4-9.4 9.4-24.6 0-33.9l-10.9-11c-9.5-9.5-25-9.3-34.3.4z"]
  110344. };
  110345. var faArrowCircleLeft = {
  110346. prefix: 'fas',
  110347. iconName: 'arrow-circle-left',
  110348. icon: [512, 512, [], "f0a8", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zm28.9-143.6L209.4 288H392c13.3 0 24-10.7 24-24v-16c0-13.3-10.7-24-24-24H209.4l75.5-72.4c9.7-9.3 9.9-24.8.4-34.3l-11-10.9c-9.4-9.4-24.6-9.4-33.9 0L107.7 239c-9.4 9.4-9.4 24.6 0 33.9l132.7 132.7c9.4 9.4 24.6 9.4 33.9 0l11-10.9c9.5-9.5 9.3-25-.4-34.3z"]
  110349. };
  110350. var faArrowCircleRight = {
  110351. prefix: 'fas',
  110352. iconName: 'arrow-circle-right',
  110353. icon: [512, 512, [], "f0a9", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm-28.9 143.6l75.5 72.4H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h182.6l-75.5 72.4c-9.7 9.3-9.9 24.8-.4 34.3l11 10.9c9.4 9.4 24.6 9.4 33.9 0L404.3 273c9.4-9.4 9.4-24.6 0-33.9L271.6 106.3c-9.4-9.4-24.6-9.4-33.9 0l-11 10.9c-9.5 9.6-9.3 25.1.4 34.4z"]
  110354. };
  110355. var faArrowCircleUp = {
  110356. prefix: 'fas',
  110357. iconName: 'arrow-circle-up',
  110358. icon: [512, 512, [], "f0aa", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm143.6 28.9l72.4-75.5V392c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24V209.4l72.4 75.5c9.3 9.7 24.8 9.9 34.3.4l10.9-11c9.4-9.4 9.4-24.6 0-33.9L273 107.7c-9.4-9.4-24.6-9.4-33.9 0L106.3 240.4c-9.4 9.4-9.4 24.6 0 33.9l10.9 11c9.6 9.5 25.1 9.3 34.4-.4z"]
  110359. };
  110360. var faArrowDown = {
  110361. prefix: 'fas',
  110362. iconName: 'arrow-down',
  110363. icon: [448, 512, [], "f063", "M413.1 222.5l22.2 22.2c9.4 9.4 9.4 24.6 0 33.9L241 473c-9.4 9.4-24.6 9.4-33.9 0L12.7 278.6c-9.4-9.4-9.4-24.6 0-33.9l22.2-22.2c9.5-9.5 25-9.3 34.3.4L184 343.4V56c0-13.3 10.7-24 24-24h32c13.3 0 24 10.7 24 24v287.4l114.8-120.5c9.3-9.8 24.8-10 34.3-.4z"]
  110364. };
  110365. var faArrowLeft = {
  110366. prefix: 'fas',
  110367. iconName: 'arrow-left',
  110368. icon: [448, 512, [], "f060", "M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"]
  110369. };
  110370. var faArrowRight = {
  110371. prefix: 'fas',
  110372. iconName: 'arrow-right',
  110373. icon: [448, 512, [], "f061", "M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z"]
  110374. };
  110375. var faArrowUp = {
  110376. prefix: 'fas',
  110377. iconName: 'arrow-up',
  110378. icon: [448, 512, [], "f062", "M34.9 289.5l-22.2-22.2c-9.4-9.4-9.4-24.6 0-33.9L207 39c9.4-9.4 24.6-9.4 33.9 0l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9L413 289.4c-9.5 9.5-25 9.3-34.3-.4L264 168.6V456c0 13.3-10.7 24-24 24h-32c-13.3 0-24-10.7-24-24V168.6L69.2 289.1c-9.3 9.8-24.8 10-34.3.4z"]
  110379. };
  110380. var faArrowsAlt = {
  110381. prefix: 'fas',
  110382. iconName: 'arrows-alt',
  110383. icon: [512, 512, [], "f0b2", "M352.201 425.775l-79.196 79.196c-9.373 9.373-24.568 9.373-33.941 0l-79.196-79.196c-15.119-15.119-4.411-40.971 16.971-40.97h51.162L228 284H127.196v51.162c0 21.382-25.851 32.09-40.971 16.971L7.029 272.937c-9.373-9.373-9.373-24.569 0-33.941L86.225 159.8c15.119-15.119 40.971-4.411 40.971 16.971V228H228V127.196h-51.23c-21.382 0-32.09-25.851-16.971-40.971l79.196-79.196c9.373-9.373 24.568-9.373 33.941 0l79.196 79.196c15.119 15.119 4.411 40.971-16.971 40.971h-51.162V228h100.804v-51.162c0-21.382 25.851-32.09 40.97-16.971l79.196 79.196c9.373 9.373 9.373 24.569 0 33.941L425.773 352.2c-15.119 15.119-40.971 4.411-40.97-16.971V284H284v100.804h51.23c21.382 0 32.09 25.851 16.971 40.971z"]
  110384. };
  110385. var faArrowsAltH = {
  110386. prefix: 'fas',
  110387. iconName: 'arrows-alt-h',
  110388. icon: [512, 512, [], "f337", "M377.941 169.941V216H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.568 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296h243.882v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.568 0-33.941l-86.059-86.059c-15.119-15.12-40.971-4.412-40.971 16.97z"]
  110389. };
  110390. var faArrowsAltV = {
  110391. prefix: 'fas',
  110392. iconName: 'arrows-alt-v',
  110393. icon: [256, 512, [], "f338", "M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z"]
  110394. };
  110395. var faAssistiveListeningSystems = {
  110396. prefix: 'fas',
  110397. iconName: 'assistive-listening-systems',
  110398. icon: [512, 512, [], "f2a2", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm-80 236c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zM32 448c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm480-187.993c0-1.518-.012-3.025-.045-4.531C510.076 140.525 436.157 38.47 327.994 1.511c-14.633-4.998-30.549 2.809-35.55 17.442-5 14.633 2.81 30.549 17.442 35.55 85.906 29.354 144.61 110.513 146.077 201.953l.003.188c.026 1.118.033 2.236.033 3.363 0 15.464 12.536 28 28 28s28.001-12.536 28.001-28zM152.971 439.029l-80-80L39.03 392.97l80 80 33.941-33.941z"]
  110399. };
  110400. var faAsterisk = {
  110401. prefix: 'fas',
  110402. iconName: 'asterisk',
  110403. icon: [512, 512, [], "f069", "M478.21 334.093L336 256l142.21-78.093c11.795-6.477 15.961-21.384 9.232-33.037l-19.48-33.741c-6.728-11.653-21.72-15.499-33.227-8.523L296 186.718l3.475-162.204C299.763 11.061 288.937 0 275.48 0h-38.96c-13.456 0-24.283 11.061-23.994 24.514L216 186.718 77.265 102.607c-11.506-6.976-26.499-3.13-33.227 8.523l-19.48 33.741c-6.728 11.653-2.562 26.56 9.233 33.037L176 256 33.79 334.093c-11.795 6.477-15.961 21.384-9.232 33.037l19.48 33.741c6.728 11.653 21.721 15.499 33.227 8.523L216 325.282l-3.475 162.204C212.237 500.939 223.064 512 236.52 512h38.961c13.456 0 24.283-11.061 23.995-24.514L296 325.282l138.735 84.111c11.506 6.976 26.499 3.13 33.227-8.523l19.48-33.741c6.728-11.653 2.563-26.559-9.232-33.036z"]
  110404. };
  110405. var faAt = {
  110406. prefix: 'fas',
  110407. iconName: 'at',
  110408. icon: [512, 512, [], "f1fa", "M256 8C118.941 8 8 118.919 8 256c0 137.059 110.919 248 248 248 48.154 0 95.342-14.14 135.408-40.223 12.005-7.815 14.625-24.288 5.552-35.372l-10.177-12.433c-7.671-9.371-21.179-11.667-31.373-5.129C325.92 429.757 291.314 440 256 440c-101.458 0-184-82.542-184-184S154.542 72 256 72c100.139 0 184 57.619 184 160 0 38.786-21.093 79.742-58.17 83.693-17.349-.454-16.91-12.857-13.476-30.024l23.433-121.11C394.653 149.75 383.308 136 368.225 136h-44.981a13.518 13.518 0 0 0-13.432 11.993l-.01.092c-14.697-17.901-40.448-21.775-59.971-21.775-74.58 0-137.831 62.234-137.831 151.46 0 65.303 36.785 105.87 96 105.87 26.984 0 57.369-15.637 74.991-38.333 9.522 34.104 40.613 34.103 70.71 34.103C462.609 379.41 504 307.798 504 232 504 95.653 394.023 8 256 8zm-21.68 304.43c-22.249 0-36.07-15.623-36.07-40.771 0-44.993 30.779-72.729 58.63-72.729 22.292 0 35.601 15.241 35.601 40.77 0 45.061-33.875 72.73-58.161 72.73z"]
  110409. };
  110410. var faAtlas = {
  110411. prefix: 'fas',
  110412. iconName: 'atlas',
  110413. icon: [448, 512, [], "f558", "M318.38 208h-39.09c-1.49 27.03-6.54 51.35-14.21 70.41 27.71-13.24 48.02-39.19 53.3-70.41zm0-32c-5.29-31.22-25.59-57.17-53.3-70.41 7.68 19.06 12.72 43.38 14.21 70.41h39.09zM224 97.31c-7.69 7.45-20.77 34.42-23.43 78.69h46.87c-2.67-44.26-15.75-71.24-23.44-78.69zm-41.08 8.28c-27.71 13.24-48.02 39.19-53.3 70.41h39.09c1.49-27.03 6.53-51.35 14.21-70.41zm0 172.82c-7.68-19.06-12.72-43.38-14.21-70.41h-39.09c5.28 31.22 25.59 57.17 53.3 70.41zM247.43 208h-46.87c2.66 44.26 15.74 71.24 23.43 78.69 7.7-7.45 20.78-34.43 23.44-78.69zM448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM224 64c70.69 0 128 57.31 128 128s-57.31 128-128 128S96 262.69 96 192 153.31 64 224 64zm160 384H96c-19.2 0-32-12.8-32-32s16-32 32-32h288v64z"]
  110414. };
  110415. var faAtom = {
  110416. prefix: 'fas',
  110417. iconName: 'atom',
  110418. icon: [448, 512, [], "f5d2", "M223.99908,224a32,32,0,1,0,32.00782,32A32.06431,32.06431,0,0,0,223.99908,224Zm214.172-96c-10.877-19.5-40.50979-50.75-116.27544-41.875C300.39168,34.875,267.63386,0,223.99908,0s-76.39066,34.875-97.89653,86.125C50.3369,77.375,20.706,108.5,9.82907,128-6.54984,157.375-5.17484,201.125,34.958,256-5.17484,310.875-6.54984,354.625,9.82907,384c29.13087,52.375,101.64652,43.625,116.27348,41.875C147.60842,477.125,180.36429,512,223.99908,512s76.3926-34.875,97.89652-86.125c14.62891,1.75,87.14456,10.5,116.27544-41.875C454.55,354.625,453.175,310.875,413.04017,256,453.175,201.125,454.55,157.375,438.171,128ZM63.33886,352c-4-7.25-.125-24.75,15.00391-48.25,6.87695,6.5,14.12891,12.875,21.88087,19.125,1.625,13.75,4,27.125,6.75,40.125C82.34472,363.875,67.09081,358.625,63.33886,352Zm36.88478-162.875c-7.752,6.25-15.00392,12.625-21.88087,19.125-15.12891-23.5-19.00392-41-15.00391-48.25,3.377-6.125,16.37891-11.5,37.88478-11.5,1.75,0,3.875.375,5.75.375C104.09864,162.25,101.84864,175.625,100.22364,189.125ZM223.99908,64c9.50195,0,22.25586,13.5,33.88282,37.25-11.252,3.75-22.50391,8-33.88282,12.875-11.377-4.875-22.62892-9.125-33.88283-12.875C201.74516,77.5,214.49712,64,223.99908,64Zm0,384c-9.502,0-22.25392-13.5-33.88283-37.25,11.25391-3.75,22.50587-8,33.88283-12.875C235.378,402.75,246.62994,407,257.8819,410.75,246.25494,434.5,233.501,448,223.99908,448Zm0-112a80,80,0,1,1,80-80A80.00023,80.00023,0,0,1,223.99908,336ZM384.6593,352c-3.625,6.625-19.00392,11.875-43.63479,11,2.752-13,5.127-26.375,6.752-40.125,7.75195-6.25,15.00391-12.625,21.87891-19.125C384.7843,327.25,388.6593,344.75,384.6593,352ZM369.65538,208.25c-6.875-6.5-14.127-12.875-21.87891-19.125-1.625-13.5-3.875-26.875-6.752-40.25,1.875,0,4.002-.375,5.752-.375,21.50391,0,34.50782,5.375,37.88283,11.5C388.6593,167.25,384.7843,184.75,369.65538,208.25Z"]
  110419. };
  110420. var faAudioDescription = {
  110421. prefix: 'fas',
  110422. iconName: 'audio-description',
  110423. icon: [512, 512, [], "f29e", "M162.925 238.709l8.822 30.655h-25.606l9.041-30.652c1.277-4.421 2.651-9.994 3.872-15.245 1.22 5.251 2.594 10.823 3.871 15.242zm166.474-32.099h-14.523v98.781h14.523c29.776 0 46.175-17.678 46.175-49.776 0-32.239-17.49-49.005-46.175-49.005zM512 112v288c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48zM245.459 336.139l-57.097-168A12.001 12.001 0 0 0 177 160h-35.894a12.001 12.001 0 0 0-11.362 8.139l-57.097 168C70.003 343.922 75.789 352 84.009 352h29.133a12 12 0 0 0 11.535-8.693l8.574-29.906h51.367l8.793 29.977A12 12 0 0 0 204.926 352h29.172c8.22 0 14.006-8.078 11.361-15.861zm184.701-80.525c0-58.977-37.919-95.614-98.96-95.614h-57.366c-6.627 0-12 5.373-12 12v168c0 6.627 5.373 12 12 12H331.2c61.041 0 98.96-36.933 98.96-96.386z"]
  110424. };
  110425. var faAward = {
  110426. prefix: 'fas',
  110427. iconName: 'award',
  110428. icon: [384, 512, [], "f559", "M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z"]
  110429. };
  110430. var faBaby = {
  110431. prefix: 'fas',
  110432. iconName: 'baby',
  110433. icon: [384, 512, [], "f77c", "M192 160c44.2 0 80-35.8 80-80S236.2 0 192 0s-80 35.8-80 80 35.8 80 80 80zm-53.4 248.8l25.6-32-61.5-51.2L56.8 383c-11.4 14.2-11.7 34.4-.8 49l48 64c7.9 10.5 19.9 16 32 16 8.3 0 16.8-2.6 24-8 17.7-13.2 21.2-38.3 8-56l-29.4-39.2zm142.7-83.2l-61.5 51.2 25.6 32L216 448c-13.2 17.7-9.7 42.8 8 56 7.2 5.4 15.6 8 24 8 12.2 0 24.2-5.5 32-16l48-64c10.9-14.6 10.6-34.8-.8-49l-45.9-57.4zM376.7 145c-12.7-18.1-37.6-22.4-55.7-9.8l-40.6 28.5c-52.7 37-124.2 37-176.8 0L63 135.3C44.9 122.6 20 127 7.3 145-5.4 163.1-1 188 17 200.7l40.6 28.5c17 11.9 35.4 20.9 54.4 27.9V288h160v-30.8c19-7 37.4-16 54.4-27.9l40.6-28.5c18.1-12.8 22.4-37.7 9.7-55.8z"]
  110434. };
  110435. var faBabyCarriage = {
  110436. prefix: 'fas',
  110437. iconName: 'baby-carriage',
  110438. icon: [512, 512, [], "f77d", "M144.8 17c-11.3-17.8-37.2-22.8-54-9.4C35.3 51.9 0 118 0 192h256L144.8 17zM496 96h-48c-35.3 0-64 28.7-64 64v64H0c0 50.6 23 96.4 60.3 130.7C25.7 363.6 0 394.7 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-8.9-1.8-17.2-4.4-25.2 21.6 5.9 44.6 9.2 68.4 9.2s46.9-3.3 68.4-9.2c-2.7 8-4.4 16.3-4.4 25.2 0 44.2 35.8 80 80 80s80-35.8 80-80c0-37.3-25.7-68.4-60.3-77.3C425 320.4 448 274.6 448 224v-64h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM80 464c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm320-32c0 17.6-14.4 32-32 32s-32-14.4-32-32 14.4-32 32-32 32 14.4 32 32z"]
  110439. };
  110440. var faBackspace = {
  110441. prefix: 'fas',
  110442. iconName: 'backspace',
  110443. icon: [640, 512, [], "f55a", "M576 64H205.26A63.97 63.97 0 0 0 160 82.75L9.37 233.37c-12.5 12.5-12.5 32.76 0 45.25L160 429.25c12 12 28.28 18.75 45.25 18.75H576c35.35 0 64-28.65 64-64V128c0-35.35-28.65-64-64-64zm-84.69 254.06c6.25 6.25 6.25 16.38 0 22.63l-22.62 22.62c-6.25 6.25-16.38 6.25-22.63 0L384 301.25l-62.06 62.06c-6.25 6.25-16.38 6.25-22.63 0l-22.62-22.62c-6.25-6.25-6.25-16.38 0-22.63L338.75 256l-62.06-62.06c-6.25-6.25-6.25-16.38 0-22.63l22.62-22.62c6.25-6.25 16.38-6.25 22.63 0L384 210.75l62.06-62.06c6.25-6.25 16.38-6.25 22.63 0l22.62 22.62c6.25 6.25 6.25 16.38 0 22.63L429.25 256l62.06 62.06z"]
  110444. };
  110445. var faBackward = {
  110446. prefix: 'fas',
  110447. iconName: 'backward',
  110448. icon: [512, 512, [], "f04a", "M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z"]
  110449. };
  110450. var faBacon = {
  110451. prefix: 'fas',
  110452. iconName: 'bacon',
  110453. icon: [576, 512, [], "f7e5", "M218.92 336.39c34.89-34.89 44.2-59.7 54.05-86 10.61-28.29 21.59-57.54 61.37-97.34s69.05-50.77 97.35-61.38c23.88-9 46.64-17.68 76.79-45.37L470.81 8.91a31 31 0 0 0-40.18-2.83c-13.64 10.1-25.15 14.39-41 20.3C247 79.52 209.26 191.29 200.65 214.1c-29.75 78.83-89.55 94.68-98.72 98.09-24.86 9.26-54.73 20.38-91.07 50.36C-3 374-3.63 395 9.07 407.61l35.76 35.51C80 410.52 107 400.15 133 390.39c26.27-9.84 51.06-19.12 85.92-54zm348-232l-35.75-35.51c-35.19 32.63-62.18 43-88.25 52.79-26.26 9.85-51.06 19.16-85.95 54s-44.19 59.69-54 86C292.33 290 281.34 319.22 241.55 359s-69 50.73-97.3 61.32c-23.86 9-46.61 17.66-76.72 45.33l37.68 37.43a31 31 0 0 0 40.18 2.82c13.6-10.06 25.09-14.34 40.94-20.24 142.2-53 180-164.1 188.94-187.69C405 219.18 464.8 203.3 474 199.86c24.87-9.27 54.74-20.4 91.11-50.41 13.89-11.4 14.52-32.45 1.82-45.05z"]
  110454. };
  110455. var faBacteria = {
  110456. prefix: 'fas',
  110457. iconName: 'bacteria',
  110458. icon: [640, 512, [], "e059", "M272.35,226.4A17.71,17.71,0,0,0,281.46,203l-4-9.08a121.29,121.29,0,0,1,12.36-3.08A83.34,83.34,0,0,0,323.57,177l10,9a17.76,17.76,0,1,0,23.92-26.27l-9.72-8.76a83.12,83.12,0,0,0,11.65-48.18l11.85-3.51a17.73,17.73,0,1,0-10.15-34l-11.34,3.36a84,84,0,0,0-36.38-35.57l2.84-10.85a17.8,17.8,0,0,0-34.47-8.93l-2.82,10.78a83.25,83.25,0,0,0-16.74,1.1C250.83,27,240,30.22,229.1,33.39l-3.38-9.46a17.8,17.8,0,0,0-33.56,11.89l3.49,9.8a286.74,286.74,0,0,0-43.94,23.57l-6.32-8.43a17.9,17.9,0,0,0-24.94-3.6A17.69,17.69,0,0,0,116.84,82l6.45,8.61a286.59,286.59,0,0,0-34.95,35.33l-8.82-6.42a17.84,17.84,0,0,0-24.89,3.86,17.66,17.66,0,0,0,3.88,24.77l8.88,6.47a286.6,286.6,0,0,0-23,43.91l-10.48-3.59a17.73,17.73,0,1,0-11.59,33.52L32.67,232c-2.79,10-5.79,19.84-7.52,30.22a83.16,83.16,0,0,0-.82,19l-11.58,3.43a17.73,17.73,0,1,0,10.13,34l11.27-3.33a83.51,83.51,0,0,0,36.39,35.43l-2.88,11.06a17.81,17.81,0,0,0,34.48,8.92l2.87-11c1,0,2.07.26,3.1.26a83.39,83.39,0,0,0,45.65-13.88l8.59,8.8a17.77,17.77,0,0,0,25.56-24.7l-9.14-9.37a83.41,83.41,0,0,0,12.08-31.05,119.08,119.08,0,0,1,3.87-15.53l9,4.22a17.74,17.74,0,1,0,15.15-32.09l-8.8-4.11c.67-1,1.2-2.08,1.9-3.05a119.89,119.89,0,0,1,7.87-9.41,121.73,121.73,0,0,1,11.65-11.4,119.49,119.49,0,0,1,9.94-7.82c1.12-.77,2.32-1.42,3.47-2.15l3.92,8.85a17.86,17.86,0,0,0,16.32,10.58A18.14,18.14,0,0,0,272.35,226.4ZM128,256a32,32,0,1,1,32-32A32,32,0,0,1,128,256Zm80-96a16,16,0,1,1,16-16A16,16,0,0,1,208,160Zm431.26,45.3a17.79,17.79,0,0,0-17.06-12.69,17.55,17.55,0,0,0-5.08.74l-11.27,3.33a83.61,83.61,0,0,0-36.39-35.43l2.88-11.06a17.81,17.81,0,0,0-34.48-8.91l-2.87,11c-1,0-2.07-.26-3.1-.26a83.32,83.32,0,0,0-45.65,13.89l-8.59-8.81a17.77,17.77,0,0,0-25.56,24.7l9.14,9.37a83.28,83.28,0,0,0-12.08,31.06,119.34,119.34,0,0,1-3.87,15.52l-9-4.22a17.74,17.74,0,1,0-15.15,32.09l8.8,4.11c-.67,1-1.2,2.08-1.89,3.05a117.71,117.71,0,0,1-7.94,9.47,119,119,0,0,1-11.57,11.33,121.59,121.59,0,0,1-10,7.83c-1.12.77-2.32,1.42-3.47,2.15l-3.92-8.85a17.86,17.86,0,0,0-16.32-10.58,18.14,18.14,0,0,0-7.18,1.5A17.71,17.71,0,0,0,358.54,309l4,9.08a118.71,118.71,0,0,1-12.36,3.08,83.34,83.34,0,0,0-33.77,13.9l-10-9a17.77,17.77,0,1,0-23.92,26.28l9.72,8.75a83.12,83.12,0,0,0-11.65,48.18l-11.86,3.51a17.73,17.73,0,1,0,10.16,34l11.34-3.36A84,84,0,0,0,326.61,479l-2.84,10.85a17.8,17.8,0,0,0,34.47,8.93L361.06,488a83.3,83.3,0,0,0,16.74-1.1c11.37-1.89,22.24-5.07,33.1-8.24l3.38,9.46a17.8,17.8,0,0,0,33.56-11.89l-3.49-9.79a287.66,287.66,0,0,0,43.94-23.58l6.32,8.43a17.88,17.88,0,0,0,24.93,3.6A17.67,17.67,0,0,0,523.16,430l-6.45-8.61a287.37,287.37,0,0,0,34.95-35.34l8.82,6.42a17.76,17.76,0,1,0,21-28.63l-8.88-6.46a287.17,287.17,0,0,0,23-43.92l10.48,3.59a17.73,17.73,0,1,0,11.59-33.52L607.33,280c2.79-10,5.79-19.84,7.52-30.21a83.27,83.27,0,0,0,.82-19.05l11.58-3.43A17.7,17.7,0,0,0,639.26,205.3ZM416,416a32,32,0,1,1,32-32A32,32,0,0,1,416,416Z"]
  110459. };
  110460. var faBacterium = {
  110461. prefix: 'fas',
  110462. iconName: 'bacterium',
  110463. icon: [512, 512, [], "e05a", "M511,102.93A23.76,23.76,0,0,0,481.47,87l-15.12,4.48a111.85,111.85,0,0,0-48.5-47.42l3.79-14.47a23.74,23.74,0,0,0-46-11.91l-3.76,14.37a111.94,111.94,0,0,0-22.33,1.47,386.74,386.74,0,0,0-44.33,10.41l-4.3-12a23.74,23.74,0,0,0-44.75,15.85l4.3,12.05a383.4,383.4,0,0,0-58.69,31.83l-8-10.63a23.85,23.85,0,0,0-33.24-4.8,23.57,23.57,0,0,0-4.83,33.09l8,10.63a386.14,386.14,0,0,0-46.7,47.44l-11-8a23.68,23.68,0,1,0-28,38.17l11.09,8.06a383.45,383.45,0,0,0-30.92,58.75l-12.93-4.43a23.65,23.65,0,1,0-15.47,44.69l13,4.48a385.81,385.81,0,0,0-9.3,40.53A111.58,111.58,0,0,0,32.44,375L17,379.56a23.64,23.64,0,0,0,13.51,45.31l15-4.44a111.49,111.49,0,0,0,48.53,47.24l-3.85,14.75a23.66,23.66,0,0,0,17,28.83,24.7,24.7,0,0,0,6,.75,23.73,23.73,0,0,0,23-17.7L140,479.67c1.37.05,2.77.35,4.13.35A111.22,111.22,0,0,0,205,461.5l11.45,11.74a23.7,23.7,0,0,0,34.08-32.93l-12.19-12.5a111,111,0,0,0,16.11-41.4,158.69,158.69,0,0,1,5.16-20.71l12,5.64a23.66,23.66,0,1,0,20.19-42.79l-11.72-5.49c.89-1.32,1.59-2.77,2.52-4.06a157.86,157.86,0,0,1,10.46-12.49,159.5,159.5,0,0,1,15.59-15.28,162.18,162.18,0,0,1,13.23-10.4c1.5-1,3.1-1.89,4.63-2.87l5.23,11.8a23.74,23.74,0,0,0,43.48-19.08l-5.36-12.11a158.87,158.87,0,0,1,16.49-4.1,111,111,0,0,0,45-18.54l13.33,12a23.69,23.69,0,1,0,31.88-35l-12.94-11.67A110.83,110.83,0,0,0,479.21,137L495,132.32A23.61,23.61,0,0,0,511,102.93ZM160,368a48,48,0,1,1,48-48A48,48,0,0,1,160,368Zm80-136a24,24,0,1,1,24-24A24,24,0,0,1,240,232Z"]
  110464. };
  110465. var faBahai = {
  110466. prefix: 'fas',
  110467. iconName: 'bahai',
  110468. icon: [512, 512, [], "f666", "M496.25 202.52l-110-15.44 41.82-104.34c6.67-16.64-11.6-32.18-26.59-22.63L307.44 120 273.35 12.82C270.64 4.27 263.32 0 256 0c-7.32 0-14.64 4.27-17.35 12.82l-34.09 107.19-94.04-59.89c-14.99-9.55-33.25 5.99-26.59 22.63l41.82 104.34-110 15.43c-17.54 2.46-21.68 26.27-6.03 34.67l98.16 52.66-74.48 83.54c-10.92 12.25-1.72 30.93 13.29 30.93 1.31 0 2.67-.14 4.07-.45l108.57-23.65-4.11 112.55c-.43 11.65 8.87 19.22 18.41 19.22 5.15 0 10.39-2.21 14.2-7.18l68.18-88.9 68.18 88.9c3.81 4.97 9.04 7.18 14.2 7.18 9.54 0 18.84-7.57 18.41-19.22l-4.11-112.55 108.57 23.65c17.36 3.76 29.21-17.2 17.35-30.49l-74.48-83.54 98.16-52.66c15.64-8.39 11.5-32.2-6.04-34.66zM338.51 311.68l-51.89-11.3 1.97 53.79L256 311.68l-32.59 42.49 1.96-53.79-51.89 11.3 35.6-39.93-46.92-25.17 52.57-7.38-19.99-49.87 44.95 28.62L256 166.72l16.29 51.23 44.95-28.62-19.99 49.87 52.57 7.38-46.92 25.17 35.61 39.93z"]
  110469. };
  110470. var faBalanceScale = {
  110471. prefix: 'fas',
  110472. iconName: 'balance-scale',
  110473. icon: [640, 512, [], "f24e", "M256 336h-.02c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0C-2.06 328.75.02 320.33.02 336H0c0 44.18 57.31 80 128 80s128-35.82 128-80zM128 176l72 144H56l72-144zm511.98 160c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 320l72-144 72 144H440zm88 128H352V153.25c23.51-10.29 41.16-31.48 46.39-57.25H528c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H383.64C369.04 12.68 346.09 0 320 0s-49.04 12.68-63.64 32H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h129.61c5.23 25.76 22.87 46.96 46.39 57.25V448H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
  110474. };
  110475. var faBalanceScaleLeft = {
  110476. prefix: 'fas',
  110477. iconName: 'balance-scale-left',
  110478. icon: [640, 512, [], "f515", "M528 448H352V153.25c20.42-8.94 36.1-26.22 43.38-47.47l132-44.26c8.38-2.81 12.89-11.88 10.08-20.26l-10.17-30.34C524.48 2.54 515.41-1.97 507.03.84L389.11 40.37C375.3 16.36 349.69 0 320 0c-44.18 0-80 35.82-80 80 0 3.43.59 6.71 1.01 10.03l-128.39 43.05c-8.38 2.81-12.89 11.88-10.08 20.26l10.17 30.34c2.81 8.38 11.88 12.89 20.26 10.08l142.05-47.63c4.07 2.77 8.43 5.12 12.99 7.12V496c0 8.84 7.16 16 16 16h224c8.84 0 16-7.16 16-16v-32c-.01-8.84-7.17-16-16.01-16zm111.98-144c0-16.18 1.34-8.73-85.05-181.51-17.65-35.29-68.19-35.36-85.87 0-87.12 174.26-85.04 165.84-85.04 181.51H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02zM440 288l72-144 72 144H440zm-269.07-37.51c-17.65-35.29-68.19-35.36-85.87 0C-2.06 424.75.02 416.33.02 432H0c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-16.18 1.34-8.73-85.05-181.51zM56 416l72-144 72 144H56z"]
  110479. };
  110480. var faBalanceScaleRight = {
  110481. prefix: 'fas',
  110482. iconName: 'balance-scale-right',
  110483. icon: [640, 512, [], "f516", "M96 464v32c0 8.84 7.16 16 16 16h224c8.84 0 16-7.16 16-16V153.25c4.56-2 8.92-4.35 12.99-7.12l142.05 47.63c8.38 2.81 17.45-1.71 20.26-10.08l10.17-30.34c2.81-8.38-1.71-17.45-10.08-20.26l-128.4-43.05c.42-3.32 1.01-6.6 1.01-10.03 0-44.18-35.82-80-80-80-29.69 0-55.3 16.36-69.11 40.37L132.96.83c-8.38-2.81-17.45 1.71-20.26 10.08l-10.17 30.34c-2.81 8.38 1.71 17.45 10.08 20.26l132 44.26c7.28 21.25 22.96 38.54 43.38 47.47V448H112c-8.84 0-16 7.16-16 16zM0 304c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-15.67 2.08-7.25-85.05-181.51-17.68-35.36-68.22-35.29-85.87 0C-1.32 295.27.02 287.82.02 304H0zm56-16l72-144 72 144H56zm328.02 144H384c0 44.18 57.31 80 128 80s128-35.82 128-80h-.02c0-15.67 2.08-7.25-85.05-181.51-17.68-35.36-68.22-35.29-85.87 0-86.38 172.78-85.04 165.33-85.04 181.51zM440 416l72-144 72 144H440z"]
  110484. };
  110485. var faBan = {
  110486. prefix: 'fas',
  110487. iconName: 'ban',
  110488. icon: [512, 512, [], "f05e", "M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"]
  110489. };
  110490. var faBandAid = {
  110491. prefix: 'fas',
  110492. iconName: 'band-aid',
  110493. icon: [640, 512, [], "f462", "M0 160v192c0 35.3 28.7 64 64 64h96V96H64c-35.3 0-64 28.7-64 64zm576-64h-96v320h96c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64zM192 416h256V96H192v320zm176-232c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm0 96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24z"]
  110494. };
  110495. var faBarcode = {
  110496. prefix: 'fas',
  110497. iconName: 'barcode',
  110498. icon: [512, 512, [], "f02a", "M0 448V64h18v384H0zm26.857-.273V64H36v383.727h-9.143zm27.143 0V64h8.857v383.727H54zm44.857 0V64h8.857v383.727h-8.857zm36 0V64h17.714v383.727h-17.714zm44.857 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm18 0V64h8.857v383.727h-8.857zm35.715 0V64h18v383.727h-18zm44.857 0V64h18v383.727h-18zm35.999 0V64h18.001v383.727h-18.001zm36.001 0V64h18.001v383.727h-18.001zm26.857 0V64h18v383.727h-18zm45.143 0V64h26.857v383.727h-26.857zm35.714 0V64h9.143v383.727H476zm18 .273V64h18v384h-18z"]
  110499. };
  110500. var faBars = {
  110501. prefix: 'fas',
  110502. iconName: 'bars',
  110503. icon: [448, 512, [], "f0c9", "M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"]
  110504. };
  110505. var faBaseballBall = {
  110506. prefix: 'fas',
  110507. iconName: 'baseball-ball',
  110508. icon: [496, 512, [], "f433", "M368.5 363.9l28.8-13.9c11.1 22.9 26 43.2 44.1 60.9 34-42.5 54.5-96.3 54.5-154.9 0-58.5-20.4-112.2-54.2-154.6-17.8 17.3-32.6 37.1-43.6 59.5l-28.7-14.1c12.8-26 30-49 50.8-69C375.6 34.7 315 8 248 8 181.1 8 120.5 34.6 75.9 77.7c20.7 19.9 37.9 42.9 50.7 68.8l-28.7 14.1c-11-22.3-25.7-42.1-43.5-59.4C20.4 143.7 0 197.4 0 256c0 58.6 20.4 112.3 54.4 154.7 18.2-17.7 33.2-38 44.3-61l28.8 13.9c-12.9 26.7-30.3 50.3-51.5 70.7 44.5 43.1 105.1 69.7 172 69.7 66.8 0 127.3-26.5 171.9-69.5-21.1-20.4-38.5-43.9-51.4-70.6zm-228.3-32l-30.5-9.8c14.9-46.4 12.7-93.8-.6-134l30.4-10c15 45.6 18 99.9.7 153.8zm216.3-153.4l30.4 10c-13.2 40.1-15.5 87.5-.6 134l-30.5 9.8c-17.3-54-14.3-108.3.7-153.8z"]
  110509. };
  110510. var faBasketballBall = {
  110511. prefix: 'fas',
  110512. iconName: 'basketball-ball',
  110513. icon: [496, 512, [], "f434", "M212.3 10.3c-43.8 6.3-86.2 24.1-122.2 53.8l77.4 77.4c27.8-35.8 43.3-81.2 44.8-131.2zM248 222L405.9 64.1c-42.4-35-93.6-53.5-145.5-56.1-1.2 63.9-21.5 122.3-58.7 167.7L248 222zM56.1 98.1c-29.7 36-47.5 78.4-53.8 122.2 50-1.5 95.5-17 131.2-44.8L56.1 98.1zm272.2 204.2c45.3-37.1 103.7-57.4 167.7-58.7-2.6-51.9-21.1-103.1-56.1-145.5L282 256l46.3 46.3zM248 290L90.1 447.9c42.4 34.9 93.6 53.5 145.5 56.1 1.3-64 21.6-122.4 58.7-167.7L248 290zm191.9 123.9c29.7-36 47.5-78.4 53.8-122.2-50.1 1.6-95.5 17.1-131.2 44.8l77.4 77.4zM167.7 209.7C122.3 246.9 63.9 267.3 0 268.4c2.6 51.9 21.1 103.1 56.1 145.5L214 256l-46.3-46.3zm116 292c43.8-6.3 86.2-24.1 122.2-53.8l-77.4-77.4c-27.7 35.7-43.2 81.2-44.8 131.2z"]
  110514. };
  110515. var faBath = {
  110516. prefix: 'fas',
  110517. iconName: 'bath',
  110518. icon: [512, 512, [], "f2cd", "M32,384a95.4,95.4,0,0,0,32,71.09V496a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V480H384v16a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V455.09A95.4,95.4,0,0,0,480,384V336H32ZM496,256H80V69.25a21.26,21.26,0,0,1,36.28-15l19.27,19.26c-13.13,29.88-7.61,59.11,8.62,79.73l-.17.17A16,16,0,0,0,144,176l11.31,11.31a16,16,0,0,0,22.63,0L283.31,81.94a16,16,0,0,0,0-22.63L272,48a16,16,0,0,0-22.62,0l-.17.17c-20.62-16.23-49.83-21.75-79.73-8.62L150.22,20.28A69.25,69.25,0,0,0,32,69.25V256H16A16,16,0,0,0,0,272v16a16,16,0,0,0,16,16H496a16,16,0,0,0,16-16V272A16,16,0,0,0,496,256Z"]
  110519. };
  110520. var faBatteryEmpty = {
  110521. prefix: 'fas',
  110522. iconName: 'battery-empty',
  110523. icon: [640, 512, [], "f244", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48z"]
  110524. };
  110525. var faBatteryFull = {
  110526. prefix: 'fas',
  110527. iconName: 'battery-full',
  110528. icon: [640, 512, [], "f240", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-48 96H96v128h416V192z"]
  110529. };
  110530. var faBatteryHalf = {
  110531. prefix: 'fas',
  110532. iconName: 'battery-half',
  110533. icon: [640, 512, [], "f242", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-240 96H96v128h224V192z"]
  110534. };
  110535. var faBatteryQuarter = {
  110536. prefix: 'fas',
  110537. iconName: 'battery-quarter',
  110538. icon: [640, 512, [], "f243", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-336 96H96v128h128V192z"]
  110539. };
  110540. var faBatteryThreeQuarters = {
  110541. prefix: 'fas',
  110542. iconName: 'battery-three-quarters',
  110543. icon: [640, 512, [], "f241", "M544 160v64h32v64h-32v64H64V160h480m16-64H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h512c26.51 0 48-21.49 48-48v-16h8c13.255 0 24-10.745 24-24V184c0-13.255-10.745-24-24-24h-8v-16c0-26.51-21.49-48-48-48zm-144 96H96v128h320V192z"]
  110544. };
  110545. var faBed = {
  110546. prefix: 'fas',
  110547. iconName: 'bed',
  110548. icon: [640, 512, [], "f236", "M176 256c44.11 0 80-35.89 80-80s-35.89-80-80-80-80 35.89-80 80 35.89 80 80 80zm352-128H304c-8.84 0-16 7.16-16 16v144H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v352c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h512v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V240c0-61.86-50.14-112-112-112z"]
  110549. };
  110550. var faBeer = {
  110551. prefix: 'fas',
  110552. iconName: 'beer',
  110553. icon: [448, 512, [], "f0fc", "M368 96h-48V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24v-42.11l80.606-35.977C429.396 365.063 448 336.388 448 304.86V176c0-44.112-35.888-80-80-80zm16 208.86a16.018 16.018 0 0 1-9.479 14.611L320 343.805V160h48c8.822 0 16 7.178 16 16v128.86zM208 384c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16zm-96 0c-8.836 0-16-7.164-16-16V144c0-8.836 7.164-16 16-16s16 7.164 16 16v224c0 8.836-7.164 16-16 16z"]
  110554. };
  110555. var faBell = {
  110556. prefix: 'fas',
  110557. iconName: 'bell',
  110558. icon: [448, 512, [], "f0f3", "M224 512c35.32 0 63.97-28.65 63.97-64H160.03c0 35.35 28.65 64 63.97 64zm215.39-149.71c-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84C118.56 68.1 64.08 130.3 64.08 208c0 102.3-36.15 133.53-55.47 154.29-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h383.8c19.12 0 32-15.6 32.1-32 .05-7.55-2.61-15.27-8.61-21.71z"]
  110559. };
  110560. var faBellSlash = {
  110561. prefix: 'fas',
  110562. iconName: 'bell-slash',
  110563. icon: [640, 512, [], "f1f6", "M633.82 458.1l-90.62-70.05c.19-1.38.8-2.66.8-4.06.05-7.55-2.61-15.27-8.61-21.71-19.32-20.76-55.47-51.99-55.47-154.29 0-77.7-54.48-139.9-127.94-155.16V32c0-17.67-14.32-32-31.98-32s-31.98 14.33-31.98 32v20.84c-40.33 8.38-74.66 31.07-97.59 62.57L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.35 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.42-6.97 4.17-17.02-2.81-22.45zM157.23 251.54c-8.61 67.96-36.41 93.33-52.62 110.75-6 6.45-8.66 14.16-8.61 21.71.11 16.4 12.98 32 32.1 32h241.92L157.23 251.54zM320 512c35.32 0 63.97-28.65 63.97-64H256.03c0 35.35 28.65 64 63.97 64z"]
  110564. };
  110565. var faBezierCurve = {
  110566. prefix: 'fas',
  110567. iconName: 'bezier-curve',
  110568. icon: [640, 512, [], "f55b", "M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5.88-16.99-5.88-26.44V88zm-48 232H64c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zM576 48c-26.84 0-49.75 16.56-59.25 40H432v72c0 9.45-2.19 18.36-5.88 26.44 34.27 24.35 59.74 59.95 71.04 101.56h49.4c-13.68-64.68-54.17-119.48-109.54-152h79.73c9.5 23.44 32.41 40 59.25 40 35.34 0 64-28.65 64-64s-28.66-64-64-64zm0 272h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"]
  110569. };
  110570. var faBible = {
  110571. prefix: 'fas',
  110572. iconName: 'bible',
  110573. icon: [448, 512, [], "f647", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM144 144c0-8.84 7.16-16 16-16h48V80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v48h48c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-48v112c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V192h-48c-8.84 0-16-7.16-16-16v-32zm236.8 304H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"]
  110574. };
  110575. var faBicycle = {
  110576. prefix: 'fas',
  110577. iconName: 'bicycle',
  110578. icon: [640, 512, [], "f206", "M512.509 192.001c-16.373-.064-32.03 2.955-46.436 8.495l-77.68-125.153A24 24 0 0 0 368.001 64h-64c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h50.649l14.896 24H256.002v-16c0-8.837-7.163-16-16-16h-87.459c-13.441 0-24.777 10.999-24.536 24.437.232 13.044 10.876 23.563 23.995 23.563h48.726l-29.417 47.52c-13.433-4.83-27.904-7.483-42.992-7.52C58.094 191.83.412 249.012.002 319.236-.413 390.279 57.055 448 128.002 448c59.642 0 109.758-40.793 123.967-96h52.033a24 24 0 0 0 20.406-11.367L410.37 201.77l14.938 24.067c-25.455 23.448-41.385 57.081-41.307 94.437.145 68.833 57.899 127.051 126.729 127.719 70.606.685 128.181-55.803 129.255-125.996 1.086-70.941-56.526-129.72-127.476-129.996zM186.75 265.772c9.727 10.529 16.673 23.661 19.642 38.228h-43.306l23.664-38.228zM128.002 400c-44.112 0-80-35.888-80-80s35.888-80 80-80c5.869 0 11.586.653 17.099 1.859l-45.505 73.509C89.715 331.327 101.213 352 120.002 352h81.3c-12.37 28.225-40.562 48-73.3 48zm162.63-96h-35.624c-3.96-31.756-19.556-59.894-42.383-80.026L237.371 184h127.547l-74.286 120zm217.057 95.886c-41.036-2.165-74.049-35.692-75.627-76.755-.812-21.121 6.633-40.518 19.335-55.263l44.433 71.586c4.66 7.508 14.524 9.816 22.032 5.156l13.594-8.437c7.508-4.66 9.817-14.524 5.156-22.032l-44.468-71.643a79.901 79.901 0 0 1 19.858-2.497c44.112 0 80 35.888 80 80-.001 45.54-38.252 82.316-84.313 79.885z"]
  110579. };
  110580. var faBiking = {
  110581. prefix: 'fas',
  110582. iconName: 'biking',
  110583. icon: [640, 512, [], "f84a", "M400 96a48 48 0 1 0-48-48 48 48 0 0 0 48 48zm-4 121a31.9 31.9 0 0 0 20 7h64a32 32 0 0 0 0-64h-52.78L356 103a31.94 31.94 0 0 0-40.81.68l-112 96a32 32 0 0 0 3.08 50.92L288 305.12V416a32 32 0 0 0 64 0V288a32 32 0 0 0-14.25-26.62l-41.36-27.57 58.25-49.92zm116 39a128 128 0 1 0 128 128 128 128 0 0 0-128-128zm0 192a64 64 0 1 1 64-64 64 64 0 0 1-64 64zM128 256a128 128 0 1 0 128 128 128 128 0 0 0-128-128zm0 192a64 64 0 1 1 64-64 64 64 0 0 1-64 64z"]
  110584. };
  110585. var faBinoculars = {
  110586. prefix: 'fas',
  110587. iconName: 'binoculars',
  110588. icon: [512, 512, [], "f1e5", "M416 48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v48h96V48zM63.91 159.99C61.4 253.84 3.46 274.22 0 404v44c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V288h32V128H95.84c-17.63 0-31.45 14.37-31.93 31.99zm384.18 0c-.48-17.62-14.3-31.99-31.93-31.99H320v160h32v160c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-44c-3.46-129.78-61.4-150.16-63.91-244.01zM176 32h-64c-8.84 0-16 7.16-16 16v48h96V48c0-8.84-7.16-16-16-16zm48 256h64V128h-64v160z"]
  110589. };
  110590. var faBiohazard = {
  110591. prefix: 'fas',
  110592. iconName: 'biohazard',
  110593. icon: [576, 512, [], "f780", "M287.9 112c18.6 0 36.2 3.8 52.8 9.6 13.3-10.3 23.6-24.3 29.5-40.7-25.2-10.9-53-17-82.2-17-29.1 0-56.9 6-82.1 16.9 5.9 16.4 16.2 30.4 29.5 40.7 16.5-5.7 34-9.5 52.5-9.5zM163.6 438.7c12-11.8 20.4-26.4 24.5-42.4-32.9-26.4-54.8-65.3-58.9-109.6-8.5-2.8-17.2-4.6-26.4-4.6-7.6 0-15.2 1-22.5 3.1 4.1 62.8 35.8 118 83.3 153.5zm224.2-42.6c4.1 16 12.5 30.7 24.5 42.5 47.4-35.5 79.1-90.7 83-153.5-7.2-2-14.7-3-22.2-3-9.2 0-18 1.9-26.6 4.7-4.1 44.2-26 82.9-58.7 109.3zm113.5-205c-17.6-10.4-36.3-16.6-55.3-19.9 6-17.7 10-36.4 10-56.2 0-41-14.5-80.8-41-112.2-2.5-3-6.6-3.7-10-1.8-3.3 1.9-4.8 6-3.6 9.7 4.5 13.8 6.6 26.3 6.6 38.5 0 67.8-53.8 122.9-120 122.9S168 117 168 49.2c0-12.1 2.2-24.7 6.6-38.5 1.2-3.7-.3-7.8-3.6-9.7-3.4-1.9-7.5-1.2-10 1.8C134.6 34.2 120 74 120 115c0 19.8 3.9 38.5 10 56.2-18.9 3.3-37.7 9.5-55.3 19.9-34.6 20.5-61 53.3-74.3 92.4-1.3 3.7.2 7.7 3.5 9.8 3.3 2 7.5 1.3 10-1.6 9.4-10.8 19-19.1 29.2-25.1 57.3-33.9 130.8-13.7 163.9 45 33.1 58.7 13.4 134-43.9 167.9-10.2 6.1-22 10.4-35.8 13.4-3.7.8-6.4 4.2-6.4 8.1.1 4 2.7 7.3 6.5 8 39.7 7.8 80.6.8 115.2-19.7 18-10.6 32.9-24.5 45.3-40.1 12.4 15.6 27.3 29.5 45.3 40.1 34.6 20.5 75.5 27.5 115.2 19.7 3.8-.7 6.4-4 6.5-8 0-3.9-2.6-7.3-6.4-8.1-13.9-2.9-25.6-7.3-35.8-13.4-57.3-33.9-77-109.2-43.9-167.9s106.6-78.9 163.9-45c10.2 6.1 19.8 14.3 29.2 25.1 2.5 2.9 6.7 3.6 10 1.6s4.8-6.1 3.5-9.8c-13.1-39.1-39.5-72-74.1-92.4zm-213.4 129c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"]
  110594. };
  110595. var faBirthdayCake = {
  110596. prefix: 'fas',
  110597. iconName: 'birthday-cake',
  110598. icon: [448, 512, [], "f1fd", "M448 384c-28.02 0-31.26-32-74.5-32-43.43 0-46.825 32-74.75 32-27.695 0-31.454-32-74.75-32-42.842 0-47.218 32-74.5 32-28.148 0-31.202-32-74.75-32-43.547 0-46.653 32-74.75 32v-80c0-26.5 21.5-48 48-48h16V112h64v144h64V112h64v144h64V112h64v144h16c26.5 0 48 21.5 48 48v80zm0 128H0v-96c43.356 0 46.767-32 74.75-32 27.951 0 31.253 32 74.75 32 42.843 0 47.217-32 74.5-32 28.148 0 31.201 32 74.75 32 43.357 0 46.767-32 74.75-32 27.488 0 31.252 32 74.5 32v96zM96 96c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40zm128 0c-17.75 0-32-14.25-32-32 0-31 32-23 32-64 12 0 32 29.5 32 56s-14.25 40-32 40z"]
  110599. };
  110600. var faBlender = {
  110601. prefix: 'fas',
  110602. iconName: 'blender',
  110603. icon: [512, 512, [], "f517", "M416 384H160c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-128 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm40-416h166.54L512 0H48C21.49 0 0 21.49 0 48v160c0 26.51 21.49 48 48 48h103.27l8.73 96h256l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H328c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H328c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM64 192V64h69.82l11.64 128H64z"]
  110604. };
  110605. var faBlenderPhone = {
  110606. prefix: 'fas',
  110607. iconName: 'blender-phone',
  110608. icon: [576, 512, [], "f6b6", "M392 64h166.54L576 0H192v352h288l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h114.18l17.46-64H392c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h140.36l17.46-64H392c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8zM158.8 335.01l-25.78-63.26c-2.78-6.81-9.8-10.99-17.24-10.26l-45.03 4.42c-17.28-46.94-17.65-99.78 0-147.72l45.03 4.42c7.43.73 14.46-3.46 17.24-10.26l25.78-63.26c3.02-7.39.2-15.85-6.68-20.07l-39.28-24.1C98.51-3.87 80.09-.5 68.95 11.97c-92.57 103.6-92 259.55 2.1 362.49 9.87 10.8 29.12 12.48 41.65 4.8l39.41-24.18c6.89-4.22 9.7-12.67 6.69-20.07zM480 384H192c-35.35 0-64 28.65-64 64v32c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32v-32c0-35.35-28.65-64-64-64zm-144 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  110609. };
  110610. var faBlind = {
  110611. prefix: 'fas',
  110612. iconName: 'blind',
  110613. icon: [384, 512, [], "f29d", "M380.15 510.837a8 8 0 0 1-10.989-2.687l-125.33-206.427a31.923 31.923 0 0 0 12.958-9.485l126.048 207.608a8 8 0 0 1-2.687 10.991zM142.803 314.338l-32.54 89.485 36.12 88.285c6.693 16.36 25.377 24.192 41.733 17.501 16.357-6.692 24.193-25.376 17.501-41.734l-62.814-153.537zM96 88c24.301 0 44-19.699 44-44S120.301 0 96 0 52 19.699 52 44s19.699 44 44 44zm154.837 169.128l-120-152c-4.733-5.995-11.75-9.108-18.837-9.112V96H80v.026c-7.146.003-14.217 3.161-18.944 9.24L0 183.766v95.694c0 13.455 11.011 24.791 24.464 24.536C37.505 303.748 48 293.1 48 280v-79.766l16-20.571v140.698L9.927 469.055c-6.04 16.609 2.528 34.969 19.138 41.009 16.602 6.039 34.968-2.524 41.009-19.138L136 309.638V202.441l-31.406-39.816a4 4 0 1 1 6.269-4.971l102.3 129.217c9.145 11.584 24.368 11.339 33.708 3.965 10.41-8.216 12.159-23.334 3.966-33.708z"]
  110614. };
  110615. var faBlog = {
  110616. prefix: 'fas',
  110617. iconName: 'blog',
  110618. icon: [512, 512, [], "f781", "M172.2 226.8c-14.6-2.9-28.2 8.9-28.2 23.8V301c0 10.2 7.1 18.4 16.7 22 18.2 6.8 31.3 24.4 31.3 45 0 26.5-21.5 48-48 48s-48-21.5-48-48V120c0-13.3-10.7-24-24-24H24c-13.3 0-24 10.7-24 24v248c0 89.5 82.1 160.2 175 140.7 54.4-11.4 98.3-55.4 109.7-109.7 17.4-82.9-37-157.2-112.5-172.2zM209 0c-9.2-.5-17 6.8-17 16v31.6c0 8.5 6.6 15.5 15 15.9 129.4 7 233.4 112 240.9 241.5.5 8.4 7.5 15 15.9 15h32.1c9.2 0 16.5-7.8 16-17C503.4 139.8 372.2 8.6 209 0zm.3 96c-9.3-.7-17.3 6.7-17.3 16.1v32.1c0 8.4 6.5 15.3 14.8 15.9 76.8 6.3 138 68.2 144.9 145.2.8 8.3 7.6 14.7 15.9 14.7h32.2c9.3 0 16.8-8 16.1-17.3-8.4-110.1-96.5-198.2-206.6-206.7z"]
  110619. };
  110620. var faBold = {
  110621. prefix: 'fas',
  110622. iconName: 'bold',
  110623. icon: [384, 512, [], "f032", "M333.49 238a122 122 0 0 0 27-65.21C367.87 96.49 308 32 233.42 32H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h31.87v288H34a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h209.32c70.8 0 134.14-51.75 141-122.4 4.74-48.45-16.39-92.06-50.83-119.6zM145.66 112h87.76a48 48 0 0 1 0 96h-87.76zm87.76 288h-87.76V288h87.76a56 56 0 0 1 0 112z"]
  110624. };
  110625. var faBolt = {
  110626. prefix: 'fas',
  110627. iconName: 'bolt',
  110628. icon: [320, 512, [], "f0e7", "M296 160H180.6l42.6-129.8C227.2 15 215.7 0 200 0H56C44 0 33.8 8.9 32.2 20.8l-32 240C-1.7 275.2 9.5 288 24 288h118.7L96.6 482.5c-3.6 15.2 8 29.5 23.3 29.5 8.4 0 16.4-4.4 20.8-12l176-304c9.3-15.9-2.2-36-20.7-36z"]
  110629. };
  110630. var faBomb = {
  110631. prefix: 'fas',
  110632. iconName: 'bomb',
  110633. icon: [512, 512, [], "f1e2", "M440.5 88.5l-52 52L415 167c9.4 9.4 9.4 24.6 0 33.9l-17.4 17.4c11.8 26.1 18.4 55.1 18.4 85.6 0 114.9-93.1 208-208 208S0 418.9 0 304 93.1 96 208 96c30.5 0 59.5 6.6 85.6 18.4L311 97c9.4-9.4 24.6-9.4 33.9 0l26.5 26.5 52-52 17.1 17zM500 60h-24c-6.6 0-12 5.4-12 12s5.4 12 12 12h24c6.6 0 12-5.4 12-12s-5.4-12-12-12zM440 0c-6.6 0-12 5.4-12 12v24c0 6.6 5.4 12 12 12s12-5.4 12-12V12c0-6.6-5.4-12-12-12zm33.9 55l17-17c4.7-4.7 4.7-12.3 0-17-4.7-4.7-12.3-4.7-17 0l-17 17c-4.7 4.7-4.7 12.3 0 17 4.8 4.7 12.4 4.7 17 0zm-67.8 0c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17zm67.8 34c-4.7-4.7-12.3-4.7-17 0-4.7 4.7-4.7 12.3 0 17l17 17c4.7 4.7 12.3 4.7 17 0 4.7-4.7 4.7-12.3 0-17l-17-17zM112 272c0-35.3 28.7-64 64-64 8.8 0 16-7.2 16-16s-7.2-16-16-16c-52.9 0-96 43.1-96 96 0 8.8 7.2 16 16 16s16-7.2 16-16z"]
  110634. };
  110635. var faBone = {
  110636. prefix: 'fas',
  110637. iconName: 'bone',
  110638. icon: [640, 512, [], "f5d7", "M598.88 244.56c25.2-12.6 41.12-38.36 41.12-66.53v-7.64C640 129.3 606.7 96 565.61 96c-32.02 0-60.44 20.49-70.57 50.86-7.68 23.03-11.6 45.14-38.11 45.14H183.06c-27.38 0-31.58-25.54-38.11-45.14C134.83 116.49 106.4 96 74.39 96 33.3 96 0 129.3 0 170.39v7.64c0 28.17 15.92 53.93 41.12 66.53 9.43 4.71 9.43 18.17 0 22.88C15.92 280.04 0 305.8 0 333.97v7.64C0 382.7 33.3 416 74.38 416c32.02 0 60.44-20.49 70.57-50.86 7.68-23.03 11.6-45.14 38.11-45.14h273.87c27.38 0 31.58 25.54 38.11 45.14C505.17 395.51 533.6 416 565.61 416c41.08 0 74.38-33.3 74.38-74.39v-7.64c0-28.18-15.92-53.93-41.12-66.53-9.42-4.71-9.42-18.17.01-22.88z"]
  110639. };
  110640. var faBong = {
  110641. prefix: 'fas',
  110642. iconName: 'bong',
  110643. icon: [448, 512, [], "f55c", "M302.5 512c23.18 0 44.43-12.58 56-32.66C374.69 451.26 384 418.75 384 384c0-36.12-10.08-69.81-27.44-98.62L400 241.94l9.38 9.38c6.25 6.25 16.38 6.25 22.63 0l11.3-11.32c6.25-6.25 6.25-16.38 0-22.63l-52.69-52.69c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l9.38 9.38-39.41 39.41c-11.56-11.37-24.53-21.33-38.65-29.51V63.74l15.97-.02c8.82-.01 15.97-7.16 15.98-15.98l.04-31.72C320 7.17 312.82-.01 303.97 0L80.03.26c-8.82.01-15.97 7.16-15.98 15.98l-.04 31.73c-.01 8.85 7.17 16.02 16.02 16.01L96 63.96v153.93C38.67 251.1 0 312.97 0 384c0 34.75 9.31 67.27 25.5 95.34C37.08 499.42 58.33 512 81.5 512h221zM120.06 259.43L144 245.56V63.91l96-.11v181.76l23.94 13.87c24.81 14.37 44.12 35.73 56.56 60.57h-257c12.45-24.84 31.75-46.2 56.56-60.57z"]
  110644. };
  110645. var faBook = {
  110646. prefix: 'fas',
  110647. iconName: 'book',
  110648. icon: [448, 512, [], "f02d", "M448 360V24c0-13.3-10.7-24-24-24H96C43 0 0 43 0 96v320c0 53 43 96 96 96h328c13.3 0 24-10.7 24-24v-16c0-7.5-3.5-14.3-8.9-18.7-4.2-15.4-4.2-59.3 0-74.7 5.4-4.3 8.9-11.1 8.9-18.6zM128 134c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm0 64c0-3.3 2.7-6 6-6h212c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H134c-3.3 0-6-2.7-6-6v-20zm253.4 250H96c-17.7 0-32-14.3-32-32 0-17.6 14.4-32 32-32h285.4c-1.9 17.1-1.9 46.9 0 64z"]
  110649. };
  110650. var faBookDead = {
  110651. prefix: 'fas',
  110652. iconName: 'book-dead',
  110653. icon: [448, 512, [], "f6b7", "M272 136c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm176 222.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM240 56c44.2 0 80 28.7 80 64 0 20.9-12.7 39.2-32 50.9V184c0 8.8-7.2 16-16 16h-64c-8.8 0-16-7.2-16-16v-13.1c-19.3-11.7-32-30-32-50.9 0-35.3 35.8-64 80-64zM124.8 223.3l6.3-14.7c1.7-4.1 6.4-5.9 10.5-4.2l98.3 42.1 98.4-42.1c4.1-1.7 8.8.1 10.5 4.2l6.3 14.7c1.7 4.1-.1 8.8-4.2 10.5L280.6 264l70.3 30.1c4.1 1.7 5.9 6.4 4.2 10.5l-6.3 14.7c-1.7 4.1-6.4 5.9-10.5 4.2L240 281.4l-98.3 42.2c-4.1 1.7-8.8-.1-10.5-4.2l-6.3-14.7c-1.7-4.1.1-8.8 4.2-10.5l70.4-30.1-70.5-30.3c-4.1-1.7-5.9-6.4-4.2-10.5zm256 224.7H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8zM208 136c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16z"]
  110654. };
  110655. var faBookMedical = {
  110656. prefix: 'fas',
  110657. iconName: 'book-medical',
  110658. icon: [448, 512, [], "f7e6", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16q0-9.6-9.6-19.2c-3.2-16-3.2-60.8 0-73.6q9.6-4.8 9.6-19.2zM144 168a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8v48a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8zm236.8 280H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8z"]
  110659. };
  110660. var faBookOpen = {
  110661. prefix: 'fas',
  110662. iconName: 'book-open',
  110663. icon: [576, 512, [], "f518", "M542.22 32.05c-54.8 3.11-163.72 14.43-230.96 55.59-4.64 2.84-7.27 7.89-7.27 13.17v363.87c0 11.55 12.63 18.85 23.28 13.49 69.18-34.82 169.23-44.32 218.7-46.92 16.89-.89 30.02-14.43 30.02-30.66V62.75c.01-17.71-15.35-31.74-33.77-30.7zM264.73 87.64C197.5 46.48 88.58 35.17 33.78 32.05 15.36 31.01 0 45.04 0 62.75V400.6c0 16.24 13.13 29.78 30.02 30.66 49.49 2.6 149.59 12.11 218.77 46.95 10.62 5.35 23.21-1.94 23.21-13.46V100.63c0-5.29-2.62-10.14-7.27-12.99z"]
  110664. };
  110665. var faBookReader = {
  110666. prefix: 'fas',
  110667. iconName: 'book-reader',
  110668. icon: [512, 512, [], "f5da", "M352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.98 96-96zM233.59 241.1c-59.33-36.32-155.43-46.3-203.79-49.05C13.55 191.13 0 203.51 0 219.14v222.8c0 14.33 11.59 26.28 26.49 27.05 43.66 2.29 131.99 10.68 193.04 41.43 9.37 4.72 20.48-1.71 20.48-11.87V252.56c-.01-4.67-2.32-8.95-6.42-11.46zm248.61-49.05c-48.35 2.74-144.46 12.73-203.78 49.05-4.1 2.51-6.41 6.96-6.41 11.63v245.79c0 10.19 11.14 16.63 20.54 11.9 61.04-30.72 149.32-39.11 192.97-41.4 14.9-.78 26.49-12.73 26.49-27.06V219.14c-.01-15.63-13.56-28.01-29.81-27.09z"]
  110669. };
  110670. var faBookmark = {
  110671. prefix: 'fas',
  110672. iconName: 'bookmark',
  110673. icon: [384, 512, [], "f02e", "M0 512V48C0 21.49 21.49 0 48 0h288c26.51 0 48 21.49 48 48v464L192 400 0 512z"]
  110674. };
  110675. var faBorderAll = {
  110676. prefix: 'fas',
  110677. iconName: 'border-all',
  110678. icon: [448, 512, [], "f84c", "M416 32H32A32 32 0 0 0 0 64v384a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V64a32 32 0 0 0-32-32zm-32 64v128H256V96zm-192 0v128H64V96zM64 416V288h128v128zm192 0V288h128v128z"]
  110679. };
  110680. var faBorderNone = {
  110681. prefix: 'fas',
  110682. iconName: 'border-none',
  110683. icon: [448, 512, [], "f850", "M240 224h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-288 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM240 320h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-96 288h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96-384h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM48 224H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-192H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  110684. };
  110685. var faBorderStyle = {
  110686. prefix: 'fas',
  110687. iconName: 'border-style',
  110688. icon: [448, 512, [], "f853", "M240 416h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-96 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm192 0h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm96-192h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 96h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-288h-32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-96H32A32 32 0 0 0 0 64v400a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V96h368a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  110689. };
  110690. var faBowlingBall = {
  110691. prefix: 'fas',
  110692. iconName: 'bowling-ball',
  110693. icon: [496, 512, [], "f436", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM120 192c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64-96c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm48 144c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  110694. };
  110695. var faBox = {
  110696. prefix: 'fas',
  110697. iconName: 'box',
  110698. icon: [512, 512, [], "f466", "M509.5 184.6L458.9 32.8C452.4 13.2 434.1 0 413.4 0H272v192h238.7c-.4-2.5-.4-5-1.2-7.4zM240 0H98.6c-20.7 0-39 13.2-45.5 32.8L2.5 184.6c-.8 2.4-.8 4.9-1.2 7.4H240V0zM0 224v240c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V224H0z"]
  110699. };
  110700. var faBoxOpen = {
  110701. prefix: 'fas',
  110702. iconName: 'box-open',
  110703. icon: [640, 512, [], "f49e", "M425.7 256c-16.9 0-32.8-9-41.4-23.4L320 126l-64.2 106.6c-8.7 14.5-24.6 23.5-41.5 23.5-4.5 0-9-.6-13.3-1.9L64 215v178c0 14.7 10 27.5 24.2 31l216.2 54.1c10.2 2.5 20.9 2.5 31 0L551.8 424c14.2-3.6 24.2-16.4 24.2-31V215l-137 39.1c-4.3 1.3-8.8 1.9-13.3 1.9zm212.6-112.2L586.8 41c-3.1-6.2-9.8-9.8-16.7-8.9L320 64l91.7 152.1c3.8 6.3 11.4 9.3 18.5 7.3l197.9-56.5c9.9-2.9 14.7-13.9 10.2-23.1zM53.2 41L1.7 143.8c-4.6 9.2.3 20.2 10.1 23l197.9 56.5c7.1 2 14.7-1 18.5-7.3L320 64 69.8 32.1c-6.9-.8-13.5 2.7-16.6 8.9z"]
  110704. };
  110705. var faBoxTissue = {
  110706. prefix: 'fas',
  110707. iconName: 'box-tissue',
  110708. icon: [512, 512, [], "e05b", "M383.88,287.82l64-192H338.47a70.2,70.2,0,0,1-66.59-48,70.21,70.21,0,0,0-66.6-48H63.88l64,288Zm-384,192a32,32,0,0,0,32,32h448a32,32,0,0,0,32-32v-64H-.12Zm480-256H438.94l-21.33,64h14.27a16,16,0,0,1,0,32h-352a16,16,0,1,1,0-32H95.09l-14.22-64h-49a32,32,0,0,0-32,32v128h512v-128A32,32,0,0,0,479.88,223.82Z"]
  110709. };
  110710. var faBoxes = {
  110711. prefix: 'fas',
  110712. iconName: 'boxes',
  110713. icon: [576, 512, [], "f468", "M560 288h-80v96l-32-21.3-32 21.3v-96h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16zm-384-64h224c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16h-80v96l-32-21.3L256 96V0h-80c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16zm64 64h-80v96l-32-21.3L96 384v-96H16c-8.8 0-16 7.2-16 16v192c0 8.8 7.2 16 16 16h224c8.8 0 16-7.2 16-16V304c0-8.8-7.2-16-16-16z"]
  110714. };
  110715. var faBraille = {
  110716. prefix: 'fas',
  110717. iconName: 'braille',
  110718. icon: [640, 512, [], "f2a1", "M128 256c0 35.346-28.654 64-64 64S0 291.346 0 256s28.654-64 64-64 64 28.654 64 64zM64 384c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352C28.654 32 0 60.654 0 96s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm224 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-352c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64zm160 192c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0 160c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm0-320c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"]
  110719. };
  110720. var faBrain = {
  110721. prefix: 'fas',
  110722. iconName: 'brain',
  110723. icon: [576, 512, [], "f5dc", "M208 0c-29.9 0-54.7 20.5-61.8 48.2-.8 0-1.4-.2-2.2-.2-35.3 0-64 28.7-64 64 0 4.8.6 9.5 1.7 14C52.5 138 32 166.6 32 200c0 12.6 3.2 24.3 8.3 34.9C16.3 248.7 0 274.3 0 304c0 33.3 20.4 61.9 49.4 73.9-.9 4.6-1.4 9.3-1.4 14.1 0 39.8 32.2 72 72 72 4.1 0 8.1-.5 12-1.2 9.6 28.5 36.2 49.2 68 49.2 39.8 0 72-32.2 72-72V64c0-35.3-28.7-64-64-64zm368 304c0-29.7-16.3-55.3-40.3-69.1 5.2-10.6 8.3-22.3 8.3-34.9 0-33.4-20.5-62-49.7-74 1-4.5 1.7-9.2 1.7-14 0-35.3-28.7-64-64-64-.8 0-1.5.2-2.2.2C422.7 20.5 397.9 0 368 0c-35.3 0-64 28.6-64 64v376c0 39.8 32.2 72 72 72 31.8 0 58.4-20.7 68-49.2 3.9.7 7.9 1.2 12 1.2 39.8 0 72-32.2 72-72 0-4.8-.5-9.5-1.4-14.1 29-12 49.4-40.6 49.4-73.9z"]
  110724. };
  110725. var faBreadSlice = {
  110726. prefix: 'fas',
  110727. iconName: 'bread-slice',
  110728. icon: [576, 512, [], "f7ec", "M288 0C108 0 0 93.4 0 169.14 0 199.44 24.24 224 64 224v256c0 17.67 16.12 32 36 32h376c19.88 0 36-14.33 36-32V224c39.76 0 64-24.56 64-54.86C576 93.4 468 0 288 0z"]
  110729. };
  110730. var faBriefcase = {
  110731. prefix: 'fas',
  110732. iconName: 'briefcase',
  110733. icon: [512, 512, [], "f0b1", "M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"]
  110734. };
  110735. var faBriefcaseMedical = {
  110736. prefix: 'fas',
  110737. iconName: 'briefcase-medical',
  110738. icon: [512, 512, [], "f469", "M464 128h-80V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v48H48c-26.5 0-48 21.5-48 48v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V176c0-26.5-21.5-48-48-48zM192 96h128v32H192V96zm160 248c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48z"]
  110739. };
  110740. var faBroadcastTower = {
  110741. prefix: 'fas',
  110742. iconName: 'broadcast-tower',
  110743. icon: [640, 512, [], "f519", "M150.94 192h33.73c11.01 0 18.61-10.83 14.86-21.18-4.93-13.58-7.55-27.98-7.55-42.82s2.62-29.24 7.55-42.82C203.29 74.83 195.68 64 184.67 64h-33.73c-7.01 0-13.46 4.49-15.41 11.23C130.64 92.21 128 109.88 128 128c0 18.12 2.64 35.79 7.54 52.76 1.94 6.74 8.39 11.24 15.4 11.24zM89.92 23.34C95.56 12.72 87.97 0 75.96 0H40.63c-6.27 0-12.14 3.59-14.74 9.31C9.4 45.54 0 85.65 0 128c0 24.75 3.12 68.33 26.69 118.86 2.62 5.63 8.42 9.14 14.61 9.14h34.84c12.02 0 19.61-12.74 13.95-23.37-49.78-93.32-16.71-178.15-.17-209.29zM614.06 9.29C611.46 3.58 605.6 0 599.33 0h-35.42c-11.98 0-19.66 12.66-14.02 23.25 18.27 34.29 48.42 119.42.28 209.23-5.72 10.68 1.8 23.52 13.91 23.52h35.23c6.27 0 12.13-3.58 14.73-9.29C630.57 210.48 640 170.36 640 128s-9.42-82.48-25.94-118.71zM489.06 64h-33.73c-11.01 0-18.61 10.83-14.86 21.18 4.93 13.58 7.55 27.98 7.55 42.82s-2.62 29.24-7.55 42.82c-3.76 10.35 3.85 21.18 14.86 21.18h33.73c7.02 0 13.46-4.49 15.41-11.24 4.9-16.97 7.53-34.64 7.53-52.76 0-18.12-2.64-35.79-7.54-52.76-1.94-6.75-8.39-11.24-15.4-11.24zm-116.3 100.12c7.05-10.29 11.2-22.71 11.2-36.12 0-35.35-28.63-64-63.96-64-35.32 0-63.96 28.65-63.96 64 0 13.41 4.15 25.83 11.2 36.12l-130.5 313.41c-3.4 8.15.46 17.52 8.61 20.92l29.51 12.31c8.15 3.4 17.52-.46 20.91-8.61L244.96 384h150.07l49.2 118.15c3.4 8.16 12.76 12.01 20.91 8.61l29.51-12.31c8.15-3.4 12-12.77 8.61-20.92l-130.5-313.41zM271.62 320L320 203.81 368.38 320h-96.76z"]
  110744. };
  110745. var faBroom = {
  110746. prefix: 'fas',
  110747. iconName: 'broom',
  110748. icon: [640, 512, [], "f51a", "M256.47 216.77l86.73 109.18s-16.6 102.36-76.57 150.12C206.66 523.85 0 510.19 0 510.19s3.8-23.14 11-55.43l94.62-112.17c3.97-4.7-.87-11.62-6.65-9.5l-60.4 22.09c14.44-41.66 32.72-80.04 54.6-97.47 59.97-47.76 163.3-40.94 163.3-40.94zM636.53 31.03l-19.86-25c-5.49-6.9-15.52-8.05-22.41-2.56l-232.48 177.8-34.14-42.97c-5.09-6.41-15.14-5.21-18.59 2.21l-25.33 54.55 86.73 109.18 58.8-12.45c8-1.69 11.42-11.2 6.34-17.6l-34.09-42.92 232.48-177.8c6.89-5.48 8.04-15.53 2.55-22.44z"]
  110749. };
  110750. var faBrush = {
  110751. prefix: 'fas',
  110752. iconName: 'brush',
  110753. icon: [384, 512, [], "f55d", "M352 0H32C14.33 0 0 14.33 0 32v224h384V32c0-17.67-14.33-32-32-32zM0 320c0 35.35 28.66 64 64 64h64v64c0 35.35 28.66 64 64 64s64-28.65 64-64v-64h64c35.34 0 64-28.65 64-64v-32H0v32zm192 104c13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24s-24-10.75-24-24c0-13.26 10.75-24 24-24z"]
  110754. };
  110755. var faBug = {
  110756. prefix: 'fas',
  110757. iconName: 'bug',
  110758. icon: [512, 512, [], "f188", "M511.988 288.9c-.478 17.43-15.217 31.1-32.653 31.1H424v16c0 21.864-4.882 42.584-13.6 61.145l60.228 60.228c12.496 12.497 12.496 32.758 0 45.255-12.498 12.497-32.759 12.496-45.256 0l-54.736-54.736C345.886 467.965 314.351 480 280 480V236c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v244c-34.351 0-65.886-12.035-90.636-32.108l-54.736 54.736c-12.498 12.497-32.759 12.496-45.256 0-12.496-12.497-12.496-32.758 0-45.255l60.228-60.228C92.882 378.584 88 357.864 88 336v-16H32.666C15.23 320 .491 306.33.013 288.9-.484 270.816 14.028 256 32 256h56v-58.745l-46.628-46.628c-12.496-12.497-12.496-32.758 0-45.255 12.498-12.497 32.758-12.497 45.256 0L141.255 160h229.489l54.627-54.627c12.498-12.497 32.758-12.497 45.256 0 12.496 12.497 12.496 32.758 0 45.255L424 197.255V256h56c17.972 0 32.484 14.816 31.988 32.9zM257 0c-61.856 0-112 50.144-112 112h224C369 50.144 318.856 0 257 0z"]
  110759. };
  110760. var faBuilding = {
  110761. prefix: 'fas',
  110762. iconName: 'building',
  110763. icon: [448, 512, [], "f1ad", "M436 480h-20V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v456H12c-6.627 0-12 5.373-12 12v20h448v-20c0-6.627-5.373-12-12-12zM128 76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76zm0 96c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40zm52 148h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12zm76 160h-64v-84c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v84zm64-172c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40zm0-96c0 6.627-5.373 12-12 12h-40c-6.627 0-12-5.373-12-12V76c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v40z"]
  110764. };
  110765. var faBullhorn = {
  110766. prefix: 'fas',
  110767. iconName: 'bullhorn',
  110768. icon: [576, 512, [], "f0a1", "M576 240c0-23.63-12.95-44.04-32-55.12V32.01C544 23.26 537.02 0 512 0c-7.12 0-14.19 2.38-19.98 7.02l-85.03 68.03C364.28 109.19 310.66 128 256 128H64c-35.35 0-64 28.65-64 64v96c0 35.35 28.65 64 64 64h33.7c-1.39 10.48-2.18 21.14-2.18 32 0 39.77 9.26 77.35 25.56 110.94 5.19 10.69 16.52 17.06 28.4 17.06h74.28c26.05 0 41.69-29.84 25.9-50.56-16.4-21.52-26.15-48.36-26.15-77.44 0-11.11 1.62-21.79 4.41-32H256c54.66 0 108.28 18.81 150.98 52.95l85.03 68.03a32.023 32.023 0 0 0 19.98 7.02c24.92 0 32-22.78 32-32V295.13C563.05 284.04 576 263.63 576 240zm-96 141.42l-33.05-26.44C392.95 311.78 325.12 288 256 288v-96c69.12 0 136.95-23.78 190.95-66.98L480 98.58v282.84z"]
  110769. };
  110770. var faBullseye = {
  110771. prefix: 'fas',
  110772. iconName: 'bullseye',
  110773. icon: [496, 512, [], "f140", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 432c-101.69 0-184-82.29-184-184 0-101.69 82.29-184 184-184 101.69 0 184 82.29 184 184 0 101.69-82.29 184-184 184zm0-312c-70.69 0-128 57.31-128 128s57.31 128 128 128 128-57.31 128-128-57.31-128-128-128zm0 192c-35.29 0-64-28.71-64-64s28.71-64 64-64 64 28.71 64 64-28.71 64-64 64z"]
  110774. };
  110775. var faBurn = {
  110776. prefix: 'fas',
  110777. iconName: 'burn',
  110778. icon: [384, 512, [], "f46a", "M192 0C79.7 101.3 0 220.9 0 300.5 0 425 79 512 192 512s192-87 192-211.5c0-79.9-80.2-199.6-192-300.5zm0 448c-56.5 0-96-39-96-94.8 0-13.5 4.6-61.5 96-161.2 91.4 99.7 96 147.7 96 161.2 0 55.8-39.5 94.8-96 94.8z"]
  110779. };
  110780. var faBus = {
  110781. prefix: 'fas',
  110782. iconName: 'bus',
  110783. icon: [512, 512, [], "f207", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM112 400c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm16-112c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h256c17.67 0 32 14.33 32 32v128c0 17.67-14.33 32-32 32H128zm272 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  110784. };
  110785. var faBusAlt = {
  110786. prefix: 'fas',
  110787. iconName: 'bus-alt',
  110788. icon: [512, 512, [], "f55e", "M488 128h-8V80c0-44.8-99.2-80-224-80S32 35.2 32 80v48h-8c-13.25 0-24 10.74-24 24v80c0 13.25 10.75 24 24 24h8v160c0 17.67 14.33 32 32 32v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h192v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h6.4c16 0 25.6-12.8 25.6-25.6V256h8c13.25 0 24-10.75 24-24v-80c0-13.26-10.75-24-24-24zM160 72c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H168c-4.42 0-8-3.58-8-8V72zm-48 328c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128-112H128c-17.67 0-32-14.33-32-32v-96c0-17.67 14.33-32 32-32h112v160zm32 0V128h112c17.67 0 32 14.33 32 32v96c0 17.67-14.33 32-32 32H272zm128 112c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  110789. };
  110790. var faBusinessTime = {
  110791. prefix: 'fas',
  110792. iconName: 'business-time',
  110793. icon: [640, 512, [], "f64a", "M496 224c-79.59 0-144 64.41-144 144s64.41 144 144 144 144-64.41 144-144-64.41-144-144-144zm64 150.29c0 5.34-4.37 9.71-9.71 9.71h-60.57c-5.34 0-9.71-4.37-9.71-9.71v-76.57c0-5.34 4.37-9.71 9.71-9.71h12.57c5.34 0 9.71 4.37 9.71 9.71V352h38.29c5.34 0 9.71 4.37 9.71 9.71v12.58zM496 192c5.4 0 10.72.33 16 .81V144c0-25.6-22.4-48-48-48h-80V48c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h395.12c28.6-20.09 63.35-32 100.88-32zM320 96H192V64h128v32zm6.82 224H208c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h291.43C327.1 423.96 320 396.82 320 368c0-16.66 2.48-32.72 6.82-48z"]
  110794. };
  110795. var faCalculator = {
  110796. prefix: 'fas',
  110797. iconName: 'calculator',
  110798. icon: [448, 512, [], "f1ec", "M400 0H48C22.4 0 0 22.4 0 48v416c0 25.6 22.4 48 48 48h352c25.6 0 48-22.4 48-48V48c0-25.6-22.4-48-48-48zM128 435.2c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm128 128c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8V268.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v166.4zm0-256c0 6.4-6.4 12.8-12.8 12.8H76.8c-6.4 0-12.8-6.4-12.8-12.8V76.8C64 70.4 70.4 64 76.8 64h294.4c6.4 0 12.8 6.4 12.8 12.8v102.4z"]
  110799. };
  110800. var faCalendar = {
  110801. prefix: 'fas',
  110802. iconName: 'calendar',
  110803. icon: [448, 512, [], "f133", "M12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm436-44v-36c0-26.5-21.5-48-48-48h-48V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H160V12c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v52H48C21.5 64 0 85.5 0 112v36c0 6.6 5.4 12 12 12h424c6.6 0 12-5.4 12-12z"]
  110804. };
  110805. var faCalendarAlt = {
  110806. prefix: 'fas',
  110807. iconName: 'calendar-alt',
  110808. icon: [448, 512, [], "f073", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm320-196c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM192 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40zM64 268c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zm0 128c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  110809. };
  110810. var faCalendarCheck = {
  110811. prefix: 'fas',
  110812. iconName: 'calendar-check',
  110813. icon: [448, 512, [], "f274", "M436 160H12c-6.627 0-12-5.373-12-12v-36c0-26.51 21.49-48 48-48h48V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h128V12c0-6.627 5.373-12 12-12h40c6.627 0 12 5.373 12 12v52h48c26.51 0 48 21.49 48 48v36c0 6.627-5.373 12-12 12zM12 192h424c6.627 0 12 5.373 12 12v260c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V204c0-6.627 5.373-12 12-12zm333.296 95.947l-28.169-28.398c-4.667-4.705-12.265-4.736-16.97-.068L194.12 364.665l-45.98-46.352c-4.667-4.705-12.266-4.736-16.971-.068l-28.397 28.17c-4.705 4.667-4.736 12.265-.068 16.97l82.601 83.269c4.667 4.705 12.265 4.736 16.97.068l142.953-141.805c4.705-4.667 4.736-12.265.068-16.97z"]
  110814. };
  110815. var faCalendarDay = {
  110816. prefix: 'fas',
  110817. iconName: 'calendar-day',
  110818. icon: [448, 512, [], "f783", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h96c8.8 0 16 7.2 16 16v96c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-96zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  110819. };
  110820. var faCalendarMinus = {
  110821. prefix: 'fas',
  110822. iconName: 'calendar-minus',
  110823. icon: [448, 512, [], "f272", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm304 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H132c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h184z"]
  110824. };
  110825. var faCalendarPlus = {
  110826. prefix: 'fas',
  110827. iconName: 'calendar-plus',
  110828. icon: [448, 512, [], "f271", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm316 140c0-6.6-5.4-12-12-12h-60v-60c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v60h-60c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h60v60c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-60h60c6.6 0 12-5.4 12-12v-40z"]
  110829. };
  110830. var faCalendarTimes = {
  110831. prefix: 'fas',
  110832. iconName: 'calendar-times',
  110833. icon: [448, 512, [], "f273", "M436 160H12c-6.6 0-12-5.4-12-12v-36c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48v36c0 6.6-5.4 12-12 12zM12 192h424c6.6 0 12 5.4 12 12v260c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V204c0-6.6 5.4-12 12-12zm257.3 160l48.1-48.1c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0L224 306.7l-48.1-48.1c-4.7-4.7-12.3-4.7-17 0l-28.3 28.3c-4.7 4.7-4.7 12.3 0 17l48.1 48.1-48.1 48.1c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l48.1-48.1 48.1 48.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L269.3 352z"]
  110834. };
  110835. var faCalendarWeek = {
  110836. prefix: 'fas',
  110837. iconName: 'calendar-week',
  110838. icon: [448, 512, [], "f784", "M0 464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V192H0v272zm64-192c0-8.8 7.2-16 16-16h288c8.8 0 16 7.2 16 16v64c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16v-64zM400 64h-48V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H160V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48H48C21.5 64 0 85.5 0 112v48h448v-48c0-26.5-21.5-48-48-48z"]
  110839. };
  110840. var faCamera = {
  110841. prefix: 'fas',
  110842. iconName: 'camera',
  110843. icon: [512, 512, [], "f030", "M512 144v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V144c0-26.5 21.5-48 48-48h88l12.3-32.9c7-18.7 24.9-31.1 44.9-31.1h125.5c20 0 37.9 12.4 44.9 31.1L376 96h88c26.5 0 48 21.5 48 48zM376 288c0-66.2-53.8-120-120-120s-120 53.8-120 120 53.8 120 120 120 120-53.8 120-120zm-32 0c0 48.5-39.5 88-88 88s-88-39.5-88-88 39.5-88 88-88 88 39.5 88 88z"]
  110844. };
  110845. var faCameraRetro = {
  110846. prefix: 'fas',
  110847. iconName: 'camera-retro',
  110848. icon: [512, 512, [], "f083", "M48 32C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48H48zm0 32h106c3.3 0 6 2.7 6 6v20c0 3.3-2.7 6-6 6H38c-3.3 0-6-2.7-6-6V80c0-8.8 7.2-16 16-16zm426 96H38c-3.3 0-6-2.7-6-6v-36c0-3.3 2.7-6 6-6h138l30.2-45.3c1.1-1.7 3-2.7 5-2.7H464c8.8 0 16 7.2 16 16v74c0 3.3-2.7 6-6 6zM256 424c-66.2 0-120-53.8-120-120s53.8-120 120-120 120 53.8 120 120-53.8 120-120 120zm0-208c-48.5 0-88 39.5-88 88s39.5 88 88 88 88-39.5 88-88-39.5-88-88-88zm-48 104c-8.8 0-16-7.2-16-16 0-35.3 28.7-64 64-64 8.8 0 16 7.2 16 16s-7.2 16-16 16c-17.6 0-32 14.4-32 32 0 8.8-7.2 16-16 16z"]
  110849. };
  110850. var faCampground = {
  110851. prefix: 'fas',
  110852. iconName: 'campground',
  110853. icon: [640, 512, [], "f6bb", "M624 448h-24.68L359.54 117.75l53.41-73.55c5.19-7.15 3.61-17.16-3.54-22.35l-25.9-18.79c-7.15-5.19-17.15-3.61-22.35 3.55L320 63.3 278.83 6.6c-5.19-7.15-15.2-8.74-22.35-3.55l-25.88 18.8c-7.15 5.19-8.74 15.2-3.54 22.35l53.41 73.55L40.68 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM320 288l116.36 160H203.64L320 288z"]
  110854. };
  110855. var faCandyCane = {
  110856. prefix: 'fas',
  110857. iconName: 'candy-cane',
  110858. icon: [512, 512, [], "f786", "M497.5 92C469.6 33.1 411.8 0 352.4 0c-27.9 0-56.2 7.3-81.8 22.6L243.1 39c-15.2 9.1-20.1 28.7-11 43.9l32.8 54.9c6 10 16.6 15.6 27.5 15.6 5.6 0 11.2-1.5 16.4-4.5l27.5-16.4c5.1-3.1 10.8-4.5 16.4-4.5 10.9 0 21.5 5.6 27.5 15.6 9.1 15.1 4.1 34.8-11 43.9L15.6 397.6c-15.2 9.1-20.1 28.7-11 43.9l32.8 54.9c6 10 16.6 15.6 27.5 15.6 5.6 0 11.2-1.5 16.4-4.5L428.6 301c71.7-42.9 104.6-133.5 68.9-209zm-177.7 13l-2.5 1.5L296.8 45c9.7-4.7 19.8-8.1 30.3-10.2l20.6 61.8c-9.8.8-19.4 3.3-27.9 8.4zM145.9 431.8l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zm107.5-63.9l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zM364.3 302l-60.5-38.5 30.8-18.3 60.5 38.5-30.8 18.3zm20.4-197.3l46-46c8.4 6.5 16 14.1 22.6 22.6L407.6 127c-5.7-9.3-13.7-16.9-22.9-22.3zm82.1 107.8l-59.5-19.8c3.2-5.3 5.8-10.9 7.4-17.1 1.1-4.5 1.7-9.1 1.8-13.6l60.4 20.1c-2.1 10.4-5.5 20.6-10.1 30.4z"]
  110859. };
  110860. var faCannabis = {
  110861. prefix: 'fas',
  110862. iconName: 'cannabis',
  110863. icon: [512, 512, [], "f55f", "M503.47 360.25c-1.56-.82-32.39-16.89-76.78-25.81 64.25-75.12 84.05-161.67 84.93-165.64 1.18-5.33-.44-10.9-4.3-14.77-3.03-3.04-7.12-4.7-11.32-4.7-1.14 0-2.29.12-3.44.38-3.88.85-86.54 19.59-160.58 79.76.01-1.46.01-2.93.01-4.4 0-118.79-59.98-213.72-62.53-217.7A15.973 15.973 0 0 0 256 0c-5.45 0-10.53 2.78-13.47 7.37-2.55 3.98-62.53 98.91-62.53 217.7 0 1.47.01 2.94.01 4.4-74.03-60.16-156.69-78.9-160.58-79.76-1.14-.25-2.29-.38-3.44-.38-4.2 0-8.29 1.66-11.32 4.7A15.986 15.986 0 0 0 .38 168.8c.88 3.97 20.68 90.52 84.93 165.64-44.39 8.92-75.21 24.99-76.78 25.81a16.003 16.003 0 0 0-.02 28.29c2.45 1.29 60.76 31.72 133.49 31.72 6.14 0 11.96-.1 17.5-.31-11.37 22.23-16.52 38.31-16.81 39.22-1.8 5.68-.29 11.89 3.91 16.11a16.019 16.019 0 0 0 16.1 3.99c1.83-.57 37.72-11.99 77.3-39.29V504c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-64.01c39.58 27.3 75.47 38.71 77.3 39.29a16.019 16.019 0 0 0 16.1-3.99c4.2-4.22 5.71-10.43 3.91-16.11-.29-.91-5.45-16.99-16.81-39.22 5.54.21 11.37.31 17.5.31 72.72 0 131.04-30.43 133.49-31.72 5.24-2.78 8.52-8.22 8.51-14.15-.01-5.94-3.29-11.39-8.53-14.15z"]
  110864. };
  110865. var faCapsules = {
  110866. prefix: 'fas',
  110867. iconName: 'capsules',
  110868. icon: [576, 512, [], "f46b", "M555.3 300.1L424.2 112.8C401.9 81 366.4 64 330.4 64c-22.6 0-45.5 6.7-65.5 20.7-19.7 13.8-33.7 32.8-41.5 53.8C220.5 79.2 172 32 112 32 50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V218.9c3.3 8.6 7.3 17.1 12.8 25L368 431.2c22.2 31.8 57.7 48.8 93.8 48.8 22.7 0 45.5-6.7 65.5-20.7 51.7-36.2 64.2-107.5 28-159.2zM160 256H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm194.8 44.9l-65.6-93.7c-7.7-11-10.7-24.4-8.3-37.6 2.3-13.2 9.7-24.8 20.7-32.5 8.5-6 18.5-9.1 28.8-9.1 16.5 0 31.9 8 41.3 21.5l65.6 93.7-82.5 57.7z"]
  110869. };
  110870. var faCar = {
  110871. prefix: 'fas',
  110872. iconName: 'car',
  110873. icon: [512, 512, [], "f1b9", "M499.99 176h-59.87l-16.64-41.6C406.38 91.63 365.57 64 319.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4L71.87 176H12.01C4.2 176-1.53 183.34.37 190.91l6 24C7.7 220.25 12.5 224 18.01 224h20.07C24.65 235.73 16 252.78 16 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-19.22-8.65-36.27-22.07-48H494c5.51 0 10.31-3.75 11.64-9.09l6-24c1.89-7.57-3.84-14.91-11.65-14.91zm-352.06-17.83c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L384 208H128l19.93-49.83zM96 319.8c-19.2 0-32-12.76-32-31.9S76.8 256 96 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S396.8 256 416 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"]
  110874. };
  110875. var faCarAlt = {
  110876. prefix: 'fas',
  110877. iconName: 'car-alt',
  110878. icon: [480, 512, [], "f5de", "M438.66 212.33l-11.24-28.1-19.93-49.83C390.38 91.63 349.57 64 303.5 64h-127c-46.06 0-86.88 27.63-103.99 70.4l-19.93 49.83-11.24 28.1C17.22 221.5 0 244.66 0 272v48c0 16.12 6.16 30.67 16 41.93V416c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-54.07c9.84-11.25 16-25.8 16-41.93v-48c0-27.34-17.22-50.5-41.34-59.67zm-306.73-54.16c7.29-18.22 24.94-30.17 44.57-30.17h127c19.63 0 37.28 11.95 44.57 30.17L368 208H112l19.93-49.83zM80 319.8c-19.2 0-32-12.76-32-31.9S60.8 256 80 256s48 28.71 48 47.85-28.8 15.95-48 15.95zm320 0c-19.2 0-48 3.19-48-15.95S380.8 256 400 256s32 12.76 32 31.9-12.8 31.9-32 31.9z"]
  110879. };
  110880. var faCarBattery = {
  110881. prefix: 'fas',
  110882. iconName: 'car-battery',
  110883. icon: [512, 512, [], "f5df", "M480 128h-32V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v48H192V80c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v48H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32zM192 264c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm256 0c0 4.42-3.58 8-8 8h-40v40c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-40h-40c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h40v-40c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v40h40c4.42 0 8 3.58 8 8v16z"]
  110884. };
  110885. var faCarCrash = {
  110886. prefix: 'fas',
  110887. iconName: 'car-crash',
  110888. icon: [640, 512, [], "f5e1", "M143.25 220.81l-12.42 46.37c-3.01 11.25-3.63 22.89-2.41 34.39l-35.2 28.98c-6.57 5.41-16.31-.43-14.62-8.77l15.44-76.68c1.06-5.26-2.66-10.28-8-10.79l-77.86-7.55c-8.47-.82-11.23-11.83-4.14-16.54l65.15-43.3c4.46-2.97 5.38-9.15 1.98-13.29L21.46 93.22c-5.41-6.57.43-16.3 8.78-14.62l76.68 15.44c5.26 1.06 10.28-2.66 10.8-8l7.55-77.86c.82-8.48 11.83-11.23 16.55-4.14l43.3 65.14c2.97 4.46 9.15 5.38 13.29 1.98l60.4-49.71c6.57-5.41 16.3.43 14.62 8.77L262.1 86.38c-2.71 3.05-5.43 6.09-7.91 9.4l-32.15 42.97-10.71 14.32c-32.73 8.76-59.18 34.53-68.08 67.74zm494.57 132.51l-12.42 46.36c-3.13 11.68-9.38 21.61-17.55 29.36a66.876 66.876 0 0 1-8.76 7l-13.99 52.23c-1.14 4.27-3.1 8.1-5.65 11.38-7.67 9.84-20.74 14.68-33.54 11.25L515 502.62c-17.07-4.57-27.2-22.12-22.63-39.19l8.28-30.91-247.28-66.26-8.28 30.91c-4.57 17.07-22.12 27.2-39.19 22.63l-30.91-8.28c-12.8-3.43-21.7-14.16-23.42-26.51-.57-4.12-.35-8.42.79-12.68l13.99-52.23a66.62 66.62 0 0 1-4.09-10.45c-3.2-10.79-3.65-22.52-.52-34.2l12.42-46.37c5.31-19.8 19.36-34.83 36.89-42.21a64.336 64.336 0 0 1 18.49-4.72l18.13-24.23 32.15-42.97c3.45-4.61 7.19-8.9 11.2-12.84 8-7.89 17.03-14.44 26.74-19.51 4.86-2.54 9.89-4.71 15.05-6.49 10.33-3.58 21.19-5.63 32.24-6.04 11.05-.41 22.31.82 33.43 3.8l122.68 32.87c11.12 2.98 21.48 7.54 30.85 13.43a111.11 111.11 0 0 1 34.69 34.5c8.82 13.88 14.64 29.84 16.68 46.99l6.36 53.29 3.59 30.05a64.49 64.49 0 0 1 22.74 29.93c4.39 11.88 5.29 25.19 1.75 38.39zM255.58 234.34c-18.55-4.97-34.21 4.04-39.17 22.53-4.96 18.49 4.11 34.12 22.65 39.09 18.55 4.97 45.54 15.51 50.49-2.98 4.96-18.49-15.43-53.67-33.97-58.64zm290.61 28.17l-6.36-53.29c-.58-4.87-1.89-9.53-3.82-13.86-5.8-12.99-17.2-23.01-31.42-26.82l-122.68-32.87a48.008 48.008 0 0 0-50.86 17.61l-32.15 42.97 172 46.08 75.29 20.18zm18.49 54.65c-18.55-4.97-53.8 15.31-58.75 33.79-4.95 18.49 23.69 22.86 42.24 27.83 18.55 4.97 34.21-4.04 39.17-22.53 4.95-18.48-4.11-34.12-22.66-39.09z"]
  110889. };
  110890. var faCarSide = {
  110891. prefix: 'fas',
  110892. iconName: 'car-side',
  110893. icon: [640, 512, [], "f5e4", "M544 192h-16L419.22 56.02A64.025 64.025 0 0 0 369.24 32H155.33c-26.17 0-49.7 15.93-59.42 40.23L48 194.26C20.44 201.4 0 226.21 0 256v112c0 8.84 7.16 16 16 16h48c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h48c8.84 0 16-7.16 16-16v-80c0-53.02-42.98-96-96-96zM160 432c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm72-240H116.93l38.4-96H232v96zm48 0V96h89.24l76.8 96H280zm200 240c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"]
  110894. };
  110895. var faCaravan = {
  110896. prefix: 'fas',
  110897. iconName: 'caravan',
  110898. icon: [640, 512, [], "f8ff", "M416,208a16,16,0,1,0,16,16A16,16,0,0,0,416,208ZM624,320H576V160A160,160,0,0,0,416,0H64A64,64,0,0,0,0,64V320a64,64,0,0,0,64,64H96a96,96,0,0,0,192,0H624a16,16,0,0,0,16-16V336A16,16,0,0,0,624,320ZM192,432a48,48,0,1,1,48-48A48.05,48.05,0,0,1,192,432Zm64-240a32,32,0,0,1-32,32H96a32,32,0,0,1-32-32V128A32,32,0,0,1,96,96H224a32,32,0,0,1,32,32ZM448,320H320V128a32,32,0,0,1,32-32h64a32,32,0,0,1,32,32Z"]
  110899. };
  110900. var faCaretDown = {
  110901. prefix: 'fas',
  110902. iconName: 'caret-down',
  110903. icon: [320, 512, [], "f0d7", "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"]
  110904. };
  110905. var faCaretLeft = {
  110906. prefix: 'fas',
  110907. iconName: 'caret-left',
  110908. icon: [192, 512, [], "f0d9", "M192 127.338v257.324c0 17.818-21.543 26.741-34.142 14.142L29.196 270.142c-7.81-7.81-7.81-20.474 0-28.284l128.662-128.662c12.599-12.6 34.142-3.676 34.142 14.142z"]
  110909. };
  110910. var faCaretRight = {
  110911. prefix: 'fas',
  110912. iconName: 'caret-right',
  110913. icon: [192, 512, [], "f0da", "M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"]
  110914. };
  110915. var faCaretSquareDown = {
  110916. prefix: 'fas',
  110917. iconName: 'caret-square-down',
  110918. icon: [448, 512, [], "f150", "M448 80v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zM92.5 220.5l123 123c4.7 4.7 12.3 4.7 17 0l123-123c7.6-7.6 2.2-20.5-8.5-20.5H101c-10.7 0-16.1 12.9-8.5 20.5z"]
  110919. };
  110920. var faCaretSquareLeft = {
  110921. prefix: 'fas',
  110922. iconName: 'caret-square-left',
  110923. icon: [448, 512, [], "f191", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM259.515 124.485l-123.03 123.03c-4.686 4.686-4.686 12.284 0 16.971l123.029 123.029c7.56 7.56 20.485 2.206 20.485-8.485V132.971c.001-10.691-12.925-16.045-20.484-8.486z"]
  110924. };
  110925. var faCaretSquareRight = {
  110926. prefix: 'fas',
  110927. iconName: 'caret-square-right',
  110928. icon: [448, 512, [], "f152", "M48 32h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48zm140.485 355.515l123.029-123.029c4.686-4.686 4.686-12.284 0-16.971l-123.029-123.03c-7.56-7.56-20.485-2.206-20.485 8.485v246.059c0 10.691 12.926 16.045 20.485 8.486z"]
  110929. };
  110930. var faCaretSquareUp = {
  110931. prefix: 'fas',
  110932. iconName: 'caret-square-up',
  110933. icon: [448, 512, [], "f151", "M0 432V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48zm355.515-140.485l-123.03-123.03c-4.686-4.686-12.284-4.686-16.971 0L92.485 291.515c-7.56 7.56-2.206 20.485 8.485 20.485h246.059c10.691 0 16.045-12.926 8.486-20.485z"]
  110934. };
  110935. var faCaretUp = {
  110936. prefix: 'fas',
  110937. iconName: 'caret-up',
  110938. icon: [320, 512, [], "f0d8", "M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z"]
  110939. };
  110940. var faCarrot = {
  110941. prefix: 'fas',
  110942. iconName: 'carrot',
  110943. icon: [512, 512, [], "f787", "M298.2 156.6c-52.7-25.7-114.5-10.5-150.2 32.8l55.2 55.2c6.3 6.3 6.3 16.4 0 22.6-3.1 3.1-7.2 4.7-11.3 4.7s-8.2-1.6-11.3-4.7L130.4 217 2.3 479.7c-2.9 6-3.1 13.3 0 19.7 5.4 11.1 18.9 15.7 30 10.3l133.6-65.2-49.2-49.2c-6.3-6.2-6.3-16.4 0-22.6 6.3-6.2 16.4-6.2 22.6 0l57 57 102-49.8c24-11.7 44.5-31.3 57.1-57.1 30.1-61.7 4.5-136.1-57.2-166.2zm92.1-34.9C409.8 81 399.7 32.9 360 0c-50.3 41.7-52.5 107.5-7.9 151.9l8 8c44.4 44.6 110.3 42.4 151.9-7.9-32.9-39.7-81-49.8-121.7-30.3z"]
  110944. };
  110945. var faCartArrowDown = {
  110946. prefix: 'fas',
  110947. iconName: 'cart-arrow-down',
  110948. icon: [576, 512, [], "f218", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM403.029 192H360v-60c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v60h-43.029c-10.691 0-16.045 12.926-8.485 20.485l67.029 67.029c4.686 4.686 12.284 4.686 16.971 0l67.029-67.029c7.559-7.559 2.205-20.485-8.486-20.485z"]
  110949. };
  110950. var faCartPlus = {
  110951. prefix: 'fas',
  110952. iconName: 'cart-plus',
  110953. icon: [576, 512, [], "f217", "M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"]
  110954. };
  110955. var faCashRegister = {
  110956. prefix: 'fas',
  110957. iconName: 'cash-register',
  110958. icon: [512, 512, [], "f788", "M511.1 378.8l-26.7-160c-2.6-15.4-15.9-26.7-31.6-26.7H208v-64h96c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h96v64H59.1c-15.6 0-29 11.3-31.6 26.7L.8 378.7c-.6 3.5-.9 7-.9 10.5V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-90.7c.1-3.5-.2-7-.8-10.5zM280 248c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16zm-32 64h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16zm-32-80c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16zM80 80V48h192v32H80zm40 200h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16zm16 64v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16zm216 112c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16zm24-112c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16zm48-80c0 8.8-7.2 16-16 16h-16c-8.8 0-16-7.2-16-16v-16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16z"]
  110959. };
  110960. var faCat = {
  110961. prefix: 'fas',
  110962. iconName: 'cat',
  110963. icon: [512, 512, [], "f6be", "M290.59 192c-20.18 0-106.82 1.98-162.59 85.95V192c0-52.94-43.06-96-96-96-17.67 0-32 14.33-32 32s14.33 32 32 32c17.64 0 32 14.36 32 32v256c0 35.3 28.7 64 64 64h176c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-32l128-96v144c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V289.86c-10.29 2.67-20.89 4.54-32 4.54-61.81 0-113.52-44.05-125.41-102.4zM448 96h-64l-64-64v134.4c0 53.02 42.98 96 96 96s96-42.98 96-96V32l-64 64zm-72 80c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm80 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"]
  110964. };
  110965. var faCertificate = {
  110966. prefix: 'fas',
  110967. iconName: 'certificate',
  110968. icon: [512, 512, [], "f0a3", "M458.622 255.92l45.985-45.005c13.708-12.977 7.316-36.039-10.664-40.339l-62.65-15.99 17.661-62.015c4.991-17.838-11.829-34.663-29.661-29.671l-61.994 17.667-15.984-62.671C337.085.197 313.765-6.276 300.99 7.228L256 53.57 211.011 7.229c-12.63-13.351-36.047-7.234-40.325 10.668l-15.984 62.671-61.995-17.667C74.87 57.907 58.056 74.738 63.046 92.572l17.661 62.015-62.65 15.99C.069 174.878-6.31 197.944 7.392 210.915l45.985 45.005-45.985 45.004c-13.708 12.977-7.316 36.039 10.664 40.339l62.65 15.99-17.661 62.015c-4.991 17.838 11.829 34.663 29.661 29.671l61.994-17.667 15.984 62.671c4.439 18.575 27.696 24.018 40.325 10.668L256 458.61l44.989 46.001c12.5 13.488 35.987 7.486 40.325-10.668l15.984-62.671 61.994 17.667c17.836 4.994 34.651-11.837 29.661-29.671l-17.661-62.015 62.65-15.99c17.987-4.302 24.366-27.367 10.664-40.339l-45.984-45.004z"]
  110969. };
  110970. var faChair = {
  110971. prefix: 'fas',
  110972. iconName: 'chair',
  110973. icon: [448, 512, [], "f6c0", "M112 128c0-29.5 16.2-55 40-68.9V256h48V48h48v208h48V59.1c23.8 13.9 40 39.4 40 68.9v128h48V128C384 57.3 326.7 0 256 0h-64C121.3 0 64 57.3 64 128v128h48zm334.3 213.9l-10.7-32c-4.4-13.1-16.6-21.9-30.4-21.9H42.7c-13.8 0-26 8.8-30.4 21.9l-10.7 32C-5.2 362.6 10.2 384 32 384v112c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V384h256v112c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V384c21.8 0 37.2-21.4 30.3-42.1z"]
  110974. };
  110975. var faChalkboard = {
  110976. prefix: 'fas',
  110977. iconName: 'chalkboard',
  110978. icon: [640, 512, [], "f51b", "M96 64h448v352h64V40c0-22.06-17.94-40-40-40H72C49.94 0 32 17.94 32 40v376h64V64zm528 384H480v-64H288v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
  110979. };
  110980. var faChalkboardTeacher = {
  110981. prefix: 'fas',
  110982. iconName: 'chalkboard-teacher',
  110983. icon: [640, 512, [], "f51c", "M208 352c-2.39 0-4.78.35-7.06 1.09C187.98 357.3 174.35 360 160 360c-14.35 0-27.98-2.7-40.95-6.91-2.28-.74-4.66-1.09-7.05-1.09C49.94 352-.33 402.48 0 464.62.14 490.88 21.73 512 48 512h224c26.27 0 47.86-21.12 48-47.38.33-62.14-49.94-112.62-112-112.62zm-48-32c53.02 0 96-42.98 96-96s-42.98-96-96-96-96 42.98-96 96 42.98 96 96 96zM592 0H208c-26.47 0-48 22.25-48 49.59V96c23.42 0 45.1 6.78 64 17.8V64h352v288h-64v-64H384v64h-76.24c19.1 16.69 33.12 38.73 39.69 64H592c26.47 0 48-22.25 48-49.59V49.59C640 22.25 618.47 0 592 0z"]
  110984. };
  110985. var faChargingStation = {
  110986. prefix: 'fas',
  110987. iconName: 'charging-station',
  110988. icon: [576, 512, [], "f5e7", "M336 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h320c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm208-320V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-32V80c0-8.84-7.16-16-16-16s-16 7.16-16 16v48h-16c-8.84 0-16 7.16-16 16v32c0 35.76 23.62 65.69 56 75.93v118.49c0 13.95-9.5 26.92-23.26 29.19C431.22 402.5 416 388.99 416 372v-28c0-48.6-39.4-88-88-88h-8V64c0-35.35-28.65-64-64-64H96C60.65 0 32 28.65 32 64v352h288V304h8c22.09 0 40 17.91 40 40v24.61c0 39.67 28.92 75.16 68.41 79.01C481.71 452.05 520 416.41 520 372V251.93c32.38-10.24 56-40.17 56-75.93v-32c0-8.84-7.16-16-16-16h-16zm-283.91 47.76l-93.7 139c-2.2 3.33-6.21 5.24-10.39 5.24-7.67 0-13.47-6.28-11.67-12.92L167.35 224H108c-7.25 0-12.85-5.59-11.89-11.89l16-107C112.9 99.9 117.98 96 124 96h68c7.88 0 13.62 6.54 11.6 13.21L192 160h57.7c9.24 0 15.01 8.78 10.39 15.76z"]
  110989. };
  110990. var faChartArea = {
  110991. prefix: 'fas',
  110992. iconName: 'chart-area',
  110993. icon: [512, 512, [], "f1fe", "M500 384c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v308h436zM372.7 159.5L288 216l-85.3-113.7c-5.1-6.8-15.5-6.3-19.9 1L96 248v104h384l-89.9-187.8c-3.2-6.5-11.4-8.7-17.4-4.7z"]
  110994. };
  110995. var faChartBar = {
  110996. prefix: 'fas',
  110997. iconName: 'chart-bar',
  110998. icon: [512, 512, [], "f080", "M332.8 320h38.4c6.4 0 12.8-6.4 12.8-12.8V172.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V76.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-288 0h38.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h38.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-38.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zM496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
  110999. };
  111000. var faChartLine = {
  111001. prefix: 'fas',
  111002. iconName: 'chart-line',
  111003. icon: [512, 512, [], "f201", "M496 384H64V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM464 96H345.94c-21.38 0-32.09 25.85-16.97 40.97l32.4 32.4L288 242.75l-73.37-73.37c-12.5-12.5-32.76-12.5-45.25 0l-68.69 68.69c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L192 237.25l73.37 73.37c12.5 12.5 32.76 12.5 45.25 0l96-96 32.4 32.4c15.12 15.12 40.97 4.41 40.97-16.97V112c.01-8.84-7.15-16-15.99-16z"]
  111004. };
  111005. var faChartPie = {
  111006. prefix: 'fas',
  111007. iconName: 'chart-pie',
  111008. icon: [544, 512, [], "f200", "M527.79 288H290.5l158.03 158.03c6.04 6.04 15.98 6.53 22.19.68 38.7-36.46 65.32-85.61 73.13-140.86 1.34-9.46-6.51-17.85-16.06-17.85zm-15.83-64.8C503.72 103.74 408.26 8.28 288.8.04 279.68-.59 272 7.1 272 16.24V240h223.77c9.14 0 16.82-7.68 16.19-16.8zM224 288V50.71c0-9.55-8.39-17.4-17.84-16.06C86.99 51.49-4.1 155.6.14 280.37 4.5 408.51 114.83 513.59 243.03 511.98c50.4-.63 96.97-16.87 135.26-44.03 7.9-5.6 8.42-17.23 1.57-24.08L224 288z"]
  111009. };
  111010. var faCheck = {
  111011. prefix: 'fas',
  111012. iconName: 'check',
  111013. icon: [512, 512, [], "f00c", "M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"]
  111014. };
  111015. var faCheckCircle = {
  111016. prefix: 'fas',
  111017. iconName: 'check-circle',
  111018. icon: [512, 512, [], "f058", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"]
  111019. };
  111020. var faCheckDouble = {
  111021. prefix: 'fas',
  111022. iconName: 'check-double',
  111023. icon: [512, 512, [], "f560", "M505 174.8l-39.6-39.6c-9.4-9.4-24.6-9.4-33.9 0L192 374.7 80.6 263.2c-9.4-9.4-24.6-9.4-33.9 0L7 302.9c-9.4 9.4-9.4 24.6 0 34L175 505c9.4 9.4 24.6 9.4 33.9 0l296-296.2c9.4-9.5 9.4-24.7.1-34zm-324.3 106c6.2 6.3 16.4 6.3 22.6 0l208-208.2c6.2-6.3 6.2-16.4 0-22.6L366.1 4.7c-6.2-6.3-16.4-6.3-22.6 0L192 156.2l-55.4-55.5c-6.2-6.3-16.4-6.3-22.6 0L68.7 146c-6.2 6.3-6.2 16.4 0 22.6l112 112.2z"]
  111024. };
  111025. var faCheckSquare = {
  111026. prefix: 'fas',
  111027. iconName: 'check-square',
  111028. icon: [448, 512, [], "f14a", "M400 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zm-204.686-98.059l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.248-16.379-6.249-22.628 0L184 302.745l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.25 16.379 6.25 22.628.001z"]
  111029. };
  111030. var faCheese = {
  111031. prefix: 'fas',
  111032. iconName: 'cheese',
  111033. icon: [512, 512, [], "f7ef", "M0 288v160a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V288zM299.83 32a32 32 0 0 0-21.13 7L0 256h512c0-119.89-94-217.8-212.17-224z"]
  111034. };
  111035. var faChess = {
  111036. prefix: 'fas',
  111037. iconName: 'chess',
  111038. icon: [512, 512, [], "f439", "M74 208H64a16 16 0 0 0-16 16v16a16 16 0 0 0 16 16h15.94A535.78 535.78 0 0 1 64 384h128a535.78 535.78 0 0 1-15.94-128H192a16 16 0 0 0 16-16v-16a16 16 0 0 0-16-16h-10l33.89-90.38a16 16 0 0 0-15-21.62H144V64h24a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8h-24V8a8 8 0 0 0-8-8h-16a8 8 0 0 0-8 8v24H88a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h24v32H55.09a16 16 0 0 0-15 21.62zm173.16 251.58L224 448v-16a16 16 0 0 0-16-16H48a16 16 0 0 0-16 16v16L8.85 459.58A16 16 0 0 0 0 473.89V496a16 16 0 0 0 16 16h224a16 16 0 0 0 16-16v-22.11a16 16 0 0 0-8.84-14.31zm92.77-157.78l-3.29 82.2h126.72l-3.29-82.21 24.6-20.79A32 32 0 0 0 496 256.54V198a6 6 0 0 0-6-6h-26.38a6 6 0 0 0-6 6v26h-24.71v-26a6 6 0 0 0-6-6H373.1a6 6 0 0 0-6 6v26h-24.71v-26a6 6 0 0 0-6-6H310a6 6 0 0 0-6 6v58.6a32 32 0 0 0 11.36 24.4zM384 304a16 16 0 0 1 32 0v32h-32zm119.16 155.58L480 448v-16a16 16 0 0 0-16-16H336a16 16 0 0 0-16 16v16l-23.15 11.58a16 16 0 0 0-8.85 14.31V496a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-22.11a16 16 0 0 0-8.84-14.31z"]
  111039. };
  111040. var faChessBishop = {
  111041. prefix: 'fas',
  111042. iconName: 'chess-bishop',
  111043. icon: [320, 512, [], "f43a", "M8 287.88c0 51.64 22.14 73.83 56 84.6V416h192v-43.52c33.86-10.77 56-33 56-84.6 0-30.61-10.73-67.1-26.69-102.56L185 285.65a8 8 0 0 1-11.31 0l-11.31-11.31a8 8 0 0 1 0-11.31L270.27 155.1c-20.8-37.91-46.47-72.1-70.87-92.59C213.4 59.09 224 47.05 224 32a32 32 0 0 0-32-32h-64a32 32 0 0 0-32 32c0 15 10.6 27.09 24.6 30.51C67.81 106.8 8 214.5 8 287.88zM304 448H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  111044. };
  111045. var faChessBoard = {
  111046. prefix: 'fas',
  111047. iconName: 'chess-board',
  111048. icon: [512, 512, [], "f43c", "M255.9.2h-64v64h64zM0 64.17v64h64v-64zM128 .2H64v64h64zm64 255.9v64h64v-64zM0 192.12v64h64v-64zM383.85.2h-64v64h64zm128 0h-64v64h64zM128 256.1H64v64h64zM511.8 448v-64h-64v64zm0-128v-64h-64v64zM383.85 512h64v-64h-64zm128-319.88v-64h-64v64zM128 512h64v-64h-64zM0 512h64v-64H0zm255.9 0h64v-64h-64zM0 320.07v64h64v-64zm319.88-191.92v-64h-64v64zm-64 128h64v-64h-64zm-64 128v64h64v-64zm128-64h64v-64h-64zm0-127.95h64v-64h-64zm0 191.93v64h64v-64zM64 384.05v64h64v-64zm128-255.9v-64h-64v64zm191.92 255.9h64v-64h-64zm-128-191.93v-64h-64v64zm128-127.95v64h64v-64zm-128 255.9v64h64v-64zm-64-127.95H128v64h64zm191.92 64h64v-64h-64zM128 128.15H64v64h64zm0 191.92v64h64v-64z"]
  111049. };
  111050. var faChessKing = {
  111051. prefix: 'fas',
  111052. iconName: 'chess-king',
  111053. icon: [448, 512, [], "f43f", "M400 448H48a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm16-288H256v-48h40a8 8 0 0 0 8-8V56a8 8 0 0 0-8-8h-40V8a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v40h-40a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8h40v48H32a32 32 0 0 0-30.52 41.54L74.56 416h298.88l73.08-214.46A32 32 0 0 0 416 160z"]
  111054. };
  111055. var faChessKnight = {
  111056. prefix: 'fas',
  111057. iconName: 'chess-knight',
  111058. icon: [384, 512, [], "f441", "M19 272.47l40.63 18.06a32 32 0 0 0 24.88.47l12.78-5.12a32 32 0 0 0 18.76-20.5l9.22-30.65a24 24 0 0 1 12.55-15.65L159.94 208v50.33a48 48 0 0 1-26.53 42.94l-57.22 28.65A80 80 0 0 0 32 401.48V416h319.86V224c0-106-85.92-192-191.92-192H12A12 12 0 0 0 0 44a16.9 16.9 0 0 0 1.79 7.58L16 80l-9 9a24 24 0 0 0-7 17v137.21a32 32 0 0 0 19 29.26zM52 128a20 20 0 1 1-20 20 20 20 0 0 1 20-20zm316 320H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  111059. };
  111060. var faChessPawn = {
  111061. prefix: 'fas',
  111062. iconName: 'chess-pawn',
  111063. icon: [320, 512, [], "f443", "M105.1 224H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h16v5.49c0 44-4.14 86.6-24 122.51h176c-19.89-35.91-24-78.51-24-122.51V288h16a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-25.1c29.39-18.38 49.1-50.78 49.1-88a104 104 0 0 0-208 0c0 37.22 19.71 69.62 49.1 88zM304 448H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  111064. };
  111065. var faChessQueen = {
  111066. prefix: 'fas',
  111067. iconName: 'chess-queen',
  111068. icon: [512, 512, [], "f445", "M256 112a56 56 0 1 0-56-56 56 56 0 0 0 56 56zm176 336H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm72.87-263.84l-28.51-15.92c-7.44-5-16.91-2.46-22.29 4.68a47.59 47.59 0 0 1-47.23 18.23C383.7 186.86 368 164.93 368 141.4a13.4 13.4 0 0 0-13.4-13.4h-38.77c-6 0-11.61 4-12.86 9.91a48 48 0 0 1-93.94 0c-1.25-5.92-6.82-9.91-12.86-9.91H157.4a13.4 13.4 0 0 0-13.4 13.4c0 25.69-19 48.75-44.67 50.49a47.5 47.5 0 0 1-41.54-19.15c-5.28-7.09-14.73-9.45-22.09-4.54l-28.57 16a16 16 0 0 0-5.44 20.47L104.24 416h303.52l102.55-211.37a16 16 0 0 0-5.44-20.47z"]
  111069. };
  111070. var faChessRook = {
  111071. prefix: 'fas',
  111072. iconName: 'chess-rook',
  111073. icon: [384, 512, [], "f447", "M368 32h-56a16 16 0 0 0-16 16v48h-48V48a16 16 0 0 0-16-16h-80a16 16 0 0 0-16 16v48H88.1V48a16 16 0 0 0-16-16H16A16 16 0 0 0 0 48v176l64 32c0 48.33-1.54 95-13.21 160h282.42C321.54 351 320 303.72 320 256l64-32V48a16 16 0 0 0-16-16zM224 320h-64v-64a32 32 0 0 1 64 0zm144 128H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  111074. };
  111075. var faChevronCircleDown = {
  111076. prefix: 'fas',
  111077. iconName: 'chevron-circle-down',
  111078. icon: [512, 512, [], "f13a", "M504 256c0 137-111 248-248 248S8 393 8 256 119 8 256 8s248 111 248 248zM273 369.9l135.5-135.5c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L256 285.1 154.4 183.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L239 369.9c9.4 9.4 24.6 9.4 34 0z"]
  111079. };
  111080. var faChevronCircleLeft = {
  111081. prefix: 'fas',
  111082. iconName: 'chevron-circle-left',
  111083. icon: [512, 512, [], "f137", "M256 504C119 504 8 393 8 256S119 8 256 8s248 111 248 248-111 248-248 248zM142.1 273l135.5 135.5c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L226.9 256l101.6-101.6c9.4-9.4 9.4-24.6 0-33.9l-17-17c-9.4-9.4-24.6-9.4-33.9 0L142.1 239c-9.4 9.4-9.4 24.6 0 34z"]
  111084. };
  111085. var faChevronCircleRight = {
  111086. prefix: 'fas',
  111087. iconName: 'chevron-circle-right',
  111088. icon: [512, 512, [], "f138", "M256 8c137 0 248 111 248 248S393 504 256 504 8 393 8 256 119 8 256 8zm113.9 231L234.4 103.5c-9.4-9.4-24.6-9.4-33.9 0l-17 17c-9.4 9.4-9.4 24.6 0 33.9L285.1 256 183.5 357.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L369.9 273c9.4-9.4 9.4-24.6 0-34z"]
  111089. };
  111090. var faChevronCircleUp = {
  111091. prefix: 'fas',
  111092. iconName: 'chevron-circle-up',
  111093. icon: [512, 512, [], "f139", "M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"]
  111094. };
  111095. var faChevronDown = {
  111096. prefix: 'fas',
  111097. iconName: 'chevron-down',
  111098. icon: [448, 512, [], "f078", "M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"]
  111099. };
  111100. var faChevronLeft = {
  111101. prefix: 'fas',
  111102. iconName: 'chevron-left',
  111103. icon: [320, 512, [], "f053", "M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"]
  111104. };
  111105. var faChevronRight = {
  111106. prefix: 'fas',
  111107. iconName: 'chevron-right',
  111108. icon: [320, 512, [], "f054", "M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"]
  111109. };
  111110. var faChevronUp = {
  111111. prefix: 'fas',
  111112. iconName: 'chevron-up',
  111113. icon: [448, 512, [], "f077", "M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"]
  111114. };
  111115. var faChild = {
  111116. prefix: 'fas',
  111117. iconName: 'child',
  111118. icon: [384, 512, [], "f1ae", "M120 72c0-39.765 32.235-72 72-72s72 32.235 72 72c0 39.764-32.235 72-72 72s-72-32.236-72-72zm254.627 1.373c-12.496-12.497-32.758-12.497-45.254 0L242.745 160H141.254L54.627 73.373c-12.496-12.497-32.758-12.497-45.254 0-12.497 12.497-12.497 32.758 0 45.255L104 213.254V480c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V368h16v112c0 17.673 14.327 32 32 32h16c17.673 0 32-14.327 32-32V213.254l94.627-94.627c12.497-12.497 12.497-32.757 0-45.254z"]
  111119. };
  111120. var faChurch = {
  111121. prefix: 'fas',
  111122. iconName: 'church',
  111123. icon: [640, 512, [], "f51d", "M464.46 246.68L352 179.2V128h48c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-48V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v48h-48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v51.2l-112.46 67.48A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.65-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.54A32.024 32.024 0 0 0 0 395.96zm620.61-29.42L512 320v192h112c8.84 0 16-7.16 16-16V395.96c0-12.8-7.63-24.37-19.39-29.42z"]
  111124. };
  111125. var faCircle = {
  111126. prefix: 'fas',
  111127. iconName: 'circle',
  111128. icon: [512, 512, [], "f111", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8z"]
  111129. };
  111130. var faCircleNotch = {
  111131. prefix: 'fas',
  111132. iconName: 'circle-notch',
  111133. icon: [512, 512, [], "f1ce", "M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z"]
  111134. };
  111135. var faCity = {
  111136. prefix: 'fas',
  111137. iconName: 'city',
  111138. icon: [640, 512, [], "f64f", "M616 192H480V24c0-13.26-10.74-24-24-24H312c-13.26 0-24 10.74-24 24v72h-64V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v80h-64V16c0-8.84-7.16-16-16-16H80c-8.84 0-16 7.16-16 16v80H24c-13.26 0-24 10.74-24 24v360c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V216c0-13.26-10.75-24-24-24zM128 404c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12H76c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm128 192c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12V76c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm160 288c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40zm0-96c0 6.63-5.37 12-12 12h-40c-6.63 0-12-5.37-12-12v-40c0-6.63 5.37-12 12-12h40c6.63 0 12 5.37 12 12v40z"]
  111139. };
  111140. var faClinicMedical = {
  111141. prefix: 'fas',
  111142. iconName: 'clinic-medical',
  111143. icon: [576, 512, [], "f7f2", "M288 115L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2zm96 261a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8zm186.69-139.72l-255.94-226a39.85 39.85 0 0 0-53.45 0l-256 226a16 16 0 0 0-1.21 22.6L25.5 282.7a16 16 0 0 0 22.6 1.21L277.42 81.63a16 16 0 0 1 21.17 0L527.91 283.9a16 16 0 0 0 22.6-1.21l21.4-23.82a16 16 0 0 0-1.22-22.59z"]
  111144. };
  111145. var faClipboard = {
  111146. prefix: 'fas',
  111147. iconName: 'clipboard',
  111148. icon: [384, 512, [], "f328", "M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"]
  111149. };
  111150. var faClipboardCheck = {
  111151. prefix: 'fas',
  111152. iconName: 'clipboard-check',
  111153. icon: [384, 512, [], "f46c", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm121.2 231.8l-143 141.8c-4.7 4.7-12.3 4.6-17-.1l-82.6-83.3c-4.7-4.7-4.6-12.3.1-17L99.1 285c4.7-4.7 12.3-4.6 17 .1l46 46.4 106-105.2c4.7-4.7 12.3-4.6 17 .1l28.2 28.4c4.7 4.8 4.6 12.3-.1 17z"]
  111154. };
  111155. var faClipboardList = {
  111156. prefix: 'fas',
  111157. iconName: 'clipboard-list',
  111158. icon: [384, 512, [], "f46d", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM96 424c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm0-96c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24zm96-192c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm128 368c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16z"]
  111159. };
  111160. var faClock = {
  111161. prefix: 'fas',
  111162. iconName: 'clock',
  111163. icon: [512, 512, [], "f017", "M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"]
  111164. };
  111165. var faClone = {
  111166. prefix: 'fas',
  111167. iconName: 'clone',
  111168. icon: [512, 512, [], "f24d", "M464 0c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48H176c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h288M176 416c-44.112 0-80-35.888-80-80V128H48c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h288c26.51 0 48-21.49 48-48v-48H176z"]
  111169. };
  111170. var faClosedCaptioning = {
  111171. prefix: 'fas',
  111172. iconName: 'closed-captioning',
  111173. icon: [512, 512, [], "f20a", "M464 64H48C21.5 64 0 85.5 0 112v288c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM218.1 287.7c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.6 56.8-172.8 32.1-172.8-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7l-17.5 30.5c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2.1 48 51.1 70.5 92.3 32.6zm190.4 0c2.8-2.5 7.1-2.1 9.2.9l19.5 27.7c1.7 2.4 1.5 5.6-.5 7.7-53.5 56.9-172.7 32.1-172.7-67.9 0-97.3 121.7-119.5 172.5-70.1 2.1 2 2.5 3.2 1 5.7L420 222.2c-1.9 3.1-6.2 4-9.1 1.7-40.8-32-94.6-14.9-94.6 31.2 0 48 51 70.5 92.2 32.6z"]
  111174. };
  111175. var faCloud = {
  111176. prefix: 'fas',
  111177. iconName: 'cloud',
  111178. icon: [640, 512, [], "f0c2", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4z"]
  111179. };
  111180. var faCloudDownloadAlt = {
  111181. prefix: 'fas',
  111182. iconName: 'cloud-download-alt',
  111183. icon: [640, 512, [], "f381", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zm-132.9 88.7L299.3 420.7c-6.2 6.2-16.4 6.2-22.6 0L171.3 315.3c-10.1-10.1-2.9-27.3 11.3-27.3H248V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v112h65.4c14.2 0 21.4 17.2 11.3 27.3z"]
  111184. };
  111185. var faCloudMeatball = {
  111186. prefix: 'fas',
  111187. iconName: 'cloud-meatball',
  111188. icon: [512, 512, [], "f73b", "M48 352c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm416 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-119 11.1c4.6-14.5 1.6-30.8-9.8-42.3-11.5-11.5-27.8-14.4-42.3-9.9-7-13.5-20.7-23-36.9-23s-29.9 9.5-36.9 23c-14.5-4.6-30.8-1.6-42.3 9.9-11.5 11.5-14.4 27.8-9.9 42.3-13.5 7-23 20.7-23 36.9s9.5 29.9 23 36.9c-4.6 14.5-1.6 30.8 9.9 42.3 8.2 8.2 18.9 12.3 29.7 12.3 4.3 0 8.5-1.1 12.6-2.5 7 13.5 20.7 23 36.9 23s29.9-9.5 36.9-23c4.1 1.3 8.3 2.5 12.6 2.5 10.8 0 21.5-4.1 29.7-12.3 11.5-11.5 14.4-27.8 9.8-42.3 13.5-7 23-20.7 23-36.9s-9.5-29.9-23-36.9zM512 224c0-53-43-96-96-96-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.1 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h43.4c3.6-8 8.4-15.4 14.8-21.8 13.5-13.5 31.5-21.1 50.8-21.3 13.5-13.2 31.7-20.9 51-20.9s37.5 7.7 51 20.9c19.3.2 37.3 7.8 50.8 21.3 6.4 6.4 11.3 13.8 14.8 21.8H416c53 0 96-43 96-96z"]
  111189. };
  111190. var faCloudMoon = {
  111191. prefix: 'fas',
  111192. iconName: 'cloud-moon',
  111193. icon: [576, 512, [], "f6c3", "M342.8 352.7c5.7-9.6 9.2-20.7 9.2-32.7 0-35.3-28.7-64-64-64-17.2 0-32.8 6.9-44.3 17.9-16.3-29.6-47.5-49.9-83.7-49.9-53 0-96 43-96 96 0 2 .5 3.8.6 5.7C27.1 338.8 0 374.1 0 416c0 53 43 96 96 96h240c44.2 0 80-35.8 80-80 0-41.9-32.3-75.8-73.2-79.3zm222.5-54.3c-93.1 17.7-178.5-53.7-178.5-147.7 0-54.2 29-104 76.1-130.8 7.3-4.1 5.4-15.1-2.8-16.7C448.4 1.1 436.7 0 425 0 319.1 0 233.1 85.9 233.1 192c0 8.5.7 16.8 1.8 25 5.9 4.3 11.6 8.9 16.7 14.2 11.4-4.7 23.7-7.2 36.4-7.2 52.9 0 96 43.1 96 96 0 3.6-.2 7.2-.6 10.7 23.6 10.8 42.4 29.5 53.5 52.6 54.4-3.4 103.7-29.3 137.1-70.4 5.3-6.5-.5-16.1-8.7-14.5z"]
  111194. };
  111195. var faCloudMoonRain = {
  111196. prefix: 'fas',
  111197. iconName: 'cloud-moon-rain',
  111198. icon: [576, 512, [], "f73c", "M350.5 225.5c-6.9-37.2-39.3-65.5-78.5-65.5-12.3 0-23.9 3-34.3 8-17.4-24.1-45.6-40-77.7-40-53 0-96 43-96 96 0 .5.2 1.1.2 1.6C27.6 232.9 0 265.2 0 304c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80 0-39.2-28.2-71.7-65.5-78.5zm217.4-1.7c-70.4 13.3-135-40.3-135-110.8 0-40.6 21.9-78 57.5-98.1 5.5-3.1 4.1-11.4-2.1-12.5C479.6.8 470.7 0 461.8 0c-77.9 0-141.1 61.2-144.4 137.9 26.7 11.9 48.2 33.8 58.9 61.7 37.1 14.3 64 47.4 70.2 86.8 5.1.5 10 1.5 15.2 1.5 44.7 0 85.6-20.2 112.6-53.3 4.2-4.8-.2-12-6.4-10.8zM364.5 418.1c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8z"]
  111199. };
  111200. var faCloudRain = {
  111201. prefix: 'fas',
  111202. iconName: 'cloud-rain',
  111203. icon: [512, 512, [], "f73d", "M416 128c-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.1 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h320c53 0 96-43 96-96s-43-96-96-96zM88 374.2c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0zm160 0c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0zm160 0c-12.8 44.4-40 56.4-40 87.7 0 27.7 21.5 50.1 48 50.1s48-22.4 48-50.1c0-31.4-27.2-43.1-40-87.7-2.2-8.1-13.5-8.5-16 0z"]
  111204. };
  111205. var faCloudShowersHeavy = {
  111206. prefix: 'fas',
  111207. iconName: 'cloud-showers-heavy',
  111208. icon: [512, 512, [], "f740", "M183.9 370.1c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm96 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm-192 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm384 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zm-96 0c-7.6-4.4-17.4-1.8-21.8 6l-64 112c-4.4 7.7-1.7 17.5 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l64-112c4.4-7.6 1.7-17.4-6-21.8zM416 128c-.6 0-1.1.2-1.6.2 1.1-5.2 1.6-10.6 1.6-16.2 0-44.2-35.8-80-80-80-24.6 0-46.3 11.3-61 28.8C256.4 24.8 219.3 0 176 0 114.2 0 64 50.1 64 112c0 7.3.8 14.3 2.1 21.2C27.8 145.8 0 181.5 0 224c0 53 43 96 96 96h320c53 0 96-43 96-96s-43-96-96-96z"]
  111209. };
  111210. var faCloudSun = {
  111211. prefix: 'fas',
  111212. iconName: 'cloud-sun',
  111213. icon: [640, 512, [], "f6c4", "M575.2 325.7c.2-1.9.8-3.7.8-5.6 0-35.3-28.7-64-64-64-12.6 0-24.2 3.8-34.1 10-17.6-38.8-56.5-66-101.9-66-61.8 0-112 50.1-112 112 0 3 .7 5.8.9 8.7-49.6 3.7-88.9 44.7-88.9 95.3 0 53 43 96 96 96h272c53 0 96-43 96-96 0-42.1-27.2-77.4-64.8-90.4zm-430.4-22.6c-43.7-43.7-43.7-114.7 0-158.3 43.7-43.7 114.7-43.7 158.4 0 9.7 9.7 16.9 20.9 22.3 32.7 9.8-3.7 20.1-6 30.7-7.5L386 81.1c4-11.9-7.3-23.1-19.2-19.2L279 91.2 237.5 8.4C232-2.8 216-2.8 210.4 8.4L169 91.2 81.1 61.9C69.3 58 58 69.3 61.9 81.1l29.3 87.8-82.8 41.5c-11.2 5.6-11.2 21.5 0 27.1l82.8 41.4-29.3 87.8c-4 11.9 7.3 23.1 19.2 19.2l76.1-25.3c6.1-12.4 14-23.7 23.6-33.5-13.1-5.4-25.4-13.4-36-24zm-4.8-79.2c0 40.8 29.3 74.8 67.9 82.3 8-4.7 16.3-8.8 25.2-11.7 5.4-44.3 31-82.5 67.4-105C287.3 160.4 258 140 224 140c-46.3 0-84 37.6-84 83.9z"]
  111214. };
  111215. var faCloudSunRain = {
  111216. prefix: 'fas',
  111217. iconName: 'cloud-sun-rain',
  111218. icon: [576, 512, [], "f743", "M510.5 225.5c-6.9-37.2-39.3-65.5-78.5-65.5-12.3 0-23.9 3-34.3 8-17.4-24.1-45.6-40-77.7-40-53 0-96 43-96 96 0 .5.2 1.1.2 1.6C187.6 233 160 265.2 160 304c0 44.2 35.8 80 80 80h256c44.2 0 80-35.8 80-80 0-39.2-28.2-71.7-65.5-78.5zm-386.4 34.4c-37.4-37.4-37.4-98.3 0-135.8 34.6-34.6 89.1-36.8 126.7-7.4 20-12.9 43.6-20.7 69.2-20.7.7 0 1.3.2 2 .2l8.9-26.7c3.4-10.2-6.3-19.8-16.5-16.4l-75.3 25.1-35.5-71c-4.8-9.6-18.5-9.6-23.3 0l-35.5 71-75.3-25.1c-10.2-3.4-19.8 6.3-16.4 16.5l25.1 75.3-71 35.5c-9.6 4.8-9.6 18.5 0 23.3l71 35.5-25.1 75.3c-3.4 10.2 6.3 19.8 16.5 16.5l59.2-19.7c-.2-2.4-.7-4.7-.7-7.2 0-12.5 2.3-24.5 6.2-35.9-3.6-2.7-7.1-5.2-10.2-8.3zm69.8-58c4.3-24.5 15.8-46.4 31.9-64-9.8-6.2-21.4-9.9-33.8-9.9-35.3 0-64 28.7-64 64 0 18.7 8.2 35.4 21.1 47.1 11.3-15.9 26.6-28.9 44.8-37.2zm330.6 216.2c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8zm-96 0c-7.6-4.3-17.4-1.8-21.8 6l-36.6 64c-4.4 7.7-1.7 17.4 6 21.8 2.5 1.4 5.2 2.1 7.9 2.1 5.5 0 10.9-2.9 13.9-8.1l36.6-64c4.3-7.7 1.7-17.4-6-21.8z"]
  111219. };
  111220. var faCloudUploadAlt = {
  111221. prefix: 'fas',
  111222. iconName: 'cloud-upload-alt',
  111223. icon: [640, 512, [], "f382", "M537.6 226.6c4.1-10.7 6.4-22.4 6.4-34.6 0-53-43-96-96-96-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32c-88.4 0-160 71.6-160 160 0 2.7.1 5.4.2 8.1C40.2 219.8 0 273.2 0 336c0 79.5 64.5 144 144 144h368c70.7 0 128-57.3 128-128 0-61.9-44-113.6-102.4-125.4zM393.4 288H328v112c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V288h-65.4c-14.3 0-21.4-17.2-11.3-27.3l105.4-105.4c6.2-6.2 16.4-6.2 22.6 0l105.4 105.4c10.1 10.1 2.9 27.3-11.3 27.3z"]
  111224. };
  111225. var faCocktail = {
  111226. prefix: 'fas',
  111227. iconName: 'cocktail',
  111228. icon: [576, 512, [], "f561", "M296 464h-56V338.78l168.74-168.73c15.52-15.52 4.53-42.05-17.42-42.05H24.68c-21.95 0-32.94 26.53-17.42 42.05L176 338.78V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM432 0c-62.61 0-115.35 40.2-135.18 96h52.54c16.65-28.55 47.27-48 82.64-48 52.93 0 96 43.06 96 96s-43.07 96-96 96c-14.04 0-27.29-3.2-39.32-8.64l-35.26 35.26C379.23 279.92 404.59 288 432 288c79.53 0 144-64.47 144-144S511.53 0 432 0z"]
  111229. };
  111230. var faCode = {
  111231. prefix: 'fas',
  111232. iconName: 'code',
  111233. icon: [640, 512, [], "f121", "M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"]
  111234. };
  111235. var faCodeBranch = {
  111236. prefix: 'fas',
  111237. iconName: 'code-branch',
  111238. icon: [384, 512, [], "f126", "M384 144c0-44.2-35.8-80-80-80s-80 35.8-80 80c0 36.4 24.3 67.1 57.5 76.8-.6 16.1-4.2 28.5-11 36.9-15.4 19.2-49.3 22.4-85.2 25.7-28.2 2.6-57.4 5.4-81.3 16.9v-144c32.5-10.2 56-40.5 56-76.3 0-44.2-35.8-80-80-80S0 35.8 0 80c0 35.8 23.5 66.1 56 76.3v199.3C23.5 365.9 0 396.2 0 432c0 44.2 35.8 80 80 80s80-35.8 80-80c0-34-21.2-63.1-51.2-74.6 3.1-5.2 7.8-9.8 14.9-13.4 16.2-8.2 40.4-10.4 66.1-12.8 42.2-3.9 90-8.4 118.2-43.4 14-17.4 21.1-39.8 21.6-67.9 31.6-10.8 54.4-40.7 54.4-75.9zM80 64c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16zm0 384c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm224-320c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16 7.2-16 16-16z"]
  111239. };
  111240. var faCoffee = {
  111241. prefix: 'fas',
  111242. iconName: 'coffee',
  111243. icon: [640, 512, [], "f0f4", "M192 384h192c53 0 96-43 96-96h32c70.6 0 128-57.4 128-128S582.6 32 512 32H120c-13.3 0-24 10.7-24 24v232c0 53 43 96 96 96zM512 96c35.3 0 64 28.7 64 64s-28.7 64-64 64h-32V96h32zm47.7 384H48.3c-47.6 0-61-64-36-64h583.3c25 0 11.8 64-35.9 64z"]
  111244. };
  111245. var faCog = {
  111246. prefix: 'fas',
  111247. iconName: 'cog',
  111248. icon: [512, 512, [], "f013", "M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  111249. };
  111250. var faCogs = {
  111251. prefix: 'fas',
  111252. iconName: 'cogs',
  111253. icon: [640, 512, [], "f085", "M512.1 191l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0L552 6.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zm-10.5-58.8c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.7-82.4 14.3-52.8 52.8zM386.3 286.1l33.7 16.8c10.1 5.8 14.5 18.1 10.5 29.1-8.9 24.2-26.4 46.4-42.6 65.8-7.4 8.9-20.2 11.1-30.3 5.3l-29.1-16.8c-16 13.7-34.6 24.6-54.9 31.7v33.6c0 11.6-8.3 21.6-19.7 23.6-24.6 4.2-50.4 4.4-75.9 0-11.5-2-20-11.9-20-23.6V418c-20.3-7.2-38.9-18-54.9-31.7L74 403c-10 5.8-22.9 3.6-30.3-5.3-16.2-19.4-33.3-41.6-42.2-65.7-4-10.9.4-23.2 10.5-29.1l33.3-16.8c-3.9-20.9-3.9-42.4 0-63.4L12 205.8c-10.1-5.8-14.6-18.1-10.5-29 8.9-24.2 26-46.4 42.2-65.8 7.4-8.9 20.2-11.1 30.3-5.3l29.1 16.8c16-13.7 34.6-24.6 54.9-31.7V57.1c0-11.5 8.2-21.5 19.6-23.5 24.6-4.2 50.5-4.4 76-.1 11.5 2 20 11.9 20 23.6v33.6c20.3 7.2 38.9 18 54.9 31.7l29.1-16.8c10-5.8 22.9-3.6 30.3 5.3 16.2 19.4 33.2 41.6 42.1 65.8 4 10.9.1 23.2-10 29.1l-33.7 16.8c3.9 21 3.9 42.5 0 63.5zm-117.6 21.1c59.2-77-28.7-164.9-105.7-105.7-59.2 77 28.7 164.9 105.7 105.7zm243.4 182.7l-8.2 14.3c-3 5.3-9.4 7.5-15.1 5.4-11.8-4.4-22.6-10.7-32.1-18.6-4.6-3.8-5.8-10.5-2.8-15.7l8.2-14.3c-6.9-8-12.3-17.3-15.9-27.4h-16.5c-6 0-11.2-4.3-12.2-10.3-2-12-2.1-24.6 0-37.1 1-6 6.2-10.4 12.2-10.4h16.5c3.6-10.1 9-19.4 15.9-27.4l-8.2-14.3c-3-5.2-1.9-11.9 2.8-15.7 9.5-7.9 20.4-14.2 32.1-18.6 5.7-2.1 12.1.1 15.1 5.4l8.2 14.3c10.5-1.9 21.2-1.9 31.7 0l8.2-14.3c3-5.3 9.4-7.5 15.1-5.4 11.8 4.4 22.6 10.7 32.1 18.6 4.6 3.8 5.8 10.5 2.8 15.7l-8.2 14.3c6.9 8 12.3 17.3 15.9 27.4h16.5c6 0 11.2 4.3 12.2 10.3 2 12 2.1 24.6 0 37.1-1 6-6.2 10.4-12.2 10.4h-16.5c-3.6 10.1-9 19.4-15.9 27.4l8.2 14.3c3 5.2 1.9 11.9-2.8 15.7-9.5 7.9-20.4 14.2-32.1 18.6-5.7 2.1-12.1-.1-15.1-5.4l-8.2-14.3c-10.4 1.9-21.2 1.9-31.7 0zM501.6 431c38.5 29.6 82.4-14.3 52.8-52.8-38.5-29.6-82.4 14.3-52.8 52.8z"]
  111254. };
  111255. var faCoins = {
  111256. prefix: 'fas',
  111257. iconName: 'coins',
  111258. icon: [512, 512, [], "f51e", "M0 405.3V448c0 35.3 86 64 192 64s192-28.7 192-64v-42.7C342.7 434.4 267.2 448 192 448S41.3 434.4 0 405.3zM320 128c106 0 192-28.7 192-64S426 0 320 0 128 28.7 128 64s86 64 192 64zM0 300.4V352c0 35.3 86 64 192 64s192-28.7 192-64v-51.6c-41.3 34-116.9 51.6-192 51.6S41.3 334.4 0 300.4zm416 11c57.3-11.1 96-31.7 96-55.4v-42.7c-23.2 16.4-57.3 27.6-96 34.5v63.6zM192 160C86 160 0 195.8 0 240s86 80 192 80 192-35.8 192-80-86-80-192-80zm219.3 56.3c60-10.8 100.7-32 100.7-56.3v-42.7c-35.5 25.1-96.5 38.6-160.7 41.8 29.5 14.3 51.2 33.5 60 57.2z"]
  111259. };
  111260. var faColumns = {
  111261. prefix: 'fas',
  111262. iconName: 'columns',
  111263. icon: [512, 512, [], "f0db", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64V160h160v256zm224 0H288V160h160v256z"]
  111264. };
  111265. var faComment = {
  111266. prefix: 'fas',
  111267. iconName: 'comment',
  111268. icon: [512, 512, [], "f075", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32z"]
  111269. };
  111270. var faCommentAlt = {
  111271. prefix: 'fas',
  111272. iconName: 'comment-alt',
  111273. icon: [512, 512, [], "f27a", "M448 0H64C28.7 0 0 28.7 0 64v288c0 35.3 28.7 64 64 64h96v84c0 9.8 11.2 15.5 19.1 9.7L304 416h144c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64z"]
  111274. };
  111275. var faCommentDollar = {
  111276. prefix: 'fas',
  111277. iconName: 'comment-dollar',
  111278. icon: [512, 512, [], "f651", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95.01 57.02 130.74C44.46 421.05 2.7 465.97 2.2 466.5A7.995 7.995 0 0 0 8 480c66.26 0 115.99-31.75 140.6-51.38C181.29 440.93 217.59 448 256 448c141.38 0 256-93.12 256-208S397.38 32 256 32zm24 302.44V352c0 8.84-7.16 16-16 16h-16c-8.84 0-16-7.16-16-16v-17.73c-11.42-1.35-22.28-5.19-31.78-11.46-6.22-4.11-6.82-13.11-1.55-18.38l17.52-17.52c3.74-3.74 9.31-4.24 14.11-2.03 3.18 1.46 6.66 2.22 10.26 2.22h32.78c4.66 0 8.44-3.78 8.44-8.42 0-3.75-2.52-7.08-6.12-8.11l-50.07-14.3c-22.25-6.35-40.01-24.71-42.91-47.67-4.05-32.07 19.03-59.43 49.32-63.05V128c0-8.84 7.16-16 16-16h16c8.84 0 16 7.16 16 16v17.73c11.42 1.35 22.28 5.19 31.78 11.46 6.22 4.11 6.82 13.11 1.55 18.38l-17.52 17.52c-3.74 3.74-9.31 4.24-14.11 2.03a24.516 24.516 0 0 0-10.26-2.22h-32.78c-4.66 0-8.44 3.78-8.44 8.42 0 3.75 2.52 7.08 6.12 8.11l50.07 14.3c22.25 6.36 40.01 24.71 42.91 47.67 4.05 32.06-19.03 59.42-49.32 63.04z"]
  111279. };
  111280. var faCommentDots = {
  111281. prefix: 'fas',
  111282. iconName: 'comment-dots',
  111283. icon: [512, 512, [], "f4ad", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7S4.8 480 8 480c66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128 272c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  111284. };
  111285. var faCommentMedical = {
  111286. prefix: 'fas',
  111287. iconName: 'comment-medical',
  111288. icon: [512, 512, [], "f7f5", "M256 32C114.62 32 0 125.12 0 240c0 49.56 21.41 95 57 130.74C44.46 421.05 2.7 466 2.2 466.5A8 8 0 0 0 8 480c66.26 0 116-31.75 140.6-51.38A304.66 304.66 0 0 0 256 448c141.39 0 256-93.12 256-208S397.39 32 256 32zm96 232a8 8 0 0 1-8 8h-56v56a8 8 0 0 1-8 8h-48a8 8 0 0 1-8-8v-56h-56a8 8 0 0 1-8-8v-48a8 8 0 0 1 8-8h56v-56a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v56h56a8 8 0 0 1 8 8z"]
  111289. };
  111290. var faCommentSlash = {
  111291. prefix: 'fas',
  111292. iconName: 'comment-slash',
  111293. icon: [640, 512, [], "f4b3", "M64 240c0 49.6 21.4 95 57 130.7-12.6 50.3-54.3 95.2-54.8 95.8-2.2 2.3-2.8 5.7-1.5 8.7 1.3 2.9 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 27.4 0 53.7-3.6 78.4-10L72.9 186.4c-5.6 17.1-8.9 35-8.9 53.6zm569.8 218.1l-114.4-88.4C554.6 334.1 576 289.2 576 240c0-114.9-114.6-208-256-208-65.1 0-124.2 20.1-169.4 52.7L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"]
  111294. };
  111295. var faComments = {
  111296. prefix: 'fas',
  111297. iconName: 'comments',
  111298. icon: [576, 512, [], "f086", "M416 192c0-88.4-93.1-160-208-160S0 103.6 0 192c0 34.3 14.1 65.9 38 92-13.4 30.2-35.5 54.2-35.8 54.5-2.2 2.3-2.8 5.7-1.5 8.7S4.8 352 8 352c36.6 0 66.9-12.3 88.7-25 32.2 15.7 70.3 25 111.3 25 114.9 0 208-71.6 208-160zm122 220c23.9-26 38-57.7 38-92 0-66.9-53.5-124.2-129.3-148.1.9 6.6 1.3 13.3 1.3 20.1 0 105.9-107.7 192-240 192-10.8 0-21.3-.8-31.7-1.9C207.8 439.6 281.8 480 368 480c41 0 79.1-9.2 111.3-25 21.8 12.7 52.1 25 88.7 25 3.2 0 6.1-1.9 7.3-4.8 1.3-2.9.7-6.3-1.5-8.7-.3-.3-22.4-24.2-35.8-54.5z"]
  111299. };
  111300. var faCommentsDollar = {
  111301. prefix: 'fas',
  111302. iconName: 'comments-dollar',
  111303. icon: [576, 512, [], "f653", "M416 192c0-88.37-93.12-160-208-160S0 103.63 0 192c0 34.27 14.13 65.95 37.97 91.98C24.61 314.22 2.52 338.16 2.2 338.5A7.995 7.995 0 0 0 8 352c36.58 0 66.93-12.25 88.73-24.98C128.93 342.76 167.02 352 208 352c114.88 0 208-71.63 208-160zm-224 96v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V96c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07V288c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm346.01 123.99C561.87 385.96 576 354.27 576 320c0-66.94-53.49-124.2-129.33-148.07.86 6.6 1.33 13.29 1.33 20.07 0 105.87-107.66 192-240 192-10.78 0-21.32-.77-31.73-1.88C207.8 439.63 281.77 480 368 480c40.98 0 79.07-9.24 111.27-24.98C501.07 467.75 531.42 480 568 480c3.2 0 6.09-1.91 7.34-4.84 1.27-2.94.66-6.34-1.55-8.67-.31-.33-22.42-24.24-35.78-54.5z"]
  111304. };
  111305. var faCompactDisc = {
  111306. prefix: 'fas',
  111307. iconName: 'compact-disc',
  111308. icon: [496, 512, [], "f51f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 256H56c0-105.9 86.1-192 192-192v32c-88.2 0-160 71.8-160 160zm160 96c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96zm0-128c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32z"]
  111309. };
  111310. var faCompass = {
  111311. prefix: 'fas',
  111312. iconName: 'compass',
  111313. icon: [496, 512, [], "f14e", "M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"]
  111314. };
  111315. var faCompress = {
  111316. prefix: 'fas',
  111317. iconName: 'compress',
  111318. icon: [448, 512, [], "f066", "M436 192H312c-13.3 0-24-10.7-24-24V44c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v84h84c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm-276-24V44c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v84H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24zm0 300V344c0-13.3-10.7-24-24-24H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-84h84c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12H312c-13.3 0-24 10.7-24 24v124c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"]
  111319. };
  111320. var faCompressAlt = {
  111321. prefix: 'fas',
  111322. iconName: 'compress-alt',
  111323. icon: [448, 512, [], "f422", "M4.686 427.314L104 328l-32.922-31.029C55.958 281.851 66.666 256 88.048 256h112C213.303 256 224 266.745 224 280v112c0 21.382-25.803 32.09-40.922 16.971L152 376l-99.314 99.314c-6.248 6.248-16.379 6.248-22.627 0L4.686 449.941c-6.248-6.248-6.248-16.379 0-22.627zM443.314 84.686L344 184l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C234.697 256 224 245.255 224 232V120c0-21.382 25.803-32.09 40.922-16.971L296 136l99.314-99.314c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.248 6.248 6.248 16.379 0 22.627z"]
  111324. };
  111325. var faCompressArrowsAlt = {
  111326. prefix: 'fas',
  111327. iconName: 'compress-arrows-alt',
  111328. icon: [512, 512, [], "f78c", "M200 288H88c-21.4 0-32.1 25.8-17 41l32.9 31-99.2 99.3c-6.2 6.2-6.2 16.4 0 22.6l25.4 25.4c6.2 6.2 16.4 6.2 22.6 0L152 408l31.1 33c15.1 15.1 40.9 4.4 40.9-17V312c0-13.3-10.7-24-24-24zm112-64h112c21.4 0 32.1-25.9 17-41l-33-31 99.3-99.3c6.2-6.2 6.2-16.4 0-22.6L481.9 4.7c-6.2-6.2-16.4-6.2-22.6 0L360 104l-31.1-33C313.8 55.9 288 66.6 288 88v112c0 13.3 10.7 24 24 24zm96 136l33-31.1c15.1-15.1 4.4-40.9-17-40.9H312c-13.3 0-24 10.7-24 24v112c0 21.4 25.9 32.1 41 17l31-32.9 99.3 99.3c6.2 6.2 16.4 6.2 22.6 0l25.4-25.4c6.2-6.2 6.2-16.4 0-22.6L408 360zM183 71.1L152 104 52.7 4.7c-6.2-6.2-16.4-6.2-22.6 0L4.7 30.1c-6.2 6.2-6.2 16.4 0 22.6L104 152l-33 31.1C55.9 198.2 66.6 224 88 224h112c13.3 0 24-10.7 24-24V88c0-21.3-25.9-32-41-16.9z"]
  111329. };
  111330. var faConciergeBell = {
  111331. prefix: 'fas',
  111332. iconName: 'concierge-bell',
  111333. icon: [512, 512, [], "f562", "M288 130.54V112h16c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16h-96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h16v18.54C115.49 146.11 32 239.18 32 352h448c0-112.82-83.49-205.89-192-221.46zM496 384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
  111334. };
  111335. var faCookie = {
  111336. prefix: 'fas',
  111337. iconName: 'cookie',
  111338. icon: [512, 512, [], "f563", "M510.37 254.79l-12.08-76.26a132.493 132.493 0 0 0-37.16-72.95l-54.76-54.75c-19.73-19.72-45.18-32.7-72.71-37.05l-76.7-12.15c-27.51-4.36-55.69.11-80.52 12.76L107.32 49.6a132.25 132.25 0 0 0-57.79 57.8l-35.1 68.88a132.602 132.602 0 0 0-12.82 80.94l12.08 76.27a132.493 132.493 0 0 0 37.16 72.95l54.76 54.75a132.087 132.087 0 0 0 72.71 37.05l76.7 12.14c27.51 4.36 55.69-.11 80.52-12.75l69.12-35.21a132.302 132.302 0 0 0 57.79-57.8l35.1-68.87c12.71-24.96 17.2-53.3 12.82-80.96zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  111339. };
  111340. var faCookieBite = {
  111341. prefix: 'fas',
  111342. iconName: 'cookie-bite',
  111343. icon: [512, 512, [], "f564", "M510.52 255.82c-69.97-.85-126.47-57.69-126.47-127.86-70.17 0-127-56.49-127.86-126.45-27.26-4.14-55.13.3-79.72 12.82l-69.13 35.22a132.221 132.221 0 0 0-57.79 57.81l-35.1 68.88a132.645 132.645 0 0 0-12.82 80.95l12.08 76.27a132.521 132.521 0 0 0 37.16 72.96l54.77 54.76a132.036 132.036 0 0 0 72.71 37.06l76.71 12.15c27.51 4.36 55.7-.11 80.53-12.76l69.13-35.21a132.273 132.273 0 0 0 57.79-57.81l35.1-68.88c12.56-24.64 17.01-52.58 12.91-79.91zM176 368c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm32-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm160 128c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  111344. };
  111345. var faCopy = {
  111346. prefix: 'fas',
  111347. iconName: 'copy',
  111348. icon: [448, 512, [], "f0c5", "M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z"]
  111349. };
  111350. var faCopyright = {
  111351. prefix: 'fas',
  111352. iconName: 'copyright',
  111353. icon: [512, 512, [], "f1f9", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm117.134 346.753c-1.592 1.867-39.776 45.731-109.851 45.731-84.692 0-144.484-63.26-144.484-145.567 0-81.303 62.004-143.401 143.762-143.401 66.957 0 101.965 37.315 103.422 38.904a12 12 0 0 1 1.238 14.623l-22.38 34.655c-4.049 6.267-12.774 7.351-18.234 2.295-.233-.214-26.529-23.88-61.88-23.88-46.116 0-73.916 33.575-73.916 76.082 0 39.602 25.514 79.692 74.277 79.692 38.697 0 65.28-28.338 65.544-28.625 5.132-5.565 14.059-5.033 18.508 1.053l24.547 33.572a12.001 12.001 0 0 1-.553 14.866z"]
  111354. };
  111355. var faCouch = {
  111356. prefix: 'fas',
  111357. iconName: 'couch',
  111358. icon: [640, 512, [], "f4b8", "M160 224v64h320v-64c0-35.3 28.7-64 64-64h32c0-53-43-96-96-96H160c-53 0-96 43-96 96h32c35.3 0 64 28.7 64 64zm416-32h-32c-17.7 0-32 14.3-32 32v96H128v-96c0-17.7-14.3-32-32-32H64c-35.3 0-64 28.7-64 64 0 23.6 13 44 32 55.1V432c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-16h384v16c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V311.1c19-11.1 32-31.5 32-55.1 0-35.3-28.7-64-64-64z"]
  111359. };
  111360. var faCreditCard = {
  111361. prefix: 'fas',
  111362. iconName: 'credit-card',
  111363. icon: [576, 512, [], "f09d", "M0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V256H0v176zm192-68c0-6.6 5.4-12 12-12h136c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H204c-6.6 0-12-5.4-12-12v-40zm-128 0c0-6.6 5.4-12 12-12h72c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12v-40zM576 80v48H0V80c0-26.5 21.5-48 48-48h480c26.5 0 48 21.5 48 48z"]
  111364. };
  111365. var faCrop = {
  111366. prefix: 'fas',
  111367. iconName: 'crop',
  111368. icon: [512, 512, [], "f125", "M488 352h-40V109.25l59.31-59.31c6.25-6.25 6.25-16.38 0-22.63L484.69 4.69c-6.25-6.25-16.38-6.25-22.63 0L402.75 64H192v96h114.75L160 306.75V24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v264c0 13.25 10.75 24 24 24h232v-96H205.25L352 205.25V488c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"]
  111369. };
  111370. var faCropAlt = {
  111371. prefix: 'fas',
  111372. iconName: 'crop-alt',
  111373. icon: [512, 512, [], "f565", "M488 352h-40V96c0-17.67-14.33-32-32-32H192v96h160v328c0 13.25 10.75 24 24 24h48c13.25 0 24-10.75 24-24v-40h40c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24zM160 24c0-13.26-10.75-24-24-24H88C74.75 0 64 10.74 64 24v40H24C10.75 64 0 74.74 0 88v48c0 13.25 10.75 24 24 24h40v256c0 17.67 14.33 32 32 32h224v-96H160V24z"]
  111374. };
  111375. var faCross = {
  111376. prefix: 'fas',
  111377. iconName: 'cross',
  111378. icon: [384, 512, [], "f654", "M352 128h-96V32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h96v224c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V256h96c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"]
  111379. };
  111380. var faCrosshairs = {
  111381. prefix: 'fas',
  111382. iconName: 'crosshairs',
  111383. icon: [512, 512, [], "f05b", "M500 224h-30.364C455.724 130.325 381.675 56.276 288 42.364V12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v30.364C130.325 56.276 56.276 130.325 42.364 224H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h30.364C56.276 381.675 130.325 455.724 224 469.636V500c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-30.364C381.675 455.724 455.724 381.675 469.636 288H500c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zM288 404.634V364c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40.634C165.826 392.232 119.783 346.243 107.366 288H148c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40.634C119.768 165.826 165.757 119.783 224 107.366V148c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40.634C346.174 119.768 392.217 165.757 404.634 224H364c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40.634C392.232 346.174 346.243 392.217 288 404.634zM288 256c0 17.673-14.327 32-32 32s-32-14.327-32-32c0-17.673 14.327-32 32-32s32 14.327 32 32z"]
  111384. };
  111385. var faCrow = {
  111386. prefix: 'fas',
  111387. iconName: 'crow',
  111388. icon: [640, 512, [], "f520", "M544 32h-16.36C513.04 12.68 490.09 0 464 0c-44.18 0-80 35.82-80 80v20.98L12.09 393.57A30.216 30.216 0 0 0 0 417.74c0 22.46 23.64 37.07 43.73 27.03L165.27 384h96.49l44.41 120.1c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38L312.94 384H352c1.91 0 3.76-.23 5.66-.29l44.51 120.38c2.27 6.23 9.15 9.44 15.38 7.17l22.55-8.21c6.23-2.27 9.44-9.15 7.17-15.38l-41.24-111.53C485.74 352.8 544 279.26 544 192v-80l96-16c0-35.35-42.98-64-96-64zm-80 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
  111389. };
  111390. var faCrown = {
  111391. prefix: 'fas',
  111392. iconName: 'crown',
  111393. icon: [640, 512, [], "f521", "M528 448H112c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h416c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm64-320c-26.5 0-48 21.5-48 48 0 7.1 1.6 13.7 4.4 19.8L476 239.2c-15.4 9.2-35.3 4-44.2-11.6L350.3 85C361 76.2 368 63 368 48c0-26.5-21.5-48-48-48s-48 21.5-48 48c0 15 7 28.2 17.7 37l-81.5 142.6c-8.9 15.6-28.9 20.8-44.2 11.6l-72.3-43.4c2.7-6 4.4-12.7 4.4-19.8 0-26.5-21.5-48-48-48S0 149.5 0 176s21.5 48 48 48c2.6 0 5.2-.4 7.7-.8L128 416h384l72.3-192.8c2.5.4 5.1.8 7.7.8 26.5 0 48-21.5 48-48s-21.5-48-48-48z"]
  111394. };
  111395. var faCrutch = {
  111396. prefix: 'fas',
  111397. iconName: 'crutch',
  111398. icon: [512, 512, [], "f7f7", "M507.31 185.71l-181-181a16 16 0 0 0-22.62 0L281 27.31a16 16 0 0 0 0 22.63l181 181a16 16 0 0 0 22.63 0l22.62-22.63a16 16 0 0 0 .06-22.6zm-179.54 66.41l-67.89-67.89 55.1-55.1-45.25-45.25-109.67 109.67a96.08 96.08 0 0 0-25.67 46.29L106.65 360.1l-102 102a16 16 0 0 0 0 22.63l22.62 22.62a16 16 0 0 0 22.63 0l102-102 120.25-27.75a95.88 95.88 0 0 0 46.29-25.65l109.68-109.68L382.87 197zm-54.57 54.57a32 32 0 0 1-15.45 8.54l-79.3 18.32 18.3-79.3a32.22 32.22 0 0 1 8.56-15.45l9.31-9.31 67.89 67.89z"]
  111399. };
  111400. var faCube = {
  111401. prefix: 'fas',
  111402. iconName: 'cube',
  111403. icon: [512, 512, [], "f1b2", "M239.1 6.3l-208 78c-18.7 7-31.1 25-31.1 45v225.1c0 18.2 10.3 34.8 26.5 42.9l208 104c13.5 6.8 29.4 6.8 42.9 0l208-104c16.3-8.1 26.5-24.8 26.5-42.9V129.3c0-20-12.4-37.9-31.1-44.9l-208-78C262 2.2 250 2.2 239.1 6.3zM256 68.4l192 72v1.1l-192 78-192-78v-1.1l192-72zm32 356V275.5l160-65v133.9l-160 80z"]
  111404. };
  111405. var faCubes = {
  111406. prefix: 'fas',
  111407. iconName: 'cubes',
  111408. icon: [512, 512, [], "f1b3", "M488.6 250.2L392 214V105.5c0-15-9.3-28.4-23.4-33.7l-100-37.5c-8.1-3.1-17.1-3.1-25.3 0l-100 37.5c-14.1 5.3-23.4 18.7-23.4 33.7V214l-96.6 36.2C9.3 255.5 0 268.9 0 283.9V394c0 13.6 7.7 26.1 19.9 32.2l100 50c10.1 5.1 22.1 5.1 32.2 0l103.9-52 103.9 52c10.1 5.1 22.1 5.1 32.2 0l100-50c12.2-6.1 19.9-18.6 19.9-32.2V283.9c0-15-9.3-28.4-23.4-33.7zM358 214.8l-85 31.9v-68.2l85-37v73.3zM154 104.1l102-38.2 102 38.2v.6l-102 41.4-102-41.4v-.6zm84 291.1l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6zm240 112l-85 42.5v-79.1l85-38.8v75.4zm0-112l-102 41.4-102-41.4v-.6l102-38.2 102 38.2v.6z"]
  111409. };
  111410. var faCut = {
  111411. prefix: 'fas',
  111412. iconName: 'cut',
  111413. icon: [448, 512, [], "f0c4", "M278.06 256L444.48 89.57c4.69-4.69 4.69-12.29 0-16.97-32.8-32.8-85.99-32.8-118.79 0L210.18 188.12l-24.86-24.86c4.31-10.92 6.68-22.81 6.68-35.26 0-53.02-42.98-96-96-96S0 74.98 0 128s42.98 96 96 96c4.54 0 8.99-.32 13.36-.93L142.29 256l-32.93 32.93c-4.37-.61-8.83-.93-13.36-.93-53.02 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96c0-12.45-2.37-24.34-6.68-35.26l24.86-24.86L325.69 439.4c32.8 32.8 85.99 32.8 118.79 0 4.69-4.68 4.69-12.28 0-16.97L278.06 256zM96 160c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32zm0 256c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"]
  111414. };
  111415. var faDatabase = {
  111416. prefix: 'fas',
  111417. iconName: 'database',
  111418. icon: [448, 512, [], "f1c0", "M448 73.143v45.714C448 159.143 347.667 192 224 192S0 159.143 0 118.857V73.143C0 32.857 100.333 0 224 0s224 32.857 224 73.143zM448 176v102.857C448 319.143 347.667 352 224 352S0 319.143 0 278.857V176c48.125 33.143 136.208 48.572 224 48.572S399.874 209.143 448 176zm0 160v102.857C448 479.143 347.667 512 224 512S0 479.143 0 438.857V336c48.125 33.143 136.208 48.572 224 48.572S399.874 369.143 448 336z"]
  111419. };
  111420. var faDeaf = {
  111421. prefix: 'fas',
  111422. iconName: 'deaf',
  111423. icon: [512, 512, [], "f2a4", "M216 260c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-44.112 35.888-80 80-80s80 35.888 80 80c0 15.464-12.536 28-28 28s-28-12.536-28-28c0-13.234-10.767-24-24-24s-24 10.766-24 24zm24-176c-97.047 0-176 78.953-176 176 0 15.464 12.536 28 28 28s28-12.536 28-28c0-66.168 53.832-120 120-120s120 53.832 120 120c0 75.164-71.009 70.311-71.997 143.622L288 404c0 28.673-23.327 52-52 52-15.464 0-28 12.536-28 28s12.536 28 28 28c59.475 0 107.876-48.328 108-107.774.595-34.428 72-48.24 72-144.226 0-97.047-78.953-176-176-176zm268.485-52.201L480.2 3.515c-4.687-4.686-12.284-4.686-16.971 0L376.2 90.544c-4.686 4.686-4.686 12.284 0 16.971l28.285 28.285c4.686 4.686 12.284 4.686 16.97 0l87.03-87.029c4.687-4.688 4.687-12.286 0-16.972zM168.97 314.745c-4.686-4.686-12.284-4.686-16.97 0L3.515 463.23c-4.686 4.686-4.686 12.284 0 16.971L31.8 508.485c4.687 4.686 12.284 4.686 16.971 0L197.256 360c4.686-4.686 4.686-12.284 0-16.971l-28.286-28.284z"]
  111424. };
  111425. var faDemocrat = {
  111426. prefix: 'fas',
  111427. iconName: 'democrat',
  111428. icon: [640, 512, [], "f747", "M637.3 256.9l-19.6-29.4c-28.2-42.3-75.3-67.5-126.1-67.5H256l-81.2-81.2c20.1-20.1 22.6-51.1 7.5-73.9-3.4-5.2-10.8-5.9-15.2-1.5l-41.8 41.8L82.4 2.4c-3.6-3.6-9.6-3-12.4 1.2-12.3 18.6-10.3 44 6.1 60.4 3.3 3.3 7.3 5.3 11.3 7.5-2.2 1.7-4.7 3.1-6.4 5.4L6.4 176.2c-7.3 9.7-8.4 22.7-3 33.5l14.3 28.6c5.4 10.8 16.5 17.7 28.6 17.7h31c8.5 0 16.6-3.4 22.6-9.4L138 212l54 108h352v-77.8c16.2 12.2 18.3 17.6 40.1 50.3 4.9 7.4 14.8 9.3 22.2 4.4l26.6-17.7c7.3-5 9.3-14.9 4.4-22.3zm-341.1-13.6l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L256 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zm112 0l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L368 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zm112 0l-16.5 16.1 3.9 22.7c.7 4.1-3.6 7.2-7.2 5.3L480 276.7l-20.4 10.7c-3.6 1.9-7.9-1.2-7.2-5.3l3.9-22.7-16.5-16.1c-3-2.9-1.3-7.9 2.8-8.5l22.8-3.3 10.2-20.7c1.8-3.7 7.1-3.7 9 0l10.2 20.7 22.8 3.3c4 .6 5.6 5.6 2.6 8.5zM192 496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80h160v80c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16V352H192v144z"]
  111429. };
  111430. var faDesktop = {
  111431. prefix: 'fas',
  111432. iconName: 'desktop',
  111433. icon: [576, 512, [], "f108", "M528 0H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h192l-16 48h-72c-13.3 0-24 10.7-24 24s10.7 24 24 24h272c13.3 0 24-10.7 24-24s-10.7-24-24-24h-72l-16-48h192c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zm-16 352H64V64h448v288z"]
  111434. };
  111435. var faDharmachakra = {
  111436. prefix: 'fas',
  111437. iconName: 'dharmachakra',
  111438. icon: [512, 512, [], "f655", "M495 225.06l-17.22 1.08c-5.27-39.49-20.79-75.64-43.86-105.84l12.95-11.43c6.92-6.11 7.25-16.79.73-23.31L426.44 64.4c-6.53-6.53-17.21-6.19-23.31.73L391.7 78.07c-30.2-23.06-66.35-38.58-105.83-43.86L286.94 17c.58-9.21-6.74-17-15.97-17h-29.94c-9.23 0-16.54 7.79-15.97 17l1.08 17.22c-39.49 5.27-75.64 20.79-105.83 43.86l-11.43-12.95c-6.11-6.92-16.79-7.25-23.31-.73L64.4 85.56c-6.53 6.53-6.19 17.21.73 23.31l12.95 11.43c-23.06 30.2-38.58 66.35-43.86 105.84L17 225.06c-9.21-.58-17 6.74-17 15.97v29.94c0 9.23 7.79 16.54 17 15.97l17.22-1.08c5.27 39.49 20.79 75.64 43.86 105.83l-12.95 11.43c-6.92 6.11-7.25 16.79-.73 23.31l21.17 21.17c6.53 6.53 17.21 6.19 23.31-.73l11.43-12.95c30.2 23.06 66.35 38.58 105.84 43.86L225.06 495c-.58 9.21 6.74 17 15.97 17h29.94c9.23 0 16.54-7.79 15.97-17l-1.08-17.22c39.49-5.27 75.64-20.79 105.84-43.86l11.43 12.95c6.11 6.92 16.79 7.25 23.31.73l21.17-21.17c6.53-6.53 6.19-17.21-.73-23.31l-12.95-11.43c23.06-30.2 38.58-66.35 43.86-105.83l17.22 1.08c9.21.58 17-6.74 17-15.97v-29.94c-.01-9.23-7.8-16.54-17.01-15.97zM281.84 98.61c24.81 4.07 47.63 13.66 67.23 27.78l-42.62 48.29c-8.73-5.44-18.32-9.54-28.62-11.95l4.01-64.12zm-51.68 0l4.01 64.12c-10.29 2.41-19.89 6.52-28.62 11.95l-42.62-48.29c19.6-14.12 42.42-23.71 67.23-27.78zm-103.77 64.33l48.3 42.61c-5.44 8.73-9.54 18.33-11.96 28.62l-64.12-4.01c4.07-24.81 13.66-47.62 27.78-67.22zm-27.78 118.9l64.12-4.01c2.41 10.29 6.52 19.89 11.95 28.62l-48.29 42.62c-14.12-19.6-23.71-42.42-27.78-67.23zm131.55 131.55c-24.81-4.07-47.63-13.66-67.23-27.78l42.61-48.3c8.73 5.44 18.33 9.54 28.62 11.96l-4 64.12zM256 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm25.84 125.39l-4.01-64.12c10.29-2.41 19.89-6.52 28.62-11.96l42.61 48.3c-19.6 14.12-42.41 23.71-67.22 27.78zm103.77-64.33l-48.29-42.62c5.44-8.73 9.54-18.32 11.95-28.62l64.12 4.01c-4.07 24.82-13.66 47.64-27.78 67.23zm-36.34-114.89c-2.41-10.29-6.52-19.89-11.96-28.62l48.3-42.61c14.12 19.6 23.71 42.42 27.78 67.23l-64.12 4z"]
  111439. };
  111440. var faDiagnoses = {
  111441. prefix: 'fas',
  111442. iconName: 'diagnoses',
  111443. icon: [640, 512, [], "f470", "M496 256c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm-176-80c48.5 0 88-39.5 88-88S368.5 0 320 0s-88 39.5-88 88 39.5 88 88 88zM59.8 364c10.2 15.3 29.3 17.8 42.9 9.8 16.2-9.6 56.2-31.7 105.3-48.6V416h224v-90.7c49.1 16.8 89.1 39 105.3 48.6 13.6 8 32.7 5.3 42.9-9.8l17.8-26.7c8.8-13.2 7.6-34.6-10-45.1-11.9-7.1-29.7-17-51.1-27.4-28.1 46.1-99.4 17.8-87.7-35.1C409.3 217.2 365.1 208 320 208c-57 0-112.9 14.5-160 32.2-.2 40.2-47.6 63.3-79.2 36-11.2 6-21.3 11.6-28.7 16-17.6 10.5-18.8 31.8-10 45.1L59.8 364zM368 344c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-96-96c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm-160 8c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zm512 192H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
  111444. };
  111445. var faDice = {
  111446. prefix: 'fas',
  111447. iconName: 'dice',
  111448. icon: [640, 512, [], "f522", "M592 192H473.26c12.69 29.59 7.12 65.2-17 89.32L320 417.58V464c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48V240c0-26.51-21.49-48-48-48zM480 376c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm-46.37-186.7L258.7 14.37c-19.16-19.16-50.23-19.16-69.39 0L14.37 189.3c-19.16 19.16-19.16 50.23 0 69.39L189.3 433.63c19.16 19.16 50.23 19.16 69.39 0L433.63 258.7c19.16-19.17 19.16-50.24 0-69.4zM96 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm0-128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm128 128c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
  111449. };
  111450. var faDiceD20 = {
  111451. prefix: 'fas',
  111452. iconName: 'dice-d20',
  111453. icon: [480, 512, [], "f6cf", "M106.75 215.06L1.2 370.95c-3.08 5 .1 11.5 5.93 12.14l208.26 22.07-108.64-190.1zM7.41 315.43L82.7 193.08 6.06 147.1c-2.67-1.6-6.06.32-6.06 3.43v162.81c0 4.03 5.29 5.53 7.41 2.09zM18.25 423.6l194.4 87.66c5.3 2.45 11.35-1.43 11.35-7.26v-65.67l-203.55-22.3c-4.45-.5-6.23 5.59-2.2 7.57zm81.22-257.78L179.4 22.88c4.34-7.06-3.59-15.25-10.78-11.14L17.81 110.35c-2.47 1.62-2.39 5.26.13 6.78l81.53 48.69zM240 176h109.21L253.63 7.62C250.5 2.54 245.25 0 240 0s-10.5 2.54-13.63 7.62L130.79 176H240zm233.94-28.9l-76.64 45.99 75.29 122.35c2.11 3.44 7.41 1.94 7.41-2.1V150.53c0-3.11-3.39-5.03-6.06-3.43zm-93.41 18.72l81.53-48.7c2.53-1.52 2.6-5.16.13-6.78l-150.81-98.6c-7.19-4.11-15.12 4.08-10.78 11.14l79.93 142.94zm79.02 250.21L256 438.32v65.67c0 5.84 6.05 9.71 11.35 7.26l194.4-87.66c4.03-1.97 2.25-8.06-2.2-7.56zm-86.3-200.97l-108.63 190.1 208.26-22.07c5.83-.65 9.01-7.14 5.93-12.14L373.25 215.06zM240 208H139.57L240 383.75 340.43 208H240z"]
  111454. };
  111455. var faDiceD6 = {
  111456. prefix: 'fas',
  111457. iconName: 'dice-d6',
  111458. icon: [448, 512, [], "f6d1", "M422.19 109.95L256.21 9.07c-19.91-12.1-44.52-12.1-64.43 0L25.81 109.95c-5.32 3.23-5.29 11.27.06 14.46L224 242.55l198.14-118.14c5.35-3.19 5.38-11.22.05-14.46zm13.84 44.63L240 271.46v223.82c0 12.88 13.39 20.91 24.05 14.43l152.16-92.48c19.68-11.96 31.79-33.94 31.79-57.7v-197.7c0-6.41-6.64-10.43-11.97-7.25zM0 161.83v197.7c0 23.77 12.11 45.74 31.79 57.7l152.16 92.47c10.67 6.48 24.05-1.54 24.05-14.43V271.46L11.97 154.58C6.64 151.4 0 155.42 0 161.83z"]
  111459. };
  111460. var faDiceFive = {
  111461. prefix: 'fas',
  111462. iconName: 'dice-five',
  111463. icon: [448, 512, [], "f523", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  111464. };
  111465. var faDiceFour = {
  111466. prefix: 'fas',
  111467. iconName: 'dice-four',
  111468. icon: [448, 512, [], "f524", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  111469. };
  111470. var faDiceOne = {
  111471. prefix: 'fas',
  111472. iconName: 'dice-one',
  111473. icon: [448, 512, [], "f525", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM224 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  111474. };
  111475. var faDiceSix = {
  111476. prefix: 'fas',
  111477. iconName: 'dice-six',
  111478. icon: [448, 512, [], "f526", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  111479. };
  111480. var faDiceThree = {
  111481. prefix: 'fas',
  111482. iconName: 'dice-three',
  111483. icon: [448, 512, [], "f527", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm96 96c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  111484. };
  111485. var faDiceTwo = {
  111486. prefix: 'fas',
  111487. iconName: 'dice-two',
  111488. icon: [448, 512, [], "f528", "M384 32H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h320c35.35 0 64-28.65 64-64V96c0-35.35-28.65-64-64-64zM128 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm192 192c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  111489. };
  111490. var faDigitalTachograph = {
  111491. prefix: 'fas',
  111492. iconName: 'digital-tachograph',
  111493. icon: [640, 512, [], "f566", "M608 96H32c-17.67 0-32 14.33-32 32v256c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128c0-17.67-14.33-32-32-32zM304 352c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8zM72 288v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H80c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm64 0v-16c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8zm40-64c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-48c0-8.84 7.16-16 16-16h208c8.84 0 16 7.16 16 16v48zm272 128c0 4.42-3.58 8-8 8H344c-4.42 0-8-3.58-8-8v-8c0-4.42 3.58-8 8-8h224c4.42 0 8 3.58 8 8v8z"]
  111494. };
  111495. var faDirections = {
  111496. prefix: 'fas',
  111497. iconName: 'directions',
  111498. icon: [512, 512, [], "f5eb", "M502.61 233.32L278.68 9.39c-12.52-12.52-32.83-12.52-45.36 0L9.39 233.32c-12.52 12.53-12.52 32.83 0 45.36l223.93 223.93c12.52 12.53 32.83 12.53 45.36 0l223.93-223.93c12.52-12.53 12.52-32.83 0-45.36zm-100.98 12.56l-84.21 77.73c-5.12 4.73-13.43 1.1-13.43-5.88V264h-96v64c0 4.42-3.58 8-8 8h-32c-4.42 0-8-3.58-8-8v-80c0-17.67 14.33-32 32-32h112v-53.73c0-6.97 8.3-10.61 13.43-5.88l84.21 77.73c3.43 3.17 3.43 8.59 0 11.76z"]
  111499. };
  111500. var faDisease = {
  111501. prefix: 'fas',
  111502. iconName: 'disease',
  111503. icon: [512, 512, [], "f7fa", "M472.29 195.9l-67.06-23c-19.28-6.6-33.54-20.92-38.14-38.31l-16-60.45c-11.58-43.77-76.57-57.13-110-22.62L195 99.24c-13.26 13.71-33.54 20.93-54.2 19.31l-71.9-5.62c-52-4.07-86.93 44.89-59 82.84l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24l-28.43 57C4 396.67 47.46 440.29 98.11 429.23l70-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101 7.57 104.45-37.22l4.7-61.86c1.35-17.8 12.8-33.87 30.63-43l62-31.74c44.84-22.96 39.55-80.17-8.99-96.79zM160 256a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm128 96a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm16-128a16 16 0 1 1 16-16 16 16 0 0 1-16 16z"]
  111504. };
  111505. var faDivide = {
  111506. prefix: 'fas',
  111507. iconName: 'divide',
  111508. icon: [448, 512, [], "f529", "M224 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm0-192c35.35 0 64-28.65 64-64s-28.65-64-64-64-64 28.65-64 64 28.65 64 64 64zm192 48H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]
  111509. };
  111510. var faDizzy = {
  111511. prefix: 'fas',
  111512. iconName: 'dizzy',
  111513. icon: [496, 512, [], "f567", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-96 206.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L174.6 192l28.7 28.7c15.2 15.2-7.9 37.4-22.6 22.6L152 214.6zM248 416c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm147.3-195.3c15.2 15.2-7.9 37.4-22.6 22.6L344 214.6l-28.7 28.7c-14.8 14.8-37.8-7.5-22.6-22.6l28.7-28.7-28.7-28.7c-15-15 7.7-37.6 22.6-22.6l28.7 28.7 28.7-28.7c15-15 37.6 7.7 22.6 22.6L366.6 192l28.7 28.7z"]
  111514. };
  111515. var faDna = {
  111516. prefix: 'fas',
  111517. iconName: 'dna',
  111518. icon: [448, 512, [], "f471", "M.1 494.1c-1.1 9.5 6.3 17.8 15.9 17.8l32.3.1c8.1 0 14.9-5.9 16-13.9.7-4.9 1.8-11.1 3.4-18.1H380c1.6 6.9 2.9 13.2 3.5 18.1 1.1 8 7.9 14 16 13.9l32.3-.1c9.6 0 17.1-8.3 15.9-17.8-4.6-37.9-25.6-129-118.9-207.7-17.6 12.4-37.1 24.2-58.5 35.4 6.2 4.6 11.4 9.4 17 14.2H159.7c21.3-18.1 47-35.6 78.7-51.4C410.5 199.1 442.1 65.8 447.9 17.9 449 8.4 441.6.1 432 .1L399.6 0c-8.1 0-14.9 5.9-16 13.9-.7 4.9-1.8 11.1-3.4 18.1H67.8c-1.6-7-2.7-13.1-3.4-18.1-1.1-8-7.9-14-16-13.9L16.1.1C6.5.1-1 8.4.1 17.9 5.3 60.8 31.4 171.8 160 256 31.5 340.2 5.3 451.2.1 494.1zM224 219.6c-25.1-13.7-46.4-28.4-64.3-43.6h128.5c-17.8 15.2-39.1 30-64.2 43.6zM355.1 96c-5.8 10.4-12.8 21.1-21 32H114c-8.3-10.9-15.3-21.6-21-32h262.1zM92.9 416c5.8-10.4 12.8-21.1 21-32h219.4c8.3 10.9 15.4 21.6 21.2 32H92.9z"]
  111519. };
  111520. var faDog = {
  111521. prefix: 'fas',
  111522. iconName: 'dog',
  111523. icon: [576, 512, [], "f6d3", "M298.06,224,448,277.55V496a16,16,0,0,1-16,16H368a16,16,0,0,1-16-16V384H192V496a16,16,0,0,1-16,16H112a16,16,0,0,1-16-16V282.09C58.84,268.84,32,233.66,32,192a32,32,0,0,1,64,0,32.06,32.06,0,0,0,32,32ZM544,112v32a64,64,0,0,1-64,64H448v35.58L320,197.87V48c0-14.25,17.22-21.39,27.31-11.31L374.59,64h53.63c10.91,0,23.75,7.92,28.62,17.69L464,96h64A16,16,0,0,1,544,112Zm-112,0a16,16,0,1,0-16,16A16,16,0,0,0,432,112Z"]
  111524. };
  111525. var faDollarSign = {
  111526. prefix: 'fas',
  111527. iconName: 'dollar-sign',
  111528. icon: [288, 512, [], "f155", "M209.2 233.4l-108-31.6C88.7 198.2 80 186.5 80 173.5c0-16.3 13.2-29.5 29.5-29.5h66.3c12.2 0 24.2 3.7 34.2 10.5 6.1 4.1 14.3 3.1 19.5-2l34.8-34c7.1-6.9 6.1-18.4-1.8-24.5C238 74.8 207.4 64.1 176 64V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v48h-2.5C45.8 64-5.4 118.7.5 183.6c4.2 46.1 39.4 83.6 83.8 96.6l102.5 30c12.5 3.7 21.2 15.3 21.2 28.3 0 16.3-13.2 29.5-29.5 29.5h-66.3C100 368 88 364.3 78 357.5c-6.1-4.1-14.3-3.1-19.5 2l-34.8 34c-7.1 6.9-6.1 18.4 1.8 24.5 24.5 19.2 55.1 29.9 86.5 30v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48.2c46.6-.9 90.3-28.6 105.7-72.7 21.5-61.6-14.6-124.8-72.5-141.7z"]
  111529. };
  111530. var faDolly = {
  111531. prefix: 'fas',
  111532. iconName: 'dolly',
  111533. icon: [576, 512, [], "f472", "M294.2 277.7c18 5 34.7 13.4 49.5 24.7l161.5-53.8c8.4-2.8 12.9-11.9 10.1-20.2L454.9 47.2c-2.8-8.4-11.9-12.9-20.2-10.1l-61.1 20.4 33.1 99.4L346 177l-33.1-99.4-61.6 20.5c-8.4 2.8-12.9 11.9-10.1 20.2l53 159.4zm281 48.7L565 296c-2.8-8.4-11.9-12.9-20.2-10.1l-213.5 71.2c-17.2-22-43.6-36.4-73.5-37L158.4 21.9C154 8.8 141.8 0 128 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h88.9l92.2 276.7c-26.1 20.4-41.7 53.6-36 90.5 6.1 39.4 37.9 72.3 77.3 79.2 60.2 10.7 112.3-34.8 113.4-92.6l213.3-71.2c8.3-2.8 12.9-11.8 10.1-20.2zM256 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"]
  111534. };
  111535. var faDollyFlatbed = {
  111536. prefix: 'fas',
  111537. iconName: 'dolly-flatbed',
  111538. icon: [640, 512, [], "f474", "M208 320h384c8.8 0 16-7.2 16-16V48c0-8.8-7.2-16-16-16H448v128l-48-32-48 32V32H208c-8.8 0-16 7.2-16 16v256c0 8.8 7.2 16 16 16zm416 64H128V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h82.9c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H451c-1.8 5-2.9 10.4-2.9 16 0 26.5 21.5 48 48 48s48-21.5 48-48c0-5.6-1.2-11-2.9-16H624c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
  111539. };
  111540. var faDonate = {
  111541. prefix: 'fas',
  111542. iconName: 'donate',
  111543. icon: [512, 512, [], "f4b9", "M256 416c114.9 0 208-93.1 208-208S370.9 0 256 0 48 93.1 48 208s93.1 208 208 208zM233.8 97.4V80.6c0-9.2 7.4-16.6 16.6-16.6h11.1c9.2 0 16.6 7.4 16.6 16.6v17c15.5.8 30.5 6.1 43 15.4 5.6 4.1 6.2 12.3 1.2 17.1L306 145.6c-3.8 3.7-9.5 3.8-14 1-5.4-3.4-11.4-5.1-17.8-5.1h-38.9c-9 0-16.3 8.2-16.3 18.3 0 8.2 5 15.5 12.1 17.6l62.3 18.7c25.7 7.7 43.7 32.4 43.7 60.1 0 34-26.4 61.5-59.1 62.4v16.8c0 9.2-7.4 16.6-16.6 16.6h-11.1c-9.2 0-16.6-7.4-16.6-16.6v-17c-15.5-.8-30.5-6.1-43-15.4-5.6-4.1-6.2-12.3-1.2-17.1l16.3-15.5c3.8-3.7 9.5-3.8 14-1 5.4 3.4 11.4 5.1 17.8 5.1h38.9c9 0 16.3-8.2 16.3-18.3 0-8.2-5-15.5-12.1-17.6l-62.3-18.7c-25.7-7.7-43.7-32.4-43.7-60.1.1-34 26.4-61.5 59.1-62.4zM480 352h-32.5c-19.6 26-44.6 47.7-73 64h63.8c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8h63.8c-28.4-16.3-53.3-38-73-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32z"]
  111544. };
  111545. var faDoorClosed = {
  111546. prefix: 'fas',
  111547. iconName: 'door-closed',
  111548. icon: [640, 512, [], "f52a", "M624 448H512V50.8C512 22.78 490.47 0 464 0H175.99c-26.47 0-48 22.78-48 50.8V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM415.99 288c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32c.01 17.67-14.32 32-32 32z"]
  111549. };
  111550. var faDoorOpen = {
  111551. prefix: 'fas',
  111552. iconName: 'door-open',
  111553. icon: [640, 512, [], "f52b", "M624 448h-80V113.45C544 86.19 522.47 64 496 64H384v64h96v384h144c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM312.24 1.01l-192 49.74C105.99 54.44 96 67.7 96 82.92V448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h336V33.18c0-21.58-19.56-37.41-39.76-32.17zM264 288c-13.25 0-24-14.33-24-32s10.75-32 24-32 24 14.33 24 32-10.75 32-24 32z"]
  111554. };
  111555. var faDotCircle = {
  111556. prefix: 'fas',
  111557. iconName: 'dot-circle',
  111558. icon: [512, 512, [], "f192", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm80 248c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80z"]
  111559. };
  111560. var faDove = {
  111561. prefix: 'fas',
  111562. iconName: 'dove',
  111563. icon: [512, 512, [], "f4ba", "M288 167.2v-28.1c-28.2-36.3-47.1-79.3-54.1-125.2-2.1-13.5-19-18.8-27.8-8.3-21.1 24.9-37.7 54.1-48.9 86.5 34.2 38.3 80 64.6 130.8 75.1zM400 64c-44.2 0-80 35.9-80 80.1v59.4C215.6 197.3 127 133 87 41.8c-5.5-12.5-23.2-13.2-29-.9C41.4 76 32 115.2 32 156.6c0 70.8 34.1 136.9 85.1 185.9 13.2 12.7 26.1 23.2 38.9 32.8l-143.9 36C1.4 414-3.4 426.4 2.6 435.7 20 462.6 63 508.2 155.8 512c8 .3 16-2.6 22.1-7.9l65.2-56.1H320c88.4 0 160-71.5 160-159.9V128l32-64H400zm0 96.1c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
  111564. };
  111565. var faDownload = {
  111566. prefix: 'fas',
  111567. iconName: 'download',
  111568. icon: [512, 512, [], "f019", "M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]
  111569. };
  111570. var faDraftingCompass = {
  111571. prefix: 'fas',
  111572. iconName: 'drafting-compass',
  111573. icon: [512, 512, [], "f568", "M457.01 344.42c-25.05 20.33-52.63 37.18-82.54 49.05l54.38 94.19 53.95 23.04c9.81 4.19 20.89-2.21 22.17-12.8l7.02-58.25-54.98-95.23zm42.49-94.56c4.86-7.67 1.89-17.99-6.05-22.39l-28.07-15.57c-7.48-4.15-16.61-1.46-21.26 5.72C403.01 281.15 332.25 320 256 320c-23.93 0-47.23-4.25-69.41-11.53l67.36-116.68c.7.02 1.34.21 2.04.21s1.35-.19 2.04-.21l51.09 88.5c31.23-8.96 59.56-25.75 82.61-48.92l-51.79-89.71C347.39 128.03 352 112.63 352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96c0 16.63 4.61 32.03 12.05 45.66l-68.3 118.31c-12.55-11.61-23.96-24.59-33.68-39-4.79-7.1-13.97-9.62-21.38-5.33l-27.75 16.07c-7.85 4.54-10.63 14.9-5.64 22.47 15.57 23.64 34.69 44.21 55.98 62.02L0 439.66l7.02 58.25c1.28 10.59 12.36 16.99 22.17 12.8l53.95-23.04 70.8-122.63C186.13 377.28 220.62 384 256 384c99.05 0 190.88-51.01 243.5-134.14zM256 64c17.67 0 32 14.33 32 32s-14.33 32-32 32-32-14.33-32-32 14.33-32 32-32z"]
  111574. };
  111575. var faDragon = {
  111576. prefix: 'fas',
  111577. iconName: 'dragon',
  111578. icon: [640, 512, [], "f6d5", "M18.32 255.78L192 223.96l-91.28 68.69c-10.08 10.08-2.94 27.31 11.31 27.31h222.7c-9.44-26.4-14.73-54.47-14.73-83.38v-42.27l-119.73-87.6c-23.82-15.88-55.29-14.01-77.06 4.59L5.81 227.64c-12.38 10.33-3.45 30.42 12.51 28.14zm556.87 34.1l-100.66-50.31A47.992 47.992 0 0 1 448 196.65v-36.69h64l28.09 22.63c6 6 14.14 9.37 22.63 9.37h30.97a32 32 0 0 0 28.62-17.69l14.31-28.62a32.005 32.005 0 0 0-3.02-33.51l-74.53-99.38C553.02 4.7 543.54 0 533.47 0H296.02c-7.13 0-10.7 8.57-5.66 13.61L352 63.96 292.42 88.8c-5.9 2.95-5.9 11.36 0 14.31L352 127.96v108.62c0 72.08 36.03 139.39 96 179.38-195.59 6.81-344.56 41.01-434.1 60.91C5.78 478.67 0 485.88 0 494.2 0 504 7.95 512 17.76 512h499.08c63.29.01 119.61-47.56 122.99-110.76 2.52-47.28-22.73-90.4-64.64-111.36zM489.18 66.25l45.65 11.41c-2.75 10.91-12.47 18.89-24.13 18.26-12.96-.71-25.85-12.53-21.52-29.67z"]
  111579. };
  111580. var faDrawPolygon = {
  111581. prefix: 'fas',
  111582. iconName: 'draw-polygon',
  111583. icon: [448, 512, [], "f5ee", "M384 352c-.35 0-.67.1-1.02.1l-39.2-65.32c5.07-9.17 8.22-19.56 8.22-30.78s-3.14-21.61-8.22-30.78l39.2-65.32c.35.01.67.1 1.02.1 35.35 0 64-28.65 64-64s-28.65-64-64-64c-23.63 0-44.04 12.95-55.12 32H119.12C108.04 44.95 87.63 32 64 32 28.65 32 0 60.65 0 96c0 23.63 12.95 44.04 32 55.12v209.75C12.95 371.96 0 392.37 0 416c0 35.35 28.65 64 64 64 23.63 0 44.04-12.95 55.12-32h209.75c11.09 19.05 31.49 32 55.12 32 35.35 0 64-28.65 64-64 .01-35.35-28.64-64-63.99-64zm-288 8.88V151.12A63.825 63.825 0 0 0 119.12 128h208.36l-38.46 64.1c-.35-.01-.67-.1-1.02-.1-35.35 0-64 28.65-64 64s28.65 64 64 64c.35 0 .67-.1 1.02-.1l38.46 64.1H119.12A63.748 63.748 0 0 0 96 360.88zM272 256c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zM400 96c0 8.82-7.18 16-16 16s-16-7.18-16-16 7.18-16 16-16 16 7.18 16 16zM64 80c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zM48 416c0-8.82 7.18-16 16-16s16 7.18 16 16-7.18 16-16 16-16-7.18-16-16zm336 16c-8.82 0-16-7.18-16-16s7.18-16 16-16 16 7.18 16 16-7.18 16-16 16z"]
  111584. };
  111585. var faDrum = {
  111586. prefix: 'fas',
  111587. iconName: 'drum',
  111588. icon: [512, 512, [], "f569", "M431.34 122.05l73.53-47.42a16 16 0 0 0 4.44-22.19l-8.87-13.31a16 16 0 0 0-22.19-4.44l-110.06 71C318.43 96.91 271.22 96 256 96 219.55 96 0 100.55 0 208.15v160.23c0 30.27 27.5 57.68 72 77.86v-101.9a24 24 0 1 1 48 0v118.93c33.05 9.11 71.07 15.06 112 16.73V376.39a24 24 0 1 1 48 0V480c40.93-1.67 78.95-7.62 112-16.73V344.34a24 24 0 1 1 48 0v101.9c44.5-20.18 72-47.59 72-77.86V208.15c0-43.32-35.76-69.76-80.66-86.1zM256 272.24c-114.88 0-208-28.69-208-64.09s93.12-64.08 208-64.08c17.15 0 33.73.71 49.68 1.91l-72.81 47a16 16 0 0 0-4.43 22.19l8.87 13.31a16 16 0 0 0 22.19 4.44l118.64-76.52C430.09 168 464 186.84 464 208.15c0 35.4-93.13 64.09-208 64.09z"]
  111589. };
  111590. var faDrumSteelpan = {
  111591. prefix: 'fas',
  111592. iconName: 'drum-steelpan',
  111593. icon: [576, 512, [], "f56a", "M288 32C128.94 32 0 89.31 0 160v192c0 70.69 128.94 128 288 128s288-57.31 288-128V160c0-70.69-128.94-128-288-128zm-82.99 158.36c-4.45 16.61-14.54 30.57-28.31 40.48C100.23 217.46 48 190.78 48 160c0-30.16 50.11-56.39 124.04-70.03l25.6 44.34c9.86 17.09 12.48 36.99 7.37 56.05zM288 240c-21.08 0-41.41-1-60.89-2.7 8.06-26.13 32.15-45.3 60.89-45.3s52.83 19.17 60.89 45.3C329.41 239 309.08 240 288 240zm64-144c0 35.29-28.71 64-64 64s-64-28.71-64-64V82.96c20.4-1.88 41.8-2.96 64-2.96s43.6 1.08 64 2.96V96zm46.93 134.9c-13.81-9.91-23.94-23.9-28.4-40.54-5.11-19.06-2.49-38.96 7.38-56.04l25.65-44.42C477.72 103.5 528 129.79 528 160c0 30.83-52.4 57.54-129.07 70.9z"]
  111594. };
  111595. var faDrumstickBite = {
  111596. prefix: 'fas',
  111597. iconName: 'drumstick-bite',
  111598. icon: [512, 512, [], "f6d7", "M462.8 49.57a169.44 169.44 0 0 0-239.5 0C187.82 85 160.13 128 160.13 192v85.83l-40.62 40.59c-9.7 9.69-24 11.07-36.78 6a60.33 60.33 0 0 0-65 98.72C33 438.39 54.24 442.7 73.85 438.21c-4.5 19.6-.18 40.83 15.1 56.1a60.35 60.35 0 0 0 98.8-65c-5.09-12.73-3.72-27 6-36.75L234.36 352h85.89a187.87 187.87 0 0 0 61.89-10c-39.64-43.89-39.83-110.23 1.05-151.07 34.38-34.36 86.76-39.46 128.74-16.8 1.3-44.96-14.81-90.28-49.13-124.56z"]
  111599. };
  111600. var faDumbbell = {
  111601. prefix: 'fas',
  111602. iconName: 'dumbbell',
  111603. icon: [640, 512, [], "f44b", "M104 96H56c-13.3 0-24 10.7-24 24v104H8c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h24v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm528 128h-24V120c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v272c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h24c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM456 32h-48c-13.3 0-24 10.7-24 24v168H256V56c0-13.3-10.7-24-24-24h-48c-13.3 0-24 10.7-24 24v400c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V288h128v168c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24z"]
  111604. };
  111605. var faDumpster = {
  111606. prefix: 'fas',
  111607. iconName: 'dumpster',
  111608. icon: [576, 512, [], "f793", "M560 160c10.4 0 18-9.8 15.5-19.9l-24-96C549.7 37 543.3 32 536 32h-98.9l25.6 128H560zM272 32H171.5l-25.6 128H272V32zm132.5 0H304v128h126.1L404.5 32zM16 160h97.3l25.6-128H40c-7.3 0-13.7 5-15.5 12.1l-24 96C-2 150.2 5.6 160 16 160zm544 64h-20l4-32H32l4 32H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h28l20 160v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h320v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16l20-160h28c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
  111609. };
  111610. var faDumpsterFire = {
  111611. prefix: 'fas',
  111612. iconName: 'dumpster-fire',
  111613. icon: [640, 512, [], "f794", "M418.7 104.1l.2-.2-14.4-72H304v128h60.8c16.2-19.3 34.2-38.2 53.9-55.8zM272 32H171.5l-25.6 128H272V32zm189.3 72.1c18.2 16.3 35.5 33.7 51.1 51.5 5.7-5.6 11.4-11.1 17.3-16.3l21.3-19 21.3 19c1.1.9 2.1 2.1 3.1 3.1-.1-.8.2-1.5 0-2.3l-24-96C549.7 37 543.3 32 536 32h-98.9l12.3 61.5 11.9 10.6zM16 160h97.3l25.6-128H40c-7.3 0-13.7 5-15.5 12.1l-24 96C-2 150.2 5.6 160 16 160zm324.6 32H32l4 32H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h28l20 160v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208.8c-30.2-33.7-48.8-77.9-48.8-126.4 0-35.9 19.9-82.9 52.6-129.6zm210.5-28.8c-14.9 13.3-28.3 27.2-40.2 41.2-19.5-25.8-43.6-52-71-76.4-70.2 62.7-120 144.3-120 193.6 0 87.5 71.6 158.4 160 158.4s160-70.9 160-158.4c.1-36.6-37-112.2-88.8-158.4zm-18.6 229.4c-14.7 10.7-32.9 17-52.5 17-49 0-88.9-33.5-88.9-88 0-27.1 16.5-51 49.4-91.9 4.7 5.6 67.1 88.1 67.1 88.1l39.8-47c2.8 4.8 5.4 9.5 7.7 14 18.6 36.7 10.8 83.6-22.6 107.8z"]
  111614. };
  111615. var faDungeon = {
  111616. prefix: 'fas',
  111617. iconName: 'dungeon',
  111618. icon: [512, 512, [], "f6d9", "M128.73 195.32l-82.81-51.76c-8.04-5.02-18.99-2.17-22.93 6.45A254.19 254.19 0 0 0 .54 239.28C-.05 248.37 7.59 256 16.69 256h97.13c7.96 0 14.08-6.25 15.01-14.16 1.09-9.33 3.24-18.33 6.24-26.94 2.56-7.34.25-15.46-6.34-19.58zM319.03 8C298.86 2.82 277.77 0 256 0s-42.86 2.82-63.03 8c-9.17 2.35-13.91 12.6-10.39 21.39l37.47 104.03A16.003 16.003 0 0 0 235.1 144h41.8c6.75 0 12.77-4.23 15.05-10.58l37.47-104.03c3.52-8.79-1.22-19.03-10.39-21.39zM112 288H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm77.31-283.67l-36.32-90.8c-3.53-8.83-14.13-12.99-22.42-8.31a257.308 257.308 0 0 0-71.61 59.89c-6.06 7.32-3.85 18.48 4.22 23.52l82.93 51.83c6.51 4.07 14.66 2.62 20.11-2.79 5.18-5.15 10.79-9.85 16.79-14.05 6.28-4.41 9.15-12.17 6.3-19.29zM398.18 256h97.13c9.1 0 16.74-7.63 16.15-16.72a254.135 254.135 0 0 0-22.45-89.27c-3.94-8.62-14.89-11.47-22.93-6.45l-82.81 51.76c-6.59 4.12-8.9 12.24-6.34 19.58 3.01 8.61 5.15 17.62 6.24 26.94.93 7.91 7.05 14.16 15.01 14.16zm54.85-162.89a257.308 257.308 0 0 0-71.61-59.89c-8.28-4.68-18.88-.52-22.42 8.31l-36.32 90.8c-2.85 7.12.02 14.88 6.3 19.28 6 4.2 11.61 8.9 16.79 14.05 5.44 5.41 13.6 6.86 20.11 2.79l82.93-51.83c8.07-5.03 10.29-16.19 4.22-23.51zM496 288h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm0 128h-96c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h96c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zM240 177.62V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V177.62c-5.23-.89-10.52-1.62-16-1.62s-10.77.73-16 1.62zm-64 41.51V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V189.36c-12.78 7.45-23.84 17.47-32 29.77zm128-29.77V472c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8V219.13c-8.16-12.3-19.22-22.32-32-29.77z"]
  111619. };
  111620. var faEdit = {
  111621. prefix: 'fas',
  111622. iconName: 'edit',
  111623. icon: [576, 512, [], "f044", "M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"]
  111624. };
  111625. var faEgg = {
  111626. prefix: 'fas',
  111627. iconName: 'egg',
  111628. icon: [384, 512, [], "f7fb", "M192 0C86 0 0 214 0 320s86 192 192 192 192-86 192-192S298 0 192 0z"]
  111629. };
  111630. var faEject = {
  111631. prefix: 'fas',
  111632. iconName: 'eject',
  111633. icon: [448, 512, [], "f052", "M448 384v64c0 17.673-14.327 32-32 32H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h384c17.673 0 32 14.327 32 32zM48.053 320h351.886c41.651 0 63.581-49.674 35.383-80.435L259.383 47.558c-19.014-20.743-51.751-20.744-70.767 0L12.67 239.565C-15.475 270.268 6.324 320 48.053 320z"]
  111634. };
  111635. var faEllipsisH = {
  111636. prefix: 'fas',
  111637. iconName: 'ellipsis-h',
  111638. icon: [512, 512, [], "f141", "M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z"]
  111639. };
  111640. var faEllipsisV = {
  111641. prefix: 'fas',
  111642. iconName: 'ellipsis-v',
  111643. icon: [192, 512, [], "f142", "M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"]
  111644. };
  111645. var faEnvelope = {
  111646. prefix: 'fas',
  111647. iconName: 'envelope',
  111648. icon: [512, 512, [], "f0e0", "M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"]
  111649. };
  111650. var faEnvelopeOpen = {
  111651. prefix: 'fas',
  111652. iconName: 'envelope-open',
  111653. icon: [512, 512, [], "f2b6", "M512 464c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V200.724a48 48 0 0 1 18.387-37.776c24.913-19.529 45.501-35.365 164.2-121.511C199.412 29.17 232.797-.347 256 .003c23.198-.354 56.596 29.172 73.413 41.433 118.687 86.137 139.303 101.995 164.2 121.512A48 48 0 0 1 512 200.724V464zm-65.666-196.605c-2.563-3.728-7.7-4.595-11.339-1.907-22.845 16.873-55.462 40.705-105.582 77.079-16.825 12.266-50.21 41.781-73.413 41.43-23.211.344-56.559-29.143-73.413-41.43-50.114-36.37-82.734-60.204-105.582-77.079-3.639-2.688-8.776-1.821-11.339 1.907l-9.072 13.196a7.998 7.998 0 0 0 1.839 10.967c22.887 16.899 55.454 40.69 105.303 76.868 20.274 14.781 56.524 47.813 92.264 47.573 35.724.242 71.961-32.771 92.263-47.573 49.85-36.179 82.418-59.97 105.303-76.868a7.998 7.998 0 0 0 1.839-10.967l-9.071-13.196z"]
  111654. };
  111655. var faEnvelopeOpenText = {
  111656. prefix: 'fas',
  111657. iconName: 'envelope-open-text',
  111658. icon: [512, 512, [], "f658", "M176 216h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16zm-16 80c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16zm96 121.13c-16.42 0-32.84-5.06-46.86-15.19L0 250.86V464c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V250.86L302.86 401.94c-14.02 10.12-30.44 15.19-46.86 15.19zm237.61-254.18c-8.85-6.94-17.24-13.47-29.61-22.81V96c0-26.51-21.49-48-48-48h-77.55c-3.04-2.2-5.87-4.26-9.04-6.56C312.6 29.17 279.2-.35 256 0c-23.2-.35-56.59 29.17-73.41 41.44-3.17 2.3-6 4.36-9.04 6.56H96c-26.51 0-48 21.49-48 48v44.14c-12.37 9.33-20.76 15.87-29.61 22.81A47.995 47.995 0 0 0 0 200.72v10.65l96 69.35V96h320v184.72l96-69.35v-10.65c0-14.74-6.78-28.67-18.39-37.77z"]
  111659. };
  111660. var faEnvelopeSquare = {
  111661. prefix: 'fas',
  111662. iconName: 'envelope-square',
  111663. icon: [448, 512, [], "f199", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"]
  111664. };
  111665. var faEquals = {
  111666. prefix: 'fas',
  111667. iconName: 'equals',
  111668. icon: [448, 512, [], "f52c", "M416 304H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32zm0-192H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]
  111669. };
  111670. var faEraser = {
  111671. prefix: 'fas',
  111672. iconName: 'eraser',
  111673. icon: [512, 512, [], "f12d", "M497.941 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.745-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48.004 48.004 0 0 0 144 480h356c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H355.883l142.058-142.059zm-302.627-62.627l137.373 137.373L265.373 416H150.628l-80-80 124.686-124.686z"]
  111674. };
  111675. var faEthernet = {
  111676. prefix: 'fas',
  111677. iconName: 'ethernet',
  111678. icon: [512, 512, [], "f796", "M496 192h-48v-48c0-8.8-7.2-16-16-16h-48V80c0-8.8-7.2-16-16-16H144c-8.8 0-16 7.2-16 16v48H80c-8.8 0-16 7.2-16 16v48H16c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16h80V320h32v128h64V320h32v128h64V320h32v128h64V320h32v128h80c8.8 0 16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]
  111679. };
  111680. var faEuroSign = {
  111681. prefix: 'fas',
  111682. iconName: 'euro-sign',
  111683. icon: [320, 512, [], "f153", "M310.706 413.765c-1.314-6.63-7.835-10.872-14.424-9.369-10.692 2.439-27.422 5.413-45.426 5.413-56.763 0-101.929-34.79-121.461-85.449h113.689a12 12 0 0 0 11.708-9.369l6.373-28.36c1.686-7.502-4.019-14.631-11.708-14.631H115.22c-1.21-14.328-1.414-28.287.137-42.245H261.95a12 12 0 0 0 11.723-9.434l6.512-29.755c1.638-7.484-4.061-14.566-11.723-14.566H130.184c20.633-44.991 62.69-75.03 117.619-75.03 14.486 0 28.564 2.25 37.851 4.145 6.216 1.268 12.347-2.498 14.002-8.623l11.991-44.368c1.822-6.741-2.465-13.616-9.326-14.917C290.217 34.912 270.71 32 249.635 32 152.451 32 74.03 92.252 45.075 176H12c-6.627 0-12 5.373-12 12v29.755c0 6.627 5.373 12 12 12h21.569c-1.009 13.607-1.181 29.287-.181 42.245H12c-6.627 0-12 5.373-12 12v28.36c0 6.627 5.373 12 12 12h30.114C67.139 414.692 145.264 480 249.635 480c26.301 0 48.562-4.544 61.101-7.788 6.167-1.595 10.027-7.708 8.788-13.957l-8.818-44.49z"]
  111684. };
  111685. var faExchangeAlt = {
  111686. prefix: 'fas',
  111687. iconName: 'exchange-alt',
  111688. icon: [512, 512, [], "f362", "M0 168v-16c0-13.255 10.745-24 24-24h360V80c0-21.367 25.899-32.042 40.971-16.971l80 80c9.372 9.373 9.372 24.569 0 33.941l-80 80C409.956 271.982 384 261.456 384 240v-48H24c-13.255 0-24-10.745-24-24zm488 152H128v-48c0-21.314-25.862-32.08-40.971-16.971l-80 80c-9.372 9.373-9.372 24.569 0 33.941l80 80C102.057 463.997 128 453.437 128 432v-48h360c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24z"]
  111689. };
  111690. var faExclamation = {
  111691. prefix: 'fas',
  111692. iconName: 'exclamation',
  111693. icon: [192, 512, [], "f12a", "M176 432c0 44.112-35.888 80-80 80s-80-35.888-80-80 35.888-80 80-80 80 35.888 80 80zM25.26 25.199l13.6 272C39.499 309.972 50.041 320 62.83 320h66.34c12.789 0 23.331-10.028 23.97-22.801l13.6-272C167.425 11.49 156.496 0 142.77 0H49.23C35.504 0 24.575 11.49 25.26 25.199z"]
  111694. };
  111695. var faExclamationCircle = {
  111696. prefix: 'fas',
  111697. iconName: 'exclamation-circle',
  111698. icon: [512, 512, [], "f06a", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]
  111699. };
  111700. var faExclamationTriangle = {
  111701. prefix: 'fas',
  111702. iconName: 'exclamation-triangle',
  111703. icon: [576, 512, [], "f071", "M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"]
  111704. };
  111705. var faExpand = {
  111706. prefix: 'fas',
  111707. iconName: 'expand',
  111708. icon: [448, 512, [], "f065", "M0 180V56c0-13.3 10.7-24 24-24h124c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12H64v84c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12zM288 44v40c0 6.6 5.4 12 12 12h84v84c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V56c0-13.3-10.7-24-24-24H300c-6.6 0-12 5.4-12 12zm148 276h-40c-6.6 0-12 5.4-12 12v84h-84c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h124c13.3 0 24-10.7 24-24V332c0-6.6-5.4-12-12-12zM160 468v-40c0-6.6-5.4-12-12-12H64v-84c0-6.6-5.4-12-12-12H12c-6.6 0-12 5.4-12 12v124c0 13.3 10.7 24 24 24h124c6.6 0 12-5.4 12-12z"]
  111709. };
  111710. var faExpandAlt = {
  111711. prefix: 'fas',
  111712. iconName: 'expand-alt',
  111713. icon: [448, 512, [], "f424", "M212.686 315.314L120 408l32.922 31.029c15.12 15.12 4.412 40.971-16.97 40.971h-112C10.697 480 0 469.255 0 456V344c0-21.382 25.803-32.09 40.922-16.971L72 360l92.686-92.686c6.248-6.248 16.379-6.248 22.627 0l25.373 25.373c6.249 6.248 6.249 16.378 0 22.627zm22.628-118.628L328 104l-32.922-31.029C279.958 57.851 290.666 32 312.048 32h112C437.303 32 448 42.745 448 56v112c0 21.382-25.803 32.09-40.922 16.971L376 152l-92.686 92.686c-6.248 6.248-16.379 6.248-22.627 0l-25.373-25.373c-6.249-6.248-6.249-16.378 0-22.627z"]
  111714. };
  111715. var faExpandArrowsAlt = {
  111716. prefix: 'fas',
  111717. iconName: 'expand-arrows-alt',
  111718. icon: [448, 512, [], "f31e", "M448 344v112a23.94 23.94 0 0 1-24 24H312c-21.39 0-32.09-25.9-17-41l36.2-36.2L224 295.6 116.77 402.9 153 439c15.09 15.1 4.39 41-17 41H24a23.94 23.94 0 0 1-24-24V344c0-21.4 25.89-32.1 41-17l36.19 36.2L184.46 256 77.18 148.7 41 185c-15.1 15.1-41 4.4-41-17V56a23.94 23.94 0 0 1 24-24h112c21.39 0 32.09 25.9 17 41l-36.2 36.2L224 216.4l107.23-107.3L295 73c-15.09-15.1-4.39-41 17-41h112a23.94 23.94 0 0 1 24 24v112c0 21.4-25.89 32.1-41 17l-36.19-36.2L263.54 256l107.28 107.3L407 327.1c15.1-15.2 41-4.5 41 16.9z"]
  111719. };
  111720. var faExternalLinkAlt = {
  111721. prefix: 'fas',
  111722. iconName: 'external-link-alt',
  111723. icon: [512, 512, [], "f35d", "M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z"]
  111724. };
  111725. var faExternalLinkSquareAlt = {
  111726. prefix: 'fas',
  111727. iconName: 'external-link-square-alt',
  111728. icon: [448, 512, [], "f360", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-88 16H248.029c-21.313 0-32.08 25.861-16.971 40.971l31.984 31.987L67.515 364.485c-4.686 4.686-4.686 12.284 0 16.971l31.029 31.029c4.687 4.686 12.285 4.686 16.971 0l195.526-195.526 31.988 31.991C358.058 263.977 384 253.425 384 231.979V120c0-13.255-10.745-24-24-24z"]
  111729. };
  111730. var faEye = {
  111731. prefix: 'fas',
  111732. iconName: 'eye',
  111733. icon: [576, 512, [], "f06e", "M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"]
  111734. };
  111735. var faEyeDropper = {
  111736. prefix: 'fas',
  111737. iconName: 'eye-dropper',
  111738. icon: [512, 512, [], "f1fb", "M50.75 333.25c-12 12-18.75 28.28-18.75 45.26V424L0 480l32 32 56-32h45.49c16.97 0 33.25-6.74 45.25-18.74l126.64-126.62-128-128L50.75 333.25zM483.88 28.12c-37.47-37.5-98.28-37.5-135.75 0l-77.09 77.09-13.1-13.1c-9.44-9.44-24.65-9.31-33.94 0l-40.97 40.97c-9.37 9.37-9.37 24.57 0 33.94l161.94 161.94c9.44 9.44 24.65 9.31 33.94 0L419.88 288c9.37-9.37 9.37-24.57 0-33.94l-13.1-13.1 77.09-77.09c37.51-37.48 37.51-98.26.01-135.75z"]
  111739. };
  111740. var faEyeSlash = {
  111741. prefix: 'fas',
  111742. iconName: 'eye-slash',
  111743. icon: [640, 512, [], "f070", "M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"]
  111744. };
  111745. var faFan = {
  111746. prefix: 'fas',
  111747. iconName: 'fan',
  111748. icon: [512, 512, [], "f863", "M352.57 128c-28.09 0-54.09 4.52-77.06 12.86l12.41-123.11C289 7.31 279.81-1.18 269.33.13 189.63 10.13 128 77.64 128 159.43c0 28.09 4.52 54.09 12.86 77.06L17.75 224.08C7.31 223-1.18 232.19.13 242.67c10 79.7 77.51 141.33 159.3 141.33 28.09 0 54.09-4.52 77.06-12.86l-12.41 123.11c-1.05 10.43 8.11 18.93 18.59 17.62 79.7-10 141.33-77.51 141.33-159.3 0-28.09-4.52-54.09-12.86-77.06l123.11 12.41c10.44 1.05 18.93-8.11 17.62-18.59-10-79.7-77.51-141.33-159.3-141.33zM256 288a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"]
  111749. };
  111750. var faFastBackward = {
  111751. prefix: 'fas',
  111752. iconName: 'fast-backward',
  111753. icon: [512, 512, [], "f049", "M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z"]
  111754. };
  111755. var faFastForward = {
  111756. prefix: 'fas',
  111757. iconName: 'fast-forward',
  111758. icon: [512, 512, [], "f050", "M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z"]
  111759. };
  111760. var faFaucet = {
  111761. prefix: 'fas',
  111762. iconName: 'faucet',
  111763. icon: [512, 512, [], "e005", "M352,256H313.39c-15.71-13.44-35.46-23.07-57.39-28V180.44l-32-3.38-32,3.38V228c-21.93,5-41.68,14.6-57.39,28H16A16,16,0,0,0,0,272v96a16,16,0,0,0,16,16h92.79C129.38,421.73,173,448,224,448s94.62-26.27,115.21-64H352a32,32,0,0,1,32,32,32,32,0,0,0,32,32h64a32,32,0,0,0,32-32A160,160,0,0,0,352,256ZM81.59,159.91l142.41-15,142.41,15c9.42,1,17.59-6.81,17.59-16.8V112.89c0-10-8.17-17.8-17.59-16.81L256,107.74V80a16,16,0,0,0-16-16H208a16,16,0,0,0-16,16v27.74L81.59,96.08C72.17,95.09,64,102.9,64,112.89v30.22C64,153.1,72.17,160.91,81.59,159.91Z"]
  111764. };
  111765. var faFax = {
  111766. prefix: 'fas',
  111767. iconName: 'fax',
  111768. icon: [512, 512, [], "f1ac", "M480 160V77.25a32 32 0 0 0-9.38-22.63L425.37 9.37A32 32 0 0 0 402.75 0H160a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32h320a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM288 432a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm128 128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-128a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32a16 16 0 0 1 16 16zm0-112H192V64h160v48a16 16 0 0 0 16 16h48zM64 128H32a32 32 0 0 0-32 32v320a32 32 0 0 0 32 32h32a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32z"]
  111769. };
  111770. var faFeather = {
  111771. prefix: 'fas',
  111772. iconName: 'feather',
  111773. icon: [512, 512, [], "f52d", "M467.14 44.84c-62.55-62.48-161.67-64.78-252.28 25.73-78.61 78.52-60.98 60.92-85.75 85.66-60.46 60.39-70.39 150.83-63.64 211.17l178.44-178.25c6.26-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.6 9.37 33.98 0l66.1-66.03C159.42 454.65 279 457.11 353.95 384h-98.19l147.57-49.14c49.99-49.93 36.38-36.18 46.31-46.86h-97.78l131.54-43.8c45.44-74.46 34.31-148.84-16.26-199.36z"]
  111774. };
  111775. var faFeatherAlt = {
  111776. prefix: 'fas',
  111777. iconName: 'feather-alt',
  111778. icon: [512, 512, [], "f56b", "M512 0C460.22 3.56 96.44 38.2 71.01 287.61c-3.09 26.66-4.84 53.44-5.99 80.24l178.87-178.69c6.25-6.25 16.4-6.25 22.65 0s6.25 16.38 0 22.63L7.04 471.03c-9.38 9.37-9.38 24.57 0 33.94 9.38 9.37 24.59 9.37 33.98 0l57.13-57.07c42.09-.14 84.15-2.53 125.96-7.36 53.48-5.44 97.02-26.47 132.58-56.54H255.74l146.79-48.88c11.25-14.89 21.37-30.71 30.45-47.12h-81.14l106.54-53.21C500.29 132.86 510.19 26.26 512 0z"]
  111779. };
  111780. var faFemale = {
  111781. prefix: 'fas',
  111782. iconName: 'female',
  111783. icon: [256, 512, [], "f182", "M128 0c35.346 0 64 28.654 64 64s-28.654 64-64 64c-35.346 0-64-28.654-64-64S92.654 0 128 0m119.283 354.179l-48-192A24 24 0 0 0 176 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H80a24 24 0 0 0-23.283 18.179l-48 192C4.935 369.305 16.383 384 32 384h56v104c0 13.255 10.745 24 24 24h32c13.255 0 24-10.745 24-24V384h56c15.591 0 27.071-14.671 23.283-29.821z"]
  111784. };
  111785. var faFighterJet = {
  111786. prefix: 'fas',
  111787. iconName: 'fighter-jet',
  111788. icon: [640, 512, [], "f0fb", "M544 224l-128-16-48-16h-24L227.158 44h39.509C278.333 44 288 41.375 288 38s-9.667-6-21.333-6H152v12h16v164h-48l-66.667-80H18.667L8 138.667V208h8v16h48v2.666l-64 8v42.667l64 8V288H16v16H8v69.333L18.667 384h34.667L120 304h48v164h-16v12h114.667c11.667 0 21.333-2.625 21.333-6s-9.667-6-21.333-6h-39.509L344 320h24l48-16 128-16c96-21.333 96-26.583 96-32 0-5.417 0-10.667-96-32z"]
  111789. };
  111790. var faFile = {
  111791. prefix: 'fas',
  111792. iconName: 'file',
  111793. icon: [384, 512, [], "f15b", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm160-14.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
  111794. };
  111795. var faFileAlt = {
  111796. prefix: 'fas',
  111797. iconName: 'file-alt',
  111798. icon: [384, 512, [], "f15c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
  111799. };
  111800. var faFileArchive = {
  111801. prefix: 'fas',
  111802. iconName: 'file-archive',
  111803. icon: [384, 512, [], "f1c6", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zM128.4 336c-17.9 0-32.4 12.1-32.4 27 0 15 14.6 27 32.5 27s32.4-12.1 32.4-27-14.6-27-32.5-27zM224 136V0h-63.6v32h-32V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM95.9 32h32v32h-32zm32.3 384c-33.2 0-58-30.4-51.4-62.9L96.4 256v-32h32v-32h-32v-32h32v-32h-32V96h32V64h32v32h-32v32h32v32h-32v32h32v32h-32v32h22.1c5.7 0 10.7 4.1 11.8 9.7l17.3 87.7c6.4 32.4-18.4 62.6-51.4 62.6z"]
  111804. };
  111805. var faFileAudio = {
  111806. prefix: 'fas',
  111807. iconName: 'file-audio',
  111808. icon: [384, 512, [], "f1c7", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-64 268c0 10.7-12.9 16-20.5 8.5L104 376H76c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h28l35.5-36.5c7.6-7.6 20.5-2.2 20.5 8.5v136zm33.2-47.6c9.1-9.3 9.1-24.1 0-33.4-22.1-22.8 12.2-56.2 34.4-33.5 27.2 27.9 27.2 72.4 0 100.4-21.8 22.3-56.9-10.4-34.4-33.5zm86-117.1c54.4 55.9 54.4 144.8 0 200.8-21.8 22.4-57-10.3-34.4-33.5 36.2-37.2 36.3-96.5 0-133.8-22.1-22.8 12.3-56.3 34.4-33.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
  111809. };
  111810. var faFileCode = {
  111811. prefix: 'fas',
  111812. iconName: 'file-code',
  111813. icon: [384, 512, [], "f1c9", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zM123.206 400.505a5.4 5.4 0 0 1-7.633.246l-64.866-60.812a5.4 5.4 0 0 1 0-7.879l64.866-60.812a5.4 5.4 0 0 1 7.633.246l19.579 20.885a5.4 5.4 0 0 1-.372 7.747L101.65 336l40.763 35.874a5.4 5.4 0 0 1 .372 7.747l-19.579 20.884zm51.295 50.479l-27.453-7.97a5.402 5.402 0 0 1-3.681-6.692l61.44-211.626a5.402 5.402 0 0 1 6.692-3.681l27.452 7.97a5.4 5.4 0 0 1 3.68 6.692l-61.44 211.626a5.397 5.397 0 0 1-6.69 3.681zm160.792-111.045l-64.866 60.812a5.4 5.4 0 0 1-7.633-.246l-19.58-20.885a5.4 5.4 0 0 1 .372-7.747L284.35 336l-40.763-35.874a5.4 5.4 0 0 1-.372-7.747l19.58-20.885a5.4 5.4 0 0 1 7.633-.246l64.866 60.812a5.4 5.4 0 0 1-.001 7.879z"]
  111814. };
  111815. var faFileContract = {
  111816. prefix: 'fas',
  111817. iconName: 'file-contract',
  111818. icon: [384, 512, [], "f56c", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm192.81 248H304c8.84 0 16 7.16 16 16s-7.16 16-16 16h-47.19c-16.45 0-31.27-9.14-38.64-23.86-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34a15.986 15.986 0 0 1-14.31 8.84c-.38 0-.75-.02-1.14-.05-6.45-.45-12-4.75-14.03-10.89L144 354.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.77-16.19 54.05-9.7 66 14.16 2.02 4.06 5.96 6.5 10.16 6.5zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
  111819. };
  111820. var faFileCsv = {
  111821. prefix: 'fas',
  111822. iconName: 'file-csv',
  111823. icon: [384, 512, [], "f6dd", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm-96 144c0 4.42-3.58 8-8 8h-8c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h8c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-8c-26.51 0-48-21.49-48-48v-32c0-26.51 21.49-48 48-48h8c4.42 0 8 3.58 8 8v16zm44.27 104H160c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h12.27c5.95 0 10.41-3.5 10.41-6.62 0-1.3-.75-2.66-2.12-3.84l-21.89-18.77c-8.47-7.22-13.33-17.48-13.33-28.14 0-21.3 19.02-38.62 42.41-38.62H200c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8h-12.27c-5.95 0-10.41 3.5-10.41 6.62 0 1.3.75 2.66 2.12 3.84l21.89 18.77c8.47 7.22 13.33 17.48 13.33 28.14.01 21.29-19 38.62-42.39 38.62zM256 264v20.8c0 20.27 5.7 40.17 16 56.88 10.3-16.7 16-36.61 16-56.88V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v20.8c0 35.48-12.88 68.89-36.28 94.09-3.02 3.25-7.27 5.11-11.72 5.11s-8.7-1.86-11.72-5.11c-23.4-25.2-36.28-58.61-36.28-94.09V264c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8zm121-159L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
  111824. };
  111825. var faFileDownload = {
  111826. prefix: 'fas',
  111827. iconName: 'file-download',
  111828. icon: [384, 512, [], "f56d", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm76.45 211.36l-96.42 95.7c-6.65 6.61-17.39 6.61-24.04 0l-96.42-95.7C73.42 337.29 80.54 320 94.82 320H160v-80c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v80h65.18c14.28 0 21.4 17.29 11.27 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
  111829. };
  111830. var faFileExcel = {
  111831. prefix: 'fas',
  111832. iconName: 'file-excel',
  111833. icon: [384, 512, [], "f1c3", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm60.1 106.5L224 336l60.1 93.5c5.1 8-.6 18.5-10.1 18.5h-34.9c-4.4 0-8.5-2.4-10.6-6.3C208.9 405.5 192 373 192 373c-6.4 14.8-10 20-36.6 68.8-2.1 3.9-6.1 6.3-10.5 6.3H110c-9.5 0-15.2-10.5-10.1-18.5l60.3-93.5-60.3-93.5c-5.2-8 .6-18.5 10.1-18.5h34.8c4.4 0 8.5 2.4 10.6 6.3 26.1 48.8 20 33.6 36.6 68.5 0 0 6.1-11.7 36.6-68.5 2.1-3.9 6.2-6.3 10.6-6.3H274c9.5-.1 15.2 10.4 10.1 18.4zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
  111834. };
  111835. var faFileExport = {
  111836. prefix: 'fas',
  111837. iconName: 'file-export',
  111838. icon: [576, 512, [], "f56e", "M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z"]
  111839. };
  111840. var faFileImage = {
  111841. prefix: 'fas',
  111842. iconName: 'file-image',
  111843. icon: [384, 512, [], "f1c5", "M384 121.941V128H256V0h6.059a24 24 0 0 1 16.97 7.029l97.941 97.941a24.002 24.002 0 0 1 7.03 16.971zM248 160c-13.2 0-24-10.8-24-24V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248zm-135.455 16c26.51 0 48 21.49 48 48s-21.49 48-48 48-48-21.49-48-48 21.491-48 48-48zm208 240h-256l.485-48.485L104.545 328c4.686-4.686 11.799-4.201 16.485.485L160.545 368 264.06 264.485c4.686-4.686 12.284-4.686 16.971 0L320.545 304v112z"]
  111844. };
  111845. var faFileImport = {
  111846. prefix: 'fas',
  111847. iconName: 'file-import',
  111848. icon: [512, 512, [], "f56f", "M16 288c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h112v-64zm489-183L407.1 7c-4.5-4.5-10.6-7-17-7H384v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H152c-13.3 0-24 10.7-24 24v264h128v-65.2c0-14.3 17.3-21.4 27.4-11.3L379 308c6.6 6.7 6.6 17.4 0 24l-95.7 96.4c-10.1 10.1-27.4 3-27.4-11.3V352H128v136c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H376c-13.2 0-24-10.8-24-24z"]
  111849. };
  111850. var faFileInvoice = {
  111851. prefix: 'fas',
  111852. iconName: 'file-invoice',
  111853. icon: [384, 512, [], "f570", "M288 256H96v64h192v-64zm89-151L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 64c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm256 304c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-200v96c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-96c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16z"]
  111854. };
  111855. var faFileInvoiceDollar = {
  111856. prefix: 'fas',
  111857. iconName: 'file-invoice-dollar',
  111858. icon: [384, 512, [], "f571", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zM64 72c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8V72zm0 80v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8zm144 263.88V440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-24.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V232c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v24.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07z"]
  111859. };
  111860. var faFileMedical = {
  111861. prefix: 'fas',
  111862. iconName: 'file-medical',
  111863. icon: [384, 512, [], "f477", "M377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 160v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8z"]
  111864. };
  111865. var faFileMedicalAlt = {
  111866. prefix: 'fas',
  111867. iconName: 'file-medical-alt',
  111868. icon: [448, 512, [], "f478", "M288 136V0H88C74.7 0 64 10.7 64 24v232H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h140.9c3 0 5.8 1.7 7.2 4.4l19.9 39.8 56.8-113.7c2.9-5.9 11.4-5.9 14.3 0l34.7 69.5H352c8.8 0 16 7.2 16 16s-7.2 16-16 16h-89.9L240 275.8l-56.8 113.7c-2.9 5.9-11.4 5.9-14.3 0L134.1 320H64v168c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H312c-13.2 0-24-10.8-24-24zm153-31L343.1 7c-4.5-4.5-10.6-7-17-7H320v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
  111869. };
  111870. var faFilePdf = {
  111871. prefix: 'fas',
  111872. iconName: 'file-pdf',
  111873. icon: [384, 512, [], "f1c1", "M181.9 256.1c-5-16-4.9-46.9-2-46.9 8.4 0 7.6 36.9 2 46.9zm-1.7 47.2c-7.7 20.2-17.3 43.3-28.4 62.7 18.3-7 39-17.2 62.9-21.9-12.7-9.6-24.9-23.4-34.5-40.8zM86.1 428.1c0 .8 13.2-5.4 34.9-40.2-6.7 6.3-29.1 24.5-34.9 40.2zM248 160h136v328c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V24C0 10.7 10.7 0 24 0h200v136c0 13.2 10.8 24 24 24zm-8 171.8c-20-12.2-33.3-29-42.7-53.8 4.5-18.5 11.6-46.6 6.2-64.2-4.7-29.4-42.4-26.5-47.8-6.8-5 18.3-.4 44.1 8.1 77-11.6 27.6-28.7 64.6-40.8 85.8-.1 0-.1.1-.2.1-27.1 13.9-73.6 44.5-54.5 68 5.6 6.9 16 10 21.5 10 17.9 0 35.7-18 61.1-61.8 25.8-8.5 54.1-19.1 79-23.2 21.7 11.8 47.1 19.5 64 19.5 29.2 0 31.2-32 19.7-43.4-13.9-13.6-54.3-9.7-73.6-7.2zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-74.1 255.3c4.1-2.7-2.5-11.9-42.8-9 37.1 15.8 42.8 9 42.8 9z"]
  111874. };
  111875. var faFilePowerpoint = {
  111876. prefix: 'fas',
  111877. iconName: 'file-powerpoint',
  111878. icon: [384, 512, [], "f1c4", "M193.7 271.2c8.8 0 15.5 2.7 20.3 8.1 9.6 10.9 9.8 32.7-.2 44.1-4.9 5.6-11.9 8.5-21.1 8.5h-26.9v-60.7h27.9zM377 105L279 7c-4.5-4.5-10.6-7-17-7h-6v128h128v-6.1c0-6.3-2.5-12.4-7-16.9zm-153 31V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm53 165.2c0 90.3-88.8 77.6-111.1 77.6V436c0 6.6-5.4 12-12 12h-30.8c-6.6 0-12-5.4-12-12V236.2c0-6.6 5.4-12 12-12h81c44.5 0 72.9 32.8 72.9 77z"]
  111879. };
  111880. var faFilePrescription = {
  111881. prefix: 'fas',
  111882. iconName: 'file-prescription',
  111883. icon: [384, 512, [], "f572", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm68.53 179.48l11.31 11.31c6.25 6.25 6.25 16.38 0 22.63l-29.9 29.9L304 409.38c6.25 6.25 6.25 16.38 0 22.63l-11.31 11.31c-6.25 6.25-16.38 6.25-22.63 0L240 413.25l-30.06 30.06c-6.25 6.25-16.38 6.25-22.63 0L176 432c-6.25-6.25-6.25-16.38 0-22.63l30.06-30.06L146.74 320H128v48c0 8.84-7.16 16-16 16H96c-8.84 0-16-7.16-16-16V208c0-8.84 7.16-16 16-16h80c35.35 0 64 28.65 64 64 0 24.22-13.62 45.05-33.46 55.92L240 345.38l29.9-29.9c6.25-6.25 16.38-6.25 22.63 0zM176 272h-48v-32h48c8.82 0 16 7.18 16 16s-7.18 16-16 16zm208-150.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
  111884. };
  111885. var faFileSignature = {
  111886. prefix: 'fas',
  111887. iconName: 'file-signature',
  111888. icon: [576, 512, [], "f573", "M218.17 424.14c-2.95-5.92-8.09-6.52-10.17-6.52s-7.22.59-10.02 6.19l-7.67 15.34c-6.37 12.78-25.03 11.37-29.48-2.09L144 386.59l-10.61 31.88c-5.89 17.66-22.38 29.53-41 29.53H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h12.39c4.83 0 9.11-3.08 10.64-7.66l18.19-54.64c3.3-9.81 12.44-16.41 22.78-16.41s19.48 6.59 22.77 16.41l13.88 41.64c19.75-16.19 54.06-9.7 66 14.16 1.89 3.78 5.49 5.95 9.36 6.26v-82.12l128-127.09V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24v-40l-128-.11c-16.12-.31-30.58-9.28-37.83-23.75zM384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1zm-96 225.06V416h68.99l161.68-162.78-67.88-67.88L288 346.96zm280.54-179.63l-31.87-31.87c-9.94-9.94-26.07-9.94-36.01 0l-27.25 27.25 67.88 67.88 27.25-27.25c9.95-9.94 9.95-26.07 0-36.01z"]
  111889. };
  111890. var faFileUpload = {
  111891. prefix: 'fas',
  111892. iconName: 'file-upload',
  111893. icon: [384, 512, [], "f574", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"]
  111894. };
  111895. var faFileVideo = {
  111896. prefix: 'fas',
  111897. iconName: 'file-video',
  111898. icon: [384, 512, [], "f1c8", "M384 121.941V128H256V0h6.059c6.365 0 12.47 2.529 16.971 7.029l97.941 97.941A24.005 24.005 0 0 1 384 121.941zM224 136V0H24C10.745 0 0 10.745 0 24v464c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V160H248c-13.2 0-24-10.8-24-24zm96 144.016v111.963c0 21.445-25.943 31.998-40.971 16.971L224 353.941V392c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V280c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v38.059l55.029-55.013c15.011-15.01 40.971-4.491 40.971 16.97z"]
  111899. };
  111900. var faFileWord = {
  111901. prefix: 'fas',
  111902. iconName: 'file-word',
  111903. icon: [384, 512, [], "f1c2", "M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm57.1 120H305c7.7 0 13.4 7.1 11.7 14.7l-38 168c-1.2 5.5-6.1 9.3-11.7 9.3h-38c-5.5 0-10.3-3.8-11.6-9.1-25.8-103.5-20.8-81.2-25.6-110.5h-.5c-1.1 14.3-2.4 17.4-25.6 110.5-1.3 5.3-6.1 9.1-11.6 9.1H117c-5.6 0-10.5-3.9-11.7-9.4l-37.8-168c-1.7-7.5 4-14.6 11.7-14.6h24.5c5.7 0 10.7 4 11.8 9.7 15.6 78 20.1 109.5 21 122.2 1.6-10.2 7.3-32.7 29.4-122.7 1.3-5.4 6.1-9.1 11.7-9.1h29.1c5.6 0 10.4 3.8 11.7 9.2 24 100.4 28.8 124 29.6 129.4-.2-11.2-2.6-17.8 21.6-129.2 1-5.6 5.9-9.5 11.5-9.5zM384 121.9v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"]
  111904. };
  111905. var faFill = {
  111906. prefix: 'fas',
  111907. iconName: 'fill',
  111908. icon: [512, 512, [], "f575", "M502.63 217.06L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.77c-6.24-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.63l86.19 86.18-94.76 94.76c-37.49 37.49-37.49 98.26 0 135.75l117.19 117.19c18.75 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.88-28.12l221.57-221.57c12.49-12.5 12.49-32.76 0-45.26zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.61 58.6c12.49 12.49 32.75 12.49 45.24 0 12.49-12.49 12.49-32.75 0-45.24l-58.61-58.6 58.95-58.95 162.45 162.44-48.35 48.34z"]
  111909. };
  111910. var faFillDrip = {
  111911. prefix: 'fas',
  111912. iconName: 'fill-drip',
  111913. icon: [576, 512, [], "f576", "M512 320s-64 92.65-64 128c0 35.35 28.66 64 64 64s64-28.65 64-64-64-128-64-128zm-9.37-102.94L294.94 9.37C288.69 3.12 280.5 0 272.31 0s-16.38 3.12-22.62 9.37l-81.58 81.58L81.93 4.76c-6.25-6.25-16.38-6.25-22.62 0L36.69 27.38c-6.24 6.25-6.24 16.38 0 22.62l86.19 86.18-94.76 94.76c-37.49 37.48-37.49 98.26 0 135.75l117.19 117.19c18.74 18.74 43.31 28.12 67.87 28.12 24.57 0 49.13-9.37 67.87-28.12l221.57-221.57c12.5-12.5 12.5-32.75.01-45.25zm-116.22 70.97H65.93c1.36-3.84 3.57-7.98 7.43-11.83l13.15-13.15 81.61-81.61 58.6 58.6c12.49 12.49 32.75 12.49 45.24 0s12.49-32.75 0-45.24l-58.6-58.6 58.95-58.95 162.44 162.44-48.34 48.34z"]
  111914. };
  111915. var faFilm = {
  111916. prefix: 'fas',
  111917. iconName: 'film',
  111918. icon: [512, 512, [], "f008", "M488 64h-8v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V64H96v20c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12V64h-8C10.7 64 0 74.7 0 88v336c0 13.3 10.7 24 24 24h8v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h320v-20c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v20h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24zM96 372c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12H44c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm272 208c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm0-168c0 6.6-5.4 12-12 12H156c-6.6 0-12-5.4-12-12v-96c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v96zm112 152c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-96c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"]
  111919. };
  111920. var faFilter = {
  111921. prefix: 'fas',
  111922. iconName: 'filter',
  111923. icon: [512, 512, [], "f0b0", "M487.976 0H24.028C2.71 0-8.047 25.866 7.058 40.971L192 225.941V432c0 7.831 3.821 15.17 10.237 19.662l80 55.98C298.02 518.69 320 507.493 320 487.98V225.941l184.947-184.97C520.021 25.896 509.338 0 487.976 0z"]
  111924. };
  111925. var faFingerprint = {
  111926. prefix: 'fas',
  111927. iconName: 'fingerprint',
  111928. icon: [512, 512, [], "f577", "M256.12 245.96c-13.25 0-24 10.74-24 24 1.14 72.25-8.14 141.9-27.7 211.55-2.73 9.72 2.15 30.49 23.12 30.49 10.48 0 20.11-6.92 23.09-17.52 13.53-47.91 31.04-125.41 29.48-224.52.01-13.25-10.73-24-23.99-24zm-.86-81.73C194 164.16 151.25 211.3 152.1 265.32c.75 47.94-3.75 95.91-13.37 142.55-2.69 12.98 5.67 25.69 18.64 28.36 13.05 2.67 25.67-5.66 28.36-18.64 10.34-50.09 15.17-101.58 14.37-153.02-.41-25.95 19.92-52.49 54.45-52.34 31.31.47 57.15 25.34 57.62 55.47.77 48.05-2.81 96.33-10.61 143.55-2.17 13.06 6.69 25.42 19.76 27.58 19.97 3.33 26.81-15.1 27.58-19.77 8.28-50.03 12.06-101.21 11.27-152.11-.88-55.8-47.94-101.88-104.91-102.72zm-110.69-19.78c-10.3-8.34-25.37-6.8-33.76 3.48-25.62 31.5-39.39 71.28-38.75 112 .59 37.58-2.47 75.27-9.11 112.05-2.34 13.05 6.31 25.53 19.36 27.89 20.11 3.5 27.07-14.81 27.89-19.36 7.19-39.84 10.5-80.66 9.86-121.33-.47-29.88 9.2-57.88 28-80.97 8.35-10.28 6.79-25.39-3.49-33.76zm109.47-62.33c-15.41-.41-30.87 1.44-45.78 4.97-12.89 3.06-20.87 15.98-17.83 28.89 3.06 12.89 16 20.83 28.89 17.83 11.05-2.61 22.47-3.77 34-3.69 75.43 1.13 137.73 61.5 138.88 134.58.59 37.88-1.28 76.11-5.58 113.63-1.5 13.17 7.95 25.08 21.11 26.58 16.72 1.95 25.51-11.88 26.58-21.11a929.06 929.06 0 0 0 5.89-119.85c-1.56-98.75-85.07-180.33-186.16-181.83zm252.07 121.45c-2.86-12.92-15.51-21.2-28.61-18.27-12.94 2.86-21.12 15.66-18.26 28.61 4.71 21.41 4.91 37.41 4.7 61.6-.11 13.27 10.55 24.09 23.8 24.2h.2c13.17 0 23.89-10.61 24-23.8.18-22.18.4-44.11-5.83-72.34zm-40.12-90.72C417.29 43.46 337.6 1.29 252.81.02 183.02-.82 118.47 24.91 70.46 72.94 24.09 119.37-.9 181.04.14 246.65l-.12 21.47c-.39 13.25 10.03 24.31 23.28 24.69.23.02.48.02.72.02 12.92 0 23.59-10.3 23.97-23.3l.16-23.64c-.83-52.5 19.16-101.86 56.28-139 38.76-38.8 91.34-59.67 147.68-58.86 69.45 1.03 134.73 35.56 174.62 92.39 7.61 10.86 22.56 13.45 33.42 5.86 10.84-7.62 13.46-22.59 5.84-33.43z"]
  111929. };
  111930. var faFire = {
  111931. prefix: 'fas',
  111932. iconName: 'fire',
  111933. icon: [384, 512, [], "f06d", "M216 23.86c0-23.8-30.65-32.77-44.15-13.04C48 191.85 224 200 224 288c0 35.63-29.11 64.46-64.85 63.99-35.17-.45-63.15-29.77-63.15-64.94v-85.51c0-21.7-26.47-32.23-41.43-16.5C27.8 213.16 0 261.33 0 320c0 105.87 86.13 192 192 192s192-86.13 192-192c0-170.29-168-193-168-296.14z"]
  111934. };
  111935. var faFireAlt = {
  111936. prefix: 'fas',
  111937. iconName: 'fire-alt',
  111938. icon: [448, 512, [], "f7e4", "M323.56 51.2c-20.8 19.3-39.58 39.59-56.22 59.97C240.08 73.62 206.28 35.53 168 0 69.74 91.17 0 209.96 0 281.6 0 408.85 100.29 512 224 512s224-103.15 224-230.4c0-53.27-51.98-163.14-124.44-230.4zm-19.47 340.65C282.43 407.01 255.72 416 226.86 416 154.71 416 96 368.26 96 290.75c0-38.61 24.31-72.63 72.79-130.75 6.93 7.98 98.83 125.34 98.83 125.34l58.63-66.88c4.14 6.85 7.91 13.55 11.27 19.97 27.35 52.19 15.81 118.97-33.43 153.42z"]
  111939. };
  111940. var faFireExtinguisher = {
  111941. prefix: 'fas',
  111942. iconName: 'fire-extinguisher',
  111943. icon: [448, 512, [], "f134", "M434.027 26.329l-168 28C254.693 56.218 256 67.8 256 72h-58.332C208.353 36.108 181.446 0 144 0c-39.435 0-66.368 39.676-52.228 76.203-52.039 13.051-75.381 54.213-90.049 90.884-4.923 12.307 1.063 26.274 13.37 31.197 12.317 4.926 26.279-1.075 31.196-13.37C75.058 112.99 106.964 120 168 120v27.076c-41.543 10.862-72 49.235-72 94.129V488c0 13.255 10.745 24 24 24h144c13.255 0 24-10.745 24-24V240c0-44.731-30.596-82.312-72-92.97V120h40c0 2.974-1.703 15.716 10.027 17.671l168 28C441.342 166.89 448 161.25 448 153.834V38.166c0-7.416-6.658-13.056-13.973-11.837zM144 72c-8.822 0-16-7.178-16-16s7.178-16 16-16 16 7.178 16 16-7.178 16-16 16z"]
  111944. };
  111945. var faFirstAid = {
  111946. prefix: 'fas',
  111947. iconName: 'first-aid',
  111948. icon: [576, 512, [], "f479", "M0 80v352c0 26.5 21.5 48 48 48h48V32H48C21.5 32 0 53.5 0 80zm128 400h320V32H128v448zm64-248c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48zM528 32h-48v448h48c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]
  111949. };
  111950. var faFish = {
  111951. prefix: 'fas',
  111952. iconName: 'fish',
  111953. icon: [576, 512, [], "f578", "M327.1 96c-89.97 0-168.54 54.77-212.27 101.63L27.5 131.58c-12.13-9.18-30.24.6-27.14 14.66L24.54 256 .35 365.77c-3.1 14.06 15.01 23.83 27.14 14.66l87.33-66.05C158.55 361.23 237.13 416 327.1 416 464.56 416 576 288 576 256S464.56 96 327.1 96zm87.43 184c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24 13.26 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"]
  111954. };
  111955. var faFistRaised = {
  111956. prefix: 'fas',
  111957. iconName: 'fist-raised',
  111958. icon: [384, 512, [], "f6de", "M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93h48.03zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.035 96.035 0 0 0 384 344.21l-.02-88.22zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9zM16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16zm95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16z"]
  111959. };
  111960. var faFlag = {
  111961. prefix: 'fas',
  111962. iconName: 'flag',
  111963. icon: [512, 512, [], "f024", "M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"]
  111964. };
  111965. var faFlagCheckered = {
  111966. prefix: 'fas',
  111967. iconName: 'flag-checkered',
  111968. icon: [512, 512, [], "f11e", "M243.2 189.9V258c26.1 5.9 49.3 15.6 73.6 22.3v-68.2c-26-5.8-49.4-15.5-73.6-22.2zm223.3-123c-34.3 15.9-76.5 31.9-117 31.9C296 98.8 251.7 64 184.3 64c-25 0-47.3 4.4-68 12 2.8-7.3 4.1-15.2 3.6-23.6C118.1 24 94.8 1.2 66.3 0 34.3-1.3 8 24.3 8 56c0 19 9.5 35.8 24 45.9V488c0 13.3 10.7 24 24 24h16c13.3 0 24-10.7 24-24v-94.4c28.3-12.1 63.6-22.1 114.4-22.1 53.6 0 97.8 34.8 165.2 34.8 48.2 0 86.7-16.3 122.5-40.9 8.7-6 13.8-15.8 13.8-26.4V95.9c.1-23.3-24.2-38.8-45.4-29zM169.6 325.5c-25.8 2.7-50 8.2-73.6 16.6v-70.5c26.2-9.3 47.5-15 73.6-17.4zM464 191c-23.6 9.8-46.3 19.5-73.6 23.9V286c24.8-3.4 51.4-11.8 73.6-26v70.5c-25.1 16.1-48.5 24.7-73.6 27.1V286c-27 3.7-47.9 1.5-73.6-5.6v67.4c-23.9-7.4-47.3-16.7-73.6-21.3V258c-19.7-4.4-40.8-6.8-73.6-3.8v-70c-22.4 3.1-44.6 10.2-73.6 20.9v-70.5c33.2-12.2 50.1-19.8 73.6-22v71.6c27-3.7 48.4-1.3 73.6 5.7v-67.4c23.7 7.4 47.2 16.7 73.6 21.3v68.4c23.7 5.3 47.6 6.9 73.6 2.7V143c27-4.8 52.3-13.6 73.6-22.5z"]
  111969. };
  111970. var faFlagUsa = {
  111971. prefix: 'fas',
  111972. iconName: 'flag-usa',
  111973. icon: [512, 512, [], "f74d", "M32 0C14.3 0 0 14.3 0 32v464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V32C64 14.3 49.7 0 32 0zm267.9 303.6c-57.2-15.1-111.7-28.8-203.9 11.1V384c185.7-92.2 221.7 53.3 397.5-23.1 11.4-5 18.5-16.5 18.5-28.8v-36c-43.6 17.3-80.2 24.1-112.1 24.1-37.4-.1-68.9-8.4-100-16.6zm0-96c-57.2-15.1-111.7-28.8-203.9 11.1v61.5c94.8-37.6 154.6-22.7 212.1-7.6 57.2 15.1 111.7 28.8 203.9-11.1V200c-43.6 17.3-80.2 24.1-112.1 24.1-37.4 0-68.9-8.3-100-16.5zm9.5-125.9c51.8 15.6 97.4 29 202.6-20.1V30.8c0-25.1-26.8-38.1-49.4-26.6C291.3 91.5 305.4-62.2 96 32.4v151.9c94.8-37.5 154.6-22.7 212.1-7.6 57.2 15 111.7 28.7 203.9-11.1V96.7c-53.6 23.5-93.3 31.4-126.1 31.4s-59-7.8-85.7-15.9c-4-1.2-8.1-2.4-12.1-3.5V75.5c7.2 2 14.3 4.1 21.3 6.2zM160 128.1c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16-7.2 16-16 16zm0-55.8c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16zm64 47.9c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16zm0-55.9c-8.8 0-16-7.1-16-16 0-8.8 7.2-16 16-16s16 7.1 16 16c0 8.8-7.2 16-16 16z"]
  111974. };
  111975. var faFlask = {
  111976. prefix: 'fas',
  111977. iconName: 'flask',
  111978. icon: [448, 512, [], "f0c3", "M437.2 403.5L320 215V64h8c13.3 0 24-10.7 24-24V24c0-13.3-10.7-24-24-24H120c-13.3 0-24 10.7-24 24v16c0 13.3 10.7 24 24 24h8v151L10.8 403.5C-18.5 450.6 15.3 512 70.9 512h306.2c55.7 0 89.4-61.5 60.1-108.5zM137.9 320l48.2-77.6c3.7-5.2 5.8-11.6 5.8-18.4V64h64v160c0 6.9 2.2 13.2 5.8 18.4l48.2 77.6h-172z"]
  111979. };
  111980. var faFlushed = {
  111981. prefix: 'fas',
  111982. iconName: 'flushed',
  111983. icon: [496, 512, [], "f579", "M344 200c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm-192 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM80 224c0-39.8 32.2-72 72-72s72 32.2 72 72-32.2 72-72 72-72-32.2-72-72zm232 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-104c-39.8 0-72-32.2-72-72s32.2-72 72-72 72 32.2 72 72-32.2 72-72 72z"]
  111984. };
  111985. var faFolder = {
  111986. prefix: 'fas',
  111987. iconName: 'folder',
  111988. icon: [512, 512, [], "f07b", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48z"]
  111989. };
  111990. var faFolderMinus = {
  111991. prefix: 'fas',
  111992. iconName: 'folder-minus',
  111993. icon: [512, 512, [], "f65d", "M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V176c0-26.51-21.49-48-48-48zm-96 168c0 8.84-7.16 16-16 16H160c-8.84 0-16-7.16-16-16v-16c0-8.84 7.16-16 16-16h192c8.84 0 16 7.16 16 16v16z"]
  111994. };
  111995. var faFolderOpen = {
  111996. prefix: 'fas',
  111997. iconName: 'folder-open',
  111998. icon: [576, 512, [], "f07c", "M572.694 292.093L500.27 416.248A63.997 63.997 0 0 1 444.989 448H45.025c-18.523 0-30.064-20.093-20.731-36.093l72.424-124.155A64 64 0 0 1 152 256h399.964c18.523 0 30.064 20.093 20.73 36.093zM152 224h328v-48c0-26.51-21.49-48-48-48H272l-64-64H48C21.49 64 0 85.49 0 112v278.046l69.077-118.418C86.214 242.25 117.989 224 152 224z"]
  111999. };
  112000. var faFolderPlus = {
  112001. prefix: 'fas',
  112002. iconName: 'folder-plus',
  112003. icon: [512, 512, [], "f65e", "M464,128H272L208,64H48A48,48,0,0,0,0,112V400a48,48,0,0,0,48,48H464a48,48,0,0,0,48-48V176A48,48,0,0,0,464,128ZM359.5,296a16,16,0,0,1-16,16h-64v64a16,16,0,0,1-16,16h-16a16,16,0,0,1-16-16V312h-64a16,16,0,0,1-16-16V280a16,16,0,0,1,16-16h64V200a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16v64h64a16,16,0,0,1,16,16Z"]
  112004. };
  112005. var faFont = {
  112006. prefix: 'fas',
  112007. iconName: 'font',
  112008. icon: [448, 512, [], "f031", "M432 416h-23.41L277.88 53.69A32 32 0 0 0 247.58 32h-47.16a32 32 0 0 0-30.3 21.69L39.41 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-19.58l23.3-64h152.56l23.3 64H304a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM176.85 272L224 142.51 271.15 272z"]
  112009. };
  112010. var faFontAwesomeLogoFull = {
  112011. prefix: 'fas',
  112012. iconName: 'font-awesome-logo-full',
  112013. icon: [3992, 512, ["Font Awesome"], "f4e6", "M454.6 0H57.4C25.9 0 0 25.9 0 57.4v397.3C0 486.1 25.9 512 57.4 512h397.3c31.4 0 57.4-25.9 57.4-57.4V57.4C512 25.9 486.1 0 454.6 0zm-58.9 324.9c0 4.8-4.1 6.9-8.9 8.9-19.2 8.1-39.7 15.7-61.5 15.7-40.5 0-68.7-44.8-163.2 2.5v51.8c0 30.3-45.7 30.2-45.7 0v-250c-9-7-15-17.9-15-30.3 0-21 17.1-38.2 38.2-38.2 21 0 38.2 17.1 38.2 38.2 0 12.2-5.8 23.2-14.9 30.2v21c37.1-12 65.5-34.4 146.1-3.4 26.6 11.4 68.7-15.7 76.5-15.7 5.5 0 10.3 4.1 10.3 8.9v160.4zm432.9-174.2h-137v70.1H825c39.8 0 40.4 62.2 0 62.2H691.6v105.6c0 45.5-70.7 46.4-70.7 0V128.3c0-22 18-39.8 39.8-39.8h167.8c39.6 0 40.5 62.2.1 62.2zm191.1 23.4c-169.3 0-169.1 252.4 0 252.4 169.9 0 169.9-252.4 0-252.4zm0 196.1c-81.6 0-82.1-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm372.4 53.4c-17.5 0-31.4-13.9-31.4-31.4v-117c0-62.4-72.6-52.5-99.1-16.4v133.4c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c43.3-51.6 162.4-60.4 162.4 39.3v141.5c.3 30.4-31.5 31.4-31.7 31.4zm179.7 2.9c-44.3 0-68.3-22.9-68.3-65.8V235.2H1488c-35.6 0-36.7-55.3 0-55.3h15.5v-37.3c0-41.3 63.8-42.1 63.8 0v37.5h24.9c35.4 0 35.7 55.3 0 55.3h-24.9v108.5c0 29.6 26.1 26.3 27.4 26.3 31.4 0 52.6 56.3-22.9 56.3zM1992 123c-19.5-50.2-95.5-50-114.5 0-107.3 275.7-99.5 252.7-99.5 262.8 0 42.8 58.3 51.2 72.1 14.4l13.5-35.9H2006l13 35.9c14.2 37.7 72.1 27.2 72.1-14.4 0-10.1 5.3 6.8-99.1-262.8zm-108.9 179.1l51.7-142.9 51.8 142.9h-103.5zm591.3-85.6l-53.7 176.3c-12.4 41.2-72 41-84 0l-42.3-135.9-42.3 135.9c-12.4 40.9-72 41.2-84.5 0l-54.2-176.3c-12.5-39.4 49.8-56.1 60.2-16.9L2213 342l45.3-139.5c10.9-32.7 59.6-34.7 71.2 0l45.3 139.5 39.3-142.4c10.3-38.3 72.6-23.8 60.3 16.9zm275.4 75.1c0-42.4-33.9-117.5-119.5-117.5-73.2 0-124.4 56.3-124.4 126 0 77.2 55.3 126.4 128.5 126.4 31.7 0 93-11.5 93-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-109 8.4-115.9-43.8h148.3c16.3 0 29.3-13.4 29.3-28.9zM2571 277.7c9.5-73.4 113.9-68.6 118.6 0H2571zm316.7 148.8c-31.4 0-81.6-10.5-96.6-31.9-12.4-17 2.5-39.8 21.8-39.8 16.3 0 36.8 22.9 77.7 22.9 27.4 0 40.4-11 40.4-25.8 0-39.8-142.9-7.4-142.9-102 0-40.4 35.3-75.7 98.6-75.7 31.4 0 74.1 9.9 87.6 29.4 10.8 14.8-1.4 36.2-20.9 36.2-15.1 0-26.7-17.3-66.2-17.3-22.9 0-37.8 10.5-37.8 23.8 0 35.9 142.4 6 142.4 103.1-.1 43.7-37.4 77.1-104.1 77.1zm266.8-252.4c-169.3 0-169.1 252.4 0 252.4 170.1 0 169.6-252.4 0-252.4zm0 196.1c-81.8 0-82-139.8 0-139.8 82.5 0 82.4 139.8 0 139.8zm476.9 22V268.7c0-53.8-61.4-45.8-85.7-10.5v134c0 41.3-63.8 42.1-63.8 0V268.7c0-52.1-59.5-47.4-85.7-10.1v133.6c0 41.5-63.3 41.8-63.3 0V208c0-40 63.1-41.6 63.1 0v3.4c9.9-14.4 41.8-37.3 78.6-37.3 35.3 0 57.7 16.4 66.7 43.8 13.9-21.8 45.8-43.8 82.6-43.8 44.3 0 70.7 23.4 70.7 72.7v145.3c.5 17.3-13.5 31.4-31.9 31.4 3.5.1-31.3 1.1-31.3-31.3zM3992 291.6c0-42.4-32.4-117.5-117.9-117.5-73.2 0-127.5 56.3-127.5 126 0 77.2 58.3 126.4 131.6 126.4 31.7 0 91.5-11.5 91.5-39.8 0-18.3-21.1-31.5-39.3-22.4-49.4 26.2-110.5 8.4-117.5-43.8h149.8c16.3 0 29.1-13.4 29.3-28.9zm-180.5-13.9c9.7-74.4 115.9-68.3 120.1 0h-120.1z"]
  112014. };
  112015. var faFootballBall = {
  112016. prefix: 'fas',
  112017. iconName: 'football-ball',
  112018. icon: [496, 512, [], "f44e", "M481.5 60.3c-4.8-18.2-19.1-32.5-37.3-37.4C420.3 16.5 383 8.9 339.4 8L496 164.8c-.8-43.5-8.2-80.6-14.5-104.5zm-467 391.4c4.8 18.2 19.1 32.5 37.3 37.4 23.9 6.4 61.2 14 104.8 14.9L0 347.2c.8 43.5 8.2 80.6 14.5 104.5zM4.2 283.4L220.4 500c132.5-19.4 248.8-118.7 271.5-271.4L275.6 12C143.1 31.4 26.8 130.7 4.2 283.4zm317.3-123.6c3.1-3.1 8.2-3.1 11.3 0l11.3 11.3c3.1 3.1 3.1 8.2 0 11.3l-28.3 28.3 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-22.6 22.7 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L248 278.6l-22.6 22.6 28.3 28.3c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-28.3-28.3-28.3 28.3c-3.1 3.1-8.2 3.1-11.3 0l-11.3-11.3c-3.1-3.1-3.1-8.2 0-11.3l28.3-28.3-28.3-28.2c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 22.6-22.6-28.3-28.3c-3.1-3.1-3.1-8.2 0-11.3l11.3-11.3c3.1-3.1 8.2-3.1 11.3 0l28.3 28.3 28.3-28.5z"]
  112019. };
  112020. var faForward = {
  112021. prefix: 'fas',
  112022. iconName: 'forward',
  112023. icon: [512, 512, [], "f04e", "M500.5 231.4l-192-160C287.9 54.3 256 68.6 256 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2zm-256 0l-192-160C31.9 54.3 0 68.6 0 96v320c0 27.4 31.9 41.8 52.5 24.6l192-160c15.3-12.8 15.3-36.4 0-49.2z"]
  112024. };
  112025. var faFrog = {
  112026. prefix: 'fas',
  112027. iconName: 'frog',
  112028. icon: [576, 512, [], "f52e", "M446.53 97.43C439.67 60.23 407.19 32 368 32c-39.23 0-71.72 28.29-78.54 65.54C126.75 112.96-.5 250.12 0 416.98.11 451.9 29.08 480 64 480h304c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-79.49l35.8-48.33c24.14-36.23 10.35-88.28-33.71-106.6-23.89-9.93-51.55-4.65-72.24 10.88l-32.76 24.59c-7.06 5.31-17.09 3.91-22.41-3.19-5.3-7.08-3.88-17.11 3.19-22.41l34.78-26.09c36.84-27.66 88.28-27.62 125.13 0 10.87 8.15 45.87 39.06 40.8 93.21L469.62 480H560c8.84 0 16-7.16 16-16 0-17.67-14.33-32-32-32h-53.63l-98.52-104.68 154.44-86.65A58.16 58.16 0 0 0 576 189.94c0-21.4-11.72-40.95-30.48-51.23-40.56-22.22-98.99-41.28-98.99-41.28zM368 136c-13.26 0-24-10.75-24-24 0-13.26 10.74-24 24-24 13.25 0 24 10.74 24 24 0 13.25-10.75 24-24 24z"]
  112029. };
  112030. var faFrown = {
  112031. prefix: 'fas',
  112032. iconName: 'frown',
  112033. icon: [496, 512, [], "f119", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm170.2 218.2C315.8 367.4 282.9 352 248 352s-67.8 15.4-90.2 42.2c-13.5 16.3-38.1-4.2-24.6-20.5C161.7 339.6 203.6 320 248 320s86.3 19.6 114.7 53.8c13.6 16.2-11 36.7-24.5 20.4z"]
  112034. };
  112035. var faFrownOpen = {
  112036. prefix: 'fas',
  112037. iconName: 'frown-open',
  112038. icon: [496, 512, [], "f57a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm187.3 183.3c-31.2-9.6-59.4-15.3-75.3-15.3s-44.1 5.7-75.3 15.3c-11.5 3.5-22.5-6.3-20.5-18.1 7-40 60.1-61.2 95.8-61.2s88.8 21.3 95.8 61.2c2 11.9-9.1 21.6-20.5 18.1zM328 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  112039. };
  112040. var faFunnelDollar = {
  112041. prefix: 'fas',
  112042. iconName: 'funnel-dollar',
  112043. icon: [640, 512, [], "f662", "M433.46 165.94l101.2-111.87C554.61 34.12 540.48 0 512.26 0H31.74C3.52 0-10.61 34.12 9.34 54.07L192 256v155.92c0 12.59 5.93 24.44 16 32l79.99 60c20.86 15.64 48.47 6.97 59.22-13.57C310.8 455.38 288 406.35 288 352c0-89.79 62.05-165.17 145.46-186.06zM480 192c-88.37 0-160 71.63-160 160s71.63 160 160 160 160-71.63 160-160-71.63-160-160-160zm16 239.88V448c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V256c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.04 44.44-42.67 45.07z"]
  112044. };
  112045. var faFutbol = {
  112046. prefix: 'fas',
  112047. iconName: 'futbol',
  112048. icon: [512, 512, [], "f1e3", "M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zm-48 0l-.003-.282-26.064 22.741-62.679-58.5 16.454-84.355 34.303 3.072c-24.889-34.216-60.004-60.089-100.709-73.141l13.651 31.939L256 139l-74.953-41.525 13.651-31.939c-40.631 13.028-75.78 38.87-100.709 73.141l34.565-3.073 16.192 84.355-62.678 58.5-26.064-22.741-.003.282c0 43.015 13.497 83.952 38.472 117.991l7.704-33.897 85.138 10.447 36.301 77.826-29.902 17.786c40.202 13.122 84.29 13.148 124.572 0l-29.902-17.786 36.301-77.826 85.138-10.447 7.704 33.897C442.503 339.952 456 299.015 456 256zm-248.102 69.571l-29.894-91.312L256 177.732l77.996 56.527-29.622 91.312h-96.476z"]
  112049. };
  112050. var faGamepad = {
  112051. prefix: 'fas',
  112052. iconName: 'gamepad',
  112053. icon: [640, 512, [], "f11b", "M480.07 96H160a160 160 0 1 0 114.24 272h91.52A160 160 0 1 0 480.07 96zM248 268a12 12 0 0 1-12 12h-52v52a12 12 0 0 1-12 12h-24a12 12 0 0 1-12-12v-52H84a12 12 0 0 1-12-12v-24a12 12 0 0 1 12-12h52v-52a12 12 0 0 1 12-12h24a12 12 0 0 1 12 12v52h52a12 12 0 0 1 12 12zm216 76a40 40 0 1 1 40-40 40 40 0 0 1-40 40zm64-96a40 40 0 1 1 40-40 40 40 0 0 1-40 40z"]
  112054. };
  112055. var faGasPump = {
  112056. prefix: 'fas',
  112057. iconName: 'gas-pump',
  112058. icon: [512, 512, [], "f52f", "M336 448H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm157.2-340.7l-81-81c-6.2-6.2-16.4-6.2-22.6 0l-11.3 11.3c-6.2 6.2-6.2 16.4 0 22.6L416 97.9V160c0 28.1 20.9 51.3 48 55.2V376c0 13.2-10.8 24-24 24s-24-10.8-24-24v-32c0-48.6-39.4-88-88-88h-8V64c0-35.3-28.7-64-64-64H96C60.7 0 32 28.7 32 64v352h288V304h8c22.1 0 40 17.9 40 40v27.8c0 37.7 27 72 64.5 75.9 43 4.3 79.5-29.5 79.5-71.7V152.6c0-17-6.8-33.3-18.8-45.3zM256 192H96V64h160v128z"]
  112059. };
  112060. var faGavel = {
  112061. prefix: 'fas',
  112062. iconName: 'gavel',
  112063. icon: [512, 512, [], "f0e3", "M504.971 199.362l-22.627-22.627c-9.373-9.373-24.569-9.373-33.941 0l-5.657 5.657L329.608 69.255l5.657-5.657c9.373-9.373 9.373-24.569 0-33.941L312.638 7.029c-9.373-9.373-24.569-9.373-33.941 0L154.246 131.48c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l5.657-5.657 39.598 39.598-81.04 81.04-5.657-5.657c-12.497-12.497-32.758-12.497-45.255 0L9.373 412.118c-12.497 12.497-12.497 32.758 0 45.255l45.255 45.255c12.497 12.497 32.758 12.497 45.255 0l114.745-114.745c12.497-12.497 12.497-32.758 0-45.255l-5.657-5.657 81.04-81.04 39.598 39.598-5.657 5.657c-9.373 9.373-9.373 24.569 0 33.941l22.627 22.627c9.373 9.373 24.569 9.373 33.941 0l124.451-124.451c9.372-9.372 9.372-24.568 0-33.941z"]
  112064. };
  112065. var faGem = {
  112066. prefix: 'fas',
  112067. iconName: 'gem',
  112068. icon: [576, 512, [], "f3a5", "M485.5 0L576 160H474.9L405.7 0h79.8zm-128 0l69.2 160H149.3L218.5 0h139zm-267 0h79.8l-69.2 160H0L90.5 0zM0 192h100.7l123 251.7c1.5 3.1-2.7 5.9-5 3.3L0 192zm148.2 0h279.6l-137 318.2c-1 2.4-4.5 2.4-5.5 0L148.2 192zm204.1 251.7l123-251.7H576L357.3 446.9c-2.3 2.7-6.5-.1-5-3.2z"]
  112069. };
  112070. var faGenderless = {
  112071. prefix: 'fas',
  112072. iconName: 'genderless',
  112073. icon: [288, 512, [], "f22d", "M144 176c44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80 35.9-80 80-80m0-64C64.5 112 0 176.5 0 256s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"]
  112074. };
  112075. var faGhost = {
  112076. prefix: 'fas',
  112077. iconName: 'ghost',
  112078. icon: [384, 512, [], "f6e2", "M186.1.09C81.01 3.24 0 94.92 0 200.05v263.92c0 14.26 17.23 21.39 27.31 11.31l24.92-18.53c6.66-4.95 16-3.99 21.51 2.21l42.95 48.35c6.25 6.25 16.38 6.25 22.63 0l40.72-45.85c6.37-7.17 17.56-7.17 23.92 0l40.72 45.85c6.25 6.25 16.38 6.25 22.63 0l42.95-48.35c5.51-6.2 14.85-7.17 21.51-2.21l24.92 18.53c10.08 10.08 27.31 2.94 27.31-11.31V192C384 84 294.83-3.17 186.1.09zM128 224c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm128 0c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  112079. };
  112080. var faGift = {
  112081. prefix: 'fas',
  112082. iconName: 'gift',
  112083. icon: [512, 512, [], "f06b", "M32 448c0 17.7 14.3 32 32 32h160V320H32v128zm256 32h160c17.7 0 32-14.3 32-32V320H288v160zm192-320h-42.1c6.2-12.1 10.1-25.5 10.1-40 0-48.5-39.5-88-88-88-41.6 0-68.5 21.3-103 68.3-34.5-47-61.4-68.3-103-68.3-48.5 0-88 39.5-88 88 0 14.5 3.8 27.9 10.1 40H32c-17.7 0-32 14.3-32 32v80c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-80c0-17.7-14.3-32-32-32zm-326.1 0c-22.1 0-40-17.9-40-40s17.9-40 40-40c19.9 0 34.6 3.3 86.1 80h-86.1zm206.1 0h-86.1c51.4-76.5 65.7-80 86.1-80 22.1 0 40 17.9 40 40s-17.9 40-40 40z"]
  112084. };
  112085. var faGifts = {
  112086. prefix: 'fas',
  112087. iconName: 'gifts',
  112088. icon: [640, 512, [], "f79c", "M240.6 194.1c1.9-30.8 17.3-61.2 44-79.8C279.4 103.5 268.7 96 256 96h-29.4l30.7-22c7.2-5.1 8.9-15.1 3.7-22.3l-9.3-13c-5.1-7.2-15.1-8.9-22.3-3.7l-32 22.9 11.5-30.6c3.1-8.3-1.1-17.5-9.4-20.6l-15-5.6c-8.3-3.1-17.5 1.1-20.6 9.4l-19.9 53-19.9-53.1C121 2.1 111.8-2.1 103.5 1l-15 5.6C80.2 9.7 76 19 79.2 27.2l11.5 30.6L58.6 35c-7.2-5.1-17.2-3.5-22.3 3.7l-9.3 13c-5.1 7.2-3.5 17.2 3.7 22.3l30.7 22H32c-17.7 0-32 14.3-32 32v352c0 17.7 14.3 32 32 32h168.9c-5.5-9.5-8.9-20.3-8.9-32V256c0-29.9 20.8-55 48.6-61.9zM224 480c0 17.7 14.3 32 32 32h160V384H224v96zm224 32h160c17.7 0 32-14.3 32-32v-96H448v128zm160-288h-20.4c2.6-7.6 4.4-15.5 4.4-23.8 0-35.5-27-72.2-72.1-72.2-48.1 0-75.9 47.7-87.9 75.3-12.1-27.6-39.9-75.3-87.9-75.3-45.1 0-72.1 36.7-72.1 72.2 0 8.3 1.7 16.2 4.4 23.8H256c-17.7 0-32 14.3-32 32v96h192V224h15.3l.7-.2.7.2H448v128h192v-96c0-17.7-14.3-32-32-32zm-272 0c-2.7-1.4-5.1-3-7.2-4.8-7.3-6.4-8.8-13.8-8.8-19 0-9.7 6.4-24.2 24.1-24.2 18.7 0 35.6 27.4 44.5 48H336zm199.2-4.8c-2.1 1.8-4.5 3.4-7.2 4.8h-52.6c8.8-20.3 25.8-48 44.5-48 17.7 0 24.1 14.5 24.1 24.2 0 5.2-1.5 12.6-8.8 19z"]
  112089. };
  112090. var faGlassCheers = {
  112091. prefix: 'fas',
  112092. iconName: 'glass-cheers',
  112093. icon: [640, 512, [], "f79f", "M639.4 433.6c-8.4-20.4-31.8-30.1-52.2-21.6l-22.1 9.2-38.7-101.9c47.9-35 64.8-100.3 34.5-152.8L474.3 16c-8-13.9-25.1-19.7-40-13.6L320 49.8 205.7 2.4c-14.9-6.2-32-.3-40 13.6L79.1 166.5C48.9 219 65.7 284.3 113.6 319.2L74.9 421.1l-22.1-9.2c-20.4-8.5-43.7 1.2-52.2 21.6-1.7 4.1.2 8.8 4.3 10.5l162.3 67.4c4.1 1.7 8.7-.2 10.4-4.3 8.4-20.4-1.2-43.8-21.6-52.3l-22.1-9.2L173.3 342c4.4.5 8.8 1.3 13.1 1.3 51.7 0 99.4-33.1 113.4-85.3l20.2-75.4 20.2 75.4c14 52.2 61.7 85.3 113.4 85.3 4.3 0 8.7-.8 13.1-1.3L506 445.6l-22.1 9.2c-20.4 8.5-30.1 31.9-21.6 52.3 1.7 4.1 6.4 6 10.4 4.3L635.1 444c4-1.7 6-6.3 4.3-10.4zM275.9 162.1l-112.1-46.5 36.5-63.4 94.5 39.2-18.9 70.7zm88.2 0l-18.9-70.7 94.5-39.2 36.5 63.4-112.1 46.5z"]
  112094. };
  112095. var faGlassMartini = {
  112096. prefix: 'fas',
  112097. iconName: 'glass-martini',
  112098. icon: [512, 512, [], "f000", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6z"]
  112099. };
  112100. var faGlassMartiniAlt = {
  112101. prefix: 'fas',
  112102. iconName: 'glass-martini-alt',
  112103. icon: [512, 512, [], "f57b", "M502.05 57.6C523.3 36.34 508.25 0 478.2 0H33.8C3.75 0-11.3 36.34 9.95 57.6L224 271.64V464h-56c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h240c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40h-56V271.64L502.05 57.6zM443.77 48l-48 48H116.24l-48-48h375.53z"]
  112104. };
  112105. var faGlassWhiskey = {
  112106. prefix: 'fas',
  112107. iconName: 'glass-whiskey',
  112108. icon: [512, 512, [], "f7a0", "M480 32H32C12.5 32-2.4 49.2.3 68.5l56 356.5c4.5 31.5 31.5 54.9 63.4 54.9h273c31.8 0 58.9-23.4 63.4-54.9l55.6-356.5C514.4 49.2 499.5 32 480 32zm-37.4 64l-30 192h-313L69.4 96h373.2z"]
  112109. };
  112110. var faGlasses = {
  112111. prefix: 'fas',
  112112. iconName: 'glasses',
  112113. icon: [576, 512, [], "f530", "M574.1 280.37L528.75 98.66c-5.91-23.7-21.59-44.05-43-55.81-21.44-11.73-46.97-14.11-70.19-6.33l-15.25 5.08c-8.39 2.79-12.92 11.86-10.12 20.24l5.06 15.18c2.79 8.38 11.85 12.91 20.23 10.12l13.18-4.39c10.87-3.62 23-3.57 33.16 1.73 10.29 5.37 17.57 14.56 20.37 25.82l38.46 153.82c-22.19-6.81-49.79-12.46-81.2-12.46-34.77 0-73.98 7.02-114.85 26.74h-73.18c-40.87-19.74-80.08-26.75-114.86-26.75-31.42 0-59.02 5.65-81.21 12.46l38.46-153.83c2.79-11.25 10.09-20.45 20.38-25.81 10.16-5.3 22.28-5.35 33.15-1.73l13.17 4.39c8.38 2.79 17.44-1.74 20.23-10.12l5.06-15.18c2.8-8.38-1.73-17.45-10.12-20.24l-15.25-5.08c-23.22-7.78-48.75-5.41-70.19 6.33-21.41 11.77-37.09 32.11-43 55.8L1.9 280.37A64.218 64.218 0 0 0 0 295.86v70.25C0 429.01 51.58 480 115.2 480h37.12c60.28 0 110.37-45.94 114.88-105.37l2.93-38.63h35.75l2.93 38.63C313.31 434.06 363.4 480 423.68 480h37.12c63.62 0 115.2-50.99 115.2-113.88v-70.25c0-5.23-.64-10.43-1.9-15.5zm-370.72 89.42c-1.97 25.91-24.4 46.21-51.06 46.21H115.2C86.97 416 64 393.62 64 366.11v-37.54c18.12-6.49 43.42-12.92 72.58-12.92 23.86 0 47.26 4.33 69.93 12.92l-3.13 41.22zM512 366.12c0 27.51-22.97 49.88-51.2 49.88h-37.12c-26.67 0-49.1-20.3-51.06-46.21l-3.13-41.22c22.67-8.59 46.08-12.92 69.95-12.92 29.12 0 54.43 6.44 72.55 12.93v37.54z"]
  112114. };
  112115. var faGlobe = {
  112116. prefix: 'fas',
  112117. iconName: 'globe',
  112118. icon: [496, 512, [], "f0ac", "M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"]
  112119. };
  112120. var faGlobeAfrica = {
  112121. prefix: 'fas',
  112122. iconName: 'globe-africa',
  112123. icon: [496, 512, [], "f57c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm160 215.5v6.93c0 5.87-3.32 11.24-8.57 13.86l-15.39 7.7a15.485 15.485 0 0 1-15.53-.97l-18.21-12.14a15.52 15.52 0 0 0-13.5-1.81l-2.65.88c-9.7 3.23-13.66 14.79-7.99 23.3l13.24 19.86c2.87 4.31 7.71 6.9 12.89 6.9h8.21c8.56 0 15.5 6.94 15.5 15.5v11.34c0 3.35-1.09 6.62-3.1 9.3l-18.74 24.98c-1.42 1.9-2.39 4.1-2.83 6.43l-4.3 22.83c-.62 3.29-2.29 6.29-4.76 8.56a159.608 159.608 0 0 0-25 29.16l-13.03 19.55a27.756 27.756 0 0 1-23.09 12.36c-10.51 0-20.12-5.94-24.82-15.34a78.902 78.902 0 0 1-8.33-35.29V367.5c0-8.56-6.94-15.5-15.5-15.5h-25.88c-14.49 0-28.38-5.76-38.63-16a54.659 54.659 0 0 1-16-38.63v-14.06c0-17.19 8.1-33.38 21.85-43.7l27.58-20.69a54.663 54.663 0 0 1 32.78-10.93h.89c8.48 0 16.85 1.97 24.43 5.77l14.72 7.36c3.68 1.84 7.93 2.14 11.83.84l47.31-15.77c6.33-2.11 10.6-8.03 10.6-14.7 0-8.56-6.94-15.5-15.5-15.5h-10.09c-4.11 0-8.05-1.63-10.96-4.54l-6.92-6.92a15.493 15.493 0 0 0-10.96-4.54H199.5c-8.56 0-15.5-6.94-15.5-15.5v-4.4c0-7.11 4.84-13.31 11.74-15.04l14.45-3.61c3.74-.94 7-3.23 9.14-6.44l8.08-12.11c2.87-4.31 7.71-6.9 12.89-6.9h24.21c8.56 0 15.5-6.94 15.5-15.5v-21.7C359.23 71.63 422.86 131.02 441.93 208H423.5c-8.56 0-15.5 6.94-15.5 15.5z"]
  112124. };
  112125. var faGlobeAmericas = {
  112126. prefix: 'fas',
  112127. iconName: 'globe-americas',
  112128. icon: [496, 512, [], "f57d", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm82.29 357.6c-3.9 3.88-7.99 7.95-11.31 11.28-2.99 3-5.1 6.7-6.17 10.71-1.51 5.66-2.73 11.38-4.77 16.87l-17.39 46.85c-13.76 3-28 4.69-42.65 4.69v-27.38c1.69-12.62-7.64-36.26-22.63-51.25-6-6-9.37-14.14-9.37-22.63v-32.01c0-11.64-6.27-22.34-16.46-27.97-14.37-7.95-34.81-19.06-48.81-26.11-11.48-5.78-22.1-13.14-31.65-21.75l-.8-.72a114.792 114.792 0 0 1-18.06-20.74c-9.38-13.77-24.66-36.42-34.59-51.14 20.47-45.5 57.36-82.04 103.2-101.89l24.01 12.01C203.48 89.74 216 82.01 216 70.11v-11.3c7.99-1.29 16.12-2.11 24.39-2.42l28.3 28.3c6.25 6.25 6.25 16.38 0 22.63L264 112l-10.34 10.34c-3.12 3.12-3.12 8.19 0 11.31l4.69 4.69c3.12 3.12 3.12 8.19 0 11.31l-8 8a8.008 8.008 0 0 1-5.66 2.34h-8.99c-2.08 0-4.08.81-5.58 2.27l-9.92 9.65a8.008 8.008 0 0 0-1.58 9.31l15.59 31.19c2.66 5.32-1.21 11.58-7.15 11.58h-5.64c-1.93 0-3.79-.7-5.24-1.96l-9.28-8.06a16.017 16.017 0 0 0-15.55-3.1l-31.17 10.39a11.95 11.95 0 0 0-8.17 11.34c0 4.53 2.56 8.66 6.61 10.69l11.08 5.54c9.41 4.71 19.79 7.16 30.31 7.16s22.59 27.29 32 32h66.75c8.49 0 16.62 3.37 22.63 9.37l13.69 13.69a30.503 30.503 0 0 1 8.93 21.57 46.536 46.536 0 0 1-13.72 32.98zM417 274.25c-5.79-1.45-10.84-5-14.15-9.97l-17.98-26.97a23.97 23.97 0 0 1 0-26.62l19.59-29.38c2.32-3.47 5.5-6.29 9.24-8.15l12.98-6.49C440.2 193.59 448 223.87 448 256c0 8.67-.74 17.16-1.82 25.54L417 274.25z"]
  112129. };
  112130. var faGlobeAsia = {
  112131. prefix: 'fas',
  112132. iconName: 'globe-asia',
  112133. icon: [496, 512, [], "f57e", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm-11.34 240.23c-2.89 4.82-8.1 7.77-13.72 7.77h-.31c-4.24 0-8.31 1.69-11.31 4.69l-5.66 5.66c-3.12 3.12-3.12 8.19 0 11.31l5.66 5.66c3 3 4.69 7.07 4.69 11.31V304c0 8.84-7.16 16-16 16h-6.11c-6.06 0-11.6-3.42-14.31-8.85l-22.62-45.23c-2.44-4.88-8.95-5.94-12.81-2.08l-19.47 19.46c-3 3-7.07 4.69-11.31 4.69H50.81C49.12 277.55 48 266.92 48 256c0-110.28 89.72-200 200-200 21.51 0 42.2 3.51 61.63 9.82l-50.16 38.53c-5.11 3.41-4.63 11.06.86 13.81l10.83 5.41c5.42 2.71 8.84 8.25 8.84 14.31V216c0 4.42-3.58 8-8 8h-3.06c-3.03 0-5.8-1.71-7.15-4.42-1.56-3.12-5.96-3.29-7.76-.3l-17.37 28.95zM408 358.43c0 4.24-1.69 8.31-4.69 11.31l-9.57 9.57c-3 3-7.07 4.69-11.31 4.69h-15.16c-4.24 0-8.31-1.69-11.31-4.69l-13.01-13.01a26.767 26.767 0 0 0-25.42-7.04l-21.27 5.32c-1.27.32-2.57.48-3.88.48h-10.34c-4.24 0-8.31-1.69-11.31-4.69l-11.91-11.91a8.008 8.008 0 0 1-2.34-5.66v-10.2c0-3.27 1.99-6.21 5.03-7.43l39.34-15.74c1.98-.79 3.86-1.82 5.59-3.05l23.71-16.89a7.978 7.978 0 0 1 4.64-1.48h12.09c3.23 0 6.15 1.94 7.39 4.93l5.35 12.85a4 4 0 0 0 3.69 2.46h3.8c1.78 0 3.35-1.18 3.84-2.88l4.2-14.47c.5-1.71 2.06-2.88 3.84-2.88h6.06c2.21 0 4 1.79 4 4v12.93c0 2.12.84 4.16 2.34 5.66l11.91 11.91c3 3 4.69 7.07 4.69 11.31v24.6z"]
  112134. };
  112135. var faGlobeEurope = {
  112136. prefix: 'fas',
  112137. iconName: 'globe-europe',
  112138. icon: [496, 512, [], "f7a2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm200 248c0 22.5-3.9 44.2-10.8 64.4h-20.3c-4.3 0-8.4-1.7-11.4-4.8l-32-32.6c-4.5-4.6-4.5-12.1.1-16.7l12.5-12.5v-8.7c0-3-1.2-5.9-3.3-8l-9.4-9.4c-2.1-2.1-5-3.3-8-3.3h-16c-6.2 0-11.3-5.1-11.3-11.3 0-3 1.2-5.9 3.3-8l9.4-9.4c2.1-2.1 5-3.3 8-3.3h32c6.2 0 11.3-5.1 11.3-11.3v-9.4c0-6.2-5.1-11.3-11.3-11.3h-36.7c-8.8 0-16 7.2-16 16v4.5c0 6.9-4.4 13-10.9 15.2l-31.6 10.5c-3.3 1.1-5.5 4.1-5.5 7.6v2.2c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8s-3.6-8-8-8H247c-3 0-5.8 1.7-7.2 4.4l-9.4 18.7c-2.7 5.4-8.2 8.8-14.3 8.8H194c-8.8 0-16-7.2-16-16V199c0-4.2 1.7-8.3 4.7-11.3l20.1-20.1c4.6-4.6 7.2-10.9 7.2-17.5 0-3.4 2.2-6.5 5.5-7.6l40-13.3c1.7-.6 3.2-1.5 4.4-2.7l26.8-26.8c2.1-2.1 3.3-5 3.3-8 0-6.2-5.1-11.3-11.3-11.3H258l-16 16v8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-20c0-2.5 1.2-4.9 3.2-6.4l28.9-21.7c1.9-.1 3.8-.3 5.7-.3C358.3 56 448 145.7 448 256zM130.1 149.1c0-3 1.2-5.9 3.3-8l25.4-25.4c2.1-2.1 5-3.3 8-3.3 6.2 0 11.3 5.1 11.3 11.3v16c0 3-1.2 5.9-3.3 8l-9.4 9.4c-2.1 2.1-5 3.3-8 3.3h-16c-6.2 0-11.3-5.1-11.3-11.3zm128 306.4v-7.1c0-8.8-7.2-16-16-16h-20.2c-10.8 0-26.7-5.3-35.4-11.8l-22.2-16.7c-11.5-8.6-18.2-22.1-18.2-36.4v-23.9c0-16 8.4-30.8 22.1-39l42.9-25.7c7.1-4.2 15.2-6.5 23.4-6.5h31.2c10.9 0 21.4 3.9 29.6 10.9l43.2 37.1h18.3c8.5 0 16.6 3.4 22.6 9.4l17.3 17.3c3.4 3.4 8.1 5.3 12.9 5.3H423c-32.4 58.9-93.8 99.5-164.9 103.1z"]
  112139. };
  112140. var faGolfBall = {
  112141. prefix: 'fas',
  112142. iconName: 'golf-ball',
  112143. icon: [416, 512, [], "f450", "M96 416h224c0 17.7-14.3 32-32 32h-16c-17.7 0-32 14.3-32 32v20c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-20c0-17.7-14.3-32-32-32h-16c-17.7 0-32-14.3-32-32zm320-208c0 74.2-39 139.2-97.5 176h-221C39 347.2 0 282.2 0 208 0 93.1 93.1 0 208 0s208 93.1 208 208zm-180.1 43.9c18.3 0 33.1-14.8 33.1-33.1 0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1zm49.1 46.9c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1zm64-64c0-14.4-9.3-26.3-22.1-30.9 9.6 26.8-15.6 51.3-41.9 41.9 4.6 12.8 16.5 22.1 30.9 22.1 18.3 0 33.1-14.9 33.1-33.1z"]
  112144. };
  112145. var faGopuram = {
  112146. prefix: 'fas',
  112147. iconName: 'gopuram',
  112148. icon: [512, 512, [], "f664", "M496 352h-16V240c0-8.8-7.2-16-16-16h-16v-80c0-8.8-7.2-16-16-16h-16V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16s-16 7.2-16 16v16h-64V16c0-8.8-7.2-16-16-16S96 7.2 96 16v112H80c-8.8 0-16 7.2-16 16v80H48c-8.8 0-16 7.2-16 16v112H16c-8.8 0-16 7.2-16 16v128c0 8.8 7.2 16 16 16h80V352h32V224h32v-96h32v96h-32v128h-32v160h80v-80c0-8.8 7.2-16 16-16h64c8.8 0 16 7.2 16 16v80h80V352h-32V224h-32v-96h32v96h32v128h32v160h80c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zM232 176c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v48h-48zm56 176h-64v-64c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16z"]
  112149. };
  112150. var faGraduationCap = {
  112151. prefix: 'fas',
  112152. iconName: 'graduation-cap',
  112153. icon: [640, 512, [], "f19d", "M622.34 153.2L343.4 67.5c-15.2-4.67-31.6-4.67-46.79 0L17.66 153.2c-23.54 7.23-23.54 38.36 0 45.59l48.63 14.94c-10.67 13.19-17.23 29.28-17.88 46.9C38.78 266.15 32 276.11 32 288c0 10.78 5.68 19.85 13.86 25.65L20.33 428.53C18.11 438.52 25.71 448 35.94 448h56.11c10.24 0 17.84-9.48 15.62-19.47L82.14 313.65C90.32 307.85 96 298.78 96 288c0-11.57-6.47-21.25-15.66-26.87.76-15.02 8.44-28.3 20.69-36.72L296.6 284.5c9.06 2.78 26.44 6.25 46.79 0l278.95-85.7c23.55-7.24 23.55-38.36 0-45.6zM352.79 315.09c-28.53 8.76-52.84 3.92-65.59 0l-145.02-44.55L128 384c0 35.35 85.96 64 192 64s192-28.65 192-64l-14.18-113.47-145.03 44.56z"]
  112154. };
  112155. var faGreaterThan = {
  112156. prefix: 'fas',
  112157. iconName: 'greater-than',
  112158. icon: [384, 512, [], "f531", "M365.52 209.85L59.22 67.01c-16.06-7.49-35.15-.54-42.64 15.52L3.01 111.61c-7.49 16.06-.54 35.15 15.52 42.64L236.96 256.1 18.49 357.99C2.47 365.46-4.46 384.5 3.01 400.52l13.52 29C24 445.54 43.04 452.47 59.06 445l306.47-142.91a32.003 32.003 0 0 0 18.48-29v-34.23c-.01-12.45-7.21-23.76-18.49-29.01z"]
  112159. };
  112160. var faGreaterThanEqual = {
  112161. prefix: 'fas',
  112162. iconName: 'greater-than-equal',
  112163. icon: [448, 512, [], "f532", "M55.22 107.69l175.56 68.09-175.44 68.05c-18.39 6.03-27.88 24.39-21.2 41l12.09 30.08c6.68 16.61 26.99 25.19 45.38 19.15L393.02 214.2c13.77-4.52 22.98-16.61 22.98-30.17v-15.96c0-13.56-9.21-25.65-22.98-30.17L91.3 17.92c-18.29-6-38.51 2.53-45.15 19.06L34.12 66.9c-6.64 16.53 2.81 34.79 21.1 40.79zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"]
  112164. };
  112165. var faGrimace = {
  112166. prefix: 'fas',
  112167. iconName: 'grimace',
  112168. icon: [496, 512, [], "f57f", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM144 400h-8c-17.7 0-32-14.3-32-32v-8h40v40zm0-56h-40v-8c0-17.7 14.3-32 32-32h8v40zm-8-136c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm72 192h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm64 56h-48v-40h48v40zm0-56h-48v-40h48v40zm-8-104c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm64 128c0 17.7-14.3 32-32 32h-8v-40h40v8zm0-24h-40v-40h8c17.7 0 32 14.3 32 32v8z"]
  112169. };
  112170. var faGrin = {
  112171. prefix: 'fas',
  112172. iconName: 'grin',
  112173. icon: [496, 512, [], "f580", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm80 256c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
  112174. };
  112175. var faGrinAlt = {
  112176. prefix: 'fas',
  112177. iconName: 'grin-alt',
  112178. icon: [496, 512, [], "f581", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm63.7 128.7c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zm-160 0c7.6-11.4 24.7-11.7 32.7 0 12.4 18.4 15.1 36.9 15.7 55.3-.5 18.4-3.3 36.9-15.7 55.3-7.6 11.4-24.7 11.7-32.7 0-12.4-18.4-15.1-36.9-15.7-55.3.5-18.4 3.3-36.9 15.7-55.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
  112179. };
  112180. var faGrinBeam = {
  112181. prefix: 'fas',
  112182. iconName: 'grin-beam',
  112183. icon: [496, 512, [], "f582", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 144c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
  112184. };
  112185. var faGrinBeamSweat = {
  112186. prefix: 'fas',
  112187. iconName: 'grin-beam-sweat',
  112188. icon: [504, 512, [], "f583", "M456 128c26.5 0 48-21 48-47 0-20-28.5-60.4-41.6-77.8-3.2-4.3-9.6-4.3-12.8 0C436.5 20.6 408 61 408 81c0 26 21.5 47 48 47zm0 32c-44.1 0-80-35.4-80-79 0-4.4.3-14.2 8.1-32.2C345 23.1 298.3 8 248 8 111 8 0 119 0 256s111 248 248 248 248-111 248-248c0-35.1-7.4-68.4-20.5-98.6-6.3 1.5-12.7 2.6-19.5 2.6zm-128-8c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
  112189. };
  112190. var faGrinHearts = {
  112191. prefix: 'fas',
  112192. iconName: 'grin-hearts',
  112193. icon: [496, 512, [], "f584", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM90.4 183.6c6.7-17.6 26.7-26.7 44.9-21.9l7.1 1.9 2-7.1c5-18.1 22.8-30.9 41.5-27.9 21.4 3.4 34.4 24.2 28.8 44.5L195.3 243c-1.2 4.5-5.9 7.2-10.5 6l-70.2-18.2c-20.4-5.4-31.9-27-24.2-47.2zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm133.4-201.3l-70.2 18.2c-4.5 1.2-9.2-1.5-10.5-6L281.3 173c-5.6-20.3 7.4-41.1 28.8-44.5 18.6-3 36.4 9.8 41.5 27.9l2 7.1 7.1-1.9c18.2-4.7 38.2 4.3 44.9 21.9 7.7 20.3-3.8 41.9-24.2 47.2z"]
  112194. };
  112195. var faGrinSquint = {
  112196. prefix: 'fas',
  112197. iconName: 'grin-squint',
  112198. icon: [496, 512, [], "f585", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.9 9.4-21.6 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.2 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
  112199. };
  112200. var faGrinSquintTears = {
  112201. prefix: 'fas',
  112202. iconName: 'grin-squint-tears',
  112203. icon: [512, 512, [], "f586", "M409.6 111.9c22.6-3.2 73.5-12 88.3-26.8 19.2-19.2 18.9-50.6-.7-70.2S446-5 426.9 14.2c-14.8 14.8-23.5 65.7-26.8 88.3-.8 5.5 3.9 10.2 9.5 9.4zM102.4 400.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm311.7-256.5c-33 3.9-48.6-25.1-45.7-45.7 3.4-24 7.4-42.1 11.5-56.5C285.1-13.4 161.8-.5 80.6 80.6-.5 161.7-13.4 285 41.4 379.9c14.4-4.1 32.4-8 56.5-11.5 33.2-3.9 48.6 25.2 45.7 45.7-3.4 24-7.4 42.1-11.5 56.5 94.8 54.8 218.1 41.9 299.3-39.2s94-204.4 39.2-299.3c-14.4 4.1-32.5 8-56.5 11.5zM255.7 106c3.3-13.2 22.4-11.5 23.6 1.8l4.8 52.3 52.3 4.8c13.4 1.2 14.9 20.3 1.8 23.6l-90.5 22.6c-8.9 2.2-16.7-5.9-14.5-14.5l22.5-90.6zm-90.9 230.3L160 284l-52.3-4.8c-13.4-1.2-14.9-20.3-1.8-23.6l90.5-22.6c8.8-2.2 16.7 5.8 14.5 14.5L188.3 338c-3.1 13.2-22.2 11.7-23.5-1.7zm215.7 44.2c-29.3 29.3-75.7 50.4-116.7 50.4-18.9 0-36.6-4.5-51-14.7-9.8-6.9-8.7-21.8 2-27.2 28.3-14.6 63.9-42.4 97.8-76.3s61.7-69.6 76.3-97.8c5.4-10.5 20.2-11.9 27.3-2 32.3 45.3 7.1 124.7-35.7 167.6z"]
  112204. };
  112205. var faGrinStars = {
  112206. prefix: 'fas',
  112207. iconName: 'grin-stars',
  112208. icon: [496, 512, [], "f587", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM94.6 168.9l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.2 1 8.9 8.6 4.3 13.2l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L152 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.6-4.7-1.9-12.3 4.3-13.3zM248 432c-60.6 0-134.5-38.3-143.8-93.3-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3zm157.7-249.9l-25.4 24.6 6 34.9c1 6.2-5.3 11-11 7.9L344 233.3l-31.3 16.3c-5.7 3.1-12-1.7-11-7.9l6-34.9-25.4-24.6c-4.5-4.6-1.9-12.2 4.3-13.2l34.9-5 15.5-31.6c2.9-5.8 11-5.8 13.9 0l15.5 31.6 34.9 5c6.3.9 9 8.5 4.4 13.1z"]
  112209. };
  112210. var faGrinTears = {
  112211. prefix: 'fas',
  112212. iconName: 'grin-tears',
  112213. icon: [640, 512, [], "f588", "M102.4 256.1c-22.6 3.2-73.5 12-88.3 26.8-19.1 19.1-18.8 50.6.8 70.2s51 19.9 70.2.7c14.8-14.8 23.5-65.7 26.8-88.3.8-5.5-3.9-10.2-9.5-9.4zm523.4 26.8c-14.8-14.8-65.7-23.5-88.3-26.8-5.5-.8-10.3 3.9-9.5 9.5 3.2 22.6 12 73.5 26.8 88.3 19.2 19.2 50.6 18.9 70.2-.7s20-51.2.8-70.3zm-129.4-12.8c-3.8-26.6 19.1-49.5 45.7-45.7 8.9 1.3 16.8 2.7 24.3 4.1C552.7 104.5 447.7 8 320 8S87.3 104.5 73.6 228.5c7.5-1.4 15.4-2.8 24.3-4.1 33.2-3.9 48.6 25.3 45.7 45.7-11.8 82.3-29.9 100.4-35.8 106.4-.9.9-2 1.6-3 2.5 42.7 74.6 123 125 215.2 125s172.5-50.4 215.2-125.1c-1-.9-2.1-1.5-3-2.5-5.9-5.9-24-24-35.8-106.3zM400 152c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm-160 0c23.8 0 52.7 29.3 56 71.4.7 8.6-10.8 12-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.1-42.1 32-71.4 55.8-71.4zm80 280c-60.6 0-134.5-38.3-143.8-93.3-2-11.7 9.2-21.6 20.7-17.9C227.1 330.5 272 336 320 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-9.3 55-83.2 93.3-143.8 93.3z"]
  112214. };
  112215. var faGrinTongue = {
  112216. prefix: 'fas',
  112217. iconName: 'grin-tongue',
  112218. icon: [496, 512, [], "f589", "M248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.6 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-34.9 134.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"]
  112219. };
  112220. var faGrinTongueSquint = {
  112221. prefix: 'fas',
  112222. iconName: 'grin-tongue-squint',
  112223. icon: [496, 512, [], "f58a", "M293.1 374.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.2-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.4-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-33.8 210.3l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.7 4.7 7.7 15.9 0 20.6zm163 30c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.8-4.7-7.8-15.9 0-20.6l80-48c11.7-6.9 23.9 7.7 15.4 18L343.6 208l33.6 40.3z"]
  112224. };
  112225. var faGrinTongueWink = {
  112226. prefix: 'fas',
  112227. iconName: 'grin-tongue-wink',
  112228. icon: [496, 512, [], "f58b", "M344 184c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zM248 8C111 8 0 119 0 256c0 106.3 67 196.7 161 232-5.6-12.2-9-25.7-9-40v-45.5c-24.7-16.2-43.5-38.1-47.8-63.8-2-11.8 9.3-21.5 20.7-17.9C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.5-3.7 22.6 6.1 20.7 17.9-4.3 25.7-23.1 47.6-47.8 63.8V448c0 14.3-3.4 27.8-9 40 94-35.3 161-125.7 161-232C496 119 385 8 248 8zm-56 225l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L112 233c-8.5 7.4-21.6.3-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c1.6 11.1-11.6 18.2-20 10.8zm152 39c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm-50.9 102.6c-14.4-6.5-31.1 2.2-34.6 17.6l-1.8 7.8c-2.1 9.2-15.2 9.2-17.3 0l-1.8-7.8c-3.5-15.4-20.2-24.1-34.6-17.6-.9.4.3-.2-18.9 9.4v63c0 35.2 28 64.5 63.1 64.9 35.7.5 64.9-28.4 64.9-64v-64c-19.5-9.6-18.2-8.9-19-9.3z"]
  112229. };
  112230. var faGrinWink = {
  112231. prefix: 'fas',
  112232. iconName: 'grin-wink',
  112233. icon: [496, 512, [], "f58c", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm168 25l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.6 11-11.5 18.2-20 10.8zm-243.1 87.8C155.1 330.5 200 336 248 336s92.9-5.5 123.1-15.2c11.3-3.7 22.6 6 20.7 17.9-9.2 55-83.2 93.3-143.8 93.3s-134.5-38.3-143.8-93.3c-2-11.9 9.3-21.6 20.7-17.9z"]
  112234. };
  112235. var faGripHorizontal = {
  112236. prefix: 'fas',
  112237. iconName: 'grip-horizontal',
  112238. icon: [448, 512, [], "f58d", "M96 288H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM96 96H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm160 0h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"]
  112239. };
  112240. var faGripLines = {
  112241. prefix: 'fas',
  112242. iconName: 'grip-lines',
  112243. icon: [512, 512, [], "f7a4", "M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"]
  112244. };
  112245. var faGripLinesVertical = {
  112246. prefix: 'fas',
  112247. iconName: 'grip-lines-vertical',
  112248. icon: [256, 512, [], "f7a5", "M96 496V16c0-8.8-7.2-16-16-16H48c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16zm128 0V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16z"]
  112249. };
  112250. var faGripVertical = {
  112251. prefix: 'fas',
  112252. iconName: 'grip-vertical',
  112253. icon: [320, 512, [], "f58e", "M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z"]
  112254. };
  112255. var faGuitar = {
  112256. prefix: 'fas',
  112257. iconName: 'guitar',
  112258. icon: [512, 512, [], "f7a6", "M502.63 39L473 9.37a32 32 0 0 0-45.26 0L381.46 55.7a35.14 35.14 0 0 0-8.53 13.79L360.77 106l-76.26 76.26c-12.16-8.76-25.5-15.74-40.1-19.14-33.45-7.78-67-.88-89.88 22a82.45 82.45 0 0 0-20.24 33.47c-6 18.56-23.21 32.69-42.15 34.46-23.7 2.27-45.73 11.45-62.61 28.44C-16.11 327-7.9 409 47.58 464.45S185 528 230.56 482.52c17-16.88 26.16-38.9 28.45-62.71 1.76-18.85 15.89-36.13 34.43-42.14a82.6 82.6 0 0 0 33.48-20.25c22.87-22.88 29.74-56.36 22-89.75-3.39-14.64-10.37-28-19.16-40.2L406 151.23l36.48-12.16a35.14 35.14 0 0 0 13.79-8.53l46.33-46.32a32 32 0 0 0 .03-45.22zM208 352a48 48 0 1 1 48-48 48 48 0 0 1-48 48z"]
  112259. };
  112260. var faHSquare = {
  112261. prefix: 'fas',
  112262. iconName: 'h-square',
  112263. icon: [448, 512, [], "f0fd", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zm-112 48h-32c-8.837 0-16 7.163-16 16v80H160v-80c0-8.837-7.163-16-16-16h-32c-8.837 0-16 7.163-16 16v224c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16v-80h128v80c0 8.837 7.163 16 16 16h32c8.837 0 16-7.163 16-16V144c0-8.837-7.163-16-16-16z"]
  112264. };
  112265. var faHamburger = {
  112266. prefix: 'fas',
  112267. iconName: 'hamburger',
  112268. icon: [512, 512, [], "f805", "M464 256H48a48 48 0 0 0 0 96h416a48 48 0 0 0 0-96zm16 128H32a16 16 0 0 0-16 16v16a64 64 0 0 0 64 64h352a64 64 0 0 0 64-64v-16a16 16 0 0 0-16-16zM58.64 224h394.72c34.57 0 54.62-43.9 34.82-75.88C448 83.2 359.55 32.1 256 32c-103.54.1-192 51.2-232.18 116.11C4 180.09 24.07 224 58.64 224zM384 112a16 16 0 1 1-16 16 16 16 0 0 1 16-16zM256 80a16 16 0 1 1-16 16 16 16 0 0 1 16-16zm-128 32a16 16 0 1 1-16 16 16 16 0 0 1 16-16z"]
  112269. };
  112270. var faHammer = {
  112271. prefix: 'fas',
  112272. iconName: 'hammer',
  112273. icon: [576, 512, [], "f6e3", "M571.31 193.94l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31-28.9-28.9c5.63-21.31.36-44.9-16.35-61.61l-45.25-45.25c-62.48-62.48-163.79-62.48-226.28 0l90.51 45.25v18.75c0 16.97 6.74 33.25 18.75 45.25l49.14 49.14c16.71 16.71 40.3 21.98 61.61 16.35l28.9 28.9-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l90.51-90.51c6.23-6.24 6.23-16.37-.02-22.62zm-286.72-15.2c-3.7-3.7-6.84-7.79-9.85-11.95L19.64 404.96c-25.57 23.88-26.26 64.19-1.53 88.93s65.05 24.05 88.93-1.53l238.13-255.07c-3.96-2.91-7.9-5.87-11.44-9.41l-49.14-49.14z"]
  112274. };
  112275. var faHamsa = {
  112276. prefix: 'fas',
  112277. iconName: 'hamsa',
  112278. icon: [512, 512, [], "f665", "M509.34 307.25C504.28 295.56 492.75 288 480 288h-64V80c0-22-18-40-40-40s-40 18-40 40v134c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V40c0-22-18-40-40-40s-40 18-40 40v174c0 5.52-4.48 10-10 10h-20c-5.52 0-10-4.48-10-10V80c0-22-18-40-40-40S96 58 96 80v208H32c-12.75 0-24.28 7.56-29.34 19.25a31.966 31.966 0 0 0 5.94 34.58l102.69 110.03C146.97 490.08 199.69 512 256 512s109.03-21.92 144.72-60.14L503.4 341.83a31.966 31.966 0 0 0 5.94-34.58zM256 416c-53.02 0-96-64-96-64s42.98-64 96-64 96 64 96 64-42.98 64-96 64zm0-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"]
  112279. };
  112280. var faHandHolding = {
  112281. prefix: 'fas',
  112282. iconName: 'hand-holding',
  112283. icon: [576, 512, [], "f4bd", "M565.3 328.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"]
  112284. };
  112285. var faHandHoldingHeart = {
  112286. prefix: 'fas',
  112287. iconName: 'hand-holding-heart',
  112288. icon: [576, 512, [], "f4be", "M275.3 250.5c7 7.4 18.4 7.4 25.5 0l108.9-114.2c31.6-33.2 29.8-88.2-5.6-118.8-30.8-26.7-76.7-21.9-104.9 7.7L288 36.9l-11.1-11.6C248.7-4.4 202.8-9.2 172 17.5c-35.3 30.6-37.2 85.6-5.6 118.8l108.9 114.2zm290 77.6c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"]
  112289. };
  112290. var faHandHoldingMedical = {
  112291. prefix: 'fas',
  112292. iconName: 'hand-holding-medical',
  112293. icon: [576, 512, [], "e05c", "M159.88,175.82h64v64a16,16,0,0,0,16,16h64a16,16,0,0,0,16-16v-64h64a16,16,0,0,0,16-16v-64a16,16,0,0,0-16-16h-64v-64a16,16,0,0,0-16-16h-64a16,16,0,0,0-16,16v64h-64a16,16,0,0,0-16,16v64A16,16,0,0,0,159.88,175.82ZM568.07,336.13a39.91,39.91,0,0,0-55.93-8.47L392.47,415.84H271.86a16,16,0,0,1,0-32H350.1c16,0,30.75-10.87,33.37-26.61a32.06,32.06,0,0,0-31.62-37.38h-160a117.7,117.7,0,0,0-74.12,26.25l-46.5,37.74H15.87a16.11,16.11,0,0,0-16,16v96a16.11,16.11,0,0,0,16,16h347a104.8,104.8,0,0,0,61.7-20.27L559.6,392A40,40,0,0,0,568.07,336.13Z"]
  112294. };
  112295. var faHandHoldingUsd = {
  112296. prefix: 'fas',
  112297. iconName: 'hand-holding-usd',
  112298. icon: [576, 512, [], "f4c0", "M271.06,144.3l54.27,14.3a8.59,8.59,0,0,1,6.63,8.1c0,4.6-4.09,8.4-9.12,8.4h-35.6a30,30,0,0,1-11.19-2.2c-5.24-2.2-11.28-1.7-15.3,2l-19,17.5a11.68,11.68,0,0,0-2.25,2.66,11.42,11.42,0,0,0,3.88,15.74,83.77,83.77,0,0,0,34.51,11.5V240c0,8.8,7.83,16,17.37,16h17.37c9.55,0,17.38-7.2,17.38-16V222.4c32.93-3.6,57.84-31,53.5-63-3.15-23-22.46-41.3-46.56-47.7L282.68,97.4a8.59,8.59,0,0,1-6.63-8.1c0-4.6,4.09-8.4,9.12-8.4h35.6A30,30,0,0,1,332,83.1c5.23,2.2,11.28,1.7,15.3-2l19-17.5A11.31,11.31,0,0,0,368.47,61a11.43,11.43,0,0,0-3.84-15.78,83.82,83.82,0,0,0-34.52-11.5V16c0-8.8-7.82-16-17.37-16H295.37C285.82,0,278,7.2,278,16V33.6c-32.89,3.6-57.85,31-53.51,63C227.63,119.6,247,137.9,271.06,144.3ZM565.27,328.1c-11.8-10.7-30.2-10-42.6,0L430.27,402a63.64,63.64,0,0,1-40,14H272a16,16,0,0,1,0-32h78.29c15.9,0,30.71-10.9,33.25-26.6a31.2,31.2,0,0,0,.46-5.46A32,32,0,0,0,352,320H192a117.66,117.66,0,0,0-74.1,26.29L71.4,384H16A16,16,0,0,0,0,400v96a16,16,0,0,0,16,16H372.77a64,64,0,0,0,40-14L564,377a32,32,0,0,0,1.28-48.9Z"]
  112299. };
  112300. var faHandHoldingWater = {
  112301. prefix: 'fas',
  112302. iconName: 'hand-holding-water',
  112303. icon: [576, 512, [], "f4c1", "M288 256c53 0 96-42.1 96-94 0-40-57.1-120.7-83.2-155.6-6.4-8.5-19.2-8.5-25.6 0C249.1 41.3 192 122 192 162c0 51.9 43 94 96 94zm277.3 72.1c-11.8-10.7-30.2-10-42.6 0L430.3 402c-11.3 9.1-25.4 14-40 14H272c-8.8 0-16-7.2-16-16s7.2-16 16-16h78.3c15.9 0 30.7-10.9 33.3-26.6 3.3-20-12.1-37.4-31.6-37.4H192c-27 0-53.1 9.3-74.1 26.3L71.4 384H16c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h356.8c14.5 0 28.6-4.9 40-14L564 377c15.2-12.1 16.4-35.3 1.3-48.9z"]
  112304. };
  112305. var faHandLizard = {
  112306. prefix: 'fas',
  112307. iconName: 'hand-lizard',
  112308. icon: [576, 512, [], "f258", "M384 480h192V363.778a95.998 95.998 0 0 0-14.833-51.263L398.127 54.368A48 48 0 0 0 357.544 32H24C10.745 32 0 42.745 0 56v16c0 30.928 25.072 56 56 56h229.981c12.844 0 21.556 13.067 16.615 24.923l-21.41 51.385A32 32 0 0 1 251.648 224H128c-35.346 0-64 28.654-64 64v8c0 13.255 10.745 24 24 24h147.406a47.995 47.995 0 0 1 25.692 7.455l111.748 70.811A24.001 24.001 0 0 1 384 418.539V480z"]
  112309. };
  112310. var faHandMiddleFinger = {
  112311. prefix: 'fas',
  112312. iconName: 'hand-middle-finger',
  112313. icon: [512, 512, [], "f806", "M479.93 317.12a37.33 37.33 0 0 0-28.28-36.19L416 272v-49.59c0-11.44-9.69-21.29-23.15-23.54l-38.4-6.4C336.63 189.5 320 200.86 320 216v32a8 8 0 0 1-16 0V50c0-26.28-20.25-49.2-46.52-50A48 48 0 0 0 208 48v200a8 8 0 0 1-16 0v-32c0-15.15-16.63-26.51-34.45-23.54l-30.68 5.12c-18 3-30.87 16.12-30.87 31.38V376a8 8 0 0 1-16 0v-76l-27.36 15A37.34 37.34 0 0 0 32 348.4v73.47a37.31 37.31 0 0 0 10.93 26.39l30.93 30.93A112 112 0 0 0 153.05 512h215A112 112 0 0 0 480 400z"]
  112314. };
  112315. var faHandPaper = {
  112316. prefix: 'fas',
  112317. iconName: 'hand-paper',
  112318. icon: [448, 512, [], "f256", "M408.781 128.007C386.356 127.578 368 146.36 368 168.79V256h-8V79.79c0-22.43-18.356-41.212-40.781-40.783C297.488 39.423 280 57.169 280 79v177h-8V40.79C272 18.36 253.644-.422 231.219.007 209.488.423 192 18.169 192 40v216h-8V80.79c0-22.43-18.356-41.212-40.781-40.783C121.488 40.423 104 58.169 104 80v235.992l-31.648-43.519c-12.993-17.866-38.009-21.817-55.877-8.823-17.865 12.994-21.815 38.01-8.822 55.877l125.601 172.705A48 48 0 0 0 172.073 512h197.59c22.274 0 41.622-15.324 46.724-37.006l26.508-112.66a192.011 192.011 0 0 0 5.104-43.975V168c.001-21.831-17.487-39.577-39.218-39.993z"]
  112319. };
  112320. var faHandPeace = {
  112321. prefix: 'fas',
  112322. iconName: 'hand-peace',
  112323. icon: [448, 512, [], "f25b", "M408 216c-22.092 0-40 17.909-40 40h-8v-32c0-22.091-17.908-40-40-40s-40 17.909-40 40v32h-8V48c0-26.51-21.49-48-48-48s-48 21.49-48 48v208h-13.572L92.688 78.449C82.994 53.774 55.134 41.63 30.461 51.324 5.787 61.017-6.356 88.877 3.337 113.551l74.765 190.342-31.09 24.872c-15.381 12.306-19.515 33.978-9.741 51.081l64 112A39.998 39.998 0 0 0 136 512h240c18.562 0 34.686-12.77 38.937-30.838l32-136A39.97 39.97 0 0 0 448 336v-80c0-22.091-17.908-40-40-40z"]
  112324. };
  112325. var faHandPointDown = {
  112326. prefix: 'fas',
  112327. iconName: 'hand-point-down',
  112328. icon: [384, 512, [], "f0a7", "M91.826 467.2V317.966c-8.248 5.841-16.558 10.57-24.918 14.153C35.098 345.752-.014 322.222 0 288c.008-18.616 10.897-32.203 29.092-40 28.286-12.122 64.329-78.648 77.323-107.534 7.956-17.857 25.479-28.453 43.845-28.464l.001-.002h171.526c11.812 0 21.897 8.596 23.703 20.269 7.25 46.837 38.483 61.76 38.315 123.731-.007 2.724.195 13.254.195 16 0 50.654-22.122 81.574-71.263 72.6-9.297 18.597-39.486 30.738-62.315 16.45-21.177 24.645-53.896 22.639-70.944 6.299V467.2c0 24.15-20.201 44.8-43.826 44.8-23.283 0-43.826-21.35-43.826-44.8zM112 72V24c0-13.255 10.745-24 24-24h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24zm212-24c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"]
  112329. };
  112330. var faHandPointLeft = {
  112331. prefix: 'fas',
  112332. iconName: 'hand-point-left',
  112333. icon: [512, 512, [], "f0a5", "M44.8 155.826h149.234c-5.841-8.248-10.57-16.558-14.153-24.918C166.248 99.098 189.778 63.986 224 64c18.616.008 32.203 10.897 40 29.092 12.122 28.286 78.648 64.329 107.534 77.323 17.857 7.956 28.453 25.479 28.464 43.845l.002.001v171.526c0 11.812-8.596 21.897-20.269 23.703-46.837 7.25-61.76 38.483-123.731 38.315-2.724-.007-13.254.195-16 .195-50.654 0-81.574-22.122-72.6-71.263-18.597-9.297-30.738-39.486-16.45-62.315-24.645-21.177-22.639-53.896-6.299-70.944H44.8c-24.15 0-44.8-20.201-44.8-43.826 0-23.283 21.35-43.826 44.8-43.826zM440 176h48c13.255 0 24 10.745 24 24v192c0 13.255-10.745 24-24 24h-48c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24zm24 212c11.046 0 20-8.954 20-20s-8.954-20-20-20-20 8.954-20 20 8.954 20 20 20z"]
  112334. };
  112335. var faHandPointRight = {
  112336. prefix: 'fas',
  112337. iconName: 'hand-point-right',
  112338. icon: [512, 512, [], "f0a4", "M512 199.652c0 23.625-20.65 43.826-44.8 43.826h-99.851c16.34 17.048 18.346 49.766-6.299 70.944 14.288 22.829 2.147 53.017-16.45 62.315C353.574 425.878 322.654 448 272 448c-2.746 0-13.276-.203-16-.195-61.971.168-76.894-31.065-123.731-38.315C120.596 407.683 112 397.599 112 385.786V214.261l.002-.001c.011-18.366 10.607-35.889 28.464-43.845 28.886-12.994 95.413-49.038 107.534-77.323 7.797-18.194 21.384-29.084 40-29.092 34.222-.014 57.752 35.098 44.119 66.908-3.583 8.359-8.312 16.67-14.153 24.918H467.2c23.45 0 44.8 20.543 44.8 43.826zM96 200v192c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V200c0-13.255 10.745-24 24-24h48c13.255 0 24 10.745 24 24zM68 368c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z"]
  112339. };
  112340. var faHandPointUp = {
  112341. prefix: 'fas',
  112342. iconName: 'hand-point-up',
  112343. icon: [384, 512, [], "f0a6", "M135.652 0c23.625 0 43.826 20.65 43.826 44.8v99.851c17.048-16.34 49.766-18.346 70.944 6.299 22.829-14.288 53.017-2.147 62.315 16.45C361.878 158.426 384 189.346 384 240c0 2.746-.203 13.276-.195 16 .168 61.971-31.065 76.894-38.315 123.731C343.683 391.404 333.599 400 321.786 400H150.261l-.001-.002c-18.366-.011-35.889-10.607-43.845-28.464C93.421 342.648 57.377 276.122 29.092 264 10.897 256.203.008 242.616 0 224c-.014-34.222 35.098-57.752 66.908-44.119 8.359 3.583 16.67 8.312 24.918 14.153V44.8c0-23.45 20.543-44.8 43.826-44.8zM136 416h192c13.255 0 24 10.745 24 24v48c0 13.255-10.745 24-24 24H136c-13.255 0-24-10.745-24-24v-48c0-13.255 10.745-24 24-24zm168 28c-11.046 0-20 8.954-20 20s8.954 20 20 20 20-8.954 20-20-8.954-20-20-20z"]
  112344. };
  112345. var faHandPointer = {
  112346. prefix: 'fas',
  112347. iconName: 'hand-pointer',
  112348. icon: [448, 512, [], "f25a", "M448 240v96c0 3.084-.356 6.159-1.063 9.162l-32 136C410.686 499.23 394.562 512 376 512H168a40.004 40.004 0 0 1-32.35-16.473l-127.997-176c-12.993-17.866-9.043-42.883 8.822-55.876 17.867-12.994 42.884-9.043 55.877 8.823L104 315.992V40c0-22.091 17.908-40 40-40s40 17.909 40 40v200h8v-40c0-22.091 17.908-40 40-40s40 17.909 40 40v40h8v-24c0-22.091 17.908-40 40-40s40 17.909 40 40v24h8c0-22.091 17.908-40 40-40s40 17.909 40 40zm-256 80h-8v96h8v-96zm88 0h-8v96h8v-96zm88 0h-8v96h8v-96z"]
  112349. };
  112350. var faHandRock = {
  112351. prefix: 'fas',
  112352. iconName: 'hand-rock',
  112353. icon: [512, 512, [], "f255", "M464.8 80c-26.9-.4-48.8 21.2-48.8 48h-8V96.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v32h-8V80.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v48h-8V96.8c0-26.3-20.9-48.3-47.2-48.8-26.9-.4-48.8 21.2-48.8 48v136l-8-7.1v-48.1c0-26.3-20.9-48.3-47.2-48.8C21.9 127.6 0 149.2 0 176v66.4c0 27.4 11.7 53.5 32.2 71.8l111.7 99.3c10.2 9.1 16.1 22.2 16.1 35.9v6.7c0 13.3 10.7 24 24 24h240c13.3 0 24-10.7 24-24v-2.9c0-12.8 2.6-25.5 7.5-37.3l49-116.3c5-11.8 7.5-24.5 7.5-37.3V128.8c0-26.3-20.9-48.4-47.2-48.8z"]
  112354. };
  112355. var faHandScissors = {
  112356. prefix: 'fas',
  112357. iconName: 'hand-scissors',
  112358. icon: [512, 512, [], "f257", "M216 440c0-22.092 17.909-40 40-40v-8h-32c-22.091 0-40-17.908-40-40s17.909-40 40-40h32v-8H48c-26.51 0-48-21.49-48-48s21.49-48 48-48h208v-13.572l-177.551-69.74c-24.674-9.694-36.818-37.555-27.125-62.228 9.693-24.674 37.554-36.817 62.228-27.124l190.342 74.765 24.872-31.09c12.306-15.381 33.978-19.515 51.081-9.741l112 64A40.002 40.002 0 0 1 512 168v240c0 18.562-12.77 34.686-30.838 38.937l-136 32A39.982 39.982 0 0 1 336 480h-80c-22.091 0-40-17.908-40-40z"]
  112359. };
  112360. var faHandSparkles = {
  112361. prefix: 'fas',
  112362. iconName: 'hand-sparkles',
  112363. icon: [640, 512, [], "e05d", "M106.66,170.64l.09,0,49.55-20.65a7.32,7.32,0,0,0,3.68-6h0a7.29,7.29,0,0,0-3.68-6l-49.57-20.67-.07,0L86,67.68a6.66,6.66,0,0,0-11.92,0l-20.7,49.63-.05,0L3.7,138A7.29,7.29,0,0,0,0,144H0a7.32,7.32,0,0,0,3.68,6L53.27,170.6l.07,0L74,220.26a6.65,6.65,0,0,0,11.92,0l20.69-49.62ZM471.38,467.41l-1-.42-1-.5a38.67,38.67,0,0,1,0-69.14l1-.49,1-.43,37.49-15.63,15.63-37.48.41-1,.47-.95c3.85-7.74,10.58-13.63,18.35-17.34,0-1.33.25-2.69.27-4V144a32,32,0,0,0-64,0v72a8,8,0,0,1-8,8H456a8,8,0,0,1-8-8V64a32,32,0,0,0-64,0V216a8,8,0,0,1-8,8H360a8,8,0,0,1-8-8V32a32,32,0,0,0-64,0V216a8,8,0,0,1-8,8H264a8,8,0,0,1-8-8V64a32,32,0,0,0-64,0v241l-23.59-32.49a40,40,0,0,0-64.71,47.09L229.3,492.21A48.07,48.07,0,0,0,268.09,512H465.7c19.24,0,35.65-11.73,43.24-28.79l-.07-.17ZM349.79,339.52,320,351.93l-12.42,29.78a4,4,0,0,1-7.15,0L288,351.93l-29.79-12.41a4,4,0,0,1,0-7.16L288,319.94l12.42-29.78a4,4,0,0,1,7.15,0L320,319.94l29.79,12.42a4,4,0,0,1,0,7.16ZM640,431.91a7.28,7.28,0,0,0-3.68-6l-49.57-20.67-.07,0L566,355.63a6.66,6.66,0,0,0-11.92,0l-20.7,49.63-.05,0L483.7,426a7.28,7.28,0,0,0-3.68,6h0a7.29,7.29,0,0,0,3.68,5.95l49.57,20.67.07,0L554,508.21a6.65,6.65,0,0,0,11.92,0l20.69-49.62h0l.09,0,49.55-20.66a7.29,7.29,0,0,0,3.68-5.95h0Z"]
  112364. };
  112365. var faHandSpock = {
  112366. prefix: 'fas',
  112367. iconName: 'hand-spock',
  112368. icon: [512, 512, [], "f259", "M510.9005,145.27027,442.604,432.09391A103.99507,103.99507,0,0,1,341.43745,512H214.074a135.96968,135.96968,0,0,1-93.18489-36.95291L12.59072,373.12723a39.992,39.992,0,0,1,54.8122-58.24988l60.59342,57.02528v0a283.24849,283.24849,0,0,0-11.6703-80.46734L73.63726,147.36011a40.00575,40.00575,0,1,1,76.71833-22.7187l37.15458,125.39477a8.33113,8.33113,0,0,0,16.05656-4.4414L153.26183,49.95406A39.99638,39.99638,0,1,1,230.73015,30.0166l56.09491,218.15825a10.42047,10.42047,0,0,0,20.30018-.501L344.80766,63.96966a40.052,40.052,0,0,1,51.30245-30.0893c19.86073,6.2998,30.86262,27.67378,26.67564,48.08487l-33.83869,164.966a7.55172,7.55172,0,0,0,14.74406,3.2666l29.3973-123.45874a39.99414,39.99414,0,1,1,77.81208,18.53121Z"]
  112369. };
  112370. var faHands = {
  112371. prefix: 'fas',
  112372. iconName: 'hands',
  112373. icon: [640, 512, [], "f4c2", "M204.8 230.4c-10.6-14.1-30.7-17-44.8-6.4-14.1 10.6-17 30.7-6.4 44.8l38.1 50.8c4.8 6.4 4.1 15.3-1.5 20.9l-12.8 12.8c-6.7 6.7-17.6 6.2-23.6-1.1L64 244.4V96c0-17.7-14.3-32-32-32S0 78.3 0 96v218.4c0 10.9 3.7 21.5 10.5 30l104.1 134.3c5 6.5 8.4 13.9 10.4 21.7 1.8 6.9 8.1 11.6 15.3 11.6H272c8.8 0 16-7.2 16-16V384c0-27.7-9-54.6-25.6-76.8l-57.6-76.8zM608 64c-17.7 0-32 14.3-32 32v148.4l-89.8 107.8c-6 7.2-17 7.7-23.6 1.1l-12.8-12.8c-5.6-5.6-6.3-14.5-1.5-20.9l38.1-50.8c10.6-14.1 7.7-34.2-6.4-44.8-14.1-10.6-34.2-7.7-44.8 6.4l-57.6 76.8C361 329.4 352 356.3 352 384v112c0 8.8 7.2 16 16 16h131.7c7.1 0 13.5-4.7 15.3-11.6 2-7.8 5.4-15.2 10.4-21.7l104.1-134.3c6.8-8.5 10.5-19.1 10.5-30V96c0-17.7-14.3-32-32-32z"]
  112374. };
  112375. var faHandsHelping = {
  112376. prefix: 'fas',
  112377. iconName: 'hands-helping',
  112378. icon: [640, 512, [], "f4c4", "M488 192H336v56c0 39.7-32.3 72-72 72s-72-32.3-72-72V126.4l-64.9 39C107.8 176.9 96 197.8 96 220.2v47.3l-80 46.2C.7 322.5-4.6 342.1 4.3 357.4l80 138.6c8.8 15.3 28.4 20.5 43.7 11.7L231.4 448H368c35.3 0 64-28.7 64-64h16c17.7 0 32-14.3 32-32v-64h8c13.3 0 24-10.7 24-24v-48c0-13.3-10.7-24-24-24zm147.7-37.4L555.7 16C546.9.7 527.3-4.5 512 4.3L408.6 64H306.4c-12 0-23.7 3.4-33.9 9.7L239 94.6c-9.4 5.8-15 16.1-15 27.1V248c0 22.1 17.9 40 40 40s40-17.9 40-40v-88h184c30.9 0 56 25.1 56 56v28.5l80-46.2c15.3-8.9 20.5-28.4 11.7-43.7z"]
  112379. };
  112380. var faHandsWash = {
  112381. prefix: 'fas',
  112382. iconName: 'hands-wash',
  112383. icon: [576, 512, [], "e05e", "M496,224a48,48,0,1,0-48-48A48,48,0,0,0,496,224ZM311.47,178.45A56.77,56.77,0,0,1,328,176a56,56,0,0,1,19,3.49l15.35-48.61A24,24,0,0,0,342,99.74c-11.53-1.35-22.21,6.44-25.71,17.51l-20.9,66.17ZM93.65,386.33c.8-.19,1.54-.54,2.35-.71V359.93a156,156,0,0,1,107.06-148l73.7-22.76L310.92,81.05a24,24,0,0,0-20.33-31.11c-11.53-1.34-22.22,6.45-25.72,17.52L231.42,173.88a8,8,0,0,1-15.26-4.83L259.53,31.26A24,24,0,0,0,239.2.15C227.67-1.19,217,6.6,213.49,17.66L165.56,169.37a8,8,0,1,1-15.26-4.82l38.56-122a24,24,0,0,0-20.33-31.11C157,10,146.32,17.83,142.82,28.9l-60,189.85L80.76,168.7A24,24,0,0,0,56.9,144.55c-13.23-.05-24.72,10.54-24.9,23.86V281.14A123.69,123.69,0,0,0,93.65,386.33ZM519.1,336H360a8,8,0,0,1,0-16H488a24,24,0,0,0,23.54-28.76C509.35,279.84,498.71,272,487.1,272H288l47.09-17.06a24,24,0,0,0-14.18-45.88L213.19,242.31A123.88,123.88,0,0,0,128,360v25.65a79.78,79.78,0,0,1,58,108.63A118.9,118.9,0,0,0,248,512H456a24,24,0,0,0,23.54-28.76C477.35,471.84,466.71,464,455.1,464H360a8,8,0,0,1,0-16H488a24,24,0,0,0,23.54-28.76C509.35,407.84,498.71,400,487.1,400H360a8,8,0,0,1,0-16H520a24,24,0,0,0,23.54-28.76C541.35,343.84,530.71,336,519.1,336ZM416,64a32,32,0,1,0-32-32A32,32,0,0,0,416,64ZM112,416a48,48,0,1,0,48,48A48,48,0,0,0,112,416Z"]
  112384. };
  112385. var faHandshake = {
  112386. prefix: 'fas',
  112387. iconName: 'handshake',
  112388. icon: [640, 512, [], "f2b5", "M434.7 64h-85.9c-8 0-15.7 3-21.6 8.4l-98.3 90c-.1.1-.2.3-.3.4-16.6 15.6-16.3 40.5-2.1 56 12.7 13.9 39.4 17.6 56.1 2.7.1-.1.3-.1.4-.2l79.9-73.2c6.5-5.9 16.7-5.5 22.6 1 6 6.5 5.5 16.6-1 22.6l-26.1 23.9L504 313.8c2.9 2.4 5.5 5 7.9 7.7V128l-54.6-54.6c-5.9-6-14.1-9.4-22.6-9.4zM544 128.2v223.9c0 17.7 14.3 32 32 32h64V128.2h-96zm48 223.9c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM0 384h64c17.7 0 32-14.3 32-32V128.2H0V384zm48-63.9c8.8 0 16 7.2 16 16s-7.2 16-16 16-16-7.2-16-16c0-8.9 7.2-16 16-16zm435.9 18.6L334.6 217.5l-30 27.5c-29.7 27.1-75.2 24.5-101.7-4.4-26.9-29.4-24.8-74.9 4.4-101.7L289.1 64h-83.8c-8.5 0-16.6 3.4-22.6 9.4L128 128v223.9h18.3l90.5 81.9c27.4 22.3 67.7 18.1 90-9.3l.2-.2 17.9 15.5c15.9 13 39.4 10.5 52.3-5.4l31.4-38.6 5.4 4.4c13.7 11.1 33.9 9.1 45-4.7l9.5-11.7c11.2-13.8 9.1-33.9-4.6-45.1z"]
  112389. };
  112390. var faHandshakeAltSlash = {
  112391. prefix: 'fas',
  112392. iconName: 'handshake-alt-slash',
  112393. icon: [640, 512, [], "e05f", "M358.59,195.6,504.2,313.8a63.4,63.4,0,0,1,22.21,37.91H624a16.05,16.05,0,0,0,16-16V143.91A16,16,0,0,0,624,128H512L457.41,73.41A32,32,0,0,0,434.8,64H348.91a32,32,0,0,0-21.61,8.41l-88.12,80.68-25.69-19.85L289.09,64H205.3a32,32,0,0,0-22.6,9.41l-20.34,20.3L45.47,3.38A16,16,0,0,0,23,6.19L3.38,31.46A16,16,0,0,0,6.19,53.91L594.54,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45L303.4,202.72l32.69-29.92,27-24.7a16,16,0,0,1,21.61,23.61ZM16,128A16.05,16.05,0,0,0,0,144V335.91a16,16,0,0,0,16,16H146.3l90.5,81.89a64,64,0,0,0,90-9.3l.2-.2,17.91,15.5a37.16,37.16,0,0,0,52.29-5.39l8.8-10.82L23.56,128Z"]
  112394. };
  112395. var faHandshakeSlash = {
  112396. prefix: 'fas',
  112397. iconName: 'handshake-slash',
  112398. icon: [640, 512, [], "e060", "M0,128.21V384H64a32,32,0,0,0,32-32V184L23.83,128.21ZM48,320.1a16,16,0,1,1-16,16A16,16,0,0,1,48,320.1Zm80,31.81h18.3l90.5,81.89a64,64,0,0,0,90-9.3l.2-.2,17.91,15.5a37.16,37.16,0,0,0,52.29-5.39l8.8-10.82L128,208.72Zm416-223.7V352.1a32,32,0,0,0,32,32h64V128.21ZM592,352.1a16,16,0,1,1,16-16A16,16,0,0,1,592,352.1ZM303.33,202.67l59.58-54.57a16,16,0,0,1,21.59,23.61L358.41,195.6,504,313.8a73.08,73.08,0,0,1,7.91,7.7V128L457.3,73.41A31.76,31.76,0,0,0,434.7,64H348.8a31.93,31.93,0,0,0-21.6,8.41l-88.07,80.64-25.64-19.81L289.09,64H205.3a32,32,0,0,0-22.6,9.41L162.36,93.72,45.47,3.38A16,16,0,0,0,23,6.19L3.38,31.46A16,16,0,0,0,6.19,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.65-25.27a16,16,0,0,0-2.82-22.45Z"]
  112399. };
  112400. var faHanukiah = {
  112401. prefix: 'fas',
  112402. iconName: 'hanukiah',
  112403. icon: [640, 512, [], "f6e6", "M232 160c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm-64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm224 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm64 0c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm88 8c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v120h32V168zm-440-8c-4.42 0-8 3.58-8 8v120h32V168c0-4.42-3.58-8-8-8h-16zm520 0h-32c-8.84 0-16 7.16-16 16v112c0 17.67-14.33 32-32 32H352V128c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v192H96c-17.67 0-32-14.33-32-32V176c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v112c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V176c0-8.84-7.16-16-16-16zm-16-32c13.25 0 24-11.94 24-26.67S608 48 608 48s-24 38.61-24 53.33S594.75 128 608 128zm-576 0c13.25 0 24-11.94 24-26.67S32 48 32 48 8 86.61 8 101.33 18.75 128 32 128zm288-48c13.25 0 24-11.94 24-26.67S320 0 320 0s-24 38.61-24 53.33S306.75 80 320 80zm-208 48c13.25 0 24-11.94 24-26.67S112 48 112 48s-24 38.61-24 53.33S98.75 128 112 128zm64 0c13.25 0 24-11.94 24-26.67S176 48 176 48s-24 38.61-24 53.33S162.75 128 176 128zm64 0c13.25 0 24-11.94 24-26.67S240 48 240 48s-24 38.61-24 53.33S226.75 128 240 128zm160 0c13.25 0 24-11.94 24-26.67S400 48 400 48s-24 38.61-24 53.33S386.75 128 400 128zm64 0c13.25 0 24-11.94 24-26.67S464 48 464 48s-24 38.61-24 53.33S450.75 128 464 128zm64 0c13.25 0 24-11.94 24-26.67S528 48 528 48s-24 38.61-24 53.33S514.75 128 528 128z"]
  112404. };
  112405. var faHardHat = {
  112406. prefix: 'fas',
  112407. iconName: 'hard-hat',
  112408. icon: [512, 512, [], "f807", "M480 288c0-80.25-49.28-148.92-119.19-177.62L320 192V80a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16v112l-40.81-81.62C81.28 139.08 32 207.75 32 288v64h448zm16 96H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  112409. };
  112410. var faHashtag = {
  112411. prefix: 'fas',
  112412. iconName: 'hashtag',
  112413. icon: [448, 512, [], "f292", "M440.667 182.109l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l14.623-81.891C377.123 38.754 371.468 32 363.997 32h-40.632a12 12 0 0 0-11.813 9.891L296.175 128H197.54l14.623-81.891C213.477 38.754 207.822 32 200.35 32h-40.632a12 12 0 0 0-11.813 9.891L132.528 128H53.432a12 12 0 0 0-11.813 9.891l-7.143 40C33.163 185.246 38.818 192 46.289 192h74.81L98.242 320H19.146a12 12 0 0 0-11.813 9.891l-7.143 40C-1.123 377.246 4.532 384 12.003 384h74.81L72.19 465.891C70.877 473.246 76.532 480 84.003 480h40.632a12 12 0 0 0 11.813-9.891L151.826 384h98.634l-14.623 81.891C234.523 473.246 240.178 480 247.65 480h40.632a12 12 0 0 0 11.813-9.891L315.472 384h79.096a12 12 0 0 0 11.813-9.891l7.143-40c1.313-7.355-4.342-14.109-11.813-14.109h-74.81l22.857-128h79.096a12 12 0 0 0 11.813-9.891zM261.889 320h-98.634l22.857-128h98.634l-22.857 128z"]
  112414. };
  112415. var faHatCowboy = {
  112416. prefix: 'fas',
  112417. iconName: 'hat-cowboy',
  112418. icon: [640, 512, [], "f8c0", "M490 296.9C480.51 239.51 450.51 64 392.3 64c-14 0-26.49 5.93-37 14a58.21 58.21 0 0 1-70.58 0c-10.51-8-23-14-37-14-58.2 0-88.2 175.47-97.71 232.88C188.81 309.47 243.73 320 320 320s131.23-10.51 170-23.1zm142.9-37.18a16 16 0 0 0-19.75 1.5c-1 .9-101.27 90.78-293.16 90.78-190.82 0-292.22-89.94-293.24-90.84A16 16 0 0 0 1 278.53C1.73 280.55 78.32 480 320 480s318.27-199.45 319-201.47a16 16 0 0 0-6.09-18.81z"]
  112419. };
  112420. var faHatCowboySide = {
  112421. prefix: 'fas',
  112422. iconName: 'hat-cowboy-side',
  112423. icon: [640, 512, [], "f8c1", "M260.8 291.06c-28.63-22.94-62-35.06-96.4-35.06C87 256 21.47 318.72 1.43 412.06c-3.55 16.6-.43 33.83 8.57 47.3C18.75 472.47 31.83 480 45.88 480H592c-103.21 0-155-37.07-233.19-104.46zm234.65-18.29L468.4 116.2A64 64 0 0 0 392 64.41L200.85 105a64 64 0 0 0-50.35 55.79L143.61 226c6.9-.83 13.7-2 20.79-2 41.79 0 82 14.55 117.29 42.82l98 84.48C450.76 412.54 494.9 448 592 448a48 48 0 0 0 48-48c0-25.39-29.6-119.33-144.55-127.23z"]
  112424. };
  112425. var faHatWizard = {
  112426. prefix: 'fas',
  112427. iconName: 'hat-wizard',
  112428. icon: [512, 512, [], "f6e8", "M496 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-304-64l-64-32 64-32 32-64 32 64 64 32-64 32-16 32h208l-86.41-201.63a63.955 63.955 0 0 1-1.89-45.45L416 0 228.42 107.19a127.989 127.989 0 0 0-53.46 59.15L64 416h144l-16-32zm64-224l16-32 16 32 32 16-32 16-16 32-16-32-32-16 32-16z"]
  112429. };
  112430. var faHdd = {
  112431. prefix: 'fas',
  112432. iconName: 'hdd',
  112433. icon: [576, 512, [], "f0a0", "M576 304v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48zm-48-80a79.557 79.557 0 0 1 30.777 6.165L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L17.223 230.165A79.557 79.557 0 0 1 48 224h480zm-48 96c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"]
  112434. };
  112435. var faHeadSideCough = {
  112436. prefix: 'fas',
  112437. iconName: 'head-side-cough',
  112438. icon: [640, 512, [], "e061", "M616,304a24,24,0,1,0-24-24A24,24,0,0,0,616,304ZM552,416a24,24,0,1,0,24,24A24,24,0,0,0,552,416Zm-64-56a24,24,0,1,0,24,24A24,24,0,0,0,488,360ZM616,464a24,24,0,1,0,24,24A24,24,0,0,0,616,464Zm0-104a24,24,0,1,0,24,24A24,24,0,0,0,616,360Zm-64-40a24,24,0,1,0,24,24A24,24,0,0,0,552,320Zm-74.78-45c-21-47.12-48.5-151.75-73.12-186.75A208.13,208.13,0,0,0,234.1,0H192C86,0,0,86,0,192c0,56.75,24.75,107.62,64,142.88V512H288V480h64a64,64,0,0,0,64-64H320a32,32,0,0,1,0-64h96V320h32A32,32,0,0,0,477.22,275ZM288,224a32,32,0,1,1,32-32A32.07,32.07,0,0,1,288,224Z"]
  112439. };
  112440. var faHeadSideCoughSlash = {
  112441. prefix: 'fas',
  112442. iconName: 'head-side-cough-slash',
  112443. icon: [640, 512, [], "e062", "M454.11,319.21c19.56-3.81,31.62-25,23.11-44.21-21-47.12-48.5-151.75-73.12-186.75A208.13,208.13,0,0,0,234.1,0H192A190.64,190.64,0,0,0,84.18,33.3L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM313.39,210.45,263.61,172c5.88-7.14,14.43-12,24.36-12a32.06,32.06,0,0,1,32,32C320,199,317.24,205.17,313.39,210.45ZM616,304a24,24,0,1,0-24-24A24,24,0,0,0,616,304Zm-64,64a24,24,0,1,0-24-24A24,24,0,0,0,552,368ZM288,384a32,32,0,0,1,32-32h19.54L20.73,105.59A190.86,190.86,0,0,0,0,192c0,56.75,24.75,107.62,64,142.88V512H288V480h64a64,64,0,0,0,64-64H320A32,32,0,0,1,288,384Zm328-24a24,24,0,1,0,24,24A24,24,0,0,0,616,360Z"]
  112444. };
  112445. var faHeadSideMask = {
  112446. prefix: 'fas',
  112447. iconName: 'head-side-mask',
  112448. icon: [512, 512, [], "e063", "M.15,184.42C-2.17,244.21,23,298.06,64,334.88V512H224V316.51L3.67,156.25A182.28,182.28,0,0,0,.15,184.42ZM509.22,275c-21-47.12-48.5-151.75-73.12-186.75A208.11,208.11,0,0,0,266.11,0H200C117,0,42.48,50.57,13.25,123.65L239.21,288H511.76A31.35,31.35,0,0,0,509.22,275ZM320,224a32,32,0,1,1,32-32A32.07,32.07,0,0,1,320,224Zm16,144H496l16-48H256V512H401.88a64,64,0,0,0,60.71-43.76L464,464H336a16,16,0,0,1,0-32H474.67l10.67-32H336a16,16,0,0,1,0-32Z"]
  112449. };
  112450. var faHeadSideVirus = {
  112451. prefix: 'fas',
  112452. iconName: 'head-side-virus',
  112453. icon: [512, 512, [], "e064", "M272,240a16,16,0,1,0,16,16A16,16,0,0,0,272,240Zm-64-64a16,16,0,1,0,16,16A16,16,0,0,0,208,176Zm301.2,99c-20.93-47.12-48.43-151.73-73.07-186.75A207.9,207.9,0,0,0,266.09,0H192C86,0,0,86,0,192A191.23,191.23,0,0,0,64,334.81V512H320V448h64a64,64,0,0,0,64-64V320H480A32,32,0,0,0,509.2,275ZM368,240H355.88c-28.51,0-42.79,34.47-22.63,54.63l8.58,8.57a16,16,0,1,1-22.63,22.63l-8.57-8.58C290.47,297.09,256,311.37,256,339.88V352a16,16,0,0,1-32,0V339.88c0-28.51-34.47-42.79-54.63-22.63l-8.57,8.58a16,16,0,0,1-22.63-22.63l8.58-8.57c20.16-20.16,5.88-54.63-22.63-54.63H112a16,16,0,0,1,0-32h12.12c28.51,0,42.79-34.47,22.63-54.63l-8.58-8.57a16,16,0,0,1,22.63-22.63l8.57,8.58c20.16,20.16,54.63,5.88,54.63-22.63V96a16,16,0,0,1,32,0v12.12c0,28.51,34.47,42.79,54.63,22.63l8.57-8.58a16,16,0,0,1,22.63,22.63l-8.58,8.57C313.09,173.53,327.37,208,355.88,208H368a16,16,0,0,1,0,32Z"]
  112454. };
  112455. var faHeading = {
  112456. prefix: 'fas',
  112457. iconName: 'heading',
  112458. icon: [512, 512, [], "f1dc", "M448 96v320h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H320a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V288H160v128h32a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H32a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h32V96H32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16h-32v128h192V96h-32a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h160a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16z"]
  112459. };
  112460. var faHeadphones = {
  112461. prefix: 'fas',
  112462. iconName: 'headphones',
  112463. icon: [512, 512, [], "f025", "M256 32C114.52 32 0 146.496 0 288v48a32 32 0 0 0 17.689 28.622l14.383 7.191C34.083 431.903 83.421 480 144 480h24c13.255 0 24-10.745 24-24V280c0-13.255-10.745-24-24-24h-24c-31.342 0-59.671 12.879-80 33.627V288c0-105.869 86.131-192 192-192s192 86.131 192 192v1.627C427.671 268.879 399.342 256 368 256h-24c-13.255 0-24 10.745-24 24v176c0 13.255 10.745 24 24 24h24c60.579 0 109.917-48.098 111.928-108.187l14.382-7.191A32 32 0 0 0 512 336v-48c0-141.479-114.496-256-256-256z"]
  112464. };
  112465. var faHeadphonesAlt = {
  112466. prefix: 'fas',
  112467. iconName: 'headphones-alt',
  112468. icon: [512, 512, [], "f58f", "M160 288h-16c-35.35 0-64 28.7-64 64.12v63.76c0 35.41 28.65 64.12 64 64.12h16c17.67 0 32-14.36 32-32.06V320.06c0-17.71-14.33-32.06-32-32.06zm208 0h-16c-17.67 0-32 14.35-32 32.06v127.88c0 17.7 14.33 32.06 32 32.06h16c35.35 0 64-28.71 64-64.12v-63.76c0-35.41-28.65-64.12-64-64.12zM256 32C112.91 32 4.57 151.13 0 288v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288c0-114.67 93.33-207.8 208-207.82 114.67.02 208 93.15 208 207.82v112c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V288C507.43 151.13 399.09 32 256 32z"]
  112469. };
  112470. var faHeadset = {
  112471. prefix: 'fas',
  112472. iconName: 'headset',
  112473. icon: [512, 512, [], "f590", "M192 208c0-17.67-14.33-32-32-32h-16c-35.35 0-64 28.65-64 64v48c0 35.35 28.65 64 64 64h16c17.67 0 32-14.33 32-32V208zm176 144c35.35 0 64-28.65 64-64v-48c0-35.35-28.65-64-64-64h-16c-17.67 0-32 14.33-32 32v112c0 17.67 14.33 32 32 32h16zM256 0C113.18 0 4.58 118.83 0 256v16c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-16c0-114.69 93.31-208 208-208s208 93.31 208 208h-.12c.08 2.43.12 165.72.12 165.72 0 23.35-18.93 42.28-42.28 42.28H320c0-26.51-21.49-48-48-48h-32c-26.51 0-48 21.49-48 48s21.49 48 48 48h181.72c49.86 0 90.28-40.42 90.28-90.28V256C507.42 118.83 398.82 0 256 0z"]
  112474. };
  112475. var faHeart = {
  112476. prefix: 'fas',
  112477. iconName: 'heart',
  112478. icon: [512, 512, [], "f004", "M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"]
  112479. };
  112480. var faHeartBroken = {
  112481. prefix: 'fas',
  112482. iconName: 'heart-broken',
  112483. icon: [512, 512, [], "f7a9", "M473.7 73.8l-2.4-2.5c-46-47-118-51.7-169.6-14.8L336 159.9l-96 64 48 128-144-144 96-64-28.6-86.5C159.7 19.6 87 24 40.7 71.4l-2.4 2.4C-10.4 123.6-12.5 202.9 31 256l212.1 218.6c7.1 7.3 18.6 7.3 25.7 0L481 255.9c43.5-53 41.4-132.3-7.3-182.1z"]
  112484. };
  112485. var faHeartbeat = {
  112486. prefix: 'fas',
  112487. iconName: 'heartbeat',
  112488. icon: [512, 512, [], "f21e", "M320.2 243.8l-49.7 99.4c-6 12.1-23.4 11.7-28.9-.6l-56.9-126.3-30 71.7H60.6l182.5 186.5c7.1 7.3 18.6 7.3 25.7 0L451.4 288H342.3l-22.1-44.2zM473.7 73.9l-2.4-2.5c-51.5-52.6-135.8-52.6-187.4 0L256 100l-27.9-28.5c-51.5-52.7-135.9-52.7-187.4 0l-2.4 2.4C-10.4 123.7-12.5 203 31 256h102.4l35.9-86.2c5.4-12.9 23.6-13.2 29.4-.4l58.2 129.3 49-97.9c5.9-11.8 22.7-11.8 28.6 0l27.6 55.2H481c43.5-53 41.4-132.3-7.3-182.1z"]
  112489. };
  112490. var faHelicopter = {
  112491. prefix: 'fas',
  112492. iconName: 'helicopter',
  112493. icon: [640, 512, [], "f533", "M304 384h272c17.67 0 32-14.33 32-32 0-123.71-100.29-224-224-224V64h176c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H144c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h176v64H112L68.8 70.4C65.78 66.37 61.03 64 56 64H16.01C5.6 64-2.04 73.78.49 83.88L32 192l160 64 86.4 115.2A31.992 31.992 0 0 0 304 384zm112-188.49C478.55 208.3 528.03 257.44 540.79 320H416V195.51zm219.37 263.3l-22.15-22.2c-6.25-6.26-16.24-6.1-22.64.01-7.09 6.77-13.84 11.25-24.64 11.25H240c-8.84 0-16 7.18-16 16.03v32.06c0 8.85 7.16 16.03 16 16.03h325.94c14.88 0 35.3-.47 68.45-29.52 7.02-6.14 7.57-17.05.98-23.66z"]
  112494. };
  112495. var faHighlighter = {
  112496. prefix: 'fas',
  112497. iconName: 'highlighter',
  112498. icon: [544, 512, [], "f591", "M0 479.98L99.92 512l35.45-35.45-67.04-67.04L0 479.98zm124.61-240.01a36.592 36.592 0 0 0-10.79 38.1l13.05 42.83-50.93 50.94 96.23 96.23 50.86-50.86 42.74 13.08c13.73 4.2 28.65-.01 38.15-10.78l35.55-41.64-173.34-173.34-41.52 35.44zm403.31-160.7l-63.2-63.2c-20.49-20.49-53.38-21.52-75.12-2.35L190.55 183.68l169.77 169.78L530.27 154.4c19.18-21.74 18.15-54.63-2.35-75.13z"]
  112499. };
  112500. var faHiking = {
  112501. prefix: 'fas',
  112502. iconName: 'hiking',
  112503. icon: [384, 512, [], "f6ec", "M80.95 472.23c-4.28 17.16 6.14 34.53 23.28 38.81 2.61.66 5.22.95 7.8.95 14.33 0 27.37-9.7 31.02-24.23l25.24-100.97-52.78-52.78-34.56 138.22zm14.89-196.12L137 117c2.19-8.42-3.14-16.95-11.92-19.06-43.88-10.52-88.35 15.07-99.32 57.17L.49 253.24c-2.19 8.42 3.14 16.95 11.92 19.06l63.56 15.25c8.79 2.1 17.68-3.02 19.87-11.44zM368 160h-16c-8.84 0-16 7.16-16 16v16h-34.75l-46.78-46.78C243.38 134.11 228.61 128 212.91 128c-27.02 0-50.47 18.3-57.03 44.52l-26.92 107.72a32.012 32.012 0 0 0 8.42 30.39L224 397.25V480c0 17.67 14.33 32 32 32s32-14.33 32-32v-82.75c0-17.09-6.66-33.16-18.75-45.25l-46.82-46.82c.15-.5.49-.89.62-1.41l19.89-79.57 22.43 22.43c6 6 14.14 9.38 22.62 9.38h48v240c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16V176c.01-8.84-7.15-16-15.99-16zM240 96c26.51 0 48-21.49 48-48S266.51 0 240 0s-48 21.49-48 48 21.49 48 48 48z"]
  112504. };
  112505. var faHippo = {
  112506. prefix: 'fas',
  112507. iconName: 'hippo',
  112508. icon: [640, 512, [], "f6ed", "M581.12 96.2c-27.67-.15-52.5 17.58-76.6 26.62C489.98 88.27 455.83 64 416 64c-11.28 0-21.95 2.3-32 5.88V56c0-13.26-10.75-24-24-24h-16c-13.25 0-24 10.74-24 24v48.98C286.01 79.58 241.24 64 192 64 85.96 64 0 135.64 0 224v240c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16v-70.79C128.35 407.57 166.72 416 208 416s79.65-8.43 112-22.79V464c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V288h128v32c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-32c17.67 0 32-14.33 32-32v-92.02c0-34.09-24.79-67.59-58.88-67.78zM448 176c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"]
  112509. };
  112510. var faHistory = {
  112511. prefix: 'fas',
  112512. iconName: 'history',
  112513. icon: [512, 512, [], "f1da", "M504 255.531c.253 136.64-111.18 248.372-247.82 248.468-59.015.042-113.223-20.53-155.822-54.911-11.077-8.94-11.905-25.541-1.839-35.607l11.267-11.267c8.609-8.609 22.353-9.551 31.891-1.984C173.062 425.135 212.781 440 256 440c101.705 0 184-82.311 184-184 0-101.705-82.311-184-184-184-48.814 0-93.149 18.969-126.068 49.932l50.754 50.754c10.08 10.08 2.941 27.314-11.313 27.314H24c-8.837 0-16-7.163-16-16V38.627c0-14.254 17.234-21.393 27.314-11.314l49.372 49.372C129.209 34.136 189.552 8 256 8c136.81 0 247.747 110.78 248 247.531zm-180.912 78.784l9.823-12.63c8.138-10.463 6.253-25.542-4.21-33.679L288 256.349V152c0-13.255-10.745-24-24-24h-16c-13.255 0-24 10.745-24 24v135.651l65.409 50.874c10.463 8.137 25.541 6.253 33.679-4.21z"]
  112514. };
  112515. var faHockeyPuck = {
  112516. prefix: 'fas',
  112517. iconName: 'hockey-puck',
  112518. icon: [512, 512, [], "f453", "M0 160c0-53 114.6-96 256-96s256 43 256 96-114.6 96-256 96S0 213 0 160zm0 82.2V352c0 53 114.6 96 256 96s256-43 256-96V242.2c-113.4 82.3-398.5 82.4-512 0z"]
  112519. };
  112520. var faHollyBerry = {
  112521. prefix: 'fas',
  112522. iconName: 'holly-berry',
  112523. icon: [448, 512, [], "f7aa", "M144 192c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm112-48c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zm-32-48c26.5 0 48-21.5 48-48S250.5 0 224 0s-48 21.5-48 48 21.5 48 48 48zm-16.2 139.1c.1-12.4-13.1-20.1-23.8-13.7-34.3 20.3-71.4 32.7-108.7 36.2-9.7.9-15.6 11.3-11.6 20.2 6.2 13.9 11.1 28.6 14.7 43.8 3.6 15.2-5.3 30.6-20.2 35.1-14.9 4.5-30.1 7.6-45.3 9.1-9.7 1-15.7 11.3-11.7 20.2 15 32.8 22.9 69.5 23 107.7.1 14.4 15.2 23.1 27.6 16 33.2-19 68.9-30.5 104.8-33.9 9.7-.9 15.6-11.3 11.6-20.2-6.2-13.9-11.1-28.6-14.7-43.8-3.6-15.2 5.3-30.6 20.2-35.1 14.9-4.5 30.1-7.6 45.3-9.1 9.7-1 15.7-11.3 11.7-20.2-15.5-34.2-23.3-72.5-22.9-112.3zM435 365.6c-15.2-1.6-30.3-4.7-45.3-9.1-14.9-4.5-23.8-19.9-20.2-35.1 3.6-15.2 8.5-29.8 14.7-43.8 4-8.9-1.9-19.3-11.6-20.2-37.3-3.5-74.4-15.9-108.7-36.2-10.7-6.3-23.9 1.4-23.8 13.7 0 1.6-.2 3.2-.2 4.9.2 33.3 7 65.7 19.9 94 5.7 12.4 5.2 26.6-.6 38.9 4.9 1.2 9.9 2.2 14.8 3.7 14.9 4.5 23.8 19.9 20.2 35.1-3.6 15.2-8.5 29.8-14.7 43.8-4 8.9 1.9 19.3 11.6 20.2 35.9 3.4 71.6 14.9 104.8 33.9 12.5 7.1 27.6-1.6 27.6-16 .2-38.2 8-75 23-107.7 4.3-8.7-1.8-19.1-11.5-20.1z"]
  112524. };
  112525. var faHome = {
  112526. prefix: 'fas',
  112527. iconName: 'home',
  112528. icon: [576, 512, [], "f015", "M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"]
  112529. };
  112530. var faHorse = {
  112531. prefix: 'fas',
  112532. iconName: 'horse',
  112533. icon: [576, 512, [], "f6f0", "M575.92 76.6c-.01-8.13-3.02-15.87-8.58-21.8-3.78-4.03-8.58-9.12-13.69-14.5 11.06-6.84 19.5-17.49 22.18-30.66C576.85 4.68 572.96 0 567.9 0H447.92c-70.69 0-128 57.31-128 128H160c-28.84 0-54.4 12.98-72 33.11V160c-48.53 0-88 39.47-88 88v56c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-56c0-13.22 6.87-24.39 16.78-31.68-.21 2.58-.78 5.05-.78 7.68 0 27.64 11.84 52.36 30.54 69.88l-25.72 68.6a63.945 63.945 0 0 0-2.16 37.99l24.85 99.41A15.982 15.982 0 0 0 107.02 512h65.96c10.41 0 18.05-9.78 15.52-19.88l-26.31-105.26 23.84-63.59L320 345.6V496c0 8.84 7.16 16 16 16h64c8.84 0 16-7.16 16-16V318.22c19.74-20.19 32-47.75 32-78.22 0-.22-.07-.42-.08-.64V136.89l16 7.11 18.9 37.7c7.45 14.87 25.05 21.55 40.49 15.37l32.55-13.02a31.997 31.997 0 0 0 20.12-29.74l-.06-77.71zm-64 19.4c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16z"]
  112534. };
  112535. var faHorseHead = {
  112536. prefix: 'fas',
  112537. iconName: 'horse-head',
  112538. icon: [512, 512, [], "f7ab", "M509.8 332.5l-69.9-164.3c-14.9-41.2-50.4-71-93-79.2 18-10.6 46.3-35.9 34.2-82.3-1.3-5-7.1-7.9-12-6.1L166.9 76.3C35.9 123.4 0 238.9 0 398.8V480c0 17.7 14.3 32 32 32h236.2c23.8 0 39.3-25 28.6-46.3L256 384v-.7c-45.6-3.5-84.6-30.7-104.3-69.6-1.6-3.1-.9-6.9 1.6-9.3l12.1-12.1c3.9-3.9 10.6-2.7 12.9 2.4 14.8 33.7 48.2 57.4 87.4 57.4 17.2 0 33-5.1 46.8-13.2l46 63.9c6 8.4 15.7 13.3 26 13.3h50.3c8.5 0 16.6-3.4 22.6-9.4l45.3-39.8c8.9-9.1 11.7-22.6 7.1-34.4zM328 224c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24-10.7 24-24 24z"]
  112539. };
  112540. var faHospital = {
  112541. prefix: 'fas',
  112542. iconName: 'hospital',
  112543. icon: [448, 512, [], "f0f8", "M448 492v20H0v-20c0-6.627 5.373-12 12-12h20V120c0-13.255 10.745-24 24-24h88V24c0-13.255 10.745-24 24-24h112c13.255 0 24 10.745 24 24v72h88c13.255 0 24 10.745 24 24v360h20c6.627 0 12 5.373 12 12zM308 192h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-168 64h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12zm104 128h-40c-6.627 0-12 5.373-12 12v84h64v-84c0-6.627-5.373-12-12-12zm64-96h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12zm-116 12c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40zM182 96h26v26a6 6 0 0 0 6 6h20a6 6 0 0 0 6-6V96h26a6 6 0 0 0 6-6V70a6 6 0 0 0-6-6h-26V38a6 6 0 0 0-6-6h-20a6 6 0 0 0-6 6v26h-26a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6z"]
  112544. };
  112545. var faHospitalAlt = {
  112546. prefix: 'fas',
  112547. iconName: 'hospital-alt',
  112548. icon: [576, 512, [], "f47d", "M544 96H416V32c0-17.7-14.3-32-32-32H192c-17.7 0-32 14.3-32 32v64H32c-17.7 0-32 14.3-32 32v368c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16V128c0-17.7-14.3-32-32-32zM160 436c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm160 128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm16-170c0 3.3-2.7 6-6 6h-26v26c0 3.3-2.7 6-6 6h-20c-3.3 0-6-2.7-6-6v-26h-26c-3.3 0-6-2.7-6-6v-20c0-3.3 2.7-6 6-6h26V86c0-3.3 2.7-6 6-6h20c3.3 0 6 2.7 6 6v26h26c3.3 0 6 2.7 6 6v20zm144 298c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40zm0-128c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40z"]
  112549. };
  112550. var faHospitalSymbol = {
  112551. prefix: 'fas',
  112552. iconName: 'hospital-symbol',
  112553. icon: [512, 512, [], "f47e", "M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm112 376c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-88h-96v88c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V136c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v88h96v-88c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v240z"]
  112554. };
  112555. var faHospitalUser = {
  112556. prefix: 'fas',
  112557. iconName: 'hospital-user',
  112558. icon: [640, 512, [], "f80d", "M480 320a96 96 0 1 0-96-96 96 96 0 0 0 96 96zm48 32a22.88 22.88 0 0 0-7.06 1.09 124.76 124.76 0 0 1-81.89 0A22.82 22.82 0 0 0 432 352a112 112 0 0 0-112 112.62c.14 26.26 21.73 47.38 48 47.38h224c26.27 0 47.86-21.12 48-47.38A112 112 0 0 0 528 352zm-198.09 10.45A145.19 145.19 0 0 1 352 344.62V128a32 32 0 0 0-32-32h-32V32a32 32 0 0 0-32-32H96a32 32 0 0 0-32 32v64H32a32 32 0 0 0-32 32v368a16 16 0 0 0 16 16h288.31A78.62 78.62 0 0 1 288 464.79a143.06 143.06 0 0 1 41.91-102.34zM144 404a12 12 0 0 1-12 12H92a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm0-128a12 12 0 0 1-12 12H92a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm48-122a6 6 0 0 1-6 6h-20a6 6 0 0 1-6-6v-26h-26a6 6 0 0 1-6-6v-20a6 6 0 0 1 6-6h26V70a6 6 0 0 1 6-6h20a6 6 0 0 1 6 6v26h26a6 6 0 0 1 6 6v20a6 6 0 0 1-6 6h-26zm80 250a12 12 0 0 1-12 12h-40a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12zm0-128a12 12 0 0 1-12 12h-40a12 12 0 0 1-12-12v-40a12 12 0 0 1 12-12h40a12 12 0 0 1 12 12z"]
  112559. };
  112560. var faHotTub = {
  112561. prefix: 'fas',
  112562. iconName: 'hot-tub',
  112563. icon: [512, 512, [], "f593", "M414.21 177.65c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C378.96 6.14 372.22 0 364.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zm-108 0c1.02 8.21 7.75 14.35 15.75 14.35h16.12c9.51 0 17.08-8.57 16-18.35-4.34-39.11-22.4-74.53-50.13-97.16-17.37-14.17-28.82-36.75-31.98-62.15C270.96 6.14 264.22 0 256.23 0h-16.12c-9.51 0-17.09 8.57-16 18.35 4.34 39.11 22.4 74.53 50.13 97.16 17.36 14.17 28.82 36.75 31.97 62.14zM480 256H256l-110.93-83.2a63.99 63.99 0 0 0-38.4-12.8H64c-35.35 0-64 28.65-64 64v224c0 35.35 28.65 64 64 64h384c35.35 0 64-28.65 64-64V288c0-17.67-14.33-32-32-32zM128 440c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zm96 0c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8V328c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v112zM64 128c35.35 0 64-28.65 64-64S99.35 0 64 0 0 28.65 0 64s28.65 64 64 64z"]
  112564. };
  112565. var faHotdog = {
  112566. prefix: 'fas',
  112567. iconName: 'hotdog',
  112568. icon: [512, 512, [], "f80f", "M488.56 23.44a80 80 0 0 0-113.12 0l-352 352a80 80 0 1 0 113.12 113.12l352-352a80 80 0 0 0 0-113.12zm-49.93 95.19c-19.6 19.59-37.52 22.67-51.93 25.14C373.76 146 364.4 147.6 352 160s-14 21.76-16.23 34.71c-2.48 14.4-5.55 32.33-25.15 51.92s-37.52 22.67-51.92 25.15C245.75 274 236.4 275.6 224 288s-14 21.75-16.23 34.7c-2.47 14.4-5.54 32.33-25.14 51.92s-37.53 22.68-51.93 25.15C117.76 402 108.4 403.6 96 416a16 16 0 0 1-22.63-22.63c19.6-19.59 37.52-22.67 51.92-25.14 13-2.22 22.3-3.82 34.71-16.23s14-21.75 16.22-34.7c2.48-14.4 5.55-32.33 25.15-51.92s37.52-22.67 51.92-25.14c13-2.22 22.3-3.83 34.7-16.23s14-21.76 16.24-34.71c2.47-14.4 5.54-32.33 25.14-51.92s37.52-22.68 51.92-25.15C394.24 110 403.59 108.41 416 96a16 16 0 0 1 22.63 22.63zM31.44 322.18L322.18 31.44l-11.54-11.55c-25-25-63.85-26.66-86.79-3.72L16.17 223.85c-22.94 22.94-21.27 61.79 3.72 86.78zm449.12-132.36L189.82 480.56l11.54 11.55c25 25 63.85 26.66 86.79 3.72l207.68-207.68c22.94-22.94 21.27-61.79-3.72-86.79z"]
  112569. };
  112570. var faHotel = {
  112571. prefix: 'fas',
  112572. iconName: 'hotel',
  112573. icon: [576, 512, [], "f594", "M560 64c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h15.98v384H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h240v-80c0-8.8 7.2-16 16-16h32c8.8 0 16 7.2 16 16v80h240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-16V64h16zm-304 44.8c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm0 96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zm-128-96c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4zM179.2 256h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4c0 6.4-6.4 12.8-12.8 12.8zM192 384c0-53.02 42.98-96 96-96s96 42.98 96 96H192zm256-140.8c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4zm0-96c0 6.4-6.4 12.8-12.8 12.8h-38.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h38.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"]
  112574. };
  112575. var faHourglass = {
  112576. prefix: 'fas',
  112577. iconName: 'hourglass',
  112578. icon: [384, 512, [], "f254", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64z"]
  112579. };
  112580. var faHourglassEnd = {
  112581. prefix: 'fas',
  112582. iconName: 'hourglass-end',
  112583. icon: [384, 512, [], "f253", "M360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64zM192 208c-57.787 0-104-66.518-104-144h208c0 77.945-46.51 144-104 144z"]
  112584. };
  112585. var faHourglassHalf = {
  112586. prefix: 'fas',
  112587. iconName: 'hourglass-half',
  112588. icon: [384, 512, [], "f252", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-75.078 384H99.08c17.059-46.797 52.096-80 92.92-80 40.821 0 75.862 33.196 92.922 80zm.019-256H99.078C91.988 108.548 88 86.748 88 64h208c0 22.805-3.987 44.587-11.059 64z"]
  112589. };
  112590. var faHourglassStart = {
  112591. prefix: 'fas',
  112592. iconName: 'hourglass-start',
  112593. icon: [384, 512, [], "f251", "M360 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24 0 90.965 51.016 167.734 120.842 192C75.016 280.266 24 357.035 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24 0-90.965-51.016-167.734-120.842-192C308.984 231.734 360 154.965 360 64c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24zm-64 448H88c0-77.458 46.204-144 104-144 57.786 0 104 66.517 104 144z"]
  112594. };
  112595. var faHouseDamage = {
  112596. prefix: 'fas',
  112597. iconName: 'house-damage',
  112598. icon: [576, 512, [], "f6f1", "M288 114.96L69.47 307.71c-1.62 1.46-3.69 2.14-5.47 3.35V496c0 8.84 7.16 16 16 16h149.23L192 439.19l104.11-64-60.16-119.22L384 392.75l-104.11 64L319.81 512H496c8.84 0 16-7.16 16-16V311.1c-1.7-1.16-3.72-1.82-5.26-3.2L288 114.96zm282.69 121.32L512 184.45V48c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v51.69L314.75 10.31C307.12 3.45 297.56.01 288 0s-19.1 3.41-26.7 10.27L5.31 236.28c-6.57 5.91-7.12 16.02-1.21 22.6l21.4 23.82c5.9 6.57 16.02 7.12 22.6 1.21L277.42 81.63c6.05-5.33 15.12-5.33 21.17 0L527.91 283.9c6.57 5.9 16.69 5.36 22.6-1.21l21.4-23.82c5.9-6.57 5.36-16.69-1.22-22.59z"]
  112599. };
  112600. var faHouseUser = {
  112601. prefix: 'fas',
  112602. iconName: 'house-user',
  112603. icon: [576, 512, [], "e065", "M570.69,236.27,512,184.44V48a16,16,0,0,0-16-16H432a16,16,0,0,0-16,16V99.67L314.78,10.3C308.5,4.61,296.53,0,288,0s-20.46,4.61-26.74,10.3l-256,226A18.27,18.27,0,0,0,0,248.2a18.64,18.64,0,0,0,4.09,10.71L25.5,282.7a21.14,21.14,0,0,0,12,5.3,21.67,21.67,0,0,0,10.69-4.11l15.9-14V480a32,32,0,0,0,32,32H480a32,32,0,0,0,32-32V269.88l15.91,14A21.94,21.94,0,0,0,538.63,288a20.89,20.89,0,0,0,11.87-5.31l21.41-23.81A21.64,21.64,0,0,0,576,248.19,21,21,0,0,0,570.69,236.27ZM288,176a64,64,0,1,1-64,64A64,64,0,0,1,288,176ZM400,448H176a16,16,0,0,1-16-16,96,96,0,0,1,96-96h64a96,96,0,0,1,96,96A16,16,0,0,1,400,448Z"]
  112604. };
  112605. var faHryvnia = {
  112606. prefix: 'fas',
  112607. iconName: 'hryvnia',
  112608. icon: [384, 512, [], "f6f2", "M368 240c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-41.86c13.41-28.63 13.74-63.33-4.13-94.05C303.34 49.84 267.1 32 229.96 32h-78.82c-24.32 0-47.86 8.53-66.54 24.09L72.83 65.9c-10.18 8.49-11.56 23.62-3.07 33.8l20.49 24.59c8.49 10.19 23.62 11.56 33.81 3.07l11.73-9.78c4.32-3.6 9.77-5.57 15.39-5.57h83.62c11.69 0 21.2 9.52 21.2 21.2 0 5.91-2.48 11.58-6.81 15.58L219.7 176H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h134.37l-34.67 32H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h41.86c-13.41 28.63-13.74 63.33 4.13 94.05C80.66 462.15 116.9 480 154.04 480h78.82c24.32 0 47.86-8.53 66.54-24.09l11.77-9.81c10.18-8.49 11.56-23.62 3.07-33.8l-20.49-24.59c-8.49-10.19-23.62-11.56-33.81-3.07l-11.75 9.8a23.992 23.992 0 0 1-15.36 5.56H149.2c-11.69 0-21.2-9.52-21.2-21.2 0-5.91 2.48-11.58 6.81-15.58L164.3 336H368c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H233.63l34.67-32H368z"]
  112609. };
  112610. var faICursor = {
  112611. prefix: 'fas',
  112612. iconName: 'i-cursor',
  112613. icon: [256, 512, [], "f246", "M256 52.048V12.065C256 5.496 250.726.148 244.158.066 211.621-.344 166.469.011 128 37.959 90.266.736 46.979-.114 11.913.114 5.318.157 0 5.519 0 12.114v39.645c0 6.687 5.458 12.078 12.145 11.998C38.111 63.447 96 67.243 96 112.182V224H60c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h36v112c0 44.932-56.075 48.031-83.95 47.959C5.404 447.942 0 453.306 0 459.952v39.983c0 6.569 5.274 11.917 11.842 11.999 32.537.409 77.689.054 116.158-37.894 37.734 37.223 81.021 38.073 116.087 37.845 6.595-.043 11.913-5.405 11.913-12V460.24c0-6.687-5.458-12.078-12.145-11.998C217.889 448.553 160 444.939 160 400V288h36c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-36V112.182c0-44.932 56.075-48.213 83.95-48.142 6.646.018 12.05-5.346 12.05-11.992z"]
  112614. };
  112615. var faIceCream = {
  112616. prefix: 'fas',
  112617. iconName: 'ice-cream',
  112618. icon: [448, 512, [], "f810", "M368 160h-.94a144 144 0 1 0-286.12 0H80a48 48 0 0 0 0 96h288a48 48 0 0 0 0-96zM195.38 493.69a31.52 31.52 0 0 0 57.24 0L352 288H96z"]
  112619. };
  112620. var faIcicles = {
  112621. prefix: 'fas',
  112622. iconName: 'icicles',
  112623. icon: [512, 512, [], "f7ad", "M511.4 37.9C515.1 18.2 500 0 480 0H32C10.6 0-4.8 20.7 1.4 41.2l87.1 273.4c2.5 7.2 12.7 7.2 15.1 0L140 190.5l44.2 187.3c1.9 8.3 13.7 8.3 15.6 0l46.5-196.9 34.1 133.4c2.3 7.6 13 7.6 15.3 0l45.8-172.5 66.7 363.8c1.7 8.6 14 8.6 15.7 0l87.5-467.7z"]
  112624. };
  112625. var faIcons = {
  112626. prefix: 'fas',
  112627. iconName: 'icons',
  112628. icon: [512, 512, [], "f86d", "M116.65 219.35a15.68 15.68 0 0 0 22.65 0l96.75-99.83c28.15-29 26.5-77.1-4.91-103.88C203.75-7.7 163-3.5 137.86 22.44L128 32.58l-9.85-10.14C93.05-3.5 52.25-7.7 24.86 15.64c-31.41 26.78-33 74.85-5 103.88zm143.92 100.49h-48l-7.08-14.24a27.39 27.39 0 0 0-25.66-17.78h-71.71a27.39 27.39 0 0 0-25.66 17.78l-7 14.24h-48A27.45 27.45 0 0 0 0 347.3v137.25A27.44 27.44 0 0 0 27.43 512h233.14A27.45 27.45 0 0 0 288 484.55V347.3a27.45 27.45 0 0 0-27.43-27.46zM144 468a52 52 0 1 1 52-52 52 52 0 0 1-52 52zm355.4-115.9h-60.58l22.36-50.75c2.1-6.65-3.93-13.21-12.18-13.21h-75.59c-6.3 0-11.66 3.9-12.5 9.1l-16.8 106.93c-1 6.3 4.88 11.89 12.5 11.89h62.31l-24.2 83c-1.89 6.65 4.2 12.9 12.23 12.9a13.26 13.26 0 0 0 10.92-5.25l92.4-138.91c4.88-6.91-1.16-15.7-10.87-15.7zM478.08.33L329.51 23.17C314.87 25.42 304 38.92 304 54.83V161.6a83.25 83.25 0 0 0-16-1.7c-35.35 0-64 21.48-64 48s28.65 48 64 48c35.2 0 63.73-21.32 64-47.66V99.66l112-17.22v47.18a83.25 83.25 0 0 0-16-1.7c-35.35 0-64 21.48-64 48s28.65 48 64 48c35.2 0 63.73-21.32 64-47.66V32c0-19.48-16-34.42-33.92-31.67z"]
  112629. };
  112630. var faIdBadge = {
  112631. prefix: 'fas',
  112632. iconName: 'id-badge',
  112633. icon: [384, 512, [], "f2c1", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM144 32h96c8.8 0 16 7.2 16 16s-7.2 16-16 16h-96c-8.8 0-16-7.2-16-16s7.2-16 16-16zm48 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 416 80 407.4 80 396.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"]
  112634. };
  112635. var faIdCard = {
  112636. prefix: 'fas',
  112637. iconName: 'id-card',
  112638. icon: [576, 512, [], "f2c2", "M528 32H48C21.5 32 0 53.5 0 80v16h576V80c0-26.5-21.5-48-48-48zM0 432c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V128H0v304zm352-232c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zm0 64c0-4.4 3.6-8 8-8h144c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H360c-4.4 0-8-3.6-8-8v-16zM176 192c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zM67.1 396.2C75.5 370.5 99.6 352 128 352h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.9-5.2 19.8-15.6 19.8H82.7c-10.4 0-18.8-10-15.6-19.8z"]
  112639. };
  112640. var faIdCardAlt = {
  112641. prefix: 'fas',
  112642. iconName: 'id-card-alt',
  112643. icon: [576, 512, [], "f47f", "M528 64H384v96H192V64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM288 224c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm93.3 224H194.7c-10.4 0-18.8-10-15.6-19.8 8.3-25.6 32.4-44.2 60.9-44.2h8.2c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h8.2c28.4 0 52.5 18.5 60.9 44.2 3.2 9.8-5.2 19.8-15.6 19.8zM352 32c0-17.7-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32v96h128V32z"]
  112644. };
  112645. var faIgloo = {
  112646. prefix: 'fas',
  112647. iconName: 'igloo',
  112648. icon: [576, 512, [], "f7ae", "M320 33.9c-10.5-1.2-21.2-1.9-32-1.9-99.8 0-187.8 50.8-239.4 128H320V33.9zM96 192H30.3C11.1 230.6 0 274 0 320h96V192zM352 39.4V160h175.4C487.2 99.9 424.8 55.9 352 39.4zM480 320h96c0-46-11.1-89.4-30.3-128H480v128zm-64 64v96h128c17.7 0 32-14.3 32-32v-96H411.5c2.6 10.3 4.5 20.9 4.5 32zm32-192H128v128h49.8c22.2-38.1 63-64 110.2-64s88 25.9 110.2 64H448V192zM0 448c0 17.7 14.3 32 32 32h128v-96c0-11.1 1.9-21.7 4.5-32H0v96zm288-160c-53 0-96 43-96 96v96h192v-96c0-53-43-96-96-96z"]
  112649. };
  112650. var faImage = {
  112651. prefix: 'fas',
  112652. iconName: 'image',
  112653. icon: [512, 512, [], "f03e", "M464 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM112 120c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56zM64 384h384V272l-87.515-87.515c-4.686-4.686-12.284-4.686-16.971 0L208 320l-55.515-55.515c-4.686-4.686-12.284-4.686-16.971 0L64 336v48z"]
  112654. };
  112655. var faImages = {
  112656. prefix: 'fas',
  112657. iconName: 'images',
  112658. icon: [576, 512, [], "f302", "M480 416v16c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v208c0 44.112 35.888 80 80 80h336zm96-80V80c0-26.51-21.49-48-48-48H144c-26.51 0-48 21.49-48 48v256c0 26.51 21.49 48 48 48h384c26.51 0 48-21.49 48-48zM256 128c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-96 144l55.515-55.515c4.686-4.686 12.284-4.686 16.971 0L272 256l135.515-135.515c4.686-4.686 12.284-4.686 16.971 0L512 208v112H160v-48z"]
  112659. };
  112660. var faInbox = {
  112661. prefix: 'fas',
  112662. iconName: 'inbox',
  112663. icon: [576, 512, [], "f01c", "M567.938 243.908L462.25 85.374A48.003 48.003 0 0 0 422.311 64H153.689a48 48 0 0 0-39.938 21.374L8.062 243.908A47.994 47.994 0 0 0 0 270.533V400c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V270.533a47.994 47.994 0 0 0-8.062-26.625zM162.252 128h251.497l85.333 128H376l-32 64H232l-32-64H76.918l85.334-128z"]
  112664. };
  112665. var faIndent = {
  112666. prefix: 'fas',
  112667. iconName: 'indent',
  112668. icon: [448, 512, [], "f03c", "M27.31 363.3l96-96a16 16 0 0 0 0-22.62l-96-96C17.27 138.66 0 145.78 0 160v192c0 14.31 17.33 21.3 27.31 11.3zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  112669. };
  112670. var faIndustry = {
  112671. prefix: 'fas',
  112672. iconName: 'industry',
  112673. icon: [512, 512, [], "f275", "M475.115 163.781L336 252.309v-68.28c0-18.916-20.931-30.399-36.885-20.248L160 252.309V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56v400c0 13.255 10.745 24 24 24h464c13.255 0 24-10.745 24-24V184.029c0-18.917-20.931-30.399-36.885-20.248z"]
  112674. };
  112675. var faInfinity = {
  112676. prefix: 'fas',
  112677. iconName: 'infinity',
  112678. icon: [640, 512, [], "f534", "M471.1 96C405 96 353.3 137.3 320 174.6 286.7 137.3 235 96 168.9 96 75.8 96 0 167.8 0 256s75.8 160 168.9 160c66.1 0 117.8-41.3 151.1-78.6 33.3 37.3 85 78.6 151.1 78.6 93.1 0 168.9-71.8 168.9-160S564.2 96 471.1 96zM168.9 320c-40.2 0-72.9-28.7-72.9-64s32.7-64 72.9-64c38.2 0 73.4 36.1 94 64-20.4 27.6-55.9 64-94 64zm302.2 0c-38.2 0-73.4-36.1-94-64 20.4-27.6 55.9-64 94-64 40.2 0 72.9 28.7 72.9 64s-32.7 64-72.9 64z"]
  112679. };
  112680. var faInfo = {
  112681. prefix: 'fas',
  112682. iconName: 'info',
  112683. icon: [192, 512, [], "f129", "M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"]
  112684. };
  112685. var faInfoCircle = {
  112686. prefix: 'fas',
  112687. iconName: 'info-circle',
  112688. icon: [512, 512, [], "f05a", "M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"]
  112689. };
  112690. var faItalic = {
  112691. prefix: 'fas',
  112692. iconName: 'italic',
  112693. icon: [320, 512, [], "f033", "M320 48v32a16 16 0 0 1-16 16h-62.76l-80 320H208a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h62.76l80-320H112a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h192a16 16 0 0 1 16 16z"]
  112694. };
  112695. var faJedi = {
  112696. prefix: 'fas',
  112697. iconName: 'jedi',
  112698. icon: [576, 512, [], "f669", "M535.95308,352c-42.64069,94.17188-137.64086,160-247.9848,160q-6.39844,0-12.84377-.29688C171.15558,506.9375,81.26481,442.23438,40.01474,352H79.93668L21.3272,293.40625a264.82522,264.82522,0,0,1-5.10938-39.42187,273.6653,273.6653,0,0,1,.5-29.98438H63.93665L22.546,182.625A269.79782,269.79782,0,0,1,130.51489,20.54688a16.06393,16.06393,0,0,1,9.28127-3,16.36332,16.36332,0,0,1,13.5,7.25,16.02739,16.02739,0,0,1,1.625,15.09374,138.387,138.387,0,0,0-9.84376,51.26563c0,45.10937,21.04691,86.57813,57.71884,113.73437a16.29989,16.29989,0,0,1,1.20313,25.39063c-26.54692,23.98437-41.17194,56.5-41.17194,91.57813,0,60.03124,42.95319,110.28124,99.89079,121.92187l2.5-65.26563L238.062,397a8.33911,8.33911,0,0,1-10-.75,8.025,8.025,0,0,1-1.39063-9.9375l20.125-33.76562-42.06257-8.73438a7.9898,7.9898,0,0,1,0-15.65625l42.06257-8.71875-20.10941-33.73438a7.99122,7.99122,0,0,1,11.35939-10.71874L268.437,295.64062,279.95265,7.67188a7.97138,7.97138,0,0,1,8-7.67188h.04687a8.02064,8.02064,0,0,1,7.95314,7.70312L307.48394,295.625l30.39068-20.67188a8.08327,8.08327,0,0,1,10,.8125,7.99866,7.99866,0,0,1,1.39062,9.90626L329.12461,319.4375l42.07819,8.73438a7.99373,7.99373,0,0,1,0,15.65624l-42.07819,8.71876,20.1094,33.73437a7.97791,7.97791,0,0,1-1.32812,9.92187A8.25739,8.25739,0,0,1,337.87462,397L310.7027,378.53125l2.5,65.34375c48.48446-9.40625,87.57828-48.15625,97.31267-96.5A123.52652,123.52652,0,0,0,371.9528,230.29688a16.30634,16.30634,0,0,1,1.20313-25.42188c36.65631-27.17188,57.6876-68.60938,57.6876-113.73438a138.01689,138.01689,0,0,0-9.85939-51.3125,15.98132,15.98132,0,0,1,1.60937-15.09374,16.36914,16.36914,0,0,1,13.5-7.23438,16.02453,16.02453,0,0,1,9.25,2.98438A271.26947,271.26947,0,0,1,553.25,182.76562L511.99992,224h46.9532C559.3125,229.76562,560,235.45312,560,241.26562a270.092,270.092,0,0,1-5.125,51.85938L495.98427,352Z"]
  112699. };
  112700. var faJoint = {
  112701. prefix: 'fas',
  112702. iconName: 'joint',
  112703. icon: [640, 512, [], "f595", "M444.34 181.1c22.38 15.68 35.66 41.16 35.66 68.59V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-43.24-21.01-83.41-56.34-108.06C463.85 125.02 448 99.34 448 70.31V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v66.4c0 43.69 24.56 81.63 60.34 106.7zM194.97 358.98C126.03 370.07 59.69 394.69 0 432c83.65 52.28 180.3 80 278.94 80h88.57L254.79 380.49c-14.74-17.2-37.45-25.11-59.82-21.51zM553.28 87.09c-5.67-3.8-9.28-9.96-9.28-16.78V8c0-4.42-3.58-8-8-8h-48c-4.42 0-8 3.58-8 8v62.31c0 22.02 10.17 43.41 28.64 55.39C550.79 153.04 576 199.54 576 249.69V280c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-30.31c0-65.44-32.41-126.19-86.72-162.6zM360.89 352.05c-34.4.06-86.81.15-88.21.17l117.8 137.43A63.987 63.987 0 0 0 439.07 512h88.45L409.57 374.4a63.955 63.955 0 0 0-48.68-22.35zM616 352H432l117.99 137.65A63.987 63.987 0 0 0 598.58 512H616c13.25 0 24-10.75 24-24V376c0-13.26-10.75-24-24-24z"]
  112704. };
  112705. var faJournalWhills = {
  112706. prefix: 'fas',
  112707. iconName: 'journal-whills',
  112708. icon: [448, 512, [], "f66a", "M438.40625,377.59375c-3.20313,12.8125-3.20313,57.60937,0,73.60937Q447.9922,460.78907,448,470.40625v16c0,16-12.79688,25.59375-25.59375,25.59375H96c-54.40625,0-96-41.59375-96-96V96C0,41.59375,41.59375,0,96,0H422.40625C438.40625,0,448,9.59375,448,25.59375v332.8125Q448,372.79688,438.40625,377.59375ZM380.79688,384H96c-16,0-32,12.79688-32,32s12.79688,32,32,32H380.79688ZM128.01562,176.01562c0,.51563.14063.98438.14063,1.5l37.10937,32.46876A7.99954,7.99954,0,0,1,160,224h-.01562a9.17678,9.17678,0,0,1-5.25-1.98438L131.14062,201.375C142.6875,250.95312,186.90625,288,240,288s97.3125-37.04688,108.875-86.625l-23.59375,20.64062a8.02516,8.02516,0,0,1-5.26563,1.96876H320a9.14641,9.14641,0,0,1-6.01562-2.71876A9.26508,9.26508,0,0,1,312,216a9.097,9.097,0,0,1,2.73438-6.01562l37.10937-32.46876c.01563-.53124.15625-1,.15625-1.51562,0-11.04688-2.09375-21.51562-5.06251-31.59375l-21.26562,21.25a8.00467,8.00467,0,0,1-11.32812-11.3125l26.42187-26.40625a111.81517,111.81517,0,0,0-46.35937-49.26562,63.02336,63.02336,0,0,1-14.0625,82.64062A55.83846,55.83846,0,0,1,251.625,254.73438l-1.42188-34.28126,12.67188,8.625a3.967,3.967,0,0,0,2.25.6875,3.98059,3.98059,0,0,0,3.43749-6.03124l-8.53124-14.3125,17.90625-3.71876a4.00647,4.00647,0,0,0,0-7.84374l-17.90625-3.71876,8.53124-14.3125a3.98059,3.98059,0,0,0-3.43749-6.03124,4.726,4.726,0,0,0-2.25.67187L248.6875,184.125,244,71.82812a4.00386,4.00386,0,0,0-8,0l-4.625,110.8125-12-8.15624a4.003,4.003,0,0,0-5.68751,5.35937l8.53126,14.3125L204.3125,197.875a3.99686,3.99686,0,0,0,0,7.82812l17.90625,3.73438-8.53126,14.29688a4.72469,4.72469,0,0,0-.56249,2.04687,4.59547,4.59547,0,0,0,1.25,2.90625,4.01059,4.01059,0,0,0,2.75,1.09375,4.09016,4.09016,0,0,0,2.25-.6875l10.35937-7.04687L228.375,254.76562a55.86414,55.86414,0,0,1-28.71875-93.45312,63.01119,63.01119,0,0,1-14.04688-82.65625,111.93158,111.93158,0,0,0-46.375,49.26563l26.42187,26.42187a7.99917,7.99917,0,0,1-11.3125,11.3125l-21.26563-21.26563C130.09375,154.48438,128,164.95312,128.01562,176.01562Z"]
  112709. };
  112710. var faKaaba = {
  112711. prefix: 'fas',
  112712. iconName: 'kaaba',
  112713. icon: [576, 512, [], "f66b", "M554.12 83.51L318.36 4.93a95.962 95.962 0 0 0-60.71 0L21.88 83.51A32.006 32.006 0 0 0 0 113.87v49.01l265.02-79.51c15.03-4.5 30.92-4.5 45.98 0l265 79.51v-49.01c0-13.77-8.81-26-21.88-30.36zm-279.9 30.52L0 196.3v228.38c0 15 10.42 27.98 25.06 31.24l242.12 53.8a95.937 95.937 0 0 0 41.65 0l242.12-53.8c14.64-3.25 25.06-16.24 25.06-31.24V196.29l-274.2-82.26c-9.04-2.72-18.59-2.72-27.59 0zM128 230.11c0 3.61-2.41 6.77-5.89 7.72l-80 21.82C37.02 261.03 32 257.2 32 251.93v-16.58c0-3.61 2.41-6.77 5.89-7.72l80-21.82c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm144-39.28c0 3.61-2.41 6.77-5.89 7.72l-96 26.18c-5.09 1.39-10.11-2.44-10.11-7.72v-16.58c0-3.61 2.41-6.77 5.89-7.72l96-26.18c5.09-1.39 10.11 2.44 10.11 7.72v16.58zm176 22.7c0-5.28 5.02-9.11 10.11-7.72l80 21.82c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-80-21.82a7.997 7.997 0 0 1-5.89-7.72v-16.58zm-144-39.27c0-5.28 5.02-9.11 10.11-7.72l96 26.18c3.48.95 5.89 4.11 5.89 7.72v16.58c0 5.28-5.02 9.11-10.11 7.72l-96-26.18a7.997 7.997 0 0 1-5.89-7.72v-16.58z"]
  112714. };
  112715. var faKey = {
  112716. prefix: 'fas',
  112717. iconName: 'key',
  112718. icon: [512, 512, [], "f084", "M512 176.001C512 273.203 433.202 352 336 352c-11.22 0-22.19-1.062-32.827-3.069l-24.012 27.014A23.999 23.999 0 0 1 261.223 384H224v40c0 13.255-10.745 24-24 24h-40v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-78.059c0-6.365 2.529-12.47 7.029-16.971l161.802-161.802C163.108 213.814 160 195.271 160 176 160 78.798 238.797.001 335.999 0 433.488-.001 512 78.511 512 176.001zM336 128c0 26.51 21.49 48 48 48s48-21.49 48-48-21.49-48-48-48-48 21.49-48 48z"]
  112719. };
  112720. var faKeyboard = {
  112721. prefix: 'fas',
  112722. iconName: 'keyboard',
  112723. icon: [576, 512, [], "f11c", "M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"]
  112724. };
  112725. var faKhanda = {
  112726. prefix: 'fas',
  112727. iconName: 'khanda',
  112728. icon: [512, 512, [], "f66d", "M415.81 66c-6.37-3.5-14.37-2.33-19.36 3.02a15.974 15.974 0 0 0-1.91 19.52c16.49 26.16 25.2 56.39 25.2 87.41-.19 53.25-26.77 102.69-71.27 132.41l-76.63 53.35v-20.1l44.05-36.09c3.92-4.2 5-10.09 2.81-15.28L310.85 273c33.84-19.26 56.94-55.25 56.94-96.99 0-40.79-22.02-76.13-54.59-95.71l5.22-11.44c2.34-5.53.93-11.83-3.57-16.04L255.86 0l-58.99 52.81c-4.5 4.21-5.9 10.51-3.57 16.04l5.22 11.44c-32.57 19.58-54.59 54.93-54.59 95.72 0 41.75 23.09 77.73 56.94 96.99l-7.85 17.24c-2.19 5.18-1.1 11.07 2.81 15.28l44.05 36.09v19.9l-76.59-53.33C119.02 278.62 92.44 229.19 92.26 176c0-31.08 8.71-61.31 25.2-87.47 3.87-6.16 2.4-13.77-2.59-19.08-5-5.34-13.68-6.2-20.02-2.7C16.32 109.6-22.3 205.3 13.36 295.99c7.07 17.99 17.89 34.38 30.46 49.06l55.97 65.36c4.87 5.69 13.04 7.24 19.65 3.72l79.35-42.23L228 392.23l-47.08 32.78c-1.67-.37-3.23-1.01-5.01-1.01-13.25 0-23.99 10.74-23.99 24 0 13.25 10.74 24 23.99 24 12.1 0 21.69-9.11 23.33-20.76l40.63-28.28v29.95c-9.39 5.57-15.99 15.38-15.99 27.1 0 17.67 14.32 32 31.98 32s31.98-14.33 31.98-32c0-11.71-6.61-21.52-15.99-27.1v-30.15l40.91 28.48C314.41 462.89 324 472 336.09 472c13.25 0 23.99-10.75 23.99-24 0-13.26-10.74-24-23.99-24-1.78 0-3.34.64-5.01 1.01L284 392.23l29.21-20.34 79.35 42.23c6.61 3.52 14.78 1.97 19.65-3.71l52.51-61.31c18.87-22.02 34-47.5 41.25-75.59 21.62-83.66-16.45-167.27-90.16-207.51zm-95.99 110c0 22.3-11.49 41.92-28.83 53.38l-5.65-12.41c-8.75-24.52-8.75-51.04 0-75.56l7.83-17.18c16.07 11.65 26.65 30.45 26.65 51.77zm-127.93 0c0-21.32 10.58-40.12 26.66-51.76l7.83 17.18c8.75 24.52 8.75 51.03 0 75.56l-5.65 12.41c-17.34-11.46-28.84-31.09-28.84-53.39z"]
  112729. };
  112730. var faKiss = {
  112731. prefix: 'fas',
  112732. iconName: 'kiss',
  112733. icon: [496, 512, [], "f596", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm136 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm24-156c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  112734. };
  112735. var faKissBeam = {
  112736. prefix: 'fas',
  112737. iconName: 'kiss-beam',
  112738. icon: [496, 512, [], "f597", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-39 219.9l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5zM304 396c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-6.1-12.2 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.6-3.6-4.8-16.5 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C290.6 368.7 304 383 304 396zm65-168.1l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.5 8.5-10.9 12-15.1 4.5z"]
  112739. };
  112740. var faKissWinkHeart = {
  112741. prefix: 'fas',
  112742. iconName: 'kiss-wink-heart',
  112743. icon: [504, 512, [], "f598", "M501.1 402.5c-8-20.8-31.5-31.5-53.1-25.9l-8.4 2.2-2.3-8.4c-5.9-21.4-27-36.5-49-33-25.2 4-40.6 28.6-34 52.6l22.9 82.6c1.5 5.3 7 8.5 12.4 7.1l83-21.5c24.1-6.3 37.7-31.8 28.5-55.7zm-177.6-4c-5.6-20.3-2.3-42 9-59.7 29.7-46.3 98.7-45.5 127.8 4.3 6.4.1 12.6 1.4 18.6 2.9 10.9-27.9 17.1-58.2 17.1-90C496 119 385 8 248 8S0 119 0 256s111 248 248 248c35.4 0 68.9-7.5 99.4-20.9-.3-.7-23.9-84.6-23.9-84.6zM168 240c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm120 156c0 19.2-28.7 41.5-71.5 44-8.5.8-12.1-11.8-3.6-15.4l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-6-2.5-5.7-12.3 0-14.8l17-7.2c13-5.5 20.8-13.5 20.8-21.5s-7.8-16-20.8-21.5l-17-7.2c-8.8-3.7-4.6-16.6 3.6-15.4 42.8 2.5 71.5 24.8 71.5 44 0 13-13.4 27.3-35.2 36C274.6 368.7 288 383 288 396zm16-179c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S400 181 404 206.2c1.7 11.1-11.3 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 217z"]
  112744. };
  112745. var faKiwiBird = {
  112746. prefix: 'fas',
  112747. iconName: 'kiwi-bird',
  112748. icon: [576, 512, [], "f535", "M575.81 217.98C572.64 157.41 518.28 112 457.63 112h-9.37c-52.82 0-104.25-16.25-147.74-46.24-41.99-28.96-96.04-41.62-153.21-28.7C129.3 41.12-.08 78.24 0 224c.04 70.95 38.68 132.8 95.99 166.01V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-54.26c15.36 3.96 31.4 6.26 48 6.26 5.44 0 10.68-.73 16-1.18V464c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-59.43c14.24-5.06 27.88-11.39 40.34-19.51C342.07 355.25 393.86 336 448.46 336c25.48 0 16.01-.31 23.05-.78l74.41 136.44c2.86 5.23 8.3 8.34 14.05 8.34 1.31 0 2.64-.16 3.95-.5 7.09-1.8 12.05-8.19 12.05-15.5 0 0 .14-240.24-.16-246.02zM463.97 248c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24zm80 153.25l-39.86-73.08c15.12-5.83 28.73-14.6 39.86-25.98v99.06z"]
  112749. };
  112750. var faLandmark = {
  112751. prefix: 'fas',
  112752. iconName: 'landmark',
  112753. icon: [512, 512, [], "f66f", "M501.62 92.11L267.24 2.04a31.958 31.958 0 0 0-22.47 0L10.38 92.11A16.001 16.001 0 0 0 0 107.09V144c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-36.91c0-6.67-4.14-12.64-10.38-14.98zM64 192v160H48c-8.84 0-16 7.16-16 16v48h448v-48c0-8.84-7.16-16-16-16h-16V192h-64v160h-96V192h-64v160h-96V192H64zm432 256H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
  112754. };
  112755. var faLanguage = {
  112756. prefix: 'fas',
  112757. iconName: 'language',
  112758. icon: [640, 512, [], "f1ab", "M152.1 236.2c-3.5-12.1-7.8-33.2-7.8-33.2h-.5s-4.3 21.1-7.8 33.2l-11.1 37.5H163zM616 96H336v320h280c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24zm-24 120c0 6.6-5.4 12-12 12h-11.4c-6.9 23.6-21.7 47.4-42.7 69.9 8.4 6.4 17.1 12.5 26.1 18 5.5 3.4 7.3 10.5 4.1 16.2l-7.9 13.9c-3.4 5.9-10.9 7.8-16.7 4.3-12.6-7.8-24.5-16.1-35.4-24.9-10.9 8.7-22.7 17.1-35.4 24.9-5.8 3.5-13.3 1.6-16.7-4.3l-7.9-13.9c-3.2-5.6-1.4-12.8 4.2-16.2 9.3-5.7 18-11.7 26.1-18-7.9-8.4-14.9-17-21-25.7-4-5.7-2.2-13.6 3.7-17.1l6.5-3.9 7.3-4.3c5.4-3.2 12.4-1.7 16 3.4 5 7 10.8 14 17.4 20.9 13.5-14.2 23.8-28.9 30-43.2H412c-6.6 0-12-5.4-12-12v-16c0-6.6 5.4-12 12-12h64v-16c0-6.6 5.4-12 12-12h16c6.6 0 12 5.4 12 12v16h64c6.6 0 12 5.4 12 12zM0 120v272c0 13.3 10.7 24 24 24h280V96H24c-13.3 0-24 10.7-24 24zm58.9 216.1L116.4 167c1.7-4.9 6.2-8.1 11.4-8.1h32.5c5.1 0 9.7 3.3 11.4 8.1l57.5 169.1c2.6 7.8-3.1 15.9-11.4 15.9h-22.9a12 12 0 0 1-11.5-8.6l-9.4-31.9h-60.2l-9.1 31.8c-1.5 5.1-6.2 8.7-11.5 8.7H70.3c-8.2 0-14-8.1-11.4-15.9z"]
  112759. };
  112760. var faLaptop = {
  112761. prefix: 'fas',
  112762. iconName: 'laptop',
  112763. icon: [640, 512, [], "f109", "M624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"]
  112764. };
  112765. var faLaptopCode = {
  112766. prefix: 'fas',
  112767. iconName: 'laptop-code',
  112768. icon: [640, 512, [], "f5fc", "M255.03 261.65c6.25 6.25 16.38 6.25 22.63 0l11.31-11.31c6.25-6.25 6.25-16.38 0-22.63L253.25 192l35.71-35.72c6.25-6.25 6.25-16.38 0-22.63l-11.31-11.31c-6.25-6.25-16.38-6.25-22.63 0l-58.34 58.34c-6.25 6.25-6.25 16.38 0 22.63l58.35 58.34zm96.01-11.3l11.31 11.31c6.25 6.25 16.38 6.25 22.63 0l58.34-58.34c6.25-6.25 6.25-16.38 0-22.63l-58.34-58.34c-6.25-6.25-16.38-6.25-22.63 0l-11.31 11.31c-6.25 6.25-6.25 16.38 0 22.63L386.75 192l-35.71 35.72c-6.25 6.25-6.25 16.38 0 22.63zM624 416H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33.02-17.47-32.77-32H16c-8.8 0-16 7.2-16 16v16c0 35.2 28.8 64 64 64h512c35.2 0 64-28.8 64-64v-16c0-8.8-7.2-16-16-16zM576 48c0-26.4-21.6-48-48-48H112C85.6 0 64 21.6 64 48v336h512V48zm-64 272H128V64h384v256z"]
  112769. };
  112770. var faLaptopHouse = {
  112771. prefix: 'fas',
  112772. iconName: 'laptop-house',
  112773. icon: [640, 512, [], "e066", "M272,288H208a16,16,0,0,1-16-16V208a16,16,0,0,1,16-16h64a16,16,0,0,1,16,16v37.12C299.11,232.24,315,224,332.8,224H469.74l6.65-7.53A16.51,16.51,0,0,0,480,207a16.31,16.31,0,0,0-4.75-10.61L416,144V48a16,16,0,0,0-16-16H368a16,16,0,0,0-16,16V87.3L263.5,8.92C258,4,247.45,0,240.05,0s-17.93,4-23.47,8.92L4.78,196.42A16.15,16.15,0,0,0,0,207a16.4,16.4,0,0,0,3.55,9.39L22.34,237.7A16.22,16.22,0,0,0,33,242.48,16.51,16.51,0,0,0,42.34,239L64,219.88V384a32,32,0,0,0,32,32H272ZM629.33,448H592V288c0-17.67-12.89-32-28.8-32H332.8c-15.91,0-28.8,14.33-28.8,32V448H266.67A10.67,10.67,0,0,0,256,458.67v10.66A42.82,42.82,0,0,0,298.6,512H597.4A42.82,42.82,0,0,0,640,469.33V458.67A10.67,10.67,0,0,0,629.33,448ZM544,448H352V304H544Z"]
  112774. };
  112775. var faLaptopMedical = {
  112776. prefix: 'fas',
  112777. iconName: 'laptop-medical',
  112778. icon: [640, 512, [], "f812", "M232 224h56v56a8 8 0 0 0 8 8h48a8 8 0 0 0 8-8v-56h56a8 8 0 0 0 8-8v-48a8 8 0 0 0-8-8h-56v-56a8 8 0 0 0-8-8h-48a8 8 0 0 0-8 8v56h-56a8 8 0 0 0-8 8v48a8 8 0 0 0 8 8zM576 48a48.14 48.14 0 0 0-48-48H112a48.14 48.14 0 0 0-48 48v336h512zm-64 272H128V64h384zm112 96H381.54c-.74 19.81-14.71 32-32.74 32H288c-18.69 0-33-17.47-32.77-32H16a16 16 0 0 0-16 16v16a64.19 64.19 0 0 0 64 64h512a64.19 64.19 0 0 0 64-64v-16a16 16 0 0 0-16-16z"]
  112779. };
  112780. var faLaugh = {
  112781. prefix: 'fas',
  112782. iconName: 'laugh',
  112783. icon: [496, 512, [], "f599", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 152c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm88 272h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18-8.9 71-69.5 126-142.9 126z"]
  112784. };
  112785. var faLaughBeam = {
  112786. prefix: 'fas',
  112787. iconName: 'laugh-beam',
  112788. icon: [496, 512, [], "f59a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm24 199.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.2 7.4-15.8 4.1-15.1-4.5zm-160 0c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"]
  112789. };
  112790. var faLaughSquint = {
  112791. prefix: 'fas',
  112792. iconName: 'laugh-squint',
  112793. icon: [496, 512, [], "f59b", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 161.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 180l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"]
  112794. };
  112795. var faLaughWink = {
  112796. prefix: 'fas',
  112797. iconName: 'laugh-wink',
  112798. icon: [496, 512, [], "f59c", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm20.1 198.1c4-25.2 34.2-42.1 59.9-42.1s55.9 16.9 59.9 42.1c1.7 11.1-11.4 18.3-19.8 10.8l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L288 217c-8.4 7.4-21.6.3-19.9-10.9zM168 160c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm230.9 146C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 17.1 8.4 15.9 18z"]
  112799. };
  112800. var faLayerGroup = {
  112801. prefix: 'fas',
  112802. iconName: 'layer-group',
  112803. icon: [512, 512, [], "f5fd", "M12.41 148.02l232.94 105.67c6.8 3.09 14.49 3.09 21.29 0l232.94-105.67c16.55-7.51 16.55-32.52 0-40.03L266.65 2.31a25.607 25.607 0 0 0-21.29 0L12.41 107.98c-16.55 7.51-16.55 32.53 0 40.04zm487.18 88.28l-58.09-26.33-161.64 73.27c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.51 209.97l-58.1 26.33c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 276.3c16.55-7.5 16.55-32.5 0-40zm0 127.8l-57.87-26.23-161.86 73.37c-7.56 3.43-15.59 5.17-23.86 5.17s-16.29-1.74-23.86-5.17L70.29 337.87 12.41 364.1c-16.55 7.5-16.55 32.5 0 40l232.94 105.59c6.8 3.08 14.49 3.08 21.29 0L499.59 404.1c16.55-7.5 16.55-32.5 0-40z"]
  112804. };
  112805. var faLeaf = {
  112806. prefix: 'fas',
  112807. iconName: 'leaf',
  112808. icon: [576, 512, [], "f06c", "M546.2 9.7c-5.6-12.5-21.6-13-28.3-1.2C486.9 62.4 431.4 96 368 96h-80C182 96 96 182 96 288c0 7 .8 13.7 1.5 20.5C161.3 262.8 253.4 224 384 224c8.8 0 16 7.2 16 16s-7.2 16-16 16C132.6 256 26 410.1 2.4 468c-6.6 16.3 1.2 34.9 17.5 41.6 16.4 6.8 35-1.1 41.8-17.3 1.5-3.6 20.9-47.9 71.9-90.6 32.4 43.9 94 85.8 174.9 77.2C465.5 467.5 576 326.7 576 154.3c0-50.2-10.8-102.2-29.8-144.6z"]
  112809. };
  112810. var faLemon = {
  112811. prefix: 'fas',
  112812. iconName: 'lemon',
  112813. icon: [512, 512, [], "f094", "M489.038 22.963C465.944-.13 434.648-5.93 413.947 6.129c-58.906 34.312-181.25-53.077-321.073 86.746S40.441 355.041 6.129 413.945c-12.059 20.702-6.26 51.999 16.833 75.093 23.095 23.095 54.392 28.891 75.095 16.832 58.901-34.31 181.246 53.079 321.068-86.743S471.56 156.96 505.871 98.056c12.059-20.702 6.261-51.999-16.833-75.093zM243.881 95.522c-58.189 14.547-133.808 90.155-148.358 148.358-1.817 7.27-8.342 12.124-15.511 12.124-1.284 0-2.59-.156-3.893-.481-8.572-2.144-13.784-10.83-11.642-19.403C81.901 166.427 166.316 81.93 236.119 64.478c8.575-2.143 17.261 3.069 19.403 11.642s-3.069 17.259-11.641 19.402z"]
  112814. };
  112815. var faLessThan = {
  112816. prefix: 'fas',
  112817. iconName: 'less-than',
  112818. icon: [384, 512, [], "f536", "M365.46 357.74L147.04 255.89l218.47-101.88c16.02-7.47 22.95-26.51 15.48-42.53l-13.52-29C360 66.46 340.96 59.53 324.94 67L18.48 209.91a32.014 32.014 0 0 0-18.48 29v34.24c0 12.44 7.21 23.75 18.48 29l306.31 142.83c16.06 7.49 35.15.54 42.64-15.52l13.56-29.08c7.49-16.06.54-35.15-15.53-42.64z"]
  112819. };
  112820. var faLessThanEqual = {
  112821. prefix: 'fas',
  112822. iconName: 'less-than-equal',
  112823. icon: [448, 512, [], "f537", "M54.98 214.2l301.41 119.87c18.39 6.03 38.71-2.54 45.38-19.15l12.09-30.08c6.68-16.61-2.82-34.97-21.21-41l-175.44-68.05 175.56-68.09c18.29-6 27.74-24.27 21.1-40.79l-12.03-29.92c-6.64-16.53-26.86-25.06-45.15-19.06L54.98 137.89C41.21 142.41 32 154.5 32 168.07v15.96c0 13.56 9.21 25.65 22.98 30.17zM424 400H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h400c13.25 0 24-10.75 24-24v-48c0-13.26-10.75-24-24-24z"]
  112824. };
  112825. var faLevelDownAlt = {
  112826. prefix: 'fas',
  112827. iconName: 'level-down-alt',
  112828. icon: [320, 512, [], "f3be", "M313.553 392.331L209.587 504.334c-9.485 10.214-25.676 10.229-35.174 0L70.438 392.331C56.232 377.031 67.062 352 88.025 352H152V80H68.024a11.996 11.996 0 0 1-8.485-3.515l-56-56C-4.021 12.926 1.333 0 12.024 0H208c13.255 0 24 10.745 24 24v328h63.966c20.878 0 31.851 24.969 17.587 40.331z"]
  112829. };
  112830. var faLevelUpAlt = {
  112831. prefix: 'fas',
  112832. iconName: 'level-up-alt',
  112833. icon: [320, 512, [], "f3bf", "M313.553 119.669L209.587 7.666c-9.485-10.214-25.676-10.229-35.174 0L70.438 119.669C56.232 134.969 67.062 160 88.025 160H152v272H68.024a11.996 11.996 0 0 0-8.485 3.515l-56 56C-4.021 499.074 1.333 512 12.024 512H208c13.255 0 24-10.745 24-24V160h63.966c20.878 0 31.851-24.969 17.587-40.331z"]
  112834. };
  112835. var faLifeRing = {
  112836. prefix: 'fas',
  112837. iconName: 'life-ring',
  112838. icon: [512, 512, [], "f1cd", "M256 8C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm173.696 119.559l-63.399 63.399c-10.987-18.559-26.67-34.252-45.255-45.255l63.399-63.399a218.396 218.396 0 0 1 45.255 45.255zM256 352c-53.019 0-96-42.981-96-96s42.981-96 96-96 96 42.981 96 96-42.981 96-96 96zM127.559 82.304l63.399 63.399c-18.559 10.987-34.252 26.67-45.255 45.255l-63.399-63.399a218.372 218.372 0 0 1 45.255-45.255zM82.304 384.441l63.399-63.399c10.987 18.559 26.67 34.252 45.255 45.255l-63.399 63.399a218.396 218.396 0 0 1-45.255-45.255zm302.137 45.255l-63.399-63.399c18.559-10.987 34.252-26.67 45.255-45.255l63.399 63.399a218.403 218.403 0 0 1-45.255 45.255z"]
  112839. };
  112840. var faLightbulb = {
  112841. prefix: 'fas',
  112842. iconName: 'lightbulb',
  112843. icon: [352, 512, [], "f0eb", "M96.06 454.35c.01 6.29 1.87 12.45 5.36 17.69l17.09 25.69a31.99 31.99 0 0 0 26.64 14.28h61.71a31.99 31.99 0 0 0 26.64-14.28l17.09-25.69a31.989 31.989 0 0 0 5.36-17.69l.04-38.35H96.01l.05 38.35zM0 176c0 44.37 16.45 84.85 43.56 115.78 16.52 18.85 42.36 58.23 52.21 91.45.04.26.07.52.11.78h160.24c.04-.26.07-.51.11-.78 9.85-33.22 35.69-72.6 52.21-91.45C335.55 260.85 352 220.37 352 176 352 78.61 272.91-.3 175.45 0 73.44.31 0 82.97 0 176zm176-80c-44.11 0-80 35.89-80 80 0 8.84-7.16 16-16 16s-16-7.16-16-16c0-61.76 50.24-112 112-112 8.84 0 16 7.16 16 16s-7.16 16-16 16z"]
  112844. };
  112845. var faLink = {
  112846. prefix: 'fas',
  112847. iconName: 'link',
  112848. icon: [512, 512, [], "f0c1", "M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.24.25-.36.37l-67.2 67.2c-59.27 59.27-155.699 59.262-214.96 0-59.27-59.26-59.27-155.7 0-214.96l37.106-37.106c9.84-9.84 26.786-3.3 27.294 10.606.648 17.722 3.826 35.527 9.69 52.721 1.986 5.822.567 12.262-3.783 16.612l-13.087 13.087c-28.026 28.026-28.905 73.66-1.155 101.96 28.024 28.579 74.086 28.749 102.325.51l67.2-67.19c28.191-28.191 28.073-73.757 0-101.83-3.701-3.694-7.429-6.564-10.341-8.569a16.037 16.037 0 0 1-6.947-12.606c-.396-10.567 3.348-21.456 11.698-29.806l21.054-21.055c5.521-5.521 14.182-6.199 20.584-1.731a152.482 152.482 0 0 1 20.522 17.197zM467.547 44.449c-59.261-59.262-155.69-59.27-214.96 0l-67.2 67.2c-.12.12-.25.25-.36.37-58.566 58.892-59.387 154.781.36 214.59a152.454 152.454 0 0 0 20.521 17.196c6.402 4.468 15.064 3.789 20.584-1.731l21.054-21.055c8.35-8.35 12.094-19.239 11.698-29.806a16.037 16.037 0 0 0-6.947-12.606c-2.912-2.005-6.64-4.875-10.341-8.569-28.073-28.073-28.191-73.639 0-101.83l67.2-67.19c28.239-28.239 74.3-28.069 102.325.51 27.75 28.3 26.872 73.934-1.155 101.96l-13.087 13.087c-4.35 4.35-5.769 10.79-3.783 16.612 5.864 17.194 9.042 34.999 9.69 52.721.509 13.906 17.454 20.446 27.294 10.606l37.106-37.106c59.271-59.259 59.271-155.699.001-214.959z"]
  112849. };
  112850. var faLiraSign = {
  112851. prefix: 'fas',
  112852. iconName: 'lira-sign',
  112853. icon: [384, 512, [], "f195", "M371.994 256h-48.019C317.64 256 312 260.912 312 267.246 312 368 230.179 416 144 416V256.781l134.603-29.912A12 12 0 0 0 288 215.155v-40.976c0-7.677-7.109-13.38-14.603-11.714L144 191.219V160.78l134.603-29.912A12 12 0 0 0 288 119.154V78.179c0-7.677-7.109-13.38-14.603-11.714L144 95.219V44c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v68.997L9.397 125.131A12 12 0 0 0 0 136.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 178.558v30.439L9.397 221.131A12 12 0 0 0 0 232.845v40.976c0 7.677 7.109 13.38 14.603 11.714L64 274.558V468c0 6.627 5.373 12 12 12h79.583c134.091 0 223.255-77.834 228.408-211.592.261-6.782-5.211-12.408-11.997-12.408z"]
  112854. };
  112855. var faList = {
  112856. prefix: 'fas',
  112857. iconName: 'list',
  112858. icon: [512, 512, [], "f03a", "M80 368H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm0-320H16A16 16 0 0 0 0 64v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16V64a16 16 0 0 0-16-16zm0 160H16a16 16 0 0 0-16 16v64a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-64a16 16 0 0 0-16-16zm416 176H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  112859. };
  112860. var faListAlt = {
  112861. prefix: 'fas',
  112862. iconName: 'list-alt',
  112863. icon: [512, 512, [], "f022", "M464 480H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h416c26.51 0 48 21.49 48 48v352c0 26.51-21.49 48-48 48zM128 120c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm0 96c-22.091 0-40 17.909-40 40s17.909 40 40 40 40-17.909 40-40-17.909-40-40-40zm288-136v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12zm0 96v-32c0-6.627-5.373-12-12-12H204c-6.627 0-12 5.373-12 12v32c0 6.627 5.373 12 12 12h200c6.627 0 12-5.373 12-12z"]
  112864. };
  112865. var faListOl = {
  112866. prefix: 'fas',
  112867. iconName: 'list-ol',
  112868. icon: [512, 512, [], "f0cb", "M61.77 401l17.5-20.15a19.92 19.92 0 0 0 5.07-14.19v-3.31C84.34 356 80.5 352 73 352H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8h22.83a157.41 157.41 0 0 0-11 12.31l-5.61 7c-4 5.07-5.25 10.13-2.8 14.88l1.05 1.93c3 5.76 6.29 7.88 12.25 7.88h4.73c10.33 0 15.94 2.44 15.94 9.09 0 4.72-4.2 8.22-14.36 8.22a41.54 41.54 0 0 1-15.47-3.12c-6.49-3.88-11.74-3.5-15.6 3.12l-5.59 9.31c-3.72 6.13-3.19 11.72 2.63 15.94 7.71 4.69 20.38 9.44 37 9.44 34.16 0 48.5-22.75 48.5-44.12-.03-14.38-9.12-29.76-28.73-34.88zM496 224H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h64a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H64V40a8 8 0 0 0-8-8H32a8 8 0 0 0-7.14 4.42l-8 16A8 8 0 0 0 24 64h8v64H16a8 8 0 0 0-8 8v16a8 8 0 0 0 8 8zm-3.91 160H80a8 8 0 0 0 8-8v-16a8 8 0 0 0-8-8H41.32c3.29-10.29 48.34-18.68 48.34-56.44 0-29.06-25-39.56-44.47-39.56-21.36 0-33.8 10-40.46 18.75-4.37 5.59-3 10.84 2.8 15.37l8.58 6.88c5.61 4.56 11 2.47 16.12-2.44a13.44 13.44 0 0 1 9.46-3.84c3.33 0 9.28 1.56 9.28 8.75C51 248.19 0 257.31 0 304.59v4C0 316 5.08 320 12.09 320z"]
  112869. };
  112870. var faListUl = {
  112871. prefix: 'fas',
  112872. iconName: 'list-ul',
  112873. icon: [512, 512, [], "f0ca", "M48 48a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm0 160a48 48 0 1 0 48 48 48 48 0 0 0-48-48zm448 16H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H176a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h320a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  112874. };
  112875. var faLocationArrow = {
  112876. prefix: 'fas',
  112877. iconName: 'location-arrow',
  112878. icon: [512, 512, [], "f124", "M444.52 3.52L28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z"]
  112879. };
  112880. var faLock = {
  112881. prefix: 'fas',
  112882. iconName: 'lock',
  112883. icon: [448, 512, [], "f023", "M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z"]
  112884. };
  112885. var faLockOpen = {
  112886. prefix: 'fas',
  112887. iconName: 'lock-open',
  112888. icon: [576, 512, [], "f3c1", "M423.5 0C339.5.3 272 69.5 272 153.5V224H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48h-48v-71.1c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v80c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-80C576 68 507.5-.3 423.5 0z"]
  112889. };
  112890. var faLongArrowAltDown = {
  112891. prefix: 'fas',
  112892. iconName: 'long-arrow-alt-down',
  112893. icon: [256, 512, [], "f309", "M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z"]
  112894. };
  112895. var faLongArrowAltLeft = {
  112896. prefix: 'fas',
  112897. iconName: 'long-arrow-alt-left',
  112898. icon: [448, 512, [], "f30a", "M134.059 296H436c6.627 0 12-5.373 12-12v-56c0-6.627-5.373-12-12-12H134.059v-46.059c0-21.382-25.851-32.09-40.971-16.971L7.029 239.029c-9.373 9.373-9.373 24.569 0 33.941l86.059 86.059c15.119 15.119 40.971 4.411 40.971-16.971V296z"]
  112899. };
  112900. var faLongArrowAltRight = {
  112901. prefix: 'fas',
  112902. iconName: 'long-arrow-alt-right',
  112903. icon: [448, 512, [], "f30b", "M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"]
  112904. };
  112905. var faLongArrowAltUp = {
  112906. prefix: 'fas',
  112907. iconName: 'long-arrow-alt-up',
  112908. icon: [256, 512, [], "f30c", "M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z"]
  112909. };
  112910. var faLowVision = {
  112911. prefix: 'fas',
  112912. iconName: 'low-vision',
  112913. icon: [576, 512, [], "f2a8", "M569.344 231.631C512.96 135.949 407.81 72 288 72c-28.468 0-56.102 3.619-82.451 10.409L152.778 10.24c-7.601-10.858-22.564-13.5-33.423-5.9l-13.114 9.178c-10.86 7.601-13.502 22.566-5.9 33.426l43.131 58.395C89.449 131.73 40.228 174.683 6.682 231.581c-.01.017-.023.033-.034.05-8.765 14.875-8.964 33.528 0 48.739 38.5 65.332 99.742 115.862 172.859 141.349L55.316 244.302A272.194 272.194 0 0 1 83.61 208.39l119.4 170.58h.01l40.63 58.04a330.055 330.055 0 0 0 78.94 1.17l-189.98-271.4a277.628 277.628 0 0 1 38.777-21.563l251.836 356.544c7.601 10.858 22.564 13.499 33.423 5.9l13.114-9.178c10.86-7.601 13.502-22.567 5.9-33.426l-43.12-58.377-.007-.009c57.161-27.978 104.835-72.04 136.81-126.301a47.938 47.938 0 0 0 .001-48.739zM390.026 345.94l-19.066-27.23c24.682-32.567 27.711-76.353 8.8-111.68v.03c0 23.65-19.17 42.82-42.82 42.82-23.828 0-42.82-19.349-42.82-42.82 0-23.65 19.17-42.82 42.82-42.82h.03c-24.75-13.249-53.522-15.643-79.51-7.68l-19.068-27.237C253.758 123.306 270.488 120 288 120c75.162 0 136 60.826 136 136 0 34.504-12.833 65.975-33.974 89.94z"]
  112914. };
  112915. var faLuggageCart = {
  112916. prefix: 'fas',
  112917. iconName: 'luggage-cart',
  112918. icon: [640, 512, [], "f59d", "M224 320h32V96h-32c-17.67 0-32 14.33-32 32v160c0 17.67 14.33 32 32 32zm352-32V128c0-17.67-14.33-32-32-32h-32v224h32c17.67 0 32-14.33 32-32zm48 96H128V16c0-8.84-7.16-16-16-16H16C7.16 0 0 7.16 0 16v32c0 8.84 7.16 16 16 16h48v368c0 8.84 7.16 16 16 16h82.94c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16h197.88c-1.79 5.03-2.94 10.36-2.94 16 0 26.51 21.49 48 48 48s48-21.49 48-48c0-5.64-1.15-10.97-2.94-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM480 96V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v272h192V96zm-48 0h-96V48h96v48z"]
  112919. };
  112920. var faLungs = {
  112921. prefix: 'fas',
  112922. iconName: 'lungs',
  112923. icon: [640, 512, [], "f604", "M636.11 390.15C614.44 308.85 580.07 231 534.1 159.13 511.98 124.56 498.03 96 454.05 96 415.36 96 384 125.42 384 161.71v60.11l-32.88-21.92a15.996 15.996 0 0 1-7.12-13.31V16c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v170.59c0 5.35-2.67 10.34-7.12 13.31L256 221.82v-60.11C256 125.42 224.64 96 185.95 96c-43.98 0-57.93 28.56-80.05 63.13C59.93 231 25.56 308.85 3.89 390.15 1.3 399.84 0 409.79 0 419.78c0 61.23 62.48 105.44 125.24 88.62l59.5-15.95c42.18-11.3 71.26-47.47 71.26-88.62v-87.49l-85.84 57.23a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09L320 235.23l167.59 111.72a7.994 7.994 0 0 1 2.22 11.09l-8.88 13.31a7.994 7.994 0 0 1-11.09 2.22L384 316.34v87.49c0 41.15 29.08 77.31 71.26 88.62l59.5 15.95C577.52 525.22 640 481.01 640 419.78c0-9.99-1.3-19.94-3.89-29.63z"]
  112924. };
  112925. var faLungsVirus = {
  112926. prefix: 'fas',
  112927. iconName: 'lungs-virus',
  112928. icon: [640, 512, [], "e067", "M344,150.68V16A16,16,0,0,0,328,0H312a16,16,0,0,0-16,16V150.68a46.45,46.45,0,0,1,48,0ZM195.54,444.46a48.06,48.06,0,0,1,0-67.88l8.58-8.58H192a48,48,0,0,1,0-96h12.12l-8.58-8.57a48,48,0,0,1,60.46-74V161.75C256,125.38,224.62,96,186,96c-44,0-58,28.5-80.12,63.13a819.52,819.52,0,0,0-102,231A113.16,113.16,0,0,0,0,419.75C0,481,62.5,525.26,125.25,508.38l59.5-15.87a98.51,98.51,0,0,0,52.5-34.75,46.49,46.49,0,0,1-41.71-13.3Zm226.29-22.63a16,16,0,0,0,0-22.62l-8.58-8.58C393.09,370.47,407.37,336,435.88,336H448a16,16,0,0,0,0-32H435.88c-28.51,0-42.79-34.47-22.63-54.62l8.58-8.58a16,16,0,0,0-22.63-22.63l-8.57,8.58C370.47,246.91,336,232.63,336,204.12V192a16,16,0,0,0-32,0v12.12c0,28.51-34.47,42.79-54.63,22.63l-8.57-8.58a16,16,0,0,0-22.63,22.63l8.58,8.58c20.16,20.15,5.88,54.62-22.63,54.62H192a16,16,0,0,0,0,32h12.12c28.51,0,42.79,34.47,22.63,54.63l-8.58,8.58a16,16,0,1,0,22.63,22.62l8.57-8.57C269.53,393.1,304,407.38,304,435.88V448a16,16,0,0,0,32,0V435.88c0-28.5,34.47-42.78,54.63-22.62l8.57,8.57a16,16,0,0,0,22.63,0ZM288,304a16,16,0,1,1,16-16A16,16,0,0,1,288,304Zm64,64a16,16,0,1,1,16-16A16,16,0,0,1,352,368Zm284.12,22.13a819.52,819.52,0,0,0-102-231C512,124.5,498,96,454,96c-38.62,0-70,29.38-70,65.75v27.72a48,48,0,0,1,60.46,74L435.88,272H448a48,48,0,0,1,0,96H435.88l8.58,8.58a47.7,47.7,0,0,1-41.71,81.18,98.51,98.51,0,0,0,52.5,34.75l59.5,15.87C577.5,525.26,640,481,640,419.75A113.16,113.16,0,0,0,636.12,390.13Z"]
  112929. };
  112930. var faMagic = {
  112931. prefix: 'fas',
  112932. iconName: 'magic',
  112933. icon: [512, 512, [], "f0d0", "M224 96l16-32 32-16-32-16-16-32-16 32-32 16 32 16 16 32zM80 160l26.66-53.33L160 80l-53.34-26.67L80 0 53.34 53.33 0 80l53.34 26.67L80 160zm352 128l-26.66 53.33L352 368l53.34 26.67L432 448l26.66-53.33L512 368l-53.34-26.67L432 288zm70.62-193.77L417.77 9.38C411.53 3.12 403.34 0 395.15 0c-8.19 0-16.38 3.12-22.63 9.38L9.38 372.52c-12.5 12.5-12.5 32.76 0 45.25l84.85 84.85c6.25 6.25 14.44 9.37 22.62 9.37 8.19 0 16.38-3.12 22.63-9.37l363.14-363.15c12.5-12.48 12.5-32.75 0-45.24zM359.45 203.46l-50.91-50.91 86.6-86.6 50.91 50.91-86.6 86.6z"]
  112934. };
  112935. var faMagnet = {
  112936. prefix: 'fas',
  112937. iconName: 'magnet',
  112938. icon: [512, 512, [], "f076", "M164.07 148.1H12a12 12 0 0 1-12-12v-80a36 36 0 0 1 36-36h104a36 36 0 0 1 36 36v80a11.89 11.89 0 0 1-11.93 12zm347.93-12V56a36 36 0 0 0-36-36H372a36 36 0 0 0-36 36v80a12 12 0 0 0 12 12h152a11.89 11.89 0 0 0 12-11.9zm-164 44a12 12 0 0 0-12 12v52c0 128.1-160 127.9-160 0v-52a12 12 0 0 0-12-12H12.1a12 12 0 0 0-12 12.1c.1 21.4.6 40.3 0 53.3 0 150.6 136.17 246.6 256.75 246.6s255-96 255-246.7c-.6-12.8-.2-33 0-53.2a12 12 0 0 0-12-12.1z"]
  112939. };
  112940. var faMailBulk = {
  112941. prefix: 'fas',
  112942. iconName: 'mail-bulk',
  112943. icon: [576, 512, [], "f674", "M160 448c-25.6 0-51.2-22.4-64-32-64-44.8-83.2-60.8-96-70.4V480c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V345.6c-12.8 9.6-32 25.6-96 70.4-12.8 9.6-38.4 32-64 32zm128-192H32c-17.67 0-32 14.33-32 32v16c25.6 19.2 22.4 19.2 115.2 86.4 9.6 6.4 28.8 25.6 44.8 25.6s35.2-19.2 44.8-22.4c92.8-67.2 89.6-67.2 115.2-86.4V288c0-17.67-14.33-32-32-32zm256-96H224c-17.67 0-32 14.33-32 32v32h96c33.21 0 60.59 25.42 63.71 57.82l.29-.22V416h192c17.67 0 32-14.33 32-32V192c0-17.67-14.33-32-32-32zm-32 128h-64v-64h64v64zm-352-96c0-35.29 28.71-64 64-64h224V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v192h96v-32z"]
  112944. };
  112945. var faMale = {
  112946. prefix: 'fas',
  112947. iconName: 'male',
  112948. icon: [192, 512, [], "f183", "M96 0c35.346 0 64 28.654 64 64s-28.654 64-64 64-64-28.654-64-64S60.654 0 96 0m48 144h-11.36c-22.711 10.443-49.59 10.894-73.28 0H48c-26.51 0-48 21.49-48 48v136c0 13.255 10.745 24 24 24h16v136c0 13.255 10.745 24 24 24h64c13.255 0 24-10.745 24-24V352h16c13.255 0 24-10.745 24-24V192c0-26.51-21.49-48-48-48z"]
  112949. };
  112950. var faMap = {
  112951. prefix: 'fas',
  112952. iconName: 'map',
  112953. icon: [576, 512, [], "f279", "M0 117.66v346.32c0 11.32 11.43 19.06 21.94 14.86L160 416V32L20.12 87.95A32.006 32.006 0 0 0 0 117.66zM192 416l192 64V96L192 32v384zM554.06 33.16L416 96v384l139.88-55.95A31.996 31.996 0 0 0 576 394.34V48.02c0-11.32-11.43-19.06-21.94-14.86z"]
  112954. };
  112955. var faMapMarked = {
  112956. prefix: 'fas',
  112957. iconName: 'map-marked',
  112958. icon: [576, 512, [], "f59f", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"]
  112959. };
  112960. var faMapMarkedAlt = {
  112961. prefix: 'fas',
  112962. iconName: 'map-marked-alt',
  112963. icon: [576, 512, [], "f5a0", "M288 0c-69.59 0-126 56.41-126 126 0 56.26 82.35 158.8 113.9 196.02 6.39 7.54 17.82 7.54 24.2 0C331.65 284.8 414 182.26 414 126 414 56.41 357.59 0 288 0zm0 168c-23.2 0-42-18.8-42-42s18.8-42 42-42 42 18.8 42 42-18.8 42-42 42zM20.12 215.95A32.006 32.006 0 0 0 0 245.66v250.32c0 11.32 11.43 19.06 21.94 14.86L160 448V214.92c-8.84-15.98-16.07-31.54-21.25-46.42L20.12 215.95zM288 359.67c-14.07 0-27.38-6.18-36.51-16.96-19.66-23.2-40.57-49.62-59.49-76.72v182l192 64V266c-18.92 27.09-39.82 53.52-59.49 76.72-9.13 10.77-22.44 16.95-36.51 16.95zm266.06-198.51L416 224v288l139.88-55.95A31.996 31.996 0 0 0 576 426.34V176.02c0-11.32-11.43-19.06-21.94-14.86z"]
  112964. };
  112965. var faMapMarker = {
  112966. prefix: 'fas',
  112967. iconName: 'map-marker',
  112968. icon: [384, 512, [], "f041", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0z"]
  112969. };
  112970. var faMapMarkerAlt = {
  112971. prefix: 'fas',
  112972. iconName: 'map-marker-alt',
  112973. icon: [384, 512, [], "f3c5", "M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"]
  112974. };
  112975. var faMapPin = {
  112976. prefix: 'fas',
  112977. iconName: 'map-pin',
  112978. icon: [288, 512, [], "f276", "M112 316.94v156.69l22.02 33.02c4.75 7.12 15.22 7.12 19.97 0L176 473.63V316.94c-10.39 1.92-21.06 3.06-32 3.06s-21.61-1.14-32-3.06zM144 0C64.47 0 0 64.47 0 144s64.47 144 144 144 144-64.47 144-144S223.53 0 144 0zm0 76c-37.5 0-68 30.5-68 68 0 6.62-5.38 12-12 12s-12-5.38-12-12c0-50.73 41.28-92 92-92 6.62 0 12 5.38 12 12s-5.38 12-12 12z"]
  112979. };
  112980. var faMapSigns = {
  112981. prefix: 'fas',
  112982. iconName: 'map-signs',
  112983. icon: [512, 512, [], "f277", "M507.31 84.69L464 41.37c-6-6-14.14-9.37-22.63-9.37H288V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v16H56c-13.25 0-24 10.75-24 24v80c0 13.25 10.75 24 24 24h385.37c8.49 0 16.62-3.37 22.63-9.37l43.31-43.31c6.25-6.26 6.25-16.38 0-22.63zM224 496c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V384h-64v112zm232-272H288v-32h-64v32H70.63c-8.49 0-16.62 3.37-22.63 9.37L4.69 276.69c-6.25 6.25-6.25 16.38 0 22.63L48 342.63c6 6 14.14 9.37 22.63 9.37H456c13.25 0 24-10.75 24-24v-80c0-13.25-10.75-24-24-24z"]
  112984. };
  112985. var faMarker = {
  112986. prefix: 'fas',
  112987. iconName: 'marker',
  112988. icon: [512, 512, [], "f5a1", "M93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l75.4-75.4-128.02-128.02-75.4 75.4zM485.49 26.51c-35.35-35.35-92.67-35.35-128.02 0l-21.76 21.76-36.56-36.55c-15.62-15.62-40.95-15.62-56.56 0L138.47 115.84c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0l87.15-87.15 19.59 19.59L191.98 192 320 320.02l165.49-165.49c35.35-35.35 35.35-92.66 0-128.02z"]
  112989. };
  112990. var faMars = {
  112991. prefix: 'fas',
  112992. iconName: 'mars',
  112993. icon: [384, 512, [], "f222", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c0-6.6-5.4-12-12-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  112994. };
  112995. var faMarsDouble = {
  112996. prefix: 'fas',
  112997. iconName: 'mars-double',
  112998. icon: [512, 512, [], "f227", "M340 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C198.5 72.1 172.2 64 144 64 64.5 64 0 128.5 0 208s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.5 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 288c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80zm356-128.1h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7c-18.2-11.4-39-18.9-61.5-21.3-2.1 21.8-8.2 43.3-18.4 63.3 1.1 0 2.2-.1 3.2-.1 44.1 0 80 35.9 80 80s-35.9 80-80 80-80-35.9-80-80c0-1.1 0-2.2.1-3.2-20 10.2-41.5 16.4-63.3 18.4C168.4 455.6 229.6 512 304 512c79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12v-79c0-6.7-5.4-12.1-12-12.1z"]
  112999. };
  113000. var faMarsStroke = {
  113001. prefix: 'fas',
  113002. iconName: 'mars-stroke',
  113003. icon: [384, 512, [], "f229", "M372 64h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-17.5 17.5-14.1-14.1c-4.7-4.7-12.3-4.7-17 0L224.5 133c-4.7 4.7-4.7 12.3 0 17l14.1 14.1-18 18c-22.2-14-48.5-22.1-76.7-22.1C64.5 160 0 224.5 0 304s64.5 144 144 144 144-64.5 144-144c0-28.2-8.1-54.5-22.1-76.7l18-18 14.1 14.1c4.7 4.7 12.3 4.7 17 0l28.3-28.3c4.7-4.7 4.7-12.3 0-17L329.2 164l17.5-17.5 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V76c-.1-6.6-5.5-12-12.1-12zM144 384c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  113004. };
  113005. var faMarsStrokeH = {
  113006. prefix: 'fas',
  113007. iconName: 'mars-stroke-h',
  113008. icon: [480, 512, [], "f22b", "M476.2 247.5l-55.9-55.9c-7.6-7.6-20.5-2.2-20.5 8.5V224H376v-20c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v20h-27.6c-5.8-25.6-18.7-49.9-38.6-69.8C189.6 98 98.4 98 42.2 154.2c-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 19.9-19.9 32.8-44.2 38.6-69.8H312v20c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-20h23.9v23.9c0 10.7 12.9 16 20.5 8.5l55.9-55.9c4.6-4.7 4.6-12.3-.1-17zm-275.6 65.1c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"]
  113009. };
  113010. var faMarsStrokeV = {
  113011. prefix: 'fas',
  113012. iconName: 'mars-stroke-v',
  113013. icon: [288, 512, [], "f22a", "M245.8 234.2c-19.9-19.9-44.2-32.8-69.8-38.6v-25.4h20c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-20V81.4h23.9c10.7 0 16-12.9 8.5-20.5L152.5 5.1c-4.7-4.7-12.3-4.7-17 0L79.6 61c-7.6 7.6-2.2 20.5 8.5 20.5H112v24.7H92c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h20v25.4c-25.6 5.8-49.9 18.7-69.8 38.6-56.2 56.2-56.2 147.4 0 203.6 56.2 56.2 147.4 56.2 203.6 0 56.3-56.2 56.3-147.4 0-203.6zm-45.2 158.4c-31.2 31.2-81.9 31.2-113.1 0-31.2-31.2-31.2-81.9 0-113.1 31.2-31.2 81.9-31.2 113.1 0 31.2 31.1 31.2 81.9 0 113.1z"]
  113014. };
  113015. var faMask = {
  113016. prefix: 'fas',
  113017. iconName: 'mask',
  113018. icon: [640, 512, [], "f6fa", "M320.67 64c-442.6 0-357.57 384-158.46 384 39.9 0 77.47-20.69 101.42-55.86l25.73-37.79c15.66-22.99 46.97-22.99 62.63 0l25.73 37.79C401.66 427.31 439.23 448 479.13 448c189.86 0 290.63-384-158.46-384zM184 308.36c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05zm272 0c-41.06 0-67.76-25.66-80.08-41.05-5.23-6.53-5.23-16.09 0-22.63 12.32-15.4 39.01-41.05 80.08-41.05s67.76 25.66 80.08 41.05c5.23 6.53 5.23 16.09 0 22.63-12.32 15.4-39.02 41.05-80.08 41.05z"]
  113019. };
  113020. var faMedal = {
  113021. prefix: 'fas',
  113022. iconName: 'medal',
  113023. icon: [512, 512, [], "f5a2", "M223.75 130.75L154.62 15.54A31.997 31.997 0 0 0 127.18 0H16.03C3.08 0-4.5 14.57 2.92 25.18l111.27 158.96c29.72-27.77 67.52-46.83 109.56-53.39zM495.97 0H384.82c-11.24 0-21.66 5.9-27.44 15.54l-69.13 115.21c42.04 6.56 79.84 25.62 109.56 53.38L509.08 25.18C516.5 14.57 508.92 0 495.97 0zM256 160c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm92.52 157.26l-37.93 36.96 8.97 52.22c1.6 9.36-8.26 16.51-16.65 12.09L256 393.88l-46.9 24.65c-8.4 4.45-18.25-2.74-16.65-12.09l8.97-52.22-37.93-36.96c-6.82-6.64-3.05-18.23 6.35-19.59l52.43-7.64 23.43-47.52c2.11-4.28 6.19-6.39 10.28-6.39 4.11 0 8.22 2.14 10.33 6.39l23.43 47.52 52.43 7.64c9.4 1.36 13.17 12.95 6.35 19.59z"]
  113024. };
  113025. var faMedkit = {
  113026. prefix: 'fas',
  113027. iconName: 'medkit',
  113028. icon: [512, 512, [], "f0fa", "M96 480h320V128h-32V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v48H96v352zm96-384h128v32H192V96zm320 80v256c0 26.51-21.49 48-48 48h-16V128h16c26.51 0 48 21.49 48 48zM64 480H48c-26.51 0-48-21.49-48-48V176c0-26.51 21.49-48 48-48h16v352zm288-208v32c0 8.837-7.163 16-16 16h-48v48c0 8.837-7.163 16-16 16h-32c-8.837 0-16-7.163-16-16v-48h-48c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h48v-48c0-8.837 7.163-16 16-16h32c8.837 0 16 7.163 16 16v48h48c8.837 0 16 7.163 16 16z"]
  113029. };
  113030. var faMeh = {
  113031. prefix: 'fas',
  113032. iconName: 'meh',
  113033. icon: [496, 512, [], "f11a", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm176 192H152c-21.2 0-21.2-32 0-32h192c21.2 0 21.2 32 0 32zm-16-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  113034. };
  113035. var faMehBlank = {
  113036. prefix: 'fas',
  113037. iconName: 'meh-blank',
  113038. icon: [496, 512, [], "f5a4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm-80 232c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm160 0c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  113039. };
  113040. var faMehRollingEyes = {
  113041. prefix: 'fas',
  113042. iconName: 'meh-rolling-eyes',
  113043. icon: [496, 512, [], "f5a5", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM88 224c0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64s-64-28.7-64-64zm224 176H184c-21.2 0-21.2-32 0-32h128c21.2 0 21.2 32 0 32zm32-112c-35.3 0-64-28.7-64-64 0-24.3 13.7-45.2 33.6-56-.7 2.6-1.6 5.2-1.6 8 0 17.7 14.3 32 32 32s32-14.3 32-32c0-2.8-.9-5.4-1.6-8 19.9 10.8 33.6 31.7 33.6 56 0 35.3-28.7 64-64 64z"]
  113044. };
  113045. var faMemory = {
  113046. prefix: 'fas',
  113047. iconName: 'memory',
  113048. icon: [640, 512, [], "f538", "M640 130.94V96c0-17.67-14.33-32-32-32H32C14.33 64 0 78.33 0 96v34.94c18.6 6.61 32 24.19 32 45.06s-13.4 38.45-32 45.06V320h640v-98.94c-18.6-6.61-32-24.19-32-45.06s13.4-38.45 32-45.06zM224 256h-64V128h64v128zm128 0h-64V128h64v128zm128 0h-64V128h64v128zM0 448h64v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h128v-26.67c0-8.84 7.16-16 16-16s16 7.16 16 16V448h64v-96H0v96z"]
  113049. };
  113050. var faMenorah = {
  113051. prefix: 'fas',
  113052. iconName: 'menorah',
  113053. icon: [640, 512, [], "f676", "M144 128h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm192 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm96 0h-32c-8.84 0-16 7.16-16 16v144h64V144c0-8.84-7.16-16-16-16zm80-32c17.67 0 32-14.33 32-32S608 0 608 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S512 0 512 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S416 0 416 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S320 0 320 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S224 0 224 0s-32 46.33-32 64 14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S128 0 128 0 96 46.33 96 64s14.33 32 32 32zm-96 0c17.67 0 32-14.33 32-32S32 0 32 0 0 46.33 0 64s14.33 32 32 32zm544 192c0 17.67-14.33 32-32 32H352V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v176H96c-17.67 0-32-14.33-32-32V144c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v144c0 53.02 42.98 96 96 96h192v64H112c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16H352v-64h192c53.02 0 96-42.98 96-96V144c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v144z"]
  113054. };
  113055. var faMercury = {
  113056. prefix: 'fas',
  113057. iconName: 'mercury',
  113058. icon: [288, 512, [], "f223", "M288 208c0-44.2-19.9-83.7-51.2-110.1 2.5-1.8 4.9-3.8 7.2-5.8 24.7-21.2 39.8-48.8 43.2-78.8.9-7.1-4.7-13.3-11.9-13.3h-40.5C229 0 224.1 4.1 223 9.8c-2.4 12.5-9.6 24.3-20.7 33.8C187 56.8 166.3 64 144 64s-43-7.2-58.4-20.4C74.5 34.1 67.4 22.3 64.9 9.8 63.8 4.1 58.9 0 53.2 0H12.7C5.5 0-.1 6.2.8 13.3 4.2 43.4 19.2 71 44 92.2c2.3 2 4.7 3.9 7.2 5.8C19.9 124.3 0 163.8 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"]
  113059. };
  113060. var faMeteor = {
  113061. prefix: 'fas',
  113062. iconName: 'meteor',
  113063. icon: [512, 512, [], "f753", "M511.328,20.8027c-11.60759,38.70264-34.30724,111.70173-61.30311,187.70077,6.99893,2.09372,13.4042,4,18.60653,5.59368a16.06158,16.06158,0,0,1,9.49854,22.906c-22.106,42.29635-82.69047,152.795-142.47819,214.40356-.99984,1.09373-1.99969,2.5-2.99954,3.49995A194.83046,194.83046,0,1,1,57.085,179.41009c.99985-1,2.40588-2,3.49947-3,61.59994-59.90549,171.97367-120.40473,214.37343-142.4982a16.058,16.058,0,0,1,22.90274,9.49988c1.59351,5.09368,3.49947,11.5936,5.5929,18.59351C379.34818,35.00565,452.43074,12.30281,491.12794.70921A16.18325,16.18325,0,0,1,511.328,20.8027ZM319.951,320.00207A127.98041,127.98041,0,1,0,191.97061,448.00046,127.97573,127.97573,0,0,0,319.951,320.00207Zm-127.98041-31.9996a31.9951,31.9951,0,1,1-31.9951-31.9996A31.959,31.959,0,0,1,191.97061,288.00247Zm31.9951,79.999a15.99755,15.99755,0,1,1-15.99755-15.9998A16.04975,16.04975,0,0,1,223.96571,368.00147Z"]
  113064. };
  113065. var faMicrochip = {
  113066. prefix: 'fas',
  113067. iconName: 'microchip',
  113068. icon: [512, 512, [], "f2db", "M416 48v416c0 26.51-21.49 48-48 48H144c-26.51 0-48-21.49-48-48V48c0-26.51 21.49-48 48-48h224c26.51 0 48 21.49 48 48zm96 58v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42V88h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zm0 96v12a6 6 0 0 1-6 6h-18v6a6 6 0 0 1-6 6h-42v-48h42a6 6 0 0 1 6 6v6h18a6 6 0 0 1 6 6zM30 376h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6zm0-96h42v48H30a6 6 0 0 1-6-6v-6H6a6 6 0 0 1-6-6v-12a6 6 0 0 1 6-6h18v-6a6 6 0 0 1 6-6z"]
  113069. };
  113070. var faMicrophone = {
  113071. prefix: 'fas',
  113072. iconName: 'microphone',
  113073. icon: [352, 512, [], "f130", "M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"]
  113074. };
  113075. var faMicrophoneAlt = {
  113076. prefix: 'fas',
  113077. iconName: 'microphone-alt',
  113078. icon: [352, 512, [], "f3c9", "M336 192h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16zM176 352c53.02 0 96-42.98 96-96h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H272c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96z"]
  113079. };
  113080. var faMicrophoneAltSlash = {
  113081. prefix: 'fas',
  113082. iconName: 'microphone-alt-slash',
  113083. icon: [640, 512, [], "f539", "M633.82 458.1L476.26 336.33C488.74 312.21 496 284.98 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67h-43.67l-41.4-32H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416v-32h-85.33c-5.89 0-10.67-3.58-10.67-8v-16c0-4.42 4.78-8 10.67-8H416c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.78c11.71-1.62 23.1-4.28 33.96-8.08l-50.4-38.96c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"]
  113084. };
  113085. var faMicrophoneSlash = {
  113086. prefix: 'fas',
  113087. iconName: 'microphone-slash',
  113088. icon: [640, 512, [], "f131", "M633.82 458.1l-157.8-121.96C488.61 312.13 496 285.01 496 256v-48c0-8.84-7.16-16-16-16h-16c-8.84 0-16 7.16-16 16v48c0 17.92-3.96 34.8-10.72 50.2l-26.55-20.52c3.1-9.4 5.28-19.22 5.28-29.67V96c0-53.02-42.98-96-96-96s-96 42.98-96 96v45.36L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM400 464h-56v-33.77c11.66-1.6 22.85-4.54 33.67-8.31l-50.11-38.73c-6.71.4-13.41.87-20.35.2-55.85-5.45-98.74-48.63-111.18-101.85L144 241.31v6.85c0 89.64 63.97 169.55 152 181.69V464h-56c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16z"]
  113089. };
  113090. var faMicroscope = {
  113091. prefix: 'fas',
  113092. iconName: 'microscope',
  113093. icon: [512, 512, [], "f610", "M160 320h12v16c0 8.84 7.16 16 16 16h40c8.84 0 16-7.16 16-16v-16h12c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32V16c0-8.84-7.16-16-16-16h-64c-8.84 0-16 7.16-16 16v16c-17.67 0-32 14.33-32 32v224c0 17.67 14.33 32 32 32zm304 128h-1.29C493.24 413.99 512 369.2 512 320c0-105.88-86.12-192-192-192v64c70.58 0 128 57.42 128 128s-57.42 128-128 128H48c-26.51 0-48 21.49-48 48 0 8.84 7.16 16 16 16h480c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48zm-360-32h208c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8H104c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8z"]
  113094. };
  113095. var faMinus = {
  113096. prefix: 'fas',
  113097. iconName: 'minus',
  113098. icon: [448, 512, [], "f068", "M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]
  113099. };
  113100. var faMinusCircle = {
  113101. prefix: 'fas',
  113102. iconName: 'minus-circle',
  113103. icon: [512, 512, [], "f056", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zM124 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H124z"]
  113104. };
  113105. var faMinusSquare = {
  113106. prefix: 'fas',
  113107. iconName: 'minus-square',
  113108. icon: [448, 512, [], "f146", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM92 296c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h264c6.6 0 12 5.4 12 12v56c0 6.6-5.4 12-12 12H92z"]
  113109. };
  113110. var faMitten = {
  113111. prefix: 'fas',
  113112. iconName: 'mitten',
  113113. icon: [448, 512, [], "f7b5", "M368 416H48c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h320c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16zm57-209.1c-27.2-22.6-67.5-19-90.1 8.2l-20.9 25-29.6-128.4c-18-77.5-95.4-125.9-172.8-108C34.2 21.6-14.2 98.9 3.7 176.4L51.6 384h309l72.5-87c22.7-27.2 19-67.5-8.1-90.1z"]
  113114. };
  113115. var faMobile = {
  113116. prefix: 'fas',
  113117. iconName: 'mobile',
  113118. icon: [320, 512, [], "f10b", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  113119. };
  113120. var faMobileAlt = {
  113121. prefix: 'fas',
  113122. iconName: 'mobile-alt',
  113123. icon: [320, 512, [], "f3cd", "M272 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h224c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM160 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm112-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h200c6.6 0 12 5.4 12 12v312z"]
  113124. };
  113125. var faMoneyBill = {
  113126. prefix: 'fas',
  113127. iconName: 'money-bill',
  113128. icon: [640, 512, [], "f0d6", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 176c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 48h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]
  113129. };
  113130. var faMoneyBillAlt = {
  113131. prefix: 'fas',
  113132. iconName: 'money-bill-alt',
  113133. icon: [640, 512, [], "f3d1", "M352 288h-16v-88c0-4.42-3.58-8-8-8h-13.58c-4.74 0-9.37 1.4-13.31 4.03l-15.33 10.22a7.994 7.994 0 0 0-2.22 11.09l8.88 13.31a7.994 7.994 0 0 0 11.09 2.22l.47-.31V288h-16c-4.42 0-8 3.58-8 8v16c0 4.42 3.58 8 8 8h64c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM48 400v-64c35.35 0 64 28.65 64 64H48zm0-224v-64h64c0 35.35-28.65 64-64 64zm272 192c-53.02 0-96-50.15-96-112 0-61.86 42.98-112 96-112s96 50.14 96 112c0 61.87-43 112-96 112zm272 32h-64c0-35.35 28.65-64 64-64v64zm0-224c-35.35 0-64-28.65-64-64h64v64z"]
  113134. };
  113135. var faMoneyBillWave = {
  113136. prefix: 'fas',
  113137. iconName: 'money-bill-wave',
  113138. icon: [640, 512, [], "f53a", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM48 132.22c20.12 5.04 41.12 7.57 62.72 8.93C104.84 170.54 79 192.69 48 192.69v-60.47zm0 285v-47.78c34.37 0 62.18 27.27 63.71 61.4-22.53-1.81-43.59-6.31-63.71-13.62zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96zm272 27.78c-17.52-4.39-35.71-6.85-54.32-8.44 5.87-26.08 27.5-45.88 54.32-49.28v57.72zm0-236.11c-30.89-3.91-54.86-29.7-55.81-61.55 19.54 2.17 38.09 6.23 55.81 12.66v48.89z"]
  113139. };
  113140. var faMoneyBillWaveAlt = {
  113141. prefix: 'fas',
  113142. iconName: 'money-bill-wave-alt',
  113143. icon: [640, 512, [], "f53b", "M621.16 54.46C582.37 38.19 543.55 32 504.75 32c-123.17-.01-246.33 62.34-369.5 62.34-30.89 0-61.76-3.92-92.65-13.72-3.47-1.1-6.95-1.62-10.35-1.62C15.04 79 0 92.32 0 110.81v317.26c0 12.63 7.23 24.6 18.84 29.46C57.63 473.81 96.45 480 135.25 480c123.17 0 246.34-62.35 369.51-62.35 30.89 0 61.76 3.92 92.65 13.72 3.47 1.1 6.95 1.62 10.35 1.62 17.21 0 32.25-13.32 32.25-31.81V83.93c-.01-12.64-7.24-24.6-18.85-29.47zM320 352c-44.19 0-80-42.99-80-96 0-53.02 35.82-96 80-96s80 42.98 80 96c0 53.03-35.83 96-80 96z"]
  113144. };
  113145. var faMoneyCheck = {
  113146. prefix: 'fas',
  113147. iconName: 'money-check',
  113148. icon: [640, 512, [], "f53c", "M0 448c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V128H0v320zm448-208c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-32zm0 120c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H456c-4.42 0-8-3.58-8-8v-16zM64 264c0-4.42 3.58-8 8-8h304c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zm0 96c0-4.42 3.58-8 8-8h176c4.42 0 8 3.58 8 8v16c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16zM624 32H16C7.16 32 0 39.16 0 48v48h640V48c0-8.84-7.16-16-16-16z"]
  113149. };
  113150. var faMoneyCheckAlt = {
  113151. prefix: 'fas',
  113152. iconName: 'money-check-alt',
  113153. icon: [640, 512, [], "f53d", "M608 32H32C14.33 32 0 46.33 0 64v384c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM176 327.88V344c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-16.29c-11.29-.58-22.27-4.52-31.37-11.35-3.9-2.93-4.1-8.77-.57-12.14l11.75-11.21c2.77-2.64 6.89-2.76 10.13-.73 3.87 2.42 8.26 3.72 12.82 3.72h28.11c6.5 0 11.8-5.92 11.8-13.19 0-5.95-3.61-11.19-8.77-12.73l-45-13.5c-18.59-5.58-31.58-23.42-31.58-43.39 0-24.52 19.05-44.44 42.67-45.07V152c0-4.42 3.58-8 8-8h16c4.42 0 8 3.58 8 8v16.29c11.29.58 22.27 4.51 31.37 11.35 3.9 2.93 4.1 8.77.57 12.14l-11.75 11.21c-2.77 2.64-6.89 2.76-10.13.73-3.87-2.43-8.26-3.72-12.82-3.72h-28.11c-6.5 0-11.8 5.92-11.8 13.19 0 5.95 3.61 11.19 8.77 12.73l45 13.5c18.59 5.58 31.58 23.42 31.58 43.39 0 24.53-19.05 44.44-42.67 45.07zM416 312c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h112c4.42 0 8 3.58 8 8v16zm160 0c0 4.42-3.58 8-8 8h-80c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h80c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H296c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h272c4.42 0 8 3.58 8 8v16z"]
  113154. };
  113155. var faMonument = {
  113156. prefix: 'fas',
  113157. iconName: 'monument',
  113158. icon: [384, 512, [], "f5a6", "M368 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h352c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-78.86-347.26a31.97 31.97 0 0 0-9.21-19.44L203.31 4.69c-6.25-6.25-16.38-6.25-22.63 0l-76.6 76.61a31.97 31.97 0 0 0-9.21 19.44L64 416h256l-30.86-315.26zM240 307.2c0 6.4-6.4 12.8-12.8 12.8h-70.4c-6.4 0-12.8-6.4-12.8-12.8v-38.4c0-6.4 6.4-12.8 12.8-12.8h70.4c6.4 0 12.8 6.4 12.8 12.8v38.4z"]
  113159. };
  113160. var faMoon = {
  113161. prefix: 'fas',
  113162. iconName: 'moon',
  113163. icon: [512, 512, [], "f186", "M283.211 512c78.962 0 151.079-35.925 198.857-94.792 7.068-8.708-.639-21.43-11.562-19.35-124.203 23.654-238.262-71.576-238.262-196.954 0-72.222 38.662-138.635 101.498-174.394 9.686-5.512 7.25-20.197-3.756-22.23A258.156 258.156 0 0 0 283.211 0c-141.309 0-256 114.511-256 256 0 141.309 114.511 256 256 256z"]
  113164. };
  113165. var faMortarPestle = {
  113166. prefix: 'fas',
  113167. iconName: 'mortar-pestle',
  113168. icon: [512, 512, [], "f5a7", "M501.54 60.91c17.22-17.22 12.51-46.25-9.27-57.14a35.696 35.696 0 0 0-37.37 3.37L251.09 160h151.37l99.08-99.09zM496 192H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c0 80.98 50.2 150.11 121.13 178.32-12.76 16.87-21.72 36.8-24.95 58.69-1.46 9.92 6.04 18.98 16.07 18.98h223.5c10.03 0 17.53-9.06 16.07-18.98-3.22-21.89-12.18-41.82-24.95-58.69C429.8 406.11 480 336.98 480 256h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16z"]
  113169. };
  113170. var faMosque = {
  113171. prefix: 'fas',
  113172. iconName: 'mosque',
  113173. icon: [640, 512, [], "f678", "M0 480c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V160H0v320zm579.16-192c17.86-17.39 28.84-37.34 28.84-58.91 0-52.86-41.79-93.79-87.92-122.9-41.94-26.47-80.63-57.77-111.96-96.22L400 0l-8.12 9.97c-31.33 38.45-70.01 69.76-111.96 96.22C233.79 135.3 192 176.23 192 229.09c0 21.57 10.98 41.52 28.84 58.91h358.32zM608 320H192c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h32v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h64v-72c0-48 48-72 48-72s48 24 48 72v72h64v-64c0-17.67 14.33-32 32-32s32 14.33 32 32v64h32c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM64 0S0 32 0 96v32h128V96c0-64-64-96-64-96z"]
  113174. };
  113175. var faMotorcycle = {
  113176. prefix: 'fas',
  113177. iconName: 'motorcycle',
  113178. icon: [640, 512, [], "f21c", "M512.9 192c-14.9-.1-29.1 2.3-42.4 6.9L437.6 144H520c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24h-45.3c-6.8 0-13.3 2.9-17.8 7.9l-37.5 41.7-22.8-38C392.2 68.4 384.4 64 376 64h-80c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h66.4l19.2 32H227.9c-17.7-23.1-44.9-40-99.9-40H72.5C59 104 47.7 115 48 128.5c.2 13 10.9 23.5 24 23.5h56c24.5 0 38.7 10.9 47.8 24.8l-11.3 20.5c-13-3.9-26.9-5.7-41.3-5.2C55.9 194.5 1.6 249.6 0 317c-1.6 72.1 56.3 131 128 131 59.6 0 109.7-40.8 124-96h84.2c13.7 0 24.6-11.4 24-25.1-2.1-47.1 17.5-93.7 56.2-125l12.5 20.8c-27.6 23.7-45.1 58.9-44.8 98.2.5 69.6 57.2 126.5 126.8 127.1 71.6.7 129.8-57.5 129.2-129.1-.7-69.6-57.6-126.4-127.2-126.9zM128 400c-44.1 0-80-35.9-80-80s35.9-80 80-80c4.2 0 8.4.3 12.5 1L99 316.4c-8.8 16 2.8 35.6 21 35.6h81.3c-12.4 28.2-40.6 48-73.3 48zm463.9-75.6c-2.2 40.6-35 73.4-75.5 75.5-46.1 2.5-84.4-34.3-84.4-79.9 0-21.4 8.4-40.8 22.1-55.1l49.4 82.4c4.5 7.6 14.4 10 22 5.5l13.7-8.2c7.6-4.5 10-14.4 5.5-22l-48.6-80.9c5.2-1.1 10.5-1.6 15.9-1.6 45.6-.1 82.3 38.2 79.9 84.3z"]
  113179. };
  113180. var faMountain = {
  113181. prefix: 'fas',
  113182. iconName: 'mountain',
  113183. icon: [640, 512, [], "f6fc", "M634.92 462.7l-288-448C341.03 5.54 330.89 0 320 0s-21.03 5.54-26.92 14.7l-288 448a32.001 32.001 0 0 0-1.17 32.64A32.004 32.004 0 0 0 32 512h576c11.71 0 22.48-6.39 28.09-16.67a31.983 31.983 0 0 0-1.17-32.63zM320 91.18L405.39 224H320l-64 64-38.06-38.06L320 91.18z"]
  113184. };
  113185. var faMouse = {
  113186. prefix: 'fas',
  113187. iconName: 'mouse',
  113188. icon: [384, 512, [], "f8cc", "M0 352a160 160 0 0 0 160 160h64a160 160 0 0 0 160-160V224H0zM176 0h-16A160 160 0 0 0 0 160v32h176zm48 0h-16v192h176v-32A160 160 0 0 0 224 0z"]
  113189. };
  113190. var faMousePointer = {
  113191. prefix: 'fas',
  113192. iconName: 'mouse-pointer',
  113193. icon: [320, 512, [], "f245", "M302.189 329.126H196.105l55.831 135.993c3.889 9.428-.555 19.999-9.444 23.999l-49.165 21.427c-9.165 4-19.443-.571-23.332-9.714l-53.053-129.136-86.664 89.138C18.729 472.71 0 463.554 0 447.977V18.299C0 1.899 19.921-6.096 30.277 5.443l284.412 292.542c11.472 11.179 3.007 31.141-12.5 31.141z"]
  113194. };
  113195. var faMugHot = {
  113196. prefix: 'fas',
  113197. iconName: 'mug-hot',
  113198. icon: [512, 512, [], "f7b6", "M127.1 146.5c1.3 7.7 8 13.5 16 13.5h16.5c9.8 0 17.6-8.5 16.3-18-3.8-28.2-16.4-54.2-36.6-74.7-14.4-14.7-23.6-33.3-26.4-53.5C111.8 5.9 105 0 96.8 0H80.4C70.6 0 63 8.5 64.1 18c3.9 31.9 18 61.3 40.6 84.4 12 12.2 19.7 27.5 22.4 44.1zm112 0c1.3 7.7 8 13.5 16 13.5h16.5c9.8 0 17.6-8.5 16.3-18-3.8-28.2-16.4-54.2-36.6-74.7-14.4-14.7-23.6-33.3-26.4-53.5C223.8 5.9 217 0 208.8 0h-16.4c-9.8 0-17.5 8.5-16.3 18 3.9 31.9 18 61.3 40.6 84.4 12 12.2 19.7 27.5 22.4 44.1zM400 192H32c-17.7 0-32 14.3-32 32v192c0 53 43 96 96 96h192c53 0 96-43 96-96h16c61.8 0 112-50.2 112-112s-50.2-112-112-112zm0 160h-16v-96h16c26.5 0 48 21.5 48 48s-21.5 48-48 48z"]
  113199. };
  113200. var faMusic = {
  113201. prefix: 'fas',
  113202. iconName: 'music',
  113203. icon: [512, 512, [], "f001", "M470.38 1.51L150.41 96A32 32 0 0 0 128 126.51v261.41A139 139 0 0 0 96 384c-53 0-96 28.66-96 64s43 64 96 64 96-28.66 96-64V214.32l256-75v184.61a138.4 138.4 0 0 0-32-3.93c-53 0-96 28.66-96 64s43 64 96 64 96-28.65 96-64V32a32 32 0 0 0-41.62-30.49z"]
  113204. };
  113205. var faNetworkWired = {
  113206. prefix: 'fas',
  113207. iconName: 'network-wired',
  113208. icon: [640, 512, [], "f6ff", "M640 264v-16c0-8.84-7.16-16-16-16H344v-40h72c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H224c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h72v40H16c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h104v40H64c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h304v40h-56c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h160c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32h-56v-40h104c8.84 0 16-7.16 16-16zM256 128V64h128v64H256zm-64 320H96v-64h96v64zm352 0h-96v-64h96v64z"]
  113209. };
  113210. var faNeuter = {
  113211. prefix: 'fas',
  113212. iconName: 'neuter',
  113213. icon: [288, 512, [], "f22c", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V468c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12V316.4c64.1-14.5 112-71.9 112-140.4zm-144 80c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  113214. };
  113215. var faNewspaper = {
  113216. prefix: 'fas',
  113217. iconName: 'newspaper',
  113218. icon: [576, 512, [], "f1ea", "M552 64H88c-13.255 0-24 10.745-24 24v8H24c-13.255 0-24 10.745-24 24v272c0 30.928 25.072 56 56 56h472c26.51 0 48-21.49 48-48V88c0-13.255-10.745-24-24-24zM56 400a8 8 0 0 1-8-8V144h16v248a8 8 0 0 1-8 8zm236-16H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm-208-96H140c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm208 0H348c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h152c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12zm0-96H140c-6.627 0-12-5.373-12-12v-40c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12z"]
  113219. };
  113220. var faNotEqual = {
  113221. prefix: 'fas',
  113222. iconName: 'not-equal',
  113223. icon: [448, 512, [], "f53e", "M416 208c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32h-23.88l51.87-66.81c5.37-7.02 4.04-17.06-2.97-22.43L415.61 3.3c-7.02-5.38-17.06-4.04-22.44 2.97L311.09 112H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h204.56l-74.53 96H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h55.49l-51.87 66.81c-5.37 7.01-4.04 17.05 2.97 22.43L64 508.7c7.02 5.38 17.06 4.04 22.43-2.97L168.52 400H416c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32H243.05l74.53-96H416z"]
  113224. };
  113225. var faNotesMedical = {
  113226. prefix: 'fas',
  113227. iconName: 'notes-medical',
  113228. icon: [384, 512, [], "f481", "M336 64h-80c0-35.3-28.7-64-64-64s-64 28.7-64 64H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48zM192 40c13.3 0 24 10.7 24 24s-10.7 24-24 24-24-10.7-24-24 10.7-24 24-24zm96 304c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48zm0-192c0 4.4-3.6 8-8 8H104c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h176c4.4 0 8 3.6 8 8v16z"]
  113229. };
  113230. var faObjectGroup = {
  113231. prefix: 'fas',
  113232. iconName: 'object-group',
  113233. icon: [512, 512, [], "f247", "M480 128V96h20c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v20H64V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v40c0 6.627 5.373 12 12 12h20v320H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-20h384v20c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-20V128zM96 276V140c0-6.627 5.373-12 12-12h168c6.627 0 12 5.373 12 12v136c0 6.627-5.373 12-12 12H108c-6.627 0-12-5.373-12-12zm320 96c0 6.627-5.373 12-12 12H236c-6.627 0-12-5.373-12-12v-52h72c13.255 0 24-10.745 24-24v-72h84c6.627 0 12 5.373 12 12v136z"]
  113234. };
  113235. var faObjectUngroup = {
  113236. prefix: 'fas',
  113237. iconName: 'object-ungroup',
  113238. icon: [576, 512, [], "f248", "M64 320v26a6 6 0 0 1-6 6H6a6 6 0 0 1-6-6v-52a6 6 0 0 1 6-6h26V96H6a6 6 0 0 1-6-6V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v26h288V38a6 6 0 0 1 6-6h52a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-26v192h26a6 6 0 0 1 6 6v52a6 6 0 0 1-6 6h-52a6 6 0 0 1-6-6v-26H64zm480-64v-32h26a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-52a6 6 0 0 0-6 6v26H408v72h8c13.255 0 24 10.745 24 24v64c0 13.255-10.745 24-24 24h-64c-13.255 0-24-10.745-24-24v-8H192v72h-26a6 6 0 0 0-6 6v52a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-26h288v26a6 6 0 0 0 6 6h52a6 6 0 0 0 6-6v-52a6 6 0 0 0-6-6h-26V256z"]
  113239. };
  113240. var faOilCan = {
  113241. prefix: 'fas',
  113242. iconName: 'oil-can',
  113243. icon: [640, 512, [], "f613", "M629.8 160.31L416 224l-50.49-25.24a64.07 64.07 0 0 0-28.62-6.76H280v-48h56c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16H176c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h56v48h-56L37.72 166.86a31.9 31.9 0 0 0-5.79-.53C14.67 166.33 0 180.36 0 198.34v94.95c0 15.46 11.06 28.72 26.28 31.48L96 337.46V384c0 17.67 14.33 32 32 32h274.63c8.55 0 16.75-3.42 22.76-9.51l212.26-214.75c1.5-1.5 2.34-3.54 2.34-5.66V168c.01-5.31-5.08-9.15-10.19-7.69zM96 288.67l-48-8.73v-62.43l48 8.73v62.43zm453.33 84.66c0 23.56 19.1 42.67 42.67 42.67s42.67-19.1 42.67-42.67S592 288 592 288s-42.67 61.77-42.67 85.33z"]
  113244. };
  113245. var faOm = {
  113246. prefix: 'fas',
  113247. iconName: 'om',
  113248. icon: [512, 512, [], "f679", "M360.6 60.94a10.43 10.43 0 0 0 14.76 0l21.57-21.56a10.43 10.43 0 0 0 0-14.76L375.35 3.06c-4.08-4.07-10.68-4.07-14.76 0l-21.57 21.56a10.43 10.43 0 0 0 0 14.76l21.58 21.56zM412.11 192c-26.69 0-51.77 10.39-70.64 29.25l-24.25 24.25c-6.78 6.77-15.78 10.5-25.38 10.5H245c10.54-22.1 14.17-48.11 7.73-75.23-10.1-42.55-46.36-76.11-89.52-83.19-36.15-5.93-70.9 5.04-96.01 28.78-7.36 6.96-6.97 18.85 1.12 24.93l26.15 19.63c5.72 4.3 13.66 4.32 19.2-.21 8.45-6.9 19.02-10.71 30.27-10.71 26.47 0 48.01 21.53 48.01 48s-21.54 48-48.01 48h-31.9c-11.96 0-19.74 12.58-14.39 23.28l16.09 32.17c2.53 5.06 7.6 8.1 13.17 8.55h33.03c35.3 0 64.01 28.7 64.01 64s-28.71 64-64.01 64c-96.02 0-122.35-54.02-145.15-92.03-4.53-7.55-14.77-3.58-14.79 5.22C-.09 416 41.13 512 159.94 512c70.59 0 128.02-57.42 128.02-128 0-23.42-6.78-45.1-17.81-64h21.69c26.69 0 51.77-10.39 70.64-29.25l24.25-24.25c6.78-6.77 15.78-10.5 25.38-10.5 19.78 0 35.88 16.09 35.88 35.88V392c0 13.23-18.77 24-32.01 24-39.4 0-66.67-24.24-81.82-42.89-4.77-5.87-14.2-2.54-14.2 5.02V416s0 64 96.02 64c48.54 0 96.02-39.47 96.02-88V291.88c0-55.08-44.8-99.88-99.89-99.88zm42.18-124.73c-85.55 65.12-169.05 2.75-172.58.05-6.02-4.62-14.44-4.38-20.14.55-5.74 4.92-7.27 13.17-3.66 19.8 1.61 2.95 40.37 72.34 118.8 72.34 79.92 0 98.78-31.36 101.75-37.66 1.02-2.12 1.53-4.47 1.53-6.83V80c0-13.22-15.14-20.69-25.7-12.73z"]
  113249. };
  113250. var faOtter = {
  113251. prefix: 'fas',
  113252. iconName: 'otter',
  113253. icon: [640, 512, [], "f700", "M608 32h-32l-13.25-13.25A63.97 63.97 0 0 0 517.49 0H497c-11.14 0-22.08 2.91-31.75 8.43L312 96h-56C149.96 96 64 181.96 64 288v1.61c0 32.75-16 62.14-39.56 84.89-18.19 17.58-28.1 43.68-23.19 71.8 6.76 38.8 42.9 65.7 82.28 65.7H192c17.67 0 32-14.33 32-32s-14.33-32-32-32H80c-8.83 0-16-7.17-16-16s7.17-16 16-16h224c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-64l149.49-80.5L448 416h80c8.84 0 16-7.16 16-16v-16c0-17.67-14.33-32-32-32h-28.22l-55.11-110.21L521.14 192H544c53.02 0 96-42.98 96-96V64c0-17.67-14.33-32-32-32zm-96 16c8.84 0 16 7.16 16 16s-7.16 16-16 16-16-7.16-16-16 7.16-16 16-16zm32 96h-34.96L407.2 198.84l-13.77-27.55L512 112h77.05c-6.62 18.58-24.22 32-45.05 32z"]
  113254. };
  113255. var faOutdent = {
  113256. prefix: 'fas',
  113257. iconName: 'outdent',
  113258. icon: [448, 512, [], "f03b", "M100.69 363.29c10 10 27.31 2.93 27.31-11.31V160c0-14.32-17.33-21.31-27.31-11.31l-96 96a16 16 0 0 0 0 22.62zM432 416H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm3.17-128H204.83A12.82 12.82 0 0 0 192 300.83v38.34A12.82 12.82 0 0 0 204.83 352h230.34A12.82 12.82 0 0 0 448 339.17v-38.34A12.82 12.82 0 0 0 435.17 288zm0-128H204.83A12.82 12.82 0 0 0 192 172.83v38.34A12.82 12.82 0 0 0 204.83 224h230.34A12.82 12.82 0 0 0 448 211.17v-38.34A12.82 12.82 0 0 0 435.17 160zM432 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  113259. };
  113260. var faPager = {
  113261. prefix: 'fas',
  113262. iconName: 'pager',
  113263. icon: [512, 512, [], "f815", "M448 64H64a64 64 0 0 0-64 64v256a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V128a64 64 0 0 0-64-64zM160 368H80a16 16 0 0 1-16-16v-16a16 16 0 0 1 16-16h80zm128-16a16 16 0 0 1-16 16h-80v-48h80a16 16 0 0 1 16 16zm160-128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32v-64a32 32 0 0 1 32-32h320a32 32 0 0 1 32 32z"]
  113264. };
  113265. var faPaintBrush = {
  113266. prefix: 'fas',
  113267. iconName: 'paint-brush',
  113268. icon: [512, 512, [], "f1fc", "M167.02 309.34c-40.12 2.58-76.53 17.86-97.19 72.3-2.35 6.21-8 9.98-14.59 9.98-11.11 0-45.46-27.67-55.25-34.35C0 439.62 37.93 512 128 512c75.86 0 128-43.77 128-120.19 0-3.11-.65-6.08-.97-9.13l-88.01-73.34zM457.89 0c-15.16 0-29.37 6.71-40.21 16.45C213.27 199.05 192 203.34 192 257.09c0 13.7 3.25 26.76 8.73 38.7l63.82 53.18c7.21 1.8 14.64 3.03 22.39 3.03 62.11 0 98.11-45.47 211.16-256.46 7.38-14.35 13.9-29.85 13.9-45.99C512 20.64 486 0 457.89 0z"]
  113269. };
  113270. var faPaintRoller = {
  113271. prefix: 'fas',
  113272. iconName: 'paint-roller',
  113273. icon: [512, 512, [], "f5aa", "M416 128V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32h352c17.67 0 32-14.33 32-32zm32-64v128c0 17.67-14.33 32-32 32H256c-35.35 0-64 28.65-64 64v32c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32v-32h160c53.02 0 96-42.98 96-96v-64c0-35.35-28.65-64-64-64z"]
  113274. };
  113275. var faPalette = {
  113276. prefix: 'fas',
  113277. iconName: 'palette',
  113278. icon: [512, 512, [], "f53f", "M204.3 5C104.9 24.4 24.8 104.3 5.2 203.4c-37 187 131.7 326.4 258.8 306.7 41.2-6.4 61.4-54.6 42.5-91.7-23.1-45.4 9.9-98.4 60.9-98.4h79.7c35.8 0 64.8-29.6 64.9-65.3C511.5 97.1 368.1-26.9 204.3 5zM96 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm32-128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128-64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm128 64c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  113279. };
  113280. var faPallet = {
  113281. prefix: 'fas',
  113282. iconName: 'pallet',
  113283. icon: [640, 512, [], "f482", "M144 256h352c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H384v128l-64-32-64 32V0H144c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16zm480 128c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h48v64H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16h-48v-64h48zm-336 64H128v-64h160v64zm224 0H352v-64h160v64z"]
  113284. };
  113285. var faPaperPlane = {
  113286. prefix: 'fas',
  113287. iconName: 'paper-plane',
  113288. icon: [512, 512, [], "f1d8", "M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"]
  113289. };
  113290. var faPaperclip = {
  113291. prefix: 'fas',
  113292. iconName: 'paperclip',
  113293. icon: [448, 512, [], "f0c6", "M43.246 466.142c-58.43-60.289-57.341-157.511 1.386-217.581L254.392 34c44.316-45.332 116.351-45.336 160.671 0 43.89 44.894 43.943 117.329 0 162.276L232.214 383.128c-29.855 30.537-78.633 30.111-107.982-.998-28.275-29.97-27.368-77.473 1.452-106.953l143.743-146.835c6.182-6.314 16.312-6.422 22.626-.241l22.861 22.379c6.315 6.182 6.422 16.312.241 22.626L171.427 319.927c-4.932 5.045-5.236 13.428-.648 18.292 4.372 4.634 11.245 4.711 15.688.165l182.849-186.851c19.613-20.062 19.613-52.725-.011-72.798-19.189-19.627-49.957-19.637-69.154 0L90.39 293.295c-34.763 35.56-35.299 93.12-1.191 128.313 34.01 35.093 88.985 35.137 123.058.286l172.06-175.999c6.177-6.319 16.307-6.433 22.626-.256l22.877 22.364c6.319 6.177 6.434 16.307.256 22.626l-172.06 175.998c-59.576 60.938-155.943 60.216-214.77-.485z"]
  113294. };
  113295. var faParachuteBox = {
  113296. prefix: 'fas',
  113297. iconName: 'parachute-box',
  113298. icon: [512, 512, [], "f4cd", "M511.9 175c-9.1-75.6-78.4-132.4-158.3-158.7C390 55.7 416 116.9 416 192h28.1L327.5 321.5c-2.5-.6-4.8-1.5-7.5-1.5h-48V192h112C384 76.8 315.1 0 256 0S128 76.8 128 192h112v128h-48c-2.7 0-5 .9-7.5 1.5L67.9 192H96c0-75.1 26-136.3 62.4-175.7C78.5 42.7 9.2 99.5.1 175c-1.1 9.1 6.8 17 16 17h8.7l136.7 151.9c-.7 2.6-1.6 5.2-1.6 8.1v128c0 17.7 14.3 32 32 32h128c17.7 0 32-14.3 32-32V352c0-2.9-.9-5.4-1.6-8.1L487.1 192h8.7c9.3 0 17.2-7.8 16.1-17z"]
  113299. };
  113300. var faParagraph = {
  113301. prefix: 'fas',
  113302. iconName: 'paragraph',
  113303. icon: [448, 512, [], "f1dd", "M448 48v32a16 16 0 0 1-16 16h-48v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V96h-32v368a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V352h-32a160 160 0 0 1 0-320h240a16 16 0 0 1 16 16z"]
  113304. };
  113305. var faParking = {
  113306. prefix: 'fas',
  113307. iconName: 'parking',
  113308. icon: [448, 512, [], "f540", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM240 320h-48v48c0 8.8-7.2 16-16 16h-32c-8.8 0-16-7.2-16-16V144c0-8.8 7.2-16 16-16h96c52.9 0 96 43.1 96 96s-43.1 96-96 96zm0-128h-48v64h48c17.6 0 32-14.4 32-32s-14.4-32-32-32z"]
  113309. };
  113310. var faPassport = {
  113311. prefix: 'fas',
  113312. iconName: 'passport',
  113313. icon: [448, 512, [], "f5ab", "M129.62 176h39.09c1.49-27.03 6.54-51.35 14.21-70.41-27.71 13.24-48.02 39.19-53.3 70.41zm0 32c5.29 31.22 25.59 57.17 53.3 70.41-7.68-19.06-12.72-43.38-14.21-70.41h-39.09zM224 286.69c7.69-7.45 20.77-34.42 23.43-78.69h-46.87c2.67 44.26 15.75 71.24 23.44 78.69zM200.57 176h46.87c-2.66-44.26-15.74-71.24-23.43-78.69-7.7 7.45-20.78 34.43-23.44 78.69zm64.51 102.41c27.71-13.24 48.02-39.19 53.3-70.41h-39.09c-1.49 27.03-6.53 51.35-14.21 70.41zM416 0H64C28.65 0 0 28.65 0 64v384c0 35.35 28.65 64 64 64h352c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32zm-80 416H112c-8.8 0-16-7.2-16-16s7.2-16 16-16h224c8.8 0 16 7.2 16 16s-7.2 16-16 16zm-112-96c-70.69 0-128-57.31-128-128S153.31 64 224 64s128 57.31 128 128-57.31 128-128 128zm41.08-214.41c7.68 19.06 12.72 43.38 14.21 70.41h39.09c-5.28-31.22-25.59-57.17-53.3-70.41z"]
  113314. };
  113315. var faPastafarianism = {
  113316. prefix: 'fas',
  113317. iconName: 'pastafarianism',
  113318. icon: [640, 512, [], "f67b", "M624.54 347.67c-32.7-12.52-57.36 4.25-75.37 16.45-17.06 11.53-23.25 14.42-31.41 11.36-8.12-3.09-10.83-9.38-15.89-29.38-3.33-13.15-7.44-29.32-17.95-42.65 2.24-2.91 4.43-5.79 6.38-8.57C500.47 304.45 513.71 312 532 312c33.95 0 50.87-25.78 62.06-42.83 10.59-16.14 15-21.17 21.94-21.17 13.25 0 24-10.75 24-24s-10.75-24-24-24c-33.95 0-50.87 25.78-62.06 42.83-10.6 16.14-15 21.17-21.94 21.17-17.31 0-37.48-61.43-97.26-101.91l17.25-34.5C485.43 125.5 512 97.98 512 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 13.02 3.94 25.1 10.62 35.21l-18.15 36.3c-16.98-4.6-35.6-7.51-56.46-7.51s-39.49 2.91-56.46 7.51l-18.15-36.3C252.06 89.1 256 77.02 256 64c0-35.35-28.65-64-64-64s-64 28.65-64 64c0 33.98 26.56 61.5 60.02 63.6l17.25 34.5C145.68 202.44 125.15 264 108 264c-6.94 0-11.34-5.03-21.94-21.17C74.88 225.78 57.96 200 24 200c-13.25 0-24 10.75-24 24s10.75 24 24 24c6.94 0 11.34 5.03 21.94 21.17C57.13 286.22 74.05 312 108 312c18.29 0 31.53-7.55 41.7-17.11 1.95 2.79 4.14 5.66 6.38 8.57-10.51 13.33-14.62 29.5-17.95 42.65-5.06 20-7.77 26.28-15.89 29.38-8.11 3.06-14.33.17-31.41-11.36-18.03-12.2-42.72-28.92-75.37-16.45-12.39 4.72-18.59 18.58-13.87 30.97 4.72 12.41 18.61 18.61 30.97 13.88 8.16-3.09 14.34-.19 31.39 11.36 13.55 9.16 30.83 20.86 52.42 20.84 7.17 0 14.83-1.28 22.97-4.39 32.66-12.44 39.98-41.33 45.33-62.44 2.21-8.72 3.99-14.49 5.95-18.87 16.62 13.61 36.95 25.88 61.64 34.17-9.96 37-32.18 90.8-60.26 90.8-13.25 0-24 10.75-24 24s10.75 24 24 24c66.74 0 97.05-88.63 107.42-129.14 6.69.6 13.42 1.14 20.58 1.14s13.89-.54 20.58-1.14C350.95 423.37 381.26 512 448 512c13.25 0 24-10.75 24-24s-10.75-24-24-24c-27.94 0-50.21-53.81-60.22-90.81 24.69-8.29 45-20.56 61.62-34.16 1.96 4.38 3.74 10.15 5.95 18.87 5.34 21.11 12.67 50 45.33 62.44 8.14 3.11 15.8 4.39 22.97 4.39 21.59 0 38.87-11.69 52.42-20.84 17.05-11.55 23.28-14.45 31.39-11.36 12.39 4.75 26.27-1.47 30.97-13.88 4.71-12.4-1.49-26.26-13.89-30.98zM448 48c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16zm-256 0c8.82 0 16 7.18 16 16s-7.18 16-16 16-16-7.18-16-16 7.18-16 16-16z"]
  113319. };
  113320. var faPaste = {
  113321. prefix: 'fas',
  113322. iconName: 'paste',
  113323. icon: [448, 512, [], "f0ea", "M128 184c0-30.879 25.122-56 56-56h136V56c0-13.255-10.745-24-24-24h-80.61C204.306 12.89 183.637 0 160 0s-44.306 12.89-55.39 32H24C10.745 32 0 42.745 0 56v336c0 13.255 10.745 24 24 24h104V184zm32-144c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24zm184 248h104v200c0 13.255-10.745 24-24 24H184c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h136v104c0 13.2 10.8 24 24 24zm104-38.059V256h-96v-96h6.059a24 24 0 0 1 16.97 7.029l65.941 65.941a24.002 24.002 0 0 1 7.03 16.971z"]
  113324. };
  113325. var faPause = {
  113326. prefix: 'fas',
  113327. iconName: 'pause',
  113328. icon: [448, 512, [], "f04c", "M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"]
  113329. };
  113330. var faPauseCircle = {
  113331. prefix: 'fas',
  113332. iconName: 'pause-circle',
  113333. icon: [512, 512, [], "f28b", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm-16 328c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160zm112 0c0 8.8-7.2 16-16 16h-48c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16v160z"]
  113334. };
  113335. var faPaw = {
  113336. prefix: 'fas',
  113337. iconName: 'paw',
  113338. icon: [512, 512, [], "f1b0", "M256 224c-79.41 0-192 122.76-192 200.25 0 34.9 26.81 55.75 71.74 55.75 48.84 0 81.09-25.08 120.26-25.08 39.51 0 71.85 25.08 120.26 25.08 44.93 0 71.74-20.85 71.74-55.75C448 346.76 335.41 224 256 224zm-147.28-12.61c-10.4-34.65-42.44-57.09-71.56-50.13-29.12 6.96-44.29 40.69-33.89 75.34 10.4 34.65 42.44 57.09 71.56 50.13 29.12-6.96 44.29-40.69 33.89-75.34zm84.72-20.78c30.94-8.14 46.42-49.94 34.58-93.36s-46.52-72.01-77.46-63.87-46.42 49.94-34.58 93.36c11.84 43.42 46.53 72.02 77.46 63.87zm281.39-29.34c-29.12-6.96-61.15 15.48-71.56 50.13-10.4 34.65 4.77 68.38 33.89 75.34 29.12 6.96 61.15-15.48 71.56-50.13 10.4-34.65-4.77-68.38-33.89-75.34zm-156.27 29.34c30.94 8.14 65.62-20.45 77.46-63.87 11.84-43.42-3.64-85.21-34.58-93.36s-65.62 20.45-77.46 63.87c-11.84 43.42 3.64 85.22 34.58 93.36z"]
  113339. };
  113340. var faPeace = {
  113341. prefix: 'fas',
  113342. iconName: 'peace',
  113343. icon: [496, 512, [], "f67c", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm184 248c0 31.93-8.2 61.97-22.57 88.17L280 240.63V74.97c86.23 15.21 152 90.5 152 181.03zM216 437.03c-33.86-5.97-64.49-21.2-89.29-43.02L216 322.57v114.46zm64-114.46L369.29 394c-24.8 21.82-55.43 37.05-89.29 43.02V322.57zm-64-247.6v165.66L86.57 344.17C72.2 317.97 64 287.93 64 256c0-90.53 65.77-165.82 152-181.03z"]
  113344. };
  113345. var faPen = {
  113346. prefix: 'fas',
  113347. iconName: 'pen',
  113348. icon: [512, 512, [], "f304", "M290.74 93.24l128.02 128.02-277.99 277.99-114.14 12.6C11.35 513.54-1.56 500.62.14 485.34l12.7-114.22 277.9-277.88zm207.2-19.06l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.76 18.75-49.16 0-67.91z"]
  113349. };
  113350. var faPenAlt = {
  113351. prefix: 'fas',
  113352. iconName: 'pen-alt',
  113353. icon: [512, 512, [], "f305", "M497.94 74.17l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91zm-246.8-20.53c-15.62-15.62-40.94-15.62-56.56 0L75.8 172.43c-6.25 6.25-6.25 16.38 0 22.62l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l101.82-101.82 22.63 22.62L93.95 290.03A327.038 327.038 0 0 0 .17 485.11l-.03.23c-1.7 15.28 11.21 28.2 26.49 26.51a327.02 327.02 0 0 0 195.34-93.8l196.79-196.79-82.77-82.77-84.85-84.85z"]
  113354. };
  113355. var faPenFancy = {
  113356. prefix: 'fas',
  113357. iconName: 'pen-fancy',
  113358. icon: [512, 512, [], "f5ac", "M79.18 282.94a32.005 32.005 0 0 0-20.24 20.24L0 480l4.69 4.69 92.89-92.89c-.66-2.56-1.57-5.03-1.57-7.8 0-17.67 14.33-32 32-32s32 14.33 32 32-14.33 32-32 32c-2.77 0-5.24-.91-7.8-1.57l-92.89 92.89L32 512l176.82-58.94a31.983 31.983 0 0 0 20.24-20.24l33.07-84.07-98.88-98.88-84.07 33.07zM369.25 28.32L186.14 227.81l97.85 97.85 199.49-183.11C568.4 67.48 443.73-55.94 369.25 28.32z"]
  113359. };
  113360. var faPenNib = {
  113361. prefix: 'fas',
  113362. iconName: 'pen-nib',
  113363. icon: [512, 512, [], "f5ad", "M136.6 138.79a64.003 64.003 0 0 0-43.31 41.35L0 460l14.69 14.69L164.8 324.58c-2.99-6.26-4.8-13.18-4.8-20.58 0-26.51 21.49-48 48-48s48 21.49 48 48-21.49 48-48 48c-7.4 0-14.32-1.81-20.58-4.8L37.31 497.31 52 512l279.86-93.29a64.003 64.003 0 0 0 41.35-43.31L416 224 288 96l-151.4 42.79zm361.34-64.62l-60.11-60.11c-18.75-18.75-49.16-18.75-67.91 0l-56.55 56.55 128.02 128.02 56.55-56.55c18.75-18.75 18.75-49.15 0-67.91z"]
  113364. };
  113365. var faPenSquare = {
  113366. prefix: 'fas',
  113367. iconName: 'pen-square',
  113368. icon: [448, 512, [], "f14b", "M400 480H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zM238.1 177.9L102.4 313.6l-6.3 57.1c-.8 7.6 5.6 14.1 13.3 13.3l57.1-6.3L302.2 242c2.3-2.3 2.3-6.1 0-8.5L246.7 178c-2.5-2.4-6.3-2.4-8.6-.1zM345 165.1L314.9 135c-9.4-9.4-24.6-9.4-33.9 0l-23.1 23.1c-2.3 2.3-2.3 6.1 0 8.5l55.5 55.5c2.3 2.3 6.1 2.3 8.5 0L345 199c9.3-9.3 9.3-24.5 0-33.9z"]
  113369. };
  113370. var faPencilAlt = {
  113371. prefix: 'fas',
  113372. iconName: 'pencil-alt',
  113373. icon: [512, 512, [], "f303", "M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z"]
  113374. };
  113375. var faPencilRuler = {
  113376. prefix: 'fas',
  113377. iconName: 'pencil-ruler',
  113378. icon: [512, 512, [], "f5ae", "M109.46 244.04l134.58-134.56-44.12-44.12-61.68 61.68a7.919 7.919 0 0 1-11.21 0l-11.21-11.21c-3.1-3.1-3.1-8.12 0-11.21l61.68-61.68-33.64-33.65C131.47-3.1 111.39-3.1 99 9.29L9.29 99c-12.38 12.39-12.39 32.47 0 44.86l100.17 100.18zm388.47-116.8c18.76-18.76 18.75-49.17 0-67.93l-45.25-45.25c-18.76-18.76-49.18-18.76-67.95 0l-46.02 46.01 113.2 113.2 46.02-46.03zM316.08 82.71l-297 296.96L.32 487.11c-2.53 14.49 10.09 27.11 24.59 24.56l107.45-18.84L429.28 195.9 316.08 82.71zm186.63 285.43l-33.64-33.64-61.68 61.68c-3.1 3.1-8.12 3.1-11.21 0l-11.21-11.21c-3.09-3.1-3.09-8.12 0-11.21l61.68-61.68-44.14-44.14L267.93 402.5l100.21 100.2c12.39 12.39 32.47 12.39 44.86 0l89.71-89.7c12.39-12.39 12.39-32.47 0-44.86z"]
  113379. };
  113380. var faPeopleArrows = {
  113381. prefix: 'fas',
  113382. iconName: 'people-arrows',
  113383. icon: [576, 512, [], "e068", "M96,128A64,64,0,1,0,32,64,64,64,0,0,0,96,128Zm0,176.08a44.11,44.11,0,0,1,13.64-32L181.77,204c1.65-1.55,3.77-2.31,5.61-3.57A63.91,63.91,0,0,0,128,160H64A64,64,0,0,0,0,224v96a32,32,0,0,0,32,32V480a32,32,0,0,0,32,32h64a32,32,0,0,0,32-32V383.61l-50.36-47.53A44.08,44.08,0,0,1,96,304.08ZM480,128a64,64,0,1,0-64-64A64,64,0,0,0,480,128Zm32,32H448a63.91,63.91,0,0,0-59.38,40.42c1.84,1.27,4,2,5.62,3.59l72.12,68.06a44.37,44.37,0,0,1,0,64L416,383.62V480a32,32,0,0,0,32,32h64a32,32,0,0,0,32-32V352a32,32,0,0,0,32-32V224A64,64,0,0,0,512,160ZM444.4,295.34l-72.12-68.06A12,12,0,0,0,352,236v36H224V236a12,12,0,0,0-20.28-8.73L131.6,295.34a12.4,12.4,0,0,0,0,17.47l72.12,68.07A12,12,0,0,0,224,372.14V336H352v36.14a12,12,0,0,0,20.28,8.74l72.12-68.07A12.4,12.4,0,0,0,444.4,295.34Z"]
  113384. };
  113385. var faPeopleCarry = {
  113386. prefix: 'fas',
  113387. iconName: 'people-carry',
  113388. icon: [640, 512, [], "f4ce", "M128 96c26.5 0 48-21.5 48-48S154.5 0 128 0 80 21.5 80 48s21.5 48 48 48zm384 0c26.5 0 48-21.5 48-48S538.5 0 512 0s-48 21.5-48 48 21.5 48 48 48zm125.7 372.1l-44-110-41.1 46.4-2 18.2 27.7 69.2c5 12.5 17 20.1 29.7 20.1 4 0 8-.7 11.9-2.3 16.4-6.6 24.4-25.2 17.8-41.6zm-34.2-209.8L585 178.1c-4.6-20-18.6-36.8-37.5-44.9-18.5-8-39-6.7-56.1 3.3-22.7 13.4-39.7 34.5-48.1 59.4L432 229.8 416 240v-96c0-8.8-7.2-16-16-16H240c-8.8 0-16 7.2-16 16v96l-16.1-10.2-11.3-33.9c-8.3-25-25.4-46-48.1-59.4-17.2-10-37.6-11.3-56.1-3.3-18.9 8.1-32.9 24.9-37.5 44.9l-18.4 80.2c-4.6 20 .7 41.2 14.4 56.7l67.2 75.9 10.1 92.6C130 499.8 143.8 512 160 512c1.2 0 2.3-.1 3.5-.2 17.6-1.9 30.2-17.7 28.3-35.3l-10.1-92.8c-1.5-13-6.9-25.1-15.6-35l-43.3-49 17.6-70.3 6.8 20.4c4.1 12.5 11.9 23.4 24.5 32.6l51.1 32.5c4.6 2.9 12.1 4.6 17.2 5h160c5.1-.4 12.6-2.1 17.2-5l51.1-32.5c12.6-9.2 20.4-20 24.5-32.6l6.8-20.4 17.6 70.3-43.3 49c-8.7 9.9-14.1 22-15.6 35l-10.1 92.8c-1.9 17.6 10.8 33.4 28.3 35.3 1.2.1 2.3.2 3.5.2 16.1 0 30-12.1 31.8-28.5l10.1-92.6 67.2-75.9c13.6-15.5 19-36.7 14.4-56.7zM46.3 358.1l-44 110c-6.6 16.4 1.4 35 17.8 41.6 16.8 6.6 35.1-1.7 41.6-17.8l27.7-69.2-2-18.2-41.1-46.4z"]
  113389. };
  113390. var faPepperHot = {
  113391. prefix: 'fas',
  113392. iconName: 'pepper-hot',
  113393. icon: [512, 512, [], "f816", "M330.67 263.12V173.4l-52.75-24.22C219.44 218.76 197.58 400 56 400a56 56 0 0 0 0 112c212.64 0 370.65-122.87 419.18-210.34l-37.05-38.54zm131.09-128.37C493.92 74.91 477.18 26.48 458.62 3a8 8 0 0 0-11.93-.59l-22.9 23a8.06 8.06 0 0 0-.89 10.23c6.86 10.36 17.05 35.1-1.4 72.32A142.85 142.85 0 0 0 364.34 96c-28 0-54 8.54-76.34 22.59l74.67 34.29v78.24h89.09L506.44 288c3.26-12.62 5.56-25.63 5.56-39.31a154 154 0 0 0-50.24-113.94z"]
  113394. };
  113395. var faPercent = {
  113396. prefix: 'fas',
  113397. iconName: 'percent',
  113398. icon: [448, 512, [], "f295", "M112 224c61.9 0 112-50.1 112-112S173.9 0 112 0 0 50.1 0 112s50.1 112 112 112zm0-160c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48 21.5-48 48-48zm224 224c-61.9 0-112 50.1-112 112s50.1 112 112 112 112-50.1 112-112-50.1-112-112-112zm0 160c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zM392.3.2l31.6-.1c19.4-.1 30.9 21.8 19.7 37.8L77.4 501.6a23.95 23.95 0 0 1-19.6 10.2l-33.4.1c-19.5 0-30.9-21.9-19.7-37.8l368-463.7C377.2 4 384.5.2 392.3.2z"]
  113399. };
  113400. var faPercentage = {
  113401. prefix: 'fas',
  113402. iconName: 'percentage',
  113403. icon: [384, 512, [], "f541", "M109.25 173.25c24.99-24.99 24.99-65.52 0-90.51-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 25 25 65.52 25 90.51 0zm256 165.49c-24.99-24.99-65.52-24.99-90.51 0-24.99 24.99-24.99 65.52 0 90.51 24.99 24.99 65.52 24.99 90.51 0 25-24.99 25-65.51 0-90.51zm-1.94-231.43l-22.62-22.62c-12.5-12.5-32.76-12.5-45.25 0L20.69 359.44c-12.5 12.5-12.5 32.76 0 45.25l22.62 22.62c12.5 12.5 32.76 12.5 45.25 0l274.75-274.75c12.5-12.49 12.5-32.75 0-45.25z"]
  113404. };
  113405. var faPersonBooth = {
  113406. prefix: 'fas',
  113407. iconName: 'person-booth',
  113408. icon: [576, 512, [], "f756", "M192 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320h-64v176zm32-272h-50.9l-45.2-45.3C115.8 166.6 99.7 160 82.7 160H64c-17.1 0-33.2 6.7-45.3 18.8C6.7 190.9 0 207 0 224.1L.2 320 0 480c0 17.7 14.3 32 31.9 32 17.6 0 32-14.3 32-32l.1-100.7c.9.5 1.6 1.3 2.5 1.7l29.1 43v56c0 17.7 14.3 32 32 32s32-14.3 32-32v-56.5c0-9.9-2.3-19.8-6.7-28.6l-41.2-61.3V253l20.9 20.9c9.1 9.1 21.1 14.1 33.9 14.1H224c17.7 0 32-14.3 32-32s-14.3-32-32-32zM64 128c26.5 0 48-21.5 48-48S90.5 32 64 32 16 53.5 16 80s21.5 48 48 48zm224-96l31.5 223.1-30.9 154.6c-4.3 21.6 13 38.3 31.4 38.3 15.2 0 28-9.1 32.3-30.4.9 16.9 14.6 30.4 31.7 30.4 17.7 0 32-14.3 32-32 0 17.7 14.3 32 32 32s32-14.3 32-32V0H288v32zm-96 0v160h64V0h-32c-17.7 0-32 14.3-32 32zM544 0h-32v496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V32c0-17.7-14.3-32-32-32z"]
  113409. };
  113410. var faPhone = {
  113411. prefix: 'fas',
  113412. iconName: 'phone',
  113413. icon: [512, 512, [], "f095", "M493.4 24.6l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-36 76.7-98.9 140.5-177.2 177.2l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48C3.9 366.5-2 378.1.6 389.4l24 104C27.1 504.2 36.7 512 48 512c256.1 0 464-207.5 464-464 0-11.2-7.7-20.9-18.6-23.4z"]
  113414. };
  113415. var faPhoneAlt = {
  113416. prefix: 'fas',
  113417. iconName: 'phone-alt',
  113418. icon: [512, 512, [], "f879", "M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"]
  113419. };
  113420. var faPhoneSlash = {
  113421. prefix: 'fas',
  113422. iconName: 'phone-slash',
  113423. icon: [640, 512, [], "f3dd", "M268.2 381.4l-49.6-60.6c-6.8-8.3-18.2-11.1-28-6.9l-112 48c-10.7 4.6-16.5 16.1-13.9 27.5l24 104c2.5 10.8 12.1 18.6 23.4 18.6 100.7 0 193.7-32.4 269.7-86.9l-80-61.8c-10.9 6.5-22.1 12.7-33.6 18.1zm365.6 76.7L475.1 335.5C537.9 256.4 576 156.9 576 48c0-11.2-7.7-20.9-18.6-23.4l-104-24c-11.3-2.6-22.9 3.3-27.5 13.9l-48 112c-4.2 9.8-1.4 21.3 6.9 28l60.6 49.6c-12.2 26.1-27.9 50.3-46 72.8L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3z"]
  113424. };
  113425. var faPhoneSquare = {
  113426. prefix: 'fas',
  113427. iconName: 'phone-square',
  113428. icon: [448, 512, [], "f098", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM94 416c-7.033 0-13.057-4.873-14.616-11.627l-14.998-65a15 15 0 0 1 8.707-17.16l69.998-29.999a15 15 0 0 1 17.518 4.289l30.997 37.885c48.944-22.963 88.297-62.858 110.781-110.78l-37.886-30.997a15.001 15.001 0 0 1-4.289-17.518l30-69.998a15 15 0 0 1 17.16-8.707l65 14.998A14.997 14.997 0 0 1 384 126c0 160.292-129.945 290-290 290z"]
  113429. };
  113430. var faPhoneSquareAlt = {
  113431. prefix: 'fas',
  113432. iconName: 'phone-square-alt',
  113433. icon: [448, 512, [], "f87b", "M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h352a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48zm-16.39 307.37l-15 65A15 15 0 0 1 354 416C194 416 64 286.29 64 126a15.7 15.7 0 0 1 11.63-14.61l65-15A18.23 18.23 0 0 1 144 96a16.27 16.27 0 0 1 13.79 9.09l30 70A17.9 17.9 0 0 1 189 181a17 17 0 0 1-5.5 11.61l-37.89 31a231.91 231.91 0 0 0 110.78 110.78l31-37.89A17 17 0 0 1 299 291a17.85 17.85 0 0 1 5.91 1.21l70 30A16.25 16.25 0 0 1 384 336a17.41 17.41 0 0 1-.39 3.37z"]
  113434. };
  113435. var faPhoneVolume = {
  113436. prefix: 'fas',
  113437. iconName: 'phone-volume',
  113438. icon: [384, 512, [], "f2a0", "M97.333 506.966c-129.874-129.874-129.681-340.252 0-469.933 5.698-5.698 14.527-6.632 21.263-2.422l64.817 40.513a17.187 17.187 0 0 1 6.849 20.958l-32.408 81.021a17.188 17.188 0 0 1-17.669 10.719l-55.81-5.58c-21.051 58.261-20.612 122.471 0 179.515l55.811-5.581a17.188 17.188 0 0 1 17.669 10.719l32.408 81.022a17.188 17.188 0 0 1-6.849 20.958l-64.817 40.513a17.19 17.19 0 0 1-21.264-2.422zM247.126 95.473c11.832 20.047 11.832 45.008 0 65.055-3.95 6.693-13.108 7.959-18.718 2.581l-5.975-5.726c-3.911-3.748-4.793-9.622-2.261-14.41a32.063 32.063 0 0 0 0-29.945c-2.533-4.788-1.65-10.662 2.261-14.41l5.975-5.726c5.61-5.378 14.768-4.112 18.718 2.581zm91.787-91.187c60.14 71.604 60.092 175.882 0 247.428-4.474 5.327-12.53 5.746-17.552.933l-5.798-5.557c-4.56-4.371-4.977-11.529-.93-16.379 49.687-59.538 49.646-145.933 0-205.422-4.047-4.85-3.631-12.008.93-16.379l5.798-5.557c5.022-4.813 13.078-4.394 17.552.933zm-45.972 44.941c36.05 46.322 36.108 111.149 0 157.546-4.39 5.641-12.697 6.251-17.856 1.304l-5.818-5.579c-4.4-4.219-4.998-11.095-1.285-15.931 26.536-34.564 26.534-82.572 0-117.134-3.713-4.836-3.115-11.711 1.285-15.931l5.818-5.579c5.159-4.947 13.466-4.337 17.856 1.304z"]
  113439. };
  113440. var faPhotoVideo = {
  113441. prefix: 'fas',
  113442. iconName: 'photo-video',
  113443. icon: [640, 512, [], "f87c", "M608 0H160a32 32 0 0 0-32 32v96h160V64h192v320h128a32 32 0 0 0 32-32V32a32 32 0 0 0-32-32zM232 103a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm352 208a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9v-30a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm0-104a9 9 0 0 1-9 9h-30a9 9 0 0 1-9-9V73a9 9 0 0 1 9-9h30a9 9 0 0 1 9 9zm-168 57H32a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h384a32 32 0 0 0 32-32V192a32 32 0 0 0-32-32zM96 224a32 32 0 1 1-32 32 32 32 0 0 1 32-32zm288 224H64v-32l64-64 32 32 128-128 96 96z"]
  113444. };
  113445. var faPiggyBank = {
  113446. prefix: 'fas',
  113447. iconName: 'piggy-bank',
  113448. icon: [576, 512, [], "f4d3", "M560 224h-29.5c-8.8-20-21.6-37.7-37.4-52.5L512 96h-32c-29.4 0-55.4 13.5-73 34.3-7.6-1.1-15.1-2.3-23-2.3H256c-77.4 0-141.9 55-156.8 128H56c-14.8 0-26.5-13.5-23.5-28.8C34.7 215.8 45.4 208 57 208h1c3.3 0 6-2.7 6-6v-20c0-3.3-2.7-6-6-6-28.5 0-53.9 20.4-57.5 48.6C-3.9 258.8 22.7 288 56 288h40c0 52.2 25.4 98.1 64 127.3V496c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-48h128v48c0 8.8 7.2 16 16 16h64c8.8 0 16-7.2 16-16v-80.7c11.8-8.9 22.3-19.4 31.3-31.3H560c8.8 0 16-7.2 16-16V240c0-8.8-7.2-16-16-16zm-128 64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zM256 96h128c5.4 0 10.7.4 15.9.8 0-.3.1-.5.1-.8 0-53-43-96-96-96s-96 43-96 96c0 2.1.5 4.1.6 6.2 15.2-3.9 31-6.2 47.4-6.2z"]
  113449. };
  113450. var faPills = {
  113451. prefix: 'fas',
  113452. iconName: 'pills',
  113453. icon: [576, 512, [], "f484", "M112 32C50.1 32 0 82.1 0 144v224c0 61.9 50.1 112 112 112s112-50.1 112-112V144c0-61.9-50.1-112-112-112zm48 224H64V144c0-26.5 21.5-48 48-48s48 21.5 48 48v112zm139.7-29.7c-3.5-3.5-9.4-3.1-12.3.8-45.3 62.5-40.4 150.1 15.9 206.4 56.3 56.3 143.9 61.2 206.4 15.9 4-2.9 4.3-8.8.8-12.3L299.7 226.3zm229.8-19c-56.3-56.3-143.9-61.2-206.4-15.9-4 2.9-4.3 8.8-.8 12.3l210.8 210.8c3.5 3.5 9.4 3.1 12.3-.8 45.3-62.6 40.5-150.1-15.9-206.4z"]
  113454. };
  113455. var faPizzaSlice = {
  113456. prefix: 'fas',
  113457. iconName: 'pizza-slice',
  113458. icon: [512, 512, [], "f818", "M158.87.15c-16.16-1.52-31.2 8.42-35.33 24.12l-14.81 56.27c187.62 5.49 314.54 130.61 322.48 317l56.94-15.78c15.72-4.36 25.49-19.68 23.62-35.9C490.89 165.08 340.78 17.32 158.87.15zm-58.47 112L.55 491.64a16.21 16.21 0 0 0 20 19.75l379-105.1c-4.27-174.89-123.08-292.14-299.15-294.1zM128 416a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm48-152a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm104 104a32 32 0 1 1 32-32 32 32 0 0 1-32 32z"]
  113459. };
  113460. var faPlaceOfWorship = {
  113461. prefix: 'fas',
  113462. iconName: 'place-of-worship',
  113463. icon: [640, 512, [], "f67f", "M620.61 366.55L512 320v192h112c8.84 0 16-7.16 16-16V395.96a32 32 0 0 0-19.39-29.41zM0 395.96V496c0 8.84 7.16 16 16 16h112V320L19.39 366.55A32 32 0 0 0 0 395.96zm464.46-149.28L416 217.6V102.63c0-8.49-3.37-16.62-9.38-22.63L331.31 4.69c-6.25-6.25-16.38-6.25-22.62 0L233.38 80c-6 6-9.38 14.14-9.38 22.63V217.6l-48.46 29.08A31.997 31.997 0 0 0 160 274.12V512h96v-96c0-35.35 28.66-64 64-64s64 28.65 64 64v96h96V274.12c0-11.24-5.9-21.66-15.54-27.44z"]
  113464. };
  113465. var faPlane = {
  113466. prefix: 'fas',
  113467. iconName: 'plane',
  113468. icon: [576, 512, [], "f072", "M480 192H365.71L260.61 8.06A16.014 16.014 0 0 0 246.71 0h-65.5c-10.63 0-18.3 10.17-15.38 20.39L214.86 192H112l-43.2-57.6c-3.02-4.03-7.77-6.4-12.8-6.4H16.01C5.6 128-2.04 137.78.49 147.88L32 256 .49 364.12C-2.04 374.22 5.6 384 16.01 384H56c5.04 0 9.78-2.37 12.8-6.4L112 320h102.86l-49.03 171.6c-2.92 10.22 4.75 20.4 15.38 20.4h65.5c5.74 0 11.04-3.08 13.89-8.06L365.71 320H480c35.35 0 96-28.65 96-64s-60.65-64-96-64z"]
  113469. };
  113470. var faPlaneArrival = {
  113471. prefix: 'fas',
  113472. iconName: 'plane-arrival',
  113473. icon: [640, 512, [], "f5af", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM44.81 205.66l88.74 80a62.607 62.607 0 0 0 25.47 13.93l287.6 78.35c26.48 7.21 54.56 8.72 81 1.36 29.67-8.27 43.44-21.21 47.25-35.71 3.83-14.5-1.73-32.71-23.37-54.96-19.28-19.82-44.35-32.79-70.83-40l-97.51-26.56L282.8 30.22c-1.51-5.81-5.95-10.35-11.66-11.91L206.05.58c-10.56-2.88-20.9 5.32-20.71 16.44l47.92 164.21-102.2-27.84-27.59-67.88c-1.93-4.89-6.01-8.57-11.02-9.93L52.72 64.75c-10.34-2.82-20.53 5-20.72 15.88l.23 101.78c.19 8.91 6.03 17.34 12.58 23.25z"]
  113474. };
  113475. var faPlaneDeparture = {
  113476. prefix: 'fas',
  113477. iconName: 'plane-departure',
  113478. icon: [640, 512, [], "f5b0", "M624 448H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h608c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM80.55 341.27c6.28 6.84 15.1 10.72 24.33 10.71l130.54-.18a65.62 65.62 0 0 0 29.64-7.12l290.96-147.65c26.74-13.57 50.71-32.94 67.02-58.31 18.31-28.48 20.3-49.09 13.07-63.65-7.21-14.57-24.74-25.27-58.25-27.45-29.85-1.94-59.54 5.92-86.28 19.48l-98.51 49.99-218.7-82.06a17.799 17.799 0 0 0-18-1.11L90.62 67.29c-10.67 5.41-13.25 19.65-5.17 28.53l156.22 98.1-103.21 52.38-72.35-36.47a17.804 17.804 0 0 0-16.07.02L9.91 230.22c-10.44 5.3-13.19 19.12-5.57 28.08l76.21 82.97z"]
  113479. };
  113480. var faPlaneSlash = {
  113481. prefix: 'fas',
  113482. iconName: 'plane-slash',
  113483. icon: [640, 512, [], "e069", "M32.48,147.88,64,256,32.48,364.13A16,16,0,0,0,48,384H88a16,16,0,0,0,12.8-6.41L144,320H246.85l-49,171.59A16,16,0,0,0,213.2,512h65.5a16,16,0,0,0,13.89-8.06l66.6-116.54L34.35,136.34A15.47,15.47,0,0,0,32.48,147.88ZM633.82,458.09,455.14,320H512c35.34,0,96-28.66,96-64s-60.66-64-96-64H397.7L292.61,8.06C290.06,3.61,283.84,0,278.71,0H213.2a16,16,0,0,0-15.38,20.39l36.94,129.29L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09Z"]
  113484. };
  113485. var faPlay = {
  113486. prefix: 'fas',
  113487. iconName: 'play',
  113488. icon: [448, 512, [], "f04b", "M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"]
  113489. };
  113490. var faPlayCircle = {
  113491. prefix: 'fas',
  113492. iconName: 'play-circle',
  113493. icon: [512, 512, [], "f144", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm115.7 272l-176 101c-15.8 8.8-35.7-2.5-35.7-21V152c0-18.4 19.8-29.8 35.7-21l176 107c16.4 9.2 16.4 32.9 0 42z"]
  113494. };
  113495. var faPlug = {
  113496. prefix: 'fas',
  113497. iconName: 'plug',
  113498. icon: [384, 512, [], "f1e6", "M320,32a32,32,0,0,0-64,0v96h64Zm48,128H16A16,16,0,0,0,0,176v32a16,16,0,0,0,16,16H32v32A160.07,160.07,0,0,0,160,412.8V512h64V412.8A160.07,160.07,0,0,0,352,256V224h16a16,16,0,0,0,16-16V176A16,16,0,0,0,368,160ZM128,32a32,32,0,0,0-64,0v96h64Z"]
  113499. };
  113500. var faPlus = {
  113501. prefix: 'fas',
  113502. iconName: 'plus',
  113503. icon: [448, 512, [], "f067", "M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"]
  113504. };
  113505. var faPlusCircle = {
  113506. prefix: 'fas',
  113507. iconName: 'plus-circle',
  113508. icon: [512, 512, [], "f055", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm144 276c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92h-92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]
  113509. };
  113510. var faPlusSquare = {
  113511. prefix: 'fas',
  113512. iconName: 'plus-square',
  113513. icon: [448, 512, [], "f0fe", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-32 252c0 6.6-5.4 12-12 12h-92v92c0 6.6-5.4 12-12 12h-56c-6.6 0-12-5.4-12-12v-92H92c-6.6 0-12-5.4-12-12v-56c0-6.6 5.4-12 12-12h92v-92c0-6.6 5.4-12 12-12h56c6.6 0 12 5.4 12 12v92h92c6.6 0 12 5.4 12 12v56z"]
  113514. };
  113515. var faPodcast = {
  113516. prefix: 'fas',
  113517. iconName: 'podcast',
  113518. icon: [448, 512, [], "f2ce", "M267.429 488.563C262.286 507.573 242.858 512 224 512c-18.857 0-38.286-4.427-43.428-23.437C172.927 460.134 160 388.898 160 355.75c0-35.156 31.142-43.75 64-43.75s64 8.594 64 43.75c0 32.949-12.871 104.179-20.571 132.813zM156.867 288.554c-18.693-18.308-29.958-44.173-28.784-72.599 2.054-49.724 42.395-89.956 92.124-91.881C274.862 121.958 320 165.807 320 220c0 26.827-11.064 51.116-28.866 68.552-2.675 2.62-2.401 6.986.628 9.187 9.312 6.765 16.46 15.343 21.234 25.363 1.741 3.654 6.497 4.66 9.449 1.891 28.826-27.043 46.553-65.783 45.511-108.565-1.855-76.206-63.595-138.208-139.793-140.369C146.869 73.753 80 139.215 80 220c0 41.361 17.532 78.7 45.55 104.989 2.953 2.771 7.711 1.77 9.453-1.887 4.774-10.021 11.923-18.598 21.235-25.363 3.029-2.2 3.304-6.566.629-9.185zM224 0C100.204 0 0 100.185 0 224c0 89.992 52.602 165.647 125.739 201.408 4.333 2.118 9.267-1.544 8.535-6.31-2.382-15.512-4.342-30.946-5.406-44.339-.146-1.836-1.149-3.486-2.678-4.512-47.4-31.806-78.564-86.016-78.187-147.347.592-96.237 79.29-174.648 175.529-174.899C320.793 47.747 400 126.797 400 224c0 61.932-32.158 116.49-80.65 147.867-.999 14.037-3.069 30.588-5.624 47.23-.732 4.767 4.203 8.429 8.535 6.31C395.227 389.727 448 314.187 448 224 448 100.205 347.815 0 224 0zm0 160c-35.346 0-64 28.654-64 64s28.654 64 64 64 64-28.654 64-64-28.654-64-64-64z"]
  113519. };
  113520. var faPoll = {
  113521. prefix: 'fas',
  113522. iconName: 'poll',
  113523. icon: [448, 512, [], "f681", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM160 368c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V240c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v128zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16V144c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v224zm96 0c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-64c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v64z"]
  113524. };
  113525. var faPollH = {
  113526. prefix: 'fas',
  113527. iconName: 'poll-h',
  113528. icon: [448, 512, [], "f682", "M448 432V80c0-26.5-21.5-48-48-48H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48zM112 192c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h128c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h224c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16H112zm0 96c-8.84 0-16-7.16-16-16v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32c0 8.84-7.16 16-16 16h-64z"]
  113529. };
  113530. var faPoo = {
  113531. prefix: 'fas',
  113532. iconName: 'poo',
  113533. icon: [512, 512, [], "f2fe", "M451.4 369.1C468.7 356 480 335.4 480 312c0-39.8-32.2-72-72-72h-14.1c13.4-11.7 22.1-28.8 22.1-48 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C250.3 14.6 256 30.6 256 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 19.2 8.7 36.3 22.1 48H104c-39.8 0-72 32.2-72 72 0 23.4 11.3 44 28.6 57.1C26.3 374.6 0 404.1 0 440c0 39.8 32.2 72 72 72h368c39.8 0 72-32.2 72-72 0-35.9-26.3-65.4-60.6-70.9zM192 256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm159.5 139C341 422.9 293 448 256 448s-85-25.1-95.5-53c-2-5.3 2-11 7.8-11h175.4c5.8 0 9.8 5.7 7.8 11zM320 320c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  113534. };
  113535. var faPooStorm = {
  113536. prefix: 'fas',
  113537. iconName: 'poo-storm',
  113538. icon: [448, 512, [], "f75a", "M308 336h-57.7l17.3-64.9c2-7.6-3.7-15.1-11.6-15.1h-68c-6 0-11.1 4.5-11.9 10.4l-16 120c-1 7.2 4.6 13.6 11.9 13.6h59.3l-23 97.2c-1.8 7.6 4 14.8 11.7 14.8 4.2 0 8.2-2.2 10.4-6l88-152c4.6-8-1.2-18-10.4-18zm66.4-111.3c5.9-9.6 9.6-20.6 9.6-32.7 0-35.3-28.7-64-64-64h-5.9c3.6-10.1 5.9-20.7 5.9-32 0-53-43-96-96-96-5.2 0-10.2.7-15.1 1.5C218.3 14.6 224 30.6 224 48c0 44.2-35.8 80-80 80h-16c-35.3 0-64 28.7-64 64 0 12.1 3.7 23.1 9.6 32.7C32.6 228 0 262.2 0 304c0 44 36 80 80 80h48.3c.1-.6 0-1.2 0-1.8l16-120c3-21.8 21.7-38.2 43.7-38.2h68c13.8 0 26.5 6.3 34.9 17.2s11.2 24.8 7.6 38.1l-6.6 24.7h16c15.7 0 30.3 8.4 38.1 22 7.8 13.6 7.8 30.5 0 44l-8.1 14h30c44 0 80-36 80-80 .1-41.8-32.5-76-73.5-79.3z"]
  113539. };
  113540. var faPoop = {
  113541. prefix: 'fas',
  113542. iconName: 'poop',
  113543. icon: [512, 512, [], "f619", "M451.36 369.14C468.66 355.99 480 335.41 480 312c0-39.77-32.24-72-72-72h-14.07c13.42-11.73 22.07-28.78 22.07-48 0-35.35-28.65-64-64-64h-5.88c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96-5.17 0-10.15.74-15.11 1.52C250.31 14.64 256 30.62 256 48c0 44.18-35.82 80-80 80h-16c-35.35 0-64 28.65-64 64 0 19.22 8.65 36.27 22.07 48H104c-39.76 0-72 32.23-72 72 0 23.41 11.34 43.99 28.64 57.14C26.31 374.62 0 404.12 0 440c0 39.76 32.24 72 72 72h368c39.76 0 72-32.24 72-72 0-35.88-26.31-65.38-60.64-70.86z"]
  113544. };
  113545. var faPortrait = {
  113546. prefix: 'fas',
  113547. iconName: 'portrait',
  113548. icon: [384, 512, [], "f3e0", "M336 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM192 128c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm112 236.8c0 10.6-10 19.2-22.4 19.2H102.4C90 384 80 375.4 80 364.8v-19.2c0-31.8 30.1-57.6 67.2-57.6h5c12.3 5.1 25.7 8 39.8 8s27.6-2.9 39.8-8h5c37.1 0 67.2 25.8 67.2 57.6v19.2z"]
  113549. };
  113550. var faPoundSign = {
  113551. prefix: 'fas',
  113552. iconName: 'pound-sign',
  113553. icon: [320, 512, [], "f154", "M308 352h-45.495c-6.627 0-12 5.373-12 12v50.848H128V288h84c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-84v-63.556c0-32.266 24.562-57.086 61.792-57.086 23.658 0 45.878 11.505 57.652 18.849 5.151 3.213 11.888 2.051 15.688-2.685l28.493-35.513c4.233-5.276 3.279-13.005-2.119-17.081C273.124 54.56 236.576 32 187.931 32 106.026 32 48 84.742 48 157.961V224H20c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h28v128H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h296c6.627 0 12-5.373 12-12V364c0-6.627-5.373-12-12-12z"]
  113554. };
  113555. var faPowerOff = {
  113556. prefix: 'fas',
  113557. iconName: 'power-off',
  113558. icon: [512, 512, [], "f011", "M400 54.1c63 45 104 118.6 104 201.9 0 136.8-110.8 247.7-247.5 248C120 504.3 8.2 393 8 256.4 7.9 173.1 48.9 99.3 111.8 54.2c11.7-8.3 28-4.8 35 7.7L162.6 90c5.9 10.5 3.1 23.8-6.6 31-41.5 30.8-68 79.6-68 134.9-.1 92.3 74.5 168.1 168 168.1 91.6 0 168.6-74.2 168-169.1-.3-51.8-24.7-101.8-68.1-134-9.7-7.2-12.4-20.5-6.5-30.9l15.8-28.1c7-12.4 23.2-16.1 34.8-7.8zM296 264V24c0-13.3-10.7-24-24-24h-32c-13.3 0-24 10.7-24 24v240c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24z"]
  113559. };
  113560. var faPray = {
  113561. prefix: 'fas',
  113562. iconName: 'pray',
  113563. icon: [384, 512, [], "f683", "M256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-30.63 169.75c14.06 16.72 39 19.09 55.97 5.22l88-72.02c17.09-13.98 19.59-39.19 5.62-56.28-13.97-17.11-39.19-19.59-56.31-5.62l-57.44 47-38.91-46.31c-15.44-18.39-39.22-27.92-64-25.33-24.19 2.48-45.25 16.27-56.37 36.92l-49.37 92.03c-23.4 43.64-8.69 96.37 34.19 123.75L131.56 432H40c-22.09 0-40 17.91-40 40s17.91 40 40 40h208c34.08 0 53.77-42.79 28.28-68.28L166.42 333.86l34.8-64.87 24.15 28.76z"]
  113564. };
  113565. var faPrayingHands = {
  113566. prefix: 'fas',
  113567. iconName: 'praying-hands',
  113568. icon: [640, 512, [], "f684", "M272 191.91c-17.6 0-32 14.4-32 32v80c0 8.84-7.16 16-16 16s-16-7.16-16-16v-76.55c0-17.39 4.72-34.47 13.69-49.39l77.75-129.59c9.09-15.16 4.19-34.81-10.97-43.91-14.45-8.67-32.72-4.3-42.3 9.21-.2.23-.62.21-.79.48l-117.26 175.9C117.56 205.9 112 224.31 112 243.29v80.23l-90.12 30.04A31.974 31.974 0 0 0 0 383.91v96c0 10.82 8.52 32 32 32 2.69 0 5.41-.34 8.06-1.03l179.19-46.62C269.16 449.99 304 403.8 304 351.91v-128c0-17.6-14.4-32-32-32zm346.12 161.73L528 323.6v-80.23c0-18.98-5.56-37.39-16.12-53.23L394.62 14.25c-.18-.27-.59-.24-.79-.48-9.58-13.51-27.85-17.88-42.3-9.21-15.16 9.09-20.06 28.75-10.97 43.91l77.75 129.59c8.97 14.92 13.69 32 13.69 49.39V304c0 8.84-7.16 16-16 16s-16-7.16-16-16v-80c0-17.6-14.4-32-32-32s-32 14.4-32 32v128c0 51.89 34.84 98.08 84.75 112.34l179.19 46.62c2.66.69 5.38 1.03 8.06 1.03 23.48 0 32-21.18 32-32v-96c0-13.77-8.81-25.99-21.88-30.35z"]
  113569. };
  113570. var faPrescription = {
  113571. prefix: 'fas',
  113572. iconName: 'prescription',
  113573. icon: [384, 512, [], "f5b1", "M301.26 352l78.06-78.06c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0L256 306.74l-83.96-83.96C219.31 216.8 256 176.89 256 128c0-53.02-42.98-96-96-96H16C7.16 32 0 39.16 0 48v256c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-80h18.75l128 128-78.06 78.06c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0L256 397.25l78.06 78.06c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63L301.26 352zM64 96h96c17.64 0 32 14.36 32 32s-14.36 32-32 32H64V96z"]
  113574. };
  113575. var faPrescriptionBottle = {
  113576. prefix: 'fas',
  113577. iconName: 'prescription-bottle',
  113578. icon: [384, 512, [], "f485", "M32 192h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64h120c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H32v64c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v64zM360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24z"]
  113579. };
  113580. var faPrescriptionBottleAlt = {
  113581. prefix: 'fas',
  113582. iconName: 'prescription-bottle-alt',
  113583. icon: [384, 512, [], "f486", "M360 0H24C10.8 0 0 10.8 0 24v48c0 13.2 10.8 24 24 24h336c13.2 0 24-10.8 24-24V24c0-13.2-10.8-24-24-24zM32 480c0 17.6 14.4 32 32 32h256c17.6 0 32-14.4 32-32V128H32v352zm64-184c0-4.4 3.6-8 8-8h56v-56c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v56h56c4.4 0 8 3.6 8 8v48c0 4.4-3.6 8-8 8h-56v56c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-56h-56c-4.4 0-8-3.6-8-8v-48z"]
  113584. };
  113585. var faPrint = {
  113586. prefix: 'fas',
  113587. iconName: 'print',
  113588. icon: [512, 512, [], "f02f", "M448 192V77.25c0-8.49-3.37-16.62-9.37-22.63L393.37 9.37c-6-6-14.14-9.37-22.63-9.37H96C78.33 0 64 14.33 64 32v160c-35.35 0-64 28.65-64 64v112c0 8.84 7.16 16 16 16h48v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h48c8.84 0 16-7.16 16-16V256c0-35.35-28.65-64-64-64zm-64 256H128v-96h256v96zm0-224H128V64h192v48c0 8.84 7.16 16 16 16h48v96zm48 72c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
  113589. };
  113590. var faProcedures = {
  113591. prefix: 'fas',
  113592. iconName: 'procedures',
  113593. icon: [640, 512, [], "f487", "M528 224H272c-8.8 0-16 7.2-16 16v144H64V144c0-8.8-7.2-16-16-16H16c-8.8 0-16 7.2-16 16v352c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-48h512v48c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V336c0-61.9-50.1-112-112-112zM136 96h126.1l27.6 55.2c5.9 11.8 22.7 11.8 28.6 0L368 51.8 390.1 96H512c8.8 0 16-7.2 16-16s-7.2-16-16-16H409.9L382.3 8.8C376.4-3 359.6-3 353.7 8.8L304 108.2l-19.9-39.8c-1.4-2.7-4.1-4.4-7.2-4.4H136c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8zm24 256c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64z"]
  113594. };
  113595. var faProjectDiagram = {
  113596. prefix: 'fas',
  113597. iconName: 'project-diagram',
  113598. icon: [640, 512, [], "f542", "M384 320H256c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V352c0-17.67-14.33-32-32-32zM192 32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v128c0 17.67 14.33 32 32 32h95.72l73.16 128.04C211.98 300.98 232.4 288 256 288h.28L192 175.51V128h224V64H192V32zM608 0H480c-17.67 0-32 14.33-32 32v128c0 17.67 14.33 32 32 32h128c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32z"]
  113599. };
  113600. var faPumpMedical = {
  113601. prefix: 'fas',
  113602. iconName: 'pump-medical',
  113603. icon: [384, 512, [], "e06a", "M235.51,159.82H84.24A64,64,0,0,0,20.51,218L.14,442a64,64,0,0,0,63.74,69.8h192A64,64,0,0,0,319.61,442L299.24,218A64,64,0,0,0,235.51,159.82Zm4.37,173.33a13.35,13.35,0,0,1-13.34,13.34h-40v40a13.33,13.33,0,0,1-13.33,13.33H146.54a13.33,13.33,0,0,1-13.33-13.33v-40h-40a13.34,13.34,0,0,1-13.33-13.34V306.49a13.33,13.33,0,0,1,13.33-13.34h40v-40a13.33,13.33,0,0,1,13.33-13.33h26.67a13.33,13.33,0,0,1,13.33,13.33v40h40a13.34,13.34,0,0,1,13.34,13.34ZM379.19,93.88,335.87,50.56a64,64,0,0,0-45.24-18.74H223.88a32,32,0,0,0-32-32h-64a32,32,0,0,0-32,32v96h128v-32h66.75l43.31,43.31a16,16,0,0,0,22.63,0l22.62-22.62A16,16,0,0,0,379.19,93.88Z"]
  113604. };
  113605. var faPumpSoap = {
  113606. prefix: 'fas',
  113607. iconName: 'pump-soap',
  113608. icon: [384, 512, [], "e06b", "M235.63,160H84.37a64,64,0,0,0-63.74,58.21L.27,442.21A64,64,0,0,0,64,512H256a64,64,0,0,0,63.74-69.79l-20.36-224A64,64,0,0,0,235.63,160ZM160,416c-33.12,0-60-26.33-60-58.75,0-25,35.7-75.47,52-97.27A10,10,0,0,1,168,260c16.33,21.8,52,72.27,52,97.27C220,389.67,193.12,416,160,416ZM379.31,94.06,336,50.74A64,64,0,0,0,290.75,32H224A32,32,0,0,0,192,0H128A32,32,0,0,0,96,32v96H224V96h66.75l43.31,43.31a16,16,0,0,0,22.63,0l22.62-22.62A16,16,0,0,0,379.31,94.06Z"]
  113609. };
  113610. var faPuzzlePiece = {
  113611. prefix: 'fas',
  113612. iconName: 'puzzle-piece',
  113613. icon: [576, 512, [], "f12e", "M519.442 288.651c-41.519 0-59.5 31.593-82.058 31.593C377.409 320.244 432 144 432 144s-196.288 80-196.288-3.297c0-35.827 36.288-46.25 36.288-85.985C272 19.216 243.885 0 210.539 0c-34.654 0-66.366 18.891-66.366 56.346 0 41.364 31.711 59.277 31.711 81.75C175.885 207.719 0 166.758 0 166.758v333.237s178.635 41.047 178.635-28.662c0-22.473-40-40.107-40-81.471 0-37.456 29.25-56.346 63.577-56.346 33.673 0 61.788 19.216 61.788 54.717 0 39.735-36.288 50.158-36.288 85.985 0 60.803 129.675 25.73 181.23 25.73 0 0-34.725-120.101 25.827-120.101 35.962 0 46.423 36.152 86.308 36.152C556.712 416 576 387.99 576 354.443c0-34.199-18.962-65.792-56.558-65.792z"]
  113614. };
  113615. var faQrcode = {
  113616. prefix: 'fas',
  113617. iconName: 'qrcode',
  113618. icon: [448, 512, [], "f029", "M0 224h192V32H0v192zM64 96h64v64H64V96zm192-64v192h192V32H256zm128 128h-64V96h64v64zM0 480h192V288H0v192zm64-128h64v64H64v-64zm352-64h32v128h-96v-32h-32v96h-64V288h96v32h64v-32zm0 160h32v32h-32v-32zm-64 0h32v32h-32v-32z"]
  113619. };
  113620. var faQuestion = {
  113621. prefix: 'fas',
  113622. iconName: 'question',
  113623. icon: [384, 512, [], "f128", "M202.021 0C122.202 0 70.503 32.703 29.914 91.026c-7.363 10.58-5.093 25.086 5.178 32.874l43.138 32.709c10.373 7.865 25.132 6.026 33.253-4.148 25.049-31.381 43.63-49.449 82.757-49.449 30.764 0 68.816 19.799 68.816 49.631 0 22.552-18.617 34.134-48.993 51.164-35.423 19.86-82.299 44.576-82.299 106.405V320c0 13.255 10.745 24 24 24h72.471c13.255 0 24-10.745 24-24v-5.773c0-42.86 125.268-44.645 125.268-160.627C377.504 66.256 286.902 0 202.021 0zM192 373.459c-38.196 0-69.271 31.075-69.271 69.271 0 38.195 31.075 69.27 69.271 69.27s69.271-31.075 69.271-69.271-31.075-69.27-69.271-69.27z"]
  113624. };
  113625. var faQuestionCircle = {
  113626. prefix: 'fas',
  113627. iconName: 'question-circle',
  113628. icon: [512, 512, [], "f059", "M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zM262.655 90c-54.497 0-89.255 22.957-116.549 63.758-3.536 5.286-2.353 12.415 2.715 16.258l34.699 26.31c5.205 3.947 12.621 3.008 16.665-2.122 17.864-22.658 30.113-35.797 57.303-35.797 20.429 0 45.698 13.148 45.698 32.958 0 14.976-12.363 22.667-32.534 33.976C247.128 238.528 216 254.941 216 296v4c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12v-1.333c0-28.462 83.186-29.647 83.186-106.667 0-58.002-60.165-102-116.531-102zM256 338c-25.365 0-46 20.635-46 46 0 25.364 20.635 46 46 46s46-20.636 46-46c0-25.365-20.635-46-46-46z"]
  113629. };
  113630. var faQuidditch = {
  113631. prefix: 'fas',
  113632. iconName: 'quidditch',
  113633. icon: [640, 512, [], "f458", "M256.5 216.8L343.2 326s-16.6 102.4-76.6 150.1C206.7 523.8 0 510.2 0 510.2s3.8-23.1 11-55.4l94.6-112.2c4-4.7-.9-11.6-6.6-9.5l-60.4 22.1c14.4-41.7 32.7-80 54.6-97.5 59.9-47.8 163.3-40.9 163.3-40.9zm238 135c-44 0-79.8 35.8-79.8 79.9 0 44.1 35.7 79.9 79.8 79.9 44.1 0 79.8-35.8 79.8-79.9 0-44.2-35.8-79.9-79.8-79.9zM636.5 31L616.7 6c-5.5-6.9-15.5-8-22.4-2.6L361.8 181.3l-34.1-43c-5.1-6.4-15.1-5.2-18.6 2.2l-25.3 54.6 86.7 109.2 58.8-12.4c8-1.7 11.4-11.2 6.3-17.6l-34.1-42.9L634 53.5c6.9-5.5 8-15.6 2.5-22.5z"]
  113634. };
  113635. var faQuoteLeft = {
  113636. prefix: 'fas',
  113637. iconName: 'quote-left',
  113638. icon: [512, 512, [], "f10d", "M464 256h-80v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8c-88.4 0-160 71.6-160 160v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zm-288 0H96v-64c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V56c0-13.3-10.7-24-24-24h-8C71.6 32 0 103.6 0 192v240c0 26.5 21.5 48 48 48h128c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"]
  113639. };
  113640. var faQuoteRight = {
  113641. prefix: 'fas',
  113642. iconName: 'quote-right',
  113643. icon: [512, 512, [], "f10e", "M464 32H336c-26.5 0-48 21.5-48 48v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48zm-288 0H48C21.5 32 0 53.5 0 80v128c0 26.5 21.5 48 48 48h80v64c0 35.3-28.7 64-64 64h-8c-13.3 0-24 10.7-24 24v48c0 13.3 10.7 24 24 24h8c88.4 0 160-71.6 160-160V80c0-26.5-21.5-48-48-48z"]
  113644. };
  113645. var faQuran = {
  113646. prefix: 'fas',
  113647. iconName: 'quran',
  113648. icon: [448, 512, [], "f687", "M448 358.4V25.6c0-16-9.6-25.6-25.6-25.6H96C41.6 0 0 41.6 0 96v320c0 54.4 41.6 96 96 96h326.4c12.8 0 25.6-9.6 25.6-25.6v-16c0-6.4-3.2-12.8-9.6-19.2-3.2-16-3.2-60.8 0-73.6 6.4-3.2 9.6-9.6 9.6-19.2zM301.08 145.82c.6-1.21 1.76-1.82 2.92-1.82s2.32.61 2.92 1.82l11.18 22.65 25 3.63c2.67.39 3.74 3.67 1.81 5.56l-18.09 17.63 4.27 24.89c.36 2.11-1.31 3.82-3.21 3.82-.5 0-1.02-.12-1.52-.38L304 211.87l-22.36 11.75c-.5.26-1.02.38-1.52.38-1.9 0-3.57-1.71-3.21-3.82l4.27-24.89-18.09-17.63c-1.94-1.89-.87-5.17 1.81-5.56l24.99-3.63 11.19-22.65zm-57.89-69.01c13.67 0 27.26 2.49 40.38 7.41a6.775 6.775 0 1 1-2.38 13.12c-.67 0-3.09-.21-4.13-.21-52.31 0-94.86 42.55-94.86 94.86 0 52.3 42.55 94.86 94.86 94.86 1.03 0 3.48-.21 4.13-.21 3.93 0 6.8 3.14 6.8 6.78 0 2.98-1.94 5.51-4.62 6.42-13.07 4.87-26.59 7.34-40.19 7.34C179.67 307.19 128 255.51 128 192c0-63.52 51.67-115.19 115.19-115.19zM380.8 448H96c-19.2 0-32-12.8-32-32s16-32 32-32h284.8v64z"]
  113649. };
  113650. var faRadiation = {
  113651. prefix: 'fas',
  113652. iconName: 'radiation',
  113653. icon: [496, 512, [], "f7b9", "M328.2 255.8h151.6c9.1 0 16.8-7.7 16.2-16.8-5.1-75.8-44.4-142.2-102.5-184.2-7.4-5.3-17.9-2.9-22.7 4.8L290.4 188c22.6 14.3 37.8 39.2 37.8 67.8zm-37.8 67.7c-12.3 7.7-26.8 12.4-42.4 12.4-15.6 0-30-4.7-42.4-12.4L125.2 452c-4.8 7.7-2.4 18.1 5.6 22.4C165.7 493.2 205.6 504 248 504s82.3-10.8 117.2-29.6c8-4.3 10.4-14.8 5.6-22.4l-80.4-128.5zM248 303.8c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48zm-231.8-48h151.6c0-28.6 15.2-53.5 37.8-67.7L125.2 59.7c-4.8-7.7-15.3-10.2-22.7-4.8C44.4 96.9 5.1 163.3 0 239.1c-.6 9 7.1 16.7 16.2 16.7z"]
  113654. };
  113655. var faRadiationAlt = {
  113656. prefix: 'fas',
  113657. iconName: 'radiation-alt',
  113658. icon: [496, 512, [], "f7ba", "M312 256h79.1c9.2 0 16.9-7.7 16-16.8-4.6-43.6-27-81.8-59.5-107.8-7.6-6.1-18.8-4.5-24 3.8L281.9 202c18 11.2 30.1 31.2 30.1 54zm-97.8 54.1L172.4 377c-4.9 7.8-2.4 18.4 5.8 22.5 21.1 10.4 44.7 16.5 69.8 16.5s48.7-6.1 69.9-16.5c8.2-4.1 10.6-14.7 5.8-22.5l-41.8-66.9c-9.8 6.2-21.4 9.9-33.8 9.9s-24.1-3.7-33.9-9.9zM104.9 256H184c0-22.8 12.1-42.8 30.2-54.1l-41.7-66.8c-5.2-8.3-16.4-9.9-24-3.8-32.6 26-54.9 64.2-59.5 107.8-1.1 9.2 6.7 16.9 15.9 16.9zM248 504c137 0 248-111 248-248S385 8 248 8 0 119 0 256s111 248 248 248zm0-432c101.5 0 184 82.5 184 184s-82.5 184-184 184S64 357.5 64 256 146.5 72 248 72zm0 216c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"]
  113659. };
  113660. var faRainbow = {
  113661. prefix: 'fas',
  113662. iconName: 'rainbow',
  113663. icon: [576, 512, [], "f75b", "M268.3 32.7C115.4 42.9 0 176.9 0 330.2V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C64 186.8 180.9 80.3 317.5 97.9 430.4 112.4 512 214 512 327.8V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-165.3-140-298.6-307.7-287.3zm-5.6 96.9C166 142 96 229.1 96 326.7V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-74.8 64.5-134.8 140.8-127.4 66.5 6.5 115.2 66.2 115.2 133.1V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-114.2-100.2-205.4-217.3-190.4zm6.2 96.3c-45.6 8.9-76.9 51.5-76.9 97.9V464c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-17.6 14.3-32 32-32s32 14.4 32 32v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320c0-59.2-53.8-106-115.1-94.1z"]
  113664. };
  113665. var faRandom = {
  113666. prefix: 'fas',
  113667. iconName: 'random',
  113668. icon: [512, 512, [], "f074", "M504.971 359.029c9.373 9.373 9.373 24.569 0 33.941l-80 79.984c-15.01 15.01-40.971 4.49-40.971-16.971V416h-58.785a12.004 12.004 0 0 1-8.773-3.812l-70.556-75.596 53.333-57.143L352 336h32v-39.981c0-21.438 25.943-31.998 40.971-16.971l80 79.981zM12 176h84l52.781 56.551 53.333-57.143-70.556-75.596A11.999 11.999 0 0 0 122.785 96H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12zm372 0v39.984c0 21.46 25.961 31.98 40.971 16.971l80-79.984c9.373-9.373 9.373-24.569 0-33.941l-80-79.981C409.943 24.021 384 34.582 384 56.019V96h-58.785a12.004 12.004 0 0 0-8.773 3.812L96 336H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h110.785c3.326 0 6.503-1.381 8.773-3.812L352 176h32z"]
  113669. };
  113670. var faReceipt = {
  113671. prefix: 'fas',
  113672. iconName: 'receipt',
  113673. icon: [384, 512, [], "f543", "M358.4 3.2L320 48 265.6 3.2a15.9 15.9 0 0 0-19.2 0L192 48 137.6 3.2a15.9 15.9 0 0 0-19.2 0L64 48 25.6 3.2C15-4.7 0 2.8 0 16v480c0 13.2 15 20.7 25.6 12.8L64 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L192 464l54.4 44.8a15.9 15.9 0 0 0 19.2 0L320 464l38.4 44.8c10.5 7.9 25.6.4 25.6-12.8V16c0-13.2-15-20.7-25.6-12.8zM320 360c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16zm0-96c0 4.4-3.6 8-8 8H72c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h240c4.4 0 8 3.6 8 8v16z"]
  113674. };
  113675. var faRecordVinyl = {
  113676. prefix: 'fas',
  113677. iconName: 'record-vinyl',
  113678. icon: [512, 512, [], "f8d9", "M256 152a104 104 0 1 0 104 104 104 104 0 0 0-104-104zm0 128a24 24 0 1 1 24-24 24 24 0 0 1-24 24zm0-272C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 376a128 128 0 1 1 128-128 128 128 0 0 1-128 128z"]
  113679. };
  113680. var faRecycle = {
  113681. prefix: 'fas',
  113682. iconName: 'recycle',
  113683. icon: [512, 512, [], "f1b8", "M184.561 261.903c3.232 13.997-12.123 24.635-24.068 17.168l-40.736-25.455-50.867 81.402C55.606 356.273 70.96 384 96.012 384H148c6.627 0 12 5.373 12 12v40c0 6.627-5.373 12-12 12H96.115c-75.334 0-121.302-83.048-81.408-146.88l50.822-81.388-40.725-25.448c-12.081-7.547-8.966-25.961 4.879-29.158l110.237-25.45c8.611-1.988 17.201 3.381 19.189 11.99l25.452 110.237zm98.561-182.915l41.289 66.076-40.74 25.457c-12.051 7.528-9 25.953 4.879 29.158l110.237 25.45c8.672 1.999 17.215-3.438 19.189-11.99l25.45-110.237c3.197-13.844-11.99-24.719-24.068-17.168l-40.687 25.424-41.263-66.082c-37.521-60.033-125.209-60.171-162.816 0l-17.963 28.766c-3.51 5.62-1.8 13.021 3.82 16.533l33.919 21.195c5.62 3.512 13.024 1.803 16.536-3.817l17.961-28.743c12.712-20.341 41.973-19.676 54.257-.022zM497.288 301.12l-27.515-44.065c-3.511-5.623-10.916-7.334-16.538-3.821l-33.861 21.159c-5.62 3.512-7.33 10.915-3.818 16.536l27.564 44.112c13.257 21.211-2.057 48.96-27.136 48.96H320V336.02c0-14.213-17.242-21.383-27.313-11.313l-80 79.981c-6.249 6.248-6.249 16.379 0 22.627l80 79.989C302.689 517.308 320 510.3 320 495.989V448h95.88c75.274 0 121.335-82.997 81.408-146.88z"]
  113684. };
  113685. var faRedo = {
  113686. prefix: 'fas',
  113687. iconName: 'redo',
  113688. icon: [512, 512, [], "f01e", "M500.33 0h-47.41a12 12 0 0 0-12 12.57l4 82.76A247.42 247.42 0 0 0 256 8C119.34 8 7.9 119.53 8 256.19 8.1 393.07 119.1 504 256 504a247.1 247.1 0 0 0 166.18-63.91 12 12 0 0 0 .48-17.43l-34-34a12 12 0 0 0-16.38-.55A176 176 0 1 1 402.1 157.8l-101.53-4.87a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12h200.33a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12z"]
  113689. };
  113690. var faRedoAlt = {
  113691. prefix: 'fas',
  113692. iconName: 'redo-alt',
  113693. icon: [512, 512, [], "f2f9", "M256.455 8c66.269.119 126.437 26.233 170.859 68.685l35.715-35.715C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.75c-30.864-28.899-70.801-44.907-113.23-45.273-92.398-.798-170.283 73.977-169.484 169.442C88.764 348.009 162.184 424 256 424c41.127 0 79.997-14.678 110.629-41.556 4.743-4.161 11.906-3.908 16.368.553l39.662 39.662c4.872 4.872 4.631 12.815-.482 17.433C378.202 479.813 319.926 504 256 504 119.034 504 8.001 392.967 8 256.002 7.999 119.193 119.646 7.755 256.455 8z"]
  113694. };
  113695. var faRegistered = {
  113696. prefix: 'fas',
  113697. iconName: 'registered',
  113698. icon: [512, 512, [], "f25d", "M285.363 207.475c0 18.6-9.831 28.431-28.431 28.431h-29.876v-56.14h23.378c28.668 0 34.929 8.773 34.929 27.709zM504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM363.411 360.414c-46.729-84.825-43.299-78.636-44.702-80.98 23.432-15.172 37.945-42.979 37.945-74.486 0-54.244-31.5-89.252-105.498-89.252h-70.667c-13.255 0-24 10.745-24 24V372c0 13.255 10.745 24 24 24h22.567c13.255 0 24-10.745 24-24v-71.663h25.556l44.129 82.937a24.001 24.001 0 0 0 21.188 12.727h24.464c18.261-.001 29.829-19.591 21.018-35.587z"]
  113699. };
  113700. var faRemoveFormat = {
  113701. prefix: 'fas',
  113702. iconName: 'remove-format',
  113703. icon: [640, 512, [], "f87d", "M336 416h-11.17l9.26-27.77L267 336.4 240.49 416H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm297.82 42.1L377 259.59 426.17 112H544v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16H176a16 16 0 0 0-16 16v43.9L45.46 3.38A16 16 0 0 0 23 6.19L3.37 31.46a16 16 0 0 0 2.81 22.45l588.36 454.72a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zM309.91 207.76L224 141.36V112h117.83z"]
  113704. };
  113705. var faReply = {
  113706. prefix: 'fas',
  113707. iconName: 'reply',
  113708. icon: [512, 512, [], "f3e5", "M8.309 189.836L184.313 37.851C199.719 24.546 224 35.347 224 56.015v80.053c160.629 1.839 288 34.032 288 186.258 0 61.441-39.581 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 45.344-145.012-21.507-183.51-176.59-185.742V360c0 20.7-24.3 31.453-39.687 18.164l-176.004-152c-11.071-9.562-11.086-26.753 0-36.328z"]
  113709. };
  113710. var faReplyAll = {
  113711. prefix: 'fas',
  113712. iconName: 'reply-all',
  113713. icon: [576, 512, [], "f122", "M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z"]
  113714. };
  113715. var faRepublican = {
  113716. prefix: 'fas',
  113717. iconName: 'republican',
  113718. icon: [640, 512, [], "f75e", "M544 192c0-88.4-71.6-160-160-160H160C71.6 32 0 103.6 0 192v64h544v-64zm-367.7-21.6l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L128 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zm144 0l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L272 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zm144 0l-19.8 19.3 4.7 27.3c.8 4.9-4.3 8.6-8.7 6.3L416 210.4l-24.5 12.9c-4.3 2.3-9.5-1.4-8.7-6.3l4.7-27.3-19.8-19.3c-3.6-3.5-1.6-9.5 3.3-10.2l27.4-4 12.2-24.8c2.2-4.5 8.6-4.4 10.7 0l12.2 24.8 27.4 4c5 .7 6.9 6.7 3.4 10.2zM624 320h-32c-8.8 0-16 7.2-16 16v64c0 8.8-7.2 16-16 16s-16-7.2-16-16V288H0v176c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16v-80h192v80c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16V352h32v43.3c0 41.8 30 80.1 71.6 84.3 47.8 4.9 88.4-32.7 88.4-79.6v-64c0-8.8-7.2-16-16-16z"]
  113719. };
  113720. var faRestroom = {
  113721. prefix: 'fas',
  113722. iconName: 'restroom',
  113723. icon: [640, 512, [], "f7bd", "M128 128c35.3 0 64-28.7 64-64S163.3 0 128 0 64 28.7 64 64s28.7 64 64 64zm384 0c35.3 0 64-28.7 64-64S547.3 0 512 0s-64 28.7-64 64 28.7 64 64 64zm127.3 226.5l-45.6-185.8c-3.3-13.5-15.5-23-29.8-24.2-15 9.7-32.8 15.5-52 15.5-19.2 0-37-5.8-52-15.5-14.3 1.2-26.5 10.7-29.8 24.2l-45.6 185.8C381 369.6 393 384 409.2 384H464v104c0 13.3 10.7 24 24 24h48c13.3 0 24-10.7 24-24V384h54.8c16.2 0 28.2-14.4 24.5-29.5zM336 0h-32c-8.8 0-16 7.2-16 16v480c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zM180.1 144.4c-15 9.8-32.9 15.6-52.1 15.6-19.2 0-37.1-5.8-52.1-15.6C51.3 146.5 32 166.9 32 192v136c0 13.3 10.7 24 24 24h8v136c0 13.3 10.7 24 24 24h80c13.3 0 24-10.7 24-24V352h8c13.3 0 24-10.7 24-24V192c0-25.1-19.3-45.5-43.9-47.6z"]
  113724. };
  113725. var faRetweet = {
  113726. prefix: 'fas',
  113727. iconName: 'retweet',
  113728. icon: [640, 512, [], "f079", "M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-24.569 0-33.941l10.823-10.823c9.562-9.562 25.133-9.34 34.419.492L480 342.118V160H292.451a24.005 24.005 0 0 1-16.971-7.029l-16-16C244.361 121.851 255.069 96 276.451 96H520c13.255 0 24 10.745 24 24v222.118l40.416-42.792c9.285-9.831 24.856-10.054 34.419-.492l10.823 10.823c9.372 9.372 9.372 24.569-.001 33.941zm-265.138 15.431A23.999 23.999 0 0 0 347.548 352H160V169.881l40.416 42.792c9.286 9.831 24.856 10.054 34.419.491l10.822-10.822c9.373-9.373 9.373-24.569 0-33.941L144.971 67.716c-9.373-9.373-24.569-9.373-33.941 0L10.343 168.402c-9.373 9.373-9.373 24.569 0 33.941l10.822 10.822c9.562 9.562 25.133 9.34 34.419-.491L96 169.881V392c0 13.255 10.745 24 24 24h243.549c21.382 0 32.09-25.851 16.971-40.971l-16.001-16z"]
  113729. };
  113730. var faRibbon = {
  113731. prefix: 'fas',
  113732. iconName: 'ribbon',
  113733. icon: [448, 512, [], "f4d6", "M6.1 444.3c-9.6 10.8-7.5 27.6 4.5 35.7l68.8 27.9c9.9 6.7 23.3 5 31.3-3.8l91.8-101.9-79.2-87.9-117.2 130zm435.8 0s-292-324.6-295.4-330.1c15.4-8.4 40.2-17.9 77.5-17.9s62.1 9.5 77.5 17.9c-3.3 5.6-56 64.6-56 64.6l79.1 87.7 34.2-38c28.7-31.9 33.3-78.6 11.4-115.5l-43.7-73.5c-4.3-7.2-9.9-13.3-16.8-18-40.7-27.6-127.4-29.7-171.4 0-6.9 4.7-12.5 10.8-16.8 18l-43.6 73.2c-1.5 2.5-37.1 62.2 11.5 116L337.5 504c8 8.9 21.4 10.5 31.3 3.8l68.8-27.9c11.9-8 14-24.8 4.3-35.6z"]
  113734. };
  113735. var faRing = {
  113736. prefix: 'fas',
  113737. iconName: 'ring',
  113738. icon: [512, 512, [], "f70b", "M256 64C110.06 64 0 125.91 0 208v98.13C0 384.48 114.62 448 256 448s256-63.52 256-141.87V208c0-82.09-110.06-144-256-144zm0 64c106.04 0 192 35.82 192 80 0 9.26-3.97 18.12-10.91 26.39C392.15 208.21 328.23 192 256 192s-136.15 16.21-181.09 42.39C67.97 226.12 64 217.26 64 208c0-44.18 85.96-80 192-80zM120.43 264.64C155.04 249.93 201.64 240 256 240s100.96 9.93 135.57 24.64C356.84 279.07 308.93 288 256 288s-100.84-8.93-135.57-23.36z"]
  113739. };
  113740. var faRoad = {
  113741. prefix: 'fas',
  113742. iconName: 'road',
  113743. icon: [576, 512, [], "f018", "M573.19 402.67l-139.79-320C428.43 71.29 417.6 64 405.68 64h-97.59l2.45 23.16c.5 4.72-3.21 8.84-7.96 8.84h-29.16c-4.75 0-8.46-4.12-7.96-8.84L267.91 64h-97.59c-11.93 0-22.76 7.29-27.73 18.67L2.8 402.67C-6.45 423.86 8.31 448 30.54 448h196.84l10.31-97.68c.86-8.14 7.72-14.32 15.91-14.32h68.8c8.19 0 15.05 6.18 15.91 14.32L348.62 448h196.84c22.23 0 36.99-24.14 27.73-45.33zM260.4 135.16a8 8 0 0 1 7.96-7.16h39.29c4.09 0 7.53 3.09 7.96 7.16l4.6 43.58c.75 7.09-4.81 13.26-11.93 13.26h-40.54c-7.13 0-12.68-6.17-11.93-13.26l4.59-43.58zM315.64 304h-55.29c-9.5 0-16.91-8.23-15.91-17.68l5.07-48c.86-8.14 7.72-14.32 15.91-14.32h45.15c8.19 0 15.05 6.18 15.91 14.32l5.07 48c1 9.45-6.41 17.68-15.91 17.68z"]
  113744. };
  113745. var faRobot = {
  113746. prefix: 'fas',
  113747. iconName: 'robot',
  113748. icon: [640, 512, [], "f544", "M32,224H64V416H32A31.96166,31.96166,0,0,1,0,384V256A31.96166,31.96166,0,0,1,32,224Zm512-48V448a64.06328,64.06328,0,0,1-64,64H160a64.06328,64.06328,0,0,1-64-64V176a79.974,79.974,0,0,1,80-80H288V32a32,32,0,0,1,64,0V96H464A79.974,79.974,0,0,1,544,176ZM264,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,264,256Zm-8,128H192v32h64Zm96,0H288v32h64ZM456,256a40,40,0,1,0-40,40A39.997,39.997,0,0,0,456,256Zm-8,128H384v32h64ZM640,256V384a31.96166,31.96166,0,0,1-32,32H576V224h32A31.96166,31.96166,0,0,1,640,256Z"]
  113749. };
  113750. var faRocket = {
  113751. prefix: 'fas',
  113752. iconName: 'rocket',
  113753. icon: [512, 512, [], "f135", "M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"]
  113754. };
  113755. var faRoute = {
  113756. prefix: 'fas',
  113757. iconName: 'route',
  113758. icon: [512, 512, [], "f4d7", "M416 320h-96c-17.6 0-32-14.4-32-32s14.4-32 32-32h96s96-107 96-160-43-96-96-96-96 43-96 96c0 25.5 22.2 63.4 45.3 96H320c-52.9 0-96 43.1-96 96s43.1 96 96 96h96c17.6 0 32 14.4 32 32s-14.4 32-32 32H185.5c-16 24.8-33.8 47.7-47.3 64H416c52.9 0 96-43.1 96-96s-43.1-96-96-96zm0-256c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM96 256c-53 0-96 43-96 96s96 160 96 160 96-107 96-160-43-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  113759. };
  113760. var faRss = {
  113761. prefix: 'fas',
  113762. iconName: 'rss',
  113763. icon: [448, 512, [], "f09e", "M128.081 415.959c0 35.369-28.672 64.041-64.041 64.041S0 451.328 0 415.959s28.672-64.041 64.041-64.041 64.04 28.673 64.04 64.041zm175.66 47.25c-8.354-154.6-132.185-278.587-286.95-286.95C7.656 175.765 0 183.105 0 192.253v48.069c0 8.415 6.49 15.472 14.887 16.018 111.832 7.284 201.473 96.702 208.772 208.772.547 8.397 7.604 14.887 16.018 14.887h48.069c9.149.001 16.489-7.655 15.995-16.79zm144.249.288C439.596 229.677 251.465 40.445 16.503 32.01 7.473 31.686 0 38.981 0 48.016v48.068c0 8.625 6.835 15.645 15.453 15.999 191.179 7.839 344.627 161.316 352.465 352.465.353 8.618 7.373 15.453 15.999 15.453h48.068c9.034-.001 16.329-7.474 16.005-16.504z"]
  113764. };
  113765. var faRssSquare = {
  113766. prefix: 'fas',
  113767. iconName: 'rss-square',
  113768. icon: [448, 512, [], "f143", "M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM112 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm157.533 0h-34.335c-6.011 0-11.051-4.636-11.442-10.634-5.214-80.05-69.243-143.92-149.123-149.123-5.997-.39-10.633-5.431-10.633-11.441v-34.335c0-6.535 5.468-11.777 11.994-11.425 110.546 5.974 198.997 94.536 204.964 204.964.352 6.526-4.89 11.994-11.425 11.994zm103.027 0h-34.334c-6.161 0-11.175-4.882-11.427-11.038-5.598-136.535-115.204-246.161-251.76-251.76C68.882 152.949 64 147.935 64 141.774V107.44c0-6.454 5.338-11.664 11.787-11.432 167.83 6.025 302.21 141.191 308.205 308.205.232 6.449-4.978 11.787-11.432 11.787z"]
  113769. };
  113770. var faRubleSign = {
  113771. prefix: 'fas',
  113772. iconName: 'ruble-sign',
  113773. icon: [384, 512, [], "f158", "M239.36 320C324.48 320 384 260.542 384 175.071S324.48 32 239.36 32H76c-6.627 0-12 5.373-12 12v206.632H12c-6.627 0-12 5.373-12 12V308c0 6.627 5.373 12 12 12h52v32H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h52v52c0 6.627 5.373 12 12 12h58.56c6.627 0 12-5.373 12-12v-52H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12H146.56v-32h92.8zm-92.8-219.252h78.72c46.72 0 74.88 29.11 74.88 74.323 0 45.832-28.16 75.561-76.16 75.561h-77.44V100.748z"]
  113774. };
  113775. var faRuler = {
  113776. prefix: 'fas',
  113777. iconName: 'ruler',
  113778. icon: [640, 512, [], "f545", "M635.7 167.2L556.1 31.7c-8.8-15-28.3-20.1-43.5-11.5l-69 39.1L503.3 161c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L416 75l-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L333.2 122 278 153.3 337.8 255c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-59.7-101.7-55.2 31.3 27.9 47.4c2.2 3.8.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9l-27.9-47.5-55.2 31.3 59.7 101.7c2.2 3.7.9 8.5-2.9 10.7l-13.8 7.8c-3.8 2.2-8.7.9-10.9-2.9L84.9 262.9l-69 39.1C.7 310.7-4.6 329.8 4.2 344.8l79.6 135.6c8.8 15 28.3 20.1 43.5 11.5L624.1 210c15.2-8.6 20.4-27.8 11.6-42.8z"]
  113779. };
  113780. var faRulerCombined = {
  113781. prefix: 'fas',
  113782. iconName: 'ruler-combined',
  113783. icon: [512, 512, [], "f546", "M160 288h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56v-64h-56c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h56V96h-56c-4.42 0-8-3.58-8-8V72c0-4.42 3.58-8 8-8h56V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 2.77.91 5.24 1.57 7.8L160 329.38V288zm320 64h-32v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-64v56c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-56h-41.37L24.2 510.43c2.56.66 5.04 1.57 7.8 1.57h448c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"]
  113784. };
  113785. var faRulerHorizontal = {
  113786. prefix: 'fas',
  113787. iconName: 'ruler-horizontal',
  113788. icon: [576, 512, [], "f547", "M544 128h-48v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8h-16c-4.42 0-8-3.58-8-8v-88h-64v88c0 4.42-3.58 8-8 8H88c-4.42 0-8-3.58-8-8v-88H32c-17.67 0-32 14.33-32 32v192c0 17.67 14.33 32 32 32h512c17.67 0 32-14.33 32-32V160c0-17.67-14.33-32-32-32z"]
  113789. };
  113790. var faRulerVertical = {
  113791. prefix: 'fas',
  113792. iconName: 'ruler-vertical',
  113793. icon: [256, 512, [], "f548", "M168 416c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88v-64h-88c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h88V32c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v448c0 17.67 14.33 32 32 32h192c17.67 0 32-14.33 32-32v-64h-88z"]
  113794. };
  113795. var faRunning = {
  113796. prefix: 'fas',
  113797. iconName: 'running',
  113798. icon: [416, 512, [], "f70c", "M272 96c26.51 0 48-21.49 48-48S298.51 0 272 0s-48 21.49-48 48 21.49 48 48 48zM113.69 317.47l-14.8 34.52H32c-17.67 0-32 14.33-32 32s14.33 32 32 32h77.45c19.25 0 36.58-11.44 44.11-29.09l8.79-20.52-10.67-6.3c-17.32-10.23-30.06-25.37-37.99-42.61zM384 223.99h-44.03l-26.06-53.25c-12.5-25.55-35.45-44.23-61.78-50.94l-71.08-21.14c-28.3-6.8-57.77-.55-80.84 17.14l-39.67 30.41c-14.03 10.75-16.69 30.83-5.92 44.86s30.84 16.66 44.86 5.92l39.69-30.41c7.67-5.89 17.44-8 25.27-6.14l14.7 4.37-37.46 87.39c-12.62 29.48-1.31 64.01 26.3 80.31l84.98 50.17-27.47 87.73c-5.28 16.86 4.11 34.81 20.97 40.09 3.19 1 6.41 1.48 9.58 1.48 13.61 0 26.23-8.77 30.52-22.45l31.64-101.06c5.91-20.77-2.89-43.08-21.64-54.39l-61.24-36.14 31.31-78.28 20.27 41.43c8 16.34 24.92 26.89 43.11 26.89H384c17.67 0 32-14.33 32-32s-14.33-31.99-32-31.99z"]
  113799. };
  113800. var faRupeeSign = {
  113801. prefix: 'fas',
  113802. iconName: 'rupee-sign',
  113803. icon: [320, 512, [], "f156", "M308 96c6.627 0 12-5.373 12-12V44c0-6.627-5.373-12-12-12H12C5.373 32 0 37.373 0 44v44.748c0 6.627 5.373 12 12 12h85.28c27.308 0 48.261 9.958 60.97 27.252H12c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h158.757c-6.217 36.086-32.961 58.632-74.757 58.632H12c-6.627 0-12 5.373-12 12v53.012c0 3.349 1.4 6.546 3.861 8.818l165.052 152.356a12.001 12.001 0 0 0 8.139 3.182h82.562c10.924 0 16.166-13.408 8.139-20.818L116.871 319.906c76.499-2.34 131.144-53.395 138.318-127.906H308c6.627 0 12-5.373 12-12v-40c0-6.627-5.373-12-12-12h-58.69c-3.486-11.541-8.28-22.246-14.252-32H308z"]
  113804. };
  113805. var faSadCry = {
  113806. prefix: 'fas',
  113807. iconName: 'sad-cry',
  113808. icon: [496, 512, [], "f5b3", "M248 8C111 8 0 119 0 256c0 90.1 48.2 168.7 120 212.1V288c0-8.8 7.2-16 16-16s16 7.2 16 16v196.7c29.5 12.4 62 19.3 96 19.3s66.5-6.9 96-19.3V288c0-8.8 7.2-16 16-16s16 7.2 16 16v180.1C447.8 424.7 496 346 496 256 496 119 385 8 248 8zm-65.5 216.5c-14.8-13.2-46.2-13.2-61 0L112 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S208 197 212 222.2c.8 5-1.7 10-6.1 12.4-5.8 3.1-11.2.7-13.7-1.6l-9.7-8.5zM248 416c-26.5 0-48-28.7-48-64s21.5-64 48-64 48 28.7 48 64-21.5 64-48 64zm149.8-181.5c-5.8 3.1-11.2.7-13.7-1.6l-9.5-8.5c-14.8-13.2-46.2-13.2-61 0L304 233c-3.8 3.3-9.3 4-13.7 1.6-4.4-2.4-6.9-7.4-6.1-12.4 4-25.2 34.2-42.1 59.9-42.1S400 197 404 222.2c.6 4.9-1.8 9.9-6.2 12.3z"]
  113809. };
  113810. var faSadTear = {
  113811. prefix: 'fas',
  113812. iconName: 'sad-tear',
  113813. icon: [496, 512, [], "f5b4", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zM152 416c-26.5 0-48-21-48-47 0-20 28.5-60.4 41.6-77.8 3.2-4.3 9.6-4.3 12.8 0C171.5 308.6 200 349 200 369c0 26-21.5 47-48 47zm16-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm170.2 154.2C315.8 367.4 282.9 352 248 352c-21.2 0-21.2-32 0-32 44.4 0 86.3 19.6 114.7 53.8 13.8 16.4-11.2 36.5-24.5 20.4z"]
  113814. };
  113815. var faSatellite = {
  113816. prefix: 'fas',
  113817. iconName: 'satellite',
  113818. icon: [512, 512, [], "f7bf", "M502.60969,310.04206l-96.70393,96.71625a31.88151,31.88151,0,0,1-45.00765,0L280.572,326.34115l-9.89231,9.90759a190.56343,190.56343,0,0,1-5.40716,168.52287c-4.50077,8.50115-16.39342,9.59505-23.20707,2.79725L134.54715,400.05428l-17.7999,17.79929c.70324,2.60972,1.60965,5.00067,1.60965,7.79793a32.00544,32.00544,0,1,1-32.00544-32.00434c2.79735,0,5.18838.90637,7.7982,1.60959l17.7999-17.79929L4.43129,269.94287c-6.798-6.81342-5.70409-18.6119,2.79735-23.20627a190.58161,190.58161,0,0,1,168.52864-5.407l9.79854-9.79821-80.31053-80.41716a32.002,32.002,0,0,1,0-45.09987L201.96474,9.29814A31.62639,31.62639,0,0,1,224.46868,0a31.99951,31.99951,0,0,1,22.59759,9.29814l80.32615,80.30777,47.805-47.89713a33.6075,33.6075,0,0,1,47.50808,0l47.50807,47.50645a33.63308,33.63308,0,0,1,0,47.50644l-47.805,47.89713L502.71908,265.036A31.78938,31.78938,0,0,1,502.60969,310.04206ZM219.56159,197.433l73.82505-73.82252-68.918-68.9-73.80942,73.80689Zm237.74352,90.106-68.90233-68.9156-73.825,73.82252,68.918,68.9Z"]
  113819. };
  113820. var faSatelliteDish = {
  113821. prefix: 'fas',
  113822. iconName: 'satellite-dish',
  113823. icon: [512, 512, [], "f7c0", "M305.44954,462.59c7.39157,7.29792,6.18829,20.09661-3.00038,25.00356-77.713,41.80281-176.72559,29.9105-242.34331-35.7082C-5.49624,386.28227-17.404,287.362,24.41381,209.554c4.89125-9.095,17.68975-10.29834,25.00318-3.00043L166.22872,323.36708l27.39411-27.39452c-.68759-2.60974-1.594-5.00071-1.594-7.81361a32.00407,32.00407,0,1,1,32.00407,32.00455c-2.79723,0-5.20378-.89075-7.79786-1.594l-27.40974,27.41015ZM511.9758,303.06732a16.10336,16.10336,0,0,1-16.002,17.00242H463.86031a15.96956,15.96956,0,0,1-15.89265-15.00213C440.46671,175.5492,336.45348,70.53427,207.03078,63.53328a15.84486,15.84486,0,0,1-15.00191-15.90852V16.02652A16.09389,16.09389,0,0,1,209.031.02425C372.25491,8.61922,503.47472,139.841,511.9758,303.06732Zm-96.01221-.29692a16.21093,16.21093,0,0,1-16.11142,17.29934H367.645a16.06862,16.06862,0,0,1-15.89265-14.70522c-6.90712-77.01094-68.118-138.91037-144.92467-145.22376a15.94,15.94,0,0,1-14.79876-15.89289V112.13393a16.134,16.134,0,0,1,17.29908-16.096C319.45132,104.5391,407.55627,192.64538,415.96359,302.7704Z"]
  113824. };
  113825. var faSave = {
  113826. prefix: 'fas',
  113827. iconName: 'save',
  113828. icon: [448, 512, [], "f0c7", "M433.941 129.941l-83.882-83.882A48 48 0 0 0 316.118 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V163.882a48 48 0 0 0-14.059-33.941zM224 416c-35.346 0-64-28.654-64-64 0-35.346 28.654-64 64-64s64 28.654 64 64c0 35.346-28.654 64-64 64zm96-304.52V212c0 6.627-5.373 12-12 12H76c-6.627 0-12-5.373-12-12V108c0-6.627 5.373-12 12-12h228.52c3.183 0 6.235 1.264 8.485 3.515l3.48 3.48A11.996 11.996 0 0 1 320 111.48z"]
  113829. };
  113830. var faSchool = {
  113831. prefix: 'fas',
  113832. iconName: 'school',
  113833. icon: [640, 512, [], "f549", "M0 224v272c0 8.84 7.16 16 16 16h80V192H32c-17.67 0-32 14.33-32 32zm360-48h-24v-40c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v64c0 4.42 3.58 8 8 8h48c4.42 0 8-3.58 8-8v-16c0-4.42-3.58-8-8-8zm137.75-63.96l-160-106.67a32.02 32.02 0 0 0-35.5 0l-160 106.67A32.002 32.002 0 0 0 128 138.66V512h128V368c0-8.84 7.16-16 16-16h96c8.84 0 16 7.16 16 16v144h128V138.67c0-10.7-5.35-20.7-14.25-26.63zM320 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm288-64h-64v320h80c8.84 0 16-7.16 16-16V224c0-17.67-14.33-32-32-32z"]
  113834. };
  113835. var faScrewdriver = {
  113836. prefix: 'fas',
  113837. iconName: 'screwdriver',
  113838. icon: [512, 512, [], "f54a", "M448 0L320 96v62.06l-83.03 83.03c6.79 4.25 13.27 9.06 19.07 14.87 5.8 5.8 10.62 12.28 14.87 19.07L353.94 192H416l96-128-64-64zM128 278.59L10.92 395.67c-14.55 14.55-14.55 38.15 0 52.71l52.7 52.7c14.56 14.56 38.15 14.56 52.71 0L233.41 384c29.11-29.11 29.11-76.3 0-105.41s-76.3-29.11-105.41 0z"]
  113839. };
  113840. var faScroll = {
  113841. prefix: 'fas',
  113842. iconName: 'scroll',
  113843. icon: [640, 512, [], "f70e", "M48 0C21.53 0 0 21.53 0 48v64c0 8.84 7.16 16 16 16h80V48C96 21.53 74.47 0 48 0zm208 412.57V352h288V96c0-52.94-43.06-96-96-96H111.59C121.74 13.41 128 29.92 128 48v368c0 38.87 34.65 69.65 74.75 63.12C234.22 474 256 444.46 256 412.57zM288 384v32c0 52.93-43.06 96-96 96h336c61.86 0 112-50.14 112-112 0-8.84-7.16-16-16-16H288z"]
  113844. };
  113845. var faSdCard = {
  113846. prefix: 'fas',
  113847. iconName: 'sd-card',
  113848. icon: [384, 512, [], "f7c2", "M320 0H128L0 128v320c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64zM160 160h-48V64h48v96zm80 0h-48V64h48v96zm80 0h-48V64h48v96z"]
  113849. };
  113850. var faSearch = {
  113851. prefix: 'fas',
  113852. iconName: 'search',
  113853. icon: [512, 512, [], "f002", "M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"]
  113854. };
  113855. var faSearchDollar = {
  113856. prefix: 'fas',
  113857. iconName: 'search-dollar',
  113858. icon: [512, 512, [], "f688", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm27.11-152.54l-45.01-13.5c-5.16-1.55-8.77-6.78-8.77-12.73 0-7.27 5.3-13.19 11.8-13.19h28.11c4.56 0 8.96 1.29 12.82 3.72 3.24 2.03 7.36 1.91 10.13-.73l11.75-11.21c3.53-3.37 3.33-9.21-.57-12.14-9.1-6.83-20.08-10.77-31.37-11.35V112c0-4.42-3.58-8-8-8h-16c-4.42 0-8 3.58-8 8v16.12c-23.63.63-42.68 20.55-42.68 45.07 0 19.97 12.99 37.81 31.58 43.39l45.01 13.5c5.16 1.55 8.77 6.78 8.77 12.73 0 7.27-5.3 13.19-11.8 13.19h-28.1c-4.56 0-8.96-1.29-12.82-3.72-3.24-2.03-7.36-1.91-10.13.73l-11.75 11.21c-3.53 3.37-3.33 9.21.57 12.14 9.1 6.83 20.08 10.77 31.37 11.35V304c0 4.42 3.58 8 8 8h16c4.42 0 8-3.58 8-8v-16.12c23.63-.63 42.68-20.54 42.68-45.07 0-19.97-12.99-37.81-31.59-43.39z"]
  113859. };
  113860. var faSearchLocation = {
  113861. prefix: 'fas',
  113862. iconName: 'search-location',
  113863. icon: [512, 512, [], "f689", "M505.04 442.66l-99.71-99.69c-4.5-4.5-10.6-7-17-7h-16.3c27.6-35.3 44-79.69 44-127.99C416.03 93.09 322.92 0 208.02 0S0 93.09 0 207.98s93.11 207.98 208.02 207.98c48.3 0 92.71-16.4 128.01-44v16.3c0 6.4 2.5 12.5 7 17l99.71 99.69c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.59.1-33.99zm-297.02-90.7c-79.54 0-144-64.34-144-143.98 0-79.53 64.35-143.98 144-143.98 79.54 0 144 64.34 144 143.98 0 79.53-64.35 143.98-144 143.98zm.02-239.96c-40.78 0-73.84 33.05-73.84 73.83 0 32.96 48.26 93.05 66.75 114.86a9.24 9.24 0 0 0 14.18 0c18.49-21.81 66.75-81.89 66.75-114.86 0-40.78-33.06-73.83-73.84-73.83zm0 96c-13.26 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
  113864. };
  113865. var faSearchMinus = {
  113866. prefix: 'fas',
  113867. iconName: 'search-minus',
  113868. icon: [512, 512, [], "f010", "M304 192v32c0 6.6-5.4 12-12 12H124c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"]
  113869. };
  113870. var faSearchPlus = {
  113871. prefix: 'fas',
  113872. iconName: 'search-plus',
  113873. icon: [512, 512, [], "f00e", "M304 192v32c0 6.6-5.4 12-12 12h-56v56c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-56h-56c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h56v-56c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v56h56c6.6 0 12 5.4 12 12zm201 284.7L476.7 505c-9.4 9.4-24.6 9.4-33.9 0L343 405.3c-4.5-4.5-7-10.6-7-17V372c-35.3 27.6-79.7 44-128 44C93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208c0 48.3-16.4 92.7-44 128h16.3c6.4 0 12.5 2.5 17 7l99.7 99.7c9.3 9.4 9.3 24.6 0 34zM344 208c0-75.2-60.8-136-136-136S72 132.8 72 208s60.8 136 136 136 136-60.8 136-136z"]
  113874. };
  113875. var faSeedling = {
  113876. prefix: 'fas',
  113877. iconName: 'seedling',
  113878. icon: [512, 512, [], "f4d8", "M64 96H0c0 123.7 100.3 224 224 224v144c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V320C288 196.3 187.7 96 64 96zm384-64c-84.2 0-157.4 46.5-195.7 115.2 27.7 30.2 48.2 66.9 59 107.6C424 243.1 512 147.9 512 32h-64z"]
  113879. };
  113880. var faServer = {
  113881. prefix: 'fas',
  113882. iconName: 'server',
  113883. icon: [512, 512, [], "f233", "M480 160H32c-17.673 0-32-14.327-32-32V64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm112 248H32c-17.673 0-32-14.327-32-32v-64c0-17.673 14.327-32 32-32h448c17.673 0 32 14.327 32 32v64c0 17.673-14.327 32-32 32zm-48-88c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-64 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z"]
  113884. };
  113885. var faShapes = {
  113886. prefix: 'fas',
  113887. iconName: 'shapes',
  113888. icon: [512, 512, [], "f61f", "M128,256A128,128,0,1,0,256,384,128,128,0,0,0,128,256Zm379-54.86L400.07,18.29a37.26,37.26,0,0,0-64.14,0L229,201.14C214.76,225.52,232.58,256,261.09,256H474.91C503.42,256,521.24,225.52,507,201.14ZM480,288H320a32,32,0,0,0-32,32V480a32,32,0,0,0,32,32H480a32,32,0,0,0,32-32V320A32,32,0,0,0,480,288Z"]
  113889. };
  113890. var faShare = {
  113891. prefix: 'fas',
  113892. iconName: 'share',
  113893. icon: [512, 512, [], "f064", "M503.691 189.836L327.687 37.851C312.281 24.546 288 35.347 288 56.015v80.053C127.371 137.907 0 170.1 0 322.326c0 61.441 39.581 122.309 83.333 154.132 13.653 9.931 33.111-2.533 28.077-18.631C66.066 312.814 132.917 274.316 288 272.085V360c0 20.7 24.3 31.453 39.687 18.164l176.004-152c11.071-9.562 11.086-26.753 0-36.328z"]
  113894. };
  113895. var faShareAlt = {
  113896. prefix: 'fas',
  113897. iconName: 'share-alt',
  113898. icon: [448, 512, [], "f1e0", "M352 320c-22.608 0-43.387 7.819-59.79 20.895l-102.486-64.054a96.551 96.551 0 0 0 0-41.683l102.486-64.054C308.613 184.181 329.392 192 352 192c53.019 0 96-42.981 96-96S405.019 0 352 0s-96 42.981-96 96c0 7.158.79 14.13 2.276 20.841L155.79 180.895C139.387 167.819 118.608 160 96 160c-53.019 0-96 42.981-96 96s42.981 96 96 96c22.608 0 43.387-7.819 59.79-20.895l102.486 64.054A96.301 96.301 0 0 0 256 416c0 53.019 42.981 96 96 96s96-42.981 96-96-42.981-96-96-96z"]
  113899. };
  113900. var faShareAltSquare = {
  113901. prefix: 'fas',
  113902. iconName: 'share-alt-square',
  113903. icon: [448, 512, [], "f1e1", "M448 80v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V80c0-26.51 21.49-48 48-48h352c26.51 0 48 21.49 48 48zM304 296c-14.562 0-27.823 5.561-37.783 14.671l-67.958-40.775a56.339 56.339 0 0 0 0-27.793l67.958-40.775C276.177 210.439 289.438 216 304 216c30.928 0 56-25.072 56-56s-25.072-56-56-56-56 25.072-56 56c0 4.797.605 9.453 1.74 13.897l-67.958 40.775C171.823 205.561 158.562 200 144 200c-30.928 0-56 25.072-56 56s25.072 56 56 56c14.562 0 27.823-5.561 37.783-14.671l67.958 40.775a56.088 56.088 0 0 0-1.74 13.897c0 30.928 25.072 56 56 56s56-25.072 56-56C360 321.072 334.928 296 304 296z"]
  113904. };
  113905. var faShareSquare = {
  113906. prefix: 'fas',
  113907. iconName: 'share-square',
  113908. icon: [576, 512, [], "f14d", "M568.482 177.448L424.479 313.433C409.3 327.768 384 317.14 384 295.985v-71.963c-144.575.97-205.566 35.113-164.775 171.353 4.483 14.973-12.846 26.567-25.006 17.33C155.252 383.105 120 326.488 120 269.339c0-143.937 117.599-172.5 264-173.312V24.012c0-21.174 25.317-31.768 40.479-17.448l144.003 135.988c10.02 9.463 10.028 25.425 0 34.896zM384 379.128V448H64V128h50.916a11.99 11.99 0 0 0 8.648-3.693c14.953-15.568 32.237-27.89 51.014-37.676C185.708 80.83 181.584 64 169.033 64H48C21.49 64 0 85.49 0 112v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48v-88.806c0-8.288-8.197-14.066-16.011-11.302a71.83 71.83 0 0 1-34.189 3.377c-7.27-1.046-13.8 4.514-13.8 11.859z"]
  113909. };
  113910. var faShekelSign = {
  113911. prefix: 'fas',
  113912. iconName: 'shekel-sign',
  113913. icon: [448, 512, [], "f20b", "M248 168v168c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V168c0-75.11-60.89-136-136-136H24C10.75 32 0 42.74 0 56v408c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112h112c30.93 0 56 25.07 56 56zM432 32h-48c-8.84 0-16 7.16-16 16v296c0 30.93-25.07 56-56 56H200V176c0-8.84-7.16-16-16-16h-48c-8.84 0-16 7.16-16 16v280c0 13.25 10.75 24 24 24h168c75.11 0 136-60.89 136-136V48c0-8.84-7.16-16-16-16z"]
  113914. };
  113915. var faShieldAlt = {
  113916. prefix: 'fas',
  113917. iconName: 'shield-alt',
  113918. icon: [512, 512, [], "f3ed", "M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"]
  113919. };
  113920. var faShieldVirus = {
  113921. prefix: 'fas',
  113922. iconName: 'shield-virus',
  113923. icon: [512, 512, [], "e06c", "M224,192a16,16,0,1,0,16,16A16,16,0,0,0,224,192ZM466.5,83.68l-192-80A57.4,57.4,0,0,0,256.05,0a57.4,57.4,0,0,0-18.46,3.67l-192,80A47.93,47.93,0,0,0,16,128C16,326.5,130.5,463.72,237.5,508.32a48.09,48.09,0,0,0,36.91,0C360.09,472.61,496,349.3,496,128A48,48,0,0,0,466.5,83.68ZM384,256H371.88c-28.51,0-42.79,34.47-22.63,54.63l8.58,8.57a16,16,0,1,1-22.63,22.63l-8.57-8.58C306.47,313.09,272,327.37,272,355.88V368a16,16,0,0,1-32,0V355.88c0-28.51-34.47-42.79-54.63-22.63l-8.57,8.58a16,16,0,0,1-22.63-22.63l8.58-8.57c20.16-20.16,5.88-54.63-22.63-54.63H128a16,16,0,0,1,0-32h12.12c28.51,0,42.79-34.47,22.63-54.63l-8.58-8.57a16,16,0,0,1,22.63-22.63l8.57,8.58c20.16,20.16,54.63,5.88,54.63-22.63V112a16,16,0,0,1,32,0v12.12c0,28.51,34.47,42.79,54.63,22.63l8.57-8.58a16,16,0,0,1,22.63,22.63l-8.58,8.57C329.09,189.53,343.37,224,371.88,224H384a16,16,0,0,1,0,32Zm-96,0a16,16,0,1,0,16,16A16,16,0,0,0,288,256Z"]
  113924. };
  113925. var faShip = {
  113926. prefix: 'fas',
  113927. iconName: 'ship',
  113928. icon: [640, 512, [], "f21a", "M496.616 372.639l70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361zM192 128h256v87.531l-118.208-37.995a31.995 31.995 0 0 0-19.584 0L192 215.531V128z"]
  113929. };
  113930. var faShippingFast = {
  113931. prefix: 'fas',
  113932. iconName: 'shipping-fast',
  113933. icon: [640, 512, [], "f48b", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H112C85.5 0 64 21.5 64 48v48H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h272c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H40c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H8c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h208c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H64v128c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"]
  113934. };
  113935. var faShoePrints = {
  113936. prefix: 'fas',
  113937. iconName: 'shoe-prints',
  113938. icon: [640, 512, [], "f54b", "M192 160h32V32h-32c-35.35 0-64 28.65-64 64s28.65 64 64 64zM0 416c0 35.35 28.65 64 64 64h32V352H64c-35.35 0-64 28.65-64 64zm337.46-128c-34.91 0-76.16 13.12-104.73 32-24.79 16.38-44.52 32-104.73 32v128l57.53 15.97c26.21 7.28 53.01 13.12 80.31 15.05 32.69 2.31 65.6.67 97.58-6.2C472.9 481.3 512 429.22 512 384c0-64-84.18-96-174.54-96zM491.42 7.19C459.44.32 426.53-1.33 393.84.99c-27.3 1.93-54.1 7.77-80.31 15.04L256 32v128c60.2 0 79.94 15.62 104.73 32 28.57 18.88 69.82 32 104.73 32C555.82 224 640 192 640 128c0-45.22-39.1-97.3-148.58-120.81z"]
  113939. };
  113940. var faShoppingBag = {
  113941. prefix: 'fas',
  113942. iconName: 'shopping-bag',
  113943. icon: [448, 512, [], "f290", "M352 160v-32C352 57.42 294.579 0 224 0 153.42 0 96 57.42 96 128v32H0v272c0 44.183 35.817 80 80 80h288c44.183 0 80-35.817 80-80V160h-96zm-192-32c0-35.29 28.71-64 64-64s64 28.71 64 64v32H160v-32zm160 120c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zm-192 0c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24z"]
  113944. };
  113945. var faShoppingBasket = {
  113946. prefix: 'fas',
  113947. iconName: 'shopping-basket',
  113948. icon: [576, 512, [], "f291", "M576 216v16c0 13.255-10.745 24-24 24h-8l-26.113 182.788C514.509 462.435 494.257 480 470.37 480H105.63c-23.887 0-44.139-17.565-47.518-41.212L32 256h-8c-13.255 0-24-10.745-24-24v-16c0-13.255 10.745-24 24-24h67.341l106.78-146.821c10.395-14.292 30.407-17.453 44.701-7.058 14.293 10.395 17.453 30.408 7.058 44.701L170.477 192h235.046L326.12 82.821c-10.395-14.292-7.234-34.306 7.059-44.701 14.291-10.395 34.306-7.235 44.701 7.058L484.659 192H552c13.255 0 24 10.745 24 24zM312 392V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm112 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24zm-224 0V280c0-13.255-10.745-24-24-24s-24 10.745-24 24v112c0 13.255 10.745 24 24 24s24-10.745 24-24z"]
  113949. };
  113950. var faShoppingCart = {
  113951. prefix: 'fas',
  113952. iconName: 'shopping-cart',
  113953. icon: [576, 512, [], "f07a", "M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"]
  113954. };
  113955. var faShower = {
  113956. prefix: 'fas',
  113957. iconName: 'shower',
  113958. icon: [512, 512, [], "f2cc", "M304,320a16,16,0,1,0,16,16A16,16,0,0,0,304,320Zm32-96a16,16,0,1,0,16,16A16,16,0,0,0,336,224Zm32,64a16,16,0,1,0-16-16A16,16,0,0,0,368,288Zm-32,32a16,16,0,1,0-16-16A16,16,0,0,0,336,320Zm-32-64a16,16,0,1,0,16,16A16,16,0,0,0,304,256Zm128-32a16,16,0,1,0-16-16A16,16,0,0,0,432,224Zm-48,16a16,16,0,1,0,16-16A16,16,0,0,0,384,240Zm-16-48a16,16,0,1,0,16,16A16,16,0,0,0,368,192Zm96,32a16,16,0,1,0,16,16A16,16,0,0,0,464,224Zm32-32a16,16,0,1,0,16,16A16,16,0,0,0,496,192Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,432,256Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,400,288Zm-64,64a16,16,0,1,0,16,16A16,16,0,0,0,336,352Zm-32,32a16,16,0,1,0,16,16A16,16,0,0,0,304,384Zm64-64a16,16,0,1,0,16,16A16,16,0,0,0,368,320Zm21.65-218.35-11.3-11.31a16,16,0,0,0-22.63,0L350.05,96A111.19,111.19,0,0,0,272,64c-19.24,0-37.08,5.3-52.9,13.85l-10-10A121.72,121.72,0,0,0,123.44,32C55.49,31.5,0,92.91,0,160.85V464a16,16,0,0,0,16,16H48a16,16,0,0,0,16-16V158.4c0-30.15,21-58.2,51-61.93a58.38,58.38,0,0,1,48.93,16.67l10,10C165.3,138.92,160,156.76,160,176a111.23,111.23,0,0,0,32,78.05l-5.66,5.67a16,16,0,0,0,0,22.62l11.3,11.31a16,16,0,0,0,22.63,0L389.65,124.28A16,16,0,0,0,389.65,101.65Z"]
  113959. };
  113960. var faShuttleVan = {
  113961. prefix: 'fas',
  113962. iconName: 'shuttle-van',
  113963. icon: [640, 512, [], "f5b6", "M628.88 210.65L494.39 49.27A48.01 48.01 0 0 0 457.52 32H32C14.33 32 0 46.33 0 64v288c0 17.67 14.33 32 32 32h32c0 53.02 42.98 96 96 96s96-42.98 96-96h128c0 53.02 42.98 96 96 96s96-42.98 96-96h32c17.67 0 32-14.33 32-32V241.38c0-11.23-3.94-22.1-11.12-30.73zM64 192V96h96v96H64zm96 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm160-240h-96V96h96v96zm160 240c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-96-240V96h66.02l80 96H384z"]
  113964. };
  113965. var faSign = {
  113966. prefix: 'fas',
  113967. iconName: 'sign',
  113968. icon: [512, 512, [], "f4d9", "M496 64H128V16c0-8.8-7.2-16-16-16H80c-8.8 0-16 7.2-16 16v48H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h48v368c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V128h368c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM160 384h320V160H160v224z"]
  113969. };
  113970. var faSignInAlt = {
  113971. prefix: 'fas',
  113972. iconName: 'sign-in-alt',
  113973. icon: [512, 512, [], "f2f6", "M416 448h-84c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h84c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32h-84c-6.6 0-12-5.4-12-12V76c0-6.6 5.4-12 12-12h84c53 0 96 43 96 96v192c0 53-43 96-96 96zm-47-201L201 79c-15-15-41-4.5-41 17v96H24c-13.3 0-24 10.7-24 24v96c0 13.3 10.7 24 24 24h136v96c0 21.5 26 32 41 17l168-168c9.3-9.4 9.3-24.6 0-34z"]
  113974. };
  113975. var faSignLanguage = {
  113976. prefix: 'fas',
  113977. iconName: 'sign-language',
  113978. icon: [448, 512, [], "f2a7", "M91.434 483.987c-.307-16.018 13.109-29.129 29.13-29.129h62.293v-5.714H56.993c-16.021 0-29.437-13.111-29.13-29.129C28.16 404.491 40.835 392 56.428 392h126.429v-5.714H29.136c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h154.286v-5.714H57.707c-16.021 0-29.437-13.111-29.13-29.129.297-15.522 12.973-28.013 28.566-28.013h168.566l-31.085-22.606c-12.762-9.281-15.583-27.149-6.302-39.912 9.281-12.761 27.15-15.582 39.912-6.302l123.361 89.715a34.287 34.287 0 0 1 14.12 27.728v141.136c0 15.91-10.946 29.73-26.433 33.374l-80.471 18.934a137.16 137.16 0 0 1-31.411 3.646H120c-15.593-.001-28.269-12.492-28.566-28.014zm73.249-225.701h36.423l-11.187-8.136c-18.579-13.511-20.313-40.887-3.17-56.536l-13.004-16.7c-9.843-12.641-28.43-15.171-40.88-5.088-12.065 9.771-14.133 27.447-4.553 39.75l36.371 46.71zm283.298-2.103l-5.003-152.452c-.518-15.771-13.722-28.136-29.493-27.619-15.773.518-28.137 13.722-27.619 29.493l1.262 38.415L283.565 11.019c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l76.889 98.745-4.509 3.511-94.79-121.734c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l94.443 121.288-4.509 3.511-77.675-99.754c-9.58-12.303-27.223-14.63-39.653-5.328-12.827 9.599-14.929 28.24-5.086 40.881l52.053 66.849c12.497-8.257 29.055-8.285 41.69.904l123.36 89.714c10.904 7.93 17.415 20.715 17.415 34.198v16.999l61.064-47.549a34.285 34.285 0 0 0 13.202-28.177z"]
  113979. };
  113980. var faSignOutAlt = {
  113981. prefix: 'fas',
  113982. iconName: 'sign-out-alt',
  113983. icon: [512, 512, [], "f2f5", "M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z"]
  113984. };
  113985. var faSignal = {
  113986. prefix: 'fas',
  113987. iconName: 'signal',
  113988. icon: [640, 512, [], "f012", "M216 288h-48c-8.84 0-16 7.16-16 16v192c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V304c0-8.84-7.16-16-16-16zM88 384H40c-8.84 0-16 7.16-16 16v96c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16v-96c0-8.84-7.16-16-16-16zm256-192h-48c-8.84 0-16 7.16-16 16v288c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V208c0-8.84-7.16-16-16-16zm128-96h-48c-8.84 0-16 7.16-16 16v384c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V112c0-8.84-7.16-16-16-16zM600 0h-48c-8.84 0-16 7.16-16 16v480c0 8.84 7.16 16 16 16h48c8.84 0 16-7.16 16-16V16c0-8.84-7.16-16-16-16z"]
  113989. };
  113990. var faSignature = {
  113991. prefix: 'fas',
  113992. iconName: 'signature',
  113993. icon: [640, 512, [], "f5b7", "M623.2 192c-51.8 3.5-125.7 54.7-163.1 71.5-29.1 13.1-54.2 24.4-76.1 24.4-22.6 0-26-16.2-21.3-51.9 1.1-8 11.7-79.2-42.7-76.1-25.1 1.5-64.3 24.8-169.5 126L192 182.2c30.4-75.9-53.2-151.5-129.7-102.8L7.4 116.3C0 121-2.2 130.9 2.5 138.4l17.2 27c4.7 7.5 14.6 9.7 22.1 4.9l58-38.9c18.4-11.7 40.7 7.2 32.7 27.1L34.3 404.1C27.5 421 37 448 64 448c8.3 0 16.5-3.2 22.6-9.4 42.2-42.2 154.7-150.7 211.2-195.8-2.2 28.5-2.1 58.9 20.6 83.8 15.3 16.8 37.3 25.3 65.5 25.3 35.6 0 68-14.6 102.3-30 33-14.8 99-62.6 138.4-65.8 8.5-.7 15.2-7.3 15.2-15.8v-32.1c.2-9.1-7.5-16.8-16.6-16.2z"]
  113994. };
  113995. var faSimCard = {
  113996. prefix: 'fas',
  113997. iconName: 'sim-card',
  113998. icon: [384, 512, [], "f7c4", "M0 64v384c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V128L256 0H64C28.7 0 0 28.7 0 64zm224 192h-64v-64h64v64zm96 0h-64v-64h32c17.7 0 32 14.3 32 32v32zm-64 128h64v32c0 17.7-14.3 32-32 32h-32v-64zm-96 0h64v64h-64v-64zm-96 0h64v64H96c-17.7 0-32-14.3-32-32v-32zm0-96h256v64H64v-64zm0-64c0-17.7 14.3-32 32-32h32v64H64v-32z"]
  113999. };
  114000. var faSink = {
  114001. prefix: 'fas',
  114002. iconName: 'sink',
  114003. icon: [512, 512, [], "e06d", "M32,416a96,96,0,0,0,96,96H384a96,96,0,0,0,96-96V384H32ZM496,288H400V256h64a16,16,0,0,0,16-16V224a16,16,0,0,0-16-16H384a32,32,0,0,0-32,32v48H288V96a32,32,0,0,1,64,0v16a16,16,0,0,0,16,16h32a16,16,0,0,0,16-16V96A96.16,96.16,0,0,0,300.87,1.86C255.29,10.71,224,53.36,224,99.79V288H160V240a32,32,0,0,0-32-32H48a16,16,0,0,0-16,16v16a16,16,0,0,0,16,16h64v32H16A16,16,0,0,0,0,304v32a16,16,0,0,0,16,16H496a16,16,0,0,0,16-16V304A16,16,0,0,0,496,288Z"]
  114004. };
  114005. var faSitemap = {
  114006. prefix: 'fas',
  114007. iconName: 'sitemap',
  114008. icon: [640, 512, [], "f0e8", "M128 352H32c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm-24-80h192v48h48v-48h192v48h48v-57.59c0-21.17-17.23-38.41-38.41-38.41H344v-64h40c17.67 0 32-14.33 32-32V32c0-17.67-14.33-32-32-32H256c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h40v64H94.41C73.23 224 56 241.23 56 262.41V320h48v-48zm264 80h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32zm240 0h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32z"]
  114009. };
  114010. var faSkating = {
  114011. prefix: 'fas',
  114012. iconName: 'skating',
  114013. icon: [448, 512, [], "f7c5", "M400 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm0 448c-8.8 0-16 7.2-16 16s-7.2 16-16 16h-96c-8.8 0-16 7.2-16 16s7.2 16 16 16h96c26.5 0 48-21.5 48-48 0-8.8-7.2-16-16-16zm-282.2 8.6c-6.2 6.2-16.4 6.3-22.6 0l-67.9-67.9c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l67.9 67.9c9.4 9.4 21.7 14 34 14s24.6-4.7 33.9-14c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.3-22.7 0zm56.1-179.8l-93.7 93.7c-12.5 12.5-12.5 32.8 0 45.2 6.2 6.2 14.4 9.4 22.6 9.4s16.4-3.1 22.6-9.4l91.9-91.9-30.2-30.2c-5-5-9.4-10.7-13.2-16.8zM128 160h105.5l-20.1 17.2c-13.5 11.5-21.6 28.4-22.3 46.1-.7 17.8 6.1 35.2 18.7 47.7l78.2 78.2V432c0 17.7 14.3 32 32 32s32-14.3 32-32v-89.4c0-12.6-5.1-25-14.1-33.9l-61-61c.5-.4 1.2-.6 1.7-1.1l82.3-82.3c11.5-11.5 14.9-28.6 8.7-43.6-6.2-15-20.7-24.7-37-24.7H128c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]
  114014. };
  114015. var faSkiing = {
  114016. prefix: 'fas',
  114017. iconName: 'skiing',
  114018. icon: [512, 512, [], "f7c9", "M432 96c26.5 0 48-21.5 48-48S458.5 0 432 0s-48 21.5-48 48 21.5 48 48 48zm73 356.1c-9.4-9.4-24.6-9.4-33.9 0-12.1 12.1-30.5 15.4-45.1 8.7l-135.8-70.2 49.2-73.8c12.7-19 10.2-44.5-6-60.6L293 215.7l-107-53.1c-2.9 19.9 3.4 40 17.7 54.4l75.1 75.2-45.9 68.8L35 258.7c-11.7-6-26.2-1.5-32.3 10.3-6.1 11.8-1.5 26.3 10.3 32.3l391.9 202.5c11.9 5.5 24.5 8.1 37.1 8.1 23.2 0 46-9 63-26 9.3-9.3 9.3-24.5 0-33.8zM120 91.6l-11.5 22.5c14.4 7.3 31.2 4.9 42.8-4.8l47.2 23.4c-.1.1-.1.2-.2.3l114.5 56.8 32.4-13 6.4 19.1c4 12.1 12.6 22 24 27.7l58.1 29c15.9 7.9 35 1.5 42.9-14.3 7.9-15.8 1.5-35-14.3-42.9l-52.1-26.1-17.1-51.2c-8.1-24.2-40.9-56.6-84.5-39.2l-81.2 32.5-62.5-31c.3-14.5-7.2-28.6-20.9-35.6l-11.1 21.7h-.2l-34.4-7c-1.8-.4-3.7.2-5 1.7-1.9 2.2-1.7 5.5.5 7.4l26.2 23z"]
  114019. };
  114020. var faSkiingNordic = {
  114021. prefix: 'fas',
  114022. iconName: 'skiing-nordic',
  114023. icon: [576, 512, [], "f7ca", "M336 96c26.5 0 48-21.5 48-48S362.5 0 336 0s-48 21.5-48 48 21.5 48 48 48zm216 320c-13.2 0-24 10.7-24 24 0 13.2-10.8 24-24 24h-69.5L460 285.6c11.7-4.7 20.1-16.2 20.1-29.6 0-17.7-14.3-32-32-32h-44L378 170.8c-12.5-25.5-35.5-44.2-61.8-50.9L245 98.7c-28.3-6.8-57.8-.5-80.8 17.1l-39.7 30.4c-14 10.7-16.7 30.8-5.9 44.9.7.9 1.7 1.3 2.4 2.1L66.9 464H24c-13.2 0-24 10.7-24 24s10.8 24 24 24h480c39.7 0 72-32.3 72-72 0-13.2-10.8-24-24-24zm-260.5 48h-96.9l43.1-91-22-13c-12.1-7.2-21.9-16.9-29.5-27.8L123.7 464H99.5l52.3-261.4c4.1-1 8.1-2.9 11.7-5.6l39.7-30.4c7.7-5.9 17.4-8 25.3-6.1l14.7 4.4-37.5 87.4c-12.6 29.5-1.3 64 26.3 80.3l85 50.2-25.5 81.2zm110.6 0h-43.6l23.6-75.5c5.9-20.8-2.9-43.1-21.6-54.4L299.3 298l31.3-78.3 20.3 41.4c8 16.3 24.9 26.9 43.1 26.9h33.3l-25.2 176z"]
  114024. };
  114025. var faSkull = {
  114026. prefix: 'fas',
  114027. iconName: 'skull',
  114028. icon: [512, 512, [], "f54c", "M256 0C114.6 0 0 100.3 0 224c0 70.1 36.9 132.6 94.5 173.7 9.6 6.9 15.2 18.1 13.5 29.9l-9.4 66.2c-1.4 9.6 6 18.2 15.7 18.2H192v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h64v-56c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v56h77.7c9.7 0 17.1-8.6 15.7-18.2l-9.4-66.2c-1.7-11.7 3.8-23 13.5-29.9C475.1 356.6 512 294.1 512 224 512 100.3 397.4 0 256 0zm-96 320c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm192 0c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64z"]
  114029. };
  114030. var faSkullCrossbones = {
  114031. prefix: 'fas',
  114032. iconName: 'skull-crossbones',
  114033. icon: [448, 512, [], "f714", "M439.15 453.06L297.17 384l141.99-69.06c7.9-3.95 11.11-13.56 7.15-21.46L432 264.85c-3.95-7.9-13.56-11.11-21.47-7.16L224 348.41 37.47 257.69c-7.9-3.95-17.51-.75-21.47 7.16L1.69 293.48c-3.95 7.9-.75 17.51 7.15 21.46L150.83 384 8.85 453.06c-7.9 3.95-11.11 13.56-7.15 21.47l14.31 28.63c3.95 7.9 13.56 11.11 21.47 7.15L224 419.59l186.53 90.72c7.9 3.95 17.51.75 21.47-7.15l14.31-28.63c3.95-7.91.74-17.52-7.16-21.47zM150 237.28l-5.48 25.87c-2.67 12.62 5.42 24.85 16.45 24.85h126.08c11.03 0 19.12-12.23 16.45-24.85l-5.5-25.87c41.78-22.41 70-62.75 70-109.28C368 57.31 303.53 0 224 0S80 57.31 80 128c0 46.53 28.22 86.87 70 109.28zM280 112c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32zm-112 0c17.65 0 32 14.35 32 32s-14.35 32-32 32-32-14.35-32-32 14.35-32 32-32z"]
  114034. };
  114035. var faSlash = {
  114036. prefix: 'fas',
  114037. iconName: 'slash',
  114038. icon: [640, 512, [], "f715", "M594.53 508.63L6.18 53.9c-6.97-5.42-8.23-15.47-2.81-22.45L23.01 6.18C28.43-.8 38.49-2.06 45.47 3.37L633.82 458.1c6.97 5.42 8.23 15.47 2.81 22.45l-19.64 25.27c-5.42 6.98-15.48 8.23-22.46 2.81z"]
  114039. };
  114040. var faSleigh = {
  114041. prefix: 'fas',
  114042. iconName: 'sleigh',
  114043. icon: [640, 512, [], "f7cc", "M612.7 350.7l-9.3-7.4c-6.9-5.5-17-4.4-22.5 2.5l-10 12.5c-5.5 6.9-4.4 17 2.5 22.5l9.3 7.4c5.9 4.7 9.2 11.7 9.2 19.2 0 13.6-11 24.6-24.6 24.6H48c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h516c39 0 73.7-29.3 75.9-68.3 1.4-23.8-8.7-46.3-27.2-61zM32 224c0 59.6 40.9 109.2 96 123.5V400h64v-48h192v48h64v-48c53 0 96-43 96-96v-96c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96v64c0 35.3-28.7 64-64 64h-20.7c-65.8 0-125.9-37.2-155.3-96-29.4-58.8-89.6-96-155.3-96H32C14.3 32 0 46.3 0 64s14.3 32 32 32v128z"]
  114044. };
  114045. var faSlidersH = {
  114046. prefix: 'fas',
  114047. iconName: 'sliders-h',
  114048. icon: [512, 512, [], "f1de", "M496 384H160v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h80v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h336c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160h-80v-16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h336v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h80c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-160H288V48c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v16H16C7.2 64 0 71.2 0 80v32c0 8.8 7.2 16 16 16h208v16c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-16h208c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16z"]
  114049. };
  114050. var faSmile = {
  114051. prefix: 'fas',
  114052. iconName: 'smile',
  114053. icon: [496, 512, [], "f118", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm80 168c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm-160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm194.8 170.2C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.6-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.4-16.2 38.1 4.2 24.6 20.5z"]
  114054. };
  114055. var faSmileBeam = {
  114056. prefix: 'fas',
  114057. iconName: 'smile-beam',
  114058. icon: [496, 512, [], "f5b8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM112 223.4c3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.7 8.6-10.8 11.9-14.9 4.5l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.3 7.4-15.8 4-15.1-4.5zm250.8 122.8C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11-36.7 24.6-20.5 22.4 26.9 55.2 42.2 90.2 42.2s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.3 24.6 20.5zm6.2-118.3l-9.5-17c-7.7-13.7-19.2-21.6-31.5-21.6s-23.8 7.9-31.5 21.6l-9.5 17c-4.1 7.3-15.6 4-14.9-4.5 3.3-42.1 32.2-71.4 56-71.4s52.7 29.3 56 71.4c.6 8.6-11 11.9-15.1 4.5z"]
  114059. };
  114060. var faSmileWink = {
  114061. prefix: 'fas',
  114062. iconName: 'smile-wink',
  114063. icon: [496, 512, [], "f4da", "M0 256c0 137 111 248 248 248s248-111 248-248S385 8 248 8 0 119 0 256zm200-48c0 17.7-14.3 32-32 32s-32-14.3-32-32 14.3-32 32-32 32 14.3 32 32zm158.5 16.5c-14.8-13.2-46.2-13.2-61 0L288 233c-8.3 7.4-21.6.4-19.8-10.8 4-25.2 34.2-42.1 59.9-42.1S384 197 388 222.2c1.7 11.1-11.4 18.3-19.8 10.8l-9.7-8.5zM157.8 325.8C180.2 352.7 213 368 248 368s67.8-15.4 90.2-42.2c13.6-16.2 38.1 4.2 24.6 20.5C334.3 380.4 292.5 400 248 400s-86.3-19.6-114.8-53.8c-13.5-16.3 11.2-36.7 24.6-20.4z"]
  114064. };
  114065. var faSmog = {
  114066. prefix: 'fas',
  114067. iconName: 'smog',
  114068. icon: [640, 512, [], "f75f", "M624 368H80c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h544c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm-480 96H16c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h128c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zm416 0H224c-8.8 0-16 7.2-16 16v16c0 8.8 7.2 16 16 16h336c8.8 0 16-7.2 16-16v-16c0-8.8-7.2-16-16-16zM144 288h156.1c22.5 19.7 51.6 32 83.9 32s61.3-12.3 83.9-32H528c61.9 0 112-50.1 112-112S589.9 64 528 64c-18 0-34.7 4.6-49.7 12.1C454 31 406.8 0 352 0c-41 0-77.8 17.3-104 44.8C221.8 17.3 185 0 144 0 64.5 0 0 64.5 0 144s64.5 144 144 144z"]
  114069. };
  114070. var faSmoking = {
  114071. prefix: 'fas',
  114072. iconName: 'smoking',
  114073. icon: [640, 512, [], "f48d", "M632 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zM553.3 87.1c-5.7-3.8-9.3-10-9.3-16.8V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v62.3c0 22 10.2 43.4 28.6 55.4 42.2 27.3 67.4 73.8 67.4 124V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-65.5-32.4-126.2-86.7-162.6zM432 352H48c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48h384c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16zm-32 112H224v-64h176v64zm87.7-322.4C463.8 125 448 99.3 448 70.3V8c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v66.4c0 43.7 24.6 81.6 60.3 106.7 22.4 15.7 35.7 41.2 35.7 68.6V280c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-30.3c0-43.3-21-83.4-56.3-108.1zM536 352h-48c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"]
  114074. };
  114075. var faSmokingBan = {
  114076. prefix: 'fas',
  114077. iconName: 'smoking-ban',
  114078. icon: [512, 512, [], "f54d", "M96 304c0 8.8 7.2 16 16 16h117.5l-96-96H112c-8.8 0-16 7.2-16 16v64zM256 0C114.6 0 0 114.6 0 256s114.6 256 256 256 256-114.6 256-256S397.4 0 256 0zm0 448c-105.9 0-192-86.1-192-192 0-41.4 13.3-79.7 35.7-111.1l267.4 267.4C335.7 434.7 297.4 448 256 448zm45.2-192H384v32h-50.8l-32-32zm111.1 111.1L365.2 320H400c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16H269.2L144.9 99.7C176.3 77.3 214.6 64 256 64c105.9 0 192 86.1 192 192 0 41.4-13.3 79.7-35.7 111.1zM320.6 128c-15.6 0-28.6-11.2-31.4-25.9-.7-3.6-4-6.1-7.7-6.1h-16.2c-5 0-8.7 4.5-8 9.4 4.6 30.9 31.2 54.6 63.3 54.6 15.6 0 28.6 11.2 31.4 25.9.7 3.6 4 6.1 7.7 6.1h16.2c5 0 8.7-4.5 8-9.4-4.6-30.9-31.2-54.6-63.3-54.6z"]
  114079. };
  114080. var faSms = {
  114081. prefix: 'fas',
  114082. iconName: 'sms',
  114083. icon: [512, 512, [], "f7cd", "M256 32C114.6 32 0 125.1 0 240c0 49.6 21.4 95 57 130.7C44.5 421.1 2.7 466 2.2 466.5c-2.2 2.3-2.8 5.7-1.5 8.7 1.3 3 4.1 4.8 7.3 4.8 66.3 0 116-31.8 140.6-51.4 32.7 12.3 69 19.4 107.4 19.4 141.4 0 256-93.1 256-208S397.4 32 256 32zM128.2 304H116c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H156c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-19 38.6-42.4 38.6zm191.8-8c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8v-68.2l-24.8 55.8c-2.9 5.9-11.4 5.9-14.3 0L224 227.8V296c0 4.4-3.6 8-8 8h-16c-4.4 0-8-3.6-8-8V192c0-8.8 7.2-16 16-16h16c6.1 0 11.6 3.4 14.3 8.8l17.7 35.4 17.7-35.4c2.7-5.4 8.3-8.8 14.3-8.8h16c8.8 0 16 7.2 16 16v104zm48.3 8H356c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h12.3c6 0 10.4-3.5 10.4-6.6 0-1.3-.8-2.7-2.1-3.8l-21.9-18.8c-8.5-7.2-13.3-17.5-13.3-28.1 0-21.3 19-38.6 42.4-38.6H396c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8h-12.3c-6 0-10.4 3.5-10.4 6.6 0 1.3.8 2.7 2.1 3.8l21.9 18.8c8.5 7.2 13.3 17.5 13.3 28.1.1 21.3-18.9 38.6-42.3 38.6z"]
  114084. };
  114085. var faSnowboarding = {
  114086. prefix: 'fas',
  114087. iconName: 'snowboarding',
  114088. icon: [512, 512, [], "f7ce", "M432 96c26.5 0 48-21.5 48-48S458.5 0 432 0s-48 21.5-48 48 21.5 48 48 48zm28.8 153.6c5.8 4.3 12.5 6.4 19.2 6.4 9.7 0 19.3-4.4 25.6-12.8 10.6-14.1 7.8-34.2-6.4-44.8l-111.4-83.5c-13.8-10.3-29.1-18.4-45.4-23.8l-63.7-21.2-26.1-52.1C244.7 2 225.5-4.4 209.7 3.5c-15.8 7.9-22.2 27.1-14.3 42.9l29.1 58.1c5.7 11.4 15.6 19.9 27.7 24l16.4 5.5-41.2 20.6c-21.8 10.9-35.4 32.8-35.4 57.2v53.1l-74.1 24.7c-16.8 5.6-25.8 23.7-20.2 40.5 1.7 5.2 4.9 9.4 8.7 12.9l-38.7-14.1c-9.7-3.5-17.4-10.6-21.8-20-5.6-12-19.9-17.2-31.9-11.6s-17.2 19.9-11.6 31.9c9.8 21 27.1 36.9 48.9 44.8l364.8 132.7c9.7 3.5 19.7 5.3 29.7 5.3 12.5 0 24.9-2.7 36.5-8.2 12-5.6 17.2-19.9 11.6-31.9S474 454.7 462 460.3c-9.3 4.4-19.8 4.8-29.5 1.3l-90.8-33.1c8.7-4.1 15.6-11.8 17.8-21.9l21.9-102c3.9-18.2-3.2-37.2-18.1-48.4l-52-39 66-30.5 83.5 62.9zm-144.4 51.7l-19.7 92c-1.5 7.1-.1 13.9 2.8 20l-169.4-61.6c2.7-.2 5.4-.4 8-1.3l85-28.4c19.6-6.5 32.8-24.8 32.8-45.5V256l60.5 45.3z"]
  114089. };
  114090. var faSnowflake = {
  114091. prefix: 'fas',
  114092. iconName: 'snowflake',
  114093. icon: [448, 512, [], "f2dc", "M440.3 345.2l-33.8-19.5 26-7c8.2-2.2 13.1-10.7 10.9-18.9l-4-14.9c-2.2-8.2-10.7-13.1-18.9-10.9l-70.8 19-63.9-37 63.8-36.9 70.8 19c8.2 2.2 16.7-2.7 18.9-10.9l4-14.9c2.2-8.2-2.7-16.7-10.9-18.9l-26-7 33.8-19.5c7.4-4.3 9.9-13.7 5.7-21.1L430.4 119c-4.3-7.4-13.7-9.9-21.1-5.7l-33.8 19.5 7-26c2.2-8.2-2.7-16.7-10.9-18.9l-14.9-4c-8.2-2.2-16.7 2.7-18.9 10.9l-19 70.8-62.8 36.2v-77.5l53.7-53.7c6.2-6.2 6.2-16.4 0-22.6l-11.3-11.3c-6.2-6.2-16.4-6.2-22.6 0L256 56.4V16c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v40.4l-19.7-19.7c-6.2-6.2-16.4-6.2-22.6 0L138.3 48c-6.3 6.2-6.3 16.4 0 22.6l53.7 53.7v77.5l-62.8-36.2-19-70.8c-2.2-8.2-10.7-13.1-18.9-10.9l-14.9 4c-8.2 2.2-13.1 10.7-10.9 18.9l7 26-33.8-19.5c-7.4-4.3-16.8-1.7-21.1 5.7L2.1 145.7c-4.3 7.4-1.7 16.8 5.7 21.1l33.8 19.5-26 7c-8.3 2.2-13.2 10.7-11 19l4 14.9c2.2 8.2 10.7 13.1 18.9 10.9l70.8-19 63.8 36.9-63.8 36.9-70.8-19c-8.2-2.2-16.7 2.7-18.9 10.9l-4 14.9c-2.2 8.2 2.7 16.7 10.9 18.9l26 7-33.8 19.6c-7.4 4.3-9.9 13.7-5.7 21.1l15.5 26.8c4.3 7.4 13.7 9.9 21.1 5.7l33.8-19.5-7 26c-2.2 8.2 2.7 16.7 10.9 18.9l14.9 4c8.2 2.2 16.7-2.7 18.9-10.9l19-70.8 62.8-36.2v77.5l-53.7 53.7c-6.3 6.2-6.3 16.4 0 22.6l11.3 11.3c6.2 6.2 16.4 6.2 22.6 0l19.7-19.7V496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-40.4l19.7 19.7c6.2 6.2 16.4 6.2 22.6 0l11.3-11.3c6.2-6.2 6.2-16.4 0-22.6L256 387.7v-77.5l62.8 36.2 19 70.8c2.2 8.2 10.7 13.1 18.9 10.9l14.9-4c8.2-2.2 13.1-10.7 10.9-18.9l-7-26 33.8 19.5c7.4 4.3 16.8 1.7 21.1-5.7l15.5-26.8c4.3-7.3 1.8-16.8-5.6-21z"]
  114094. };
  114095. var faSnowman = {
  114096. prefix: 'fas',
  114097. iconName: 'snowman',
  114098. icon: [512, 512, [], "f7d0", "M510.9 152.3l-5.9-14.5c-3.3-8-12.6-11.9-20.8-8.7L456 140.6v-29c0-8.6-7.2-15.6-16-15.6h-16c-8.8 0-16 7-16 15.6v46.9c0 .5.3 1 .3 1.5l-56.4 23c-5.9-10-13.3-18.9-22-26.6 13.6-16.6 22-37.4 22-60.5 0-53-43-96-96-96s-96 43-96 96c0 23.1 8.5 43.9 22 60.5-8.7 7.7-16 16.6-22 26.6l-56.4-23c.1-.5.3-1 .3-1.5v-46.9C104 103 96.8 96 88 96H72c-8.8 0-16 7-16 15.6v29l-28.1-11.5c-8.2-3.2-17.5.7-20.8 8.7l-5.9 14.5c-3.3 8 .7 17.1 8.9 20.3l135.2 55.2c-.4 4-1.2 8-1.2 12.2 0 10.1 1.7 19.6 4.2 28.9C120.9 296.4 104 334.2 104 376c0 54 28.4 100.9 70.8 127.8 9.3 5.9 20.3 8.2 31.3 8.2h99.2c13.3 0 26.3-4.1 37.2-11.7 46.5-32.3 74.4-89.4 62.9-152.6-5.5-30.2-20.5-57.6-41.6-79 2.5-9.2 4.2-18.7 4.2-28.7 0-4.2-.8-8.1-1.2-12.2L502 172.6c8.1-3.1 12.1-12.2 8.9-20.3zM224 96c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm32 272c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-64c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16zm0-88s-16-23.2-16-32 7.2-16 16-16 16 7.2 16 16-16 32-16 32zm32-56c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
  114099. };
  114100. var faSnowplow = {
  114101. prefix: 'fas',
  114102. iconName: 'snowplow',
  114103. icon: [640, 512, [], "f7d2", "M120 376c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm80 0c-13.3 0-24 10.7-24 24s10.7 24 24 24 24-10.7 24-24-10.7-24-24-24zm238.6 49.4c-14.5-14.5-22.6-34.1-22.6-54.6V269.2c0-20.5 8.1-40.1 22.6-54.6l36.7-36.7c6.2-6.2 6.2-16.4 0-22.6l-22.6-22.6c-6.2-6.2-16.4-6.2-22.6 0l-36.7 36.7c-26.5 26.5-41.4 62.4-41.4 99.9V288h-64v-50.9c0-8.7-1.8-17.2-5.2-25.2L364.5 29.1C356.9 11.4 339.6 0 320.3 0H176c-26.5 0-48 21.5-48 48v112h-16c-26.5 0-48 21.5-48 48v91.2C26.3 317.2 0 355.4 0 400c0 61.9 50.1 112 112 112h256c61.9 0 112-50.1 112-112 0-17.3-4.2-33.4-11.2-48H512v18.7c0 37.5 14.9 73.4 41.4 99.9l36.7 36.7c6.2 6.2 16.4 6.2 22.6 0l22.6-22.6c6.2-6.2 6.2-16.4 0-22.6l-36.7-36.7zM192 64h117.8l68.6 160H256l-64-64V64zm176 384H112c-26.5 0-48-21.5-48-48s21.5-48 48-48h256c26.5 0 48 21.5 48 48s-21.5 48-48 48z"]
  114104. };
  114105. var faSoap = {
  114106. prefix: 'fas',
  114107. iconName: 'soap',
  114108. icon: [512, 512, [], "e06e", "M416,192a95.42,95.42,0,0,1-30.94,70.21A95.8,95.8,0,0,1,352,448H160a96,96,0,0,1,0-192h88.91A95.3,95.3,0,0,1,224,192H96A96,96,0,0,0,0,288V416a96,96,0,0,0,96,96H416a96,96,0,0,0,96-96V288A96,96,0,0,0,416,192Zm-96,64a64,64,0,1,0-64-64A64,64,0,0,0,320,256ZM208,96a48,48,0,1,0-48-48A48,48,0,0,0,208,96ZM384,64a32,32,0,1,0-32-32A32,32,0,0,0,384,64ZM160,288a64,64,0,0,0,0,128H352a64,64,0,0,0,0-128Z"]
  114109. };
  114110. var faSocks = {
  114111. prefix: 'fas',
  114112. iconName: 'socks',
  114113. icon: [512, 512, [], "f696", "M214.66 311.01L288 256V96H128v176l-86.65 64.61c-39.4 29.56-53.86 84.42-29.21 127.06C30.39 495.25 63.27 512 96.08 512c20.03 0 40.25-6.25 57.52-19.2l21.86-16.39c-29.85-55.38-13.54-125.84 39.2-165.4zM288 32c0-11.05 3.07-21.3 8.02-30.38C293.4.92 290.85 0 288 0H160c-17.67 0-32 14.33-32 32v32h160V32zM480 0H352c-17.67 0-32 14.33-32 32v32h192V32c0-17.67-14.33-32-32-32zM320 272l-86.13 64.61c-39.4 29.56-53.86 84.42-29.21 127.06 18.25 31.58 50.61 48.33 83.42 48.33 20.03 0 40.25-6.25 57.52-19.2l115.2-86.4A127.997 127.997 0 0 0 512 304V96H320v176z"]
  114114. };
  114115. var faSolarPanel = {
  114116. prefix: 'fas',
  114117. iconName: 'solar-panel',
  114118. icon: [640, 512, [], "f5ba", "M431.98 448.01l-47.97.05V416h-128v32.21l-47.98.05c-8.82.01-15.97 7.16-15.98 15.99l-.05 31.73c-.01 8.85 7.17 16.03 16.02 16.02l223.96-.26c8.82-.01 15.97-7.16 15.98-15.98l.04-31.73c.01-8.85-7.17-16.03-16.02-16.02zM585.2 26.74C582.58 11.31 568.99 0 553.06 0H86.93C71 0 57.41 11.31 54.79 26.74-3.32 369.16.04 348.08.03 352c-.03 17.32 14.29 32 32.6 32h574.74c18.23 0 32.51-14.56 32.59-31.79.02-4.08 3.35 16.95-54.76-325.47zM259.83 64h120.33l9.77 96H250.06l9.77-96zm-75.17 256H71.09L90.1 208h105.97l-11.41 112zm16.29-160H98.24l16.29-96h96.19l-9.77 96zm32.82 160l11.4-112h149.65l11.4 112H233.77zm195.5-256h96.19l16.29 96H439.04l-9.77-96zm26.06 256l-11.4-112H549.9l19.01 112H455.33z"]
  114119. };
  114120. var faSort = {
  114121. prefix: 'fas',
  114122. iconName: 'sort',
  114123. icon: [320, 512, [], "f0dc", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"]
  114124. };
  114125. var faSortAlphaDown = {
  114126. prefix: 'fas',
  114127. iconName: 'sort-alpha-down',
  114128. icon: [448, 512, [], "f15d", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm240-64H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z"]
  114129. };
  114130. var faSortAlphaDownAlt = {
  114131. prefix: 'fas',
  114132. iconName: 'sort-alpha-down-alt',
  114133. icon: [448, 512, [], "f881", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm112-128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z"]
  114134. };
  114135. var faSortAlphaUp = {
  114136. prefix: 'fas',
  114137. iconName: 'sort-alpha-up',
  114138. icon: [448, 512, [], "f15e", "M16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160zm400 128H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 446.37V464a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 321.63V304a16 16 0 0 0-16-16zm31.06-85.38l-59.27-160A16 16 0 0 0 372.72 32h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 224h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 224H432a16 16 0 0 0 15.06-21.38zM335.61 144L352 96l16.39 48z"]
  114139. };
  114140. var faSortAlphaUpAlt = {
  114141. prefix: 'fas',
  114142. iconName: 'sort-alpha-up-alt',
  114143. icon: [448, 512, [], "f882", "M16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160zm272 64h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-56l61.26-70.45A32 32 0 0 0 432 65.63V48a16 16 0 0 0-16-16H288a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h56l-61.26 70.45A32 32 0 0 0 272 190.37V208a16 16 0 0 0 16 16zm159.06 234.62l-59.27-160A16 16 0 0 0 372.72 288h-41.44a16 16 0 0 0-15.07 10.62l-59.27 160A16 16 0 0 0 272 480h24.83a16 16 0 0 0 15.23-11.08l4.42-12.92h71l4.41 12.92A16 16 0 0 0 407.16 480H432a16 16 0 0 0 15.06-21.38zM335.61 400L352 352l16.39 48z"]
  114144. };
  114145. var faSortAmountDown = {
  114146. prefix: 'fas',
  114147. iconName: 'sort-amount-down',
  114148. icon: [512, 512, [], "f160", "M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-128-64h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm256-192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  114149. };
  114150. var faSortAmountDownAlt = {
  114151. prefix: 'fas',
  114152. iconName: 'sort-amount-down-alt',
  114153. icon: [512, 512, [], "f884", "M240 96h64a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm0 128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm256 192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-256-64h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm-64 0h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.37 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352z"]
  114154. };
  114155. var faSortAmountUp = {
  114156. prefix: 'fas',
  114157. iconName: 'sort-amount-up',
  114158. icon: [512, 512, [], "f161", "M304 416h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h64a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.77 160 16 160zm416 0H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-64 128H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM496 32H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  114159. };
  114160. var faSortAmountUpAlt = {
  114161. prefix: 'fas',
  114162. iconName: 'sort-amount-up-alt',
  114163. icon: [512, 512, [], "f885", "M240 96h64a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16h-64a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm0 128h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm256 192H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h256a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-256-64h192a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H240a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zM16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.39-17.24 11.31-27.31l-80-96a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160z"]
  114164. };
  114165. var faSortDown = {
  114166. prefix: 'fas',
  114167. iconName: 'sort-down',
  114168. icon: [320, 512, [], "f0dd", "M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"]
  114169. };
  114170. var faSortNumericDown = {
  114171. prefix: 'fas',
  114172. iconName: 'sort-numeric-down',
  114173. icon: [448, 512, [], "f162", "M304 96h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 96zm26.15 162.91a79 79 0 0 0-55 54.17c-14.25 51.05 21.21 97.77 68.85 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.76 86.25-61.61 86.25-132V336c-.02-51.21-48.4-91.34-101.85-77.09zM352 356a20 20 0 1 1 20-20 20 20 0 0 1-20 20zm-176-4h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352z"]
  114174. };
  114175. var faSortNumericDownAlt = {
  114176. prefix: 'fas',
  114177. iconName: 'sort-numeric-down-alt',
  114178. icon: [448, 512, [], "f886", "M176 352h-48V48a16 16 0 0 0-16-16H80a16 16 0 0 0-16 16v304H16c-14.19 0-21.36 17.24-11.29 27.31l80 96a16 16 0 0 0 22.62 0l80-96C197.35 369.26 190.22 352 176 352zm224 64h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 352h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM330.17 34.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.77 86.25-61.61 86.25-132V112c-.02-51.21-48.4-91.34-101.85-77.09zM352 132a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"]
  114179. };
  114180. var faSortNumericUp = {
  114181. prefix: 'fas',
  114182. iconName: 'sort-numeric-up',
  114183. icon: [448, 512, [], "f163", "M330.17 258.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.76 86.25-61.61 86.25-132V336c-.02-51.21-48.4-91.34-101.85-77.09zM352 356a20 20 0 1 1 20-20 20 20 0 0 1-20 20zM304 96h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-16V48a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 96zM107.31 36.69a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31z"]
  114184. };
  114185. var faSortNumericUpAlt = {
  114186. prefix: 'fas',
  114187. iconName: 'sort-numeric-up-alt',
  114188. icon: [448, 512, [], "f887", "M107.31 36.69a16 16 0 0 0-22.62 0l-80 96C-5.35 142.74 1.78 160 16 160h48v304a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V160h48c14.21 0 21.38-17.24 11.31-27.31zM400 416h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 304 352h16v64h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM330.17 34.91a79 79 0 0 0-55 54.17c-14.27 51.05 21.19 97.77 68.83 102.53a84.07 84.07 0 0 1-20.85 12.91c-7.57 3.4-10.8 12.47-8.18 20.34l9.9 20c2.87 8.63 12.53 13.49 20.9 9.91 58-24.77 86.25-61.61 86.25-132V112c-.02-51.21-48.4-91.34-101.85-77.09zM352 132a20 20 0 1 1 20-20 20 20 0 0 1-20 20z"]
  114189. };
  114190. var faSortUp = {
  114191. prefix: 'fas',
  114192. iconName: 'sort-up',
  114193. icon: [320, 512, [], "f0de", "M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"]
  114194. };
  114195. var faSpa = {
  114196. prefix: 'fas',
  114197. iconName: 'spa',
  114198. icon: [576, 512, [], "f5bb", "M568.25 192c-29.04.13-135.01 6.16-213.84 83-33.12 29.63-53.36 63.3-66.41 94.86-13.05-31.56-33.29-65.23-66.41-94.86-78.83-76.84-184.8-82.87-213.84-83-4.41-.02-7.79 3.4-7.75 7.82.23 27.92 7.14 126.14 88.77 199.3C172.79 480.94 256 480 288 480s115.19.95 199.23-80.88c81.64-73.17 88.54-171.38 88.77-199.3.04-4.42-3.34-7.84-7.75-7.82zM287.98 302.6c12.82-18.85 27.6-35.78 44.09-50.52 19.09-18.61 39.58-33.3 60.26-45.18-16.44-70.5-51.72-133.05-96.73-172.22-4.11-3.58-11.02-3.58-15.14 0-44.99 39.14-80.27 101.63-96.74 172.07 20.37 11.7 40.5 26.14 59.22 44.39a282.768 282.768 0 0 1 45.04 51.46z"]
  114199. };
  114200. var faSpaceShuttle = {
  114201. prefix: 'fas',
  114202. iconName: 'space-shuttle',
  114203. icon: [640, 512, [], "f197", "M592.604 208.244C559.735 192.836 515.777 184 472 184H186.327c-4.952-6.555-10.585-11.978-16.72-16H376C229.157 137.747 219.403 32 96.003 32H96v128H80V32c-26.51 0-48 28.654-48 64v64c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v16c-23.197 0-32 10.032-32 24v40c0 13.983 8.819 24 32 24v64c0 35.346 21.49 64 48 64V352h16v128h.003c123.4 0 133.154-105.747 279.997-136H169.606c6.135-4.022 11.768-9.445 16.72-16H472c43.777 0 87.735-8.836 120.604-24.244C622.282 289.845 640 271.992 640 256s-17.718-33.845-47.396-47.756zM488 296a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8c31.909 0 31.942 80 0 80z"]
  114204. };
  114205. var faSpellCheck = {
  114206. prefix: 'fas',
  114207. iconName: 'spell-check',
  114208. icon: [576, 512, [], "f891", "M272 256h91.36c43.2 0 82-32.2 84.51-75.34a79.82 79.82 0 0 0-25.26-63.07 79.81 79.81 0 0 0 9.06-44.91C427.9 30.57 389.3 0 347 0h-75a16 16 0 0 0-16 16v224a16 16 0 0 0 16 16zm40-200h40a24 24 0 0 1 0 48h-40zm0 96h56a24 24 0 0 1 0 48h-56zM155.12 22.25A32 32 0 0 0 124.64 0H99.36a32 32 0 0 0-30.48 22.25L.59 235.73A16 16 0 0 0 16 256h24.93a16 16 0 0 0 15.42-11.73L68.29 208h87.42l11.94 36.27A16 16 0 0 0 183.07 256H208a16 16 0 0 0 15.42-20.27zM89.37 144L112 75.3l22.63 68.7zm482 132.48l-45.21-45.3a15.88 15.88 0 0 0-22.59 0l-151.5 151.5-55.41-55.5a15.88 15.88 0 0 0-22.59 0l-45.3 45.3a16 16 0 0 0 0 22.59l112 112.21a15.89 15.89 0 0 0 22.6 0l208-208.21a16 16 0 0 0-.02-22.59z"]
  114209. };
  114210. var faSpider = {
  114211. prefix: 'fas',
  114212. iconName: 'spider',
  114213. icon: [576, 512, [], "f717", "M151.17 167.35L177.1 176h4.67l5.22-26.12c.72-3.58 1.8-7.58 3.21-11.79l-20.29-40.58 23.8-71.39c2.79-8.38-1.73-17.44-10.12-20.24L168.42.82c-8.38-2.8-17.45 1.73-20.24 10.12l-25.89 77.68a32.04 32.04 0 0 0 1.73 24.43l27.15 54.3zm422.14 182.03l-52.75-79.12a32.002 32.002 0 0 0-26.62-14.25H416l68.99-24.36a32.03 32.03 0 0 0 16.51-12.61l53.6-80.41c4.9-7.35 2.91-17.29-4.44-22.19l-13.31-8.88c-7.35-4.9-17.29-2.91-22.19 4.44l-50.56 75.83L404.1 208H368l-10.37-51.85C355.44 145.18 340.26 96 288 96c-52.26 0-67.44 49.18-69.63 60.15L208 208h-36.1l-60.49-20.17L60.84 112c-4.9-7.35-14.83-9.34-22.19-4.44l-13.31 8.88c-7.35 4.9-9.34 14.83-4.44 22.19l53.6 80.41a32.03 32.03 0 0 0 16.51 12.61L160 256H82.06a32.02 32.02 0 0 0-26.63 14.25L2.69 349.38c-4.9 7.35-2.92 17.29 4.44 22.19l13.31 8.88c7.35 4.9 17.29 2.91 22.19-4.44l48-72h47.06l-60.83 97.33A31.988 31.988 0 0 0 72 418.3V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-73.11l74.08-118.53c-1.01 14.05-2.08 28.11-2.08 42.21C192 399.64 232.76 448 288 448s96-48.36 96-101.43c0-14.1-1.08-28.16-2.08-42.21L456 422.89V496c0 8.84 7.16 16 16 16h16c8.84 0 16-7.16 16-16v-77.71c0-6-1.69-11.88-4.86-16.96L438.31 304h47.06l48 72c4.9 7.35 14.84 9.34 22.19 4.44l13.31-8.88c7.36-4.9 9.34-14.83 4.44-22.18zM406.09 97.51l-20.29 40.58c1.41 4.21 2.49 8.21 3.21 11.79l5.22 26.12h4.67l25.93-8.65 27.15-54.3a31.995 31.995 0 0 0 1.73-24.43l-25.89-77.68C425.03 2.56 415.96-1.98 407.58.82l-15.17 5.06c-8.38 2.8-12.91 11.86-10.12 20.24l23.8 71.39z"]
  114214. };
  114215. var faSpinner = {
  114216. prefix: 'fas',
  114217. iconName: 'spinner',
  114218. icon: [512, 512, [], "f110", "M304 48c0 26.51-21.49 48-48 48s-48-21.49-48-48 21.49-48 48-48 48 21.49 48 48zm-48 368c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm208-208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zM96 256c0-26.51-21.49-48-48-48S0 229.49 0 256s21.49 48 48 48 48-21.49 48-48zm12.922 99.078c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.491-48-48-48zm294.156 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48c0-26.509-21.49-48-48-48zM108.922 60.922c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.491-48-48-48z"]
  114219. };
  114220. var faSplotch = {
  114221. prefix: 'fas',
  114222. iconName: 'splotch',
  114223. icon: [512, 512, [], "f5bc", "M472.29 195.89l-67.06-22.95c-19.28-6.6-33.54-20.92-38.14-38.3L351.1 74.19c-11.58-43.77-76.57-57.13-109.98-22.62l-46.14 47.67c-13.26 13.71-33.54 20.93-54.2 19.31l-71.88-5.62c-52.05-4.07-86.93 44.88-59.03 82.83l38.54 52.42c11.08 15.07 12.82 33.86 4.64 50.24L24.62 355.4c-20.59 41.25 22.84 84.87 73.49 73.81l69.96-15.28c20.11-4.39 41.45 0 57.07 11.73l54.32 40.83c39.32 29.56 101.04 7.57 104.45-37.22l4.7-61.86c1.35-17.79 12.8-33.86 30.63-42.99l62-31.74c44.88-22.96 39.59-80.17-8.95-96.79z"]
  114224. };
  114225. var faSprayCan = {
  114226. prefix: 'fas',
  114227. iconName: 'spray-can',
  114228. icon: [512, 512, [], "f5bd", "M224 32c0-17.67-14.33-32-32-32h-64c-17.67 0-32 14.33-32 32v96h128V32zm256 96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-256 32H96c-53.02 0-96 42.98-96 96v224c0 17.67 14.33 32 32 32h256c17.67 0 32-14.33 32-32V256c0-53.02-42.98-96-96-96zm-64 256c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zM480 96c17.67 0 32-14.33 32-32s-14.33-32-32-32-32 14.33-32 32 14.33 32 32 32zm-96 32c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm-96-96c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 0c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32zm96 192c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"]
  114229. };
  114230. var faSquare = {
  114231. prefix: 'fas',
  114232. iconName: 'square',
  114233. icon: [448, 512, [], "f0c8", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]
  114234. };
  114235. var faSquareFull = {
  114236. prefix: 'fas',
  114237. iconName: 'square-full',
  114238. icon: [512, 512, [], "f45c", "M512 512H0V0h512v512z"]
  114239. };
  114240. var faSquareRootAlt = {
  114241. prefix: 'fas',
  114242. iconName: 'square-root-alt',
  114243. icon: [576, 512, [], "f698", "M571.31 251.31l-22.62-22.62c-6.25-6.25-16.38-6.25-22.63 0L480 274.75l-46.06-46.06c-6.25-6.25-16.38-6.25-22.63 0l-22.62 22.62c-6.25 6.25-6.25 16.38 0 22.63L434.75 320l-46.06 46.06c-6.25 6.25-6.25 16.38 0 22.63l22.62 22.62c6.25 6.25 16.38 6.25 22.63 0L480 365.25l46.06 46.06c6.25 6.25 16.38 6.25 22.63 0l22.62-22.62c6.25-6.25 6.25-16.38 0-22.63L525.25 320l46.06-46.06c6.25-6.25 6.25-16.38 0-22.63zM552 0H307.65c-14.54 0-27.26 9.8-30.95 23.87l-84.79 322.8-58.41-106.1A32.008 32.008 0 0 0 105.47 224H24c-13.25 0-24 10.74-24 24v48c0 13.25 10.75 24 24 24h43.62l88.88 163.73C168.99 503.5 186.3 512 204.94 512c17.27 0 44.44-9 54.28-41.48L357.03 96H552c13.25 0 24-10.75 24-24V24c0-13.26-10.75-24-24-24z"]
  114244. };
  114245. var faStamp = {
  114246. prefix: 'fas',
  114247. iconName: 'stamp',
  114248. icon: [512, 512, [], "f5bf", "M32 512h448v-64H32v64zm384-256h-66.56c-16.26 0-29.44-13.18-29.44-29.44v-9.46c0-27.37 8.88-53.41 21.46-77.72 9.11-17.61 12.9-38.39 9.05-60.42-6.77-38.78-38.47-70.7-77.26-77.45C212.62-9.04 160 37.33 160 96c0 14.16 3.12 27.54 8.69 39.58C182.02 164.43 192 194.7 192 226.49v.07c0 16.26-13.18 29.44-29.44 29.44H96c-53.02 0-96 42.98-96 96v32c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-32c0-53.02-42.98-96-96-96z"]
  114249. };
  114250. var faStar = {
  114251. prefix: 'fas',
  114252. iconName: 'star',
  114253. icon: [576, 512, [], "f005", "M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]
  114254. };
  114255. var faStarAndCrescent = {
  114256. prefix: 'fas',
  114257. iconName: 'star-and-crescent',
  114258. icon: [512, 512, [], "f699", "M340.47 466.36c-1.45 0-6.89.46-9.18.46-116.25 0-210.82-94.57-210.82-210.82S215.04 45.18 331.29 45.18c2.32 0 7.7.46 9.18.46 7.13 0 13.33-5.03 14.75-12.07 1.46-7.25-2.55-14.49-9.47-17.09C316.58 5.54 286.39 0 256 0 114.84 0 0 114.84 0 256s114.84 256 256 256c30.23 0 60.28-5.49 89.32-16.32 5.96-2.02 10.28-7.64 10.28-14.26 0-8.09-6.39-15.06-15.13-15.06zm162.99-252.5l-76.38-11.1-34.16-69.21c-1.83-3.7-5.38-5.55-8.93-5.55s-7.1 1.85-8.93 5.55l-34.16 69.21-76.38 11.1c-8.17 1.18-11.43 11.22-5.52 16.99l55.27 53.87-13.05 76.07c-1.11 6.44 4.01 11.66 9.81 11.66 1.53 0 3.11-.36 4.64-1.17L384 335.37l68.31 35.91c1.53.8 3.11 1.17 4.64 1.17 5.8 0 10.92-5.23 9.81-11.66l-13.05-76.07 55.27-53.87c5.91-5.77 2.65-15.81-5.52-16.99z"]
  114259. };
  114260. var faStarHalf = {
  114261. prefix: 'fas',
  114262. iconName: 'star-half',
  114263. icon: [576, 512, [], "f089", "M288 0c-11.4 0-22.8 5.9-28.7 17.8L194 150.2 47.9 171.4c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.1 23 46 46.4 33.7L288 439.6V0z"]
  114264. };
  114265. var faStarHalfAlt = {
  114266. prefix: 'fas',
  114267. iconName: 'star-half-alt',
  114268. icon: [536, 512, [], "f5c0", "M508.55 171.51L362.18 150.2 296.77 17.81C290.89 5.98 279.42 0 267.95 0c-11.4 0-22.79 5.9-28.69 17.81l-65.43 132.38-146.38 21.29c-26.25 3.8-36.77 36.09-17.74 54.59l105.89 103-25.06 145.48C86.98 495.33 103.57 512 122.15 512c4.93 0 10-1.17 14.87-3.75l130.95-68.68 130.94 68.7c4.86 2.55 9.92 3.71 14.83 3.71 18.6 0 35.22-16.61 31.66-37.4l-25.03-145.49 105.91-102.98c19.04-18.5 8.52-50.8-17.73-54.6zm-121.74 123.2l-18.12 17.62 4.28 24.88 19.52 113.45-102.13-53.59-22.38-11.74.03-317.19 51.03 103.29 11.18 22.63 25.01 3.64 114.23 16.63-82.65 80.38z"]
  114269. };
  114270. var faStarOfDavid = {
  114271. prefix: 'fas',
  114272. iconName: 'star-of-david',
  114273. icon: [464, 512, [], "f69a", "M405.68 256l53.21-89.39C473.3 142.4 455.48 112 426.88 112H319.96l-55.95-93.98C256.86 6.01 244.43 0 232 0s-24.86 6.01-32.01 18.02L144.04 112H37.11c-28.6 0-46.42 30.4-32.01 54.61L58.32 256 5.1 345.39C-9.31 369.6 8.51 400 37.11 400h106.93l55.95 93.98C207.14 505.99 219.57 512 232 512s24.86-6.01 32.01-18.02L319.96 400h106.93c28.6 0 46.42-30.4 32.01-54.61L405.68 256zm-12.78-88l-19.8 33.26L353.3 168h39.6zm-52.39 88l-52.39 88H175.88l-52.39-88 52.38-88h112.25l52.39 88zM232 73.72L254.79 112h-45.57L232 73.72zM71.1 168h39.6l-19.8 33.26L71.1 168zm0 176l19.8-33.26L110.7 344H71.1zM232 438.28L209.21 400h45.57L232 438.28zM353.29 344l19.8-33.26L392.9 344h-39.61z"]
  114274. };
  114275. var faStarOfLife = {
  114276. prefix: 'fas',
  114277. iconName: 'star-of-life',
  114278. icon: [480, 512, [], "f621", "M471.99 334.43L336.06 256l135.93-78.43c7.66-4.42 10.28-14.2 5.86-21.86l-32.02-55.43c-4.42-7.65-14.21-10.28-21.87-5.86l-135.93 78.43V16c0-8.84-7.17-16-16.01-16h-64.04c-8.84 0-16.01 7.16-16.01 16v156.86L56.04 94.43c-7.66-4.42-17.45-1.79-21.87 5.86L2.15 155.71c-4.42 7.65-1.8 17.44 5.86 21.86L143.94 256 8.01 334.43c-7.66 4.42-10.28 14.21-5.86 21.86l32.02 55.43c4.42 7.65 14.21 10.27 21.87 5.86l135.93-78.43V496c0 8.84 7.17 16 16.01 16h64.04c8.84 0 16.01-7.16 16.01-16V339.14l135.93 78.43c7.66 4.42 17.45 1.8 21.87-5.86l32.02-55.43c4.42-7.65 1.8-17.43-5.86-21.85z"]
  114279. };
  114280. var faStepBackward = {
  114281. prefix: 'fas',
  114282. iconName: 'step-backward',
  114283. icon: [448, 512, [], "f048", "M64 468V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12v176.4l195.5-181C352.1 22.3 384 36.6 384 64v384c0 27.4-31.9 41.7-52.5 24.6L136 292.7V468c0 6.6-5.4 12-12 12H76c-6.6 0-12-5.4-12-12z"]
  114284. };
  114285. var faStepForward = {
  114286. prefix: 'fas',
  114287. iconName: 'step-forward',
  114288. icon: [448, 512, [], "f051", "M384 44v424c0 6.6-5.4 12-12 12h-48c-6.6 0-12-5.4-12-12V291.6l-195.5 181C95.9 489.7 64 475.4 64 448V64c0-27.4 31.9-41.7 52.5-24.6L312 219.3V44c0-6.6 5.4-12 12-12h48c6.6 0 12 5.4 12 12z"]
  114289. };
  114290. var faStethoscope = {
  114291. prefix: 'fas',
  114292. iconName: 'stethoscope',
  114293. icon: [512, 512, [], "f0f1", "M447.1 112c-34.2.5-62.3 28.4-63 62.6-.5 24.3 12.5 45.6 32 56.8V344c0 57.3-50.2 104-112 104-60 0-109.2-44.1-111.9-99.2C265 333.8 320 269.2 320 192V36.6c0-11.4-8.1-21.3-19.3-23.5L237.8.5c-13-2.6-25.6 5.8-28.2 18.8L206.4 35c-2.6 13 5.8 25.6 18.8 28.2l30.7 6.1v121.4c0 52.9-42.2 96.7-95.1 97.2-53.4.5-96.9-42.7-96.9-96V69.4l30.7-6.1c13-2.6 21.4-15.2 18.8-28.2l-3.1-15.7C107.7 6.4 95.1-2 82.1.6L19.3 13C8.1 15.3 0 25.1 0 36.6V192c0 77.3 55.1 142 128.1 156.8C130.7 439.2 208.6 512 304 512c97 0 176-75.4 176-168V231.4c19.1-11.1 32-31.7 32-55.4 0-35.7-29.2-64.5-64.9-64zm.9 80c-8.8 0-16-7.2-16-16s7.2-16 16-16 16 7.2 16 16-7.2 16-16 16z"]
  114294. };
  114295. var faStickyNote = {
  114296. prefix: 'fas',
  114297. iconName: 'sticky-note',
  114298. icon: [448, 512, [], "f249", "M312 320h136V56c0-13.3-10.7-24-24-24H24C10.7 32 0 42.7 0 56v400c0 13.3 10.7 24 24 24h264V344c0-13.2 10.8-24 24-24zm129 55l-98 98c-4.5 4.5-10.6 7-17 7h-6V352h128v6.1c0 6.3-2.5 12.4-7 16.9z"]
  114299. };
  114300. var faStop = {
  114301. prefix: 'fas',
  114302. iconName: 'stop',
  114303. icon: [448, 512, [], "f04d", "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48z"]
  114304. };
  114305. var faStopCircle = {
  114306. prefix: 'fas',
  114307. iconName: 'stop-circle',
  114308. icon: [512, 512, [], "f28d", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm96 328c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16h160c8.8 0 16 7.2 16 16v160z"]
  114309. };
  114310. var faStopwatch = {
  114311. prefix: 'fas',
  114312. iconName: 'stopwatch',
  114313. icon: [448, 512, [], "f2f2", "M432 304c0 114.9-93.1 208-208 208S16 418.9 16 304c0-104 76.3-190.2 176-205.5V64h-28c-6.6 0-12-5.4-12-12V12c0-6.6 5.4-12 12-12h120c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-28v34.5c37.5 5.8 71.7 21.6 99.7 44.6l27.5-27.5c4.7-4.7 12.3-4.7 17 0l28.3 28.3c4.7 4.7 4.7 12.3 0 17l-29.4 29.4-.6.6C419.7 223.3 432 262.2 432 304zm-176 36V188.5c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12V340c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12z"]
  114314. };
  114315. var faStopwatch20 = {
  114316. prefix: 'fas',
  114317. iconName: 'stopwatch-20',
  114318. icon: [448, 512, [], "e06f", "M398.5,190.91l.59-.61,26.59-26.58a16,16,0,0,0,0-22.63L403,118.41a16,16,0,0,0-22.63,0l-24.68,24.68A206.68,206.68,0,0,0,256,98.5V64h32a16,16,0,0,0,16-16V16A16,16,0,0,0,288,0H160a16.05,16.05,0,0,0-16,16V48a16.05,16.05,0,0,0,16,16h32V98.5A207.92,207.92,0,0,0,16.09,297.57C12.64,411.5,106.76,510.22,220.72,512,337.13,513.77,432,420,432,304A206,206,0,0,0,398.5,190.91ZM204.37,377.55a8.2,8.2,0,0,1,8.32,8.07v22.31a8.2,8.2,0,0,1-8.32,8.07H121.52a16.46,16.46,0,0,1-16.61-17.62c2.78-35.22,14.67-57.41,38.45-91.37,20.42-29.19,27.1-37.32,27.1-62.34,0-16.92-1.79-24.27-12.21-24.27-9.39,0-12.69,7.4-12.69,22.68v5.23a8.2,8.2,0,0,1-8.33,8.07h-24.9a8.2,8.2,0,0,1-8.33-8.07v-4.07c0-27.3,8.48-60.24,56.43-60.24,43,0,55.57,25.85,55.57,61,0,35.58-12.44,51.21-34.35,81.31-11.56,15-24.61,35.57-26.41,51.2ZM344,352.32c0,35.16-12.3,63.68-57.23,63.68C243.19,416,232,386.48,232,352.55V247.22c0-40.73,19.58-63.22,56.2-63.22C325,184,344,206.64,344,245.3ZM287.87,221.73c-9.41,0-13.23,7.5-13.23,20V357.68c0,13.11,3.59,20.59,13.23,20.59s13-8,13-21.27V241.06C300.89,229.79,297.88,221.73,287.87,221.73Z"]
  114319. };
  114320. var faStore = {
  114321. prefix: 'fas',
  114322. iconName: 'store',
  114323. icon: [616, 512, [], "f54e", "M602 118.6L537.1 15C531.3 5.7 521 0 510 0H106C95 0 84.7 5.7 78.9 15L14 118.6c-33.5 53.5-3.8 127.9 58.8 136.4 4.5.6 9.1.9 13.7.9 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18 20.1 44.3 33.1 73.8 33.1 29.6 0 55.8-13 73.8-33.1 18.1 20.1 44.3 33.1 73.8 33.1 4.7 0 9.2-.3 13.7-.9 62.8-8.4 92.6-82.8 59-136.4zM529.5 288c-10 0-19.9-1.5-29.5-3.8V384H116v-99.8c-9.6 2.2-19.5 3.8-29.5 3.8-6 0-12.1-.4-18-1.2-5.6-.8-11.1-2.1-16.4-3.6V480c0 17.7 14.3 32 32 32h448c17.7 0 32-14.3 32-32V283.2c-5.4 1.6-10.8 2.9-16.4 3.6-6.1.8-12.1 1.2-18.2 1.2z"]
  114324. };
  114325. var faStoreAlt = {
  114326. prefix: 'fas',
  114327. iconName: 'store-alt',
  114328. icon: [640, 512, [], "f54f", "M320 384H128V224H64v256c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V224h-64v160zm314.6-241.8l-85.3-128c-6-8.9-16-14.2-26.7-14.2H117.4c-10.7 0-20.7 5.3-26.6 14.2l-85.3 128c-14.2 21.3 1 49.8 26.6 49.8H608c25.5 0 40.7-28.5 26.6-49.8zM512 496c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V224h-64v272z"]
  114329. };
  114330. var faStoreAltSlash = {
  114331. prefix: 'fas',
  114332. iconName: 'store-alt-slash',
  114333. icon: [640, 512, [], "e070", "M17.89,123.62,5.51,142.2c-14.2,21.3,1,49.8,26.59,49.8h74.26ZM576,413.42V224H512V364L384,265V224H330.92l-41.4-32H608c25.5,0,40.7-28.5,26.59-49.8l-85.29-128A32.18,32.18,0,0,0,522.6,0H117.42A31.87,31.87,0,0,0,90.81,14.2l-10.66,16L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.81l19.64-25.26a16,16,0,0,0-2.81-22.45ZM320,384H128V224H64V480a32,32,0,0,0,32,32H352a32,32,0,0,0,32-32V406.59l-64-49.47Z"]
  114334. };
  114335. var faStoreSlash = {
  114336. prefix: 'fas',
  114337. iconName: 'store-slash',
  114338. icon: [640, 512, [], "e071", "M121.51,384V284.2a119.43,119.43,0,0,1-28,3.8,123.46,123.46,0,0,1-17.1-1.2,114.88,114.88,0,0,1-15.58-3.6V480c0,17.7,13.59,32,30.4,32H505.75L348.42,384Zm-28-128.09c25.1,0,47.29-10.72,64-27.24L24,120.05c-30.52,53.39-2.45,126.53,56.49,135A95.68,95.68,0,0,0,93.48,255.91ZM602.13,458.09,547.2,413.41V283.2a93.5,93.5,0,0,1-15.57,3.6,127.31,127.31,0,0,1-17.29,1.2,114.89,114.89,0,0,1-28-3.8v79.68L348.52,251.77a88.06,88.06,0,0,0,25.41,4.14c28.11,0,53-13,70.11-33.11,17.19,20.11,42.08,33.11,70.11,33.11a94.31,94.31,0,0,0,13-.91c59.66-8.41,88-82.8,56.06-136.4L521.55,15A30.1,30.1,0,0,0,495.81,0H112A30.11,30.11,0,0,0,86.27,15L76.88,30.78,43.19,3.38A14.68,14.68,0,0,0,21.86,6.19L3.2,31.45A16.58,16.58,0,0,0,5.87,53.91L564.81,508.63a14.69,14.69,0,0,0,21.33-2.82l18.66-25.26A16.58,16.58,0,0,0,602.13,458.09Z"]
  114339. };
  114340. var faStream = {
  114341. prefix: 'fas',
  114342. iconName: 'stream',
  114343. icon: [512, 512, [], "f550", "M16 128h416c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16H16C7.16 32 0 39.16 0 48v64c0 8.84 7.16 16 16 16zm480 80H80c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16zm-64 176H16c-8.84 0-16 7.16-16 16v64c0 8.84 7.16 16 16 16h416c8.84 0 16-7.16 16-16v-64c0-8.84-7.16-16-16-16z"]
  114344. };
  114345. var faStreetView = {
  114346. prefix: 'fas',
  114347. iconName: 'street-view',
  114348. icon: [512, 512, [], "f21d", "M367.9 329.76c-4.62 5.3-9.78 10.1-15.9 13.65v22.94c66.52 9.34 112 28.05 112 49.65 0 30.93-93.12 56-208 56S48 446.93 48 416c0-21.6 45.48-40.3 112-49.65v-22.94c-6.12-3.55-11.28-8.35-15.9-13.65C58.87 345.34 0 378.05 0 416c0 53.02 114.62 96 256 96s256-42.98 256-96c0-37.95-58.87-70.66-144.1-86.24zM256 128c35.35 0 64-28.65 64-64S291.35 0 256 0s-64 28.65-64 64 28.65 64 64 64zm-64 192v96c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-96c17.67 0 32-14.33 32-32v-96c0-26.51-21.49-48-48-48h-11.8c-11.07 5.03-23.26 8-36.2 8s-25.13-2.97-36.2-8H208c-26.51 0-48 21.49-48 48v96c0 17.67 14.33 32 32 32z"]
  114349. };
  114350. var faStrikethrough = {
  114351. prefix: 'fas',
  114352. iconName: 'strikethrough',
  114353. icon: [512, 512, [], "f0cc", "M496 224H293.9l-87.17-26.83A43.55 43.55 0 0 1 219.55 112h66.79A49.89 49.89 0 0 1 331 139.58a16 16 0 0 0 21.46 7.15l42.94-21.47a16 16 0 0 0 7.16-21.46l-.53-1A128 128 0 0 0 287.51 32h-68a123.68 123.68 0 0 0-123 135.64c2 20.89 10.1 39.83 21.78 56.36H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h480a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm-180.24 96A43 43 0 0 1 336 356.45 43.59 43.59 0 0 1 292.45 400h-66.79A49.89 49.89 0 0 1 181 372.42a16 16 0 0 0-21.46-7.15l-42.94 21.47a16 16 0 0 0-7.16 21.46l.53 1A128 128 0 0 0 224.49 480h68a123.68 123.68 0 0 0 123-135.64 114.25 114.25 0 0 0-5.34-24.36z"]
  114354. };
  114355. var faStroopwafel = {
  114356. prefix: 'fas',
  114357. iconName: 'stroopwafel',
  114358. icon: [512, 512, [], "f551", "M188.12 210.74L142.86 256l45.25 45.25L233.37 256l-45.25-45.26zm113.13-22.62L256 142.86l-45.25 45.25L256 233.37l45.25-45.25zm-90.5 135.76L256 369.14l45.26-45.26L256 278.63l-45.25 45.25zM256 0C114.62 0 0 114.62 0 256s114.62 256 256 256 256-114.62 256-256S397.38 0 256 0zm186.68 295.6l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-28.29-28.29-45.25 45.25 33.94 33.94 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-33.94-33.94-45.26 45.26 28.29 28.29c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0L256 414.39l-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l28.29-28.29-45.25-45.26-33.94 33.94 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 33.94-33.94-45.25-45.25-28.29 28.29c-3.12 3.12-8.19 3.12-11.31 0L69.32 295.6c-3.12-3.12-3.12-8.19 0-11.31L97.61 256l-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l28.29 28.29 45.25-45.26-33.94-33.94-16.97 16.97c-3.12 3.12-8.19 3.12-11.31 0l-11.31-11.31c-3.12-3.12-3.12-8.19 0-11.31l16.97-16.97-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 33.94 33.94 45.26-45.25-28.29-28.29c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0L256 97.61l28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-28.29 28.29 45.26 45.25 33.94-33.94-16.97-16.97c-3.12-3.12-3.12-8.19 0-11.31l11.31-11.31c3.12-3.12 8.19-3.12 11.31 0l16.97 16.97 16.97-16.97c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31l-16.97 16.97 16.97 16.97c3.12 3.12 3.12 8.19 0 11.31l-11.31 11.31c-3.12 3.12-8.19 3.12-11.31 0l-16.97-16.97-33.94 33.94 45.25 45.26 28.29-28.29c3.12-3.12 8.19-3.12 11.31 0l11.31 11.31c3.12 3.12 3.12 8.19 0 11.31L414.39 256l28.29 28.28a8.015 8.015 0 0 1 0 11.32zM278.63 256l45.26 45.25L369.14 256l-45.25-45.26L278.63 256z"]
  114359. };
  114360. var faSubscript = {
  114361. prefix: 'fas',
  114362. iconName: 'subscript',
  114363. icon: [512, 512, [], "f12c", "M496 448h-16V304a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 400 352h16v96h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM336 64h-67a16 16 0 0 0-13.14 6.87l-79.9 115-79.9-115A16 16 0 0 0 83 64H16A16 16 0 0 0 0 80v48a16 16 0 0 0 16 16h33.48l77.81 112-77.81 112H16a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h67a16 16 0 0 0 13.14-6.87l79.9-115 79.9 115A16 16 0 0 0 269 448h67a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-33.48l-77.81-112 77.81-112H336a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16z"]
  114364. };
  114365. var faSubway = {
  114366. prefix: 'fas',
  114367. iconName: 'subway',
  114368. icon: [448, 512, [], "f239", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zM200 232V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm200 0V120c0-13.255-10.745-24-24-24H272c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h104c13.255 0 24-10.745 24-24zm-48 56c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm-256 0c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"]
  114369. };
  114370. var faSuitcase = {
  114371. prefix: 'fas',
  114372. iconName: 'suitcase',
  114373. icon: [512, 512, [], "f0f2", "M128 480h256V80c0-26.5-21.5-48-48-48H176c-26.5 0-48 21.5-48 48v400zm64-384h128v32H192V96zm320 80v256c0 26.5-21.5 48-48 48h-48V128h48c26.5 0 48 21.5 48 48zM96 480H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h48v352z"]
  114374. };
  114375. var faSuitcaseRolling = {
  114376. prefix: 'fas',
  114377. iconName: 'suitcase-rolling',
  114378. icon: [384, 512, [], "f5c1", "M336 160H48c-26.51 0-48 21.49-48 48v224c0 26.51 21.49 48 48 48h16v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h128v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16h16c26.51 0 48-21.49 48-48V208c0-26.51-21.49-48-48-48zm-16 216c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zm0-96c0 4.42-3.58 8-8 8H72c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h240c4.42 0 8 3.58 8 8v16zM144 48h96v80h48V48c0-26.51-21.49-48-48-48h-96c-26.51 0-48 21.49-48 48v80h48V48z"]
  114379. };
  114380. var faSun = {
  114381. prefix: 'fas',
  114382. iconName: 'sun',
  114383. icon: [512, 512, [], "f185", "M256 160c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm246.4 80.5l-94.7-47.3 33.5-100.4c4.5-13.6-8.4-26.5-21.9-21.9l-100.4 33.5-47.4-94.8c-6.4-12.8-24.6-12.8-31 0l-47.3 94.7L92.7 70.8c-13.6-4.5-26.5 8.4-21.9 21.9l33.5 100.4-94.7 47.4c-12.8 6.4-12.8 24.6 0 31l94.7 47.3-33.5 100.5c-4.5 13.6 8.4 26.5 21.9 21.9l100.4-33.5 47.3 94.7c6.4 12.8 24.6 12.8 31 0l47.3-94.7 100.4 33.5c13.6 4.5 26.5-8.4 21.9-21.9l-33.5-100.4 94.7-47.3c13-6.5 13-24.7.2-31.1zm-155.9 106c-49.9 49.9-131.1 49.9-181 0-49.9-49.9-49.9-131.1 0-181 49.9-49.9 131.1-49.9 181 0 49.9 49.9 49.9 131.1 0 181z"]
  114384. };
  114385. var faSuperscript = {
  114386. prefix: 'fas',
  114387. iconName: 'superscript',
  114388. icon: [512, 512, [], "f12b", "M496 160h-16V16a16 16 0 0 0-16-16h-48a16 16 0 0 0-14.29 8.83l-16 32A16 16 0 0 0 400 64h16v96h-16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h96a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zM336 64h-67a16 16 0 0 0-13.14 6.87l-79.9 115-79.9-115A16 16 0 0 0 83 64H16A16 16 0 0 0 0 80v48a16 16 0 0 0 16 16h33.48l77.81 112-77.81 112H16a16 16 0 0 0-16 16v48a16 16 0 0 0 16 16h67a16 16 0 0 0 13.14-6.87l79.9-115 79.9 115A16 16 0 0 0 269 448h67a16 16 0 0 0 16-16v-48a16 16 0 0 0-16-16h-33.48l-77.81-112 77.81-112H336a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16z"]
  114389. };
  114390. var faSurprise = {
  114391. prefix: 'fas',
  114392. iconName: 'surprise',
  114393. icon: [496, 512, [], "f5c2", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zM136 208c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm112 208c-35.3 0-64-28.7-64-64s28.7-64 64-64 64 28.7 64 64-28.7 64-64 64zm80-176c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  114394. };
  114395. var faSwatchbook = {
  114396. prefix: 'fas',
  114397. iconName: 'swatchbook',
  114398. icon: [512, 512, [], "f5c3", "M434.66,167.71h0L344.5,77.36a31.83,31.83,0,0,0-45-.07h0l-.07.07L224,152.88V424L434.66,212.9A32,32,0,0,0,434.66,167.71ZM480,320H373.09L186.68,506.51c-2.06,2.07-4.5,3.58-6.68,5.49H480a32,32,0,0,0,32-32V352A32,32,0,0,0,480,320ZM192,32A32,32,0,0,0,160,0H32A32,32,0,0,0,0,32V416a96,96,0,0,0,192,0ZM96,440a24,24,0,1,1,24-24A24,24,0,0,1,96,440Zm32-184H64V192h64Zm0-128H64V64h64Z"]
  114399. };
  114400. var faSwimmer = {
  114401. prefix: 'fas',
  114402. iconName: 'swimmer',
  114403. icon: [640, 512, [], "f5c4", "M189.61 310.58c3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c16.02-14.77 34.5-22.58 53.46-22.58h16.3c18.96 0 37.45 7.81 53.46 22.58 3.54 3.26 15.27 9.42 34.39 9.42s30.86-6.16 34.39-9.42c14.86-13.71 31.88-21.12 49.39-22.16l-112.84-80.6 18-12.86c3.64-2.58 8.28-3.52 12.62-2.61l100.35 21.53c25.91 5.53 51.44-10.97 57-36.88 5.55-25.92-10.95-51.44-36.88-57L437.68 98.47c-30.73-6.58-63.02.12-88.56 18.38l-80.02 57.17c-10.38 7.39-19.36 16.44-26.72 26.94L173.75 299c5.47 3.23 10.82 6.93 15.86 11.58zM624 352h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 343.58 442.04 352 416 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 343.58 250.04 352 224 352s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 343.58 58.04 352 32 352H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-512-96c44.18 0 80-35.82 80-80s-35.82-80-80-80-80 35.82-80 80 35.82 80 80 80z"]
  114404. };
  114405. var faSwimmingPool = {
  114406. prefix: 'fas',
  114407. iconName: 'swimming-pool',
  114408. icon: [640, 512, [], "f5c5", "M624 416h-16c-26.04 0-45.8-8.42-56.09-17.9-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C461.8 407.58 442.04 416 416 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C269.8 407.58 250.04 416 224 416s-45.8-8.42-56.09-17.9c-8.9-8.21-19.66-14.1-31.77-14.1h-16.3c-12.11 0-22.87 5.89-31.77 14.1C77.8 407.58 58.04 416 32 416H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16c38.62 0 72.72-12.19 96-31.84 23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84s72.72-12.19 96-31.84c23.28 19.66 57.38 31.84 96 31.84h16c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-400-32v-96h192v96c19.12 0 30.86-6.16 34.39-9.42 9.17-8.46 19.2-14.34 29.61-18.07V128c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v96H224v-96c0-17.64 14.36-32 32-32s32 14.36 32 32v16c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-16c0-52.94-43.06-96-96-96s-96 43.06-96 96v228.5c10.41 3.73 20.44 9.62 29.61 18.07 3.53 3.27 15.27 9.43 34.39 9.43z"]
  114409. };
  114410. var faSynagogue = {
  114411. prefix: 'fas',
  114412. iconName: 'synagogue',
  114413. icon: [640, 512, [], "f69b", "M70 196.51L6.67 268.29A26.643 26.643 0 0 0 0 285.93V512h128V239.58l-38-43.07c-5.31-6.01-14.69-6.01-20 0zm563.33 71.78L570 196.51c-5.31-6.02-14.69-6.02-20 0l-38 43.07V512h128V285.93c0-6.5-2.37-12.77-6.67-17.64zM339.99 7.01c-11.69-9.35-28.29-9.35-39.98 0l-128 102.4A32.005 32.005 0 0 0 160 134.4V512h96v-92.57c0-31.88 21.78-61.43 53.25-66.55C349.34 346.35 384 377.13 384 416v96h96V134.4c0-9.72-4.42-18.92-12.01-24.99l-128-102.4zm52.07 215.55c1.98 3.15-.29 7.24-4 7.24h-38.94L324 269.79c-1.85 2.95-6.15 2.95-8 0l-25.12-39.98h-38.94c-3.72 0-5.98-4.09-4-7.24l19.2-30.56-19.2-30.56c-1.98-3.15.29-7.24 4-7.24h38.94l25.12-40c1.85-2.95 6.15-2.95 8 0l25.12 39.98h38.95c3.71 0 5.98 4.09 4 7.24L372.87 192l19.19 30.56z"]
  114414. };
  114415. var faSync = {
  114416. prefix: 'fas',
  114417. iconName: 'sync',
  114418. icon: [512, 512, [], "f021", "M440.65 12.57l4 82.77A247.16 247.16 0 0 0 255.83 8C134.73 8 33.91 94.92 12.29 209.82A12 12 0 0 0 24.09 224h49.05a12 12 0 0 0 11.67-9.26 175.91 175.91 0 0 1 317-56.94l-101.46-4.86a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12H500a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12h-47.37a12 12 0 0 0-11.98 12.57zM255.83 432a175.61 175.61 0 0 1-146-77.8l101.8 4.87a12 12 0 0 0 12.57-12v-47.4a12 12 0 0 0-12-12H12a12 12 0 0 0-12 12V500a12 12 0 0 0 12 12h47.35a12 12 0 0 0 12-12.6l-4.15-82.57A247.17 247.17 0 0 0 255.83 504c121.11 0 221.93-86.92 243.55-201.82a12 12 0 0 0-11.8-14.18h-49.05a12 12 0 0 0-11.67 9.26A175.86 175.86 0 0 1 255.83 432z"]
  114419. };
  114420. var faSyncAlt = {
  114421. prefix: 'fas',
  114422. iconName: 'sync-alt',
  114423. icon: [512, 512, [], "f2f1", "M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"]
  114424. };
  114425. var faSyringe = {
  114426. prefix: 'fas',
  114427. iconName: 'syringe',
  114428. icon: [512, 512, [], "f48e", "M201.5 174.8l55.7 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-55.7-55.8-45.3 45.3 55.8 55.8c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L111 265.2l-26.4 26.4c-17.3 17.3-25.6 41.1-23 65.4l7.1 63.6L2.3 487c-3.1 3.1-3.1 8.2 0 11.3l11.3 11.3c3.1 3.1 8.2 3.1 11.3 0l66.3-66.3 63.6 7.1c23.9 2.6 47.9-5.4 65.4-23l181.9-181.9-135.7-135.7-64.9 65zm308.2-93.3L430.5 2.3c-3.1-3.1-8.2-3.1-11.3 0l-11.3 11.3c-3.1 3.1-3.1 8.2 0 11.3l28.3 28.3-45.3 45.3-56.6-56.6-17-17c-3.1-3.1-8.2-3.1-11.3 0l-33.9 33.9c-3.1 3.1-3.1 8.2 0 11.3l17 17L424.8 223l17 17c3.1 3.1 8.2 3.1 11.3 0l33.9-34c3.1-3.1 3.1-8.2 0-11.3l-73.5-73.5 45.3-45.3 28.3 28.3c3.1 3.1 8.2 3.1 11.3 0l11.3-11.3c3.1-3.2 3.1-8.2 0-11.4z"]
  114429. };
  114430. var faTable = {
  114431. prefix: 'fas',
  114432. iconName: 'table',
  114433. icon: [512, 512, [], "f0ce", "M464 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h416c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM224 416H64v-96h160v96zm0-160H64v-96h160v96zm224 160H288v-96h160v96zm0-160H288v-96h160v96z"]
  114434. };
  114435. var faTableTennis = {
  114436. prefix: 'fas',
  114437. iconName: 'table-tennis',
  114438. icon: [512, 512, [], "f45d", "M496.2 296.5C527.7 218.7 512 126.2 449 63.1 365.1-21 229-21 145.1 63.1l-56 56.1 211.5 211.5c46.1-62.1 131.5-77.4 195.6-34.2zm-217.9 79.7L57.9 155.9c-27.3 45.3-21.7 105 17.3 144.1l34.5 34.6L6.7 424c-8.6 7.5-9.1 20.7-1 28.8l53.4 53.5c8 8.1 21.2 7.6 28.7-1L177.1 402l35.7 35.7c19.7 19.7 44.6 30.5 70.3 33.3-7.1-17-11-35.6-11-55.1-.1-13.8 2.5-27 6.2-39.7zM416 320c-53 0-96 43-96 96s43 96 96 96 96-43 96-96-43-96-96-96z"]
  114439. };
  114440. var faTablet = {
  114441. prefix: 'fas',
  114442. iconName: 'tablet',
  114443. icon: [448, 512, [], "f10a", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32z"]
  114444. };
  114445. var faTabletAlt = {
  114446. prefix: 'fas',
  114447. iconName: 'tablet-alt',
  114448. icon: [448, 512, [], "f3fa", "M400 0H48C21.5 0 0 21.5 0 48v416c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM224 480c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm176-108c0 6.6-5.4 12-12 12H60c-6.6 0-12-5.4-12-12V60c0-6.6 5.4-12 12-12h328c6.6 0 12 5.4 12 12v312z"]
  114449. };
  114450. var faTablets = {
  114451. prefix: 'fas',
  114452. iconName: 'tablets',
  114453. icon: [640, 512, [], "f490", "M160 192C78.9 192 12.5 250.5.1 326.7c-.8 4.8 3.3 9.3 8.3 9.3h303.3c5 0 9.1-4.5 8.3-9.3C307.5 250.5 241.1 192 160 192zm151.6 176H8.4c-5 0-9.1 4.5-8.3 9.3C12.5 453.5 78.9 512 160 512s147.5-58.5 159.9-134.7c.8-4.8-3.3-9.3-8.3-9.3zM593.4 46.6c-56.5-56.5-144.2-61.4-206.9-16-4 2.9-4.3 8.9-.8 12.3L597 254.3c3.5 3.5 9.5 3.2 12.3-.8 45.5-62.7 40.6-150.4-15.9-206.9zM363 65.7c-3.5-3.5-9.5-3.2-12.3.8-45.4 62.7-40.5 150.4 15.9 206.9 56.5 56.5 144.2 61.4 206.9 15.9 4-2.9 4.3-8.9.8-12.3L363 65.7z"]
  114454. };
  114455. var faTachometerAlt = {
  114456. prefix: 'fas',
  114457. iconName: 'tachometer-alt',
  114458. icon: [576, 512, [], "f3fd", "M288 32C128.94 32 0 160.94 0 320c0 52.8 14.25 102.26 39.06 144.8 5.61 9.62 16.3 15.2 27.44 15.2h443c11.14 0 21.83-5.58 27.44-15.2C561.75 422.26 576 372.8 576 320c0-159.06-128.94-288-288-288zm0 64c14.71 0 26.58 10.13 30.32 23.65-1.11 2.26-2.64 4.23-3.45 6.67l-9.22 27.67c-5.13 3.49-10.97 6.01-17.64 6.01-17.67 0-32-14.33-32-32S270.33 96 288 96zM96 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm48-160c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm246.77-72.41l-61.33 184C343.13 347.33 352 364.54 352 384c0 11.72-3.38 22.55-8.88 32H232.88c-5.5-9.45-8.88-20.28-8.88-32 0-33.94 26.5-61.43 59.9-63.59l61.34-184.01c4.17-12.56 17.73-19.45 30.36-15.17 12.57 4.19 19.35 17.79 15.17 30.36zm14.66 57.2l15.52-46.55c3.47-1.29 7.13-2.23 11.05-2.23 17.67 0 32 14.33 32 32s-14.33 32-32 32c-11.38-.01-20.89-6.28-26.57-15.22zM480 384c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  114459. };
  114460. var faTag = {
  114461. prefix: 'fas',
  114462. iconName: 'tag',
  114463. icon: [512, 512, [], "f02b", "M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"]
  114464. };
  114465. var faTags = {
  114466. prefix: 'fas',
  114467. iconName: 'tags',
  114468. icon: [640, 512, [], "f02c", "M497.941 225.941L286.059 14.059A48 48 0 0 0 252.118 0H48C21.49 0 0 21.49 0 48v204.118a48 48 0 0 0 14.059 33.941l211.882 211.882c18.744 18.745 49.136 18.746 67.882 0l204.118-204.118c18.745-18.745 18.745-49.137 0-67.882zM112 160c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm513.941 133.823L421.823 497.941c-18.745 18.745-49.137 18.745-67.882 0l-.36-.36L527.64 323.522c16.999-16.999 26.36-39.6 26.36-63.64s-9.362-46.641-26.36-63.64L331.397 0h48.721a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882z"]
  114469. };
  114470. var faTape = {
  114471. prefix: 'fas',
  114472. iconName: 'tape',
  114473. icon: [640, 512, [], "f4db", "M224 192c-35.3 0-64 28.7-64 64s28.7 64 64 64 64-28.7 64-64-28.7-64-64-64zm400 224H380.6c41.5-40.7 67.4-97.3 67.4-160 0-123.7-100.3-224-224-224S0 132.3 0 256s100.3 224 224 224h400c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400-64c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"]
  114474. };
  114475. var faTasks = {
  114476. prefix: 'fas',
  114477. iconName: 'tasks',
  114478. icon: [512, 512, [], "f0ae", "M139.61 35.5a12 12 0 0 0-17 0L58.93 98.81l-22.7-22.12a12 12 0 0 0-17 0L3.53 92.41a12 12 0 0 0 0 17l47.59 47.4a12.78 12.78 0 0 0 17.61 0l15.59-15.62L156.52 69a12.09 12.09 0 0 0 .09-17zm0 159.19a12 12 0 0 0-17 0l-63.68 63.72-22.7-22.1a12 12 0 0 0-17 0L3.53 252a12 12 0 0 0 0 17L51 316.5a12.77 12.77 0 0 0 17.6 0l15.7-15.69 72.2-72.22a12 12 0 0 0 .09-16.9zM64 368c-26.49 0-48.59 21.5-48.59 48S37.53 464 64 464a48 48 0 0 0 0-96zm432 16H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0-320H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16V80a16 16 0 0 0-16-16zm0 160H208a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h288a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  114479. };
  114480. var faTaxi = {
  114481. prefix: 'fas',
  114482. iconName: 'taxi',
  114483. icon: [512, 512, [], "f1ba", "M462 241.64l-22-84.84c-9.6-35.2-41.6-60.8-76.8-60.8H352V64c0-17.67-14.33-32-32-32H192c-17.67 0-32 14.33-32 32v32h-11.2c-35.2 0-67.2 25.6-76.8 60.8l-22 84.84C21.41 248.04 0 273.47 0 304v48c0 23.63 12.95 44.04 32 55.12V448c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-32h256v32c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32v-40.88c19.05-11.09 32-31.5 32-55.12v-48c0-30.53-21.41-55.96-50-62.36zM96 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm20.55-112l17.2-66.36c2.23-8.16 9.59-13.64 15.06-13.64h214.4c5.47 0 12.83 5.48 14.85 12.86L395.45 240h-278.9zM416 352c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  114484. };
  114485. var faTeeth = {
  114486. prefix: 'fas',
  114487. iconName: 'teeth',
  114488. icon: [640, 512, [], "f62e", "M544 0H96C42.98 0 0 42.98 0 96v320c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96zM160 368c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm144 120c0 30.93-25.07 56-56 56s-56-25.07-56-56v-56c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v56zm0-120c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-88c0-30.93 25.07-56 56-56s56 25.07 56 56v88zm128 128c0 26.51-21.49 48-48 48s-48-21.49-48-48v-64c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v64zm0-128c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-64c0-26.51 21.49-48 48-48s48 21.49 48 48v64z"]
  114489. };
  114490. var faTeethOpen = {
  114491. prefix: 'fas',
  114492. iconName: 'teeth-open',
  114493. icon: [640, 512, [], "f62f", "M544 0H96C42.98 0 0 42.98 0 96v64c0 35.35 28.66 64 64 64h512c35.34 0 64-28.65 64-64V96c0-53.02-42.98-96-96-96zM160 176c0 8.84-7.16 16-16 16H80c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm144 0c0 8.84-7.16 16-16 16h-80c-8.84 0-16-7.16-16-16v-56c0-30.93 25.07-56 56-56s56 25.07 56 56v56zm128 0c0 8.84-7.16 16-16 16h-64c-8.84 0-16-7.16-16-16v-32c0-26.51 21.49-48 48-48s48 21.49 48 48v32zm0 144H64c-35.34 0-64 28.65-64 64v32c0 53.02 42.98 96 96 96h448c53.02 0 96-42.98 96-96v-32c0-35.35-28.66-64-64-64zm-416 80c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32zm144-8c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm144 0c0 30.93-25.07 56-56 56s-56-25.07-56-56v-24c0-8.84 7.16-16 16-16h80c8.84 0 16 7.16 16 16v24zm128 8c0 26.51-21.49 48-48 48s-48-21.49-48-48v-32c0-8.84 7.16-16 16-16h64c8.84 0 16 7.16 16 16v32z"]
  114494. };
  114495. var faTemperatureHigh = {
  114496. prefix: 'fas',
  114497. iconName: 'temperature-high',
  114498. icon: [512, 512, [], "f769", "M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V112c0-8.8-7.2-16-16-16s-16 7.2-16 16v210.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"]
  114499. };
  114500. var faTemperatureLow = {
  114501. prefix: 'fas',
  114502. iconName: 'temperature-low',
  114503. icon: [512, 512, [], "f76b", "M416 0c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96zm0 128c-17.7 0-32-14.3-32-32s14.3-32 32-32 32 14.3 32 32-14.3 32-32 32zm-160-16C256 50.1 205.9 0 144 0S32 50.1 32 112v166.5C12.3 303.2 0 334 0 368c0 79.5 64.5 144 144 144s144-64.5 144-144c0-34-12.3-64.9-32-89.5V112zM144 448c-44.1 0-80-35.9-80-80 0-25.5 12.2-48.9 32-63.8V112c0-26.5 21.5-48 48-48s48 21.5 48 48v192.2c19.8 14.8 32 38.3 32 63.8 0 44.1-35.9 80-80 80zm16-125.1V304c0-8.8-7.2-16-16-16s-16 7.2-16 16v18.9c-18.6 6.6-32 24.2-32 45.1 0 26.5 21.5 48 48 48s48-21.5 48-48c0-20.9-13.4-38.5-32-45.1z"]
  114504. };
  114505. var faTenge = {
  114506. prefix: 'fas',
  114507. iconName: 'tenge',
  114508. icon: [384, 512, [], "f7d7", "M372 160H12c-6.6 0-12 5.4-12 12v56c0 6.6 5.4 12 12 12h140v228c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12V240h140c6.6 0 12-5.4 12-12v-56c0-6.6-5.4-12-12-12zm0-128H12C5.4 32 0 37.4 0 44v56c0 6.6 5.4 12 12 12h360c6.6 0 12-5.4 12-12V44c0-6.6-5.4-12-12-12z"]
  114509. };
  114510. var faTerminal = {
  114511. prefix: 'fas',
  114512. iconName: 'terminal',
  114513. icon: [640, 512, [], "f120", "M257.981 272.971L63.638 467.314c-9.373 9.373-24.569 9.373-33.941 0L7.029 444.647c-9.357-9.357-9.375-24.522-.04-33.901L161.011 256 6.99 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L257.981 239.03c9.373 9.372 9.373 24.568 0 33.941zM640 456v-32c0-13.255-10.745-24-24-24H312c-13.255 0-24 10.745-24 24v32c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24z"]
  114514. };
  114515. var faTextHeight = {
  114516. prefix: 'fas',
  114517. iconName: 'text-height',
  114518. icon: [576, 512, [], "f034", "M304 32H16A16 16 0 0 0 0 48v96a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-32h56v304H80a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-40V112h56v32a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm256 336h-48V144h48c14.31 0 21.33-17.31 11.31-27.31l-80-80a16 16 0 0 0-22.62 0l-80 80C379.36 126 384.36 144 400 144h48v224h-48c-14.31 0-21.32 17.31-11.31 27.31l80 80a16 16 0 0 0 22.62 0l80-80C580.64 386 575.64 368 560 368z"]
  114519. };
  114520. var faTextWidth = {
  114521. prefix: 'fas',
  114522. iconName: 'text-width',
  114523. icon: [448, 512, [], "f035", "M432 32H16A16 16 0 0 0 0 48v80a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16v-16h120v112h-24a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16h-24V112h120v16a16 16 0 0 0 16 16h32a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zm-68.69 260.69C354 283.36 336 288.36 336 304v48H112v-48c0-14.31-17.31-21.32-27.31-11.31l-80 80a16 16 0 0 0 0 22.62l80 80C94 484.64 112 479.64 112 464v-48h224v48c0 14.31 17.31 21.33 27.31 11.31l80-80a16 16 0 0 0 0-22.62z"]
  114524. };
  114525. var faTh = {
  114526. prefix: 'fas',
  114527. iconName: 'th',
  114528. icon: [512, 512, [], "f00a", "M149.333 56v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zm181.334 240v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm32-240v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24zm-32 80V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.256 0 24.001-10.745 24.001-24zm-205.334 56H24c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm386.667-56H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm0 160H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H386.667c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zM181.333 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24z"]
  114529. };
  114530. var faThLarge = {
  114531. prefix: 'fas',
  114532. iconName: 'th-large',
  114533. icon: [512, 512, [], "f009", "M296 32h192c13.255 0 24 10.745 24 24v160c0 13.255-10.745 24-24 24H296c-13.255 0-24-10.745-24-24V56c0-13.255 10.745-24 24-24zm-80 0H24C10.745 32 0 42.745 0 56v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zM0 296v160c0 13.255 10.745 24 24 24h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zm296 184h192c13.255 0 24-10.745 24-24V296c0-13.255-10.745-24-24-24H296c-13.255 0-24 10.745-24 24v160c0 13.255 10.745 24 24 24z"]
  114534. };
  114535. var faThList = {
  114536. prefix: 'fas',
  114537. iconName: 'th-list',
  114538. icon: [512, 512, [], "f00b", "M149.333 216v80c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24v-80c0-13.255 10.745-24 24-24h101.333c13.255 0 24 10.745 24 24zM0 376v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H24c-13.255 0-24 10.745-24 24zM125.333 32H24C10.745 32 0 42.745 0 56v80c0 13.255 10.745 24 24 24h101.333c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24zm80 448H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24zm-24-424v80c0 13.255 10.745 24 24 24H488c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24zm24 264H488c13.255 0 24-10.745 24-24v-80c0-13.255-10.745-24-24-24H205.333c-13.255 0-24 10.745-24 24v80c0 13.255 10.745 24 24 24z"]
  114539. };
  114540. var faTheaterMasks = {
  114541. prefix: 'fas',
  114542. iconName: 'theater-masks',
  114543. icon: [640, 512, [], "f630", "M206.86 245.15c-35.88 10.45-59.95 41.2-57.53 74.1 11.4-12.72 28.81-23.7 49.9-30.92l7.63-43.18zM95.81 295L64.08 115.49c-.29-1.62.28-2.62.24-2.65 57.76-32.06 123.12-49.01 189.01-49.01 1.61 0 3.23.17 4.85.19 13.95-13.47 31.73-22.83 51.59-26 18.89-3.02 38.05-4.55 57.18-5.32-9.99-13.95-24.48-24.23-41.77-27C301.27 1.89 277.24 0 253.32 0 176.66 0 101.02 19.42 33.2 57.06 9.03 70.48-3.92 98.48 1.05 126.58l31.73 179.51c14.23 80.52 136.33 142.08 204.45 142.08 3.59 0 6.75-.46 10.01-.8-13.52-17.08-28.94-40.48-39.5-67.58-47.61-12.98-106.06-51.62-111.93-84.79zm97.55-137.46c-.73-4.12-2.23-7.87-4.07-11.4-8.25 8.91-20.67 15.75-35.32 18.32-14.65 2.58-28.67.4-39.48-5.17-.52 3.94-.64 7.98.09 12.1 3.84 21.7 24.58 36.19 46.34 32.37 21.75-3.82 36.28-24.52 32.44-46.22zM606.8 120.9c-88.98-49.38-191.43-67.41-291.98-51.35-27.31 4.36-49.08 26.26-54.04 54.36l-31.73 179.51c-15.39 87.05 95.28 196.27 158.31 207.35 63.03 11.09 204.47-53.79 219.86-140.84l31.73-179.51c4.97-28.11-7.98-56.11-32.15-69.52zm-273.24 96.8c3.84-21.7 24.58-36.19 46.34-32.36 21.76 3.83 36.28 24.52 32.45 46.22-.73 4.12-2.23 7.87-4.07 11.4-8.25-8.91-20.67-15.75-35.32-18.32-14.65-2.58-28.67-.4-39.48 5.17-.53-3.95-.65-7.99.08-12.11zm70.47 198.76c-55.68-9.79-93.52-59.27-89.04-112.9 20.6 25.54 56.21 46.17 99.49 53.78 43.28 7.61 83.82.37 111.93-16.6-14.18 51.94-66.71 85.51-122.38 75.72zm130.3-151.34c-8.25-8.91-20.68-15.75-35.33-18.32-14.65-2.58-28.67-.4-39.48 5.17-.52-3.94-.64-7.98.09-12.1 3.84-21.7 24.58-36.19 46.34-32.37 21.75 3.83 36.28 24.52 32.45 46.22-.73 4.13-2.23 7.88-4.07 11.4z"]
  114544. };
  114545. var faThermometer = {
  114546. prefix: 'fas',
  114547. iconName: 'thermometer',
  114548. icon: [512, 512, [], "f491", "M476.8 20.4c-37.5-30.7-95.5-26.3-131.9 10.2l-45.7 46 50.5 50.5c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.4-50.5-45.1 45.4 50.3 50.4c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0L209 167.4l-45.1 45.4L214 263c3.1 3.1 3.1 8.2 0 11.3l-11.3 11.3c-3.1 3.1-8.2 3.1-11.3 0l-50.1-50.2L96 281.1V382L7 471c-9.4 9.4-9.4 24.6 0 33.9 9.4 9.4 24.6 9.4 33.9 0l89-89h99.9L484 162.6c34.9-34.9 42.2-101.5-7.2-142.2z"]
  114549. };
  114550. var faThermometerEmpty = {
  114551. prefix: 'fas',
  114552. iconName: 'thermometer-empty',
  114553. icon: [256, 512, [], "f2cb", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-35.346 28.654-64 64-64s64 28.654 64 64zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]
  114554. };
  114555. var faThermometerFull = {
  114556. prefix: 'fas',
  114557. iconName: 'thermometer-full',
  114558. icon: [256, 512, [], "f2c7", "M224 96c0-53.019-42.981-96-96-96S32 42.981 32 96v203.347C12.225 321.756.166 351.136.002 383.333c-.359 70.303 56.787 128.176 127.089 128.664.299.002.61.003.909.003 70.698 0 128-57.304 128-128 0-32.459-12.088-62.09-32-84.653V96zm-96 368l-.576-.002c-43.86-.304-79.647-36.544-79.423-80.42.173-33.98 19.266-51.652 31.999-66.08V96c0-26.467 21.533-48 48-48s48 21.533 48 48v221.498c12.63 14.312 32 32.164 32 66.502 0 44.112-35.888 80-80 80zm64-80c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V96c0-17.673 14.327-32 32-32s32 14.327 32 32v232.583c19.124 11.068 32 31.732 32 55.417z"]
  114559. };
  114560. var faThermometerHalf = {
  114561. prefix: 'fas',
  114562. iconName: 'thermometer-half',
  114563. icon: [256, 512, [], "f2c9", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V224c0-17.673 14.327-32 32-32s32 14.327 32 32v104.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]
  114564. };
  114565. var faThermometerQuarter = {
  114566. prefix: 'fas',
  114567. iconName: 'thermometer-quarter',
  114568. icon: [256, 512, [], "f2ca", "M192 384c0 35.346-28.654 64-64 64s-64-28.654-64-64c0-23.685 12.876-44.349 32-55.417V288c0-17.673 14.327-32 32-32s32 14.327 32 32v40.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]
  114569. };
  114570. var faThermometerThreeQuarters = {
  114571. prefix: 'fas',
  114572. iconName: 'thermometer-three-quarters',
  114573. icon: [256, 512, [], "f2c8", "M192 384c0 35.346-28.654 64-64 64-35.346 0-64-28.654-64-64 0-23.685 12.876-44.349 32-55.417V160c0-17.673 14.327-32 32-32s32 14.327 32 32v168.583c19.124 11.068 32 31.732 32 55.417zm32-84.653c19.912 22.563 32 52.194 32 84.653 0 70.696-57.303 128-128 128-.299 0-.609-.001-.909-.003C56.789 511.509-.357 453.636.002 383.333.166 351.135 12.225 321.755 32 299.347V96c0-53.019 42.981-96 96-96s96 42.981 96 96v203.347zM208 384c0-34.339-19.37-52.19-32-66.502V96c0-26.467-21.533-48-48-48S80 69.533 80 96v221.498c-12.732 14.428-31.825 32.1-31.999 66.08-.224 43.876 35.563 80.116 79.423 80.42L128 464c44.112 0 80-35.888 80-80z"]
  114574. };
  114575. var faThumbsDown = {
  114576. prefix: 'fas',
  114577. iconName: 'thumbs-down',
  114578. icon: [512, 512, [], "f165", "M0 56v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V56c0-13.255-10.745-24-24-24H24C10.745 32 0 42.745 0 56zm40 200c0-13.255 10.745-24 24-24s24 10.745 24 24-10.745 24-24 24-24-10.745-24-24zm272 256c-20.183 0-29.485-39.293-33.931-57.795-5.206-21.666-10.589-44.07-25.393-58.902-32.469-32.524-49.503-73.967-89.117-113.111a11.98 11.98 0 0 1-3.558-8.521V59.901c0-6.541 5.243-11.878 11.783-11.998 15.831-.29 36.694-9.079 52.651-16.178C256.189 17.598 295.709.017 343.995 0h2.844c42.777 0 93.363.413 113.774 29.737 8.392 12.057 10.446 27.034 6.148 44.632 16.312 17.053 25.063 48.863 16.382 74.757 17.544 23.432 19.143 56.132 9.308 79.469l.11.11c11.893 11.949 19.523 31.259 19.439 49.197-.156 30.352-26.157 58.098-59.553 58.098H350.723C358.03 364.34 384 388.132 384 430.548 384 504 336 512 312 512z"]
  114579. };
  114580. var faThumbsUp = {
  114581. prefix: 'fas',
  114582. iconName: 'thumbs-up',
  114583. icon: [512, 512, [], "f164", "M104 224H24c-13.255 0-24 10.745-24 24v240c0 13.255 10.745 24 24 24h80c13.255 0 24-10.745 24-24V248c0-13.255-10.745-24-24-24zM64 472c-13.255 0-24-10.745-24-24s10.745-24 24-24 24 10.745 24 24-10.745 24-24 24zM384 81.452c0 42.416-25.97 66.208-33.277 94.548h101.723c33.397 0 59.397 27.746 59.553 58.098.084 17.938-7.546 37.249-19.439 49.197l-.11.11c9.836 23.337 8.237 56.037-9.308 79.469 8.681 25.895-.069 57.704-16.382 74.757 4.298 17.598 2.244 32.575-6.148 44.632C440.202 511.587 389.616 512 346.839 512l-2.845-.001c-48.287-.017-87.806-17.598-119.56-31.725-15.957-7.099-36.821-15.887-52.651-16.178-6.54-.12-11.783-5.457-11.783-11.998v-213.77c0-3.2 1.282-6.271 3.558-8.521 39.614-39.144 56.648-80.587 89.117-113.111 14.804-14.832 20.188-37.236 25.393-58.902C282.515 39.293 291.817 0 312 0c24 0 72 8 72 81.452z"]
  114584. };
  114585. var faThumbtack = {
  114586. prefix: 'fas',
  114587. iconName: 'thumbtack',
  114588. icon: [384, 512, [], "f08d", "M298.028 214.267L285.793 96H328c13.255 0 24-10.745 24-24V24c0-13.255-10.745-24-24-24H56C42.745 0 32 10.745 32 24v48c0 13.255 10.745 24 24 24h42.207L85.972 214.267C37.465 236.82 0 277.261 0 328c0 13.255 10.745 24 24 24h136v104.007c0 1.242.289 2.467.845 3.578l24 48c2.941 5.882 11.364 5.893 14.311 0l24-48a8.008 8.008 0 0 0 .845-3.578V352h136c13.255 0 24-10.745 24-24-.001-51.183-37.983-91.42-85.973-113.733z"]
  114589. };
  114590. var faTicketAlt = {
  114591. prefix: 'fas',
  114592. iconName: 'ticket-alt',
  114593. icon: [576, 512, [], "f3ff", "M128 160h320v192H128V160zm400 96c0 26.51 21.49 48 48 48v96c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48v-96c26.51 0 48-21.49 48-48s-21.49-48-48-48v-96c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v96c-26.51 0-48 21.49-48 48zm-48-104c0-13.255-10.745-24-24-24H120c-13.255 0-24 10.745-24 24v208c0 13.255 10.745 24 24 24h336c13.255 0 24-10.745 24-24V152z"]
  114594. };
  114595. var faTimes = {
  114596. prefix: 'fas',
  114597. iconName: 'times',
  114598. icon: [352, 512, [], "f00d", "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"]
  114599. };
  114600. var faTimesCircle = {
  114601. prefix: 'fas',
  114602. iconName: 'times-circle',
  114603. icon: [512, 512, [], "f057", "M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"]
  114604. };
  114605. var faTint = {
  114606. prefix: 'fas',
  114607. iconName: 'tint',
  114608. icon: [352, 512, [], "f043", "M205.22 22.09c-7.94-28.78-49.44-30.12-58.44 0C100.01 179.85 0 222.72 0 333.91 0 432.35 78.72 512 176 512s176-79.65 176-178.09c0-111.75-99.79-153.34-146.78-311.82zM176 448c-61.75 0-112-50.25-112-112 0-8.84 7.16-16 16-16s16 7.16 16 16c0 44.11 35.89 80 80 80 8.84 0 16 7.16 16 16s-7.16 16-16 16z"]
  114609. };
  114610. var faTintSlash = {
  114611. prefix: 'fas',
  114612. iconName: 'tint-slash',
  114613. icon: [640, 512, [], "f5c7", "M633.82 458.1L494.97 350.78c.52-5.57 1.03-11.16 1.03-16.87 0-111.76-99.79-153.34-146.78-311.82-7.94-28.78-49.44-30.12-58.44 0-15.52 52.34-36.87 91.96-58.49 125.68L45.47 3.37C38.49-2.05 28.43-.8 23.01 6.18L3.37 31.45C-2.05 38.42-.8 48.47 6.18 53.9l588.36 454.73c6.98 5.43 17.03 4.17 22.46-2.81l19.64-25.27c5.41-6.97 4.16-17.02-2.82-22.45zM144 333.91C144 432.35 222.72 512 320 512c44.71 0 85.37-16.96 116.4-44.7L162.72 255.78c-11.41 23.5-18.72 48.35-18.72 78.13z"]
  114614. };
  114615. var faTired = {
  114616. prefix: 'fas',
  114617. iconName: 'tired',
  114618. icon: [496, 512, [], "f5c8", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm33.8 189.7l80-48c11.6-6.9 24 7.7 15.4 18L343.6 208l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM248 288c51.9 0 115.3 43.8 123.2 106.7 1.7 13.6-8 24.6-17.7 20.4-25.9-11.1-64.4-17.4-105.5-17.4s-79.6 6.3-105.5 17.4c-9.8 4.2-19.4-7-17.7-20.4C132.7 331.8 196.1 288 248 288z"]
  114619. };
  114620. var faToggleOff = {
  114621. prefix: 'fas',
  114622. iconName: 'toggle-off',
  114623. icon: [576, 512, [], "f204", "M384 64H192C85.961 64 0 149.961 0 256s85.961 192 192 192h192c106.039 0 192-85.961 192-192S490.039 64 384 64zM64 256c0-70.741 57.249-128 128-128 70.741 0 128 57.249 128 128 0 70.741-57.249 128-128 128-70.741 0-128-57.249-128-128zm320 128h-48.905c65.217-72.858 65.236-183.12 0-256H384c70.741 0 128 57.249 128 128 0 70.74-57.249 128-128 128z"]
  114624. };
  114625. var faToggleOn = {
  114626. prefix: 'fas',
  114627. iconName: 'toggle-on',
  114628. icon: [576, 512, [], "f205", "M384 64H192C86 64 0 150 0 256s86 192 192 192h192c106 0 192-86 192-192S490 64 384 64zm0 320c-70.8 0-128-57.3-128-128 0-70.8 57.3-128 128-128 70.8 0 128 57.3 128 128 0 70.8-57.3 128-128 128z"]
  114629. };
  114630. var faToilet = {
  114631. prefix: 'fas',
  114632. iconName: 'toilet',
  114633. icon: [384, 512, [], "f7d8", "M368 48c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16H16C7.2 0 0 7.2 0 16v16c0 8.8 7.2 16 16 16h16v156.7C11.8 214.8 0 226.9 0 240c0 67.2 34.6 126.2 86.8 160.5l-21.4 70.2C59.1 491.2 74.5 512 96 512h192c21.5 0 36.9-20.8 30.6-41.3l-21.4-70.2C349.4 366.2 384 307.2 384 240c0-13.1-11.8-25.2-32-35.3V48h16zM80 72c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H88c-4.4 0-8-3.6-8-8V72zm112 200c-77.1 0-139.6-14.3-139.6-32s62.5-32 139.6-32 139.6 14.3 139.6 32-62.5 32-139.6 32z"]
  114634. };
  114635. var faToiletPaper = {
  114636. prefix: 'fas',
  114637. iconName: 'toilet-paper',
  114638. icon: [576, 512, [], "f71e", "M128 0C74.98 0 32 85.96 32 192v172.07c0 41.12-9.8 62.77-31.17 126.87C-2.62 501.3 5.09 512 16.01 512h280.92c13.77 0 26-8.81 30.36-21.88 12.83-38.48 24.71-72.4 24.71-126.05V192c0-83.6 23.67-153.52 60.44-192H128zM96 224c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zm64 0c-8.84 0-16-7.16-16-16s7.16-16 16-16 16 7.16 16 16-7.16 16-16 16zM480 0c-53.02 0-96 85.96-96 192s42.98 192 96 192 96-85.96 96-192S533.02 0 480 0zm0 256c-17.67 0-32-28.65-32-64s14.33-64 32-64 32 28.65 32 64-14.33 64-32 64z"]
  114639. };
  114640. var faToiletPaperSlash = {
  114641. prefix: 'fas',
  114642. iconName: 'toilet-paper-slash',
  114643. icon: [640, 512, [], "e072", "M64,192V364.13c0,41.12-9.75,62.75-31.12,126.87A16,16,0,0,0,48,512H328.86a31.87,31.87,0,0,0,30.38-21.87c9.31-27.83,18-53.35,22.18-85.55l-316-244.25C64.53,170.66,64,181.19,64,192ZM633.82,458.09l-102-78.81C575.28,360.91,608,284.32,608,192,608,86,565,0,512,0s-96,86-96,192c0,42,7,80.4,18.43,112L384,265V192c0-83.62,23.63-153.5,60.5-192H160c-23.33,0-44.63,16.83-61.26,44.53L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.45A16,16,0,0,0,6.18,53.91L594.54,508.63A16,16,0,0,0,617,505.81l19.64-25.26A16,16,0,0,0,633.82,458.09ZM512,256c-17.63,0-32-28.62-32-64s14.37-64,32-64,32,28.63,32,64S529.62,256,512,256Z"]
  114644. };
  114645. var faToolbox = {
  114646. prefix: 'fas',
  114647. iconName: 'toolbox',
  114648. icon: [512, 512, [], "f552", "M502.63 214.63l-45.25-45.25c-6-6-14.14-9.37-22.63-9.37H384V80c0-26.51-21.49-48-48-48H176c-26.51 0-48 21.49-48 48v80H77.25c-8.49 0-16.62 3.37-22.63 9.37L9.37 214.63c-6 6-9.37 14.14-9.37 22.63V320h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-16c0-8.84 7.16-16 16-16h32c8.84 0 16 7.16 16 16v16h128v-82.75c0-8.48-3.37-16.62-9.37-22.62zM320 160H192V96h128v64zm64 208c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H192v16c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-16H0v96c0 17.67 14.33 32 32 32h448c17.67 0 32-14.33 32-32v-96H384v16z"]
  114649. };
  114650. var faTools = {
  114651. prefix: 'fas',
  114652. iconName: 'tools',
  114653. icon: [512, 512, [], "f7d9", "M501.1 395.7L384 278.6c-23.1-23.1-57.6-27.6-85.4-13.9L192 158.1V96L64 0 0 64l96 128h62.1l106.6 106.6c-13.6 27.8-9.2 62.3 13.9 85.4l117.1 117.1c14.6 14.6 38.2 14.6 52.7 0l52.7-52.7c14.5-14.6 14.5-38.2 0-52.7zM331.7 225c28.3 0 54.9 11 74.9 31l19.4 19.4c15.8-6.9 30.8-16.5 43.8-29.5 37.1-37.1 49.7-89.3 37.9-136.7-2.2-9-13.5-12.1-20.1-5.5l-74.4 74.4-67.9-11.3L334 98.9l74.4-74.4c6.6-6.6 3.4-17.9-5.7-20.2-47.4-11.7-99.6.9-136.6 37.9-28.5 28.5-41.9 66.1-41.2 103.6l82.1 82.1c8.1-1.9 16.5-2.9 24.7-2.9zm-103.9 82l-56.7-56.7L18.7 402.8c-25 25-25 65.5 0 90.5s65.5 25 90.5 0l123.6-123.6c-7.6-19.9-9.9-41.6-5-62.7zM64 472c-13.2 0-24-10.8-24-24 0-13.3 10.7-24 24-24s24 10.7 24 24c0 13.2-10.7 24-24 24z"]
  114654. };
  114655. var faTooth = {
  114656. prefix: 'fas',
  114657. iconName: 'tooth',
  114658. icon: [448, 512, [], "f5c9", "M443.98 96.25c-11.01-45.22-47.11-82.06-92.01-93.72-32.19-8.36-63 5.1-89.14 24.33-3.25 2.39-6.96 3.73-10.5 5.48l28.32 18.21c7.42 4.77 9.58 14.67 4.8 22.11-4.46 6.95-14.27 9.86-22.11 4.8L162.83 12.84c-20.7-10.85-43.38-16.4-66.81-10.31-44.9 11.67-81 48.5-92.01 93.72-10.13 41.62-.42 80.81 21.5 110.43 23.36 31.57 32.68 68.66 36.29 107.35 4.4 47.16 10.33 94.16 20.94 140.32l7.8 33.95c3.19 13.87 15.49 23.7 29.67 23.7 13.97 0 26.15-9.55 29.54-23.16l34.47-138.42c4.56-18.32 20.96-31.16 39.76-31.16s35.2 12.85 39.76 31.16l34.47 138.42c3.39 13.61 15.57 23.16 29.54 23.16 14.18 0 26.48-9.83 29.67-23.7l7.8-33.95c10.61-46.15 16.53-93.16 20.94-140.32 3.61-38.7 12.93-75.78 36.29-107.35 21.95-29.61 31.66-68.8 21.53-110.43z"]
  114659. };
  114660. var faTorah = {
  114661. prefix: 'fas',
  114662. iconName: 'torah',
  114663. icon: [640, 512, [], "f6a0", "M320.05 366.48l17.72-29.64h-35.46zm99.21-166H382.4l18.46 30.82zM48 0C21.49 0 0 14.33 0 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32C96 14.33 74.51 0 48 0zm172.74 311.5h36.85l-18.46-30.82zm161.71 0h36.86l-18.45-30.8zM128 464h384V48H128zm66.77-278.13a21.22 21.22 0 0 1 18.48-10.71h59.45l29.13-48.71a21.13 21.13 0 0 1 18.22-10.37A20.76 20.76 0 0 1 338 126.29l29.25 48.86h59.52a21.12 21.12 0 0 1 18.1 32L415.63 256 445 305a20.69 20.69 0 0 1 .24 21.12 21.25 21.25 0 0 1-18.48 10.72h-59.47l-29.13 48.7a21.13 21.13 0 0 1-18.16 10.4 20.79 20.79 0 0 1-18-10.22l-29.25-48.88h-59.5a21.11 21.11 0 0 1-18.1-32L224.36 256 195 207a20.7 20.7 0 0 1-.23-21.13zM592 0c-26.51 0-48 14.33-48 32v448c0 17.67 21.49 32 48 32s48-14.33 48-32V32c0-17.67-21.49-32-48-32zM320 145.53l-17.78 29.62h35.46zm-62.45 55h-36.81l18.44 30.8zm29.58 111h65.79L386.09 256l-33.23-55.52h-65.79L253.9 256z"]
  114664. };
  114665. var faToriiGate = {
  114666. prefix: 'fas',
  114667. iconName: 'torii-gate',
  114668. icon: [512, 512, [], "f6a1", "M376.45 32h-240.9A303.17 303.17 0 0 1 0 0v96c0 17.67 14.33 32 32 32h32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h48v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h256v240c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16V256h48c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16h-48v-64h32c17.67 0 32-14.33 32-32V0a303.17 303.17 0 0 1-135.55 32zM128 128h96v64h-96v-64zm256 64h-96v-64h96v64z"]
  114669. };
  114670. var faTractor = {
  114671. prefix: 'fas',
  114672. iconName: 'tractor',
  114673. icon: [640, 512, [], "f722", "M528 336c-48.6 0-88 39.4-88 88s39.4 88 88 88 88-39.4 88-88-39.4-88-88-88zm0 112c-13.23 0-24-10.77-24-24s10.77-24 24-24 24 10.77 24 24-10.77 24-24 24zm80-288h-64v-40.2c0-14.12 4.7-27.76 13.15-38.84 4.42-5.8 3.55-14.06-1.32-19.49L534.2 37.3c-6.66-7.45-18.32-6.92-24.7.78C490.58 60.9 480 89.81 480 119.8V160H377.67L321.58 29.14A47.914 47.914 0 0 0 277.45 0H144c-26.47 0-48 21.53-48 48v146.52c-8.63-6.73-20.96-6.46-28.89 1.47L36 227.1c-8.59 8.59-8.59 22.52 0 31.11l5.06 5.06c-4.99 9.26-8.96 18.82-11.91 28.72H22c-12.15 0-22 9.85-22 22v44c0 12.15 9.85 22 22 22h7.14c2.96 9.91 6.92 19.46 11.91 28.73l-5.06 5.06c-8.59 8.59-8.59 22.52 0 31.11L67.1 476c8.59 8.59 22.52 8.59 31.11 0l5.06-5.06c9.26 4.99 18.82 8.96 28.72 11.91V490c0 12.15 9.85 22 22 22h44c12.15 0 22-9.85 22-22v-7.14c9.9-2.95 19.46-6.92 28.72-11.91l5.06 5.06c8.59 8.59 22.52 8.59 31.11 0l31.11-31.11c8.59-8.59 8.59-22.52 0-31.11l-5.06-5.06c4.99-9.26 8.96-18.82 11.91-28.72H330c12.15 0 22-9.85 22-22v-6h80.54c21.91-28.99 56.32-48 95.46-48 18.64 0 36.07 4.61 51.8 12.2l50.82-50.82c6-6 9.37-14.14 9.37-22.63V192c.01-17.67-14.32-32-31.99-32zM176 416c-44.18 0-80-35.82-80-80s35.82-80 80-80 80 35.82 80 80-35.82 80-80 80zm22-256h-38V64h106.89l41.15 96H198z"]
  114674. };
  114675. var faTrademark = {
  114676. prefix: 'fas',
  114677. iconName: 'trademark',
  114678. icon: [640, 512, [], "f25c", "M260.6 96H12c-6.6 0-12 5.4-12 12v43.1c0 6.6 5.4 12 12 12h85.1V404c0 6.6 5.4 12 12 12h54.3c6.6 0 12-5.4 12-12V163.1h85.1c6.6 0 12-5.4 12-12V108c.1-6.6-5.3-12-11.9-12zM640 403l-24-296c-.5-6.2-5.7-11-12-11h-65.4c-5.1 0-9.7 3.3-11.3 8.1l-43.8 127.1c-7.2 20.6-16.1 52.8-16.1 52.8h-.9s-8.9-32.2-16.1-52.8l-43.8-127.1c-1.7-4.8-6.2-8.1-11.3-8.1h-65.4c-6.2 0-11.4 4.8-12 11l-24.4 296c-.6 7 4.9 13 12 13H360c6.3 0 11.5-4.9 12-11.2l9.1-132.9c1.8-24.2 0-53.7 0-53.7h.9s10.7 33.6 17.9 53.7l30.7 84.7c1.7 4.7 6.2 7.9 11.3 7.9h50.3c5.1 0 9.6-3.2 11.3-7.9l30.7-84.7c7.2-20.1 17.9-53.7 17.9-53.7h.9s-1.8 29.5 0 53.7l9.1 132.9c.4 6.3 5.7 11.2 12 11.2H628c7 0 12.5-6 12-13z"]
  114679. };
  114680. var faTrafficLight = {
  114681. prefix: 'fas',
  114682. iconName: 'traffic-light',
  114683. icon: [384, 512, [], "f637", "M384 192h-64v-37.88c37.2-13.22 64-48.38 64-90.12h-64V32c0-17.67-14.33-32-32-32H96C78.33 0 64 14.33 64 32v32H0c0 41.74 26.8 76.9 64 90.12V192H0c0 41.74 26.8 76.9 64 90.12V320H0c0 42.84 28.25 78.69 66.99 91.05C79.42 468.72 130.6 512 192 512s112.58-43.28 125.01-100.95C355.75 398.69 384 362.84 384 320h-64v-37.88c37.2-13.22 64-48.38 64-90.12zM192 416c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm0-128c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"]
  114684. };
  114685. var faTrailer = {
  114686. prefix: 'fas',
  114687. iconName: 'trailer',
  114688. icon: [640, 512, [], "e041", "M624,320H544V80a16,16,0,0,0-16-16H16A16,16,0,0,0,0,80V368a16,16,0,0,0,16,16H65.61c7.83-54.21,54-96,110.39-96s102.56,41.79,110.39,96H624a16,16,0,0,0,16-16V336A16,16,0,0,0,624,320ZM96,243.68a176.29,176.29,0,0,0-32,20.71V136a8,8,0,0,1,8-8H88a8,8,0,0,1,8,8Zm96-18.54c-5.31-.49-10.57-1.14-16-1.14s-10.69.65-16,1.14V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm96,39.25a176.29,176.29,0,0,0-32-20.71V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8ZM384,320H352V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm96,0H448V136a8,8,0,0,1,8-8h16a8,8,0,0,1,8,8Zm-304,0a80,80,0,1,0,80,80A80,80,0,0,0,176,320Zm0,112a32,32,0,1,1,32-32A32,32,0,0,1,176,432Z"]
  114689. };
  114690. var faTrain = {
  114691. prefix: 'fas',
  114692. iconName: 'train',
  114693. icon: [448, 512, [], "f238", "M448 96v256c0 51.815-61.624 96-130.022 96l62.98 49.721C386.905 502.417 383.562 512 376 512H72c-7.578 0-10.892-9.594-4.957-14.279L130.022 448C61.82 448 0 403.954 0 352V96C0 42.981 64 0 128 0h192c65 0 128 42.981 128 96zm-48 136V120c0-13.255-10.745-24-24-24H72c-13.255 0-24 10.745-24 24v112c0 13.255 10.745 24 24 24h304c13.255 0 24-10.745 24-24zm-176 64c-30.928 0-56 25.072-56 56s25.072 56 56 56 56-25.072 56-56-25.072-56-56-56z"]
  114694. };
  114695. var faTram = {
  114696. prefix: 'fas',
  114697. iconName: 'tram',
  114698. icon: [512, 512, [], "f7da", "M288 64c17.7 0 32-14.3 32-32S305.7 0 288 0s-32 14.3-32 32 14.3 32 32 32zm223.5-12.1c-2.3-8.6-11-13.6-19.6-11.3l-480 128c-8.5 2.3-13.6 11-11.3 19.6C2.5 195.3 8.9 200 16 200c1.4 0 2.8-.2 4.1-.5L240 140.8V224H64c-17.7 0-32 14.3-32 32v224c0 17.7 14.3 32 32 32h384c17.7 0 32-14.3 32-32V256c0-17.7-14.3-32-32-32H272v-91.7l228.1-60.8c8.6-2.3 13.6-11.1 11.4-19.6zM176 384H80v-96h96v96zm160-96h96v96h-96v-96zm-32 0v96h-96v-96h96zM192 96c17.7 0 32-14.3 32-32s-14.3-32-32-32-32 14.3-32 32 14.3 32 32 32z"]
  114699. };
  114700. var faTransgender = {
  114701. prefix: 'fas',
  114702. iconName: 'transgender',
  114703. icon: [384, 512, [], "f224", "M372 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C198.5 104.1 172.2 96 144 96 64.5 96 0 160.5 0 240c0 68.5 47.9 125.9 112 140.4V408H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM144 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  114704. };
  114705. var faTransgenderAlt = {
  114706. prefix: 'fas',
  114707. iconName: 'transgender-alt',
  114708. icon: [480, 512, [], "f225", "M468 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-80.7 80.7C294.5 104.1 268.2 96 240 96c-28.2 0-54.5 8.1-76.7 22.1l-16.5-16.5 19.8-19.8c4.7-4.7 4.7-12.3 0-17l-28.3-28.3c-4.7-4.7-12.3-4.7-17 0l-19.8 19.8-19-19 16.9-16.9C107.1 12.9 101.7 0 91 0H12C5.4 0 0 5.4 0 12v79c0 10.7 12.9 16 20.5 8.5l16.9-16.9 19 19-19.8 19.8c-4.7 4.7-4.7 12.3 0 17l28.3 28.3c4.7 4.7 12.3 4.7 17 0l19.8-19.8 16.5 16.5C104.1 185.5 96 211.8 96 240c0 68.5 47.9 125.9 112 140.4V408h-36c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v28c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-28h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-27.6c64.1-14.6 112-71.9 112-140.4 0-28.2-8.1-54.5-22.1-76.7l80.7-80.7 16.9 16.9c7.6 7.6 20.5 2.2 20.5-8.5V12c0-6.6-5.4-12-12-12zM240 320c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  114709. };
  114710. var faTrash = {
  114711. prefix: 'fas',
  114712. iconName: 'trash',
  114713. icon: [448, 512, [], "f1f8", "M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"]
  114714. };
  114715. var faTrashAlt = {
  114716. prefix: 'fas',
  114717. iconName: 'trash-alt',
  114718. icon: [448, 512, [], "f2ed", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  114719. };
  114720. var faTrashRestore = {
  114721. prefix: 'fas',
  114722. iconName: 'trash-restore',
  114723. icon: [448, 512, [], "f829", "M53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32zm70.11-175.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  114724. };
  114725. var faTrashRestoreAlt = {
  114726. prefix: 'fas',
  114727. iconName: 'trash-restore-alt',
  114728. icon: [448, 512, [], "f82a", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm91.31-172.8l89.38-94.26a15.41 15.41 0 0 1 22.62 0l89.38 94.26c10.08 10.62 2.94 28.8-11.32 28.8H256v112a16 16 0 0 1-16 16h-32a16 16 0 0 1-16-16V320h-57.37c-14.26 0-21.4-18.18-11.32-28.8zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
  114729. };
  114730. var faTree = {
  114731. prefix: 'fas',
  114732. iconName: 'tree',
  114733. icon: [384, 512, [], "f1bb", "M378.31 378.49L298.42 288h30.63c9.01 0 16.98-5 20.78-13.06 3.8-8.04 2.55-17.26-3.28-24.05L268.42 160h28.89c9.1 0 17.3-5.35 20.86-13.61 3.52-8.13 1.86-17.59-4.24-24.08L203.66 4.83c-6.03-6.45-17.28-6.45-23.32 0L70.06 122.31c-6.1 6.49-7.75 15.95-4.24 24.08C69.38 154.65 77.59 160 86.69 160h28.89l-78.14 90.91c-5.81 6.78-7.06 15.99-3.27 24.04C37.97 283 45.93 288 54.95 288h30.63L5.69 378.49c-6 6.79-7.36 16.09-3.56 24.26 3.75 8.05 12 13.25 21.01 13.25H160v24.45l-30.29 48.4c-5.32 10.64 2.42 23.16 14.31 23.16h95.96c11.89 0 19.63-12.52 14.31-23.16L224 440.45V416h136.86c9.01 0 17.26-5.2 21.01-13.25 3.8-8.17 2.44-17.47-3.56-24.26z"]
  114734. };
  114735. var faTrophy = {
  114736. prefix: 'fas',
  114737. iconName: 'trophy',
  114738. icon: [576, 512, [], "f091", "M552 64H448V24c0-13.3-10.7-24-24-24H152c-13.3 0-24 10.7-24 24v40H24C10.7 64 0 74.7 0 88v56c0 35.7 22.5 72.4 61.9 100.7 31.5 22.7 69.8 37.1 110 41.7C203.3 338.5 240 360 240 360v72h-48c-35.3 0-64 20.7-64 56v12c0 6.6 5.4 12 12 12h296c6.6 0 12-5.4 12-12v-12c0-35.3-28.7-56-64-56h-48v-72s36.7-21.5 68.1-73.6c40.3-4.6 78.6-19 110-41.7 39.3-28.3 61.9-65 61.9-100.7V88c0-13.3-10.7-24-24-24zM99.3 192.8C74.9 175.2 64 155.6 64 144v-16h64.2c1 32.6 5.8 61.2 12.8 86.2-15.1-5.2-29.2-12.4-41.7-21.4zM512 144c0 16.1-17.7 36.1-35.3 48.8-12.5 9-26.7 16.2-41.8 21.4 7-25 11.8-53.6 12.8-86.2H512v16z"]
  114739. };
  114740. var faTruck = {
  114741. prefix: 'fas',
  114742. iconName: 'truck',
  114743. icon: [640, 512, [], "f0d1", "M624 352h-16V243.9c0-12.7-5.1-24.9-14.1-33.9L494 110.1c-9-9-21.2-14.1-33.9-14.1H416V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48v320c0 26.5 21.5 48 48 48h16c0 53 43 96 96 96s96-43 96-96h128c0 53 43 96 96 96s96-43 96-96h48c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM160 464c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm320 0c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48zm80-208H416V144h44.1l99.9 99.9V256z"]
  114744. };
  114745. var faTruckLoading = {
  114746. prefix: 'fas',
  114747. iconName: 'truck-loading',
  114748. icon: [640, 512, [], "f4de", "M50.2 375.6c2.3 8.5 11.1 13.6 19.6 11.3l216.4-58c8.5-2.3 13.6-11.1 11.3-19.6l-49.7-185.5c-2.3-8.5-11.1-13.6-19.6-11.3L151 133.3l24.8 92.7-61.8 16.5-24.8-92.7-77.3 20.7C3.4 172.8-1.7 181.6.6 190.1l49.6 185.5zM384 0c-17.7 0-32 14.3-32 32v323.6L5.9 450c-4.3 1.2-6.8 5.6-5.6 9.8l12.6 46.3c1.2 4.3 5.6 6.8 9.8 5.6l393.7-107.4C418.8 464.1 467.6 512 528 512c61.9 0 112-50.1 112-112V0H384zm144 448c-26.5 0-48-21.5-48-48s21.5-48 48-48 48 21.5 48 48-21.5 48-48 48z"]
  114749. };
  114750. var faTruckMonster = {
  114751. prefix: 'fas',
  114752. iconName: 'truck-monster',
  114753. icon: [640, 512, [], "f63b", "M624 224h-16v-64c0-17.67-14.33-32-32-32h-73.6L419.22 24.02A64.025 64.025 0 0 0 369.24 0H256c-17.67 0-32 14.33-32 32v96H48c-8.84 0-16 7.16-16 16v80H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h16.72c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64h65.45c29.21-38.65 75.1-64 127.28-64s98.07 25.35 127.28 64H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zm-336-96V64h81.24l51.2 64H288zm304 224h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 512 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67A110.85 110.85 0 0 0 373.2 352H368c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32c-.02-8.84-7.18-16-16.02-16zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48zm-208-80h-5.2c-2.2-7.33-5.07-14.28-8.65-20.89l3.67-3.67c6.25-6.25 6.25-16.38 0-22.63l-22.63-22.63c-6.25-6.25-16.38-6.25-22.63 0l-3.67 3.67A110.85 110.85 0 0 0 192 277.2V272c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v5.2c-7.33 2.2-14.28 5.07-20.89 8.65l-3.67-3.67c-6.25-6.25-16.38-6.25-22.63 0L58.18 304.8c-6.25 6.25-6.25 16.38 0 22.63l3.67 3.67a110.85 110.85 0 0 0-8.65 20.89H48c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h5.2c2.2 7.33 5.07 14.28 8.65 20.89l-3.67 3.67c-6.25 6.25-6.25 16.38 0 22.63l22.63 22.63c6.25 6.25 16.38 6.25 22.63 0l3.67-3.67c6.61 3.57 13.57 6.45 20.9 8.65v5.2c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-5.2c7.33-2.2 14.28-5.07 20.9-8.65l3.67 3.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.25-6.25 6.25-16.38 0-22.63l-3.67-3.67a110.85 110.85 0 0 0 8.65-20.89h5.2c8.84 0 16-7.16 16-16v-32C288 359.16 280.84 352 272 352zm-112 80c-26.51 0-48-21.49-48-48s21.49-48 48-48 48 21.49 48 48-21.49 48-48 48z"]
  114754. };
  114755. var faTruckMoving = {
  114756. prefix: 'fas',
  114757. iconName: 'truck-moving',
  114758. icon: [640, 512, [], "f4df", "M621.3 237.3l-58.5-58.5c-12-12-28.3-18.7-45.3-18.7H480V64c0-17.7-14.3-32-32-32H32C14.3 32 0 46.3 0 64v336c0 44.2 35.8 80 80 80 26.3 0 49.4-12.9 64-32.4 14.6 19.6 37.7 32.4 64 32.4 44.2 0 80-35.8 80-80 0-5.5-.6-10.8-1.6-16h163.2c-1.1 5.2-1.6 10.5-1.6 16 0 44.2 35.8 80 80 80s80-35.8 80-80c0-5.5-.6-10.8-1.6-16H624c8.8 0 16-7.2 16-16v-85.5c0-17-6.7-33.2-18.7-45.2zM80 432c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm128 0c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32zm272-224h37.5c4.3 0 8.3 1.7 11.3 4.7l43.3 43.3H480v-48zm48 224c-17.6 0-32-14.4-32-32s14.4-32 32-32 32 14.4 32 32-14.4 32-32 32z"]
  114759. };
  114760. var faTruckPickup = {
  114761. prefix: 'fas',
  114762. iconName: 'truck-pickup',
  114763. icon: [640, 512, [], "f63c", "M624 288h-16v-64c0-17.67-14.33-32-32-32h-48L419.22 56.02A64.025 64.025 0 0 0 369.24 32H256c-17.67 0-32 14.33-32 32v128H64c-17.67 0-32 14.33-32 32v64H16c-8.84 0-16 7.16-16 16v32c0 8.84 7.16 16 16 16h49.61c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16h67.23c-.76 5.27-1.61 10.52-1.61 16 0 61.86 50.14 112 112 112s112-50.14 112-112c0-5.48-.85-10.73-1.61-16H624c8.84 0 16-7.16 16-16v-32c0-8.84-7.16-16-16-16zM288 96h81.24l76.8 96H288V96zM176 416c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48zm288 0c-26.47 0-48-21.53-48-48s21.53-48 48-48 48 21.53 48 48-21.53 48-48 48z"]
  114764. };
  114765. var faTshirt = {
  114766. prefix: 'fas',
  114767. iconName: 'tshirt',
  114768. icon: [640, 512, [], "f553", "M631.2 96.5L436.5 0C416.4 27.8 371.9 47.2 320 47.2S223.6 27.8 203.5 0L8.8 96.5c-7.9 4-11.1 13.6-7.2 21.5l57.2 114.5c4 7.9 13.6 11.1 21.5 7.2l56.6-27.7c10.6-5.2 23 2.5 23 14.4V480c0 17.7 14.3 32 32 32h256c17.7 0 32-14.3 32-32V226.3c0-11.8 12.4-19.6 23-14.4l56.6 27.7c7.9 4 17.5.8 21.5-7.2L638.3 118c4-7.9.8-17.6-7.1-21.5z"]
  114769. };
  114770. var faTty = {
  114771. prefix: 'fas',
  114772. iconName: 'tty',
  114773. icon: [512, 512, [], "f1e4", "M5.37 103.822c138.532-138.532 362.936-138.326 501.262 0 6.078 6.078 7.074 15.496 2.583 22.681l-43.214 69.138a18.332 18.332 0 0 1-22.356 7.305l-86.422-34.569a18.335 18.335 0 0 1-11.434-18.846L351.741 90c-62.145-22.454-130.636-21.986-191.483 0l5.953 59.532a18.331 18.331 0 0 1-11.434 18.846l-86.423 34.568a18.334 18.334 0 0 1-22.356-7.305L2.787 126.502a18.333 18.333 0 0 1 2.583-22.68zM96 308v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H92c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zM96 500v-40c0-6.627-5.373-12-12-12H44c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"]
  114774. };
  114775. var faTv = {
  114776. prefix: 'fas',
  114777. iconName: 'tv',
  114778. icon: [640, 512, [], "f26c", "M592 0H48A48 48 0 0 0 0 48v320a48 48 0 0 0 48 48h240v32H112a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16H352v-32h240a48 48 0 0 0 48-48V48a48 48 0 0 0-48-48zm-16 352H64V64h512z"]
  114779. };
  114780. var faUmbrella = {
  114781. prefix: 'fas',
  114782. iconName: 'umbrella',
  114783. icon: [576, 512, [], "f0e9", "M575.7 280.8C547.1 144.5 437.3 62.6 320 49.9V32c0-17.7-14.3-32-32-32s-32 14.3-32 32v17.9C138.3 62.6 29.5 144.5.3 280.8c-2.2 10.1 8.5 21.3 18.7 11.4 52-55 107.7-52.4 158.6 37 5.3 9.5 14.9 8.6 19.7 0 20.2-35.4 44.9-73.2 90.7-73.2 58.5 0 88.2 68.8 90.7 73.2 4.8 8.6 14.4 9.5 19.7 0 51-89.5 107.1-91.4 158.6-37 10.3 10 20.9-1.3 18.7-11.4zM256 301.7V432c0 8.8-7.2 16-16 16-7.8 0-13.2-5.3-15.1-10.7-5.9-16.7-24.1-25.4-40.8-19.5-16.7 5.9-25.4 24.2-19.5 40.8 11.2 31.9 41.6 53.3 75.4 53.3 44.1 0 80-35.9 80-80V301.6c-9.1-7.9-19.8-13.6-32-13.6-12.3.1-22.4 4.8-32 13.7z"]
  114784. };
  114785. var faUmbrellaBeach = {
  114786. prefix: 'fas',
  114787. iconName: 'umbrella-beach',
  114788. icon: [640, 512, [], "f5ca", "M115.38 136.9l102.11 37.18c35.19-81.54 86.21-144.29 139-173.7-95.88-4.89-188.78 36.96-248.53 111.8-6.69 8.4-2.66 21.05 7.42 24.72zm132.25 48.16l238.48 86.83c35.76-121.38 18.7-231.66-42.63-253.98-7.4-2.7-15.13-4-23.09-4-58.02.01-128.27 69.17-172.76 171.15zM521.48 60.5c6.22 16.3 10.83 34.6 13.2 55.19 5.74 49.89-1.42 108.23-18.95 166.98l102.62 37.36c10.09 3.67 21.31-3.43 21.57-14.17 2.32-95.69-41.91-187.44-118.44-245.36zM560 447.98H321.06L386 269.5l-60.14-21.9-72.9 200.37H16c-8.84 0-16 7.16-16 16.01v32.01C0 504.83 7.16 512 16 512h544c8.84 0 16-7.17 16-16.01v-32.01c0-8.84-7.16-16-16-16z"]
  114789. };
  114790. var faUnderline = {
  114791. prefix: 'fas',
  114792. iconName: 'underline',
  114793. icon: [448, 512, [], "f0cd", "M32 64h32v160c0 88.22 71.78 160 160 160s160-71.78 160-160V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H272a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h32v160a80 80 0 0 1-160 0V64h32a16 16 0 0 0 16-16V16a16 16 0 0 0-16-16H32a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16zm400 384H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"]
  114794. };
  114795. var faUndo = {
  114796. prefix: 'fas',
  114797. iconName: 'undo',
  114798. icon: [512, 512, [], "f0e2", "M212.333 224.333H12c-6.627 0-12-5.373-12-12V12C0 5.373 5.373 0 12 0h48c6.627 0 12 5.373 12 12v78.112C117.773 39.279 184.26 7.47 258.175 8.007c136.906.994 246.448 111.623 246.157 248.532C504.041 393.258 393.12 504 256.333 504c-64.089 0-122.496-24.313-166.51-64.215-5.099-4.622-5.334-12.554-.467-17.42l33.967-33.967c4.474-4.474 11.662-4.717 16.401-.525C170.76 415.336 211.58 432 256.333 432c97.268 0 176-78.716 176-176 0-97.267-78.716-176-176-176-58.496 0-110.28 28.476-142.274 72.333h98.274c6.627 0 12 5.373 12 12v48c0 6.627-5.373 12-12 12z"]
  114799. };
  114800. var faUndoAlt = {
  114801. prefix: 'fas',
  114802. iconName: 'undo-alt',
  114803. icon: [512, 512, [], "f2ea", "M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z"]
  114804. };
  114805. var faUniversalAccess = {
  114806. prefix: 'fas',
  114807. iconName: 'universal-access',
  114808. icon: [512, 512, [], "f29a", "M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"]
  114809. };
  114810. var faUniversity = {
  114811. prefix: 'fas',
  114812. iconName: 'university',
  114813. icon: [512, 512, [], "f19c", "M496 128v16a8 8 0 0 1-8 8h-24v12c0 6.627-5.373 12-12 12H60c-6.627 0-12-5.373-12-12v-12H24a8 8 0 0 1-8-8v-16a8 8 0 0 1 4.941-7.392l232-88a7.996 7.996 0 0 1 6.118 0l232 88A8 8 0 0 1 496 128zm-24 304H40c-13.255 0-24 10.745-24 24v16a8 8 0 0 0 8 8h464a8 8 0 0 0 8-8v-16c0-13.255-10.745-24-24-24zM96 192v192H60c-6.627 0-12 5.373-12 12v20h416v-20c0-6.627-5.373-12-12-12h-36V192h-64v192h-64V192h-64v192h-64V192H96z"]
  114814. };
  114815. var faUnlink = {
  114816. prefix: 'fas',
  114817. iconName: 'unlink',
  114818. icon: [512, 512, [], "f127", "M304.083 405.907c4.686 4.686 4.686 12.284 0 16.971l-44.674 44.674c-59.263 59.262-155.693 59.266-214.961 0-59.264-59.265-59.264-155.696 0-214.96l44.675-44.675c4.686-4.686 12.284-4.686 16.971 0l39.598 39.598c4.686 4.686 4.686 12.284 0 16.971l-44.675 44.674c-28.072 28.073-28.072 73.75 0 101.823 28.072 28.072 73.75 28.073 101.824 0l44.674-44.674c4.686-4.686 12.284-4.686 16.971 0l39.597 39.598zm-56.568-260.216c4.686 4.686 12.284 4.686 16.971 0l44.674-44.674c28.072-28.075 73.75-28.073 101.824 0 28.072 28.073 28.072 73.75 0 101.823l-44.675 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.598 39.598c4.686 4.686 12.284 4.686 16.971 0l44.675-44.675c59.265-59.265 59.265-155.695 0-214.96-59.266-59.264-155.695-59.264-214.961 0l-44.674 44.674c-4.686 4.686-4.686 12.284 0 16.971l39.597 39.598zm234.828 359.28l22.627-22.627c9.373-9.373 9.373-24.569 0-33.941L63.598 7.029c-9.373-9.373-24.569-9.373-33.941 0L7.029 29.657c-9.373 9.373-9.373 24.569 0 33.941l441.373 441.373c9.373 9.372 24.569 9.372 33.941 0z"]
  114819. };
  114820. var faUnlock = {
  114821. prefix: 'fas',
  114822. iconName: 'unlock',
  114823. icon: [448, 512, [], "f09c", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48z"]
  114824. };
  114825. var faUnlockAlt = {
  114826. prefix: 'fas',
  114827. iconName: 'unlock-alt',
  114828. icon: [448, 512, [], "f13e", "M400 256H152V152.9c0-39.6 31.7-72.5 71.3-72.9 40-.4 72.7 32.1 72.7 72v16c0 13.3 10.7 24 24 24h32c13.3 0 24-10.7 24-24v-16C376 68 307.5-.3 223.5 0 139.5.3 72 69.5 72 153.5V256H48c-26.5 0-48 21.5-48 48v160c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V304c0-26.5-21.5-48-48-48zM264 408c0 22.1-17.9 40-40 40s-40-17.9-40-40v-48c0-22.1 17.9-40 40-40s40 17.9 40 40v48z"]
  114829. };
  114830. var faUpload = {
  114831. prefix: 'fas',
  114832. iconName: 'upload',
  114833. icon: [512, 512, [], "f093", "M296 384h-80c-13.3 0-24-10.7-24-24V192h-87.7c-17.8 0-26.7-21.5-14.1-34.1L242.3 5.7c7.5-7.5 19.8-7.5 27.3 0l152.2 152.2c12.6 12.6 3.7 34.1-14.1 34.1H320v168c0 13.3-10.7 24-24 24zm216-8v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h136v8c0 30.9 25.1 56 56 56h80c30.9 0 56-25.1 56-56v-8h136c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"]
  114834. };
  114835. var faUser = {
  114836. prefix: 'fas',
  114837. iconName: 'user',
  114838. icon: [448, 512, [], "f007", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]
  114839. };
  114840. var faUserAlt = {
  114841. prefix: 'fas',
  114842. iconName: 'user-alt',
  114843. icon: [512, 512, [], "f406", "M256 288c79.5 0 144-64.5 144-144S335.5 0 256 0 112 64.5 112 144s64.5 144 144 144zm128 32h-55.1c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16H128C57.3 320 0 377.3 0 448v16c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-16c0-70.7-57.3-128-128-128z"]
  114844. };
  114845. var faUserAltSlash = {
  114846. prefix: 'fas',
  114847. iconName: 'user-alt-slash',
  114848. icon: [640, 512, [], "f4fa", "M633.8 458.1L389.6 269.3C433.8 244.7 464 198.1 464 144 464 64.5 399.5 0 320 0c-67.1 0-123 46.1-139 108.2L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM198.4 320C124.2 320 64 380.2 64 454.4v9.6c0 26.5 21.5 48 48 48h382.2L245.8 320h-47.4z"]
  114849. };
  114850. var faUserAstronaut = {
  114851. prefix: 'fas',
  114852. iconName: 'user-astronaut',
  114853. icon: [448, 512, [], "f4fb", "M64 224h13.5c24.7 56.5 80.9 96 146.5 96s121.8-39.5 146.5-96H384c8.8 0 16-7.2 16-16v-96c0-8.8-7.2-16-16-16h-13.5C345.8 39.5 289.6 0 224 0S102.2 39.5 77.5 96H64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16zm40-88c0-22.1 21.5-40 48-40h144c26.5 0 48 17.9 48 40v24c0 53-43 96-96 96h-48c-53 0-96-43-96-96v-24zm72 72l12-36 36-12-36-12-12-36-12 36-36 12 36 12 12 36zm151.6 113.4C297.7 340.7 262.2 352 224 352s-73.7-11.3-103.6-30.6C52.9 328.5 0 385 0 454.4v9.6c0 26.5 21.5 48 48 48h80v-64c0-17.7 14.3-32 32-32h128c17.7 0 32 14.3 32 32v64h80c26.5 0 48-21.5 48-48v-9.6c0-69.4-52.9-125.9-120.4-133zM272 448c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm-96 0c-8.8 0-16 7.2-16 16v48h32v-48c0-8.8-7.2-16-16-16z"]
  114854. };
  114855. var faUserCheck = {
  114856. prefix: 'fas',
  114857. iconName: 'user-check',
  114858. icon: [640, 512, [], "f4fc", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-140.2c4.6-4.7 4.7-12.2.1-16.8z"]
  114859. };
  114860. var faUserCircle = {
  114861. prefix: 'fas',
  114862. iconName: 'user-circle',
  114863. icon: [496, 512, [], "f2bd", "M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z"]
  114864. };
  114865. var faUserClock = {
  114866. prefix: 'fas',
  114867. iconName: 'user-clock',
  114868. icon: [640, 512, [], "f4fd", "M496 224c-79.6 0-144 64.4-144 144s64.4 144 144 144 144-64.4 144-144-64.4-144-144-144zm64 150.3c0 5.3-4.4 9.7-9.7 9.7h-60.6c-5.3 0-9.7-4.4-9.7-9.7v-76.6c0-5.3 4.4-9.7 9.7-9.7h12.6c5.3 0 9.7 4.4 9.7 9.7V352h38.3c5.3 0 9.7 4.4 9.7 9.7v12.6zM320 368c0-27.8 6.7-54.1 18.2-77.5-8-1.5-16.2-2.5-24.6-2.5h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h347.1c-45.3-31.9-75.1-84.5-75.1-144zm-96-112c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128z"]
  114869. };
  114870. var faUserCog = {
  114871. prefix: 'fas',
  114872. iconName: 'user-cog',
  114873. icon: [640, 512, [], "f4fe", "M610.5 373.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 400.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm201.2 226.5c-2.3-1.2-4.6-2.6-6.8-3.9l-7.9 4.6c-6 3.4-12.8 5.3-19.6 5.3-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-5.5-17.7 1.9-36.4 17.9-45.7l7.9-4.6c-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-16-9.2-23.4-28-17.9-45.7.9-2.9 2.2-5.8 3.2-8.7-3.8-.3-7.5-1.2-11.4-1.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c10.1 0 19.5-3.2 27.2-8.5-1.2-3.8-2-7.7-2-11.8v-9.2z"]
  114874. };
  114875. var faUserEdit = {
  114876. prefix: 'fas',
  114877. iconName: 'user-edit',
  114878. icon: [640, 512, [], "f4ff", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h274.9c-2.4-6.8-3.4-14-2.6-21.3l6.8-60.9 1.2-11.1 7.9-7.9 77.3-77.3c-24.5-27.7-60-45.5-99.9-45.5zm45.3 145.3l-6.8 61c-1.1 10.2 7.5 18.8 17.6 17.6l60.9-6.8 137.9-137.9-71.7-71.7-137.9 137.8zM633 268.9L595.1 231c-9.3-9.3-24.5-9.3-33.8 0l-37.8 37.8-4.1 4.1 71.8 71.7 41.8-41.8c9.3-9.4 9.3-24.5 0-33.9z"]
  114879. };
  114880. var faUserFriends = {
  114881. prefix: 'fas',
  114882. iconName: 'user-friends',
  114883. icon: [640, 512, [], "f500", "M192 256c61.9 0 112-50.1 112-112S253.9 32 192 32 80 82.1 80 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C51.6 288 0 339.6 0 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zM480 256c53 0 96-43 96-96s-43-96-96-96-96 43-96 96 43 96 96 96zm48 32h-3.8c-13.9 4.8-28.6 8-44.2 8s-30.3-3.2-44.2-8H432c-20.4 0-39.2 5.9-55.7 15.4 24.4 26.3 39.7 61.2 39.7 99.8v38.4c0 2.2-.5 4.3-.6 6.4H592c26.5 0 48-21.5 48-48 0-61.9-50.1-112-112-112z"]
  114884. };
  114885. var faUserGraduate = {
  114886. prefix: 'fas',
  114887. iconName: 'user-graduate',
  114888. icon: [448, 512, [], "f501", "M319.4 320.6L224 416l-95.4-95.4C57.1 323.7 0 382.2 0 454.4v9.6c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-9.6c0-72.2-57.1-130.7-128.6-133.8zM13.6 79.8l6.4 1.5v58.4c-7 4.2-12 11.5-12 20.3 0 8.4 4.6 15.4 11.1 19.7L3.5 242c-1.7 6.9 2.1 14 7.6 14h41.8c5.5 0 9.3-7.1 7.6-14l-15.6-62.3C51.4 175.4 56 168.4 56 160c0-8.8-5-16.1-12-20.3V87.1l66 15.9c-8.6 17.2-14 36.4-14 57 0 70.7 57.3 128 128 128s128-57.3 128-128c0-20.6-5.3-39.8-14-57l96.3-23.2c18.2-4.4 18.2-27.1 0-31.5l-190.4-46c-13-3.1-26.7-3.1-39.7 0L13.6 48.2c-18.1 4.4-18.1 27.2 0 31.6z"]
  114889. };
  114890. var faUserInjured = {
  114891. prefix: 'fas',
  114892. iconName: 'user-injured',
  114893. icon: [448, 512, [], "f728", "M277.37 11.98C261.08 4.47 243.11 0 224 0c-53.69 0-99.5 33.13-118.51 80h81.19l90.69-68.02zM342.51 80c-7.9-19.47-20.67-36.2-36.49-49.52L239.99 80h102.52zM224 256c70.69 0 128-57.31 128-128 0-5.48-.95-10.7-1.61-16H97.61c-.67 5.3-1.61 10.52-1.61 16 0 70.69 57.31 128 128 128zM80 299.7V512h128.26l-98.45-221.52A132.835 132.835 0 0 0 80 299.7zM0 464c0 26.51 21.49 48 48 48V320.24C18.88 344.89 0 381.26 0 422.4V464zm256-48h-55.38l42.67 96H256c26.47 0 48-21.53 48-48s-21.53-48-48-48zm57.6-128h-16.71c-22.24 10.18-46.88 16-72.89 16s-50.65-5.82-72.89-16h-7.37l42.67 96H256c44.11 0 80 35.89 80 80 0 18.08-6.26 34.59-16.41 48H400c26.51 0 48-21.49 48-48v-41.6c0-74.23-60.17-134.4-134.4-134.4z"]
  114894. };
  114895. var faUserLock = {
  114896. prefix: 'fas',
  114897. iconName: 'user-lock',
  114898. icon: [640, 512, [], "f502", "M224 256A128 128 0 1 0 96 128a128 128 0 0 0 128 128zm96 64a63.08 63.08 0 0 1 8.1-30.5c-4.8-.5-9.5-1.5-14.5-1.5h-16.7a174.08 174.08 0 0 1-145.8 0h-16.7A134.43 134.43 0 0 0 0 422.4V464a48 48 0 0 0 48 48h280.9a63.54 63.54 0 0 1-8.9-32zm288-32h-32v-80a80 80 0 0 0-160 0v80h-32a32 32 0 0 0-32 32v160a32 32 0 0 0 32 32h224a32 32 0 0 0 32-32V320a32 32 0 0 0-32-32zM496 432a32 32 0 1 1 32-32 32 32 0 0 1-32 32zm32-144h-64v-80a32 32 0 0 1 64 0z"]
  114899. };
  114900. var faUserMd = {
  114901. prefix: 'fas',
  114902. iconName: 'user-md',
  114903. icon: [448, 512, [], "f0f0", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zM104 424c0 13.3 10.7 24 24 24s24-10.7 24-24-10.7-24-24-24-24 10.7-24 24zm216-135.4v49c36.5 7.4 64 39.8 64 78.4v41.7c0 7.6-5.4 14.2-12.9 15.7l-32.2 6.4c-4.3.9-8.5-1.9-9.4-6.3l-3.1-15.7c-.9-4.3 1.9-8.6 6.3-9.4l19.3-3.9V416c0-62.8-96-65.1-96 1.9v26.7l19.3 3.9c4.3.9 7.1 5.1 6.3 9.4l-3.1 15.7c-.9 4.3-5.1 7.1-9.4 6.3l-31.2-4.2c-7.9-1.1-13.8-7.8-13.8-15.9V416c0-38.6 27.5-70.9 64-78.4v-45.2c-2.2.7-4.4 1.1-6.6 1.9-18 6.3-37.3 9.8-57.4 9.8s-39.4-3.5-57.4-9.8c-7.4-2.6-14.9-4.2-22.6-5.2v81.6c23.1 6.9 40 28.1 40 53.4 0 30.9-25.1 56-56 56s-56-25.1-56-56c0-25.3 16.9-46.5 40-53.4v-80.4C48.5 301 0 355.8 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-72-56.8-130.3-128-133.8z"]
  114904. };
  114905. var faUserMinus = {
  114906. prefix: 'fas',
  114907. iconName: 'user-minus',
  114908. icon: [640, 512, [], "f503", "M624 208H432c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h192c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]
  114909. };
  114910. var faUserNinja = {
  114911. prefix: 'fas',
  114912. iconName: 'user-ninja',
  114913. icon: [448, 512, [], "f504", "M325.4 289.2L224 390.6 122.6 289.2C54 295.3 0 352.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-70.2-54-127.1-122.6-133.2zM32 192c27.3 0 51.8-11.5 69.2-29.7 15.1 53.9 64 93.7 122.8 93.7 70.7 0 128-57.3 128-128S294.7 0 224 0c-50.4 0-93.6 29.4-114.5 71.8C92.1 47.8 64 32 32 32c0 33.4 17.1 62.8 43.1 80-26 17.2-43.1 46.6-43.1 80zm144-96h96c17.7 0 32 14.3 32 32H144c0-17.7 14.3-32 32-32z"]
  114914. };
  114915. var faUserNurse = {
  114916. prefix: 'fas',
  114917. iconName: 'user-nurse',
  114918. icon: [448, 512, [], "f82f", "M319.41,320,224,415.39,128.59,320C57.1,323.1,0,381.6,0,453.79A58.21,58.21,0,0,0,58.21,512H389.79A58.21,58.21,0,0,0,448,453.79C448,381.6,390.9,323.1,319.41,320ZM224,304A128,128,0,0,0,352,176V65.82a32,32,0,0,0-20.76-30L246.47,4.07a64,64,0,0,0-44.94,0L116.76,35.86A32,32,0,0,0,96,65.82V176A128,128,0,0,0,224,304ZM184,71.67a5,5,0,0,1,5-5h21.67V45a5,5,0,0,1,5-5h16.66a5,5,0,0,1,5,5V66.67H259a5,5,0,0,1,5,5V88.33a5,5,0,0,1-5,5H237.33V115a5,5,0,0,1-5,5H215.67a5,5,0,0,1-5-5V93.33H189a5,5,0,0,1-5-5ZM144,160H304v16a80,80,0,0,1-160,0Z"]
  114919. };
  114920. var faUserPlus = {
  114921. prefix: 'fas',
  114922. iconName: 'user-plus',
  114923. icon: [640, 512, [], "f234", "M624 208h-64v-64c0-8.8-7.2-16-16-16h-32c-8.8 0-16 7.2-16 16v64h-64c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h64v64c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16v-64h64c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm-400 48c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]
  114924. };
  114925. var faUserSecret = {
  114926. prefix: 'fas',
  114927. iconName: 'user-secret',
  114928. icon: [448, 512, [], "f21b", "M383.9 308.3l23.9-62.6c4-10.5-3.7-21.7-15-21.7h-58.5c11-18.9 17.8-40.6 17.8-64v-.3c39.2-7.8 64-19.1 64-31.7 0-13.3-27.3-25.1-70.1-33-9.2-32.8-27-65.8-40.6-82.8-9.5-11.9-25.9-15.6-39.5-8.8l-27.6 13.8c-9 4.5-19.6 4.5-28.6 0L182.1 3.4c-13.6-6.8-30-3.1-39.5 8.8-13.5 17-31.4 50-40.6 82.8-42.7 7.9-70 19.7-70 33 0 12.6 24.8 23.9 64 31.7v.3c0 23.4 6.8 45.1 17.8 64H56.3c-11.5 0-19.2 11.7-14.7 22.3l25.8 60.2C27.3 329.8 0 372.7 0 422.4v44.8C0 491.9 20.1 512 44.8 512h358.4c24.7 0 44.8-20.1 44.8-44.8v-44.8c0-48.4-25.8-90.4-64.1-114.1zM176 480l-41.6-192 49.6 32 24 40-32 120zm96 0l-32-120 24-40 49.6-32L272 480zm41.7-298.5c-3.9 11.9-7 24.6-16.5 33.4-10.1 9.3-48 22.4-64-25-2.8-8.4-15.4-8.4-18.3 0-17 50.2-56 32.4-64 25-9.5-8.8-12.7-21.5-16.5-33.4-.8-2.5-6.3-5.7-6.3-5.8v-10.8c28.3 3.6 61 5.8 96 5.8s67.7-2.1 96-5.8v10.8c-.1.1-5.6 3.2-6.4 5.8z"]
  114929. };
  114930. var faUserShield = {
  114931. prefix: 'fas',
  114932. iconName: 'user-shield',
  114933. icon: [640, 512, [], "f505", "M622.3 271.1l-115.2-45c-4.1-1.6-12.6-3.7-22.2 0l-115.2 45c-10.7 4.2-17.7 14-17.7 24.9 0 111.6 68.7 188.8 132.9 213.9 9.6 3.7 18 1.6 22.2 0C558.4 489.9 640 420.5 640 296c0-10.9-7-20.7-17.7-24.9zM496 462.4V273.3l95.5 37.3c-5.6 87.1-60.9 135.4-95.5 151.8zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm96 40c0-2.5.8-4.8 1.1-7.2-2.5-.1-4.9-.8-7.5-.8h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c6.8 0 13.3-1.5 19.2-4-54-42.9-99.2-116.7-99.2-212z"]
  114934. };
  114935. var faUserSlash = {
  114936. prefix: 'fas',
  114937. iconName: 'user-slash',
  114938. icon: [640, 512, [], "f506", "M633.8 458.1L362.3 248.3C412.1 230.7 448 183.8 448 128 448 57.3 390.7 0 320 0c-67.1 0-121.5 51.8-126.9 117.4L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4l588.4 454.7c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.4-6.8 4.1-16.9-2.9-22.3zM96 422.4V464c0 26.5 21.5 48 48 48h350.2L207.4 290.3C144.2 301.3 96 356 96 422.4z"]
  114939. };
  114940. var faUserTag = {
  114941. prefix: 'fas',
  114942. iconName: 'user-tag',
  114943. icon: [640, 512, [], "f507", "M630.6 364.9l-90.3-90.2c-12-12-28.3-18.7-45.3-18.7h-79.3c-17.7 0-32 14.3-32 32v79.2c0 17 6.7 33.2 18.7 45.2l90.3 90.2c12.5 12.5 32.8 12.5 45.3 0l92.5-92.5c12.6-12.5 12.6-32.7.1-45.2zm-182.8-21c-13.3 0-24-10.7-24-24s10.7-24 24-24 24 10.7 24 24c0 13.2-10.7 24-24 24zm-223.8-88c70.7 0 128-57.3 128-128C352 57.3 294.7 0 224 0S96 57.3 96 128c0 70.6 57.3 127.9 128 127.9zm127.8 111.2V294c-12.2-3.6-24.9-6.2-38.2-6.2h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 287.9 0 348.1 0 422.3v41.6c0 26.5 21.5 48 48 48h352c15.5 0 29.1-7.5 37.9-18.9l-58-58c-18.1-18.1-28.1-42.2-28.1-67.9z"]
  114944. };
  114945. var faUserTie = {
  114946. prefix: 'fas',
  114947. iconName: 'user-tie',
  114948. icon: [448, 512, [], "f508", "M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm95.8 32.6L272 480l-32-136 32-56h-96l32 56-32 136-47.8-191.4C56.9 292 0 350.3 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-72.1-56.9-130.4-128.2-133.8z"]
  114949. };
  114950. var faUserTimes = {
  114951. prefix: 'fas',
  114952. iconName: 'user-times',
  114953. icon: [640, 512, [], "f235", "M589.6 240l45.6-45.6c6.3-6.3 6.3-16.5 0-22.8l-22.8-22.8c-6.3-6.3-16.5-6.3-22.8 0L544 194.4l-45.6-45.6c-6.3-6.3-16.5-6.3-22.8 0l-22.8 22.8c-6.3 6.3-6.3 16.5 0 22.8l45.6 45.6-45.6 45.6c-6.3 6.3-6.3 16.5 0 22.8l22.8 22.8c6.3 6.3 16.5 6.3 22.8 0l45.6-45.6 45.6 45.6c6.3 6.3 16.5 6.3 22.8 0l22.8-22.8c6.3-6.3 6.3-16.5 0-22.8L589.6 240zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"]
  114954. };
  114955. var faUsers = {
  114956. prefix: 'fas',
  114957. iconName: 'users',
  114958. icon: [640, 512, [], "f0c0", "M96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm448 0c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm32 32h-64c-17.6 0-33.5 7.1-45.1 18.6 40.3 22.1 68.9 62 75.1 109.4h66c17.7 0 32-14.3 32-32v-32c0-35.3-28.7-64-64-64zm-256 0c61.9 0 112-50.1 112-112S381.9 32 320 32 208 82.1 208 144s50.1 112 112 112zm76.8 32h-8.3c-20.8 10-43.9 16-68.5 16s-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48v-28.8c0-63.6-51.6-115.2-115.2-115.2zm-223.7-13.4C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]
  114959. };
  114960. var faUsersCog = {
  114961. prefix: 'fas',
  114962. iconName: 'users-cog',
  114963. icon: [640, 512, [], "f509", "M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"]
  114964. };
  114965. var faUsersSlash = {
  114966. prefix: 'fas',
  114967. iconName: 'users-slash',
  114968. icon: [640, 512, [], "e073", "M132.65,212.32,36.21,137.78A63.4,63.4,0,0,0,32,160a63.84,63.84,0,0,0,100.65,52.32Zm40.44,62.28A63.79,63.79,0,0,0,128,256H64A64.06,64.06,0,0,0,0,320v32a32,32,0,0,0,32,32H97.91A146.62,146.62,0,0,1,173.09,274.6ZM544,224a64,64,0,1,0-64-64A64.06,64.06,0,0,0,544,224ZM500.56,355.11a114.24,114.24,0,0,0-84.47-65.28L361,247.23c41.46-16.3,71-55.92,71-103.23A111.93,111.93,0,0,0,320,32c-57.14,0-103.69,42.83-110.6,98.08L45.46,3.38A16,16,0,0,0,23,6.19L3.37,31.46A16,16,0,0,0,6.18,53.91L594.53,508.63A16,16,0,0,0,617,505.82l19.64-25.27a16,16,0,0,0-2.81-22.45ZM128,403.21V432a48,48,0,0,0,48,48H464a47.45,47.45,0,0,0,12.57-1.87L232,289.13C173.74,294.83,128,343.42,128,403.21ZM576,256H512a63.79,63.79,0,0,0-45.09,18.6A146.29,146.29,0,0,1,542,384h66a32,32,0,0,0,32-32V320A64.06,64.06,0,0,0,576,256Z"]
  114969. };
  114970. var faUtensilSpoon = {
  114971. prefix: 'fas',
  114972. iconName: 'utensil-spoon',
  114973. icon: [512, 512, [], "f2e5", "M480.1 31.9c-55-55.1-164.9-34.5-227.8 28.5-49.3 49.3-55.1 110-28.8 160.4L9 413.2c-11.6 10.5-12.1 28.5-1 39.5L59.3 504c11 11 29.1 10.5 39.5-1.1l192.4-214.4c50.4 26.3 111.1 20.5 160.4-28.8 63-62.9 83.6-172.8 28.5-227.8z"]
  114974. };
  114975. var faUtensils = {
  114976. prefix: 'fas',
  114977. iconName: 'utensils',
  114978. icon: [416, 512, [], "f2e7", "M207.9 15.2c.8 4.7 16.1 94.5 16.1 128.8 0 52.3-27.8 89.6-68.9 104.6L168 486.7c.7 13.7-10.2 25.3-24 25.3H80c-13.7 0-24.7-11.5-24-25.3l12.9-238.1C27.7 233.6 0 196.2 0 144 0 109.6 15.3 19.9 16.1 15.2 19.3-5.1 61.4-5.4 64 16.3v141.2c1.3 3.4 15.1 3.2 16 0 1.4-25.3 7.9-139.2 8-141.8 3.3-20.8 44.7-20.8 47.9 0 .2 2.7 6.6 116.5 8 141.8.9 3.2 14.8 3.4 16 0V16.3c2.6-21.6 44.8-21.4 48-1.1zm119.2 285.7l-15 185.1c-1.2 14 9.9 26 23.9 26h56c13.3 0 24-10.7 24-24V24c0-13.2-10.7-24-24-24-82.5 0-221.4 178.5-64.9 300.9z"]
  114979. };
  114980. var faVectorSquare = {
  114981. prefix: 'fas',
  114982. iconName: 'vector-square',
  114983. icon: [512, 512, [], "f5cb", "M512 128V32c0-17.67-14.33-32-32-32h-96c-17.67 0-32 14.33-32 32H160c0-17.67-14.33-32-32-32H32C14.33 0 0 14.33 0 32v96c0 17.67 14.33 32 32 32v192c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32h192c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32v-96c0-17.67-14.33-32-32-32V160c17.67 0 32-14.33 32-32zm-96-64h32v32h-32V64zM64 64h32v32H64V64zm32 384H64v-32h32v32zm352 0h-32v-32h32v32zm-32-96h-32c-17.67 0-32 14.33-32 32v32H160v-32c0-17.67-14.33-32-32-32H96V160h32c17.67 0 32-14.33 32-32V96h192v32c0 17.67 14.33 32 32 32h32v192z"]
  114984. };
  114985. var faVenus = {
  114986. prefix: 'fas',
  114987. iconName: 'venus',
  114988. icon: [288, 512, [], "f221", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80z"]
  114989. };
  114990. var faVenusDouble = {
  114991. prefix: 'fas',
  114992. iconName: 'venus-double',
  114993. icon: [512, 512, [], "f226", "M288 176c0-79.5-64.5-144-144-144S0 96.5 0 176c0 68.5 47.9 125.9 112 140.4V368H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.5 112-71.9 112-140.4zm-224 0c0-44.1 35.9-80 80-80s80 35.9 80 80-35.9 80-80 80-80-35.9-80-80zm336 140.4V368h36c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12h-36v36c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12v-36h-36c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h36v-51.6c-21.2-4.8-40.6-14.3-57.2-27.3 14-16.7 25-36 32.1-57.1 14.5 14.8 34.7 24 57.1 24 44.1 0 80-35.9 80-80s-35.9-80-80-80c-22.3 0-42.6 9.2-57.1 24-7.1-21.1-18-40.4-32.1-57.1C303.4 43.6 334.3 32 368 32c79.5 0 144 64.5 144 144 0 68.5-47.9 125.9-112 140.4z"]
  114994. };
  114995. var faVenusMars = {
  114996. prefix: 'fas',
  114997. iconName: 'venus-mars',
  114998. icon: [576, 512, [], "f228", "M564 0h-79c-10.7 0-16 12.9-8.5 20.5l16.9 16.9-48.7 48.7C422.5 72.1 396.2 64 368 64c-33.7 0-64.6 11.6-89.2 30.9 14 16.7 25 36 32.1 57.1 14.5-14.8 34.7-24 57.1-24 44.1 0 80 35.9 80 80s-35.9 80-80 80c-22.3 0-42.6-9.2-57.1-24-7.1 21.1-18 40.4-32.1 57.1 24.5 19.4 55.5 30.9 89.2 30.9 79.5 0 144-64.5 144-144 0-28.2-8.1-54.5-22.1-76.7l48.7-48.7 16.9 16.9c2.4 2.4 5.4 3.5 8.4 3.5 6.2 0 12.1-4.8 12.1-12V12c0-6.6-5.4-12-12-12zM144 64C64.5 64 0 128.5 0 208c0 68.5 47.9 125.9 112 140.4V400H76c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h36v36c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12v-36h36c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-36v-51.6c64.1-14.6 112-71.9 112-140.4 0-79.5-64.5-144-144-144zm0 224c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z"]
  114999. };
  115000. var faVest = {
  115001. prefix: 'fas',
  115002. iconName: 'vest',
  115003. icon: [448, 512, [], "e085", "M437.252,239.877,384,160V32A32,32,0,0,0,352,0H320a24.021,24.021,0,0,0-13.312,4.031l-25,16.672a103.794,103.794,0,0,1-115.376,0l-25-16.672A24.021,24.021,0,0,0,128,0H96A32,32,0,0,0,64,32V160L10.748,239.877A64,64,0,0,0,0,275.377V480a32,32,0,0,0,32,32H192V288a31.987,31.987,0,0,1,1.643-10.119L207.135,237.4,150.188,66.564A151.518,151.518,0,0,0,224,86.234a151.55,151.55,0,0,0,73.812-19.672L224,288V512H416a32,32,0,0,0,32-32V275.377A64,64,0,0,0,437.252,239.877ZM131.312,371.312l-48,48a16,16,0,0,1-22.624-22.624l48-48a16,16,0,0,1,22.624,22.624Zm256,48a15.992,15.992,0,0,1-22.624,0l-48-48a16,16,0,0,1,22.624-22.624l48,48A15.993,15.993,0,0,1,387.312,419.312Z"]
  115004. };
  115005. var faVestPatches = {
  115006. prefix: 'fas',
  115007. iconName: 'vest-patches',
  115008. icon: [448, 512, [], "e086", "M437.252,239.877,384,160V32A32,32,0,0,0,352,0H320a23.982,23.982,0,0,0-13.312,4.031l-25,16.672a103.794,103.794,0,0,1-115.376,0l-25-16.672A23.982,23.982,0,0,0,128,0H96A32,32,0,0,0,64,32V160L10.748,239.877A64,64,0,0,0,0,275.377V480a32,32,0,0,0,32,32H192V288a31.987,31.987,0,0,1,1.643-10.119L207.135,237.4,150.188,66.561A151.579,151.579,0,0,0,224,86.234a151.565,151.565,0,0,0,73.811-19.668L224,288V512H416a32,32,0,0,0,32-32V275.377A64,64,0,0,0,437.252,239.877ZM63.5,272.484a12.01,12.01,0,0,1,17-16.968l15.5,15.5,15.5-15.5a12.01,12.01,0,0,1,17,16.968L112.984,288,128.5,303.516a12.01,12.01,0,0,1-17,16.968L96,304.984l-15.5,15.5a12.01,12.01,0,0,1-17-16.968L79.016,288ZM96,456a40,40,0,1,1,40-40A40,40,0,0,1,96,456ZM359.227,335.785,310.7,336a6.671,6.671,0,0,1-6.7-6.7l.215-48.574A24.987,24.987,0,0,1,331.43,256.1c12.789,1.162,22.129,12.619,22.056,25.419l-.037,5.057,5.051-.037c12.826-.035,24.236,9.275,25.4,22.076A24.948,24.948,0,0,1,359.227,335.785Z"]
  115009. };
  115010. var faVial = {
  115011. prefix: 'fas',
  115012. iconName: 'vial',
  115013. icon: [480, 512, [], "f492", "M477.7 186.1L309.5 18.3c-3.1-3.1-8.2-3.1-11.3 0l-34 33.9c-3.1 3.1-3.1 8.2 0 11.3l11.2 11.1L33 316.5c-38.8 38.7-45.1 102-9.4 143.5 20.6 24 49.5 36 78.4 35.9 26.4 0 52.8-10 72.9-30.1l246.3-245.7 11.2 11.1c3.1 3.1 8.2 3.1 11.3 0l34-33.9c3.1-3 3.1-8.1 0-11.2zM318 256H161l148-147.7 78.5 78.3L318 256z"]
  115014. };
  115015. var faVials = {
  115016. prefix: 'fas',
  115017. iconName: 'vials',
  115018. icon: [640, 512, [], "f493", "M72 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H72c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64zm480 384H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM360 64h24v240c0 44.1 35.9 80 80 80s80-35.9 80-80V64h24c4.4 0 8-3.6 8-8V8c0-4.4-3.6-8-8-8H360c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8zm72 0h64v96h-64V64z"]
  115019. };
  115020. var faVideo = {
  115021. prefix: 'fas',
  115022. iconName: 'video',
  115023. icon: [576, 512, [], "f03d", "M336.2 64H47.8C21.4 64 0 85.4 0 111.8v288.4C0 426.6 21.4 448 47.8 448h288.4c26.4 0 47.8-21.4 47.8-47.8V111.8c0-26.4-21.4-47.8-47.8-47.8zm189.4 37.7L416 177.3v157.4l109.6 75.5c21.2 14.6 50.4-.3 50.4-25.8V127.5c0-25.4-29.1-40.4-50.4-25.8z"]
  115024. };
  115025. var faVideoSlash = {
  115026. prefix: 'fas',
  115027. iconName: 'video-slash',
  115028. icon: [640, 512, [], "f4e2", "M633.8 458.1l-55-42.5c15.4-1.4 29.2-13.7 29.2-31.1v-257c0-25.5-29.1-40.4-50.4-25.8L448 177.3v137.2l-32-24.7v-178c0-26.4-21.4-47.8-47.8-47.8H123.9L45.5 3.4C38.5-2 28.5-.8 23 6.2L3.4 31.4c-5.4 7-4.2 17 2.8 22.4L42.7 82 416 370.6l178.5 138c7 5.4 17 4.2 22.5-2.8l19.6-25.3c5.5-6.9 4.2-17-2.8-22.4zM32 400.2c0 26.4 21.4 47.8 47.8 47.8h288.4c11.2 0 21.4-4 29.6-10.5L32 154.7v245.5z"]
  115029. };
  115030. var faVihara = {
  115031. prefix: 'fas',
  115032. iconName: 'vihara',
  115033. icon: [640, 512, [], "f6a7", "M632.88 400.71L544 352v-64l55.16-17.69c11.79-5.9 11.79-22.72 0-28.62L480 192v-64l27.31-16.3c7.72-7.72 5.61-20.74-4.16-25.62L320 0 136.85 86.07c-9.77 4.88-11.88 17.9-4.16 25.62L160 128v64L40.84 241.69c-11.79 5.9-11.79 22.72 0 28.62L96 288v64L7.12 400.71c-5.42 3.62-7.7 9.63-7 15.29.62 5.01 3.57 9.75 8.72 12.33L64 448v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48h160v48c0 8.84 7.16 16 16 16h32c8.84 0 16-7.16 16-16v-48l55.15-19.67c5.16-2.58 8.1-7.32 8.72-12.33.71-5.67-1.57-11.68-6.99-15.29zM224 128h192v64H224v-64zm-64 224v-64h320v64H160z"]
  115034. };
  115035. var faVirus = {
  115036. prefix: 'fas',
  115037. iconName: 'virus',
  115038. icon: [512, 512, [], "e074", "M483.55,227.55H462c-50.68,0-76.07-61.27-40.23-97.11L437,115.19A28.44,28.44,0,0,0,396.8,75L381.56,90.22c-35.84,35.83-97.11,10.45-97.11-40.23V28.44a28.45,28.45,0,0,0-56.9,0V50c0,50.68-61.27,76.06-97.11,40.23L115.2,75A28.44,28.44,0,0,0,75,115.19l15.25,15.25c35.84,35.84,10.45,97.11-40.23,97.11H28.45a28.45,28.45,0,1,0,0,56.89H50c50.68,0,76.07,61.28,40.23,97.12L75,396.8A28.45,28.45,0,0,0,115.2,437l15.24-15.25c35.84-35.84,97.11-10.45,97.11,40.23v21.54a28.45,28.45,0,0,0,56.9,0V462c0-50.68,61.27-76.07,97.11-40.23L396.8,437A28.45,28.45,0,0,0,437,396.8l-15.25-15.24c-35.84-35.84-10.45-97.12,40.23-97.12h21.54a28.45,28.45,0,1,0,0-56.89ZM224,272a48,48,0,1,1,48-48A48,48,0,0,1,224,272Zm80,56a24,24,0,1,1,24-24A24,24,0,0,1,304,328Z"]
  115039. };
  115040. var faVirusSlash = {
  115041. prefix: 'fas',
  115042. iconName: 'virus-slash',
  115043. icon: [640, 512, [], "e075", "M114,227.6H92.4C76.7,227.6,64,240.3,64,256s12.7,28.4,28.4,28.4H114c50.7,0,76.1,61.3,40.2,97.1L139,396.8 c-11.5,10.7-12.2,28.7-1.6,40.2s28.7,12.2,40.2,1.6c0.5-0.5,1.1-1,1.6-1.6l15.2-15.2c35.8-35.8,97.1-10.5,97.1,40.2v21.5 c0,15.7,12.8,28.4,28.5,28.4c15.7,0,28.4-12.7,28.4-28.4V462c0-26.6,17-45.9,38.2-53.4l-244.5-189 C133.7,224.7,123.9,227.5,114,227.6z M617,505.8l19.6-25.3c5.4-7,4.2-17-2.8-22.5L470.6,332c4.2-25.4,24.9-47.5,55.4-47.5h21.5 c15.7,0,28.4-12.7,28.4-28.4s-12.7-28.4-28.4-28.4H526c-50.7,0-76.1-61.3-40.2-97.1l15.2-15.3c10.7-11.5,10-29.5-1.6-40.2 c-10.9-10.1-27.7-10.1-38.6,0l-15.2,15.2c-35.8,35.8-97.1,10.5-97.1-40.2V28.5C348.4,12.7,335.7,0,320,0 c-15.7,0-28.4,12.7-28.4,28.4V50c0,50.7-61.3,76.1-97.1,40.2L179.2,75c-11.1-11.1-29.4-10.6-40.5,0.5L45.5,3.4 c-7-5.4-17-4.2-22.5,2.8L3.4,31.5c-5.4,7-4.2,17,2.8,22.5l588.4,454.7C601.5,514.1,611.6,512.8,617,505.8z M335.4,227.5l-62.9-48.6 c4.9-1.8,10.2-2.8,15.4-2.9c26.5,0,48,21.5,48,48C336,225.2,335.5,226.3,335.4,227.5z"]
  115044. };
  115045. var faViruses = {
  115046. prefix: 'fas',
  115047. iconName: 'viruses',
  115048. icon: [640, 512, [], "e076", "M624,352H611.88c-28.51,0-42.79-34.47-22.63-54.63l8.58-8.57a16,16,0,1,0-22.63-22.63l-8.57,8.58C546.47,294.91,512,280.63,512,252.12V240a16,16,0,0,0-32,0v12.12c0,28.51-34.47,42.79-54.63,22.63l-8.57-8.58a16,16,0,0,0-22.63,22.63l8.58,8.57c20.16,20.16,5.88,54.63-22.63,54.63H368a16,16,0,0,0,0,32h12.12c28.51,0,42.79,34.47,22.63,54.63l-8.58,8.57a16,16,0,1,0,22.63,22.63l8.57-8.58c20.16-20.16,54.63-5.88,54.63,22.63V496a16,16,0,0,0,32,0V483.88c0-28.51,34.47-42.79,54.63-22.63l8.57,8.58a16,16,0,1,0,22.63-22.63l-8.58-8.57C569.09,418.47,583.37,384,611.88,384H624a16,16,0,0,0,0-32ZM480,384a32,32,0,1,1,32-32A32,32,0,0,1,480,384ZM346.51,213.33h16.16a21.33,21.33,0,0,0,0-42.66H346.51c-38,0-57.05-46-30.17-72.84l11.43-11.44A21.33,21.33,0,0,0,297.6,56.23L286.17,67.66c-26.88,26.88-72.84,7.85-72.84-30.17V21.33a21.33,21.33,0,0,0-42.66,0V37.49c0,38-46,57.05-72.84,30.17L86.4,56.23A21.33,21.33,0,0,0,56.23,86.39L67.66,97.83c26.88,26.88,7.85,72.84-30.17,72.84H21.33a21.33,21.33,0,0,0,0,42.66H37.49c38,0,57.05,46,30.17,72.84L56.23,297.6A21.33,21.33,0,1,0,86.4,327.77l11.43-11.43c26.88-26.88,72.84-7.85,72.84,30.17v16.16a21.33,21.33,0,0,0,42.66,0V346.51c0-38,46-57.05,72.84-30.17l11.43,11.43a21.33,21.33,0,0,0,30.17-30.17l-11.43-11.43C289.46,259.29,308.49,213.33,346.51,213.33ZM160,192a32,32,0,1,1,32-32A32,32,0,0,1,160,192Zm80,32a16,16,0,1,1,16-16A16,16,0,0,1,240,224Z"]
  115049. };
  115050. var faVoicemail = {
  115051. prefix: 'fas',
  115052. iconName: 'voicemail',
  115053. icon: [640, 512, [], "f897", "M496 128a144 144 0 0 0-119.74 224H263.74A144 144 0 1 0 144 416h352a144 144 0 0 0 0-288zM64 272a80 80 0 1 1 80 80 80 80 0 0 1-80-80zm432 80a80 80 0 1 1 80-80 80 80 0 0 1-80 80z"]
  115054. };
  115055. var faVolleyballBall = {
  115056. prefix: 'fas',
  115057. iconName: 'volleyball-ball',
  115058. icon: [512, 512, [], "f45f", "M231.39 243.48a285.56 285.56 0 0 0-22.7-105.7c-90.8 42.4-157.5 122.4-180.3 216.8a249 249 0 0 0 56.9 81.1 333.87 333.87 0 0 1 146.1-192.2zm-36.9-134.4a284.23 284.23 0 0 0-57.4-70.7c-91 49.8-144.8 152.9-125 262.2 33.4-83.1 98.4-152 182.4-191.5zm187.6 165.1c8.6-99.8-27.3-197.5-97.5-264.4-14.7-1.7-51.6-5.5-98.9 8.5A333.87 333.87 0 0 1 279.19 241a285 285 0 0 0 102.9 33.18zm-124.7 9.5a286.33 286.33 0 0 0-80.2 72.6c82 57.3 184.5 75.1 277.5 47.8a247.15 247.15 0 0 0 42.2-89.9 336.1 336.1 0 0 1-80.9 10.4c-54.6-.1-108.9-14.1-158.6-40.9zm-98.3 99.7c-15.2 26-25.7 54.4-32.1 84.2a247.07 247.07 0 0 0 289-22.1c-112.9 16.1-203.3-24.8-256.9-62.1zm180.3-360.6c55.3 70.4 82.5 161.2 74.6 253.6a286.59 286.59 0 0 0 89.7-14.2c0-2 .3-4 .3-6 0-107.8-68.7-199.1-164.6-233.4z"]
  115059. };
  115060. var faVolumeDown = {
  115061. prefix: 'fas',
  115062. iconName: 'volume-down',
  115063. icon: [384, 512, [], "f027", "M215.03 72.04L126.06 161H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V89.02c0-21.47-25.96-31.98-40.97-16.98zm123.2 108.08c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 229.28 336 242.62 336 257c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.87z"]
  115064. };
  115065. var faVolumeMute = {
  115066. prefix: 'fas',
  115067. iconName: 'volume-mute',
  115068. icon: [512, 512, [], "f6a9", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zM461.64 256l45.64-45.64c6.3-6.3 6.3-16.52 0-22.82l-22.82-22.82c-6.3-6.3-16.52-6.3-22.82 0L416 210.36l-45.64-45.64c-6.3-6.3-16.52-6.3-22.82 0l-22.82 22.82c-6.3 6.3-6.3 16.52 0 22.82L370.36 256l-45.63 45.63c-6.3 6.3-6.3 16.52 0 22.82l22.82 22.82c6.3 6.3 16.52 6.3 22.82 0L416 301.64l45.64 45.64c6.3 6.3 16.52 6.3 22.82 0l22.82-22.82c6.3-6.3 6.3-16.52 0-22.82L461.64 256z"]
  115069. };
  115070. var faVolumeOff = {
  115071. prefix: 'fas',
  115072. iconName: 'volume-off',
  115073. icon: [256, 512, [], "f026", "M215 71l-89 89H24a24 24 0 0 0-24 24v144a24 24 0 0 0 24 24h102.06L215 441c15 15 41 4.47 41-17V88c0-21.47-26-32-41-17z"]
  115074. };
  115075. var faVolumeUp = {
  115076. prefix: 'fas',
  115077. iconName: 'volume-up',
  115078. icon: [576, 512, [], "f028", "M215.03 71.05L126.06 160H24c-13.26 0-24 10.74-24 24v144c0 13.25 10.74 24 24 24h102.06l88.97 88.95c15.03 15.03 40.97 4.47 40.97-16.97V88.02c0-21.46-25.96-31.98-40.97-16.97zm233.32-51.08c-11.17-7.33-26.18-4.24-33.51 6.95-7.34 11.17-4.22 26.18 6.95 33.51 66.27 43.49 105.82 116.6 105.82 195.58 0 78.98-39.55 152.09-105.82 195.58-11.17 7.32-14.29 22.34-6.95 33.5 7.04 10.71 21.93 14.56 33.51 6.95C528.27 439.58 576 351.33 576 256S528.27 72.43 448.35 19.97zM480 256c0-63.53-32.06-121.94-85.77-156.24-11.19-7.14-26.03-3.82-33.12 7.46s-3.78 26.21 7.41 33.36C408.27 165.97 432 209.11 432 256s-23.73 90.03-63.48 115.42c-11.19 7.14-14.5 22.07-7.41 33.36 6.51 10.36 21.12 15.14 33.12 7.46C447.94 377.94 480 319.54 480 256zm-141.77-76.87c-11.58-6.33-26.19-2.16-32.61 9.45-6.39 11.61-2.16 26.2 9.45 32.61C327.98 228.28 336 241.63 336 256c0 14.38-8.02 27.72-20.92 34.81-11.61 6.41-15.84 21-9.45 32.61 6.43 11.66 21.05 15.8 32.61 9.45 28.23-15.55 45.77-45 45.77-76.88s-17.54-61.32-45.78-76.86z"]
  115079. };
  115080. var faVoteYea = {
  115081. prefix: 'fas',
  115082. iconName: 'vote-yea',
  115083. icon: [640, 512, [], "f772", "M608 320h-64v64h22.4c5.3 0 9.6 3.6 9.6 8v16c0 4.4-4.3 8-9.6 8H73.6c-5.3 0-9.6-3.6-9.6-8v-16c0-4.4 4.3-8 9.6-8H96v-64H32c-17.7 0-32 14.3-32 32v96c0 17.7 14.3 32 32 32h576c17.7 0 32-14.3 32-32v-96c0-17.7-14.3-32-32-32zm-96 64V64.3c0-17.9-14.5-32.3-32.3-32.3H160.4C142.5 32 128 46.5 128 64.3V384h384zM211.2 202l25.5-25.3c4.2-4.2 11-4.2 15.2.1l41.3 41.6 95.2-94.4c4.2-4.2 11-4.2 15.2.1l25.3 25.5c4.2 4.2 4.2 11-.1 15.2L300.5 292c-4.2 4.2-11 4.2-15.2-.1l-74.1-74.7c-4.3-4.2-4.2-11 0-15.2z"]
  115084. };
  115085. var faVrCardboard = {
  115086. prefix: 'fas',
  115087. iconName: 'vr-cardboard',
  115088. icon: [640, 512, [], "f729", "M608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h160.22c25.19 0 48.03-14.77 58.36-37.74l27.74-61.64C286.21 331.08 302.35 320 320 320s33.79 11.08 41.68 28.62l27.74 61.64C399.75 433.23 422.6 448 447.78 448H608c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32zM160 304c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64zm320 0c-35.35 0-64-28.65-64-64s28.65-64 64-64 64 28.65 64 64-28.65 64-64 64z"]
  115089. };
  115090. var faWalking = {
  115091. prefix: 'fas',
  115092. iconName: 'walking',
  115093. icon: [320, 512, [], "f554", "M208 96c26.5 0 48-21.5 48-48S234.5 0 208 0s-48 21.5-48 48 21.5 48 48 48zm94.5 149.1l-23.3-11.8-9.7-29.4c-14.7-44.6-55.7-75.8-102.2-75.9-36-.1-55.9 10.1-93.3 25.2-21.6 8.7-39.3 25.2-49.7 46.2L17.6 213c-7.8 15.8-1.5 35 14.2 42.9 15.6 7.9 34.6 1.5 42.5-14.3L81 228c3.5-7 9.3-12.5 16.5-15.4l26.8-10.8-15.2 60.7c-5.2 20.8.4 42.9 14.9 58.8l59.9 65.4c7.2 7.9 12.3 17.4 14.9 27.7l18.3 73.3c4.3 17.1 21.7 27.6 38.8 23.3 17.1-4.3 27.6-21.7 23.3-38.8l-22.2-89c-2.6-10.3-7.7-19.9-14.9-27.7l-45.5-49.7 17.2-68.7 5.5 16.5c5.3 16.1 16.7 29.4 31.7 37l23.3 11.8c15.6 7.9 34.6 1.5 42.5-14.3 7.7-15.7 1.4-35.1-14.3-43zM73.6 385.8c-3.2 8.1-8 15.4-14.2 21.5l-50 50.1c-12.5 12.5-12.5 32.8 0 45.3s32.7 12.5 45.2 0l59.4-59.4c6.1-6.1 10.9-13.4 14.2-21.5l13.5-33.8c-55.3-60.3-38.7-41.8-47.4-53.7l-20.7 51.5z"]
  115094. };
  115095. var faWallet = {
  115096. prefix: 'fas',
  115097. iconName: 'wallet',
  115098. icon: [512, 512, [], "f555", "M461.2 128H80c-8.84 0-16-7.16-16-16s7.16-16 16-16h384c8.84 0 16-7.16 16-16 0-26.51-21.49-48-48-48H64C28.65 32 0 60.65 0 96v320c0 35.35 28.65 64 64 64h397.2c28.02 0 50.8-21.53 50.8-48V176c0-26.47-22.78-48-50.8-48zM416 336c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32z"]
  115099. };
  115100. var faWarehouse = {
  115101. prefix: 'fas',
  115102. iconName: 'warehouse',
  115103. icon: [640, 512, [], "f494", "M504 352H136.4c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0 96H136.1c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm0-192H136.6c-4.4 0-8 3.6-8 8l-.1 48c0 4.4 3.6 8 8 8H504c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm106.5-139L338.4 3.7a48.15 48.15 0 0 0-36.9 0L29.5 117C11.7 124.5 0 141.9 0 161.3V504c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V256c0-17.6 14.6-32 32.6-32h382.8c18 0 32.6 14.4 32.6 32v248c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8V161.3c0-19.4-11.7-36.8-29.5-44.3z"]
  115104. };
  115105. var faWater = {
  115106. prefix: 'fas',
  115107. iconName: 'water',
  115108. icon: [576, 512, [], "f773", "M562.1 383.9c-21.5-2.4-42.1-10.5-57.9-22.9-14.1-11.1-34.2-11.3-48.2 0-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3zm0-144c-21.5-2.4-42.1-10.5-57.9-22.9-14.1-11.1-34.2-11.3-48.2 0-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3zm0-144C540.6 93.4 520 85.4 504.2 73 490.1 61.9 470 61.7 456 73c-37.9 30.4-107.2 30.4-145.7-1.5-13.5-11.2-33-9.1-46.7 1.8-38 30.1-106.9 30-145.2-1.7-13.5-11.2-33.3-8.9-47.1 2-15.5 12.2-36 20.1-57.7 22.4-7.9.8-13.6 7.8-13.6 15.7v32.2c0 9.1 7.6 16.8 16.7 16 28.8-2.5 56.1-11.4 79.4-25.9 56.5 34.6 137 34.1 192 0 56.5 34.6 137 34.1 192 0 23.3 14.2 50.9 23.3 79.1 25.8 9.1.8 16.7-6.9 16.7-16v-31.6c.1-8-5.7-15.4-13.8-16.3z"]
  115109. };
  115110. var faWaveSquare = {
  115111. prefix: 'fas',
  115112. iconName: 'wave-square',
  115113. icon: [640, 512, [], "f83e", "M476 480H324a36 36 0 0 1-36-36V96h-96v156a36 36 0 0 1-36 36H16a16 16 0 0 1-16-16v-32a16 16 0 0 1 16-16h112V68a36 36 0 0 1 36-36h152a36 36 0 0 1 36 36v348h96V260a36 36 0 0 1 36-36h140a16 16 0 0 1 16 16v32a16 16 0 0 1-16 16H512v156a36 36 0 0 1-36 36z"]
  115114. };
  115115. var faWeight = {
  115116. prefix: 'fas',
  115117. iconName: 'weight',
  115118. icon: [512, 512, [], "f496", "M448 64h-25.98C438.44 92.28 448 125.01 448 160c0 105.87-86.13 192-192 192S64 265.87 64 160c0-34.99 9.56-67.72 25.98-96H64C28.71 64 0 92.71 0 128v320c0 35.29 28.71 64 64 64h384c35.29 0 64-28.71 64-64V128c0-35.29-28.71-64-64-64zM256 320c88.37 0 160-71.63 160-160S344.37 0 256 0 96 71.63 96 160s71.63 160 160 160zm-.3-151.94l33.58-78.36c3.5-8.17 12.94-11.92 21.03-8.41 8.12 3.48 11.88 12.89 8.41 21l-33.67 78.55C291.73 188 296 197.45 296 208c0 22.09-17.91 40-40 40s-40-17.91-40-40c0-21.98 17.76-39.77 39.7-39.94z"]
  115119. };
  115120. var faWeightHanging = {
  115121. prefix: 'fas',
  115122. iconName: 'weight-hanging',
  115123. icon: [512, 512, [], "f5cd", "M510.28 445.86l-73.03-292.13c-3.8-15.19-16.44-25.72-30.87-25.72h-60.25c3.57-10.05 5.88-20.72 5.88-32 0-53.02-42.98-96-96-96s-96 42.98-96 96c0 11.28 2.3 21.95 5.88 32h-60.25c-14.43 0-27.08 10.54-30.87 25.72L1.72 445.86C-6.61 479.17 16.38 512 48.03 512h415.95c31.64 0 54.63-32.83 46.3-66.14zM256 128c-17.64 0-32-14.36-32-32s14.36-32 32-32 32 14.36 32 32-14.36 32-32 32z"]
  115124. };
  115125. var faWheelchair = {
  115126. prefix: 'fas',
  115127. iconName: 'wheelchair',
  115128. icon: [512, 512, [], "f193", "M496.101 385.669l14.227 28.663c3.929 7.915.697 17.516-7.218 21.445l-65.465 32.886c-16.049 7.967-35.556 1.194-43.189-15.055L331.679 320H192c-15.925 0-29.426-11.71-31.679-27.475C126.433 55.308 128.38 70.044 128 64c0-36.358 30.318-65.635 67.052-63.929 33.271 1.545 60.048 28.905 60.925 62.201.868 32.933-23.152 60.423-54.608 65.039l4.67 32.69H336c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16H215.182l4.572 32H352a32 32 0 0 1 28.962 18.392L438.477 396.8l36.178-18.349c7.915-3.929 17.517-.697 21.446 7.218zM311.358 352h-24.506c-7.788 54.204-54.528 96-110.852 96-61.757 0-112-50.243-112-112 0-41.505 22.694-77.809 56.324-97.156-3.712-25.965-6.844-47.86-9.488-66.333C45.956 198.464 0 261.963 0 336c0 97.047 78.953 176 176 176 71.87 0 133.806-43.308 161.11-105.192L311.358 352z"]
  115129. };
  115130. var faWifi = {
  115131. prefix: 'fas',
  115132. iconName: 'wifi',
  115133. icon: [640, 512, [], "f1eb", "M634.91 154.88C457.74-8.99 182.19-8.93 5.09 154.88c-6.66 6.16-6.79 16.59-.35 22.98l34.24 33.97c6.14 6.1 16.02 6.23 22.4.38 145.92-133.68 371.3-133.71 517.25 0 6.38 5.85 16.26 5.71 22.4-.38l34.24-33.97c6.43-6.39 6.3-16.82-.36-22.98zM320 352c-35.35 0-64 28.65-64 64s28.65 64 64 64 64-28.65 64-64-28.65-64-64-64zm202.67-83.59c-115.26-101.93-290.21-101.82-405.34 0-6.9 6.1-7.12 16.69-.57 23.15l34.44 33.99c6 5.92 15.66 6.32 22.05.8 83.95-72.57 209.74-72.41 293.49 0 6.39 5.52 16.05 5.13 22.05-.8l34.44-33.99c6.56-6.46 6.33-17.06-.56-23.15z"]
  115134. };
  115135. var faWind = {
  115136. prefix: 'fas',
  115137. iconName: 'wind',
  115138. icon: [512, 512, [], "f72e", "M156.7 256H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h142.2c15.9 0 30.8 10.9 33.4 26.6 3.3 20-12.1 37.4-31.6 37.4-14.1 0-26.1-9.2-30.4-21.9-2.1-6.3-8.6-10.1-15.2-10.1H81.6c-9.8 0-17.7 8.8-15.9 18.4 8.6 44.1 47.6 77.6 94.2 77.6 57.1 0 102.7-50.1 95.2-108.6C249 291 205.4 256 156.7 256zM16 224h336c59.7 0 106.8-54.8 93.8-116.7-7.6-36.2-36.9-65.5-73.1-73.1-55.4-11.6-105.1 24.9-114.9 75.5-1.9 9.6 6.1 18.3 15.8 18.3h32.8c6.7 0 13.1-3.8 15.2-10.1C325.9 105.2 337.9 96 352 96c19.4 0 34.9 17.4 31.6 37.4-2.6 15.7-17.4 26.6-33.4 26.6H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16zm384 32H243.7c19.3 16.6 33.2 38.8 39.8 64H400c26.5 0 48 21.5 48 48s-21.5 48-48 48c-17.9 0-33.3-9.9-41.6-24.4-2.9-5-8.7-7.6-14.5-7.6h-33.8c-10.9 0-19 10.8-15.3 21.1 17.8 50.6 70.5 84.8 129.4 72.3 41.2-8.7 75.1-41.6 84.7-82.7C526 321.5 470.5 256 400 256z"]
  115139. };
  115140. var faWindowClose = {
  115141. prefix: 'fas',
  115142. iconName: 'window-close',
  115143. icon: [512, 512, [], "f410", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-83.6 290.5c4.8 4.8 4.8 12.6 0 17.4l-40.5 40.5c-4.8 4.8-12.6 4.8-17.4 0L256 313.3l-66.5 67.1c-4.8 4.8-12.6 4.8-17.4 0l-40.5-40.5c-4.8-4.8-4.8-12.6 0-17.4l67.1-66.5-67.1-66.5c-4.8-4.8-4.8-12.6 0-17.4l40.5-40.5c4.8-4.8 12.6-4.8 17.4 0l66.5 67.1 66.5-67.1c4.8-4.8 12.6-4.8 17.4 0l40.5 40.5c4.8 4.8 4.8 12.6 0 17.4L313.3 256l67.1 66.5z"]
  115144. };
  115145. var faWindowMaximize = {
  115146. prefix: 'fas',
  115147. iconName: 'window-maximize',
  115148. icon: [512, 512, [], "f2d0", "M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm-16 160H64v-84c0-6.6 5.4-12 12-12h360c6.6 0 12 5.4 12 12v84z"]
  115149. };
  115150. var faWindowMinimize = {
  115151. prefix: 'fas',
  115152. iconName: 'window-minimize',
  115153. icon: [512, 512, [], "f2d1", "M464 352H48c-26.5 0-48 21.5-48 48v32c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48v-32c0-26.5-21.5-48-48-48z"]
  115154. };
  115155. var faWindowRestore = {
  115156. prefix: 'fas',
  115157. iconName: 'window-restore',
  115158. icon: [512, 512, [], "f2d2", "M512 48v288c0 26.5-21.5 48-48 48h-48V176c0-44.1-35.9-80-80-80H128V48c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zM384 176v288c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48h288c26.5 0 48 21.5 48 48zm-68 28c0-6.6-5.4-12-12-12H76c-6.6 0-12 5.4-12 12v52h252v-52z"]
  115159. };
  115160. var faWineBottle = {
  115161. prefix: 'fas',
  115162. iconName: 'wine-bottle',
  115163. icon: [512, 512, [], "f72f", "M507.31 72.57L439.43 4.69c-6.25-6.25-16.38-6.25-22.63 0l-22.63 22.63c-6.25 6.25-6.25 16.38 0 22.63l-76.67 76.67c-46.58-19.7-102.4-10.73-140.37 27.23L18.75 312.23c-24.99 24.99-24.99 65.52 0 90.51l90.51 90.51c24.99 24.99 65.52 24.99 90.51 0l158.39-158.39c37.96-37.96 46.93-93.79 27.23-140.37l76.67-76.67c6.25 6.25 16.38 6.25 22.63 0l22.63-22.63c6.24-6.24 6.24-16.37-.01-22.62zM179.22 423.29l-90.51-90.51 122.04-122.04 90.51 90.51-122.04 122.04z"]
  115164. };
  115165. var faWineGlass = {
  115166. prefix: 'fas',
  115167. iconName: 'wine-glass',
  115168. icon: [288, 512, [], "f4e3", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40z"]
  115169. };
  115170. var faWineGlassAlt = {
  115171. prefix: 'fas',
  115172. iconName: 'wine-glass-alt',
  115173. icon: [288, 512, [], "f5ce", "M216 464h-40V346.81c68.47-15.89 118.05-79.91 111.4-154.16l-15.95-178.1C270.71 6.31 263.9 0 255.74 0H32.26c-8.15 0-14.97 6.31-15.7 14.55L.6 192.66C-6.05 266.91 43.53 330.93 112 346.82V464H72c-22.09 0-40 17.91-40 40 0 4.42 3.58 8 8 8h208c4.42 0 8-3.58 8-8 0-22.09-17.91-40-40-40zM61.75 48h164.5l7.17 80H54.58l7.17-80z"]
  115174. };
  115175. var faWonSign = {
  115176. prefix: 'fas',
  115177. iconName: 'won-sign',
  115178. icon: [576, 512, [], "f159", "M564 192c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-48l18.6-80.6c1.7-7.5-4-14.7-11.7-14.7h-46.1c-5.7 0-10.6 4-11.7 9.5L450.7 128H340.8l-19.7-86c-1.3-5.5-6.1-9.3-11.7-9.3h-44c-5.6 0-10.4 3.8-11.7 9.3l-20 86H125l-17.5-85.7c-1.1-5.6-6.1-9.6-11.8-9.6H53.6c-7.7 0-13.4 7.1-11.7 14.6L60 128H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h62.3l7.2 32H12c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h83.9l40.9 182.6c1.2 5.5 6.1 9.4 11.7 9.4h56.8c5.6 0 10.4-3.9 11.7-9.3L259.3 288h55.1l42.4 182.7c1.3 5.4 6.1 9.3 11.7 9.3h56.8c5.6 0 10.4-3.9 11.7-9.3L479.1 288H564c6.6 0 12-5.4 12-12v-40c0-6.6-5.4-12-12-12h-70.1l7.4-32zM183.8 342c-6.2 25.8-6.8 47.2-7.3 47.2h-1.1s-1.7-22-6.8-47.2l-11-54h38.8zm27.5-118h-66.8l-6.5-32h80.8zm62.9 0l2-8.6c1.9-8 3.5-16 4.8-23.4h11.8c1.3 7.4 2.9 15.4 4.8 23.4l2 8.6zm130.9 118c-5.1 25.2-6.8 47.2-6.8 47.2h-1.1c-.6 0-1.1-21.4-7.3-47.2l-12.4-54h39.1zm25.2-118h-67.4l-7.3-32h81.6z"]
  115179. };
  115180. var faWrench = {
  115181. prefix: 'fas',
  115182. iconName: 'wrench',
  115183. icon: [512, 512, [], "f0ad", "M507.73 109.1c-2.24-9.03-13.54-12.09-20.12-5.51l-74.36 74.36-67.88-11.31-11.31-67.88 74.36-74.36c6.62-6.62 3.43-17.9-5.66-20.16-47.38-11.74-99.55.91-136.58 37.93-39.64 39.64-50.55 97.1-34.05 147.2L18.74 402.76c-24.99 24.99-24.99 65.51 0 90.5 24.99 24.99 65.51 24.99 90.5 0l213.21-213.21c50.12 16.71 107.47 5.68 147.37-34.22 37.07-37.07 49.7-89.32 37.91-136.73zM64 472c-13.25 0-24-10.75-24-24 0-13.26 10.75-24 24-24s24 10.74 24 24c0 13.25-10.75 24-24 24z"]
  115184. };
  115185. var faXRay = {
  115186. prefix: 'fas',
  115187. iconName: 'x-ray',
  115188. icon: [640, 512, [], "f497", "M240 384c-8.8 0-16 7.2-16 16s7.2 16 16 16 16-7.2 16-16-7.2-16-16-16zm160 32c8.8 0 16-7.2 16-16s-7.2-16-16-16-16 7.2-16 16 7.2 16 16 16zM624 0H16C7.2 0 0 7.2 0 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16V16c0-8.8-7.2-16-16-16zm0 448h-48V96H64v352H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h608c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zM480 248c0 4.4-3.6 8-8 8H336v32h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h64c26.5 0 48 21.5 48 48s-21.5 48-48 48-48-21.5-48-48v-16h-64v16c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48h64v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-32H168c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h136v-32H200c-4.4 0-8-3.6-8-8v-16c0-4.4 3.6-8 8-8h104v-24c0-4.4 3.6-8 8-8h16c4.4 0 8 3.6 8 8v24h104c4.4 0 8 3.6 8 8v16c0 4.4-3.6 8-8 8H336v32h136c4.4 0 8 3.6 8 8v16z"]
  115189. };
  115190. var faYenSign = {
  115191. prefix: 'fas',
  115192. iconName: 'yen-sign',
  115193. icon: [384, 512, [], "f157", "M351.2 32h-65.3c-4.6 0-8.8 2.6-10.8 6.7l-55.4 113.2c-14.5 34.7-27.1 71.9-27.1 71.9h-1.3s-12.6-37.2-27.1-71.9L108.8 38.7c-2-4.1-6.2-6.7-10.8-6.7H32.8c-9.1 0-14.8 9.7-10.6 17.6L102.3 200H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h88.2l19.8 37.2V320H44c-6.6 0-12 5.4-12 12v32c0 6.6 5.4 12 12 12h108v92c0 6.6 5.4 12 12 12h56c6.6 0 12-5.4 12-12v-92h108c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12H232v-26.8l19.8-37.2H340c6.6 0 12-5.4 12-12v-32c0-6.6-5.4-12-12-12h-58.3l80.1-150.4c4.3-7.9-1.5-17.6-10.6-17.6z"]
  115194. };
  115195. var faYinYang = {
  115196. prefix: 'fas',
  115197. iconName: 'yin-yang',
  115198. icon: [496, 512, [], "f6ad", "M248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm0 376c-17.67 0-32-14.33-32-32s14.33-32 32-32 32 14.33 32 32-14.33 32-32 32zm0-128c-53.02 0-96 42.98-96 96s42.98 96 96 96c-106.04 0-192-85.96-192-192S141.96 64 248 64c53.02 0 96 42.98 96 96s-42.98 96-96 96zm0-128c-17.67 0-32 14.33-32 32s14.33 32 32 32 32-14.33 32-32-14.33-32-32-32z"]
  115199. };
  115200. var _iconsCache = {
  115201. faAd: faAd,
  115202. faAddressBook: faAddressBook,
  115203. faAddressCard: faAddressCard,
  115204. faAdjust: faAdjust,
  115205. faAirFreshener: faAirFreshener,
  115206. faAlignCenter: faAlignCenter,
  115207. faAlignJustify: faAlignJustify,
  115208. faAlignLeft: faAlignLeft,
  115209. faAlignRight: faAlignRight,
  115210. faAllergies: faAllergies,
  115211. faAmbulance: faAmbulance,
  115212. faAmericanSignLanguageInterpreting: faAmericanSignLanguageInterpreting,
  115213. faAnchor: faAnchor,
  115214. faAngleDoubleDown: faAngleDoubleDown,
  115215. faAngleDoubleLeft: faAngleDoubleLeft,
  115216. faAngleDoubleRight: faAngleDoubleRight,
  115217. faAngleDoubleUp: faAngleDoubleUp,
  115218. faAngleDown: faAngleDown,
  115219. faAngleLeft: faAngleLeft,
  115220. faAngleRight: faAngleRight,
  115221. faAngleUp: faAngleUp,
  115222. faAngry: faAngry,
  115223. faAnkh: faAnkh,
  115224. faAppleAlt: faAppleAlt,
  115225. faArchive: faArchive,
  115226. faArchway: faArchway,
  115227. faArrowAltCircleDown: faArrowAltCircleDown,
  115228. faArrowAltCircleLeft: faArrowAltCircleLeft,
  115229. faArrowAltCircleRight: faArrowAltCircleRight,
  115230. faArrowAltCircleUp: faArrowAltCircleUp,
  115231. faArrowCircleDown: faArrowCircleDown,
  115232. faArrowCircleLeft: faArrowCircleLeft,
  115233. faArrowCircleRight: faArrowCircleRight,
  115234. faArrowCircleUp: faArrowCircleUp,
  115235. faArrowDown: faArrowDown,
  115236. faArrowLeft: faArrowLeft,
  115237. faArrowRight: faArrowRight,
  115238. faArrowUp: faArrowUp,
  115239. faArrowsAlt: faArrowsAlt,
  115240. faArrowsAltH: faArrowsAltH,
  115241. faArrowsAltV: faArrowsAltV,
  115242. faAssistiveListeningSystems: faAssistiveListeningSystems,
  115243. faAsterisk: faAsterisk,
  115244. faAt: faAt,
  115245. faAtlas: faAtlas,
  115246. faAtom: faAtom,
  115247. faAudioDescription: faAudioDescription,
  115248. faAward: faAward,
  115249. faBaby: faBaby,
  115250. faBabyCarriage: faBabyCarriage,
  115251. faBackspace: faBackspace,
  115252. faBackward: faBackward,
  115253. faBacon: faBacon,
  115254. faBacteria: faBacteria,
  115255. faBacterium: faBacterium,
  115256. faBahai: faBahai,
  115257. faBalanceScale: faBalanceScale,
  115258. faBalanceScaleLeft: faBalanceScaleLeft,
  115259. faBalanceScaleRight: faBalanceScaleRight,
  115260. faBan: faBan,
  115261. faBandAid: faBandAid,
  115262. faBarcode: faBarcode,
  115263. faBars: faBars,
  115264. faBaseballBall: faBaseballBall,
  115265. faBasketballBall: faBasketballBall,
  115266. faBath: faBath,
  115267. faBatteryEmpty: faBatteryEmpty,
  115268. faBatteryFull: faBatteryFull,
  115269. faBatteryHalf: faBatteryHalf,
  115270. faBatteryQuarter: faBatteryQuarter,
  115271. faBatteryThreeQuarters: faBatteryThreeQuarters,
  115272. faBed: faBed,
  115273. faBeer: faBeer,
  115274. faBell: faBell,
  115275. faBellSlash: faBellSlash,
  115276. faBezierCurve: faBezierCurve,
  115277. faBible: faBible,
  115278. faBicycle: faBicycle,
  115279. faBiking: faBiking,
  115280. faBinoculars: faBinoculars,
  115281. faBiohazard: faBiohazard,
  115282. faBirthdayCake: faBirthdayCake,
  115283. faBlender: faBlender,
  115284. faBlenderPhone: faBlenderPhone,
  115285. faBlind: faBlind,
  115286. faBlog: faBlog,
  115287. faBold: faBold,
  115288. faBolt: faBolt,
  115289. faBomb: faBomb,
  115290. faBone: faBone,
  115291. faBong: faBong,
  115292. faBook: faBook,
  115293. faBookDead: faBookDead,
  115294. faBookMedical: faBookMedical,
  115295. faBookOpen: faBookOpen,
  115296. faBookReader: faBookReader,
  115297. faBookmark: faBookmark,
  115298. faBorderAll: faBorderAll,
  115299. faBorderNone: faBorderNone,
  115300. faBorderStyle: faBorderStyle,
  115301. faBowlingBall: faBowlingBall,
  115302. faBox: faBox,
  115303. faBoxOpen: faBoxOpen,
  115304. faBoxTissue: faBoxTissue,
  115305. faBoxes: faBoxes,
  115306. faBraille: faBraille,
  115307. faBrain: faBrain,
  115308. faBreadSlice: faBreadSlice,
  115309. faBriefcase: faBriefcase,
  115310. faBriefcaseMedical: faBriefcaseMedical,
  115311. faBroadcastTower: faBroadcastTower,
  115312. faBroom: faBroom,
  115313. faBrush: faBrush,
  115314. faBug: faBug,
  115315. faBuilding: faBuilding,
  115316. faBullhorn: faBullhorn,
  115317. faBullseye: faBullseye,
  115318. faBurn: faBurn,
  115319. faBus: faBus,
  115320. faBusAlt: faBusAlt,
  115321. faBusinessTime: faBusinessTime,
  115322. faCalculator: faCalculator,
  115323. faCalendar: faCalendar,
  115324. faCalendarAlt: faCalendarAlt,
  115325. faCalendarCheck: faCalendarCheck,
  115326. faCalendarDay: faCalendarDay,
  115327. faCalendarMinus: faCalendarMinus,
  115328. faCalendarPlus: faCalendarPlus,
  115329. faCalendarTimes: faCalendarTimes,
  115330. faCalendarWeek: faCalendarWeek,
  115331. faCamera: faCamera,
  115332. faCameraRetro: faCameraRetro,
  115333. faCampground: faCampground,
  115334. faCandyCane: faCandyCane,
  115335. faCannabis: faCannabis,
  115336. faCapsules: faCapsules,
  115337. faCar: faCar,
  115338. faCarAlt: faCarAlt,
  115339. faCarBattery: faCarBattery,
  115340. faCarCrash: faCarCrash,
  115341. faCarSide: faCarSide,
  115342. faCaravan: faCaravan,
  115343. faCaretDown: faCaretDown,
  115344. faCaretLeft: faCaretLeft,
  115345. faCaretRight: faCaretRight,
  115346. faCaretSquareDown: faCaretSquareDown,
  115347. faCaretSquareLeft: faCaretSquareLeft,
  115348. faCaretSquareRight: faCaretSquareRight,
  115349. faCaretSquareUp: faCaretSquareUp,
  115350. faCaretUp: faCaretUp,
  115351. faCarrot: faCarrot,
  115352. faCartArrowDown: faCartArrowDown,
  115353. faCartPlus: faCartPlus,
  115354. faCashRegister: faCashRegister,
  115355. faCat: faCat,
  115356. faCertificate: faCertificate,
  115357. faChair: faChair,
  115358. faChalkboard: faChalkboard,
  115359. faChalkboardTeacher: faChalkboardTeacher,
  115360. faChargingStation: faChargingStation,
  115361. faChartArea: faChartArea,
  115362. faChartBar: faChartBar,
  115363. faChartLine: faChartLine,
  115364. faChartPie: faChartPie,
  115365. faCheck: faCheck,
  115366. faCheckCircle: faCheckCircle,
  115367. faCheckDouble: faCheckDouble,
  115368. faCheckSquare: faCheckSquare,
  115369. faCheese: faCheese,
  115370. faChess: faChess,
  115371. faChessBishop: faChessBishop,
  115372. faChessBoard: faChessBoard,
  115373. faChessKing: faChessKing,
  115374. faChessKnight: faChessKnight,
  115375. faChessPawn: faChessPawn,
  115376. faChessQueen: faChessQueen,
  115377. faChessRook: faChessRook,
  115378. faChevronCircleDown: faChevronCircleDown,
  115379. faChevronCircleLeft: faChevronCircleLeft,
  115380. faChevronCircleRight: faChevronCircleRight,
  115381. faChevronCircleUp: faChevronCircleUp,
  115382. faChevronDown: faChevronDown,
  115383. faChevronLeft: faChevronLeft,
  115384. faChevronRight: faChevronRight,
  115385. faChevronUp: faChevronUp,
  115386. faChild: faChild,
  115387. faChurch: faChurch,
  115388. faCircle: faCircle,
  115389. faCircleNotch: faCircleNotch,
  115390. faCity: faCity,
  115391. faClinicMedical: faClinicMedical,
  115392. faClipboard: faClipboard,
  115393. faClipboardCheck: faClipboardCheck,
  115394. faClipboardList: faClipboardList,
  115395. faClock: faClock,
  115396. faClone: faClone,
  115397. faClosedCaptioning: faClosedCaptioning,
  115398. faCloud: faCloud,
  115399. faCloudDownloadAlt: faCloudDownloadAlt,
  115400. faCloudMeatball: faCloudMeatball,
  115401. faCloudMoon: faCloudMoon,
  115402. faCloudMoonRain: faCloudMoonRain,
  115403. faCloudRain: faCloudRain,
  115404. faCloudShowersHeavy: faCloudShowersHeavy,
  115405. faCloudSun: faCloudSun,
  115406. faCloudSunRain: faCloudSunRain,
  115407. faCloudUploadAlt: faCloudUploadAlt,
  115408. faCocktail: faCocktail,
  115409. faCode: faCode,
  115410. faCodeBranch: faCodeBranch,
  115411. faCoffee: faCoffee,
  115412. faCog: faCog,
  115413. faCogs: faCogs,
  115414. faCoins: faCoins,
  115415. faColumns: faColumns,
  115416. faComment: faComment,
  115417. faCommentAlt: faCommentAlt,
  115418. faCommentDollar: faCommentDollar,
  115419. faCommentDots: faCommentDots,
  115420. faCommentMedical: faCommentMedical,
  115421. faCommentSlash: faCommentSlash,
  115422. faComments: faComments,
  115423. faCommentsDollar: faCommentsDollar,
  115424. faCompactDisc: faCompactDisc,
  115425. faCompass: faCompass,
  115426. faCompress: faCompress,
  115427. faCompressAlt: faCompressAlt,
  115428. faCompressArrowsAlt: faCompressArrowsAlt,
  115429. faConciergeBell: faConciergeBell,
  115430. faCookie: faCookie,
  115431. faCookieBite: faCookieBite,
  115432. faCopy: faCopy,
  115433. faCopyright: faCopyright,
  115434. faCouch: faCouch,
  115435. faCreditCard: faCreditCard,
  115436. faCrop: faCrop,
  115437. faCropAlt: faCropAlt,
  115438. faCross: faCross,
  115439. faCrosshairs: faCrosshairs,
  115440. faCrow: faCrow,
  115441. faCrown: faCrown,
  115442. faCrutch: faCrutch,
  115443. faCube: faCube,
  115444. faCubes: faCubes,
  115445. faCut: faCut,
  115446. faDatabase: faDatabase,
  115447. faDeaf: faDeaf,
  115448. faDemocrat: faDemocrat,
  115449. faDesktop: faDesktop,
  115450. faDharmachakra: faDharmachakra,
  115451. faDiagnoses: faDiagnoses,
  115452. faDice: faDice,
  115453. faDiceD20: faDiceD20,
  115454. faDiceD6: faDiceD6,
  115455. faDiceFive: faDiceFive,
  115456. faDiceFour: faDiceFour,
  115457. faDiceOne: faDiceOne,
  115458. faDiceSix: faDiceSix,
  115459. faDiceThree: faDiceThree,
  115460. faDiceTwo: faDiceTwo,
  115461. faDigitalTachograph: faDigitalTachograph,
  115462. faDirections: faDirections,
  115463. faDisease: faDisease,
  115464. faDivide: faDivide,
  115465. faDizzy: faDizzy,
  115466. faDna: faDna,
  115467. faDog: faDog,
  115468. faDollarSign: faDollarSign,
  115469. faDolly: faDolly,
  115470. faDollyFlatbed: faDollyFlatbed,
  115471. faDonate: faDonate,
  115472. faDoorClosed: faDoorClosed,
  115473. faDoorOpen: faDoorOpen,
  115474. faDotCircle: faDotCircle,
  115475. faDove: faDove,
  115476. faDownload: faDownload,
  115477. faDraftingCompass: faDraftingCompass,
  115478. faDragon: faDragon,
  115479. faDrawPolygon: faDrawPolygon,
  115480. faDrum: faDrum,
  115481. faDrumSteelpan: faDrumSteelpan,
  115482. faDrumstickBite: faDrumstickBite,
  115483. faDumbbell: faDumbbell,
  115484. faDumpster: faDumpster,
  115485. faDumpsterFire: faDumpsterFire,
  115486. faDungeon: faDungeon,
  115487. faEdit: faEdit,
  115488. faEgg: faEgg,
  115489. faEject: faEject,
  115490. faEllipsisH: faEllipsisH,
  115491. faEllipsisV: faEllipsisV,
  115492. faEnvelope: faEnvelope,
  115493. faEnvelopeOpen: faEnvelopeOpen,
  115494. faEnvelopeOpenText: faEnvelopeOpenText,
  115495. faEnvelopeSquare: faEnvelopeSquare,
  115496. faEquals: faEquals,
  115497. faEraser: faEraser,
  115498. faEthernet: faEthernet,
  115499. faEuroSign: faEuroSign,
  115500. faExchangeAlt: faExchangeAlt,
  115501. faExclamation: faExclamation,
  115502. faExclamationCircle: faExclamationCircle,
  115503. faExclamationTriangle: faExclamationTriangle,
  115504. faExpand: faExpand,
  115505. faExpandAlt: faExpandAlt,
  115506. faExpandArrowsAlt: faExpandArrowsAlt,
  115507. faExternalLinkAlt: faExternalLinkAlt,
  115508. faExternalLinkSquareAlt: faExternalLinkSquareAlt,
  115509. faEye: faEye,
  115510. faEyeDropper: faEyeDropper,
  115511. faEyeSlash: faEyeSlash,
  115512. faFan: faFan,
  115513. faFastBackward: faFastBackward,
  115514. faFastForward: faFastForward,
  115515. faFaucet: faFaucet,
  115516. faFax: faFax,
  115517. faFeather: faFeather,
  115518. faFeatherAlt: faFeatherAlt,
  115519. faFemale: faFemale,
  115520. faFighterJet: faFighterJet,
  115521. faFile: faFile,
  115522. faFileAlt: faFileAlt,
  115523. faFileArchive: faFileArchive,
  115524. faFileAudio: faFileAudio,
  115525. faFileCode: faFileCode,
  115526. faFileContract: faFileContract,
  115527. faFileCsv: faFileCsv,
  115528. faFileDownload: faFileDownload,
  115529. faFileExcel: faFileExcel,
  115530. faFileExport: faFileExport,
  115531. faFileImage: faFileImage,
  115532. faFileImport: faFileImport,
  115533. faFileInvoice: faFileInvoice,
  115534. faFileInvoiceDollar: faFileInvoiceDollar,
  115535. faFileMedical: faFileMedical,
  115536. faFileMedicalAlt: faFileMedicalAlt,
  115537. faFilePdf: faFilePdf,
  115538. faFilePowerpoint: faFilePowerpoint,
  115539. faFilePrescription: faFilePrescription,
  115540. faFileSignature: faFileSignature,
  115541. faFileUpload: faFileUpload,
  115542. faFileVideo: faFileVideo,
  115543. faFileWord: faFileWord,
  115544. faFill: faFill,
  115545. faFillDrip: faFillDrip,
  115546. faFilm: faFilm,
  115547. faFilter: faFilter,
  115548. faFingerprint: faFingerprint,
  115549. faFire: faFire,
  115550. faFireAlt: faFireAlt,
  115551. faFireExtinguisher: faFireExtinguisher,
  115552. faFirstAid: faFirstAid,
  115553. faFish: faFish,
  115554. faFistRaised: faFistRaised,
  115555. faFlag: faFlag,
  115556. faFlagCheckered: faFlagCheckered,
  115557. faFlagUsa: faFlagUsa,
  115558. faFlask: faFlask,
  115559. faFlushed: faFlushed,
  115560. faFolder: faFolder,
  115561. faFolderMinus: faFolderMinus,
  115562. faFolderOpen: faFolderOpen,
  115563. faFolderPlus: faFolderPlus,
  115564. faFont: faFont,
  115565. faFontAwesomeLogoFull: faFontAwesomeLogoFull,
  115566. faFootballBall: faFootballBall,
  115567. faForward: faForward,
  115568. faFrog: faFrog,
  115569. faFrown: faFrown,
  115570. faFrownOpen: faFrownOpen,
  115571. faFunnelDollar: faFunnelDollar,
  115572. faFutbol: faFutbol,
  115573. faGamepad: faGamepad,
  115574. faGasPump: faGasPump,
  115575. faGavel: faGavel,
  115576. faGem: faGem,
  115577. faGenderless: faGenderless,
  115578. faGhost: faGhost,
  115579. faGift: faGift,
  115580. faGifts: faGifts,
  115581. faGlassCheers: faGlassCheers,
  115582. faGlassMartini: faGlassMartini,
  115583. faGlassMartiniAlt: faGlassMartiniAlt,
  115584. faGlassWhiskey: faGlassWhiskey,
  115585. faGlasses: faGlasses,
  115586. faGlobe: faGlobe,
  115587. faGlobeAfrica: faGlobeAfrica,
  115588. faGlobeAmericas: faGlobeAmericas,
  115589. faGlobeAsia: faGlobeAsia,
  115590. faGlobeEurope: faGlobeEurope,
  115591. faGolfBall: faGolfBall,
  115592. faGopuram: faGopuram,
  115593. faGraduationCap: faGraduationCap,
  115594. faGreaterThan: faGreaterThan,
  115595. faGreaterThanEqual: faGreaterThanEqual,
  115596. faGrimace: faGrimace,
  115597. faGrin: faGrin,
  115598. faGrinAlt: faGrinAlt,
  115599. faGrinBeam: faGrinBeam,
  115600. faGrinBeamSweat: faGrinBeamSweat,
  115601. faGrinHearts: faGrinHearts,
  115602. faGrinSquint: faGrinSquint,
  115603. faGrinSquintTears: faGrinSquintTears,
  115604. faGrinStars: faGrinStars,
  115605. faGrinTears: faGrinTears,
  115606. faGrinTongue: faGrinTongue,
  115607. faGrinTongueSquint: faGrinTongueSquint,
  115608. faGrinTongueWink: faGrinTongueWink,
  115609. faGrinWink: faGrinWink,
  115610. faGripHorizontal: faGripHorizontal,
  115611. faGripLines: faGripLines,
  115612. faGripLinesVertical: faGripLinesVertical,
  115613. faGripVertical: faGripVertical,
  115614. faGuitar: faGuitar,
  115615. faHSquare: faHSquare,
  115616. faHamburger: faHamburger,
  115617. faHammer: faHammer,
  115618. faHamsa: faHamsa,
  115619. faHandHolding: faHandHolding,
  115620. faHandHoldingHeart: faHandHoldingHeart,
  115621. faHandHoldingMedical: faHandHoldingMedical,
  115622. faHandHoldingUsd: faHandHoldingUsd,
  115623. faHandHoldingWater: faHandHoldingWater,
  115624. faHandLizard: faHandLizard,
  115625. faHandMiddleFinger: faHandMiddleFinger,
  115626. faHandPaper: faHandPaper,
  115627. faHandPeace: faHandPeace,
  115628. faHandPointDown: faHandPointDown,
  115629. faHandPointLeft: faHandPointLeft,
  115630. faHandPointRight: faHandPointRight,
  115631. faHandPointUp: faHandPointUp,
  115632. faHandPointer: faHandPointer,
  115633. faHandRock: faHandRock,
  115634. faHandScissors: faHandScissors,
  115635. faHandSparkles: faHandSparkles,
  115636. faHandSpock: faHandSpock,
  115637. faHands: faHands,
  115638. faHandsHelping: faHandsHelping,
  115639. faHandsWash: faHandsWash,
  115640. faHandshake: faHandshake,
  115641. faHandshakeAltSlash: faHandshakeAltSlash,
  115642. faHandshakeSlash: faHandshakeSlash,
  115643. faHanukiah: faHanukiah,
  115644. faHardHat: faHardHat,
  115645. faHashtag: faHashtag,
  115646. faHatCowboy: faHatCowboy,
  115647. faHatCowboySide: faHatCowboySide,
  115648. faHatWizard: faHatWizard,
  115649. faHdd: faHdd,
  115650. faHeadSideCough: faHeadSideCough,
  115651. faHeadSideCoughSlash: faHeadSideCoughSlash,
  115652. faHeadSideMask: faHeadSideMask,
  115653. faHeadSideVirus: faHeadSideVirus,
  115654. faHeading: faHeading,
  115655. faHeadphones: faHeadphones,
  115656. faHeadphonesAlt: faHeadphonesAlt,
  115657. faHeadset: faHeadset,
  115658. faHeart: faHeart,
  115659. faHeartBroken: faHeartBroken,
  115660. faHeartbeat: faHeartbeat,
  115661. faHelicopter: faHelicopter,
  115662. faHighlighter: faHighlighter,
  115663. faHiking: faHiking,
  115664. faHippo: faHippo,
  115665. faHistory: faHistory,
  115666. faHockeyPuck: faHockeyPuck,
  115667. faHollyBerry: faHollyBerry,
  115668. faHome: faHome,
  115669. faHorse: faHorse,
  115670. faHorseHead: faHorseHead,
  115671. faHospital: faHospital,
  115672. faHospitalAlt: faHospitalAlt,
  115673. faHospitalSymbol: faHospitalSymbol,
  115674. faHospitalUser: faHospitalUser,
  115675. faHotTub: faHotTub,
  115676. faHotdog: faHotdog,
  115677. faHotel: faHotel,
  115678. faHourglass: faHourglass,
  115679. faHourglassEnd: faHourglassEnd,
  115680. faHourglassHalf: faHourglassHalf,
  115681. faHourglassStart: faHourglassStart,
  115682. faHouseDamage: faHouseDamage,
  115683. faHouseUser: faHouseUser,
  115684. faHryvnia: faHryvnia,
  115685. faICursor: faICursor,
  115686. faIceCream: faIceCream,
  115687. faIcicles: faIcicles,
  115688. faIcons: faIcons,
  115689. faIdBadge: faIdBadge,
  115690. faIdCard: faIdCard,
  115691. faIdCardAlt: faIdCardAlt,
  115692. faIgloo: faIgloo,
  115693. faImage: faImage,
  115694. faImages: faImages,
  115695. faInbox: faInbox,
  115696. faIndent: faIndent,
  115697. faIndustry: faIndustry,
  115698. faInfinity: faInfinity,
  115699. faInfo: faInfo,
  115700. faInfoCircle: faInfoCircle,
  115701. faItalic: faItalic,
  115702. faJedi: faJedi,
  115703. faJoint: faJoint,
  115704. faJournalWhills: faJournalWhills,
  115705. faKaaba: faKaaba,
  115706. faKey: faKey,
  115707. faKeyboard: faKeyboard,
  115708. faKhanda: faKhanda,
  115709. faKiss: faKiss,
  115710. faKissBeam: faKissBeam,
  115711. faKissWinkHeart: faKissWinkHeart,
  115712. faKiwiBird: faKiwiBird,
  115713. faLandmark: faLandmark,
  115714. faLanguage: faLanguage,
  115715. faLaptop: faLaptop,
  115716. faLaptopCode: faLaptopCode,
  115717. faLaptopHouse: faLaptopHouse,
  115718. faLaptopMedical: faLaptopMedical,
  115719. faLaugh: faLaugh,
  115720. faLaughBeam: faLaughBeam,
  115721. faLaughSquint: faLaughSquint,
  115722. faLaughWink: faLaughWink,
  115723. faLayerGroup: faLayerGroup,
  115724. faLeaf: faLeaf,
  115725. faLemon: faLemon,
  115726. faLessThan: faLessThan,
  115727. faLessThanEqual: faLessThanEqual,
  115728. faLevelDownAlt: faLevelDownAlt,
  115729. faLevelUpAlt: faLevelUpAlt,
  115730. faLifeRing: faLifeRing,
  115731. faLightbulb: faLightbulb,
  115732. faLink: faLink,
  115733. faLiraSign: faLiraSign,
  115734. faList: faList,
  115735. faListAlt: faListAlt,
  115736. faListOl: faListOl,
  115737. faListUl: faListUl,
  115738. faLocationArrow: faLocationArrow,
  115739. faLock: faLock,
  115740. faLockOpen: faLockOpen,
  115741. faLongArrowAltDown: faLongArrowAltDown,
  115742. faLongArrowAltLeft: faLongArrowAltLeft,
  115743. faLongArrowAltRight: faLongArrowAltRight,
  115744. faLongArrowAltUp: faLongArrowAltUp,
  115745. faLowVision: faLowVision,
  115746. faLuggageCart: faLuggageCart,
  115747. faLungs: faLungs,
  115748. faLungsVirus: faLungsVirus,
  115749. faMagic: faMagic,
  115750. faMagnet: faMagnet,
  115751. faMailBulk: faMailBulk,
  115752. faMale: faMale,
  115753. faMap: faMap,
  115754. faMapMarked: faMapMarked,
  115755. faMapMarkedAlt: faMapMarkedAlt,
  115756. faMapMarker: faMapMarker,
  115757. faMapMarkerAlt: faMapMarkerAlt,
  115758. faMapPin: faMapPin,
  115759. faMapSigns: faMapSigns,
  115760. faMarker: faMarker,
  115761. faMars: faMars,
  115762. faMarsDouble: faMarsDouble,
  115763. faMarsStroke: faMarsStroke,
  115764. faMarsStrokeH: faMarsStrokeH,
  115765. faMarsStrokeV: faMarsStrokeV,
  115766. faMask: faMask,
  115767. faMedal: faMedal,
  115768. faMedkit: faMedkit,
  115769. faMeh: faMeh,
  115770. faMehBlank: faMehBlank,
  115771. faMehRollingEyes: faMehRollingEyes,
  115772. faMemory: faMemory,
  115773. faMenorah: faMenorah,
  115774. faMercury: faMercury,
  115775. faMeteor: faMeteor,
  115776. faMicrochip: faMicrochip,
  115777. faMicrophone: faMicrophone,
  115778. faMicrophoneAlt: faMicrophoneAlt,
  115779. faMicrophoneAltSlash: faMicrophoneAltSlash,
  115780. faMicrophoneSlash: faMicrophoneSlash,
  115781. faMicroscope: faMicroscope,
  115782. faMinus: faMinus,
  115783. faMinusCircle: faMinusCircle,
  115784. faMinusSquare: faMinusSquare,
  115785. faMitten: faMitten,
  115786. faMobile: faMobile,
  115787. faMobileAlt: faMobileAlt,
  115788. faMoneyBill: faMoneyBill,
  115789. faMoneyBillAlt: faMoneyBillAlt,
  115790. faMoneyBillWave: faMoneyBillWave,
  115791. faMoneyBillWaveAlt: faMoneyBillWaveAlt,
  115792. faMoneyCheck: faMoneyCheck,
  115793. faMoneyCheckAlt: faMoneyCheckAlt,
  115794. faMonument: faMonument,
  115795. faMoon: faMoon,
  115796. faMortarPestle: faMortarPestle,
  115797. faMosque: faMosque,
  115798. faMotorcycle: faMotorcycle,
  115799. faMountain: faMountain,
  115800. faMouse: faMouse,
  115801. faMousePointer: faMousePointer,
  115802. faMugHot: faMugHot,
  115803. faMusic: faMusic,
  115804. faNetworkWired: faNetworkWired,
  115805. faNeuter: faNeuter,
  115806. faNewspaper: faNewspaper,
  115807. faNotEqual: faNotEqual,
  115808. faNotesMedical: faNotesMedical,
  115809. faObjectGroup: faObjectGroup,
  115810. faObjectUngroup: faObjectUngroup,
  115811. faOilCan: faOilCan,
  115812. faOm: faOm,
  115813. faOtter: faOtter,
  115814. faOutdent: faOutdent,
  115815. faPager: faPager,
  115816. faPaintBrush: faPaintBrush,
  115817. faPaintRoller: faPaintRoller,
  115818. faPalette: faPalette,
  115819. faPallet: faPallet,
  115820. faPaperPlane: faPaperPlane,
  115821. faPaperclip: faPaperclip,
  115822. faParachuteBox: faParachuteBox,
  115823. faParagraph: faParagraph,
  115824. faParking: faParking,
  115825. faPassport: faPassport,
  115826. faPastafarianism: faPastafarianism,
  115827. faPaste: faPaste,
  115828. faPause: faPause,
  115829. faPauseCircle: faPauseCircle,
  115830. faPaw: faPaw,
  115831. faPeace: faPeace,
  115832. faPen: faPen,
  115833. faPenAlt: faPenAlt,
  115834. faPenFancy: faPenFancy,
  115835. faPenNib: faPenNib,
  115836. faPenSquare: faPenSquare,
  115837. faPencilAlt: faPencilAlt,
  115838. faPencilRuler: faPencilRuler,
  115839. faPeopleArrows: faPeopleArrows,
  115840. faPeopleCarry: faPeopleCarry,
  115841. faPepperHot: faPepperHot,
  115842. faPercent: faPercent,
  115843. faPercentage: faPercentage,
  115844. faPersonBooth: faPersonBooth,
  115845. faPhone: faPhone,
  115846. faPhoneAlt: faPhoneAlt,
  115847. faPhoneSlash: faPhoneSlash,
  115848. faPhoneSquare: faPhoneSquare,
  115849. faPhoneSquareAlt: faPhoneSquareAlt,
  115850. faPhoneVolume: faPhoneVolume,
  115851. faPhotoVideo: faPhotoVideo,
  115852. faPiggyBank: faPiggyBank,
  115853. faPills: faPills,
  115854. faPizzaSlice: faPizzaSlice,
  115855. faPlaceOfWorship: faPlaceOfWorship,
  115856. faPlane: faPlane,
  115857. faPlaneArrival: faPlaneArrival,
  115858. faPlaneDeparture: faPlaneDeparture,
  115859. faPlaneSlash: faPlaneSlash,
  115860. faPlay: faPlay,
  115861. faPlayCircle: faPlayCircle,
  115862. faPlug: faPlug,
  115863. faPlus: faPlus,
  115864. faPlusCircle: faPlusCircle,
  115865. faPlusSquare: faPlusSquare,
  115866. faPodcast: faPodcast,
  115867. faPoll: faPoll,
  115868. faPollH: faPollH,
  115869. faPoo: faPoo,
  115870. faPooStorm: faPooStorm,
  115871. faPoop: faPoop,
  115872. faPortrait: faPortrait,
  115873. faPoundSign: faPoundSign,
  115874. faPowerOff: faPowerOff,
  115875. faPray: faPray,
  115876. faPrayingHands: faPrayingHands,
  115877. faPrescription: faPrescription,
  115878. faPrescriptionBottle: faPrescriptionBottle,
  115879. faPrescriptionBottleAlt: faPrescriptionBottleAlt,
  115880. faPrint: faPrint,
  115881. faProcedures: faProcedures,
  115882. faProjectDiagram: faProjectDiagram,
  115883. faPumpMedical: faPumpMedical,
  115884. faPumpSoap: faPumpSoap,
  115885. faPuzzlePiece: faPuzzlePiece,
  115886. faQrcode: faQrcode,
  115887. faQuestion: faQuestion,
  115888. faQuestionCircle: faQuestionCircle,
  115889. faQuidditch: faQuidditch,
  115890. faQuoteLeft: faQuoteLeft,
  115891. faQuoteRight: faQuoteRight,
  115892. faQuran: faQuran,
  115893. faRadiation: faRadiation,
  115894. faRadiationAlt: faRadiationAlt,
  115895. faRainbow: faRainbow,
  115896. faRandom: faRandom,
  115897. faReceipt: faReceipt,
  115898. faRecordVinyl: faRecordVinyl,
  115899. faRecycle: faRecycle,
  115900. faRedo: faRedo,
  115901. faRedoAlt: faRedoAlt,
  115902. faRegistered: faRegistered,
  115903. faRemoveFormat: faRemoveFormat,
  115904. faReply: faReply,
  115905. faReplyAll: faReplyAll,
  115906. faRepublican: faRepublican,
  115907. faRestroom: faRestroom,
  115908. faRetweet: faRetweet,
  115909. faRibbon: faRibbon,
  115910. faRing: faRing,
  115911. faRoad: faRoad,
  115912. faRobot: faRobot,
  115913. faRocket: faRocket,
  115914. faRoute: faRoute,
  115915. faRss: faRss,
  115916. faRssSquare: faRssSquare,
  115917. faRubleSign: faRubleSign,
  115918. faRuler: faRuler,
  115919. faRulerCombined: faRulerCombined,
  115920. faRulerHorizontal: faRulerHorizontal,
  115921. faRulerVertical: faRulerVertical,
  115922. faRunning: faRunning,
  115923. faRupeeSign: faRupeeSign,
  115924. faSadCry: faSadCry,
  115925. faSadTear: faSadTear,
  115926. faSatellite: faSatellite,
  115927. faSatelliteDish: faSatelliteDish,
  115928. faSave: faSave,
  115929. faSchool: faSchool,
  115930. faScrewdriver: faScrewdriver,
  115931. faScroll: faScroll,
  115932. faSdCard: faSdCard,
  115933. faSearch: faSearch,
  115934. faSearchDollar: faSearchDollar,
  115935. faSearchLocation: faSearchLocation,
  115936. faSearchMinus: faSearchMinus,
  115937. faSearchPlus: faSearchPlus,
  115938. faSeedling: faSeedling,
  115939. faServer: faServer,
  115940. faShapes: faShapes,
  115941. faShare: faShare,
  115942. faShareAlt: faShareAlt,
  115943. faShareAltSquare: faShareAltSquare,
  115944. faShareSquare: faShareSquare,
  115945. faShekelSign: faShekelSign,
  115946. faShieldAlt: faShieldAlt,
  115947. faShieldVirus: faShieldVirus,
  115948. faShip: faShip,
  115949. faShippingFast: faShippingFast,
  115950. faShoePrints: faShoePrints,
  115951. faShoppingBag: faShoppingBag,
  115952. faShoppingBasket: faShoppingBasket,
  115953. faShoppingCart: faShoppingCart,
  115954. faShower: faShower,
  115955. faShuttleVan: faShuttleVan,
  115956. faSign: faSign,
  115957. faSignInAlt: faSignInAlt,
  115958. faSignLanguage: faSignLanguage,
  115959. faSignOutAlt: faSignOutAlt,
  115960. faSignal: faSignal,
  115961. faSignature: faSignature,
  115962. faSimCard: faSimCard,
  115963. faSink: faSink,
  115964. faSitemap: faSitemap,
  115965. faSkating: faSkating,
  115966. faSkiing: faSkiing,
  115967. faSkiingNordic: faSkiingNordic,
  115968. faSkull: faSkull,
  115969. faSkullCrossbones: faSkullCrossbones,
  115970. faSlash: faSlash,
  115971. faSleigh: faSleigh,
  115972. faSlidersH: faSlidersH,
  115973. faSmile: faSmile,
  115974. faSmileBeam: faSmileBeam,
  115975. faSmileWink: faSmileWink,
  115976. faSmog: faSmog,
  115977. faSmoking: faSmoking,
  115978. faSmokingBan: faSmokingBan,
  115979. faSms: faSms,
  115980. faSnowboarding: faSnowboarding,
  115981. faSnowflake: faSnowflake,
  115982. faSnowman: faSnowman,
  115983. faSnowplow: faSnowplow,
  115984. faSoap: faSoap,
  115985. faSocks: faSocks,
  115986. faSolarPanel: faSolarPanel,
  115987. faSort: faSort,
  115988. faSortAlphaDown: faSortAlphaDown,
  115989. faSortAlphaDownAlt: faSortAlphaDownAlt,
  115990. faSortAlphaUp: faSortAlphaUp,
  115991. faSortAlphaUpAlt: faSortAlphaUpAlt,
  115992. faSortAmountDown: faSortAmountDown,
  115993. faSortAmountDownAlt: faSortAmountDownAlt,
  115994. faSortAmountUp: faSortAmountUp,
  115995. faSortAmountUpAlt: faSortAmountUpAlt,
  115996. faSortDown: faSortDown,
  115997. faSortNumericDown: faSortNumericDown,
  115998. faSortNumericDownAlt: faSortNumericDownAlt,
  115999. faSortNumericUp: faSortNumericUp,
  116000. faSortNumericUpAlt: faSortNumericUpAlt,
  116001. faSortUp: faSortUp,
  116002. faSpa: faSpa,
  116003. faSpaceShuttle: faSpaceShuttle,
  116004. faSpellCheck: faSpellCheck,
  116005. faSpider: faSpider,
  116006. faSpinner: faSpinner,
  116007. faSplotch: faSplotch,
  116008. faSprayCan: faSprayCan,
  116009. faSquare: faSquare,
  116010. faSquareFull: faSquareFull,
  116011. faSquareRootAlt: faSquareRootAlt,
  116012. faStamp: faStamp,
  116013. faStar: faStar,
  116014. faStarAndCrescent: faStarAndCrescent,
  116015. faStarHalf: faStarHalf,
  116016. faStarHalfAlt: faStarHalfAlt,
  116017. faStarOfDavid: faStarOfDavid,
  116018. faStarOfLife: faStarOfLife,
  116019. faStepBackward: faStepBackward,
  116020. faStepForward: faStepForward,
  116021. faStethoscope: faStethoscope,
  116022. faStickyNote: faStickyNote,
  116023. faStop: faStop,
  116024. faStopCircle: faStopCircle,
  116025. faStopwatch: faStopwatch,
  116026. faStopwatch20: faStopwatch20,
  116027. faStore: faStore,
  116028. faStoreAlt: faStoreAlt,
  116029. faStoreAltSlash: faStoreAltSlash,
  116030. faStoreSlash: faStoreSlash,
  116031. faStream: faStream,
  116032. faStreetView: faStreetView,
  116033. faStrikethrough: faStrikethrough,
  116034. faStroopwafel: faStroopwafel,
  116035. faSubscript: faSubscript,
  116036. faSubway: faSubway,
  116037. faSuitcase: faSuitcase,
  116038. faSuitcaseRolling: faSuitcaseRolling,
  116039. faSun: faSun,
  116040. faSuperscript: faSuperscript,
  116041. faSurprise: faSurprise,
  116042. faSwatchbook: faSwatchbook,
  116043. faSwimmer: faSwimmer,
  116044. faSwimmingPool: faSwimmingPool,
  116045. faSynagogue: faSynagogue,
  116046. faSync: faSync,
  116047. faSyncAlt: faSyncAlt,
  116048. faSyringe: faSyringe,
  116049. faTable: faTable,
  116050. faTableTennis: faTableTennis,
  116051. faTablet: faTablet,
  116052. faTabletAlt: faTabletAlt,
  116053. faTablets: faTablets,
  116054. faTachometerAlt: faTachometerAlt,
  116055. faTag: faTag,
  116056. faTags: faTags,
  116057. faTape: faTape,
  116058. faTasks: faTasks,
  116059. faTaxi: faTaxi,
  116060. faTeeth: faTeeth,
  116061. faTeethOpen: faTeethOpen,
  116062. faTemperatureHigh: faTemperatureHigh,
  116063. faTemperatureLow: faTemperatureLow,
  116064. faTenge: faTenge,
  116065. faTerminal: faTerminal,
  116066. faTextHeight: faTextHeight,
  116067. faTextWidth: faTextWidth,
  116068. faTh: faTh,
  116069. faThLarge: faThLarge,
  116070. faThList: faThList,
  116071. faTheaterMasks: faTheaterMasks,
  116072. faThermometer: faThermometer,
  116073. faThermometerEmpty: faThermometerEmpty,
  116074. faThermometerFull: faThermometerFull,
  116075. faThermometerHalf: faThermometerHalf,
  116076. faThermometerQuarter: faThermometerQuarter,
  116077. faThermometerThreeQuarters: faThermometerThreeQuarters,
  116078. faThumbsDown: faThumbsDown,
  116079. faThumbsUp: faThumbsUp,
  116080. faThumbtack: faThumbtack,
  116081. faTicketAlt: faTicketAlt,
  116082. faTimes: faTimes,
  116083. faTimesCircle: faTimesCircle,
  116084. faTint: faTint,
  116085. faTintSlash: faTintSlash,
  116086. faTired: faTired,
  116087. faToggleOff: faToggleOff,
  116088. faToggleOn: faToggleOn,
  116089. faToilet: faToilet,
  116090. faToiletPaper: faToiletPaper,
  116091. faToiletPaperSlash: faToiletPaperSlash,
  116092. faToolbox: faToolbox,
  116093. faTools: faTools,
  116094. faTooth: faTooth,
  116095. faTorah: faTorah,
  116096. faToriiGate: faToriiGate,
  116097. faTractor: faTractor,
  116098. faTrademark: faTrademark,
  116099. faTrafficLight: faTrafficLight,
  116100. faTrailer: faTrailer,
  116101. faTrain: faTrain,
  116102. faTram: faTram,
  116103. faTransgender: faTransgender,
  116104. faTransgenderAlt: faTransgenderAlt,
  116105. faTrash: faTrash,
  116106. faTrashAlt: faTrashAlt,
  116107. faTrashRestore: faTrashRestore,
  116108. faTrashRestoreAlt: faTrashRestoreAlt,
  116109. faTree: faTree,
  116110. faTrophy: faTrophy,
  116111. faTruck: faTruck,
  116112. faTruckLoading: faTruckLoading,
  116113. faTruckMonster: faTruckMonster,
  116114. faTruckMoving: faTruckMoving,
  116115. faTruckPickup: faTruckPickup,
  116116. faTshirt: faTshirt,
  116117. faTty: faTty,
  116118. faTv: faTv,
  116119. faUmbrella: faUmbrella,
  116120. faUmbrellaBeach: faUmbrellaBeach,
  116121. faUnderline: faUnderline,
  116122. faUndo: faUndo,
  116123. faUndoAlt: faUndoAlt,
  116124. faUniversalAccess: faUniversalAccess,
  116125. faUniversity: faUniversity,
  116126. faUnlink: faUnlink,
  116127. faUnlock: faUnlock,
  116128. faUnlockAlt: faUnlockAlt,
  116129. faUpload: faUpload,
  116130. faUser: faUser,
  116131. faUserAlt: faUserAlt,
  116132. faUserAltSlash: faUserAltSlash,
  116133. faUserAstronaut: faUserAstronaut,
  116134. faUserCheck: faUserCheck,
  116135. faUserCircle: faUserCircle,
  116136. faUserClock: faUserClock,
  116137. faUserCog: faUserCog,
  116138. faUserEdit: faUserEdit,
  116139. faUserFriends: faUserFriends,
  116140. faUserGraduate: faUserGraduate,
  116141. faUserInjured: faUserInjured,
  116142. faUserLock: faUserLock,
  116143. faUserMd: faUserMd,
  116144. faUserMinus: faUserMinus,
  116145. faUserNinja: faUserNinja,
  116146. faUserNurse: faUserNurse,
  116147. faUserPlus: faUserPlus,
  116148. faUserSecret: faUserSecret,
  116149. faUserShield: faUserShield,
  116150. faUserSlash: faUserSlash,
  116151. faUserTag: faUserTag,
  116152. faUserTie: faUserTie,
  116153. faUserTimes: faUserTimes,
  116154. faUsers: faUsers,
  116155. faUsersCog: faUsersCog,
  116156. faUsersSlash: faUsersSlash,
  116157. faUtensilSpoon: faUtensilSpoon,
  116158. faUtensils: faUtensils,
  116159. faVectorSquare: faVectorSquare,
  116160. faVenus: faVenus,
  116161. faVenusDouble: faVenusDouble,
  116162. faVenusMars: faVenusMars,
  116163. faVest: faVest,
  116164. faVestPatches: faVestPatches,
  116165. faVial: faVial,
  116166. faVials: faVials,
  116167. faVideo: faVideo,
  116168. faVideoSlash: faVideoSlash,
  116169. faVihara: faVihara,
  116170. faVirus: faVirus,
  116171. faVirusSlash: faVirusSlash,
  116172. faViruses: faViruses,
  116173. faVoicemail: faVoicemail,
  116174. faVolleyballBall: faVolleyballBall,
  116175. faVolumeDown: faVolumeDown,
  116176. faVolumeMute: faVolumeMute,
  116177. faVolumeOff: faVolumeOff,
  116178. faVolumeUp: faVolumeUp,
  116179. faVoteYea: faVoteYea,
  116180. faVrCardboard: faVrCardboard,
  116181. faWalking: faWalking,
  116182. faWallet: faWallet,
  116183. faWarehouse: faWarehouse,
  116184. faWater: faWater,
  116185. faWaveSquare: faWaveSquare,
  116186. faWeight: faWeight,
  116187. faWeightHanging: faWeightHanging,
  116188. faWheelchair: faWheelchair,
  116189. faWifi: faWifi,
  116190. faWind: faWind,
  116191. faWindowClose: faWindowClose,
  116192. faWindowMaximize: faWindowMaximize,
  116193. faWindowMinimize: faWindowMinimize,
  116194. faWindowRestore: faWindowRestore,
  116195. faWineBottle: faWineBottle,
  116196. faWineGlass: faWineGlass,
  116197. faWineGlassAlt: faWineGlassAlt,
  116198. faWonSign: faWonSign,
  116199. faWrench: faWrench,
  116200. faXRay: faXRay,
  116201. faYenSign: faYenSign,
  116202. faYinYang: faYinYang
  116203. };
  116204. /***/ }),
  116205. /***/ "wO+i":
  116206. /*!****************************************************************!*\
  116207. !*** ./node_modules/rxjs/_esm2015/internal/operators/pluck.js ***!
  116208. \****************************************************************/
  116209. /*! exports provided: pluck */
  116210. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116211. "use strict";
  116212. __webpack_require__.r(__webpack_exports__);
  116213. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "pluck", function() { return pluck; });
  116214. /* harmony import */ var _map__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./map */ "lJxs");
  116215. function pluck(...properties) {
  116216. const length = properties.length;
  116217. if (length === 0) {
  116218. throw new Error('list of properties cannot be empty.');
  116219. }
  116220. return (source) => Object(_map__WEBPACK_IMPORTED_MODULE_0__["map"])(plucker(properties, length))(source);
  116221. }
  116222. function plucker(props, length) {
  116223. const mapper = (x) => {
  116224. let currentProp = x;
  116225. for (let i = 0; i < length; i++) {
  116226. const p = currentProp[props[i]];
  116227. if (typeof p !== 'undefined') {
  116228. currentProp = p;
  116229. }
  116230. else {
  116231. return undefined;
  116232. }
  116233. }
  116234. return currentProp;
  116235. };
  116236. return mapper;
  116237. }
  116238. //# sourceMappingURL=pluck.js.map
  116239. /***/ }),
  116240. /***/ "x+ZX":
  116241. /*!*******************************************************************!*\
  116242. !*** ./node_modules/rxjs/_esm2015/internal/operators/refCount.js ***!
  116243. \*******************************************************************/
  116244. /*! exports provided: refCount */
  116245. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116246. "use strict";
  116247. __webpack_require__.r(__webpack_exports__);
  116248. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "refCount", function() { return refCount; });
  116249. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  116250. function refCount() {
  116251. return function refCountOperatorFunction(source) {
  116252. return source.lift(new RefCountOperator(source));
  116253. };
  116254. }
  116255. class RefCountOperator {
  116256. constructor(connectable) {
  116257. this.connectable = connectable;
  116258. }
  116259. call(subscriber, source) {
  116260. const { connectable } = this;
  116261. connectable._refCount++;
  116262. const refCounter = new RefCountSubscriber(subscriber, connectable);
  116263. const subscription = source.subscribe(refCounter);
  116264. if (!refCounter.closed) {
  116265. refCounter.connection = connectable.connect();
  116266. }
  116267. return subscription;
  116268. }
  116269. }
  116270. class RefCountSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  116271. constructor(destination, connectable) {
  116272. super(destination);
  116273. this.connectable = connectable;
  116274. }
  116275. _unsubscribe() {
  116276. const { connectable } = this;
  116277. if (!connectable) {
  116278. this.connection = null;
  116279. return;
  116280. }
  116281. this.connectable = null;
  116282. const refCount = connectable._refCount;
  116283. if (refCount <= 0) {
  116284. this.connection = null;
  116285. return;
  116286. }
  116287. connectable._refCount = refCount - 1;
  116288. if (refCount > 1) {
  116289. this.connection = null;
  116290. return;
  116291. }
  116292. const { connection } = this;
  116293. const sharedConnection = connectable._connection;
  116294. this.connection = null;
  116295. if (sharedConnection && (!connection || sharedConnection === connection)) {
  116296. sharedConnection.unsubscribe();
  116297. }
  116298. }
  116299. }
  116300. //# sourceMappingURL=refCount.js.map
  116301. /***/ }),
  116302. /***/ "xbPD":
  116303. /*!*************************************************************************!*\
  116304. !*** ./node_modules/rxjs/_esm2015/internal/operators/defaultIfEmpty.js ***!
  116305. \*************************************************************************/
  116306. /*! exports provided: defaultIfEmpty */
  116307. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116308. "use strict";
  116309. __webpack_require__.r(__webpack_exports__);
  116310. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultIfEmpty", function() { return defaultIfEmpty; });
  116311. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  116312. function defaultIfEmpty(defaultValue = null) {
  116313. return (source) => source.lift(new DefaultIfEmptyOperator(defaultValue));
  116314. }
  116315. class DefaultIfEmptyOperator {
  116316. constructor(defaultValue) {
  116317. this.defaultValue = defaultValue;
  116318. }
  116319. call(subscriber, source) {
  116320. return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));
  116321. }
  116322. }
  116323. class DefaultIfEmptySubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  116324. constructor(destination, defaultValue) {
  116325. super(destination);
  116326. this.defaultValue = defaultValue;
  116327. this.isEmpty = true;
  116328. }
  116329. _next(value) {
  116330. this.isEmpty = false;
  116331. this.destination.next(value);
  116332. }
  116333. _complete() {
  116334. if (this.isEmpty) {
  116335. this.destination.next(this.defaultValue);
  116336. }
  116337. this.destination.complete();
  116338. }
  116339. }
  116340. //# sourceMappingURL=defaultIfEmpty.js.map
  116341. /***/ }),
  116342. /***/ "xgIS":
  116343. /*!*********************************************************************!*\
  116344. !*** ./node_modules/rxjs/_esm2015/internal/observable/fromEvent.js ***!
  116345. \*********************************************************************/
  116346. /*! exports provided: fromEvent */
  116347. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116348. "use strict";
  116349. __webpack_require__.r(__webpack_exports__);
  116350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromEvent", function() { return fromEvent; });
  116351. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  116352. /* harmony import */ var _util_isArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/isArray */ "DH7j");
  116353. /* harmony import */ var _util_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../util/isFunction */ "n6bG");
  116354. /* harmony import */ var _operators_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../operators/map */ "lJxs");
  116355. const toString = (() => Object.prototype.toString)();
  116356. function fromEvent(target, eventName, options, resultSelector) {
  116357. if (Object(_util_isFunction__WEBPACK_IMPORTED_MODULE_2__["isFunction"])(options)) {
  116358. resultSelector = options;
  116359. options = undefined;
  116360. }
  116361. if (resultSelector) {
  116362. return fromEvent(target, eventName, options).pipe(Object(_operators_map__WEBPACK_IMPORTED_MODULE_3__["map"])(args => Object(_util_isArray__WEBPACK_IMPORTED_MODULE_1__["isArray"])(args) ? resultSelector(...args) : resultSelector(args)));
  116363. }
  116364. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => {
  116365. function handler(e) {
  116366. if (arguments.length > 1) {
  116367. subscriber.next(Array.prototype.slice.call(arguments));
  116368. }
  116369. else {
  116370. subscriber.next(e);
  116371. }
  116372. }
  116373. setupSubscription(target, eventName, handler, subscriber, options);
  116374. });
  116375. }
  116376. function setupSubscription(sourceObj, eventName, handler, subscriber, options) {
  116377. let unsubscribe;
  116378. if (isEventTarget(sourceObj)) {
  116379. const source = sourceObj;
  116380. sourceObj.addEventListener(eventName, handler, options);
  116381. unsubscribe = () => source.removeEventListener(eventName, handler, options);
  116382. }
  116383. else if (isJQueryStyleEventEmitter(sourceObj)) {
  116384. const source = sourceObj;
  116385. sourceObj.on(eventName, handler);
  116386. unsubscribe = () => source.off(eventName, handler);
  116387. }
  116388. else if (isNodeStyleEventEmitter(sourceObj)) {
  116389. const source = sourceObj;
  116390. sourceObj.addListener(eventName, handler);
  116391. unsubscribe = () => source.removeListener(eventName, handler);
  116392. }
  116393. else if (sourceObj && sourceObj.length) {
  116394. for (let i = 0, len = sourceObj.length; i < len; i++) {
  116395. setupSubscription(sourceObj[i], eventName, handler, subscriber, options);
  116396. }
  116397. }
  116398. else {
  116399. throw new TypeError('Invalid event target');
  116400. }
  116401. subscriber.add(unsubscribe);
  116402. }
  116403. function isNodeStyleEventEmitter(sourceObj) {
  116404. return sourceObj && typeof sourceObj.addListener === 'function' && typeof sourceObj.removeListener === 'function';
  116405. }
  116406. function isJQueryStyleEventEmitter(sourceObj) {
  116407. return sourceObj && typeof sourceObj.on === 'function' && typeof sourceObj.off === 'function';
  116408. }
  116409. function isEventTarget(sourceObj) {
  116410. return sourceObj && typeof sourceObj.addEventListener === 'function' && typeof sourceObj.removeEventListener === 'function';
  116411. }
  116412. //# sourceMappingURL=fromEvent.js.map
  116413. /***/ }),
  116414. /***/ "yCtX":
  116415. /*!*********************************************************************!*\
  116416. !*** ./node_modules/rxjs/_esm2015/internal/observable/fromArray.js ***!
  116417. \*********************************************************************/
  116418. /*! exports provided: fromArray */
  116419. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116420. "use strict";
  116421. __webpack_require__.r(__webpack_exports__);
  116422. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromArray", function() { return fromArray; });
  116423. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  116424. /* harmony import */ var _util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToArray */ "ngJS");
  116425. /* harmony import */ var _scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../scheduled/scheduleArray */ "jZKg");
  116426. function fromArray(input, scheduler) {
  116427. if (!scheduler) {
  116428. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](Object(_util_subscribeToArray__WEBPACK_IMPORTED_MODULE_1__["subscribeToArray"])(input));
  116429. }
  116430. else {
  116431. return Object(_scheduled_scheduleArray__WEBPACK_IMPORTED_MODULE_2__["scheduleArray"])(input, scheduler);
  116432. }
  116433. }
  116434. //# sourceMappingURL=fromArray.js.map
  116435. /***/ }),
  116436. /***/ "yI9Y":
  116437. /*!**************************************************************!*\
  116438. !*** ./node_modules/rxjs/_esm2015/internal/operators/max.js ***!
  116439. \**************************************************************/
  116440. /*! exports provided: max */
  116441. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116442. "use strict";
  116443. __webpack_require__.r(__webpack_exports__);
  116444. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "max", function() { return max; });
  116445. /* harmony import */ var _reduce__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./reduce */ "128B");
  116446. function max(comparer) {
  116447. const max = (typeof comparer === 'function')
  116448. ? (x, y) => comparer(x, y) > 0 ? x : y
  116449. : (x, y) => x > y ? x : y;
  116450. return Object(_reduce__WEBPACK_IMPORTED_MODULE_0__["reduce"])(max);
  116451. }
  116452. //# sourceMappingURL=max.js.map
  116453. /***/ }),
  116454. /***/ "yuhW":
  116455. /*!*******************************************************************!*\
  116456. !*** ./node_modules/rxjs/_esm2015/internal/operators/throttle.js ***!
  116457. \*******************************************************************/
  116458. /*! exports provided: defaultThrottleConfig, throttle */
  116459. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116460. "use strict";
  116461. __webpack_require__.r(__webpack_exports__);
  116462. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultThrottleConfig", function() { return defaultThrottleConfig; });
  116463. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throttle", function() { return throttle; });
  116464. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  116465. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  116466. const defaultThrottleConfig = {
  116467. leading: true,
  116468. trailing: false
  116469. };
  116470. function throttle(durationSelector, config = defaultThrottleConfig) {
  116471. return (source) => source.lift(new ThrottleOperator(durationSelector, config.leading, config.trailing));
  116472. }
  116473. class ThrottleOperator {
  116474. constructor(durationSelector, leading, trailing) {
  116475. this.durationSelector = durationSelector;
  116476. this.leading = leading;
  116477. this.trailing = trailing;
  116478. }
  116479. call(subscriber, source) {
  116480. return source.subscribe(new ThrottleSubscriber(subscriber, this.durationSelector, this.leading, this.trailing));
  116481. }
  116482. }
  116483. class ThrottleSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  116484. constructor(destination, durationSelector, _leading, _trailing) {
  116485. super(destination);
  116486. this.destination = destination;
  116487. this.durationSelector = durationSelector;
  116488. this._leading = _leading;
  116489. this._trailing = _trailing;
  116490. this._hasValue = false;
  116491. }
  116492. _next(value) {
  116493. this._hasValue = true;
  116494. this._sendValue = value;
  116495. if (!this._throttled) {
  116496. if (this._leading) {
  116497. this.send();
  116498. }
  116499. else {
  116500. this.throttle(value);
  116501. }
  116502. }
  116503. }
  116504. send() {
  116505. const { _hasValue, _sendValue } = this;
  116506. if (_hasValue) {
  116507. this.destination.next(_sendValue);
  116508. this.throttle(_sendValue);
  116509. }
  116510. this._hasValue = false;
  116511. this._sendValue = null;
  116512. }
  116513. throttle(value) {
  116514. const duration = this.tryDurationSelector(value);
  116515. if (!!duration) {
  116516. this.add(this._throttled = Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, duration));
  116517. }
  116518. }
  116519. tryDurationSelector(value) {
  116520. try {
  116521. return this.durationSelector(value);
  116522. }
  116523. catch (err) {
  116524. this.destination.error(err);
  116525. return null;
  116526. }
  116527. }
  116528. throttlingDone() {
  116529. const { _throttled, _trailing } = this;
  116530. if (_throttled) {
  116531. _throttled.unsubscribe();
  116532. }
  116533. this._throttled = null;
  116534. if (_trailing) {
  116535. this.send();
  116536. }
  116537. }
  116538. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  116539. this.throttlingDone();
  116540. }
  116541. notifyComplete() {
  116542. this.throttlingDone();
  116543. }
  116544. }
  116545. //# sourceMappingURL=throttle.js.map
  116546. /***/ }),
  116547. /***/ "z+Ro":
  116548. /*!*****************************************************************!*\
  116549. !*** ./node_modules/rxjs/_esm2015/internal/util/isScheduler.js ***!
  116550. \*****************************************************************/
  116551. /*! exports provided: isScheduler */
  116552. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116553. "use strict";
  116554. __webpack_require__.r(__webpack_exports__);
  116555. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isScheduler", function() { return isScheduler; });
  116556. function isScheduler(value) {
  116557. return value && typeof value.schedule === 'function';
  116558. }
  116559. //# sourceMappingURL=isScheduler.js.map
  116560. /***/ }),
  116561. /***/ "z6cu":
  116562. /*!**********************************************************************!*\
  116563. !*** ./node_modules/rxjs/_esm2015/internal/observable/throwError.js ***!
  116564. \**********************************************************************/
  116565. /*! exports provided: throwError */
  116566. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116567. "use strict";
  116568. __webpack_require__.r(__webpack_exports__);
  116569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "throwError", function() { return throwError; });
  116570. /* harmony import */ var _Observable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Observable */ "HDdC");
  116571. function throwError(error, scheduler) {
  116572. if (!scheduler) {
  116573. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => subscriber.error(error));
  116574. }
  116575. else {
  116576. return new _Observable__WEBPACK_IMPORTED_MODULE_0__["Observable"](subscriber => scheduler.schedule(dispatch, 0, { error, subscriber }));
  116577. }
  116578. }
  116579. function dispatch({ error, subscriber }) {
  116580. subscriber.error(error);
  116581. }
  116582. //# sourceMappingURL=throwError.js.map
  116583. /***/ }),
  116584. /***/ "zP0r":
  116585. /*!***************************************************************!*\
  116586. !*** ./node_modules/rxjs/_esm2015/internal/operators/skip.js ***!
  116587. \***************************************************************/
  116588. /*! exports provided: skip */
  116589. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116590. "use strict";
  116591. __webpack_require__.r(__webpack_exports__);
  116592. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "skip", function() { return skip; });
  116593. /* harmony import */ var _Subscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../Subscriber */ "7o/Q");
  116594. function skip(count) {
  116595. return (source) => source.lift(new SkipOperator(count));
  116596. }
  116597. class SkipOperator {
  116598. constructor(total) {
  116599. this.total = total;
  116600. }
  116601. call(subscriber, source) {
  116602. return source.subscribe(new SkipSubscriber(subscriber, this.total));
  116603. }
  116604. }
  116605. class SkipSubscriber extends _Subscriber__WEBPACK_IMPORTED_MODULE_0__["Subscriber"] {
  116606. constructor(destination, total) {
  116607. super(destination);
  116608. this.total = total;
  116609. this.count = 0;
  116610. }
  116611. _next(x) {
  116612. if (++this.count > this.total) {
  116613. this.destination.next(x);
  116614. }
  116615. }
  116616. }
  116617. //# sourceMappingURL=skip.js.map
  116618. /***/ }),
  116619. /***/ "znLP":
  116620. /*!**********************************************************************************!*\
  116621. !*** ./node_modules/rxjs/_esm2015/internal/scheduler/AnimationFrameScheduler.js ***!
  116622. \**********************************************************************************/
  116623. /*! exports provided: AnimationFrameScheduler */
  116624. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116625. "use strict";
  116626. __webpack_require__.r(__webpack_exports__);
  116627. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AnimationFrameScheduler", function() { return AnimationFrameScheduler; });
  116628. /* harmony import */ var _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AsyncScheduler */ "IjjT");
  116629. class AnimationFrameScheduler extends _AsyncScheduler__WEBPACK_IMPORTED_MODULE_0__["AsyncScheduler"] {
  116630. flush(action) {
  116631. this.active = true;
  116632. this.scheduled = undefined;
  116633. const { actions } = this;
  116634. let error;
  116635. let index = -1;
  116636. let count = actions.length;
  116637. action = action || actions.shift();
  116638. do {
  116639. if (error = action.execute(action.state, action.delay)) {
  116640. break;
  116641. }
  116642. } while (++index < count && (action = actions.shift()));
  116643. this.active = false;
  116644. if (error) {
  116645. while (++index < count && (action = actions.shift())) {
  116646. action.unsubscribe();
  116647. }
  116648. throw error;
  116649. }
  116650. }
  116651. }
  116652. //# sourceMappingURL=AnimationFrameScheduler.js.map
  116653. /***/ }),
  116654. /***/ "zp1y":
  116655. /*!*************************************************************************!*\
  116656. !*** ./node_modules/rxjs/_esm2015/internal/operators/withLatestFrom.js ***!
  116657. \*************************************************************************/
  116658. /*! exports provided: withLatestFrom */
  116659. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116660. "use strict";
  116661. __webpack_require__.r(__webpack_exports__);
  116662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "withLatestFrom", function() { return withLatestFrom; });
  116663. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  116664. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  116665. function withLatestFrom(...args) {
  116666. return (source) => {
  116667. let project;
  116668. if (typeof args[args.length - 1] === 'function') {
  116669. project = args.pop();
  116670. }
  116671. const observables = args;
  116672. return source.lift(new WithLatestFromOperator(observables, project));
  116673. };
  116674. }
  116675. class WithLatestFromOperator {
  116676. constructor(observables, project) {
  116677. this.observables = observables;
  116678. this.project = project;
  116679. }
  116680. call(subscriber, source) {
  116681. return source.subscribe(new WithLatestFromSubscriber(subscriber, this.observables, this.project));
  116682. }
  116683. }
  116684. class WithLatestFromSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  116685. constructor(destination, observables, project) {
  116686. super(destination);
  116687. this.observables = observables;
  116688. this.project = project;
  116689. this.toRespond = [];
  116690. const len = observables.length;
  116691. this.values = new Array(len);
  116692. for (let i = 0; i < len; i++) {
  116693. this.toRespond.push(i);
  116694. }
  116695. for (let i = 0; i < len; i++) {
  116696. let observable = observables[i];
  116697. this.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, observable, observable, i));
  116698. }
  116699. }
  116700. notifyNext(outerValue, innerValue, outerIndex, innerIndex, innerSub) {
  116701. this.values[outerIndex] = innerValue;
  116702. const toRespond = this.toRespond;
  116703. if (toRespond.length > 0) {
  116704. const found = toRespond.indexOf(outerIndex);
  116705. if (found !== -1) {
  116706. toRespond.splice(found, 1);
  116707. }
  116708. }
  116709. }
  116710. notifyComplete() {
  116711. }
  116712. _next(value) {
  116713. if (this.toRespond.length === 0) {
  116714. const args = [value, ...this.values];
  116715. if (this.project) {
  116716. this._tryProject(args);
  116717. }
  116718. else {
  116719. this.destination.next(args);
  116720. }
  116721. }
  116722. }
  116723. _tryProject(args) {
  116724. let result;
  116725. try {
  116726. result = this.project.apply(this, args);
  116727. }
  116728. catch (err) {
  116729. this.destination.error(err);
  116730. return;
  116731. }
  116732. this.destination.next(result);
  116733. }
  116734. }
  116735. //# sourceMappingURL=withLatestFrom.js.map
  116736. /***/ }),
  116737. /***/ "zt7V":
  116738. /*!******************************************************************!*\
  116739. !*** ./node_modules/rxjs/_esm2015/internal/operators/exhaust.js ***!
  116740. \******************************************************************/
  116741. /*! exports provided: exhaust */
  116742. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  116743. "use strict";
  116744. __webpack_require__.r(__webpack_exports__);
  116745. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "exhaust", function() { return exhaust; });
  116746. /* harmony import */ var _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../OuterSubscriber */ "l7GE");
  116747. /* harmony import */ var _util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../util/subscribeToResult */ "ZUHj");
  116748. function exhaust() {
  116749. return (source) => source.lift(new SwitchFirstOperator());
  116750. }
  116751. class SwitchFirstOperator {
  116752. call(subscriber, source) {
  116753. return source.subscribe(new SwitchFirstSubscriber(subscriber));
  116754. }
  116755. }
  116756. class SwitchFirstSubscriber extends _OuterSubscriber__WEBPACK_IMPORTED_MODULE_0__["OuterSubscriber"] {
  116757. constructor(destination) {
  116758. super(destination);
  116759. this.hasCompleted = false;
  116760. this.hasSubscription = false;
  116761. }
  116762. _next(value) {
  116763. if (!this.hasSubscription) {
  116764. this.hasSubscription = true;
  116765. this.add(Object(_util_subscribeToResult__WEBPACK_IMPORTED_MODULE_1__["subscribeToResult"])(this, value));
  116766. }
  116767. }
  116768. _complete() {
  116769. this.hasCompleted = true;
  116770. if (!this.hasSubscription) {
  116771. this.destination.complete();
  116772. }
  116773. }
  116774. notifyComplete(innerSub) {
  116775. this.remove(innerSub);
  116776. this.hasSubscription = false;
  116777. if (this.hasCompleted) {
  116778. this.destination.complete();
  116779. }
  116780. }
  116781. }
  116782. //# sourceMappingURL=exhaust.js.map
  116783. /***/ })
  116784. }]);
  116785. //# sourceMappingURL=vendor-es2015.js.map